diff --git a/lib/helpers.nix b/lib/helpers.nix index 00b8b00..64c4c96 100644 --- a/lib/helpers.nix +++ b/lib/helpers.nix @@ -9,7 +9,7 @@ }; # Helper function for generating host configs - mkHost = { hostname, username, desktop ? null, installer ? null }: inputs.nixpkgs.lib.nixosSystem { + mkHost = { hostname, username, desktop ? null, installer ? null, platform ? "x86_64-linux" }: inputs.nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs outputs desktop hostname username stateVersion; }; diff --git a/nixos/floki/default.nix b/nixos/floki/default.nix index 414e91b..9589a05 100644 --- a/nixos/floki/default.nix +++ b/nixos/floki/default.nix @@ -56,6 +56,6 @@ lidSwitchExternalPower = "lock"; }; - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + nixpkgs.hostPlatform = lib.mkDefault "${platform}"; }