feat: added i3 systemdTarget
feat: added xorg wallpaper module
This commit is contained in:
parent
f4a871a401
commit
bc948ad1ab
4 changed files with 99 additions and 0 deletions
31
hm-modules/i3.nix
Normal file
31
hm-modules/i3.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
options.xsession.windowManager.i3.enableSystemdTarget = lib.mkEnableOption "i3 autostarting the systemd graphical user targets";
|
||||
config = let
|
||||
cfg = config.xsession.windowManager.i3.enableSystemdTarget;
|
||||
in
|
||||
lib.mkIf cfg {
|
||||
systemd.user = {
|
||||
targets.i3-session = {
|
||||
Unit = {
|
||||
Description = "i3 session";
|
||||
Documentation = ["man:systemd.special(7)"];
|
||||
BindsTo = ["graphical-session.target"];
|
||||
Wants = ["graphical-session-pre.target"];
|
||||
After = ["graphical-session-pre.target"];
|
||||
};
|
||||
};
|
||||
};
|
||||
xsession.windowManager.i3.config.startup = lib.mkAfter [
|
||||
{
|
||||
command = "${pkgs.systemd}/bin/systemctl --user start i3-session.target";
|
||||
always = false;
|
||||
notification = false;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue