Update modules/shared/sops/default.nix

This commit is contained in:
2026-06-08 11:45:29 +02:00
parent 75914fb975
commit a899fe4c6f

View File

@@ -15,17 +15,23 @@ in {
sops.age.generateKey = true;
sops.secrets = lib.mkMerge [
{
wifi = { };
"${config.syscfg.hostname}_ssh_priv" = {
mode = "0400";
owner = config.users.users.${config.syscfg.defaultUser}.name;
group = config.users.users.${config.syscfg.defaultUser}.group;
};
}
(lib.mkIf config.syscfg.net.wlp.enable {
wifi = { };
})
(lib.mkIf config.syscfg.net.wg.enable {
"${config.syscfg.hostname}_wg_priv" = { };
})
(lib.mkIf config.syscfg.monitoring.telegraf.enable {
telegraf = {
mode = "0400";
};
}
];
})];
}