Global nixfmt
This commit is contained in:
parent
8306da0f09
commit
2bcc955f07
3 changed files with 12 additions and 17 deletions
|
@ -25,10 +25,7 @@
|
||||||
-----END CERTIFICATE-----
|
-----END CERTIFICATE-----
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
dhcpIps = [
|
dhcpIps = [ "185.88.236.100" "212.103.68.20" ];
|
||||||
"185.88.236.100"
|
|
||||||
"212.103.68.20"
|
|
||||||
];
|
|
||||||
dhcpOptions = with builtins;
|
dhcpOptions = with builtins;
|
||||||
concatStringsSep "\n" (map (ip: "dhcp-option DNS ${ip}") dhcpIps);
|
concatStringsSep "\n" (map (ip: "dhcp-option DNS ${ip}") dhcpIps);
|
||||||
in {
|
in {
|
||||||
|
|
|
@ -16,14 +16,14 @@
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
boot.kernelParams = [ "acpi_enforce_resources=lax" ];
|
boot.kernelParams = [ "acpi_enforce_resources=lax" ];
|
||||||
|
|
||||||
|
|
||||||
hardware.firmware = [ pkgs.wireless-regdb ];
|
hardware.firmware = [ pkgs.wireless-regdb ];
|
||||||
|
|
||||||
hardware.cpu.amd.updateMicrocode = true;
|
hardware.cpu.amd.updateMicrocode = true;
|
||||||
nix.maxJobs = lib.mkDefault 24;
|
nix.maxJobs = lib.mkDefault 24;
|
||||||
|
|
||||||
powerManagement.powerUpCommands = let
|
powerManagement.powerUpCommands = let
|
||||||
forceThunderboltOnScript = pkgs.writeScriptBin "force-thunderbolt-power-on" ''
|
forceThunderboltOnScript =
|
||||||
|
pkgs.writeScriptBin "force-thunderbolt-power-on" ''
|
||||||
#!${pkgs.stdenv.shell}
|
#!${pkgs.stdenv.shell}
|
||||||
|
|
||||||
#echo 'on' > '/sys/bus/pci/devices/0000:03:00.0/power/control'; #TODO: Is the main controller required?
|
#echo 'on' > '/sys/bus/pci/devices/0000:03:00.0/power/control'; #TODO: Is the main controller required?
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
{ config, lib, pkgs, modulesPath, ... }: {
|
{ config, lib, pkgs, modulesPath, ... }: {
|
||||||
hardware.rasdaemon = {
|
hardware.rasdaemon = { enable = true; };
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue