diff --git a/home/modules/programs/fish.nix b/home/modules/programs/fish.nix index d7a8252..d08ea3f 100644 --- a/home/modules/programs/fish.nix +++ b/home/modules/programs/fish.nix @@ -43,6 +43,9 @@ in }; shellInitLast = # fish '' + if test -e ~/.config/guix/current/bin/guix + fish_add_path -pPm ~/.config/guix/current/bin + end if test -d ~/.guix-profile set -gx GUIX_PROFILE ~/.guix-profile if test -f $GUIX_PROFILE/etc/profile diff --git a/nixos/modules/programs/guix.nix b/nixos/modules/programs/guix.nix index 609fb08..e20572b 100644 --- a/nixos/modules/programs/guix.nix +++ b/nixos/modules/programs/guix.nix @@ -1,6 +1,7 @@ { lib, config, + options, ... }: let @@ -19,6 +20,10 @@ in enable = true; dates = "weekly"; }; + substituters.urls = [ + "https://mirror.sjtu.edu.cn/guix/" + ] + ++ options.services.guix.substituters.urls.default; }; }; }