server/nix.nix

32 lines
429 B
Nix
Raw Permalink Normal View History

2024-04-07 00:31:22 +02:00
{ 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;
};
};
environment.systemPackages = with pkgs; [
git
vim
wget
neovim
];
}