Fix the rogue service for systemd

This commit is contained in:
Eelco Dolstra 2012-10-04 15:27:31 -04:00
parent 13a5ebad32
commit 8dc4f2c3be
1 changed files with 10 additions and 7 deletions

View File

@ -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