blob: b3e875d25e0012abbf7db178ef9735c9ecdaf7fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{
config,
lib,
...
} @ extraArgs: {
xsession.windowManager.i3.config.startup = let
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 (extraArgs.osConfig.networking.networkmanager.enable or false) {command = "nm-applet";}
++ autostartIf
(config.personal.profiles.social && config.personal.identities.personal) {
command = "signal-desktop";
};
}
|