refactor: Remove 'defaults' abstraction

This commit is contained in:
2025-09-14 01:12:04 -06:00
parent 4d18ed530e
commit f12308326e
5 changed files with 38 additions and 65 deletions

View File

@@ -0,0 +1,24 @@
{ config, lib, pkgs, ... }:
let cfg = config.sydnix.documentation;
in {
options.sydnix.documentation = {
enable = lib.mkEnableOption "man and info pages" // {
default = true;
};
};
config = lib.mkIf cfg.enable {
documentation = {
man.enable = true;
info.enable = true;
};
environment.systemPackages = with pkgs; [
man-pages
stdman
man-pages-posix
stdmanpages
];
};
}