Various minor fixes
This commit is contained in:
+15
-5
@@ -240,15 +240,25 @@ in {
|
||||
|
||||
boot.tmpOnTmpfs = host-cfg.tmp-on-tmpfs;
|
||||
|
||||
fudo.secrets.host-secrets.${hostname} = {
|
||||
host-keytab = mkIf (fudo.secrets.files.host-keytabs.${hostname} != null) {
|
||||
source-file = fudo.secrets.files.host-keytabs.${hostname};
|
||||
fudo.secrets.host-secrets.${hostname} = let
|
||||
keytab-file =
|
||||
if (hasAttr hostname config.fudo.secrets.files.host-keytabs) then
|
||||
config.fudo.secrets.files.host-keytabs.${hostname}
|
||||
else null;
|
||||
|
||||
build-private-key-file =
|
||||
if (hasAttr hostname config.fudo.secrets.files.build-keypairs) then
|
||||
config.fudo.secrets.files.build-keypairs.${hostname}
|
||||
else null;
|
||||
in {
|
||||
host-keytab = mkIf (keytab-file != null) {
|
||||
source-file = keytab-file;
|
||||
target-file = "/etc/krb5.keytab";
|
||||
user = "root";
|
||||
};
|
||||
|
||||
build-private-key = mkIf (fudo.secrets.files.build-keypairs.${hostname} != null) {
|
||||
source-file = fudo.secrets.files.build-keypairs.${hostname}.private-key;
|
||||
build-private-key = mkIf (build-private-key-file != null) {
|
||||
source-file = build-private-key-file;
|
||||
target-file = "/var/run/nix-build/host.key";
|
||||
user = "root";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user