refactor: Tidy flake.nix and break it apart
This commit is contained in:
30
modules/nixos/defaults/documentation.nix
Normal file
30
modules/nixos/defaults/documentation.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let cfg = config.sydnix.defaults.documentation;
|
||||
in {
|
||||
options = {
|
||||
sydnix.defaults.documentation = {
|
||||
enable = mkOption {
|
||||
description = "Madeleine's default documentation settings";
|
||||
default = true;
|
||||
type = types.bool;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
documentation = {
|
||||
man.enable = true;
|
||||
info.enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
man-pages
|
||||
stdman
|
||||
man-pages-posix
|
||||
stdmanpages
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user