2026-10-05 15:48:27 -04:00
|
|
|
{
|
|
|
|
|
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
|
|
|
|
|
];
|
2026-11-03 13:54:01 -05:00
|
|
|
|
|
|
|
|
environment.persistence."/persist" = lib.mkIf (config.me.mountPersistence) {
|
|
|
|
|
hideMounts = true;
|
|
|
|
|
users.talexander = {
|
|
|
|
|
directories = [
|
|
|
|
|
{
|
|
|
|
|
directory = ".config/freerdp";
|
|
|
|
|
user = "talexander";
|
|
|
|
|
group = "talexander";
|
|
|
|
|
mode = "0700";
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
};
|
2026-10-05 15:48:27 -04:00
|
|
|
};
|
|
|
|
|
}
|