summaryrefslogtreecommitdiff
path: root/hosts/toaster/zfs.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/toaster/zfs.nix')
-rw-r--r--hosts/toaster/zfs.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/hosts/toaster/zfs.nix b/hosts/toaster/zfs.nix
new file mode 100644
index 0000000..1970bbf
--- /dev/null
+++ b/hosts/toaster/zfs.nix
@@ -0,0 +1,25 @@
+{
+ pkgs,
+ ...
+}:
+{
+ services.fstrim.enable = true;
+ services.zfs = {
+ autoSnapshot.enable = true;
+ trim.enable = true;
+ autoScrub = {
+ enable = true;
+ pools = [ "zpool" ];
+ };
+ };
+ networking.hostId = "dca22577";
+ boot = {
+ kernelPackages = pkgs.linuxKernel.packages.linux_6_12;
+ zfs.package = pkgs.zfs_2_3;
+ supportedFilesystems = [ "zfs" ];
+ kernelParams = [ "nohibernate" ];
+ plymouth.enable = false;
+ tmp.useTmpfs = false;
+ tmp.cleanOnBoot = true;
+ };
+}