do the same for two other hosts

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-03-28 18:22:51 +02:00
parent b7f95a14c3
commit 2745bd1e35
20 changed files with 297 additions and 286 deletions

View File

@ -1,8 +1,7 @@
{inputs, ...}: let
secretsPath = builtins.toString inputs.mysecrets;
in {
imports = [
inputs.sops-nix.nixosModules.sops
imports = with inputs; [
sops-nix.nixosModules.sops
];
sops = {
@ -11,7 +10,7 @@ in {
keyFile = "/var/lib/sops-nix/key.txt";
generateKey = true;
};
defaultSopsFile = "${secretsPath}/secrets.yaml";
defaultSopsFile = "${toString inputs.mysecrets}/secrets.yaml";
secrets = {
"user-password-hashed".neededForUsers = true;
"ssh-config" = {