reduce reliance on feature variable
This commit is contained in:
parent
924d87e1c0
commit
f99185cd13
24 changed files with 82 additions and 82 deletions
|
|
@ -8,9 +8,9 @@ let
|
|||
feature = "vscode-server";
|
||||
in
|
||||
{
|
||||
config = lib.mkIf config.${feature}.enable { services.${feature}.enable = true; };
|
||||
config = lib.mkIf config.${feature}.enable { services.vscode-server.enable = true; };
|
||||
|
||||
options.${feature}.enable = lib.mkEnableOption "enables ${feature}";
|
||||
|
||||
imports = [ inputs.${feature}.nixosModules.default ];
|
||||
imports = [ inputs.vscode-server.nixosModules.default ];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue