1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 03:29:45 +01:00

foot: add WantedBy systemd target option

This commit is contained in:
oluceps 2023-05-02 02:05:20 +08:00
parent 3144311f31
commit 8bc51c80ba
No known key found for this signature in database

View file

@ -22,6 +22,15 @@ in {
server.enable = mkEnableOption "Foot terminal server";
server.systemdTarget = mkOption {
type = types.str;
default = "graphical-session.target";
example = "sway-session.target";
description = ''
The systemd target that will automatically start the foot server.
'';
};
settings = mkOption {
type = iniFormat.type;
default = { };
@ -74,7 +83,7 @@ in {
OOMPolicy = "continue";
};
Install = { WantedBy = [ "graphical-session.target" ]; };
Install = { WantedBy = [ cfg.server.systemdTarget ]; };
};
};
};