feat: use function instead of manual operations
This commit is contained in:
parent
39757ccc4a
commit
80cec235bb
2 changed files with 10 additions and 5 deletions
|
@ -1,2 +1,6 @@
|
|||
{ lib }:
|
||||
lib.makeExtensible (self: { })
|
||||
lib.makeExtensible (self:
|
||||
{
|
||||
flattenListSet = imports: lib.lists.flatten builtins.concatLists builtins.attrValues imports;
|
||||
}
|
||||
)
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
{ config, self, lib, pkgs, ... }: {
|
||||
home-manager.users.infinidoge = { suites, profiles, ... }: {
|
||||
imports =
|
||||
(with suites; lib.lists.flatten [ base ])
|
||||
++ (with profiles; [ ])
|
||||
++ [ ];
|
||||
imports = lib.flattenListSet {
|
||||
suites = with suites; [ base ];
|
||||
profiles = with profiles; [ ];
|
||||
imports = [ ];
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
discord-plugged
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue