about summary refs log tree commit diff
path: root/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'profiles')
-rw-r--r--profiles/btrfs.nix4
-rw-r--r--profiles/laptop.nix4
-rw-r--r--profiles/nas.nix14
-rw-r--r--profiles/server.nix2
-rw-r--r--profiles/workstation.nix1
5 files changed, 25 insertions, 0 deletions
diff --git a/profiles/btrfs.nix b/profiles/btrfs.nix
new file mode 100644
index 0000000..1b87165
--- /dev/null
+++ b/profiles/btrfs.nix
@@ -0,0 +1,4 @@
+{ ... }:
+{
+  services.btrfs.autoScrub.enable = true;
+}
diff --git a/profiles/laptop.nix b/profiles/laptop.nix
index 6b8211a..0d1c95f 100644
--- a/profiles/laptop.nix
+++ b/profiles/laptop.nix
@@ -1,5 +1,9 @@
 { pkgs, config, lib, ... }:
 {
+  imports = [
+    ./workstation.nix
+  ];
+
   services.thermald.enable = true;
   services.tlp.enable = true;
   services.tlp.settings = {
diff --git a/profiles/nas.nix b/profiles/nas.nix
new file mode 100644
index 0000000..9c25c22
--- /dev/null
+++ b/profiles/nas.nix
@@ -0,0 +1,14 @@
+{ config, pkgs, ... }:
+{
+  imports = [
+    ./server.nix
+    ./btrfs.nix
+  ];
+
+  users.groups.nas.gid = 5000;
+  users.users.nas = {
+    uid = 5000;
+    group = "nas";
+    isSystemUser = true;
+  };
+}
diff --git a/profiles/server.nix b/profiles/server.nix
index 27498d6..5a95dff 100644
--- a/profiles/server.nix
+++ b/profiles/server.nix
@@ -4,6 +4,8 @@
     ./default.nix
   ];
 
+  powerManagement.cpuFreqGovernor = "schedutil";
+
   console = {
     earlySetup = true;
     font = "${pkgs.terminus_font}/share/consolefonts/ter-132n.psf.gz";
diff --git a/profiles/workstation.nix b/profiles/workstation.nix
index 151357c..f136c33 100644
--- a/profiles/workstation.nix
+++ b/profiles/workstation.nix
@@ -3,6 +3,7 @@
   imports = [
     ./default.nix
     ./documentation.nix
+    ./btrfs.nix
   ];
 
   virtualisation.docker.enable = false;