Skip to content

Commit

Permalink
feat(nix): install vault on nz
Browse files Browse the repository at this point in the history
  • Loading branch information
sbulav committed Feb 29, 2024
1 parent 92ca853 commit 049c79c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nix/homes/x86_64-linux/sab@nz/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ with lib.custom; {
git = enabled;
direnv = disabled;
};
security.rbw.enable = true;
security = {
rbw = enabled;
vault = enabled;
};
};
}
22 changes: 22 additions & 0 deletions nix/modules/home/security/vault/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
options,
config,
pkgs,
lib,
inputs,
...
}:
with lib;
with lib.custom; let
cfg = config.custom.security.vault;
in {
options.custom.security.vault = with types; {
enable = mkBoolOpt false "Whether or not to enable Hashicort Vault.";
};

config = mkIf cfg.enable {
home.packages = with pkgs; [
vault
];
};
}
1 change: 1 addition & 0 deletions nix/systems/x86_64-linux/nz/hardware-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
networking.useDHCP = lib.mkDefault true;
networking.hosts = {
"192.168.89.200" = ["truenas.sbulav.ru"];
"100.92.128.100" = ["vault-c12.pyn.ru"];
};
# networking.interfaces.enp2s0f0.useDHCP = lib.mkDefault true;
# networking.interfaces.enp5s0.useDHCP = lib.mkDefault true;
Expand Down

0 comments on commit 049c79c

Please sign in to comment.