Compare commits
No commits in common. "53b88094328d0062db49c4d64a6c0b92f8f135ae" and "0c706f4a0b44ebf129464d7f22c0502c4a50c993" have entirely different histories.
53b8809432
...
0c706f4a0b
8 changed files with 1 additions and 14 deletions
|
@ -6,6 +6,7 @@ let
|
|||
device = "/dev/sda1";
|
||||
fsType = "ext4";
|
||||
};
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
networking = { inherit hostName; };
|
||||
};
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
flake.modules.nixos.default =
|
||||
{ hostName, ... }:
|
||||
let
|
||||
inherit (config.flake.manifest.hosts.nixos.${hostName}.machine) platform;
|
||||
arch = if platform == "amd" || platform == "intel" then "x86_64" else "aarch64";
|
||||
in
|
||||
{
|
||||
hardware.cpu.${platform}.updateMicrocode = true;
|
||||
boot.kernelModules = [ "kvm-${platform}" ];
|
||||
nixpkgs.hostPlatform = "${arch}-linux";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue