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