diff --git a/hosts/ePower/default.nix b/hosts/ePower/default.nix index 3861286..1317086 100644 --- a/hosts/ePower/default.nix +++ b/hosts/ePower/default.nix @@ -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; diff --git a/modules/default.nix b/modules/default.nix index 41d6a4c..d461fae 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -21,6 +21,7 @@ ./qutebrowser ./rbw ./rofi + ./rustdesk ./spotify ./starship ./steam diff --git a/modules/rustdesk/default.nix b/modules/rustdesk/default.nix new file mode 100644 index 0000000..92076e5 --- /dev/null +++ b/modules/rustdesk/default.nix @@ -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" ]; + }; +}