diff --git a/configs/nixos/guests/valheim.nix b/configs/nixos/guests/valheim.nix index 276b5bb..6c38233 100644 --- a/configs/nixos/guests/valheim.nix +++ b/configs/nixos/guests/valheim.nix @@ -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."; }; }; diff --git a/configs/nixos/modules/shell/fish/default.nix b/configs/nixos/modules/shell/fish/default.nix index de7e8cd..02e7aa0 100644 --- a/configs/nixos/modules/shell/fish/default.nix +++ b/configs/nixos/modules/shell/fish/default.nix @@ -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.