forked from mirrors/nixpkgs
kmscon service: add extraOptions option
This commit is contained in:
parent
1979034956
commit
d396f1e99b
1 changed files with 8 additions and 1 deletions
|
@ -32,6 +32,13 @@ in {
|
||||||
default = "";
|
default = "";
|
||||||
example = "font-size=14";
|
example = "font-size=14";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraOptions = mkOption {
|
||||||
|
description = "Extra flags to pass to kmscon.";
|
||||||
|
type = types.separatedString " ";
|
||||||
|
default = "";
|
||||||
|
example = "--term xterm-256color";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -53,7 +60,7 @@ in {
|
||||||
ConditionPathExists=/dev/tty0
|
ConditionPathExists=/dev/tty0
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=${pkgs.kmscon}/bin/kmscon "--vt=%I" --seats=seat0 --no-switchvt --configdir ${configDir} --login -- ${pkgs.shadow}/bin/login -p
|
ExecStart=${pkgs.kmscon}/bin/kmscon "--vt=%I" ${cfg.extraOptions} --seats=seat0 --no-switchvt --configdir ${configDir} --login -- ${pkgs.shadow}/bin/login -p
|
||||||
UtmpIdentifier=%I
|
UtmpIdentifier=%I
|
||||||
TTYPath=/dev/%I
|
TTYPath=/dev/%I
|
||||||
TTYReset=yes
|
TTYReset=yes
|
||||||
|
|
Loading…
Add table
Reference in a new issue