hosts: add nix-cache module

This commit is contained in:
2026-05-16 23:48:31 +08:00
parent 92ecc0cccc
commit 3af3076a86
3 changed files with 31 additions and 10 deletions
+2 -5
View File
@@ -10,10 +10,9 @@
# Include the results of the hardware scan.
./hardware-configuration.nix
inputs.sops-nix.nixosModules.sops
../modules/nix-cache.nix
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
boot.loader = {
efi = {
canTouchEfiVariables = true;
@@ -32,10 +31,8 @@
time.timeZone = "Asia/Shanghai";
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
trusted-users = [ "origami" ];
substituters = [
"https://mirrors.ustc.edu.cn/nix-channels/store"
];
auto-optimise-store = true;
};