flowback-infra/modules/common.nix
2026-03-03 11:21:32 +01:00

31 lines
642 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ config, pkgs, lib, ... }:
{
# Basic sane defaults
time.timeZone = "Europe/Stockholm";
# SSH access (youll tweak users later)
services.openssh.enable = true;
services.openssh.settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = "no";
};
# Helpful tools on the server
environment.systemPackages = with pkgs; [
git
curl
jq
vim
];
# Firewall on by default
networking.firewall.enable = true;
# Nix settings (good defaults)
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
};
}