mirror of
https://github.com/kmein/niveum
synced 2026-03-18 19:11:08 +01:00
kropsify some more
This commit is contained in:
54
deploy.nix
Normal file
54
deploy.nix
Normal file
@@ -0,0 +1,54 @@
|
||||
{ catullus-ssh ? "root@catullus.r"
|
||||
, scardanelli-ssh ? "root@scardanelli.r:22022"
|
||||
, homeros-ssh ? "root@homeros.r:22022"
|
||||
}:
|
||||
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 = {
|
||||
url = https://github.com/NixOS/nixpkgs-channels;
|
||||
# ref = "6a3f5bcb061e1822f50e299f5616a0731636e4e7"; # 18.09
|
||||
ref = "22a606e20d662e2575552ab9b5e7c31aa8331e0e";
|
||||
};
|
||||
# stockholm.git = {
|
||||
# url = https://cgit.krebsco.de/stockholm;
|
||||
# ref = "7e1b197dab13d024ba491c96dc959306324943c0";
|
||||
# };
|
||||
system.file = toString path;
|
||||
art.file = toString ./art;
|
||||
lib.file = toString ./lib;
|
||||
packages.file = toString ./packages;
|
||||
systems.file = toString ./systems;
|
||||
configs.file = toString ./configs;
|
||||
dot.file = toString ./dot;
|
||||
modules.file = toString ./modules;
|
||||
|
||||
nixos-config.symlink = "system/configuration.nix";
|
||||
# secrets.pass = {
|
||||
# dir = toString ~/.password-store;
|
||||
# name = name;
|
||||
# };
|
||||
}];
|
||||
|
||||
systems.scardanelli = pkgs.krops.writeDeploy "deploy-scardanelli" {
|
||||
source = source "scardanelli" ./systems/scardanelli;
|
||||
target = scardanelli-ssh;
|
||||
};
|
||||
|
||||
systems.homeros = pkgs.krops.writeDeploy "deploy-homeros" {
|
||||
source = source "homeros" ./systems/homeros;
|
||||
target = homeros-ssh;
|
||||
};
|
||||
|
||||
systems.catullus = pkgs.krops.writeDeploy "deploy-catullus" {
|
||||
source = source "catullus" ./systems/catullus;
|
||||
target = catullus-ssh;
|
||||
};
|
||||
in systems // {
|
||||
all = pkgs.writeScript "deploy-all" (lib.concatStringsSep "\n" (lib.attrValues systems));
|
||||
}
|
||||
Reference in New Issue
Block a user