fix(emacs): start with graphical session
This commit is contained in:
@@ -141,7 +141,7 @@ in {
|
|||||||
sydmacs
|
sydmacs
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Set emacsclient as the default editor for the time being.
|
# Set emacsclient as the default editor for the time being.
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "emacsclient";
|
EDITOR = "emacsclient";
|
||||||
@@ -171,6 +171,14 @@ in {
|
|||||||
client.enable = true;
|
client.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Start Emacs after the graphical session so as to inherit
|
||||||
|
# expected envvars, but don't necessarily /depend/ on a
|
||||||
|
# graphical session.
|
||||||
|
systemd.user.services.emacs = {
|
||||||
|
Unit.After = [ "graphical-session.target" ];
|
||||||
|
Install.WantedBy = lib.mkForce [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
# We do this ourselves.
|
# We do this ourselves.
|
||||||
stylix.targets.emacs.enable = false;
|
stylix.targets.emacs.enable = false;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user