mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
foot: add WantedBy systemd target option
This commit is contained in:
parent
3144311f31
commit
8bc51c80ba
1 changed files with 10 additions and 1 deletions
|
@ -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 ]; };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue