flake: rework modules folder structure
This commit is contained in:
parent
5d64c56d40
commit
0952665f6b
56 changed files with 3 additions and 3 deletions
10
modules/nixos/services/switcheroo.nix
Normal file
10
modules/nixos/services/switcheroo.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ 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