configurations for my servers and desktops
nix nixos flake dots dotfiles
at main 50 lines 1.2 kB view raw
1{ 2 config, 3 lib, 4 modulesPath, 5 ... 6}: { 7 imports = [(modulesPath + "/installer/scan/not-detected.nix")]; 8 9 boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "xhci_pci_renesas" "usbhid" "sd_mod"]; 10 boot.initrd.kernelModules = []; 11 boot.kernelModules = []; 12 boot.extraModulePackages = []; 13 14 fileSystems."/" = { 15 device = "/dev/disk/by-uuid/649b9c36-dd13-4cb7-9561-dff01fa3641b"; 16 fsType = "ext4"; 17 }; 18 19 fileSystems."/boot" = { 20 device = "/dev/disk/by-uuid/8865-CA84"; 21 fsType = "vfat"; 22 options = ["fmask=0077" "dmask=0077"]; 23 }; 24 25 fileSystems."/mnt/backup" = { 26 device = "/dev/disk/by-uuid/ec387aee-c588-4e84-9ddc-3be935c43257"; 27 fsType = "ext4"; 28 options = [ 29 "defaults" 30 "noatime" 31 "nofail" 32 "noauto" 33 "x-systemd.automount" 34 "x-systemd.idle-timeout=600" 35 ]; 36 }; 37 38 boot.loader.systemd-boot.enable = true; 39 boot.loader.efi.canTouchEfiVariables = true; 40 41 swapDevices = [ 42 { 43 device = "/var/lib/swapfile"; 44 size = 32 * 1024; 45 } 46 ]; 47 48 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 49 hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 50}