Pulsebert: run ncmpcpp on tty0

Este commit está contenido en:
Emery Hemingway 2020-01-18 18:00:19 +01:00
padre f82f1ab323
commit 80fa2d745f
Se han modificado 2 ficheros con 23 adiciones y 0 borrados

Ver fichero

@ -19,6 +19,7 @@ in {
../../lib/yggdrasil.nix
../../lib/hail.nix
../../lib/emery.nix
./mpdConsole.nix
];
c3d2 = {

22
hosts/pulsebert/mpdConsole.nix Archivo normal
Ver fichero

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