23 lines
449 B
Nix
23 lines
449 B
Nix
{ pkgs, ... }:
|
|
|
|
let tty = "tty9";
|
|
in {
|
|
boot.extraTTYs = [ tty ];
|
|
|
|
systemd.services.ncmpcpp = {
|
|
description = "Mpd console";
|
|
wantedBy = [ "multi-user.target" ];
|
|
serviceConfig = {
|
|
User = "k-ot";
|
|
ExecStart = "${pkgs.ncmpcpp}/bin/ncmpcpp";
|
|
StandardInput = "tty";
|
|
StandardOutput = "tty";
|
|
TTYPath = "/dev/${tty}";
|
|
TTYReset = true;
|
|
TTYVTDisallocate = true;
|
|
Restart = "always";
|
|
};
|
|
};
|
|
|
|
}
|