feat(nixos): add host sops helper

This commit is contained in:
2026-09-10 09:34:23 -04:00
parent 31c2369d1f
commit eefe203045
2 changed files with 8 additions and 1 deletions

View File

@@ -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.";
};
};

View File

@@ -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.