From 360533b7e8d36196eeb7995b8516b804226f76a8 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Sat, 9 Sep 2023 22:32:20 +0200 Subject: [PATCH] Graphical application installation depends on desktop variable --- nixos/default.nix | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/nixos/default.nix b/nixos/default.nix index a21e7f6..9d73637 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -64,14 +64,18 @@ home.stateVersion = stateVersion; programs.home-manager.enable = true; imports = [ - ../modules/home/desktop - ../modules/home/webcord.nix ../modules/home/cli - ../modules/home/firefox - ../modules/home/foot.nix - ../modules/home/zathura.nix - ../modules/home/imv.nix - ] ++ ( + ] ++ (if hostConfig.desktop then + [ + ../modules/home/desktop + ../modules/home/webcord.nix + ../modules/home/firefox + ../modules/home/foot.nix + ../modules/home/zathura.nix + ../modules/home/imv.nix + ] + else [] + ) ++ ( if hostConfig.gaming then [ ../modules/home/lutris.nix ] else []