update: add switcheroo-control
This commit is contained in:
parent
be53632d53
commit
d53a0a246e
2 changed files with 10 additions and 0 deletions
|
|
@ -46,6 +46,7 @@
|
|||
audio.enable = lib.mkDefault false;
|
||||
fstrim.enable = lib.mkDefault true;
|
||||
tlp.enable = lib.mkDefault false;
|
||||
switcheroo = lib.mkDefault false;
|
||||
};
|
||||
|
||||
gnome.enable = lib.mkDefault false;
|
||||
|
|
|
|||
9
nixosModules/services/switcheroo.nix
Normal file
9
nixosModules/services/switcheroo.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ config, lib, ... }: {
|
||||
options = {
|
||||
settings.services.switcheroo.enable = lib.mkEnableOption "enable switcheroo-control for nvidia optimus management";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.settings.services.switcheroo.enable {
|
||||
services.switcherooControl.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue