kmscon service: add extraOptions option

+8 -1
+8 -1
nixos/modules/services/ttys/kmscon.nix
··· 32 default = ""; 33 example = "font-size=14"; 34 }; 35 }; 36 }; 37 ··· 53 ConditionPathExists=/dev/tty0 54 55 [Service] 56 - ExecStart=${pkgs.kmscon}/bin/kmscon "--vt=%I" --seats=seat0 --no-switchvt --configdir ${configDir} --login -- ${pkgs.shadow}/bin/login -p 57 UtmpIdentifier=%I 58 TTYPath=/dev/%I 59 TTYReset=yes
··· 32 default = ""; 33 example = "font-size=14"; 34 }; 35 + 36 + extraOptions = mkOption { 37 + description = "Extra flags to pass to kmscon."; 38 + type = types.separatedString " "; 39 + default = ""; 40 + example = "--term xterm-256color"; 41 + }; 42 }; 43 }; 44 ··· 60 ConditionPathExists=/dev/tty0 61 62 [Service] 63 + ExecStart=${pkgs.kmscon}/bin/kmscon "--vt=%I" ${cfg.extraOptions} --seats=seat0 --no-switchvt --configdir ${configDir} --login -- ${pkgs.shadow}/bin/login -p 64 UtmpIdentifier=%I 65 TTYPath=/dev/%I 66 TTYReset=yes