mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
Add more custom libs
This commit is contained in:
parent
f084e91ec0
commit
3acd35c7b2
5 changed files with 22 additions and 27 deletions
|
|
@ -107,7 +107,8 @@ in
|
|||
let
|
||||
genFolders =
|
||||
folders:
|
||||
lib.genAttrs folders (name: {
|
||||
folders
|
||||
|> lib.custom.genAttrs (name: {
|
||||
path = "${dataDir}/${name}";
|
||||
ignorePerms = false;
|
||||
devices = config.services.syncthing.settings.devices |> lib.attrNames;
|
||||
|
|
|
|||
|
|
@ -29,11 +29,10 @@ in
|
|||
|
||||
sops.secrets =
|
||||
cfg.networks
|
||||
|> lib.map (name: {
|
||||
name = "iwd/${name}";
|
||||
value.restartUnits = [ "iwd.service" ];
|
||||
})
|
||||
|> lib.listToAttrs;
|
||||
|> lib.map (name: "iwd/${name}")
|
||||
|> lib.custom.genAttrs (_: {
|
||||
restartUnits = [ "iwd.service" ];
|
||||
});
|
||||
|
||||
systemd.services.iwd.preStart = ''
|
||||
rm --force /var/lib/iwd/*.{psk,8021x}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue