Add nvfancontrol

This commit is contained in:
Dave Gallant
2022-05-27 23:31:24 -04:00
parent 1f6db755d5
commit 0cb0739470
5 changed files with 34 additions and 22 deletions

View File

@@ -2,21 +2,17 @@
{ {
# Enable the GNOME Desktop Environment. services.xserver = {
services.xserver.enable = true;
services.xserver.displayManager.gdm = {
enable = true; enable = true;
wayland = false; displayManager = {
startx.enable = true;
gdm = {
enable = true;
wayland = false;
};
};
desktopManager.gnome.enable = true;
}; };
services.xserver.desktopManager.gnome.enable = true;
services.logrotate.checkConfig = false; services.logrotate.checkConfig = false;
services.xserver.displayManager = {
autoLogin.enable = true;
autoLogin.user = "dave";
job.preStart = "sleep 5";
};
} }

View File

@@ -181,6 +181,7 @@ in
minecraft minecraft
mojave-gtk-theme mojave-gtk-theme
netdata netdata
nvfancontrol
pavucontrol pavucontrol
pinentry-curses pinentry-curses
postman postman

12
flake.lock generated
View File

@@ -81,11 +81,11 @@
}, },
"locked": { "locked": {
"dir": "contrib", "dir": "contrib",
"lastModified": 1653533365, "lastModified": 1653602345,
"narHash": "sha256-tPFBnXXBf2fxHtk5e9//7BL6LbxthtYkgznjNMrx9Ls=", "narHash": "sha256-HJOCS3nrZn9XmdtrRYtE3c/THGSduROYN7c4eXkM6gY=",
"owner": "neovim", "owner": "neovim",
"repo": "neovim", "repo": "neovim",
"rev": "7b952793d5c46e862a9cdec3d6ac4762370296ed", "rev": "e2940d3c79586503c0a645010ae56c7097ca7c3f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -102,11 +102,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1653553105, "lastModified": 1653639429,
"narHash": "sha256-jyWSZMHmaGUmHq3Susugsf6a1/ejR9aaUaZHJ+qoOcs=", "narHash": "sha256-pzGqMCjWzluNLelTsEf6ZvNqfit8tRlOqoK3MsGZtgs=",
"owner": "nix-community", "owner": "nix-community",
"repo": "neovim-nightly-overlay", "repo": "neovim-nightly-overlay",
"rev": "548165a9d107cb9d4ac84ede0ec6ff5dc815a447", "rev": "b2cf1606e66564f1d277e76aec8bf7474ffffd04",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -365,4 +365,14 @@ in
home.file."..aws/config".source = ./.aws/config; home.file."..aws/config".source = ./.aws/config;
# https://github.com/foucault/nvfancontrol#use-and-configure
home.file.".config/nvfancontrol.conf".text = ''
25 45
45 50
50 60
60 75
70 80
80 90
'';
} }

View File

@@ -10,9 +10,8 @@
hardware.nvidia.modesetting.enable = true; hardware.nvidia.modesetting.enable = true;
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable; hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
networking.hostName = "hephaestus";
networking = { networking = {
hostName = "hephaestus";
interfaces.enp34s0 = { interfaces.enp34s0 = {
useDHCP = true; useDHCP = true;
/* ipv4.addresses = [ */ /* ipv4.addresses = [ */
@@ -38,6 +37,12 @@
services.sshd.enable = true; services.sshd.enable = true;
services.tailscale = { enable = true; }; services.tailscale = { enable = true; };
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver = {
videoDrivers = [ "nvidia" ];
deviceSection = ''
Option "Coolbits" "4"
'';
exportConfiguration = true;
};
} }