Update modules/shared/sops/default.nix
This commit is contained in:
@@ -15,17 +15,23 @@ in {
|
|||||||
sops.age.generateKey = true;
|
sops.age.generateKey = true;
|
||||||
|
|
||||||
sops.secrets = lib.mkMerge [
|
sops.secrets = lib.mkMerge [
|
||||||
|
|
||||||
{
|
{
|
||||||
wifi = { };
|
|
||||||
"${config.syscfg.hostname}_ssh_priv" = {
|
"${config.syscfg.hostname}_ssh_priv" = {
|
||||||
mode = "0400";
|
mode = "0400";
|
||||||
owner = config.users.users.${config.syscfg.defaultUser}.name;
|
owner = config.users.users.${config.syscfg.defaultUser}.name;
|
||||||
group = config.users.users.${config.syscfg.defaultUser}.group;
|
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" = { };
|
"${config.syscfg.hostname}_wg_priv" = { };
|
||||||
|
})
|
||||||
|
(lib.mkIf config.syscfg.monitoring.telegraf.enable {
|
||||||
telegraf = {
|
telegraf = {
|
||||||
mode = "0400";
|
mode = "0400";
|
||||||
};
|
};
|
||||||
}
|
})];
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user