From fd95fe2c3c5149e5d1e9339d7677e327d4d3f840 Mon Sep 17 00:00:00 2001 From: sinavir Date: Tue, 16 May 2023 23:50:06 +0200 Subject: [PATCH] init colmena for web-01 --- flake.nix | 7 ------- hive.nix | 21 +++++++++++++++++++++ npins/sources.json | 15 +-------------- shell.nix | 2 +- 4 files changed, 23 insertions(+), 22 deletions(-) delete mode 100644 flake.nix create mode 100644 hive.nix diff --git a/flake.nix b/flake.nix deleted file mode 100644 index 70a2cf8..0000000 --- a/flake.nix +++ /dev/null @@ -1,7 +0,0 @@ -❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ -❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ -❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ -❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ -❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ -❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ -❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ .nix diff --git a/hive.nix b/hive.nix new file mode 100644 index 0000000..c849d44 --- /dev/null +++ b/hive.nix @@ -0,0 +1,21 @@ +let + sources = import ./npins; +in +{ + meta = { + nixpkgs = import sources.nixpkgs; + + nodeNixpkgs = { + }; + + # TODO: Add remote builders (`machinesFile` option) + }; + + web-01 = { name, nodes, ... }: { + imports = [ ./machines/${name}/configuration.nix ]; + deployment = { + targetUser = "root"; + targetHost = "129.199.129.200"; + }; + }; +} diff --git a/npins/sources.json b/npins/sources.json index 48e831c..ce56fa7 100644 --- a/npins/sources.json +++ b/npins/sources.json @@ -14,19 +14,6 @@ "url": "https://api.github.com/repos/nix-community/disko/tarball/v1.0.0", "hash": "153cm29hjgklsi1aw85srvcd3h3afm7j77llk4fj3slf5gcwnmx9" }, - "krops": { - "type": "GitRelease", - "repository": { - "type": "Git", - "url": "https://cgit.krebsco.de/krops" - }, - "pre_releases": false, - "version_upper_bound": null, - "version": "1.28.2", - "revision": "59aa5d0e41cf4a6d4356673feb1adbd0fcf68936", - "url": null, - "hash": "1a2pgg52y577lpvg2kcyblr2lgjij1l2d4vv1i8xd5gmsaphcfji" - }, "nixpkgs": { "type": "Channel", "name": "nixpkgs-unstable", @@ -35,4 +22,4 @@ } }, "version": 3 -} \ No newline at end of file +} diff --git a/shell.nix b/shell.nix index da44745..83d1f41 100644 --- a/shell.nix +++ b/shell.nix @@ -5,7 +5,7 @@ in pkgs.mkShell { packages = [ pkgs.npins + pkgs.colmena (pkgs.callPackage (sources.disko + "/package.nix") {}) ]; } -# ❄️ ❄️ ❄️