mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 14:19:08 +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.map (host: host.config.custom.sops)
|
||||
|> lib.filter (sops: sops.enable)
|
||||
|> lib.map (sops: mkCreationRule sops);
|
||||
|> lib.map mkCreationRule;
|
||||
|
||||
userCreationRules =
|
||||
self.nixosConfigurations
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
|> lib.filter (host: host.config |> lib.hasAttr "home-manager")
|
||||
|> lib.map (host: host.config.home-manager.users.seb.custom.sops)
|
||||
|> lib.filter (sops: sops.enable)
|
||||
|> lib.map (sops: mkCreationRule sops);
|
||||
|> lib.map mkCreationRule;
|
||||
|
||||
jsonConfig = { creation_rules = hostCreationRules ++ userCreationRules; } |> lib.strings.toJSON;
|
||||
in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue