krops.nix: remove
This commit is contained in:
parent
aa5a639d59
commit
17cac9bf0f
26
krops.nix
26
krops.nix
|
@ -1,26 +0,0 @@
|
|||
let
|
||||
krops = builtins.fetchGit { url = "https://cgit.krebsco.de/krops/"; };
|
||||
lib = import "${krops}/lib";
|
||||
pkgs = import "${krops}/pkgs" { };
|
||||
|
||||
hostSource = path: nixos-branch:
|
||||
lib.evalSource [{
|
||||
nixpkgs.git = {
|
||||
ref = "origin/${nixos-branch}";
|
||||
url = "https://github.com/NixOS/nixpkgs.git";
|
||||
};
|
||||
nixos-config.file = toString (./hosts + "/${path}/configuration.nix");
|
||||
this-host.file = toString (./hosts + "/${path}");
|
||||
lib.file = toString ./lib;
|
||||
secrets.file = toString ./secrets;
|
||||
"host-registry.nix".file = toString ./host-registry.nix;
|
||||
}];
|
||||
|
||||
deployContainer = containerName: host:
|
||||
pkgs.krops.writeDeploy containerName {
|
||||
source = hostSource "containers/${containerName}" "nixos-20.09";
|
||||
target = "root@${host}";
|
||||
};
|
||||
in {
|
||||
ledstripes = deployContainer "ledstripes" "172.22.99.168";
|
||||
}
|
Loading…
Reference in New Issue