From 0ce706667d4950d80b7cfd6a8db11a55bf853c90 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Mon, 11 Nov 2024 11:19:02 +0100 Subject: [PATCH] conditional imports --- common/home.nix | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/common/home.nix b/common/home.nix index d49413b..d018438 100644 --- a/common/home.nix +++ b/common/home.nix @@ -26,14 +26,17 @@ let }; in { - imports = [ - ../modules/hyprland.nix - ../modules/games - ../modules/applications - ./nvim/nvim.nix - ./discord/discord.nix - ./spotify.nix - ]; + imports = + [ + ../modules/applications + ../modules/games + ../modules/hyprland.nix + ./nvim/nvim.nix + ] + ++ lib.optionals enableGraphical [ + ./discord/discord.nix + ./spotify.nix + ]; home = { file = {