Add rustdesk options on workstation
This commit is contained in:
parent
efb0a1a554
commit
a07dc74aa7
2 changed files with 27 additions and 0 deletions
|
@ -30,6 +30,7 @@ in
|
||||||
./helix.nix
|
./helix.nix
|
||||||
./games.nix
|
./games.nix
|
||||||
./libreoffice.nix
|
./libreoffice.nix
|
||||||
|
./rustdesk.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
26
modules/workstation/home-manager/rustdesk.nix
Normal file
26
modules/workstation/home-manager/rustdesk.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue