users/infinidoge: refactor imports

This commit is contained in:
Infinidoge 2021-11-03 20:18:06 -04:00
parent 52f9ea2b23
commit dfe94aba0f

View file

@ -1,22 +1,27 @@
{ config, self, lib, pkgs, suites, profiles, inputs, ... }: { { config, self, lib, pkgs, suites, profiles, inputs, ... }: {
imports = lib.lists.flatten [ imports = lib.flatten [
(with suites; [ develop ]) (with suites; [ develop ])
(with profiles; [ virtualization ]) (with profiles; [ virtualization ])
]; ];
home-manager.users.infinidoge = { config, main, suites, profiles, ... }: { home-manager.users.infinidoge = { config, main, suites, profiles, ... }: {
imports = lib.lists.flatten ([ imports = lib.flatten [
(with suites; [ (with suites; [
base base
(lib.optional main.services.xserver.enable graphic)
]) ])
(with profiles; [ (with profiles; [
pass pass
(lib.optionals main.services.xserver.enable [
discord
gaming
]) ])
] ++ (if main.services.xserver.enable then [ ])
(with suites; [ graphic ]) ];
(with profiles; [ discord gaming ])
] else [ ]));
programs.git = { programs.git = {
userEmail = "infinidoge@doge-inc.net"; userEmail = "infinidoge@doge-inc.net";
@ -40,7 +45,10 @@
"blugon".source = ./config/blugon; "blugon".source = ./config/blugon;
}; };
home.packages = lib.mkIf main.services.xserver.enable (with pkgs; [ home.packages = with pkgs; lib.flatten [
btrfs-progs
(lib.optionals main.services.xserver.enable [
hydrus hydrus
speedcrunch speedcrunch
@ -51,7 +59,8 @@
gnome.gnome-screenshot gnome.gnome-screenshot
sxiv sxiv
]); ])
];
}; };
environment = { environment = {