Configure colmena for remote deployments
This commit is contained in:
parent
aab63e451e
commit
22824420c9
1 changed files with 14 additions and 15 deletions
29
flake.nix
29
flake.nix
|
@ -179,19 +179,18 @@
|
||||||
inherit nixpkgs;
|
inherit nixpkgs;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
drone = { lib, ... }: {
|
} // builtins.listToAttrs (map
|
||||||
deployment = {
|
(machine: {
|
||||||
targetHost = "10.0.0.202";
|
name = machine;
|
||||||
targetUser = "root";
|
value = {
|
||||||
|
deployment = {
|
||||||
|
targetHost = machines.${machine}.deploy.host;
|
||||||
|
targetUser = "root"; # machines.${machine}.deploy.sshUser;
|
||||||
|
};
|
||||||
|
imports = self.lib.systemModules (machines.${machine}.system or "x86_64-linux") machines.${machine}.config;
|
||||||
};
|
};
|
||||||
imports =
|
})
|
||||||
let
|
(builtins.filter (machine: machines.${machine} ? deploy) (builtins.attrNames machines)));
|
||||||
system = "x86_64-linux";
|
|
||||||
systemConfig = import ./machines/drone/configuration.nix inputs;
|
|
||||||
in
|
|
||||||
self.lib.systemModules system systemConfig;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -241,11 +240,11 @@
|
||||||
just
|
just
|
||||||
pciutils
|
pciutils
|
||||||
|
|
||||||
(cryptsetup.override {
|
cryptsetup
|
||||||
withInternalArgon2 = true;
|
|
||||||
})
|
|
||||||
|
|
||||||
disko.packages.${system}.disko
|
disko.packages.${system}.disko
|
||||||
|
|
||||||
|
colmena
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue