From a07dc74aa78ba2c03cc15912034433f73f355628 Mon Sep 17 00:00:00 2001 From: Victor Mignot Date: Sat, 7 Dec 2024 12:02:51 +0100 Subject: [PATCH] Add rustdesk options on workstation --- modules/workstation/home-manager/default.nix | 1 + modules/workstation/home-manager/rustdesk.nix | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 modules/workstation/home-manager/rustdesk.nix diff --git a/modules/workstation/home-manager/default.nix b/modules/workstation/home-manager/default.nix index 6d0ea25..ea12565 100644 --- a/modules/workstation/home-manager/default.nix +++ b/modules/workstation/home-manager/default.nix @@ -30,6 +30,7 @@ in ./helix.nix ./games.nix ./libreoffice.nix + ./rustdesk.nix ]; config = { diff --git a/modules/workstation/home-manager/rustdesk.nix b/modules/workstation/home-manager/rustdesk.nix new file mode 100644 index 0000000..6a4ba2a --- /dev/null +++ b/modules/workstation/home-manager/rustdesk.nix @@ -0,0 +1,26 @@ +{ + pkgs, + lib, + config, + ... +}: +let + cfg = config.my.rustdesk; +in +with lib; +{ + options = { + my.rustdesk.enable = mkOption { + type = types.bool; + default = true; + example = false; + description = "Whether to enable the RustDesk client on this workstation"; + }; + }; + + config = mkIf cfg.enable { + home.packages = with pkgs; [ + rustdesk + ]; + }; +}