2023-01-03 12:14:11 +02:00
|
|
|
let
|
|
|
|
krops = builtins.fetchGit {
|
|
|
|
url = "https://cgit.krebsco.de/krops/";
|
|
|
|
};
|
|
|
|
lib = import "${krops}/lib";
|
|
|
|
pkgs = import "${krops}/pkgs" {};
|
|
|
|
|
|
|
|
source = lib.evalSource [
|
|
|
|
{
|
|
|
|
nixpkgs.symlink = "/root/.nix-defexpr/channels/nixos";
|
|
|
|
nixos-config.file = toString ./configuration.nix;
|
2023-01-05 13:23:29 +02:00
|
|
|
|
|
|
|
# TODO: how to make this nix-managed?
|
|
|
|
snaplink.file = toString ./scripts/snaplink;
|
2023-01-03 12:31:37 +02:00
|
|
|
secrets.pass = {
|
|
|
|
dir = toString ./secrets;
|
|
|
|
name = "hel1-a";
|
|
|
|
};
|
2023-01-03 12:14:11 +02:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
in {
|
|
|
|
hel1a = pkgs.krops.writeDeploy "deploy-hel1a" {
|
|
|
|
source = source;
|
|
|
|
target = lib.mkTarget "motiejus@hel1-a.jakstys.lt" // {
|
|
|
|
sudo = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|