Update modules/shared/sops/default.nix
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
];
|
||||
})];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user