Files
machine_setup/nix/configuration/roles/rdp_client/default.nix
2026-11-03 13:54:01 -05:00

40 lines
757 B
Nix

{
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
];
environment.persistence."/persist" = lib.mkIf (config.me.mountPersistence) {
hideMounts = true;
users.talexander = {
directories = [
{
directory = ".config/freerdp";
user = "talexander";
group = "talexander";
mode = "0700";
}
];
};
};
};
}