From 92ca826539092f33c8e19a19c7a9ea0def2aece0 Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 17 Apr 2023 12:00:55 -0400 Subject: move most configurations to modules --- modules/base/documentation.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 modules/base/documentation.nix (limited to 'modules/base/documentation.nix') diff --git a/modules/base/documentation.nix b/modules/base/documentation.nix new file mode 100644 index 0000000..0f3b9d3 --- /dev/null +++ b/modules/base/documentation.nix @@ -0,0 +1,19 @@ +{ + config, + lib, + pkgs, + ... +}: let + cfg = config.base.documentation; + inherit (lib) mkEnableOption mkIf; +in { + options.base.documentation.enable = mkEnableOption "base module documentation"; + + config = mkIf cfg.enable { + environment.systemPackages = with pkgs; [man-pages man-pages-posix]; + documentation = { + dev.enable = true; + man.enable = true; + }; + }; +} -- cgit v1.2.3