Merge branch 'rdp' into nix
This commit is contained in:
@@ -78,6 +78,7 @@ in
|
||||
./roles/postgresql_client
|
||||
./roles/python
|
||||
./roles/qemu
|
||||
./roles/rdp_client
|
||||
./roles/recovery
|
||||
./roles/reset
|
||||
./roles/rpcs3
|
||||
|
||||
@@ -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;
|
||||
|
||||
25
nix/configuration/roles/rdp_client/default.nix
Normal file
25
nix/configuration/roles/rdp_client/default.nix
Normal file
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user