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
default = "";
33
example = "font-size=14";
34
};
0
0
0
0
0
0
0
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