work on load problems by using tmpfs for /tmp

This commit is contained in:
Ingolf Wagner 2023-02-06 12:16:45 +01:00
parent c0b60ac240
commit f6221f2d8e
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
4 changed files with 19 additions and 12 deletions

View file

@ -158,6 +158,10 @@
extraOptions = ''
experimental-features = nix-command flakes
'';
settings = {
substituters = [ "https://colmena.cachix.org" ];
trusted-public-keys = [ "colmena.cachix.org-1:7BzpDnjjH8ki2CT3f6GdOk7QAzPOl+1t3LvTLXqYcSg=" ];
};
};
environment.systemPackages = [
nixpkgs-fmt.defaultPackage.${system}

View file

@ -22,7 +22,7 @@
#./neo4j.nix
./jellyfin.nix
./wireguard.nix
./tts.nix
#./tts.nix
#./loki.nix

View file

@ -17,12 +17,12 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
zramSwap = {
enable = true;
numDevices = 2;
swapDevices = 1;
memoryPercent = 50;
};
#zramSwap = {
# enable = true;
# numDevices = 2;
# swapDevices = 1;
# memoryPercent = 50;
#};
fileSystems."/share" = {
#device = "/dev/ram1";
@ -31,13 +31,17 @@
};
fileSystems."/browsers" = {
#options = [ "noatime" "nodiratime" "discard" ];
#device = "/dev/vg/browser";
#fsType = "ext4";
device = "none";
#device = "/dev/ram2";
#fsType = "tmpfs";
options = [ "noatime" "nodiratime" "discard" ];
device = "/dev/vg/browser";
fsType = "ext4";
fsType = "tmpfs";
};
boot.tmpOnTmpfs = true;
nix.settings.max-jobs = lib.mkDefault 4;
# lvm volume group

View file

@ -2,6 +2,5 @@
nix.settings = {
substituters = [ "https://all-hies.cachix.org" ];
trusted-public-keys = [ "all-hies.cachix.org-1:JjrzAOEUsD9ZMt8fdFbzo3jNAyEWlPAwdVuHw4RD43k=" ];
};
}