From ceb81dc9551fbf751460d1cba412f8e775137495 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Wed, 14 Aug 2024 15:40:24 +0200 Subject: [PATCH] flake.nixosConfigurations: allow multiple modules on helper --- flake.nix | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/flake.nix b/flake.nix index b5d5b97..ad2ec52 100644 --- a/flake.nix +++ b/flake.nix @@ -32,23 +32,28 @@ nixosConfigurations = let - nixosSystem = { config, system }: inputs.nixpkgs.lib.nixosSystem { + nixosSystem = { modules, system }: inputs.nixpkgs.lib.nixosSystem { modules = [ outputs.nixosModules.withDepends - config - ]; + ] ++ modules; inherit system; }; in { "x13yz" = nixosSystem { - config = { - hardware.cpu.type = "intel"; - hardware.graphics.intel.enable = true; - system.stateVersion = "24.05"; - x-banananetwork.frontend.enable = true; - }; + modules = [ + { + # hardware + hardware.cpu.type = "intel"; + hardware.graphics.intel.enable = true; + x-banananetwork.frontend.enable = true; + } + { + # as currently installed + system.stateVersion = "24.05"; + } + ]; system = "x86_64-linux"; };