modules/common: add debloat.nix (replaces default-packages.nix)

This commit is contained in:
wo2wz 2025-10-26 19:42:41 -04:00
parent 4f66fae74d
commit 2960bf9989
3 changed files with 22 additions and 6 deletions

View file

@ -0,0 +1,21 @@
{ config, lib, ... }:
{
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/profiles/minimal.nix
documentation = {
doc.enable = false;
info.enable = false;
};
environment = {
defaultPackages = lib.mkForce [];
stub-ld.enable = false;
};
programs.command-not-found.enable = false;
boot.enableContainers = false;
services.logrotate.enable = false;
}