From da129c4dc045a63adc406ab46e072a1f30e198a2 Mon Sep 17 00:00:00 2001 From: roxwize Date: Wed, 1 Jan 2025 21:01:45 -0500 Subject: [PATCH] ~ --- nixos/flake.nix | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/nixos/flake.nix b/nixos/flake.nix index 8d0830d..45f49c2 100644 --- a/nixos/flake.nix +++ b/nixos/flake.nix @@ -21,23 +21,22 @@ }; outputs = { self, nixpkgs, home-manager, ... }@inputs: { - nixosConfigurations = { - ioides = nixpkgs.lib.nixosSystem { - system = "x86_64-linux"; - specialArgs = { inherit inputs; }; - modules = [ - ./hosts/ioides/configuration.nix - ]; - }; - - qemu = nixpkgs.lib.nixosSystem { - system = "x86_64-linux"; - specialArgs = { inherit inputs; }; - modules = [ - ./hosts/qemu/configuration.nix - ]; - }; - }; + nixosConfigurations = + let + system = hostname: { + name = hostname; + value = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + specialArgs = { inherit inputs; }; + modules = [ + ./hosts/${hostname}/configuration.nix + ]; + }; + }; + in builtins.listToAttrs [ + (system "ioides") + (system "qemu") + ]; homeConfigurations.rae = home-manager.lib.homeManagerConfiguration { pkgs = nixpkgs.legacyPackages.x86_64-linux;