mirror of
https://github.com/nix-community/home-manager
synced 2024-06-01 04:23:34 +02:00
Merge f2b5f8c61d
into 3dfe05aa9b
This commit is contained in:
commit
18a3143792
|
@ -163,7 +163,7 @@ in {
|
|||
}
|
||||
|
||||
(mkIf cfg.x11.enable {
|
||||
xsession.initExtra = ''
|
||||
xsession.initBeforeSystemd = ''
|
||||
${pkgs.xorg.xsetroot}/bin/xsetroot -xcf ${cursorPath} ${
|
||||
toString cfg.size
|
||||
}
|
||||
|
|
|
@ -99,6 +99,6 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
xsession.initExtra = xrdbMerge;
|
||||
xsession.initBeforeSystemd = xrdbMerge;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user