summaryrefslogtreecommitdiff
path: root/hosts/toaster/zfs.nix
diff options
context:
space:
mode:
authorGrisha Shipunov2024-12-31 13:52:57 +0000
committerGrisha Shipunov2024-12-31 13:52:57 +0000
commit50066a4d208b83e63d5ebb4bc64e740e78deae59 (patch)
treeb09004fb2121e2ffb4d46bb45ff65b024749d7e2 /hosts/toaster/zfs.nix
parent677abb734403d4f412dbbdc83f372cc606d9d519 (diff)
revert toaster
Diffstat (limited to 'hosts/toaster/zfs.nix')
-rw-r--r--hosts/toaster/zfs.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/hosts/toaster/zfs.nix b/hosts/toaster/zfs.nix
new file mode 100644
index 0000000..f4bdeea
--- /dev/null
+++ b/hosts/toaster/zfs.nix
@@ -0,0 +1,19 @@
+{ pkgs, ... }: {
+ services.fstrim.enable = true;
+ services.zfs = {
+ autoSnapshot.enable = true;
+ trim.enable = true;
+ autoScrub = {
+ enable = true;
+ pools = [ "toasterpool" ];
+ };
+ };
+ networking.hostId = "dca22577";
+ boot = {
+ kernelPackages = pkgs.zfs.latestCompatibleLinuxPackages;
+ supportedFilesystems = [ "zfs" ];
+ kernelParams = [ "nohibernate" ];
+ plymouth.enable = false;
+ tmp.useTmpfs = true;
+ };
+}