latest setup (with amdgpu)
This commit is contained in:
1 parent
1db0ddf0fe
commit
2897ff5dc8
9 files changed
+211
-1
No files matched your search
+4
-1
@@ -31,16 +31,19 @@
|
||||
appimage-run
|
||||
htop
|
||||
nfs-utils
|
||||
cachix
|
||||
rocmPackages.rpp
|
||||
rocmPackages.rocm-smi
|
||||
(import (fetchTarball "https://install.devenv.sh/latest")).default
|
||||
];
|
||||
services.nfs.server.enable = true;
|
||||
# Default Session Variables
|
||||
environment.sessionVariables = rec {
|
||||
# PROMPT = "%(!.%{%F{yellow}%}.)\$USER@%{\$fg[white]%}%M \${ret_status} %{\$fg[cyan]%}%c%{\$reset_color%} $(git_prompt_info)";
|
||||
};
|
||||
# Exclude Gnome packages
|
||||
environment.gnome.excludePackages = [
|
||||
pkgs.gnome-tour
|
||||
pkgs.gnome-console
|
||||
];
|
||||
services.xserver.excludePackages = [
|
||||
pkgs.xterm
|
||||
|
||||
@@ -13,6 +13,31 @@
|
||||
xkbVariant = "";
|
||||
};
|
||||
|
||||
# Advance Power Management
|
||||
services.power-profiles-daemon.enable = false;
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
CPU_BOOST_ON_BAT = 0;
|
||||
CPU_SCALING_GOVERNOR_ON_BATTERY = "powersave";
|
||||
START_CHARGE_THRESH_BAT0 = 90;
|
||||
STOP_CHARGE_THRESH_BAT0 = 97;
|
||||
RUNTIME_PM_ON_BAT = "auto";
|
||||
PLATFORM_PROFILE_ON_AC = "balanced";
|
||||
PLATFORM_PROFILE_ON_BAT = "low-power";
|
||||
};
|
||||
};
|
||||
|
||||
# Logind
|
||||
services.logind = {
|
||||
lidSwitch = "suspend-then-hibernate";
|
||||
extraConfig = ''
|
||||
HandlePowerKey=suspend-then-hibernate
|
||||
IdleAction=suspend-then-hibernate
|
||||
IdleActionSec=2m
|
||||
'';
|
||||
};
|
||||
systemd.sleep.extraConfig = "HibernateDelaySec=30m";
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user