feat: experimental k3s + nix-snapshotter snippet

This commit is contained in:
steveej 2024-06-13 16:42:55 +02:00
parent 7f8bf5c525
commit 53481414df
7 changed files with 602 additions and 4 deletions

View file

@ -10,6 +10,12 @@
packages',
...
}: {
nixpkgs.overlays = [
(final: previous: {
# inherit (nodeFlake.inputs.nixpkgs-systemd256.legacyPackages.${system}) systemd systemdMinimal;
})
];
nixos-x13s = {
enable = true;
# TODO: use hardware address
@ -87,6 +93,8 @@
sops.secrets.builder-private-key = {};
nix.distributedBuilds = true;
nix.buildMachines = [
# test these with: sudo nix store ping --store 'ssh-ng://nix-remote-builder@sj-bm-hostkey0.dev.infra.holochain.org?ssh-key=/run/secrets/builder-private-key'
{
hostName = "sj-bm-hostkey0.dev.infra.holochain.org";
sshUser = "nix-remote-builder";
@ -148,6 +156,8 @@
../../snippets/radicale.nix
../../snippets/holo-zerotier.nix
../../snippets/k3s-w-nix-snapshotter.nix
];
networking.hostName = nodeName;
@ -210,11 +220,11 @@
# android on linux
virtualisation.waydroid.enable = false;
virtualisation.podman.enable = true;
virtualisation.podman.dockerCompat = true;
hardware.ledger.enable = true;
virtualisation.containers.enable = true;
virtualisation.podman.enable = true;
nix.settings.substituters = [
"https://nixos-x13s.cachix.org"
];