mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 21:19:07 +01:00
sops: Do eta-reduction
This commit is contained in:
parent
4ab442f61b
commit
ef4ecd7fb5
1 changed files with 2 additions and 2 deletions
|
|
@ -27,7 +27,7 @@
|
||||||
|> lib.attrValues
|
|> lib.attrValues
|
||||||
|> lib.map (host: host.config.custom.sops)
|
|> lib.map (host: host.config.custom.sops)
|
||||||
|> lib.filter (sops: sops.enable)
|
|> lib.filter (sops: sops.enable)
|
||||||
|> lib.map (sops: mkCreationRule sops);
|
|> lib.map mkCreationRule;
|
||||||
|
|
||||||
userCreationRules =
|
userCreationRules =
|
||||||
self.nixosConfigurations
|
self.nixosConfigurations
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
|> lib.filter (host: host.config |> lib.hasAttr "home-manager")
|
|> lib.filter (host: host.config |> lib.hasAttr "home-manager")
|
||||||
|> lib.map (host: host.config.home-manager.users.seb.custom.sops)
|
|> lib.map (host: host.config.home-manager.users.seb.custom.sops)
|
||||||
|> lib.filter (sops: sops.enable)
|
|> lib.filter (sops: sops.enable)
|
||||||
|> lib.map (sops: mkCreationRule sops);
|
|> lib.map mkCreationRule;
|
||||||
|
|
||||||
jsonConfig = { creation_rules = hostCreationRules ++ userCreationRules; } |> lib.strings.toJSON;
|
jsonConfig = { creation_rules = hostCreationRules ++ userCreationRules; } |> lib.strings.toJSON;
|
||||||
in
|
in
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue