From c0f966510475d8d621f302c1bd70f430e589b838 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 18 Oct 2024 19:33:49 +0200 Subject: feat(hosts): Share common options --- flake/nixosConfigurations/common.nix | 43 +++++++++++++++++++++++++++++++++++ flake/nixosConfigurations/default.nix | 1 + 2 files changed, 44 insertions(+) create mode 100644 flake/nixosConfigurations/common.nix (limited to 'flake') 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 = { -- cgit 1.4.1