feat: new server to work as a nix cache
This commit is contained in:
parent
6ae584c895
commit
7408873102
30 changed files with 598 additions and 270 deletions
11
flake.nix
11
flake.nix
|
@ -16,6 +16,7 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
colmena.url = "github:zhaofengli/colmena";
|
||||
attic.url = github:zhaofengli/attic;
|
||||
|
||||
# email
|
||||
# simple-nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
|
||||
|
@ -78,7 +79,11 @@
|
|||
};
|
||||
};
|
||||
|
||||
nixConfig.bash-prompt-suffix = "[Skynet Dev] ";
|
||||
nixConfig = {
|
||||
bash-prompt-suffix = "[Skynet Dev] ";
|
||||
extra-substituters = "https://nix-cache.skynet.ie/skynet-cache";
|
||||
extra-trusted-public-keys = "skynet-cache:OdfA4Or0JcHiHf05fsiIR4nZT2z2yDEtkoLqhntGAz4=";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
|
@ -97,6 +102,7 @@
|
|||
nativeBuildInputs = [
|
||||
pkgs.buildPackages.git
|
||||
colmena.defaultPackage."x86_64-linux"
|
||||
pkgs.attic-client
|
||||
pkgs.buildPackages.nmap
|
||||
];
|
||||
buildInputs = [agenix.packages.x86_64-linux.default];
|
||||
|
@ -158,6 +164,9 @@
|
|||
|
||||
# trainee server
|
||||
marvin = import ./machines/marvin.nix;
|
||||
|
||||
# nix cache server
|
||||
calculon = import ./machines/calculon.nix;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue