about summary refs log tree commit diff
path: root/nixos/modules/services
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-03-23 10:29:12 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-03-24 15:25:20 +0100
commitaebf9a4709215c230e5841d60e2bce6aa6627ac8 (patch)
tree2199d49579a9c07d9aaa20a3025a7b6d09f0689b /nixos/modules/services
parent50281a823f220f74da8ea693955e60f7224cf4d9 (diff)
downloadnixlib-aebf9a4709215c230e5841d60e2bce6aa6627ac8.tar
nixlib-aebf9a4709215c230e5841d60e2bce6aa6627ac8.tar.gz
nixlib-aebf9a4709215c230e5841d60e2bce6aa6627ac8.tar.bz2
nixlib-aebf9a4709215c230e5841d60e2bce6aa6627ac8.tar.lz
nixlib-aebf9a4709215c230e5841d60e2bce6aa6627ac8.tar.xz
nixlib-aebf9a4709215c230e5841d60e2bce6aa6627ac8.tar.zst
nixlib-aebf9a4709215c230e5841d60e2bce6aa6627ac8.zip
services/misc/nixos-manual.nix: Remove
Running the manual on a TTY is useless in the graphical ISOs and not
particularly useful in non-graphical ISOs (since you can also run
'nixos-help').

Fixes #83157.
Diffstat (limited to 'nixos/modules/services')
-rw-r--r--nixos/modules/services/misc/nixos-manual.nix73
1 files changed, 0 insertions, 73 deletions
diff --git a/nixos/modules/services/misc/nixos-manual.nix b/nixos/modules/services/misc/nixos-manual.nix
deleted file mode 100644
index ab73f49d4be5..000000000000
--- a/nixos/modules/services/misc/nixos-manual.nix
+++ /dev/null
@@ -1,73 +0,0 @@
-# This module optionally starts a browser that shows the NixOS manual
-# on one of the virtual consoles which is useful for the installation
-# CD.
-
-{ config, lib, pkgs, ... }:
-
-with lib;
-
-let
-  cfg = config.services.nixosManual;
-  cfgd = config.documentation;
-in
-
-{
-
-  options = {
-
-    # TODO(@oxij): rename this to `.enable` eventually.
-    services.nixosManual.showManual = mkOption {
-      type = types.bool;
-      default = false;
-      description = ''
-        Whether to show the NixOS manual on one of the virtual
-        consoles.
-      '';
-    };
-
-    services.nixosManual.ttyNumber = mkOption {
-      type = types.int;
-      default = 8;
-      description = ''
-        Virtual console on which to show the manual.
-      '';
-    };
-
-    services.nixosManual.browser = mkOption {
-      type = types.path;
-      default = "${pkgs.w3m-nographics}/bin/w3m";
-      description = ''
-        Browser used to show the manual.
-      '';
-    };
-
-  };
-
-
-  config = mkMerge [
-    (mkIf cfg.showManual {
-      assertions = singleton {
-        assertion = cfgd.enable && cfgd.nixos.enable;
-        message   = "Can't enable `services.nixosManual.showManual` without `documentation.nixos.enable`";
-      };
-    })
-    (mkIf (cfg.showManual && cfgd.enable && cfgd.nixos.enable) {
-      console.extraTTYs = [ "tty${toString cfg.ttyNumber}" ];
-
-      systemd.services.nixos-manual = {
-        description = "NixOS Manual";
-        wantedBy = [ "multi-user.target" ];
-        serviceConfig = {
-          ExecStart = "${cfg.browser} ${config.system.build.manual.manualHTMLIndex}";
-          StandardInput = "tty";
-          StandardOutput = "tty";
-          TTYPath = "/dev/tty${toString cfg.ttyNumber}";
-          TTYReset = true;
-          TTYVTDisallocate = true;
-          Restart = "always";
-        };
-      };
-    })
-  ];
-
-}