From d396f1e99b980d9278308940d6c4486a280512a2 Mon Sep 17 00:00:00 2001 From: Nathan Zadoks Date: Sun, 20 Dec 2015 14:15:49 +0100 Subject: kmscon service: add extraOptions option --- nixos/modules/services/ttys/kmscon.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'nixos/modules/services/ttys') diff --git a/nixos/modules/services/ttys/kmscon.nix b/nixos/modules/services/ttys/kmscon.nix index 7783a1ada71dd..ba25f91284457 100644 --- a/nixos/modules/services/ttys/kmscon.nix +++ b/nixos/modules/services/ttys/kmscon.nix @@ -32,6 +32,13 @@ in { default = ""; 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 [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 TTYPath=/dev/%I TTYReset=yes -- cgit 1.4.1