server/nix.nix

38 lines
511 B
Nix

{ config, pkgs, ... }:
{
system = {
autoUpgrade = {
enable = true;
allowReboot = true;
};
};
nix = {
optimise.automatic = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
};
networking = {
firewall = {
enable = true;
allowedTCPPorts = [
22
80
443
2222
];
};
};
environment.systemPackages = with pkgs; [
git
vim
wget
neovim
];
}