From 50f8612308dd0ae1ec185fad2c54a624d2206ee9 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Sun, 17 Dec 2023 18:16:39 +0800 Subject: [PATCH] nixos: sort machines by hosts --- flake.nix | 2 +- .../lenovo/legion/81fw => hosts/Aristotle}/default.nix | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) rename nixos/{hardware/lenovo/legion/81fw => hosts/Aristotle}/default.nix (76%) diff --git a/flake.nix b/flake.nix index e58c0ad..e38e4d8 100755 --- a/flake.nix +++ b/flake.nix @@ -182,7 +182,7 @@ ./users/guanranwang/nixos/profiles/opt-in/torrenting # Hardware - ./nixos/hardware/lenovo/legion/81fw + ./nixos/hosts/Aristotle ./nixos/profiles/opt-in/lanzaboote.nix ./nixos/profiles/opt-in/impermanence.nix ./nixos/profiles/opt-in/disko.nix diff --git a/nixos/hardware/lenovo/legion/81fw/default.nix b/nixos/hosts/Aristotle/default.nix similarity index 76% rename from nixos/hardware/lenovo/legion/81fw/default.nix rename to nixos/hosts/Aristotle/default.nix index b6d9384..759a496 100644 --- a/nixos/hardware/lenovo/legion/81fw/default.nix +++ b/nixos/hosts/Aristotle/default.nix @@ -1,5 +1,4 @@ { - lib, modulesPath, inputs, ... @@ -16,9 +15,6 @@ }; boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid"]; - boot.initrd.kernelModules = []; boot.kernelModules = ["kvm-intel"]; - boot.extraModulePackages = []; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + nixpkgs.hostPlatform = "x86_64-linux"; }