diff --git a/modules/features/system/system-nix.nix b/modules/features/system/system-nix.nix index 4523914..f312621 100644 --- a/modules/features/system/system-nix.nix +++ b/modules/features/system/system-nix.nix @@ -3,7 +3,7 @@ config.dendritic.features.system-nix = { nixosModules = [ ( - { config, ... }: + { config, pkgs, ... }: let user = config.dendritic.current.primaryUser; @@ -29,6 +29,16 @@ services.fstrim.enable = true; time.timeZone = "America/Toronto"; + nix.settings = { + substituters = [ + "https://cache.gwg313.xyz/mycache?priority=5" + ]; + trusted-public-keys = [ + "mycache:ovUjiiyQNUGjK8yZA4dPV1f8tIfCZrGIubdWvWpdvtc=" + ]; + }; + + environment.systemPackages = [ pkgs.attic-client ]; } ) ]; diff --git a/modules/nixos/hosts/candlekeep/zerotier.nix b/modules/nixos/hosts/candlekeep/zerotier.nix index 6669779..7605cdf 100644 --- a/modules/nixos/hosts/candlekeep/zerotier.nix +++ b/modules/nixos/hosts/candlekeep/zerotier.nix @@ -13,5 +13,6 @@ 192.168.194.54 graphene.zt 192.168.191.218 candlekeep.zt 192.168.191.201 grymforge.zt + 192.168.191.202 cache.gwg313.xyz ''; } diff --git a/modules/nixos/hosts/grymforge/zerotier.nix b/modules/nixos/hosts/grymforge/zerotier.nix index 6669779..7605cdf 100644 --- a/modules/nixos/hosts/grymforge/zerotier.nix +++ b/modules/nixos/hosts/grymforge/zerotier.nix @@ -13,5 +13,6 @@ 192.168.194.54 graphene.zt 192.168.191.218 candlekeep.zt 192.168.191.201 grymforge.zt + 192.168.191.202 cache.gwg313.xyz ''; }