From 0c13466cb534871659eb4449e665f3e3b8e18b10 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 7 Mar 2024 18:44:09 +0800 Subject: [PATCH] users/foo-dogsquared/dotfiles: fix conditionals --- .../foo-dogsquared/modules/dotfiles.nix | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/configs/home-manager/foo-dogsquared/modules/dotfiles.nix b/configs/home-manager/foo-dogsquared/modules/dotfiles.nix index 9afa0560..f1e146dc 100644 --- a/configs/home-manager/foo-dogsquared/modules/dotfiles.nix +++ b/configs/home-manager/foo-dogsquared/modules/dotfiles.nix @@ -24,19 +24,23 @@ in home.sessionPath = [ "${config.home.mutableFile.${dotfiles}.path}/bin" ]; - - xdg.configFile = { - doom.source = - lib.mkIf userCfg.programs.doom-emacs.enable (getDotfiles "emacs"); - kitty.source = - lib.mkIf userCfg.setups.development.enable (getDotfiles "kitty"); - nyxt.source = - lib.mkIf userCfg.programs.browsers.misc.enable (getDotfiles "nyxt"); - wezterm.source = - lib.mkIf userCfg.setups.development.enable (getDotfiles "wezterm"); - }; } + (lib.mkIf (userCfg.programs.doom-emacs.enable) { + xdg.configFile.doom.source = getDotfiles "emacs"; + }) + + (lib.mkIf (userCfg.setups.development.enable) { + xdg.configFile = { + kitty.source = getDotfiles "emacs"; + wezterm.source = getDotfiles "wezterm"; + }; + }) + + (lib.mkIf (userCfg.programs.browsers.misc.enable) { + xdg.configFile.nyxt.source = getDotfiles "nyxt"; + }) + (lib.mkIf (!userCfg.programs.nixvim.enable) { xdg.configFile.nvim.source = getDotfiles "nvim"; })