1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 08:10:43 +01:00

fix(fish): use set -p PATH instead of fish_add_path

The reasoning for this is that `fish_add_path` writes to a universal variable that is persisted independently of fish configuration files, and this can result in stale `fish_user_paths` entries when calls to `fish_add_path` are removed from the configuration. Using `set -p PATH` ensures that only the environment is written to.
This commit is contained in:
Ryan Cao 2023-09-15 08:46:22 +08:00
parent eb4cb1c367
commit da2644ae42
Signed by: ryanccn
SSH key fingerprint: SHA256:NtP/BlVhoQq4xU6BEcZeT8nIPvHntkJ3lIc2yB+F09E
5 changed files with 23 additions and 25 deletions

View file

@ -12,7 +12,7 @@
system.activationScripts.extraActivation = {
text = ''
set -eo pipefail
HOME="/var/root" ${pkgs.lib.getExe' pkgs.nvd "nvd"} --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig"
HOME="/var/root" ${pkgs.lib.getExe pkgs.nvd} --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig"
'';
};
@ -36,8 +36,7 @@
useUserPackages = true;
extraSpecialArgs = {
ctpModule = inputs.catppuccin.homeManagerModules.catppuccin;
amDiscordModule = inputs.am.homeManagerModules.default;
inherit inputs;
};
users.ryanccn = import ./home;