me like nix
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{ config, lib, pkgs, modulesPath, ... }:
5
6{
7 imports =
8 [ (modulesPath + "/installer/scan/not-detected.nix")
9 ];
10
11 boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "usbhid" "sd_mod" ];
12 boot.initrd.kernelModules = [ ];
13 boot.kernelModules = [ "kvm-amd" ];
14 boot.extraModulePackages = [ ];
15
16 fileSystems."/" =
17 { device = "/dev/disk/by-uuid/2c281977-7c4d-40a4-af72-ec7dddeae913";
18 fsType = "ext4";
19 };
20
21 boot.initrd.luks.devices."luks-17e0181f-d40d-4d21-a014-0b75154e9668".device = "/dev/disk/by-uuid/17e0181f-d40d-4d21-a014-0b75154e9668";
22
23 fileSystems."/boot" =
24 { device = "/dev/disk/by-uuid/D830-50AC";
25 fsType = "vfat";
26 options = [ "fmask=0077" "dmask=0077" ];
27 };
28
29 swapDevices =
30 [ { device = "/dev/disk/by-uuid/06b535a2-5695-450b-84a3-f759474d0b04"; }
31 ];
32
33 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
34 # (the default) this is the recommended approach. When using systemd-networkd it's
35 # still possible to use this option, but it's recommended to use it in conjunction
36 # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
37 networking.useDHCP = lib.mkDefault true;
38 # networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
39
40 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
41 hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
42}