work on load problems by using tmpfs for /tmp
This commit is contained in:
parent
c0b60ac240
commit
f6221f2d8e
4 changed files with 19 additions and 12 deletions
|
@ -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}
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#./neo4j.nix
|
||||
./jellyfin.nix
|
||||
./wireguard.nix
|
||||
./tts.nix
|
||||
#./tts.nix
|
||||
|
||||
#./loki.nix
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -2,6 +2,5 @@
|
|||
nix.settings = {
|
||||
substituters = [ "https://all-hies.cachix.org" ];
|
||||
trusted-public-keys = [ "all-hies.cachix.org-1:JjrzAOEUsD9ZMt8fdFbzo3jNAyEWlPAwdVuHw4RD43k=" ];
|
||||
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue