From 2736c461a1fe4fa699bc05f3fe09ba69ddc0d20a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 21 Oct 2020 15:49:45 -0400 Subject: [PATCH] Add services/teamviewer module --- hosts/kuro/default.nix | 2 ++ modules/services/teamviewer.nix | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 modules/services/teamviewer.nix diff --git a/hosts/kuro/default.nix b/hosts/kuro/default.nix index a66674cd..64ee6a21 100644 --- a/hosts/kuro/default.nix +++ b/hosts/kuro/default.nix @@ -62,6 +62,8 @@ }; services = { ssh.enable = true; + # Needed occasionally to help the parental units with PC problems + # teamviewer.enable = true; }; themes.fluorescence.enable = true; }; diff --git a/modules/services/teamviewer.nix b/modules/services/teamviewer.nix new file mode 100644 index 00000000..c26e7a49 --- /dev/null +++ b/modules/services/teamviewer.nix @@ -0,0 +1,14 @@ +{ options, config, lib, pkgs, ... }: + +with lib; +with lib.my; +let cfg = config.modules.services.teamviewer; +in { + options.modules.services.teamviewer = { + enable = mkBoolOpt false; + }; + + config = mkIf cfg.enable { + services.teamviewer.enable = true; + }; +}