hostPlatform moved to configuration.nix
This commit is contained in:
parent
9d749ee082
commit
9f2a6eae25
@ -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 = {
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -24,6 +24,7 @@
|
|||||||
allowedUDPPorts = [ 2049 ];
|
allowedUDPPorts = [ 2049 ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
nix = let
|
nix = let
|
||||||
featuresList = [
|
featuresList = [
|
||||||
"nixos-test"
|
"nixos-test"
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user