diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-06-22 22:57:47 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-06-22 22:57:47 -0500 |
| commit | 7b5ac391f38c8e382b654086c95504e3e178f4e9 (patch) | |
| tree | 465b2fef363e234690331cd3e2a6449a725c8045 /hosts/poweredge-pro/configuration.nix | |
| parent | 671ba3d42f6c9017fc57876f3c26d22227b1ffef (diff) | |
| download | nixos-7b5ac391f38c8e382b654086c95504e3e178f4e9.tar.xz nixos-7b5ac391f38c8e382b654086c95504e3e178f4e9.zip | |
poweredge pro hostpoweredge-pro
Diffstat (limited to 'hosts/poweredge-pro/configuration.nix')
| -rw-r--r-- | hosts/poweredge-pro/configuration.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/hosts/poweredge-pro/configuration.nix b/hosts/poweredge-pro/configuration.nix new file mode 100644 index 0000000..691dedb --- /dev/null +++ b/hosts/poweredge-pro/configuration.nix @@ -0,0 +1,47 @@ +{ config, ... }: { + # Setup bootloader + boot._loader.enable = true; + + # Enable common options + _archetypes = { + profiles = { + headless = { + enable = true; + home.users.timmy.enable = true; + }; + #zfs.enable = true; + }; + }; + + # Import zfs pools + #boot.zfs.extraPools = [ "storage" ]; + + # Enable user timmy + _users.timmy.enable = true; + + # Without this, "ZFS requires networking.hostId to be set" will be raised + #networking.hostId = "4d9e002f"; + + + nixpkgs.config.allowUnfree = true; + nixpkgs.config.cudaSupport = true; + + # NVIDIA + services.xserver.videoDrivers = [ "nvidia" ]; # xserver.videoDrivers does not imply X + hardware.graphics.enable = true; + hardware.nvidia = { + modesetting.enable = true; # Required + nvidiaSettings = false; # Don't need gui + open = false; + package = config.boot.kernelPackages.nvidiaPackages.legacy_580; # Support for Tesla P100 + powerManagement.enable = false; # Can cause bugs + powerManagement.finegrained = false; # Only works on turing and newer + }; + + # Packages + environment.systemPackages = with pkgs; [ + config.hardware.nvidia.package # nvidia-smi + ]; + + system.stateVersion = "26.05"; +} |
