mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
Replace lib' with self.lib
This commit is contained in:
parent
07c46beefb
commit
8ba17ac1ce
10 changed files with 25 additions and 31 deletions
|
|
@ -2,7 +2,6 @@
|
|||
config,
|
||||
self,
|
||||
lib,
|
||||
lib',
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
|
@ -56,8 +55,8 @@ in
|
|||
message = "Running syncthing on a server requires `gui.domain` to be set";
|
||||
}
|
||||
{
|
||||
assertion = (cfg.gui.domain != null) -> (lib'.isPrivateDomain cfg.gui.domain);
|
||||
message = lib'.mkUnprotectedMessage "Syncthing-GUI";
|
||||
assertion = (cfg.gui.domain != null) -> (self.lib.isPrivateDomain cfg.gui.domain);
|
||||
message = self.lib.mkUnprotectedMessage "Syncthing-GUI";
|
||||
}
|
||||
];
|
||||
|
||||
|
|
@ -113,7 +112,7 @@ in
|
|||
|
||||
folders =
|
||||
cfg.folders
|
||||
|> lib'.genAttrs (name: {
|
||||
|> self.lib.genAttrs (name: {
|
||||
path = "${dataDir}/${name}";
|
||||
devices = config.services.syncthing.settings.devices |> lib.attrNames;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue