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;
}

View file

@ -1,5 +0,0 @@
{ config, lib, ... }:
{
environment.defaultPackages = lib.mkForce [];
}

View file

@ -3,7 +3,7 @@
{
imports = [
./boot.nix
./default-packages.nix
./debloat.nix
./locales.nix
./nix.nix
./users.nix