users/foo-dogsquared/dotfiles: fix conditionals

This commit is contained in:
Gabriel Arazas 2024-03-07 18:44:09 +08:00
parent 1e909ff150
commit 0c13466cb5
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -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";
})