Skip to content

Commit

Permalink
[rustdesk] add as a module
Browse files Browse the repository at this point in the history
  • Loading branch information
ejiek committed Nov 13, 2023
1 parent d392e14 commit 93d8362
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions hosts/ePower/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
podman.enable = true;
rbw.enable = true;
rofi.enable = true;
rustdesk.enable = true;
qutebrowser.enable = true;
spotify.enable = true;
starship.enable = true;
Expand Down
1 change: 1 addition & 0 deletions modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
./qutebrowser
./rbw
./rofi
./rustdesk
./spotify
./starship
./steam
Expand Down
16 changes: 16 additions & 0 deletions modules/rustdesk/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{ config, lib, pkgs, ... }:
let inherit (lib) types mkIf mkDefault mkOption;
in {
options.my-config = {
rustdesk.enable = mkOption {
description = "Enable rustdesk";
type = types.bool;
default = false;
};
};

config = mkIf config.my-config.obsidian.enable {
environment.systemPackages = with pkgs; [ rustdesk ];
nixpkgs.allowUnfreePackages = [ "libsciter" ];
};
}

0 comments on commit 93d8362

Please sign in to comment.