Pulsebert: run ncmpcpp on tty0
This commit is contained in:
parent
f82f1ab323
commit
80fa2d745f
|
@ -19,6 +19,7 @@ in {
|
|||
../../lib/yggdrasil.nix
|
||||
../../lib/hail.nix
|
||||
../../lib/emery.nix
|
||||
./mpdConsole.nix
|
||||
];
|
||||
|
||||
c3d2 = {
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in New Issue