My NixOS configuration (mirror)
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 imports = [
12 (modulesPath + "/installer/scan/not-detected.nix")
13 ];
14
15 boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid"];
16 boot.initrd.kernelModules = [];
17 boot.kernelModules = ["kvm-amd"];
18 boot.extraModulePackages = [];
19
20 fileSystems."/" = {
21 device = "/dev/disk/by-uuid/35db7edb-4156-4b1c-a12e-f0d60aa7008c";
22 fsType = "ext4";
23 };
24
25 fileSystems."/boot" = {
26 device = "/dev/disk/by-uuid/18F3-3F78";
27 fsType = "vfat";
28 options = ["fmask=0077" "dmask=0077"];
29 };
30
31 fileSystems."/mnt/steamdrive" = {
32 device = "/dev/disk/by-uuid/dce135d1-177b-46fb-893f-14ef040da1fb";
33 fsType = "ext4";
34 };
35
36 swapDevices = [
37 {device = "/dev/disk/by-uuid/fe6f9730-5c4b-4be4-88b9-7c3ad195c30f";}
38 ];
39
40 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
41 # (the default) this is the recommended approach. When using systemd-networkd it's
42 # still possible to use this option, but it's recommended to use it in conjunction
43 # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
44 networking.useDHCP = lib.mkDefault true;
45 # networking.interfaces.docker0.useDHCP = lib.mkDefault true;
46 # networking.interfaces.eno1.useDHCP = lib.mkDefault true;
47 # networking.interfaces.wlp10s0.useDHCP = lib.mkDefault true;
48
49 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
50 hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
51}