refactor(nixos): inline RomM environment path
This commit is contained in:
@@ -5,7 +5,6 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.guests.romm;
|
cfg = config.guests.romm;
|
||||||
environmentFile = "/run/secrets/romm.env";
|
|
||||||
rommUid = config.registry."stable-uid".${config.networking.hostName}.romm;
|
rommUid = config.registry."stable-uid".${config.networking.hostName}.romm;
|
||||||
redisUid = config.registry."stable-uid".${config.networking.hostName}."redis-romm";
|
redisUid = config.registry."stable-uid".${config.networking.hostName}."redis-romm";
|
||||||
secrets = {
|
secrets = {
|
||||||
@@ -146,7 +145,7 @@ in
|
|||||||
group = "storage";
|
group = "storage";
|
||||||
mode = "2770";
|
mode = "2770";
|
||||||
};
|
};
|
||||||
${environmentFile} = {
|
"/run/secrets/romm.env" = {
|
||||||
file = config.sops.templates."romm.env".path;
|
file = config.sops.templates."romm.env".path;
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user