diff options
author | Tim Keller <tjkeller.xyz> | 2025-02-09 16:53:01 -0600 |
---|---|---|
committer | Tim Keller <tjkeller.xyz> | 2025-02-09 16:53:01 -0600 |
commit | fcc3434b1ccaca1c86223d015227858b0a0a2688 (patch) | |
tree | 5a5817eabcb77f5be9baac77ad304e6d4cdb97cb /modules/hosts/optiplex | |
parent | 3bc77c8dae2a5bf06789ae80cc0356d271660d62 (diff) | |
download | nixos-fcc3434b1ccaca1c86223d015227858b0a0a2688.tar.xz nixos-fcc3434b1ccaca1c86223d015227858b0a0a2688.zip |
cleanup and small fixes
Diffstat (limited to 'modules/hosts/optiplex')
-rw-r--r-- | modules/hosts/optiplex/configuration.nix | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/modules/hosts/optiplex/configuration.nix b/modules/hosts/optiplex/configuration.nix index acda07f..d018c02 100644 --- a/modules/hosts/optiplex/configuration.nix +++ b/modules/hosts/optiplex/configuration.nix @@ -1,9 +1,5 @@ { config, lib, pkgs, ... }: { - imports = [ - ./hardware-configuration.nix - ]; - networking.hostName = "optiplex"; - + imports = [ ./hardware-configuration.nix ]; bootloader.mode = "efi"; # Allow unfree for nvidia + others @@ -32,10 +28,6 @@ # Disable wifi wifi.enable = false; - networking.hosts = { - "192.168.77.3" = [ "devel" ]; - }; - # Use nvidia driver services.xserver.videoDrivers = [ "nvidia" ]; hardware.nvidia = { @@ -46,14 +38,8 @@ package = config.boot.kernelPackages.nvidiaPackages.stable; # Still good for 1050 }; - # Disable suspend targets - systemd.targets = builtins.listToAttrs (map (name: { - inherit name; - value = { - enable = false; - unitConfig.DefaultDependencies = "no"; - }; - }) ["sleep" "suspend" "hibernate" "hybrid-sleep"]); + # Disable suspend + suspend.enable = false; system.stateVersion = "24.11"; } |