Skip to content

Commit

Permalink
klaus: enable proprietary nvidia driver
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborpilz committed Mar 2, 2024
1 parent f0b1e29 commit 1c6f8bc
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions hosts/nixos/klaus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ with lib;
boot.zfs.forceImportRoot = false;
boot.zfs.extraPools = [ "zpool" ];

boot.kernelParams = [ "cpufreq.default_governor=conservative" ];

networking.hostName = "klaus";
networking.hostId = "a5fdeadb";

time.timeZone = "Europe/Berlin";


networking.useDHCP = false;

networking.wg-quick.interfaces = {
wg0 = {
address = [ "10.0.0.2/24" "fdc9:281f:04d7:9ee9::2/64" ];
Expand All @@ -43,12 +44,25 @@ with lib;
];
};
};
networking.firewall.enable = false;
networking.networkmanager.enable = true;

# networking.useNetworkd = false;

networking.firewall.enable = false;
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};

networking.networkmanager.enable = true;
services.xserver.videoDrivers = ["nvidia"];

hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = true;
open = false; # The proprietary one is just better :(
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};

i18n.defaultLocale = "en_US.UTF-8";

Expand Down Expand Up @@ -171,7 +185,7 @@ with lib;
sopsFile = config.sops.secrets.deluge.path;
};
komga.enable = true;
plex.enable = false;
plex.enable = true;
immich.enable = true;
};
};
Expand Down

0 comments on commit 1c6f8bc

Please sign in to comment.