Fix the rogue service for systemd
This commit is contained in:
parent
13a5ebad32
commit
8dc4f2c3be
|
@ -40,14 +40,17 @@ in
|
||||||
|
|
||||||
boot.extraTTYs = [ cfg.tty ];
|
boot.extraTTYs = [ cfg.tty ];
|
||||||
|
|
||||||
jobs.rogue =
|
boot.systemd.services.rogue =
|
||||||
{ description = "Rogue dungeon crawling game";
|
{ description = "Rogue dungeon crawling game";
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
startOn = "started udev";
|
serviceConfig =
|
||||||
|
{ ExecStart = "${pkgs.rogue}/bin/rogue";
|
||||||
extraConfig = "chdir /root";
|
StandardInput = "tty";
|
||||||
|
StandardOutput = "tty";
|
||||||
exec = "${pkgs.rogue}/bin/rogue < /dev/${cfg.tty} > /dev/${cfg.tty} 2>&1";
|
TTYPath = "/dev/${cfg.tty}";
|
||||||
|
TTYReset = true;
|
||||||
|
TTYVTDisallocate = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.ttyBackgrounds.specificThemes = singleton
|
services.ttyBackgrounds.specificThemes = singleton
|
||||||
|
|
Loading…
Reference in New Issue