Configure attic instance as self hosted cache and enable on carbon
This commit is contained in:
parent
bd66f82a7e
commit
70e4a4d452
2 changed files with 3 additions and 5 deletions
|
|
@ -13,7 +13,6 @@ let
|
||||||
;
|
;
|
||||||
|
|
||||||
cfg = config.aa.nix;
|
cfg = config.aa.nix;
|
||||||
selfHostedCacheHost = "https://cache.kilonull.com/";
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.aa.nix = {
|
options.aa.nix = {
|
||||||
|
|
@ -72,13 +71,12 @@ in
|
||||||
if cfg.useSelfhostedCache then
|
if cfg.useSelfhostedCache then
|
||||||
[
|
[
|
||||||
# TESTING
|
# TESTING
|
||||||
"https://minio.kilonull.com/nix-store"
|
"https://attic.kilonull.com/nixosConfigs"
|
||||||
selfHostedCacheHost
|
|
||||||
]
|
]
|
||||||
else
|
else
|
||||||
[ ];
|
[ ];
|
||||||
trusted-public-keys = mkIf cfg.useSelfhostedCache [
|
trusted-public-keys = mkIf cfg.useSelfhostedCache [
|
||||||
"gospelCache:9cbn8Wm54BbwpPS0TXw+15wrYZBpfOJt4Fzfbfcq/pc="
|
"nixosConfigs:mjWq+JcnAqwT20OZSsrh9od6LTNn8U3cYdaXhqhDqP0="
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
aa = {
|
aa = {
|
||||||
nix = {
|
nix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
useSelfhostedCache = false;
|
useSelfhostedCache = true;
|
||||||
remoteBuilder.client.enable = false;
|
remoteBuilder.client.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue