From 10d529da0a5b1d82fd8f93544f565f7bdeacde51 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 4 Jan 2023 11:30:42 +0800 Subject: [PATCH] do not use specialArgs. Closes #1 --- final/configuration.nix | 2 +- final/flake.nix | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/final/configuration.nix b/final/configuration.nix index 082cd13..d24403c 100644 --- a/final/configuration.nix +++ b/final/configuration.nix @@ -1,4 +1,4 @@ -{ config, pkgs, artiq, ... }: +{ artiq }: { config, pkgs, ... }: { imports = diff --git a/final/flake.nix b/final/flake.nix index 9bcd5a1..e603293 100644 --- a/final/flake.nix +++ b/final/flake.nix @@ -3,8 +3,9 @@ outputs = { self, artiq }: { nixosConfigurations.artiq = artiq.inputs.nixpkgs.lib.nixosSystem { system = "x86_64-linux"; - specialArgs = { inherit artiq; }; - modules = [ ./configuration.nix ]; + # Do not use specialArgs to pass the ARTIQ flake - this evaluates many attributes + # and bloats the installation. https://git.m-labs.hk/M-Labs/defenestrate/issues/1 + modules = [ ( import ./configuration.nix { inherit artiq; } ) ]; }; }; }