From 36bca2dc029c0547a29b14bca6fca67b78407f85 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Thu, 19 Nov 2026 07:27:26 +0100 Subject: refactor: introduce config block in server profile --- nixos/profiles/server/default.nix | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'nixos') diff --git a/nixos/profiles/server/default.nix b/nixos/profiles/server/default.nix index 7899a82..8a17571 100644 --- a/nixos/profiles/server/default.nix +++ b/nixos/profiles/server/default.nix @@ -8,21 +8,23 @@ ./prometheus-storagebox-exporter.nix ]; - environment.systemPackages = with pkgs; [ - vim - ]; + config = { + environment.systemPackages = with pkgs; [ + vim + ]; - services = { - openssh = { - enable = true; - settings = { - PasswordAuthentication = false; + services = { + openssh = { + enable = true; + settings = { + PasswordAuthentication = false; + }; }; }; - }; - security.sudo.wheelNeedsPassword = false; + security.sudo.wheelNeedsPassword = false; - # For remote rebuilds with --target-host. - nix.settings.trusted-users = ["@wheel"]; + # For remote rebuilds with --target-host. + nix.settings.trusted-users = ["@wheel"]; + }; } -- cgit v1.3.1