about summary refs log tree commit diff
path: root/modules/k3s.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/k3s.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/k3s.nix b/modules/k3s.nix
index 1ad99c3..01c77dd 100644
--- a/modules/k3s.nix
+++ b/modules/k3s.nix
@@ -1,7 +1,9 @@
 {
   config,
+  inputs,
   lib,
   pkgs,
+  this,
   ...
 }:
 with lib;
@@ -59,5 +61,12 @@ in
       kubectx
       kubernetes-helm
     ];
+
+    topology = {
+      nodes.${this.hostname}.services.k3s = {
+        name = "K3s";
+        icon = "${inputs.self}/media/k3s.svg";
+      };
+    };
   };
 }

Consider giving Nix/NixOS a try! <3