about summary refs log tree commit diff stats
path: root/flake
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-18 19:33:49 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-18 19:33:49 +0200
commitc0f966510475d8d621f302c1bd70f430e589b838 (patch)
treebac9c5d1dc178003c27c3b0823b4f4a7591df31c /flake
parentrefactor(hosts): Move all unmaintained hosts to the `_unmaintained` dir (diff)
downloadnixos-config-c0f966510475d8d621f302c1bd70f430e589b838.tar.gz
nixos-config-c0f966510475d8d621f302c1bd70f430e589b838.zip
feat(hosts): Share common options
Diffstat (limited to 'flake')
-rw-r--r--flake/nixosConfigurations/common.nix43
-rw-r--r--flake/nixosConfigurations/default.nix1
2 files changed, 44 insertions, 0 deletions
diff --git a/flake/nixosConfigurations/common.nix b/flake/nixosConfigurations/common.nix
new file mode 100644
index 00000000..fce2c6a1
--- /dev/null
+++ b/flake/nixosConfigurations/common.nix
@@ -0,0 +1,43 @@
+# This file contains common configuration applied to every host.
+# It should only `enable` options defined in the `modules` directory.
+{...}: {
+  soispha = {
+    boot.enable = true;
+    cleanup.enable = true;
+    documentation.enable = true;
+
+    fonts = {
+      enable = true;
+      enableEmoji = true;
+    };
+
+    home-manager.enable = true;
+    impermanence.enable = true;
+    polkit.enable = true;
+    power.enable = true;
+    secrets.enable = true;
+
+    services = {
+      adb = {
+        enable = true;
+        user = "soispha";
+      };
+      fwupd.enable = true;
+      postgresql.enable = false;
+      printing.enable = true;
+      scanning.enable = true;
+      snapper.enable = true;
+      steam.enable = false;
+      systemDiff.enable = true;
+    };
+
+    programs = {
+      imv.enable = true;
+      zathura.enable = true;
+    };
+
+    sound.enable = true;
+    tempfiles.enable = true;
+    version.enable = true;
+  };
+}
diff --git a/flake/nixosConfigurations/default.nix b/flake/nixosConfigurations/default.nix
index c4353d5f..564d2535 100644
--- a/flake/nixosConfigurations/default.nix
+++ b/flake/nixosConfigurations/default.nix
@@ -36,6 +36,7 @@
     serverphone.nixosModules.default
 
     ../../modules
+    ./common.nix
   ];
 
   specialArgs = {