summaryrefslogtreecommitdiff
path: root/Biz
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2021-12-01 07:52:00 -0500
committerBen Sima <ben@bsima.me>2021-12-01 07:52:00 -0500
commit440cf7690a520a7c74e5125e5d94922f177e51c5 (patch)
tree1c225a9d99b8bd360bed7ae747667a8194ef8f0c /Biz
parent111ae9cdba0c37a7cc3746a66a33b66c23f057ff (diff)
Run k3s, and provide bild.image
Diffstat (limited to 'Biz')
-rw-r--r--Biz/Bild.nix2
-rw-r--r--Biz/Cloud/Ports.nix1
-rw-r--r--Biz/Dev/Configuration.nix10
3 files changed, 13 insertions, 0 deletions
diff --git a/Biz/Bild.nix b/Biz/Bild.nix
index 6a0ce0c..cab8193 100644
--- a/Biz/Bild.nix
+++ b/Biz/Bild.nix
@@ -153,4 +153,6 @@ in rec {
};
os = cfg: (nixpkgs.nixos (args: cfg)).toplevel;
+
+ image = pkgs.dockerTools.buildImage;
}
diff --git a/Biz/Cloud/Ports.nix b/Biz/Cloud/Ports.nix
index ad5ddc9..4ba5d7e 100644
--- a/Biz/Cloud/Ports.nix
+++ b/Biz/Cloud/Ports.nix
@@ -13,6 +13,7 @@
https = 443;
jellyfin = 8096;
jupyter = 4000;
+ k3s = 6443;
mpd = 6600;
mpd-stream = 8097;
murmur = 64738;
diff --git a/Biz/Dev/Configuration.nix b/Biz/Dev/Configuration.nix
index 8eb4958..6c58ba4 100644
--- a/Biz/Dev/Configuration.nix
+++ b/Biz/Dev/Configuration.nix
@@ -22,6 +22,7 @@ in {
ports.https
ports.jellyfin
ports.jupyter
+ ports.k3s
ports.mpd
ports.mpd-stream
ports.murmur
@@ -64,6 +65,7 @@ in {
];
environment.systemPackages = [
+ pkgs.k3s
pkgs.wemux
pkgs.tmux
pkgs.wireguard
@@ -128,6 +130,14 @@ in {
eternal-terminal = {
enable = true;
};
+
+ k3s = {
+ enable = true;
+ role = "server";
+ extraFlags = toString [
+ ];
+ };
+
tor = {
enable = true;
client.enable = true;