summaryrefslogtreecommitdiff
path: root/Biz/OsBase.nix
blob: f632de09e9a0657fc7070642791fa5b52b00ca72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{...}:
{
  boot.cleanTmpDir = true;
  networking.firewall.allowPing = true;
  nix.binaryCaches = [ "https://cache.nixos.org" ];
  nix.gc.automatic = true;
  nix.gc.dates = "Sunday 02:15";
  nix.optimise.automatic = true;
  nix.optimise.dates = [ "Sunday 02:30" ];
  #nixpkgs.overlays = overlays;
  programs.mosh.enable = true;
  programs.mosh.withUtempter = true;
  security.acme.email = "ben@bsima.me";
  security.acme.acceptTerms = true;
  security.sudo.wheelNeedsPassword = false;
  services.clamav.daemon.enable = true; # security
  services.clamav.updater.enable = true; # security
  services.fail2ban.enable = true; # security
  services.fail2ban.ignoreIP = [ "24.140.84.23" ]; # my home IP
  services.openssh.enable = true;
  services.openssh.openFirewall = true;
  services.openssh.forwardX11 = true;
  services.openssh.passwordAuthentication = false;
  services.openssh.permitRootLogin = "prohibit-password";
  system.autoUpgrade.enable = false; # 'true' breaks our nixpkgs pin
}