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 = '' extraOptions = ''
experimental-features = nix-command flakes experimental-features = nix-command flakes
''; '';
settings = {
substituters = [ "https://colmena.cachix.org" ];
trusted-public-keys = [ "colmena.cachix.org-1:7BzpDnjjH8ki2CT3f6GdOk7QAzPOl+1t3LvTLXqYcSg=" ];
};
}; };
environment.systemPackages = [ environment.systemPackages = [
nixpkgs-fmt.defaultPackage.${system} nixpkgs-fmt.defaultPackage.${system}

View file

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

View file

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

View file

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