Browse Source

Pulsebert: run ncmpcpp on tty0

storage-ng
Emery Hemingway 2 months ago
parent
commit
80fa2d745f
2 changed files with 23 additions and 0 deletions
  1. 1
    0
      hosts/pulsebert/configuration.nix
  2. 22
    0
      hosts/pulsebert/mpdConsole.nix

+ 1
- 0
hosts/pulsebert/configuration.nix View File

@@ -19,6 +19,7 @@ in {
19 19
       ../../lib/yggdrasil.nix
20 20
       ../../lib/hail.nix
21 21
       ../../lib/emery.nix
22
+    ./mpdConsole.nix
22 23
     ];
23 24
 
24 25
   c3d2 = {

+ 22
- 0
hosts/pulsebert/mpdConsole.nix View File

@@ -0,0 +1,22 @@
1
+{ pkgs, ... }:
2
+
3
+let tty = "tty1";
4
+in {
5
+  boot.extraTTYs = [ tty ];
6
+
7
+  systemd.services.ncmpcpp = {
8
+    description = "Rogue dungeon crawling game";
9
+    wantedBy = [ "multi-user.target" ];
10
+    serviceConfig = {
11
+      ExecStart = "${pkgs.ncmpcpp}/bin/ncmpcpp";
12
+      StandardInput = "tty";
13
+      StandardOutput = "tty";
14
+      TTYPath = "/dev/${tty}";
15
+      TTYReset = true;
16
+      TTYVTDisallocate = true;
17
+      WorkingDirectory = "/tmp";
18
+      Restart = "always";
19
+    };
20
+  };
21
+
22
+}

Loading…
Cancel
Save