Skip to content

Commit

Permalink
Switch to old suites creation method
Browse files Browse the repository at this point in the history
This should allow for a smoother transition from mkProfileAttrs to
rakeleaves
  • Loading branch information
Pacman99 committed Jun 5, 2021
1 parent fb41643 commit b7412fd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@
/* set host specific properties here */
NixOS = { };
};
profiles = [ ./profiles ./users ];
suites = { profiles, users }: with profiles; rec {
base = [ core users.nixos users.root ];
};
/**
# profiles and suites options are deprecated, rakeLeaves is the new standard importer
# Unlke, the old mkProfileAttrs, it stops recursing at folders with a default.nix
# So uncomment and switch to the `importables` method once your profiles have been updated
importables = rec {
profiles = digga.lib.importers.rakeLeaves ./profiles // {
users = digga.lib.importers.rakeLeaves ./users;
Expand All @@ -92,6 +100,7 @@
base = [ core users.nixos users.root ];
};
};
**/
};

home = {
Expand Down

0 comments on commit b7412fd

Please sign in to comment.