From f86016ed021e4f31eef52499e678f9818ff7d2b3 Mon Sep 17 00:00:00 2001 From: Moritz Sanft <58110325+msanft@users.noreply.github.com> Date: Thu, 12 Dec 2024 10:57:57 +0100 Subject: [PATCH] packages/nixos: don't include Nix Our images are immutable and thus don't need the Nix CLI and daemon, which - by design - can only work in a mutable system. This saves 188MB in image size --- packages/nixos/system.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/nixos/system.nix b/packages/nixos/system.nix index ed36be122..a6efc880b 100644 --- a/packages/nixos/system.nix +++ b/packages/nixos/system.nix @@ -75,6 +75,9 @@ networking.firewall.enable = false; + # Images are immutable, so no need to include Nix. + nix.enable = false; + nixpkgs.hostPlatform.system = "x86_64-linux"; system.switch.enable = false; system.stateVersion = "24.05";