From ff3d01bca6f376eadbc00ed23ee44bd3a10fe708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Krop=C3=A1=C4=8Dek?= Date: Sun, 13 Oct 2024 20:45:42 +0200 Subject: [PATCH] little upgrade --- flake.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index cb0fcdd..1acdd75 100644 --- a/flake.nix +++ b/flake.nix @@ -18,17 +18,20 @@ outputs = inputs@{ self, nixpkgs, ... }: let - hosts = [ - "work-ntb" - "lenar" - ]; + hosts = { + "work-ntb" = "x86_64-linux"; + "lenar" = "x86_64-linux"; + }; in { # Please replace my-nixos with your hostname - nixosConfigurations = nixpkgs.lib.genAttrs hosts ( + nixosConfigurations = nixpkgs.lib.genAttrs (builtins.attrNames hosts) ( host: + let + arch = hosts.${host}; + in nixpkgs.lib.nixosSystem { - system = "x86_64-linux"; + system = arch; modules = [ ./hosts/${host} ./hosts/base