modules.nix: fix substituters

This commit is contained in:
2024-09-13 20:01:00 +08:00
parent fe7313b39a
commit e006d791a2
7 changed files with 7 additions and 7 deletions

View File

@@ -40,7 +40,7 @@ inputs:
};
initrd.sshd.enable = true;
nixpkgs.march = "silvermont";
nix.substituters = [ "https://cache.nixos.org/" "https://nix-store.chn.moe" ];
nix.substituters = [ "https://nix-store.chn.moe?priority=100" ];
networking = { hostname = "nas"; networkd = {}; };
};
hardware = { cpus = [ "intel" ]; gpu.type = "intel"; };

View File

@@ -24,7 +24,7 @@ inputs:
rollingRootfs = {};
};
nixpkgs.march = "skylake";
nix = { substituters = [ "https://cache.nixos.org/" "https://nix-store.chn.moe" ]; githubToken.enable = true; };
nix = { substituters = [ "https://nix-store.chn.moe?priority=100" ]; githubToken.enable = true; };
kernel = { variant = "xanmod-lts"; patches = [ "surface" "hibernate-progress" ]; };
networking.hostname = "surface";
gui.enable = true;

View File

@@ -27,7 +27,7 @@ inputs:
};
grub.installDevice = "/dev/disk/by-path/pci-0000:00:04.0";
nixpkgs.march = "znver2";
nix.substituters = [ "https://cache.nixos.org/" "https://nix-store.chn.moe" ];
nix.substituters = [ "https://nix-store.chn.moe?priority=100" ];
initrd.sshd.enable = true;
networking = { hostname = "vps4"; networkd = {}; };
kernel.variant = "xanmod-latest";

View File

@@ -27,7 +27,7 @@ inputs:
};
grub.installDevice = "/dev/disk/by-path/pci-0000:00:05.0-scsi-0:0:0:0";
nixpkgs.march = "sandybridge";
nix.substituters = [ "https://cache.nixos.org/" "https://nix-store.chn.moe" ];
nix.substituters = [ "https://nix-store.chn.moe?priority=100" ];
initrd.sshd.enable = true;
networking = { hostname = "vps6"; networkd = {}; };
# do not use cachyos kernel, beesd + cachyos kernel + heavy io = system freeze, not sure why

View File

@@ -27,7 +27,7 @@ inputs:
};
grub.installDevice = "/dev/disk/by-path/pci-0000:00:05.0-scsi-0:0:0:0";
nixpkgs.march = "znver2";
nix.substituters = [ "https://cache.nixos.org/" "https://nix-store.chn.moe" ];
nix.substituters = [ "https://nix-store.chn.moe?priority=100" ];
initrd.sshd.enable = true;
networking = { hostname = "vps7"; networkd = {}; };
kernel.variant = "xanmod-lts";

View File

@@ -51,7 +51,7 @@ inputs:
# "cascadelake"
];
remote.slave.enable = true;
substituters = [ "https://cache.nixos.org/" "https://nix-store.chn.moe" ];
substituters = [ "https://nix-store.chn.moe?priority=100" ];
};
grub.windowsEntries."8F50-83B8" = "";
};

View File

@@ -88,7 +88,7 @@ inputs:
})
# substituters
{
nix.settings.substituters = if nix.substituters == null then [ "https://cache.nixos.org/" ] else nix.substituters;
nix.settings.substituters = inputs.lib.mkIf (nix.substituters != null) nix.substituters;
}
# autoOptimiseStore
(inputs.lib.mkIf nix.autoOptimiseStore