diff options
| author | triethyl <triethylammonium@pm.me> | 2025-09-03 20:39:26 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-09-03 20:39:26 -0400 |
| commit | 6c15c64f54280e7dd4549608ccc96509cdd76f32 (patch) | |
| tree | d25aed7c444652ff289acd5a19df19fdbd054d3d /nixos | |
| parent | 963f04ac4931a91c9e6095ebcbeb2b3c8af5294c (diff) | |
prodesk-server: added hardware config
Diffstat (limited to 'nixos')
| -rw-r--r-- | nixos/systems/prodesk-server/hardware.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nixos/systems/prodesk-server/hardware.nix b/nixos/systems/prodesk-server/hardware.nix index e69de29..fc119b2 100644 --- a/nixos/systems/prodesk-server/hardware.nix +++ b/nixos/systems/prodesk-server/hardware.nix @@ -0,0 +1,40 @@ +# 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 = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/e9c37955-a4cb-4842-b897-c701de6df156"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/4AFD-A22B"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/01ca6e4f-8567-4d19-bd06-78a882036373"; } + ]; + + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking + # (the default) this is the recommended approach. When using systemd-networkd it's + # still possible to use this option, but it's recommended to use it in conjunction + # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp1s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} |
