summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2024-05-02 03:17:48 +0300
committerAzat Bahawi <azat@bahawi.net>2024-05-02 03:17:48 +0300
commit9b3ebd974bde5c8ebe1f8c8f049f7ee2c6462655 (patch)
tree408194f6f761872df938888ebc4ce46244168618 /lib
parent9a20404924fda2587ce4f9769f75369799f34643 (diff)
2024-05-02
Diffstat (limited to 'lib')
-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 = {