From 9497f081a1031632fee9c915941736b33b111b45 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Sat, 23 Apr 2022 16:24:36 +0200 Subject: [PATCH] nixos/haguichi: init --- nixos/modules/module-list.nix | 1 + nixos/modules/programs/haguichi.nix | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 nixos/modules/programs/haguichi.nix diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 132416d865f4..e8d00b12a4a1 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -165,6 +165,7 @@ ./programs/gpaste.nix ./programs/gnupg.nix ./programs/gphoto2.nix + ./programs/haguichi.nix ./programs/hamster.nix ./programs/htop.nix ./programs/iftop.nix diff --git a/nixos/modules/programs/haguichi.nix b/nixos/modules/programs/haguichi.nix new file mode 100644 index 000000000000..4f48551cf1da --- /dev/null +++ b/nixos/modules/programs/haguichi.nix @@ -0,0 +1,15 @@ +{ lib, pkgs, config, ... }: + +with lib; + +{ + options.programs.haguichi = { + enable = mkEnableOption "Haguichi, a Linux GUI frontend to the proprietary LogMeIn Hamachi"; + }; + + config = mkIf config.programs.haguichi.enable { + environment.systemPackages = with pkgs; [ haguichi ]; + + services.logmein-hamachi.enable = true; + }; +}