diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-03-23 10:30:46 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-03-24 15:25:20 +0100 |
commit | bd379be53835959c02b2967e28b57a69c06a85aa (patch) | |
tree | 92191a513e930a5fca397e97e4ebc9be124fde9b /nixos/modules/services/misc | |
parent | aebf9a4709215c230e5841d60e2bce6aa6627ac8 (diff) | |
download | nixlib-bd379be53835959c02b2967e28b57a69c06a85aa.tar nixlib-bd379be53835959c02b2967e28b57a69c06a85aa.tar.gz nixlib-bd379be53835959c02b2967e28b57a69c06a85aa.tar.bz2 nixlib-bd379be53835959c02b2967e28b57a69c06a85aa.tar.lz nixlib-bd379be53835959c02b2967e28b57a69c06a85aa.tar.xz nixlib-bd379be53835959c02b2967e28b57a69c06a85aa.tar.zst nixlib-bd379be53835959c02b2967e28b57a69c06a85aa.zip |
Remove unused 'rogue' service
Diffstat (limited to 'nixos/modules/services/misc')
-rw-r--r-- | nixos/modules/services/misc/rogue.nix | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/nixos/modules/services/misc/rogue.nix b/nixos/modules/services/misc/rogue.nix deleted file mode 100644 index d56d103b5f34..000000000000 --- a/nixos/modules/services/misc/rogue.nix +++ /dev/null @@ -1,62 +0,0 @@ -# Execute the game `rogue' on tty 9. Mostly used by the NixOS -# installation CD. - -{ config, lib, pkgs, ... }: - -with lib; - -let - - cfg = config.services.rogue; - -in - -{ - ###### interface - - options = { - - services.rogue.enable = mkOption { - type = types.bool; - default = false; - description = '' - Whether to enable the Rogue game on one of the virtual - consoles. - ''; - }; - - services.rogue.tty = mkOption { - type = types.str; - default = "tty9"; - description = '' - Virtual console on which to run Rogue. - ''; - }; - - }; - - - ###### implementation - - config = mkIf cfg.enable { - - console.extraTTYs = [ cfg.tty ]; - - systemd.services.rogue = - { description = "Rogue dungeon crawling game"; - wantedBy = [ "multi-user.target" ]; - serviceConfig = - { ExecStart = "${pkgs.rogue}/bin/rogue"; - StandardInput = "tty"; - StandardOutput = "tty"; - TTYPath = "/dev/${cfg.tty}"; - TTYReset = true; - TTYVTDisallocate = true; - WorkingDirectory = "/tmp"; - Restart = "always"; - }; - }; - - }; - -} |