From b1e8664e32f446eb9d02e6f46ec14dda5a4b2e65 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 5 May 2021 12:21:10 +0200 Subject: [PATCH] home: add nm-applet --- home/default.nix | 1 + home/nm-applet.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 home/nm-applet.nix diff --git a/home/default.nix b/home/default.nix index 570a0c2..91a6e51 100644 --- a/home/default.nix +++ b/home/default.nix @@ -11,6 +11,7 @@ ./gpg.nix ./htop.nix ./jq.nix + ./nm-applet.nix ./packages.nix ./pager.nix ./secrets # Home-manager specific secrets diff --git a/home/nm-applet.nix b/home/nm-applet.nix new file mode 100644 index 0000000..b8637f7 --- /dev/null +++ b/home/nm-applet.nix @@ -0,0 +1,13 @@ +{ config, lib, ... }: +let + cfg = config.my.home.nm-applet; +in +{ + options.my.home.nm-applet = with lib; { + enable = mkEnableOption "network-manager-applet configuration"; + }; + + config.services.network-manager-applet = lib.mkIf cfg.enable { + enable = true; + }; +}