diff options
| author | Skullheadx <admonty1@protonmail.com> | 2026-05-23 20:19:30 -0400 |
|---|---|---|
| committer | Skullheadx <admonty1@protonmail.com> | 2026-05-23 20:19:30 -0400 |
| commit | 310cd7c6638db82395efe7083e41930cb7f65b6d (patch) | |
| tree | 9c4101d79bb3abfa3c085beca898a17e196791d3 /hosts/icon | |
| parent | add user (diff) | |
| download | nixos-310cd7c6638db82395efe7083e41930cb7f65b6d.tar.gz nixos-310cd7c6638db82395efe7083e41930cb7f65b6d.tar.bz2 nixos-310cd7c6638db82395efe7083e41930cb7f65b6d.zip | |
add hardware config for server
Diffstat (limited to '')
| -rw-r--r-- | hosts/icon/hardware-configuration.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/hosts/icon/hardware-configuration.nix b/hosts/icon/hardware-configuration.nix new file mode 100644 index 0000000..e22a293 --- /dev/null +++ b/hosts/icon/hardware-configuration.nix @@ -0,0 +1,33 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/2e969677-74d5-4c22-a708-fa27ba11f2f9"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/C246-075A"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/c562b7b7-2a7e-4416-8223-120956671eae"; } + ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} |
