my nix configs for my servers and desktop
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 pkgs, 8 modulesPath, 9 ... 10}: 11 12{ 13 imports = [ 14 (modulesPath + "/profiles/qemu-guest.nix") 15 ]; 16 17 boot.initrd.availableKernelModules = [ 18 "ata_piix" 19 "uhci_hcd" 20 "virtio_pci" 21 "sr_mod" 22 "virtio_blk" 23 ]; 24 boot.initrd.kernelModules = [ ]; 25 boot.kernelModules = [ "kvm-amd" ]; 26 boot.extraModulePackages = [ ]; 27 28 fileSystems."/" = { 29 device = "/dev/disk/by-uuid/07478c87-a96d-4665-b7e7-2736e9748fd6"; 30 fsType = "ext4"; 31 }; 32 33 swapDevices = [ 34 { device = "/dev/disk/by-uuid/2bff92a8-8c12-4190-aed9-5aed7ddf4211"; } 35 ]; 36 37 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 38 # (the default) this is the recommended approach. When using systemd-networkd it's 39 # still possible to use this option, but it's recommended to use it in conjunction 40 # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. 41 #networking.useDHCP = lib.mkDefault true; 42 # networking.interfaces.ens3.useDHCP = lib.mkDefault true; 43 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 44}