From 4a80288d994607e2203696938fd932c7307e1d1c Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Thu, 19 Jun 2025 22:49:03 +0200 Subject: [PATCH] refactor --- flake.nix | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/flake.nix b/flake.nix index b968405..c98cfd8 100644 --- a/flake.nix +++ b/flake.nix @@ -6,28 +6,24 @@ nixpkgs-unstable, home-manager, ... - }: { + }: let + specials = { + inherit inputs; + pkgs-unstable = import nixpkgs-unstable { + system = "x86_64-linux"; + config.allowUnfree = true; + }; + }; + in { nixosConfigurations = { wildfire = nixpkgs.lib.nixosSystem { - specialArgs = { - inherit inputs; - pkgs-unstable = import nixpkgs-unstable { - system = "x86_64-linux"; - config.allowUnfree = true; - }; - }; + specialArgs = specials; modules = [ ./hosts/wildfire/configuration.nix ]; }; hurricane = nixpkgs.lib.nixosSystem { - specialArgs = { - inherit inputs; - pkgs-unstable = import nixpkgs-unstable { - system = "x86_64-linux"; - config.allowUnfree = true; - }; - }; + specialArgs = specials; modules = [ ./hosts/hurricane/configuration.nix ];