From 2106827132cd2eeeb710ce3a6afa00b304a60d69 Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Thu, 7 Nov 2024 14:53:20 -0600 Subject: [PATCH] rustdesk client --- hosts/gpdPocket3/configuration.nix | 1 + hosts/lio/configuration.nix | 1 + modules/rustdesk.nix | 24 ++++++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 modules/rustdesk.nix diff --git a/hosts/gpdPocket3/configuration.nix b/hosts/gpdPocket3/configuration.nix index 8b2b33e..92422b5 100644 --- a/hosts/gpdPocket3/configuration.nix +++ b/hosts/gpdPocket3/configuration.nix @@ -24,6 +24,7 @@ stormd.enable = true; nebula.enable = true; ssh.enable = true; + rustdesk.enable = true; }; # machine specific configuration diff --git a/hosts/lio/configuration.nix b/hosts/lio/configuration.nix index 45024a2..df2da58 100644 --- a/hosts/lio/configuration.nix +++ b/hosts/lio/configuration.nix @@ -24,6 +24,7 @@ ssh.enable = true; stormd.enable = true; nebula.enable = true; + rustdesk.enable = true; }; # opening this port for dev purposes diff --git a/modules/rustdesk.nix b/modules/rustdesk.nix new file mode 100644 index 0000000..06e5b03 --- /dev/null +++ b/modules/rustdesk.nix @@ -0,0 +1,24 @@ +{ + config, + lib, + pkgs, + ... +}: +with lib; +let + name = "rustdesk"; + cfg = config.mods.${name}; +in +{ + options = { + mods.${name} = { + enable = mkEnableOption (lib.mdDoc "Enable ${name}"); + }; + }; + + config = mkIf cfg.enable { + environment.systemPackages = with pkgs; [ + rustdesk + ]; + }; +}