about summary refs log tree commit diff
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2022-10-21 14:41:26 +0200
committerrnhmjoj <rnhmjoj@inventati.org>2022-10-21 14:54:38 +0200
commit3bb69836cb478b7c899684915a96e4af312d3c05 (patch)
tree3a9ba40ae51530ae6be383a2f2224d103194960e
parent950d41c958a131f15013c01eccda698b3fb3fef7 (diff)
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";
  }'
-rw-r--r--nixos/modules/profiles/minimal.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/profiles/minimal.nix b/nixos/modules/profiles/minimal.nix
index 0e65989214a18..0125017dfee88 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;
 }