1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-01 04:23:34 +02:00
This commit is contained in:
oluceps 2024-04-28 00:58:59 +02:00 committed by GitHub
commit e5e50091d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 = { };
@ -73,7 +82,7 @@ in {
OOMPolicy = "continue";
};
Install = { WantedBy = [ "graphical-session.target" ]; };
Install = { WantedBy = [ cfg.server.systemdTarget ]; };
};
};
};