Compare commits
2 Commits
bec36a738f
...
477b5abfa8
Author | SHA1 | Date |
---|---|---|
coolneng | 477b5abfa8 | |
coolneng | 0a7d8585ae |
|
@ -94,8 +94,12 @@ with pkgs;
|
||||||
# Keep logs for a week
|
# Keep logs for a week
|
||||||
services.journald.extraConfig = "MaxRetentionSec=1week";
|
services.journald.extraConfig = "MaxRetentionSec=1week";
|
||||||
|
|
||||||
# Increase inotify limits
|
# Increase inotify limits and maximum buffer size
|
||||||
boot.kernel.sysctl = { "fs.inotify.max_user_watches" = 204800; };
|
boot.kernel.sysctl = {
|
||||||
|
"fs.inotify.max_user_watches" = 204800;
|
||||||
|
"net.core.rmem_max" = 2500000;
|
||||||
|
"net.core.wmem_max" = 2500000;
|
||||||
|
};
|
||||||
|
|
||||||
# MOTD message
|
# MOTD message
|
||||||
programs.fish.interactiveShellInit = "${./scripts/motd.sh}";
|
programs.fish.interactiveShellInit = "${./scripts/motd.sh}";
|
||||||
|
|
|
@ -7,13 +7,19 @@
|
||||||
guiAddress = "0.0.0.0:8384";
|
guiAddress = "0.0.0.0:8384";
|
||||||
dataDir = "/vault/syncthing";
|
dataDir = "/vault/syncthing";
|
||||||
key = config.age.secrets.syncthing.path;
|
key = config.age.secrets.syncthing.path;
|
||||||
extraOptions = { options.maxFolderConcurrency = 1; };
|
|
||||||
devices = {
|
devices = {
|
||||||
panacea.id =
|
panacea.id =
|
||||||
"NF4SYEJ-RSGPDEF-CDEYC3A-JWZMKNC-KG4FVQP-CZ5HRFY-XM22BZD-N7B6VAH";
|
"NF4SYEJ-RSGPDEF-CDEYC3A-JWZMKNC-KG4FVQP-CZ5HRFY-XM22BZD-N7B6VAH";
|
||||||
caravanserai.id =
|
caravanserai.id =
|
||||||
"MIRF73R-S7AV47R-VLWZUK2-TFCVQPV-FRYCPND-Y4VR3W2-ZAIQXZD-JAEQCAD";
|
"MIRF73R-S7AV47R-VLWZUK2-TFCVQPV-FRYCPND-Y4VR3W2-ZAIQXZD-JAEQCAD";
|
||||||
};
|
};
|
||||||
|
extraOptions = {
|
||||||
|
options = {
|
||||||
|
maxFolderConcurrency = 4;
|
||||||
|
progressUpdateIntervalS = -1;
|
||||||
|
caseSensitiveFS = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
folders = {
|
folders = {
|
||||||
Documents = {
|
Documents = {
|
||||||
id = "wusdj-bfjkr";
|
id = "wusdj-bfjkr";
|
||||||
|
|
|
@ -47,20 +47,6 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Idle HDDs when not used
|
|
||||||
systemd.services.hd-idle = {
|
|
||||||
description = "Idle HDDs when not in use";
|
|
||||||
wantedBy = [ "default.target" ];
|
|
||||||
path = with pkgs; [ hd-idle ];
|
|
||||||
script = ''
|
|
||||||
${pkgs.hd-idle}/bin/hd-idle -i 0 -a ata-ST1000LM035-1RK172_WKPAKV85 -i 600
|
|
||||||
-a ata-HGST_HTS721010A9E630_JR100X6P3UJG5E -i 600
|
|
||||||
'';
|
|
||||||
serviceConfig.Type = "simple";
|
|
||||||
requires = [ "sata-hat.service" ];
|
|
||||||
after = [ "vault.mount" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Push zion changes to git daily
|
# Push zion changes to git daily
|
||||||
systemd.user.services.zion-push = {
|
systemd.user.services.zion-push = {
|
||||||
description = "Push zion changes to git";
|
description = "Push zion changes to git";
|
||||||
|
|
Loading…
Reference in New Issue