aboutsummaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-05-02 19:01:08 -0700
committerFranck Cuny <franck@fcuny.net>2023-05-02 19:01:08 -0700
commita8adeadf311cf877d7f53b7e006e247fbda4a4a6 (patch)
tree8e3466b6315b3b2a99e3e95639a6ae17d705ef40 /profiles
parentprofiles/hardware: create a few profiles related to hardware (diff)
downloadinfra-a8adeadf311cf877d7f53b7e006e247fbda4a4a6.tar.gz
profiles: move things around for btrfs
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;