Pulsebert: run ncmpcpp on tty0

这个提交包含在:
Emery Hemingway 2020-01-18 18:00:19 +01:00
父节点 f82f1ab323
当前提交 80fa2d745f
共有 2 个文件被更改,包括 23 次插入0 次删除

查看文件

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