From 8d55e8d94702d137dc82362b09757f89a9bef23d Mon Sep 17 00:00:00 2001 From: Greg Burd Date: Mon, 2 Oct 2023 16:59:29 +0000 Subject: [PATCH] platform --- lib/helpers.nix | 2 +- nixos/floki/default.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}"; }