From fc6f6b052c47dc0c59746b820df73a1ff5dc0c14 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 23 Jun 2025 23:26:25 -0400 Subject: move duplicate mkNixosSystem hosts conf into flake --- flake.nix | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index bbf4f94..2a94447 100644 --- a/flake.nix +++ b/flake.nix @@ -46,11 +46,23 @@ } ) systems); + buildSystem = file: system: + inputs.nixpkgs.lib.nixosSystem { + inherit system; + specialArgs = {inherit inputs;}; + modules = [ + options + ./home + ./modules + ./system + file + ]; + }; in rec { nixosConfigurations = { - shinji = import ./hosts/shinji {inherit inputs options;}; - kaworu = import ./hosts/kaworu {inherit inputs options;}; - thinkpad = import ./hosts/thinkpad {inherit inputs options;}; + shinji = buildSystem ./hosts/shinji "x86_64-linux"; + kaworu = buildSystem ./hosts/kaworu "x86_64-linux"; + thinkpad = buildSystem ./hosts/thinkpad "x86_64-linux"; }; homeConfigurations = { -- cgit v1.2.3-freya