hostPlatform moved to configuration.nix

This commit is contained in:
Danilo Reyes 2024-07-04 03:45:25 -06:00
parent 9d749ee082
commit 9f2a6eae25
5 changed files with 6 additions and 3 deletions

View File

@ -91,7 +91,10 @@
supportedFeatures = featuresList; supportedFeatures = featuresList;
}]; }];
}; };
nixpkgs.config.permittedInsecurePackages = [ "openssl-1.1.1w" ]; nixpkgs = {
config.permittedInsecurePackages = [ "openssl-1.1.1w" ];
hostPlatform = "x86_64-linux";
};
users = { users = {
groups.nixremote.gid = 555; groups.nixremote.gid = 555;
users.nixremote = { users.nixremote = {

View File

@ -1,6 +1,5 @@
{ lib, modulesPath, ... }: { { lib, modulesPath, ... }: {
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
nixpkgs.hostPlatform = "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "performance"; powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
hardware = { hardware = {
cpu.intel.updateMicrocode = lib.mkDefault true; cpu.intel.updateMicrocode = lib.mkDefault true;

View File

@ -24,6 +24,7 @@
allowedUDPPorts = [ 2049 ]; allowedUDPPorts = [ 2049 ];
}; };
}; };
nixpkgs.hostPlatform = "x86_64-linux";
nix = let nix = let
featuresList = [ featuresList = [
"nixos-test" "nixos-test"

View File

@ -71,6 +71,7 @@
nixpkgs.config = { nixpkgs.config = {
allowUnfree = true; allowUnfree = true;
permittedInsecurePackages = [ ]; permittedInsecurePackages = [ ];
hostPlatform = "x86_64-linux";
}; };
users = { users = {
groups.nixremote.gid = 555; groups.nixremote.gid = 555;

View File

@ -1,6 +1,5 @@
{ config, pkgs, modulesPath, lib, ... }: { { config, pkgs, modulesPath, lib, ... }: {
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
nixpkgs.hostPlatform = "x86_64-linux";
hardware = { hardware = {
cpu.amd.updateMicrocode = cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware; lib.mkDefault config.hardware.enableRedistributableFirmware;