diff options
| author | Grisha Shipunov | 2024-12-31 13:52:57 +0000 |
|---|---|---|
| committer | Grisha Shipunov | 2024-12-31 13:52:57 +0000 |
| commit | 50066a4d208b83e63d5ebb4bc64e740e78deae59 (patch) | |
| tree | b09004fb2121e2ffb4d46bb45ff65b024749d7e2 /hosts/toaster/zfs.nix | |
| parent | 677abb734403d4f412dbbdc83f372cc606d9d519 (diff) | |
revert toaster
Diffstat (limited to 'hosts/toaster/zfs.nix')
| -rw-r--r-- | hosts/toaster/zfs.nix | 19 |
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; + }; +} |
