1
0
mirror of https://github.com/kmein/niveum synced 2026-03-21 04:11:07 +01:00

catullus: move to krops

This commit is contained in:
Kierán Meinhardt
2019-01-31 23:39:38 +01:00
parent a3ea9aeeaf
commit c70c4d106d
5 changed files with 50 additions and 24 deletions

23
systems/krops.nix Normal file
View File

@@ -0,0 +1,23 @@
let
krops = builtins.fetchGit {
url = "https://cgit.krebsco.de/krops/";
};
lib = import "${krops}/lib";
pkgs = import "${krops}/pkgs" {};
source = path: lib.evalSource [{
nixpkgs.git = {
ref = "6a3f5bcb061e1822f50e299f5616a0731636e4e7"; # 18.09
url = https://github.com/NixOS/nixpkgs-channels;
};
system.file = toString path;
nixos-config.symlink = "system/configuration.nix";
}];
systems.catullus = pkgs.krops.writeDeploy "deploy-catullus" {
source = source ./catullus;
target = "root@catullus.local";
};
in systems // {
all = pkgs.writeScript "deploy-all" (lib.concatStringsSep "\n" (lib.attrValues systems));
}