summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/home-manager/personal/gui/x/i3/startup.nix32
1 files changed, 20 insertions, 12 deletions
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";
+ };
}