refactor(users): move owner config to users config in manifest
This commit is contained in:
parent
e4b94a9999
commit
4e14779732
2 changed files with 7 additions and 4 deletions
|
@ -1,6 +1,8 @@
|
|||
{ config, ... }:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
inherit (config.flake.manifest) owner;
|
||||
inherit (config.flake.lib) flattenAttrs;
|
||||
inherit (lib.attrsets) filterAttrs;
|
||||
owner = flattenAttrs (filterAttrs (_: v: (v.primary or false)) config.flake.manifest.users);
|
||||
in
|
||||
{
|
||||
flake.modules.nixos.default =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue