feat: Add ZFS ntfy and /tmp on tmpfs

This commit is contained in:
Kyle Brown 2024-01-24 21:48:19 -08:00
parent d48523590f
commit 3e5c58ce25
5 changed files with 39 additions and 0 deletions

View file

@ -20,6 +20,37 @@
enable = true;
interval = "monthly";
};
zed.settings = {
# Latest docs
# https://github.com/openzfs/zfs/blob/master/cmd/zed/zed.d/zed.rc
# disable after testing
ZED_NOTIFY_VERBOSE = true;
ZED_USE_ENCLOSURE_LEDS = true;
ZED_SCRUB_AFTER_RESILVER = true;
##
# Ntfy topic
# This defines which topic will receive the ntfy notification.
# <https://docs.ntfy.sh/publish/>
# Disabled by default; uncomment to enable.
ZED_NTFY_TOPIC = "zfs";
##
# Ntfy access token (optional for public topics)
# This defines an access token which can be used
# to allow you to authenticate when sending to topics
# <https://docs.ntfy.sh/publish/#access-tokens>
# Disabled by default; uncomment to enable.
#ZED_NTFY_ACCESS_TOKEN = "";
##
# Ntfy Service URL
# This defines which service the ntfy call will be directed toward
# <https://docs.ntfy.sh/install/>
# https://ntfy.sh by default; uncomment to enable an alternative service url.
ZED_NTFY_URL = "https://ntfy.kdb424.xyz";
};
};
services.nfs.server.enable = true;
}

View file

@ -41,6 +41,8 @@
priority = 10;
};
boot.tmp.useTmpfs = true;
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction

View file

@ -33,6 +33,8 @@
priority = 10;
};
boot.tmp.useTmpfs = true;
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction

View file

@ -38,4 +38,6 @@
memoryPercent = 25;
priority = 10;
};
boot.tmp.useTmpfs = true;
}

View file

@ -33,6 +33,8 @@
priority = 10;
};
boot.tmp.useTmpfs = true;
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";