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

32 lines
931 B
Nix
Raw Normal View History

2019-02-06 13:17:31 +01:00
{ catullus-ssh ? "root@catullus.r" }:
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 = {
ref = "6a3f5bcb061e1822f50e299f5616a0731636e4e7"; # 18.09
url = https://github.com/NixOS/nixpkgs-channels;
};
system.file = toString path;
2019-02-05 22:08:39 +01:00
modules.file = toString ../modules;
htoprc.file = toString ../dot/htoprc;
packages.file = toString ../packages;
2019-01-31 23:39:38 +01:00
nixos-config.symlink = "system/configuration.nix";
secrets.pass = {
dir = toString ~/.password-store;
name = name;
};
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));
}