From 39cef2da1d1f2a4d53c5fb5f70778dac46f506a6 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Mon, 20 Jan 2020 14:50:26 +0100 Subject: [PATCH] Move mpd console to tty9, run as k-ot --- hosts/pulsebert/mpdConsole.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hosts/pulsebert/mpdConsole.nix b/hosts/pulsebert/mpdConsole.nix index 597fa206..ce5fc387 100644 --- a/hosts/pulsebert/mpdConsole.nix +++ b/hosts/pulsebert/mpdConsole.nix @@ -1,20 +1,20 @@ { pkgs, ... }: -let tty = "tty1"; +let tty = "tty9"; in { boot.extraTTYs = [ tty ]; systemd.services.ncmpcpp = { - description = "Rogue dungeon crawling game"; + description = "Mpd console"; wantedBy = [ "multi-user.target" ]; serviceConfig = { + User = "k-ot"; ExecStart = "${pkgs.ncmpcpp}/bin/ncmpcpp"; StandardInput = "tty"; StandardOutput = "tty"; TTYPath = "/dev/${tty}"; TTYReset = true; TTYVTDisallocate = true; - WorkingDirectory = "/tmp"; Restart = "always"; }; };