summaryrefslogtreecommitdiff
path: root/Biz/OsBase.nix
diff options
context:
space:
mode:
Diffstat (limited to 'Biz/OsBase.nix')
-rw-r--r--Biz/OsBase.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/Biz/OsBase.nix b/Biz/OsBase.nix
index 50899d2..a9407ab 100644
--- a/Biz/OsBase.nix
+++ b/Biz/OsBase.nix
@@ -1,4 +1,4 @@
-{ pkgs, ... }:
+{ pkgs, config, ... }:
let ports = import ./Cloud/Ports.nix;
in {
boot.tmp.cleanOnBoot = true;
@@ -19,6 +19,8 @@ in {
nix.gc.dates = "Sunday 02:15";
nix.optimise.automatic = true;
nix.optimise.dates = [ "Sunday 02:30" ];
+ nix.settings.extra-sandbox-paths = [ config.programs.ccache.cacheDir ];
+ programs.ccache.enable = true;
programs.mosh.enable = true;
programs.mosh.withUtempter = true;
security.acme.defaults.email = "ben@bsima.me";
@@ -34,4 +36,5 @@ in {
services.openssh.settings.PasswordAuthentication = false;
services.openssh.settings.PermitRootLogin = "prohibit-password";
system.autoUpgrade.enable = false; # 'true' breaks our nixpkgs pin
+ zramSwap.enable = true;
}