configurations of hq services
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mpdConsole.nix 449B

12345678910111213141516171819202122
  1. { pkgs, ... }:
  2. let tty = "tty1";
  3. in {
  4. boot.extraTTYs = [ tty ];
  5. systemd.services.ncmpcpp = {
  6. description = "Mpd console";
  7. wantedBy = [ "multi-user.target" ];
  8. serviceConfig = {
  9. User = "k-ot";
  10. ExecStart = "${pkgs.ncmpcpp}/bin/ncmpcpp";
  11. StandardInput = "tty";
  12. StandardOutput = "tty";
  13. TTYPath = "/dev/${tty}";
  14. TTYReset = true;
  15. TTYVTDisallocate = true;
  16. Restart = "always";
  17. };
  18. };
  19. }