personal nixos config and packages
at main 1.5 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 pkgs, 8 modulesPath, 9 ... 10}: 11 12{ 13 imports = [ 14 (modulesPath + "/installer/scan/not-detected.nix") 15 ]; 16 17 boot.initrd.availableKernelModules = [ 18 "nvme" 19 "xhci_pci" 20 "thunderbolt" 21 "usb_storage" 22 "sd_mod" 23 ]; 24 boot.initrd.kernelModules = [ ]; 25 boot.kernelModules = [ "kvm-amd" ]; 26 boot.extraModulePackages = [ ]; 27 28 fileSystems."/" = { 29 device = "/dev/disk/by-uuid/5180e190-2e04-4a59-ae1e-1c7c5694960d"; 30 fsType = "btrfs"; 31 }; 32 33 fileSystems."/boot" = { 34 device = "/dev/disk/by-uuid/3AD6-FBA1"; 35 fsType = "vfat"; 36 options = [ 37 "fmask=0077" 38 "dmask=0077" 39 ]; 40 }; 41 42 swapDevices = [ ]; 43 44 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 45 # (the default) this is the recommended approach. When using systemd-networkd it's 46 # still possible to use this option, but it's recommended to use it in conjunction 47 # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. 48 networking.useDHCP = lib.mkDefault true; 49 # networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true; 50 51 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 52 hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 53}