1
0
mirror of https://github.com/kmein/niveum synced 2026-03-19 11:31:09 +01:00
Files
niveum/systems/krops.nix

48 lines
1.4 KiB
Nix
Raw Normal View History

2019-04-10 21:14:29 +02:00
{ catullus-ssh ? "root@catullus.r"
, scardanelli-ssh ? "root@scardanelli.r:22022"
, homeros-ssh ? "root@homeros.r:22022"
}:
2019-01-31 23:39:38 +01:00
let
krops = builtins.fetchGit {
url = "https://cgit.krebsco.de/krops/";
};
lib = import "${krops}/lib";
pkgs = import "${krops}/pkgs" {};
source = name: path: lib.evalSource [{
2019-01-31 23:39:38 +01:00
nixpkgs.git = {
url = https://github.com/NixOS/nixpkgs-channels;
2019-04-10 21:14:29 +02:00
# ref = "6a3f5bcb061e1822f50e299f5616a0731636e4e7"; # 18.09
ref = "22a606e20d662e2575552ab9b5e7c31aa8331e0e";
2019-01-31 23:39:38 +01:00
};
2019-04-10 21:14:29 +02:00
# stockholm.git = {
# url = https://cgit.krebsco.de/stockholm;
# ref = "9b2355521f8447e7da3af30bce8fb7ba6f83ed69";
# };
2019-01-31 23:39:38 +01:00
system.file = toString path;
2019-04-10 21:14:29 +02:00
niveum.file = toString ../.;
nixos-config.symlink = "system/physical.nix";
# secrets.pass = {
# dir = toString ~/.password-store;
# name = name;
# };
2019-01-31 23:39:38 +01:00
}];
2019-04-10 21:14:29 +02:00
systems.scardanelli = pkgs.krops.writeDeploy "deploy-scardanelli" {
source = source "scardanelli" ./scardanelli;
target = scardanelli-ssh;
};
systems.homeros = pkgs.krops.writeDeploy "deploy-homeros" {
source = source "homeros" ./homeros;
target = homeros-ssh;
};
2019-01-31 23:39:38 +01:00
systems.catullus = pkgs.krops.writeDeploy "deploy-catullus" {
source = source "catullus" ./catullus;
2019-02-06 13:17:31 +01:00
target = catullus-ssh;
2019-01-31 23:39:38 +01:00
};
in systems // {
all = pkgs.writeScript "deploy-all" (lib.concatStringsSep "\n" (lib.attrValues systems));
}