modules/common: add debloat.nix (replaces default-packages.nix)
This commit is contained in:
parent
4f66fae74d
commit
2960bf9989
3 changed files with 22 additions and 6 deletions
21
modules/common/debloat.nix
Normal file
21
modules/common/debloat.nix
Normal 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;
|
||||||
|
}
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.defaultPackages = lib.mkForce [];
|
|
||||||
}
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./boot.nix
|
./boot.nix
|
||||||
./default-packages.nix
|
./debloat.nix
|
||||||
./locales.nix
|
./locales.nix
|
||||||
./nix.nix
|
./nix.nix
|
||||||
./users.nix
|
./users.nix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue