nix-config/hosts/pulsebert/mpdConsole.nix

23 lines
449 B
Nix
Raw Normal View History

2020-01-18 18:00:19 +01:00
{ pkgs, ... }:
2020-01-20 15:54:42 +01:00
let tty = "tty1";
2020-01-18 18:00:19 +01:00
in {
boot.extraTTYs = [ tty ];
systemd.services.ncmpcpp = {
2020-01-20 14:50:26 +01:00
description = "Mpd console";
2020-01-18 18:00:19 +01:00
wantedBy = [ "multi-user.target" ];
serviceConfig = {
2020-01-20 14:50:26 +01:00
User = "k-ot";
2020-01-18 18:00:19 +01:00
ExecStart = "${pkgs.ncmpcpp}/bin/ncmpcpp";
StandardInput = "tty";
StandardOutput = "tty";
TTYPath = "/dev/${tty}";
TTYReset = true;
TTYVTDisallocate = true;
Restart = "always";
};
};
}