From 028c26db490fea082df3d34becbac24fb822c612 Mon Sep 17 00:00:00 2001 From: aristote Date: Sat, 3 Aug 2024 21:32:36 +0200 Subject: home: add network manager applet --- modules/home-manager/personal/gui/x/i3/startup.nix | 32 ++++++++++++++-------- 1 file changed, 20 insertions(+), 12 deletions(-) (limited to 'modules/home-manager/personal/gui') diff --git a/modules/home-manager/personal/gui/x/i3/startup.nix b/modules/home-manager/personal/gui/x/i3/startup.nix index 521b666..b3e875d 100644 --- a/modules/home-manager/personal/gui/x/i3/startup.nix +++ b/modules/home-manager/personal/gui/x/i3/startup.nix @@ -1,18 +1,26 @@ -{ config, lib, pkgs, ... }: - { + config, + lib, + ... +} @ extraArgs: { xsession.windowManager.i3.config.startup = let - autostart = { command, always ? false, notification ? false }: { + autostart = { + command, + always ? false, + notification ? false, + }: { inherit command always notification; }; autostartIf = cond: args: lib.optional cond (autostart args); - in [ - (autostart { command = "rfkill block bluetooth"; }) - (autostart { command = "keepassxc"; }) - ] - ++ autostartIf config.programs.thunderbird.enable { command = "thunderbird"; } - ++ autostartIf - (config.personal.profiles.social && config.personal.identities.personal) { - command = "signal-desktop"; - }; + in + [ + (autostart {command = "rfkill block bluetooth";}) + (autostart {command = "keepassxc";}) + ] + ++ autostartIf config.programs.thunderbird.enable {command = "thunderbird";} + ++ autostartIf (extraArgs.osConfig.networking.networkmanager.enable or false) {command = "nm-applet";} + ++ autostartIf + (config.personal.profiles.social && config.personal.identities.personal) { + command = "signal-desktop"; + }; } -- cgit v1.2.3