aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2026-11-19 07:27:26 +0100
committerMartin Fischer <martin@push-f.com>2026-11-19 07:27:26 +0100
commit36bca2dc029c0547a29b14bca6fca67b78407f85 (patch)
tree9457887d733058eceba1cd3c1f49d5be995f85db
parent022f8e471d6f47fb632d2d3d970f36b45a0a3599 (diff)
refactor: introduce config block in server profile
-rw-r--r--nixos/profiles/server/default.nix26
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"];
+ };
}