Move mpd console to tty9, run as k-ot
This commit is contained in:
parent
654f2ecf1f
commit
39cef2da1d
|
@ -1,20 +1,20 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
let tty = "tty1";
|
let tty = "tty9";
|
||||||
in {
|
in {
|
||||||
boot.extraTTYs = [ tty ];
|
boot.extraTTYs = [ tty ];
|
||||||
|
|
||||||
systemd.services.ncmpcpp = {
|
systemd.services.ncmpcpp = {
|
||||||
description = "Rogue dungeon crawling game";
|
description = "Mpd console";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
User = "k-ot";
|
||||||
ExecStart = "${pkgs.ncmpcpp}/bin/ncmpcpp";
|
ExecStart = "${pkgs.ncmpcpp}/bin/ncmpcpp";
|
||||||
StandardInput = "tty";
|
StandardInput = "tty";
|
||||||
StandardOutput = "tty";
|
StandardOutput = "tty";
|
||||||
TTYPath = "/dev/${tty}";
|
TTYPath = "/dev/${tty}";
|
||||||
TTYReset = true;
|
TTYReset = true;
|
||||||
TTYVTDisallocate = true;
|
TTYVTDisallocate = true;
|
||||||
WorkingDirectory = "/tmp";
|
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue