From 7e04786d473276100292e183d676008ce69395cc Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Mon, 5 Oct 2026 15:48:27 -0400 Subject: [PATCH] Add support for installing freerdp as an rdp client. --- nix/configuration/configuration.nix | 1 + nix/configuration/hosts/odowork/default.nix | 1 + .../roles/rdp_client/default.nix | 25 +++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 nix/configuration/roles/rdp_client/default.nix diff --git a/nix/configuration/configuration.nix b/nix/configuration/configuration.nix index c8a7bbf..2032571 100644 --- a/nix/configuration/configuration.nix +++ b/nix/configuration/configuration.nix @@ -78,6 +78,7 @@ in ./roles/postgresql_client ./roles/python ./roles/qemu + ./roles/rdp_client ./roles/recovery ./roles/reset ./roles/rpcs3 diff --git a/nix/configuration/hosts/odowork/default.nix b/nix/configuration/hosts/odowork/default.nix index 970cc6f..eef8503 100644 --- a/nix/configuration/hosts/odowork/default.nix +++ b/nix/configuration/hosts/odowork/default.nix @@ -126,6 +126,7 @@ me.podman.enable = true; me.postgresql_client.enable = true; me.python.enable = true; + me.rdp_client.enable = true; me.rust.enable = true; me.sequoia.enable = true; me.shikane.enable = true; diff --git a/nix/configuration/roles/rdp_client/default.nix b/nix/configuration/roles/rdp_client/default.nix new file mode 100644 index 0000000..157dcbc --- /dev/null +++ b/nix/configuration/roles/rdp_client/default.nix @@ -0,0 +1,25 @@ +{ + config, + lib, + pkgs, + ... +}: + +{ + imports = [ ]; + + options.me = { + rdp_client.enable = lib.mkOption { + type = lib.types.bool; + default = false; + example = true; + description = "Whether we want to install rdp_client."; + }; + }; + + config = lib.mkIf (config.me.rdp_client.enable && config.me.graphical) { + environment.systemPackages = with pkgs; [ + freerdp + ]; + }; +}