feat: add 'secrets' module to work host
This commit is contained in:
@@ -28,6 +28,7 @@ in
|
|||||||
../../modules/kitty.nix
|
../../modules/kitty.nix
|
||||||
../../modules/nvim.nix
|
../../modules/nvim.nix
|
||||||
../../modules/pandoc.nix
|
../../modules/pandoc.nix
|
||||||
|
../../modules/secrets
|
||||||
../../modules/browser
|
../../modules/browser
|
||||||
../../modules/shell
|
../../modules/shell
|
||||||
../../modules/music
|
../../modules/music
|
||||||
@@ -99,6 +100,10 @@ in
|
|||||||
github.enable = true;
|
github.enable = true;
|
||||||
gitlab.enable = true;
|
gitlab.enable = true;
|
||||||
pandoc.enable = true;
|
pandoc.enable = true;
|
||||||
|
secrets = {
|
||||||
|
enable = true;
|
||||||
|
vault.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
shell.bash.enable = true;
|
shell.bash.enable = true;
|
||||||
starship.enable = true;
|
starship.enable = true;
|
||||||
|
|||||||
20
home/modules/secrets/default.nix
Normal file
20
home/modules/secrets/default.nix
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
options.secrets = {
|
||||||
|
enable = lib.mkEnableOption "secrets";
|
||||||
|
};
|
||||||
|
|
||||||
|
imports = [ ./vault.nix ];
|
||||||
|
|
||||||
|
config = lib.mkIf config.secrets.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
sops
|
||||||
|
age
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
16
home/modules/secrets/vault.nix
Normal file
16
home/modules/secrets/vault.nix
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
options.secrets.vault = {
|
||||||
|
enable = lib.mkEnableOption "vault CLI";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.secrets.vault.enable {
|
||||||
|
home.packages = with pkgs; [ vault-bin ];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user