1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 18:21:07 +01:00
Files
niveum/deploy.nix

55 lines
1.7 KiB
Nix
Raw Normal View History

2019-01-31 23:39:38 +01:00
let
krops = builtins.fetchGit {
url = "https://cgit.krebsco.de/krops/";
2019-05-15 18:21:58 +02:00
ref = "v1.14.0";
2019-01-31 23:39:38 +01:00
};
lib = import "${krops}/lib";
pkgs = import "${krops}/pkgs" {};
2019-04-11 15:06:03 +02:00
importJson = (import <nixpkgs> {}).lib.importJSON;
2019-01-31 23:39:38 +01:00
2019-06-17 18:01:14 +02:00
niveum = {
lib.file = toString ./lib;
packages.file = toString ./packages;
configs.file = toString ./configs;
dot.file = toString ./dot;
modules.file = toString ./modules;
nixos-config.symlink = "system/configuration.nix";
2019-01-31 23:39:38 +01:00
nixpkgs.git = {
url = https://github.com/NixOS/nixpkgs-channels;
2019-04-11 15:06:03 +02:00
ref = (importJson ./nixpkgs.json).rev;
};
2019-04-20 09:56:39 +02:00
nixos-unstable.git = {
url = https://github.com/NixOS/nixpkgs-channels;
ref = "nixos-unstable";
};
2019-04-19 03:11:51 +02:00
home-manager.git = {
url = https://github.com/rycee/home-manager;
ref = "2ccbf43";
};
2019-04-18 17:09:34 +02:00
stockholm.git = {
url = https://cgit.krebsco.de/stockholm;
2019-05-17 07:25:03 +02:00
ref = "1340e3fb";
2019-04-18 17:09:34 +02:00
};
2019-05-29 17:23:38 +02:00
};
2019-01-31 23:39:38 +01:00
2019-06-17 18:01:14 +02:00
regularSystem = path: name: extras: {
source = lib.evalSource [
(niveum // extras // {
system.file = toString path;
secrets.pass = {
dir = toString ~/.password-store/systems;
inherit name;
};
})
];
target = "root@${name}:22022";
2019-04-10 21:14:29 +02:00
};
2019-06-17 18:01:14 +02:00
in {
scardanelli = pkgs.krops.writeDeploy "deploy-scardanelli" (regularSystem systems/scardanelli "scardanelli" { art.file = toString ./art; });
homeros = pkgs.krops.writeDeploy "deploy-homeros" (regularSystem systems/homeros "homeros" { art.file = toString ./art; });
wilde = pkgs.krops.writeDeploy "deploy-wilde" (regularSystem systems/wilde "wilde" { art.file = toString ./art; });
2019-04-10 21:14:29 +02:00
2019-06-17 18:01:14 +02:00
catullus = pkgs.krops.writeDeploy "deploy-catullus" (regularSystem systems/catullus "catullus" {});
2019-01-31 23:39:38 +01:00
}