2024-07-05 02:03:52 +05:30
|
|
|
{ lib, config, ... }:
|
|
|
|
let cfg = config.nodeconfig; in {
|
2024-07-05 02:13:53 +05:30
|
|
|
options.nodeconfig = {
|
|
|
|
minimize = lib.mkOption {
|
|
|
|
type = lib.types.bool;
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
description = "Disable non-essential stuff";
|
|
|
|
};
|
2024-07-05 02:03:52 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2024-10-22 22:13:53 +05:30
|
|
|
fonts.fontconfig.enable = lib.mkDefault false;
|
2024-07-05 02:03:52 +05:30
|
|
|
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;
|
2024-10-22 22:13:53 +05:30
|
|
|
menus.enable = lib.mkDefault false;
|
2024-07-05 02:03:52 +05:30
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|