diff options
Diffstat (limited to 'hosts/mantis/hardware-configuration.nix')
-rw-r--r-- | hosts/mantis/hardware-configuration.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/hosts/mantis/hardware-configuration.nix b/hosts/mantis/hardware-configuration.nix new file mode 100644 index 0000000..8d7f39a --- /dev/null +++ b/hosts/mantis/hardware-configuration.nix | |||
@@ -0,0 +1,40 @@ | |||
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 = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; | ||
12 | boot.initrd.kernelModules = [ ]; | ||
13 | boot.kernelModules = [ "kvm-intel" ]; | ||
14 | boot.extraModulePackages = [ ]; | ||
15 | |||
16 | fileSystems."/" = | ||
17 | { device = "/dev/disk/by-uuid/e3eda8a2-b5fe-4458-988c-48579a7cc6c6"; | ||
18 | fsType = "ext4"; | ||
19 | }; | ||
20 | |||
21 | fileSystems."/boot" = | ||
22 | { device = "/dev/disk/by-uuid/A170-EC57"; | ||
23 | fsType = "vfat"; | ||
24 | }; | ||
25 | |||
26 | swapDevices = | ||
27 | [ { device = "/dev/disk/by-uuid/61cb6a91-b916-40b9-b231-c04378629d90"; } | ||
28 | ]; | ||
29 | |||
30 | # Enables DHCP on each ethernet and wireless interface. In case of scripted networking | ||
31 | # (the default) this is the recommended approach. When using systemd-networkd it's | ||
32 | # still possible to use this option, but it's recommended to use it in conjunction | ||
33 | # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. | ||
34 | networking.useDHCP = lib.mkDefault true; | ||
35 | # networking.interfaces.enp2s0.useDHCP = lib.mkDefault true; | ||
36 | # networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true; | ||
37 | |||
38 | nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; | ||
39 | hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; | ||
40 | } | ||