summaryrefslogtreecommitdiff
path: root/hosts/apocalypse
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/apocalypse')
-rw-r--r--hosts/apocalypse/backup.nix3
-rw-r--r--hosts/apocalypse/default.nix12
-rw-r--r--hosts/apocalypse/firewall.nix2
-rw-r--r--hosts/apocalypse/hardware-configuration.nix31
-rw-r--r--hosts/apocalypse/nvidia.nix3
5 files changed, 22 insertions, 29 deletions
diff --git a/hosts/apocalypse/backup.nix b/hosts/apocalypse/backup.nix
index 1942d66..a3f6e77 100644
--- a/hosts/apocalypse/backup.nix
+++ b/hosts/apocalypse/backup.nix
@@ -1,8 +1,5 @@
{
- config,
- lib,
pkgs,
- modulesPath,
...
}:
{
diff --git a/hosts/apocalypse/default.nix b/hosts/apocalypse/default.nix
index e8fc86c..5e13448 100644
--- a/hosts/apocalypse/default.nix
+++ b/hosts/apocalypse/default.nix
@@ -1,4 +1,4 @@
-{ lib, pkgs, ... }:
+{ lib, ... }:
{
imports = [
./hardware-configuration.nix
@@ -106,7 +106,7 @@
};
services.thinkfan = {
- enable = true;
+ enable = true;
levels = [
[
0
@@ -114,7 +114,7 @@
55
]
[
- 1
+ 1
48
60
]
@@ -124,8 +124,8 @@
65
]
[
- 3
- 55
+ 3
+ 55
67
]
[
@@ -144,7 +144,7 @@
72
]
[
- 7
+ 7
66
85
]
diff --git a/hosts/apocalypse/firewall.nix b/hosts/apocalypse/firewall.nix
index 8c5dadb..05feacf 100644
--- a/hosts/apocalypse/firewall.nix
+++ b/hosts/apocalypse/firewall.nix
@@ -1,4 +1,4 @@
-{ pkgs, config, ... }:
+{ ... }:
let
baseTCP = [
22000 # Syncthng
diff --git a/hosts/apocalypse/hardware-configuration.nix b/hosts/apocalypse/hardware-configuration.nix
index 0d17b61..74b1101 100644
--- a/hosts/apocalypse/hardware-configuration.nix
+++ b/hosts/apocalypse/hardware-configuration.nix
@@ -4,7 +4,6 @@
{
config,
lib,
- pkgs,
modulesPath,
...
}:
@@ -143,25 +142,25 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
- # Copied from nix wiki to save on battery life.
+ # Copied from nix wiki to save on battery life.
services.tlp = {
- enable = true;
- settings = {
- CPU_SCALING_GOVERNOR_ON_AC = "performance";
- CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
+ enable = true;
+ settings = {
+ CPU_SCALING_GOVERNOR_ON_AC = "performance";
+ CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
- CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
- CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
+ CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
+ CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
- CPU_MIN_PERF_ON_AC = 0;
- CPU_MAX_PERF_ON_AC = 100;
- CPU_MIN_PERF_ON_BAT = 0;
- CPU_MAX_PERF_ON_BAT = 20;
+ CPU_MIN_PERF_ON_AC = 0;
+ CPU_MAX_PERF_ON_AC = 100;
+ CPU_MIN_PERF_ON_BAT = 0;
+ CPU_MAX_PERF_ON_BAT = 20;
- #Optional helps save long term battery health
- START_CHARGE_THRESH_BAT0 = 40; # 40 and below it starts to charge
- STOP_CHARGE_THRESH_BAT0 = 80; # 80 and above it stops charging
+ #Optional helps save long term battery health
+ START_CHARGE_THRESH_BAT0 = 40; # 40 and below it starts to charge
+ STOP_CHARGE_THRESH_BAT0 = 80; # 80 and above it stops charging
- };
+ };
};
}
diff --git a/hosts/apocalypse/nvidia.nix b/hosts/apocalypse/nvidia.nix
index ccfc6d8..db2e80a 100644
--- a/hosts/apocalypse/nvidia.nix
+++ b/hosts/apocalypse/nvidia.nix
@@ -1,8 +1,5 @@
{
config,
- lib,
- pkgs,
- modulesPath,
...
}:
{