at main 1.7 kB view raw
1# Do not modify this file! It was generated by ‘nixos-generate-config’ 2# and may be overwritten by future invocations. Please make changes 3# to /etc/nixos/configuration.nix instead. 4{ 5 config, 6 lib, 7 modulesPath, 8 ... 9}: 10 11{ 12 imports = [ 13 (modulesPath + "/installer/scan/not-detected.nix") 14 ]; 15 16 boot.initrd.availableKernelModules = [ 17 "nvme" 18 "xhci_pci" 19 "ahci" 20 "usb_storage" 21 "uas" 22 "usbhid" 23 "sd_mod" 24 ]; 25 boot.initrd.kernelModules = [ ]; 26 boot.kernelModules = [ "kvm-amd" ]; 27 boot.extraModulePackages = [ ]; 28 29 fileSystems."/" = { 30 device = "/dev/disk/by-uuid/3874f70a-b479-4abe-943a-89ad34ad70c4"; 31 fsType = "btrfs"; 32 }; 33 34 fileSystems."/boot" = { 35 device = "/dev/disk/by-uuid/0C2B-5B30"; 36 fsType = "vfat"; 37 options = [ 38 "fmask=0077" 39 "dmask=0077" 40 ]; 41 }; 42 43 swapDevices = [ 44 { 45 device = "/dev/disk/by-partuuid/d52b45b2-61e0-8641-921a-47bc74fbc2f3"; 46 randomEncryption.enable = lib.mkDefault true; 47 } 48 ]; 49 50 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 51 # (the default) this is the recommended approach. When using systemd-networkd it's 52 # still possible to use this option, but it's recommended to use it in conjunction 53 # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. 54 networking.useDHCP = lib.mkDefault true; 55 # networking.interfaces.eno1.useDHCP = lib.mkDefault true; 56 # networking.interfaces.wlp34s0.useDHCP = lib.mkDefault true; 57 58 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 59 hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 60}