Move mpd console to tty9, run as k-ot

This commit is contained in:
Ehmry - 2020-01-20 14:50:26 +01:00
parent 654f2ecf1f
commit 39cef2da1d
1 changed files with 3 additions and 3 deletions

View File

@ -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";
}; };
}; };