sops: decrypt secrets AFTER /nix/ssh has been mounted
This commit is contained in:
@@ -102,6 +102,13 @@ in
|
|||||||
# { file = "/home/test2"; persistentStoragePath = "/nix/persist"; }
|
# { file = "/home/test2"; persistentStoragePath = "/nix/persist"; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.sane-sops = {
|
||||||
|
description = "sops relies on /etc/ssh being available, so re-run its activation AFTER fs-local";
|
||||||
|
script = config.system.activationScripts.setupSecrets.text;
|
||||||
|
after = [ "fs-local.target" ];
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user