diff options
author | Tim Keller <tjkeller.xyz> | 2025-02-05 21:18:11 -0600 |
---|---|---|
committer | Tim Keller <tjkeller.xyz> | 2025-02-05 21:18:11 -0600 |
commit | 1ef7aa8333c0851d0ca5ae556b5f1d12fad87b08 (patch) | |
tree | 22643010f24e795439c439317bd7c132b58b3ac9 /modules/hosts/optiplex/configuration.nix | |
parent | 430df434c76786e87ab03c0b607c2fec8187173f (diff) | |
download | nixos-1ef7aa8333c0851d0ca5ae556b5f1d12fad87b08.tar.xz nixos-1ef7aa8333c0851d0ca5ae556b5f1d12fad87b08.zip |
add optiplex as new host
Diffstat (limited to 'modules/hosts/optiplex/configuration.nix')
-rw-r--r-- | modules/hosts/optiplex/configuration.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/modules/hosts/optiplex/configuration.nix b/modules/hosts/optiplex/configuration.nix new file mode 100644 index 0000000..cbde612 --- /dev/null +++ b/modules/hosts/optiplex/configuration.nix @@ -0,0 +1,50 @@ +{ config, lib, pkgs, ... }: { + imports = [ + ./hardware-configuration.nix + ]; + networking.hostName = "optiplex"; + + bootloader.mode = "efi"; + + # Allow unfree for nvidia + others + nixpkgs.config.allowUnfree = true; + + # Enable extra software pkgs + software.desktop = { + chromium.enable = true; + cad.enable = true; + crypto.enable = true; + graphics.enable = true; + office.enable = true; + utilities.enable = true; + }; + + # Install more programs + environment.systemPackages = with pkgs; [ + prismlauncher + spotify + #vintagestory + ]; + + # Enable network drives + nas.enable = true; + + # Disable wifi + wifi.enable = false; + + networking.hosts = { + "192.168.77.3" = [ "devel" ]; + }; + + # Use nvidia driver + services.xserver.videoDrivers = [ "nvidia" ]; + hardware.nvidia = { + modesetting.enable = true; # Required + powerManagement.enable = false; # Can cause bugs + nvidiaSettings = true; + open = false; # Not compatible w/ GTX-1050 + package = config.boot.kernelPackages.nvidiaPackages.stable; # Still good for 1050 + }; + + system.stateVersion = "24.11"; +} |