1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 18:21:07 +01:00
Files
niveum/systems/krops.nix
2019-02-12 20:11:24 +01:00

32 lines
931 B
Nix

{ catullus-ssh ? "root@catullus.r" }:
let
krops = builtins.fetchGit {
url = "https://cgit.krebsco.de/krops/";
};
lib = import "${krops}/lib";
pkgs = import "${krops}/pkgs" {};
source = name: path: lib.evalSource [{
nixpkgs.git = {
ref = "6a3f5bcb061e1822f50e299f5616a0731636e4e7"; # 18.09
url = https://github.com/NixOS/nixpkgs-channels;
};
system.file = toString path;
modules.file = toString ../modules;
htoprc.file = toString ../dot/htoprc;
packages.file = toString ../packages;
nixos-config.symlink = "system/configuration.nix";
secrets.pass = {
dir = toString ~/.password-store;
name = name;
};
}];
systems.catullus = pkgs.krops.writeDeploy "deploy-catullus" {
source = source "catullus" ./catullus;
target = catullus-ssh;
};
in systems // {
all = pkgs.writeScript "deploy-all" (lib.concatStringsSep "\n" (lib.attrValues systems));
}