tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
kmscon service: add extraOptions option
Nathan Zadoks
10 years ago
d396f1e9
19790349
+8
-1
1 changed file
expand all
collapse all
unified
split
nixos
modules
services
ttys
kmscon.nix
+8
-1
nixos/modules/services/ttys/kmscon.nix
···
32
32
default = "";
33
33
example = "font-size=14";
34
34
};
35
35
+
36
36
+
extraOptions = mkOption {
37
37
+
description = "Extra flags to pass to kmscon.";
38
38
+
type = types.separatedString " ";
39
39
+
default = "";
40
40
+
example = "--term xterm-256color";
41
41
+
};
35
42
};
36
43
};
37
44
···
53
60
ConditionPathExists=/dev/tty0
54
61
55
62
[Service]
56
56
-
ExecStart=${pkgs.kmscon}/bin/kmscon "--vt=%I" --seats=seat0 --no-switchvt --configdir ${configDir} --login -- ${pkgs.shadow}/bin/login -p
63
63
+
ExecStart=${pkgs.kmscon}/bin/kmscon "--vt=%I" ${cfg.extraOptions} --seats=seat0 --no-switchvt --configdir ${configDir} --login -- ${pkgs.shadow}/bin/login -p
57
64
UtmpIdentifier=%I
58
65
TTYPath=/dev/%I
59
66
TTYReset=yes