summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-03-23 10:30:46 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-03-24 15:25:20 +0100
commitbd379be53835959c02b2967e28b57a69c06a85aa (patch)
tree92191a513e930a5fca397e97e4ebc9be124fde9b /nixos
parentaebf9a4709215c230e5841d60e2bce6aa6627ac8 (diff)
downloadnixpkgs-bd379be53835959c02b2967e28b57a69c06a85aa.tar
nixpkgs-bd379be53835959c02b2967e28b57a69c06a85aa.tar.gz
nixpkgs-bd379be53835959c02b2967e28b57a69c06a85aa.tar.bz2
nixpkgs-bd379be53835959c02b2967e28b57a69c06a85aa.tar.lz
nixpkgs-bd379be53835959c02b2967e28b57a69c06a85aa.tar.xz
nixpkgs-bd379be53835959c02b2967e28b57a69c06a85aa.tar.zst
nixpkgs-bd379be53835959c02b2967e28b57a69c06a85aa.zip
Remove unused 'rogue' service
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/module-list.nix1
-rw-r--r--nixos/modules/profiles/installation-device.nix3
-rw-r--r--nixos/modules/services/misc/rogue.nix62
3 files changed, 0 insertions, 66 deletions
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix
index 6ef915152b2..8c7f5e39a3b 100644
--- a/nixos/modules/module-list.nix
+++ b/nixos/modules/module-list.nix
@@ -484,7 +484,6 @@
   ./services/misc/redmine.nix
   ./services/misc/rippled.nix
   ./services/misc/ripple-data-api.nix
-  ./services/misc/rogue.nix
   ./services/misc/serviio.nix
   ./services/misc/safeeyes.nix
   ./services/misc/sickbeard.nix
diff --git a/nixos/modules/profiles/installation-device.nix b/nixos/modules/profiles/installation-device.nix
index 06008d8a5e7..d05c0c50e82 100644
--- a/nixos/modules/profiles/installation-device.nix
+++ b/nixos/modules/profiles/installation-device.nix
@@ -27,9 +27,6 @@ with lib;
     # Show the manual.
     documentation.nixos.enable = mkForce true;
 
-    # Let the user play Rogue on TTY 8 during the installation.
-    #services.rogue.enable = true;
-
     # Use less privileged nixos user
     users.users.nixos = {
       isNormalUser = true;
diff --git a/nixos/modules/services/misc/rogue.nix b/nixos/modules/services/misc/rogue.nix
deleted file mode 100644
index d56d103b5f3..00000000000
--- 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";
-          };
-      };
-
-  };
-
-}