about summary refs log tree commit diff
path: root/lib/my.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lib/my.nix')
-rw-r--r--lib/my.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/my.nix b/lib/my.nix
index c0ec35a..7d2d1de 100644
--- a/lib/my.nix
+++ b/lib/my.nix
@@ -30,6 +30,12 @@ with lib;
                       readOnly = true;
                     };
 
+                    deviceIcon = mkOption {
+                      description = "Device icon to be used with nix-topology.";
+                      type = nullOr (either path str);
+                      default = null;
+                    };
+
                     system = mkOption {
                       description = "The machine's system.";
                       type = nullOr (enum platforms.all);
@@ -146,6 +152,7 @@ with lib;
         configurations = {
           # VPS in Germany.
           manwe = {
+            deviceIcon = "devices.cloud-server";
             system = "x86_64-linux";
             isHeadless = true;
             ipv4 = {
@@ -188,6 +195,7 @@ with lib;
 
           # VPS in Germany.
           varda = {
+            deviceIcon = "devices.cloud-server";
             system = "x86_64-linux";
             isHeadless = true;
             ipv4 = {
@@ -209,6 +217,7 @@ with lib;
 
           # VPS in France.
           yavanna = {
+            deviceIcon = "devices.cloud-server";
             system = "x86_64-linux";
             isHeadless = true;
             ipv4 = {
@@ -236,6 +245,7 @@ with lib;
 
           # A beefy desktop: 7950x/rx6750xt/128GB.
           eonwe = {
+            deviceIcon = "devices.desktop";
             system = "x86_64-linux";
             isHeadful = true;
             wireguard = {
@@ -248,6 +258,7 @@ with lib;
 
           # ThinkPad T480.
           melian = {
+            deviceIcon = "devices.laptop";
             system = "x86_64-linux";
             isHeadful = true;
             wireguard = {

Consider giving Nix/NixOS a try! <3