From d396f1e99b980d9278308940d6c4486a280512a2 Mon Sep 17 00:00:00 2001 From: Nathan Zadoks Date: Sun, 20 Dec 2015 14:15:49 +0100 Subject: [PATCH] kmscon service: add extraOptions option --- nixos/modules/services/ttys/kmscon.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/ttys/kmscon.nix b/nixos/modules/services/ttys/kmscon.nix index 7783a1ada71d..ba25f9128445 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