mirror of
https://github.com/nix-community/home-manager
synced 2024-06-01 04:23:34 +02:00
Merge 8bc51c80ba
into c1609d584a
This commit is contained in:
commit
e5e50091d9
|
@ -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 = { };
|
||||
|
@ -73,7 +82,7 @@ in {
|
|||
OOMPolicy = "continue";
|
||||
};
|
||||
|
||||
Install = { WantedBy = [ "graphical-session.target" ]; };
|
||||
Install = { WantedBy = [ cfg.server.systemdTarget ]; };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user