From 227d5e7812d887238b4fb0d70140aa6ca2a205df Mon Sep 17 00:00:00 2001 From: ulic-youthlic Date: Thu, 6 Nov 2025 18:27:29 +0800 Subject: [PATCH] feat: Add new substitutes for guix and set right guix path --- home/modules/programs/fish.nix | 3 +++ nixos/modules/programs/guix.nix | 5 +++++ 2 files changed, 8 insertions(+) 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; }; }; }