From 3bb69836cb478b7c899684915a96e4af312d3c05 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Fri, 21 Oct 2022 14:41:26 +0200 Subject: [PATCH] nixos/profiles/minimal: don't install freedesktop files This saves about 25M from the closure size of: $ nix build -f nixos system --arg configuration ' { imports = [ ./nixos/modules/profiles/minimal.nix ]; fileSystems."/".label="root"; boot.loader.grub.device = "nodev"; }' --- nixos/modules/profiles/minimal.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/modules/profiles/minimal.nix b/nixos/modules/profiles/minimal.nix index 0e65989214a1..0125017dfee8 100644 --- a/nixos/modules/profiles/minimal.nix +++ b/nixos/modules/profiles/minimal.nix @@ -13,4 +13,9 @@ with lib; documentation.nixos.enable = mkDefault false; programs.command-not-found.enable = mkDefault false; + + xdg.autostart.enable = mkDefault false; + xdg.icons.enable = mkDefault false; + xdg.mime.enable = mkDefault false; + xdg.sounds.enable = mkDefault false; }