mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-14 00:26:24 +00:00
platform
This commit is contained in:
parent
66aad8d708
commit
8d55e8d947
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -56,6 +56,6 @@
|
|||
lidSwitchExternalPower = "lock";
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
nixpkgs.hostPlatform = lib.mkDefault "${platform}";
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue