diff options
Diffstat (limited to 'nixos/configurations/ridcully.nix')
| -rw-r--r-- | nixos/configurations/ridcully.nix | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/nixos/configurations/ridcully.nix b/nixos/configurations/ridcully.nix index 3dd9beb..03b615b 100644 --- a/nixos/configurations/ridcully.nix +++ b/nixos/configurations/ridcully.nix @@ -1,6 +1,6 @@ {pkgs, ...}: { system.stateVersion = "24.05"; - nixpkgs.hostPlatform.system = "x86_64-linux"; + nixpkgs.hostPlatform.config = "x86_64-linux"; deploy.enable = true; cynerd = { @@ -12,12 +12,13 @@ }; }; - boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "usb_storage"]; + boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod"]; boot.kernelModules = ["kvm-amd"]; hardware.cpu.amd.updateMicrocode = true; services.hardware.openrgb.motherboard = "amd"; + cynerd.autounlock = { "encroot" = "/dev/disk/by-uuid/bc7d2ba4-6e04-4c49-b40c-3aecd1a86c71"; "enchdd" = "/dev/disk/by-uuid/7fee3cda-efa0-47cd-8832-fdead9a7e6db"; @@ -63,8 +64,9 @@ wait-online.enable = false; }; - environment.systemPackages = [ - pkgs.nvtopPackages.amd + environment.systemPackages = with pkgs; [ + nvtopPackages.amd + sbctl ]; services.syncthing = { @@ -74,4 +76,10 @@ # Force nix to use less jobs nix.settings.max-jobs = 4; + + # Cover case when we are running out of memory + zramSwap = { + enable = true; + memoryPercent = 50; + }; } |
