summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorJakub Stachurski <j.stachurski@student.utwente.nl>2025-12-22 23:00:07 +0100
committerJakub Stachurski <j.stachurski@student.utwente.nl>2025-12-22 23:00:07 +0100
commitd2b6cf44a3277fd5d04bc10110d344827217e24e (patch)
tree6c62dcce5f9e3ac45a8cf1112ece2ef755142a2e /hosts
parentee7b1d28e41a5ef25686ae1efc58b862e282813a (diff)
nixfmt
Diffstat (limited to 'hosts')
-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
-rw-r--r--hosts/full-iso/default.nix2
-rw-r--r--hosts/test_vm/default.nix9
7 files changed, 28 insertions, 34 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,
...
}:
{
diff --git a/hosts/full-iso/default.nix b/hosts/full-iso/default.nix
index e17e620..8d6199a 100644
--- a/hosts/full-iso/default.nix
+++ b/hosts/full-iso/default.nix
@@ -1,4 +1,4 @@
-{ modulesPath, pkgs, ... }:
+{ modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/cd-dvd/installation-cd-base.nix")
diff --git a/hosts/test_vm/default.nix b/hosts/test_vm/default.nix
index 7d84448..6dd2fc1 100644
--- a/hosts/test_vm/default.nix
+++ b/hosts/test_vm/default.nix
@@ -1,7 +1,4 @@
{
- pkgs,
- lib,
- inputs,
...
}:
{
@@ -27,6 +24,10 @@
fileSystems."/" = {
device = "none";
fsType = "tmpfs";
- options = [ "defaults" "size=2G" "mode=755" ];
+ options = [
+ "defaults"
+ "size=2G"
+ "mode=755"
+ ];
};
}