refactor(users): move owner config to users config in manifest

This commit is contained in:
Mohammad Rafiq 2025-07-07 06:31:21 +08:00
parent 2439544ccf
commit 94728cdc83
No known key found for this signature in database
2 changed files with 7 additions and 4 deletions

View file

@ -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 =