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 imports = [
11 (modulesPath + "/installer/scan/not-detected.nix")
12 ];
13
14 boot = {
15 initrd.availableKernelModules = ["nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod"];
16 initrd.kernelModules = [];
17 kernelModules = ["kvm-amd"];
18 extraModulePackages = [];
19 };
20 fileSystems."/" = {
21 device = "/dev/disk/by-uuid/62735ab0-1583-4c09-9ba7-a0054f417bb1";
22 fsType = "btrfs";
23 options = ["subvol=@" "noatime" "compress=zstd"];
24 };
25
26 fileSystems."/boot" = {
27 device = "/dev/disk/by-uuid/8AC7-C912";
28 fsType = "vfat";
29 options = ["fmask=0077" "dmask=0077"];
30 };
31
32 swapDevices = [
33 {
34 device = "/var/lib/swapfile";
35 size = 64 * 1024;
36 }
37 ];
38
39 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
40 # (the default) this is the recommended approach. When using systemd-networkd it's
41 # still possible to use this option, but it's recommended to use it in conjunction
42 # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
43 networking.useDHCP = lib.mkDefault true;
44 # networking.interfaces.enp1s0f0.useDHCP = lib.mkDefault true;
45 # networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
46
47 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
48 hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
49}