From 6cd3e355fac09426d55aed1fce6759cf2f5be5a0 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Tue, 21 Jan 2025 14:05:18 +0800 Subject: [PATCH] users/foo-dogsquared/dotfiles: add Nushell dotfiles into the setup --- configs/home-manager/foo-dogsquared/modules/dotfiles.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configs/home-manager/foo-dogsquared/modules/dotfiles.nix b/configs/home-manager/foo-dogsquared/modules/dotfiles.nix index 5934a3d9..aea22065 100644 --- a/configs/home-manager/foo-dogsquared/modules/dotfiles.nix +++ b/configs/home-manager/foo-dogsquared/modules/dotfiles.nix @@ -41,8 +41,14 @@ in xdg.configFile.nyxt.source = getDotfiles "nyxt"; }) - (lib.mkIf (!userCfg.programs.nixvim.enable) { + # Comes with a heavy assumption that the Neovim configuration found in this + # home-manager environment will not write to the XDG config directory. + (lib.mkIf (!config.programs.nixvim.enable) { xdg.configFile.nvim.source = getDotfiles "nvim"; }) + + (lib.mkIf userCfg.programs.nushell.enable { + home.file."${config.xdg.dataHome}/nushell/vendor/autoload".source = getDotfiles "nu/autoload"; + }) ]); }