add personal cache

This commit is contained in:
gwg313 2026-04-21 00:45:28 -04:00
parent e14744ff80
commit 28f5467646
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
3 changed files with 13 additions and 1 deletions

View file

@ -3,7 +3,7 @@
config.dendritic.features.system-nix = { config.dendritic.features.system-nix = {
nixosModules = [ nixosModules = [
( (
{ config, ... }: { config, pkgs, ... }:
let let
user = config.dendritic.current.primaryUser; user = config.dendritic.current.primaryUser;
@ -29,6 +29,16 @@
services.fstrim.enable = true; services.fstrim.enable = true;
time.timeZone = "America/Toronto"; time.timeZone = "America/Toronto";
nix.settings = {
substituters = [
"https://cache.gwg313.xyz/mycache?priority=5"
];
trusted-public-keys = [
"mycache:ovUjiiyQNUGjK8yZA4dPV1f8tIfCZrGIubdWvWpdvtc="
];
};
environment.systemPackages = [ pkgs.attic-client ];
} }
) )
]; ];

View file

@ -13,5 +13,6 @@
192.168.194.54 graphene.zt 192.168.194.54 graphene.zt
192.168.191.218 candlekeep.zt 192.168.191.218 candlekeep.zt
192.168.191.201 grymforge.zt 192.168.191.201 grymforge.zt
192.168.191.202 cache.gwg313.xyz
''; '';
} }

View file

@ -13,5 +13,6 @@
192.168.194.54 graphene.zt 192.168.194.54 graphene.zt
192.168.191.218 candlekeep.zt 192.168.191.218 candlekeep.zt
192.168.191.201 grymforge.zt 192.168.191.201 grymforge.zt
192.168.191.202 cache.gwg313.xyz
''; '';
} }