Add rustdesk options on workstation

This commit is contained in:
Victor Mignot 2024-12-07 12:02:51 +01:00
parent efb0a1a554
commit a07dc74aa7
Signed by: dala
SSH key fingerprint: SHA256:+3O9MhlDc2tJL0n+E+Myr7nL+74DP9AXdIXHmIqZTkY
2 changed files with 27 additions and 0 deletions

View file

@ -30,6 +30,7 @@ in
./helix.nix
./games.nix
./libreoffice.nix
./rustdesk.nix
];
config = {

View file

@ -0,0 +1,26 @@
{
pkgs,
lib,
config,
...
}:
let
cfg = config.my.rustdesk;
in
with lib;
{
options = {
my.rustdesk.enable = mkOption {
type = types.bool;
default = true;
example = false;
description = "Whether to enable the RustDesk client on this workstation";
};
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
rustdesk
];
};
}