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