Graphical application installation depends on desktop variable

This commit is contained in:
Yorick Barbanneau 2023-09-09 22:32:20 +02:00
parent b95b0f8ee7
commit 360533b7e8

View file

@ -64,14 +64,18 @@
home.stateVersion = stateVersion; home.stateVersion = stateVersion;
programs.home-manager.enable = true; programs.home-manager.enable = true;
imports = [ imports = [
../modules/home/cli
] ++ (if hostConfig.desktop then
[
../modules/home/desktop ../modules/home/desktop
../modules/home/webcord.nix ../modules/home/webcord.nix
../modules/home/cli
../modules/home/firefox ../modules/home/firefox
../modules/home/foot.nix ../modules/home/foot.nix
../modules/home/zathura.nix ../modules/home/zathura.nix
../modules/home/imv.nix ../modules/home/imv.nix
] ++ ( ]
else []
) ++ (
if hostConfig.gaming then if hostConfig.gaming then
[ ../modules/home/lutris.nix ] [ ../modules/home/lutris.nix ]
else [] else []