mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
Replace some uses of lib.mapAttrsToList
This commit is contained in:
parent
d5f3296bf0
commit
be8712c85a
4 changed files with 12 additions and 8 deletions
|
|
@ -17,7 +17,8 @@ in
|
|||
type = lib.types.listOf lib.types.nonEmptyStr;
|
||||
default =
|
||||
self.nixosConfigurations
|
||||
|> lib.mapAttrsToList (_: value: value.config.meta.domains.list)
|
||||
|> lib.attrValues
|
||||
|> lib.map (value: value.config.meta.domains.list)
|
||||
|> lib.concatLists;
|
||||
readOnly = true;
|
||||
};
|
||||
|
|
@ -29,7 +30,8 @@ in
|
|||
let
|
||||
duplicateDomains =
|
||||
self.nixosConfigurations
|
||||
|> lib.mapAttrsToList (_: value: value.options.meta.domains.list.definitionsWithLocations)
|
||||
|> lib.attrValues
|
||||
|> lib.map (value: value.options.meta.domains.list.definitionsWithLocations)
|
||||
|> lib.concatLists
|
||||
|> lib.concatMap (
|
||||
entry:
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ in
|
|||
};
|
||||
|
||||
systemd.tmpfiles.rules =
|
||||
resticBackups |> lib.mapAttrsToList (name: _: "d /var/cache/restic-backups-${name} 700 - - -");
|
||||
resticBackups |> lib.attrNames |> lib.map (name: "d /var/cache/restic-backups-${name} 700 - - -");
|
||||
|
||||
services.restic.backups =
|
||||
resticBackups
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue