From d4add91cbd50532c888a7d3afba708428ae4dee8 Mon Sep 17 00:00:00 2001 From: Tristan Druyen Date: Mon, 26 Aug 2024 09:20:31 +0200 Subject: [PATCH] Switch to switchng & enable tmpdir tmpfs --- os-mods/common/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/os-mods/common/default.nix b/os-mods/common/default.nix index c22865b..f5b2c54 100644 --- a/os-mods/common/default.nix +++ b/os-mods/common/default.nix @@ -13,6 +13,10 @@ let else "dirty"; in { + system.switch = { + enable = false; + enableNg = true; + }; system.image = { id = "tristnix"; version = commitid; @@ -20,6 +24,11 @@ in # system.nixos.tags = [ "tristnix_${commitid}" ]; nixpkgs.hostPlatform = lib.mkDefault system; + boot.tmp.useTmpfs = true; + systemd.services.nix-daemon = { + environment.TMPDIR = "/var/tmp"; + }; + nix = { settings = { auto-optimise-store = true; @@ -105,7 +114,7 @@ in flake = "/home/tristand/nix"; }; rust-motd = { - enable = true; + # enable = true; # broken atm enableMotdInSSHD = true; settings = { banner = {