refactor and cleanup
This commit is contained in:
parent
0b4382253f
commit
71f5c6dd61
9 changed files with 35 additions and 48 deletions
17
modules/portable.nix
Normal file
17
modules/portable.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ den, lib, ... }: {
|
||||
den.aspects.portable.nixos = {
|
||||
security.sudo.wheelNeedsPassword = lib.mkForce true;
|
||||
|
||||
networking.firewall.enable = true;
|
||||
|
||||
powerManagement.enable = true;
|
||||
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue