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 + ]; + }; +}