From 2960bf998957e872cacd9ac6b9f508503d61ff28 Mon Sep 17 00:00:00 2001 From: wo2wz <189177184+wo2wz@users.noreply.github.com> Date: Sun, 26 Oct 2025 19:42:41 -0400 Subject: [PATCH] modules/common: add debloat.nix (replaces default-packages.nix) --- modules/common/debloat.nix | 21 +++++++++++++++++++++ modules/common/default-packages.nix | 5 ----- modules/common/default.nix | 2 +- 3 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 modules/common/debloat.nix delete mode 100644 modules/common/default-packages.nix diff --git a/modules/common/debloat.nix b/modules/common/debloat.nix new file mode 100644 index 0000000..5e7fd76 --- /dev/null +++ b/modules/common/debloat.nix @@ -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; +} \ No newline at end of file diff --git a/modules/common/default-packages.nix b/modules/common/default-packages.nix deleted file mode 100644 index ac89b83..0000000 --- a/modules/common/default-packages.nix +++ /dev/null @@ -1,5 +0,0 @@ -{ config, lib, ... }: - -{ - environment.defaultPackages = lib.mkForce []; -} \ No newline at end of file diff --git a/modules/common/default.nix b/modules/common/default.nix index ff4efda..a85618f 100755 --- a/modules/common/default.nix +++ b/modules/common/default.nix @@ -3,7 +3,7 @@ { imports = [ ./boot.nix - ./default-packages.nix + ./debloat.nix ./locales.nix ./nix.nix ./users.nix