Use tmpfs for /tmp. Enable new nixos system switch implementation

This commit is contained in:
Daniel Lundin 2024-08-22 09:25:58 +02:00
parent 8ff422f953
commit caf1da9231
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
2 changed files with 16 additions and 5 deletions

View file

@ -5,8 +5,24 @@
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
kernelPackages = pkgs.linuxPackages_zen;
initrd.systemd.enable = true;
binfmt.emulatedSystems = [ "aarch64-linux" ];
};
# Temporary files
boot.tmp.useTmpfs = true;
systemd.services.nix-daemon = {
environment.TMPDIR = "/var/tmp";
};
system.switch = {
enable = false;
enableNg = true;
};
services.fstrim.enable = true;
time.timeZone = "Europe/Stockholm";
environment.systemPackages = with pkgs; [

View file

@ -11,11 +11,6 @@
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
system.switch = {
enable = false;
enableNg = true;
};
boot = {
initrd = {
availableKernelModules = [