diff --git a/nix/manifest.nix b/nix/manifest.nix index f87deed..cd305e2 100644 --- a/nix/manifest.nix +++ b/nix/manifest.nix @@ -6,6 +6,7 @@ let device = "/dev/sda1"; fsType = "ext4"; }; + nixpkgs.hostPlatform = "x86_64-linux"; boot.loader.systemd-boot.enable = true; networking = { inherit hostName; }; }; diff --git a/nix/flake-parts/files.nix b/nix/modules/flake/files.nix similarity index 100% rename from nix/flake-parts/files.nix rename to nix/modules/flake/files.nix diff --git a/nix/flake-parts/git-hooks.nix b/nix/modules/flake/git-hooks.nix similarity index 100% rename from nix/flake-parts/git-hooks.nix rename to nix/modules/flake/git-hooks.nix diff --git a/nix/flake-parts/make-shell.nix b/nix/modules/flake/make-shell.nix similarity index 100% rename from nix/flake-parts/make-shell.nix rename to nix/modules/flake/make-shell.nix diff --git a/nix/flake-parts/modules.nix b/nix/modules/flake/modules.nix similarity index 100% rename from nix/flake-parts/modules.nix rename to nix/modules/flake/modules.nix diff --git a/nix/flake-parts/text.nix b/nix/modules/flake/text.nix similarity index 100% rename from nix/flake-parts/text.nix rename to nix/modules/flake/text.nix diff --git a/nix/configurations.nix b/nix/modules/hosts.nix similarity index 100% rename from nix/configurations.nix rename to nix/modules/hosts.nix diff --git a/nix/modules/machine/platform.nix b/nix/modules/machine/platform.nix deleted file mode 100644 index ae8ab61..0000000 --- a/nix/modules/machine/platform.nix +++ /dev/null @@ -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"; - }; -}