genesis
This commit is contained in:
commit
a29881aa64
39 changed files with 1079 additions and 0 deletions
9
modules/hosts/phostron/amd-microcode.nix
Normal file
9
modules/hosts/phostron/amd-microcode.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
flake.modules.nixos.phostron = {
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
};
|
||||
}
|
||||
5
modules/hosts/phostron/bluetooth.nix
Normal file
5
modules/hosts/phostron/bluetooth.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
flake.modules.nixos.base = {
|
||||
hardware.bluetooth.enable = true;
|
||||
};
|
||||
}
|
||||
21
modules/hosts/phostron/boot.nix
Normal file
21
modules/hosts/phostron/boot.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
flake.modules.nixos.phostron = {
|
||||
boot = {
|
||||
initrd = {
|
||||
availableKernelModules = [
|
||||
"nvme"
|
||||
"ehci_pci"
|
||||
"xhci_pci"
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
"sdhci_pci"
|
||||
];
|
||||
kernelModules = [];
|
||||
};
|
||||
|
||||
kernelModules = ["kvm-amd"];
|
||||
extraModulePackages = [];
|
||||
};
|
||||
};
|
||||
}
|
||||
5
modules/hosts/phostron/display-manager.nix
Normal file
5
modules/hosts/phostron/display-manager.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
flake.modules.nixos.kdePlasma = {
|
||||
services.displayManager.sddm.settings.Theme.CursorSize = 18;
|
||||
};
|
||||
}
|
||||
28
modules/hosts/phostron/entry.nix
Normal file
28
modules/hosts/phostron/entry.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
self,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
stateVersion = "26.05"; # i don't read comments!
|
||||
in {
|
||||
flake.modules.nixos.phostron = {lib, ...}: {
|
||||
system = {inherit stateVersion;};
|
||||
|
||||
networking.hostName = "phostron";
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
};
|
||||
|
||||
flake.modules.homeManager.coyote = {
|
||||
home = {inherit stateVersion;};
|
||||
};
|
||||
|
||||
flake.nixosConfigurations.phostron = inputs.nixpkgs.lib.nixosSystem {
|
||||
modules = with self.modules.nixos; [
|
||||
base
|
||||
phostron
|
||||
kdePlasma
|
||||
homeManagerModule
|
||||
coyote
|
||||
];
|
||||
};
|
||||
}
|
||||
19
modules/hosts/phostron/file-systems.nix
Normal file
19
modules/hosts/phostron/file-systems.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
flake.modules.nixos.phostron = {
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/24fb172c-c29f-40c3-ae4d-ff652358563a";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/DFC9-994A";
|
||||
fsType = "vfat";
|
||||
options = ["fmask=0077" "dmask=0077"];
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [{device = "/dev/disk/by-uuid/91d96247-85c3-4e0a-93a2-5632b96179b6";}];
|
||||
zramSwap.enable = true;
|
||||
};
|
||||
}
|
||||
9
modules/hosts/phostron/graphics.nix
Normal file
9
modules/hosts/phostron/graphics.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
flake.modules.nixos.phostron = {
|
||||
hardware = {
|
||||
graphics.enable = true;
|
||||
graphics.enable32Bit = true;
|
||||
enableRedistributableFirmware = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
8
modules/hosts/phostron/networking.nix
Normal file
8
modules/hosts/phostron/networking.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
flake.modules.nixos.phostron = {
|
||||
networking = {
|
||||
networkmanager.enable = true;
|
||||
firewall.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
13
modules/hosts/phostron/printing.nix
Normal file
13
modules/hosts/phostron/printing.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
flake.modules.nixos.phostron = {pkgs, ...}: {
|
||||
services.printing.enable = true;
|
||||
services.printing.drivers = with pkgs; [
|
||||
epson-escpr
|
||||
];
|
||||
|
||||
hardware.sane.enable = true;
|
||||
hardware.sane.extraBackends = with pkgs; [
|
||||
epsonscan2
|
||||
];
|
||||
};
|
||||
}
|
||||
5
modules/hosts/phostron/ssd.nix
Normal file
5
modules/hosts/phostron/ssd.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
flake.modules.nixos.phostron = {
|
||||
services.fstrim.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue