configuration.nix/modules/general.nix

29 lines
739 B
Nix
Raw Normal View History

2024-07-05 02:03:52 +05:30
{ lib, config, ... }:
let cfg = config.nodeconfig; in {
options.minimize = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Disable non-essential stuff";
};
config = lib.mkIf cfg.minimize {
documentation = {
enable = lib.mkDefault false;
doc.enable = lib.mkDefault false;
info.enable = lib.mkDefault false;
man.enable = lib.mkDefault false;
nixos.enable = lib.mkDefault false;
};
programs.command-not-found.enable = lib.mkDefault false;
xdg = {
autostart.enable = lib.mkDefault false;
icons.enable = lib.mkDefault false;
mime.enable = lib.mkDefault false;
sounds.enable = lib.mkDefault false;
};
};
}