feat: Add new substitutes for guix and set right guix path

This commit is contained in:
ulic-youthlic 2025-11-06 18:27:29 +08:00
parent fc3fa26a27
commit 227d5e7812
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

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