Add tools.secrets option
This commit is contained in:
parent
6bedd27dea
commit
6d574b9a6e
4 changed files with 27 additions and 5 deletions
11
common/default.nix
Normal file
11
common/default.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
with lib;
|
||||
{
|
||||
options.tools.secrets = {
|
||||
enable = mkEnableOption "Enable secret-management tools";
|
||||
};
|
||||
|
||||
config = mkIf config.tools.secrets.enable {
|
||||
environment.systemPackages = [ pkgs.git-crypt ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue