Skip to content

System

Source directory: modules/system/

default.nix

modules/system/default.nix

No option declarations; see source for implementation.

fstrim-optimization.nix

modules/system/fstrim-optimization.nix

FSTRIM Boot Optimization Module Prevents fstrim from blocking boot by ensuring timer-only operation

  • Enable option: FSTRIM boot optimization to prevent boot blocking

Options: enable, preventBootBlocking

Options declaration (Nix)
  options.services.fstrim-optimization = {
    enable = mkEnableOption "FSTRIM boot optimization to prevent boot blocking";

    preventBootBlocking = mkOption {
      type = types.bool;
      default = true;
      description = ''
        Prevent fstrim from running during boot and blocking the boot process.
        This ensures fstrim only runs via timer.
      '';
    };
  }

logging.nix

modules/system/logging.nix

Logging configuration for reduced noise

  • Enable option: Enable log filtering for noise reduction

Options: enableFiltering, filterRules

Options declaration (Nix)
  options.system.logging = {
    enableFiltering = mkEnableOption "Enable log filtering for noise reduction";

    filterRules = mkOption {
      type = types.listOf types.str;
      default = [ ];
      description = "List of log filtering rules";
    };
  }