feat(nixos): add host sops helper
This commit is contained in:
@@ -46,7 +46,7 @@ in
|
||||
|
||||
passwordSecret = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "services/valheim/password";
|
||||
default = "services/game-servers/password";
|
||||
description = "SOPS secret name containing the Valheim server password.";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -103,6 +103,13 @@ in
|
||||
body = builtins.readFile ./functions/deploy-to.fish;
|
||||
};
|
||||
|
||||
sops-host = {
|
||||
description = "Run sops with the host age key";
|
||||
body = ''
|
||||
sudo env SOPS_AGE_KEY_FILE=/var/lib/sops-nix/key.txt nix shell nixpkgs#sops -c sops $argv
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
# Rendered by home-manager into ~/.config/fish/config.fish.
|
||||
|
||||
Reference in New Issue
Block a user