feat: Add new substitutes for guix and set right guix path
This commit is contained in:
parent
fc3fa26a27
commit
227d5e7812
2 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue