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
machines/kat-probook
modules
npins

View file

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

View file

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

View file

@ -39,6 +39,17 @@
"url": "https://github.com/nix-community/home-manager/archive/65912bc6841cf420eb8c0a20e03df7cbbff5963f.tar.gz",
"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": {
"type": "Git",
"repository": {