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 }:
|
||||||
lib.makeExtensible (self: { })
|
lib.makeExtensible (self:
|
||||||
|
{
|
||||||
|
flattenListSet = imports: lib.lists.flatten builtins.concatLists builtins.attrValues imports;
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
{ config, self, lib, pkgs, ... }: {
|
{ config, self, lib, pkgs, ... }: {
|
||||||
home-manager.users.infinidoge = { suites, profiles, ... }: {
|
home-manager.users.infinidoge = { suites, profiles, ... }: {
|
||||||
imports =
|
imports = lib.flattenListSet {
|
||||||
(with suites; lib.lists.flatten [ base ])
|
suites = with suites; [ base ];
|
||||||
++ (with profiles; [ ])
|
profiles = with profiles; [ ];
|
||||||
++ [ ];
|
imports = [ ];
|
||||||
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
discord-plugged
|
discord-plugged
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue