mirror of
https://github.com/gburd/nix-config.git
synced 2024-10-03 12:16:57 +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
|
# 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 = {
|
specialArgs = {
|
||||||
inherit inputs outputs desktop hostname username stateVersion;
|
inherit inputs outputs desktop hostname username stateVersion;
|
||||||
};
|
};
|
||||||
|
|
|
@ -56,6 +56,6 @@
|
||||||
lidSwitchExternalPower = "lock";
|
lidSwitchExternalPower = "lock";
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "${platform}";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue