diff options
| author | Martin Fischer <martin@push-f.com> | 2026-11-19 07:27:26 +0100 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2026-11-19 07:27:26 +0100 |
| commit | 36bca2dc029c0547a29b14bca6fca67b78407f85 (patch) | |
| tree | 9457887d733058eceba1cd3c1f49d5be995f85db | |
| parent | 022f8e471d6f47fb632d2d3d970f36b45a0a3599 (diff) | |
refactor: introduce config block in server profile
| -rw-r--r-- | nixos/profiles/server/default.nix | 26 |
1 files changed, 14 insertions, 12 deletions
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"]; + }; } |
