users/infinidoge: refactor imports
This commit is contained in:
parent
52f9ea2b23
commit
dfe94aba0f
1 changed files with 23 additions and 14 deletions
|
@ -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 = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue