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, ... }: {
|
||||
imports = lib.lists.flatten [
|
||||
imports = lib.flatten [
|
||||
(with suites; [ develop ])
|
||||
|
||||
(with profiles; [ virtualization ])
|
||||
];
|
||||
|
||||
home-manager.users.infinidoge = { config, main, suites, profiles, ... }: {
|
||||
imports = lib.lists.flatten ([
|
||||
imports = lib.flatten [
|
||||
(with suites; [
|
||||
base
|
||||
|
||||
(lib.optional main.services.xserver.enable graphic)
|
||||
])
|
||||
(with profiles; [
|
||||
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 = {
|
||||
userEmail = "infinidoge@doge-inc.net";
|
||||
|
@ -40,7 +45,10 @@
|
|||
"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
|
||||
|
||||
speedcrunch
|
||||
|
@ -51,7 +59,8 @@
|
|||
gnome.gnome-screenshot
|
||||
|
||||
sxiv
|
||||
]);
|
||||
])
|
||||
];
|
||||
};
|
||||
|
||||
environment = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue