feat: DGNum cache

This commit is contained in:
catvayor 2024-12-18 13:14:47 +01:00
parent 73dabbf5f1
commit 999a16501d
Signed by: lbailly
GPG key ID: CE3E645251AC63F3
3 changed files with 29 additions and 6 deletions

View file

@ -2,8 +2,13 @@
pkgs, pkgs,
nodes, nodes,
users, users,
lib,
sources,
... ...
}: }:
let
inherit (lib) mkMerge;
in
{ {
deployment.allowLocalDeployment = true; deployment.allowLocalDeployment = true;
@ -32,10 +37,17 @@
}; };
}; };
nix.settings.trusted-users = [ nix.settings = mkMerge [
((import sources.dgnum-infra { }).mkCacheSettings {
caches = [ "infra" ];
})
{
trusted-users = [
"root" "root"
"@wheel" "@wheel"
]; ];
}
];
networking.networkmanager = { networking.networkmanager = {
enable = true; enable = true;
unmanaged = [ unmanaged = [

View file

@ -83,8 +83,8 @@
}; };
"netaccess00.dgn" = { "netaccess00.dgn" = {
user = "root"; user = "root";
hostname = "192.168.2.2"; hostname = "fd26:baf9:d250:8000::200f";
# proxyJump = "vault01.dgnum"; proxyJump = "vault01.dgnum";
}; };
"netcore00.dgn" = { "netcore00.dgn" = {
user = "root"; user = "root";

View file

@ -39,6 +39,17 @@
"url": "https://github.com/nix-community/home-manager/archive/65912bc6841cf420eb8c0a20e03df7cbbff5963f.tar.gz", "url": "https://github.com/nix-community/home-manager/archive/65912bc6841cf420eb8c0a20e03df7cbbff5963f.tar.gz",
"hash": "026hmc30kkyd9ihpjd6cm1b22galdi164ardhmj5x5jcszhjx4r9" "hash": "026hmc30kkyd9ihpjd6cm1b22galdi164ardhmj5x5jcszhjx4r9"
}, },
"dgnum-infra": {
"type": "Git",
"repository": {
"type": "Git",
"url": "https://git.dgnum.eu/DGNum/infrastructure"
},
"branch": "main",
"revision": "accf643294f77744269ad8c812d93956b1faa672",
"url": null,
"hash": "0iiy2aadlh0jv5hbgq4c14x3ngnc1v4b1wzfhhhwhj14nqmr1ig3"
},
"kat-pkgs": { "kat-pkgs": {
"type": "Git", "type": "Git",
"repository": { "repository": {