diff --git a/hosts/pulsebert/configuration.nix b/hosts/pulsebert/configuration.nix index 713ba56e..67a7a657 100644 --- a/hosts/pulsebert/configuration.nix +++ b/hosts/pulsebert/configuration.nix @@ -19,6 +19,7 @@ in { ../../lib/yggdrasil.nix ../../lib/hail.nix ../../lib/emery.nix + ./mpdConsole.nix ]; c3d2 = { diff --git a/hosts/pulsebert/mpdConsole.nix b/hosts/pulsebert/mpdConsole.nix new file mode 100644 index 00000000..597fa206 --- /dev/null +++ b/hosts/pulsebert/mpdConsole.nix @@ -0,0 +1,22 @@ +{ pkgs, ... }: + +let tty = "tty1"; +in { + boot.extraTTYs = [ tty ]; + + systemd.services.ncmpcpp = { + description = "Rogue dungeon crawling game"; + wantedBy = [ "multi-user.target" ]; + serviceConfig = { + ExecStart = "${pkgs.ncmpcpp}/bin/ncmpcpp"; + StandardInput = "tty"; + StandardOutput = "tty"; + TTYPath = "/dev/${tty}"; + TTYReset = true; + TTYVTDisallocate = true; + WorkingDirectory = "/tmp"; + Restart = "always"; + }; + }; + +}