diff options
| author | Karel Kočí <cynerd@email.cz> | 2025-11-14 09:18:36 +0100 |
|---|---|---|
| committer | Karel Kočí <cynerd@email.cz> | 2025-11-14 09:18:36 +0100 |
| commit | e44c078ebcea9d81da6d61a0ae596a3e46e9a12d (patch) | |
| tree | 8870b8640cec95c389b9afc5dbbdd048f88145ef /nixos/configurations/ridcully.nix | |
| parent | 7606d67ed1dc56b5b5f05b6423f7a5e81db05151 (diff) | |
| download | nixos-personal-e44c078ebcea9d81da6d61a0ae596a3e46e9a12d.tar.gz nixos-personal-e44c078ebcea9d81da6d61a0ae596a3e46e9a12d.tar.bz2 nixos-personal-e44c078ebcea9d81da6d61a0ae596a3e46e9a12d.zip | |
treewide: full update in some time
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; + }; } |
