diff options
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"; } |