3
0
Fork 0
forked from mirrors/nixpkgs

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

View file

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