1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-01 04:23:34 +02:00
This commit is contained in:
wrvsrx 2024-05-05 19:22:05 -04:00 committed by GitHub
commit 18a3143792
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 13 additions and 2 deletions

View File

@ -163,7 +163,7 @@ in {
}
(mkIf cfg.x11.enable {
xsession.initExtra = ''
xsession.initBeforeSystemd = ''
${pkgs.xorg.xsetroot}/bin/xsetroot -xcf ${cursorPath} ${
toString cfg.size
}

View File

@ -99,6 +99,6 @@ in {
'';
};
xsession.initExtra = xrdbMerge;
xsession.initBeforeSystemd = xrdbMerge;
};
}

View File

@ -70,6 +70,13 @@ in {
description = "Extra shell commands to run before session start.";
};
initBeforeSystemd = mkOption {
type = types.lines;
default = "";
description =
"Shell commands to run before starting hm-graphical-session.target. For example, configuring x11 cursor and dpi.";
};
initExtra = mkOption {
type = types.lines;
default = "";
@ -201,6 +208,8 @@ in {
fi
unset HM_XPROFILE_SOURCED
${cfg.initBeforeSystemd}
systemctl --user start hm-graphical-session.target
${cfg.initExtra}

View File

@ -3,6 +3,8 @@ if [ -z "$HM_XPROFILE_SOURCED" ]; then
fi
unset HM_XPROFILE_SOURCED
systemctl --user start hm-graphical-session.target
init extra commands