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 = ''
|
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}
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#./neo4j.nix
|
#./neo4j.nix
|
||||||
./jellyfin.nix
|
./jellyfin.nix
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
./tts.nix
|
#./tts.nix
|
||||||
|
|
||||||
#./loki.nix
|
#./loki.nix
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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=" ];
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue