Add ZFS support to sleeper-service
- Replace ext4 with ZFS pool 'filepool' for enhanced data integrity - Add ZFS auto-scrub and TRIM services for file server - Configure proper ZFS datasets: root, nix, var, storage - Add networking hostId (a1b2c3d4) required for ZFS - Update NFS and Transmission to use ZFS mount points - Change file ownership to 'sma' user for server configuration - Add comprehensive ZFS setup documentation Ready for deployment with proper file server storage backend.
This commit is contained in:
parent
715911cc62
commit
c392df4a93
6 changed files with 35 additions and 11 deletions
|
@ -6,7 +6,7 @@
|
|||
# NFS server configuration
|
||||
services.nfs.server = {
|
||||
enable = true;
|
||||
# Export the storage directory
|
||||
# Export the storage directory (ZFS dataset)
|
||||
exports = ''
|
||||
/mnt/storage 10.0.0.0/24(rw,sync,no_subtree_check,no_root_squash)
|
||||
'';
|
||||
|
@ -14,12 +14,12 @@
|
|||
createMountPoints = true;
|
||||
};
|
||||
|
||||
# Ensure the storage directory exists
|
||||
# Ensure the storage subdirectories exist (ZFS dataset is mounted at /mnt/storage)
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /mnt/storage 0755 geir users -"
|
||||
"d /mnt/storage/media 0755 geir users -"
|
||||
"d /mnt/storage/downloads 0755 geir users -"
|
||||
"d /mnt/storage/backups 0755 geir users -"
|
||||
"d /mnt/storage/media 0755 sma users -"
|
||||
"d /mnt/storage/downloads 0755 sma users -"
|
||||
"d /mnt/storage/backups 0755 sma users -"
|
||||
"d /mnt/storage/shares 0755 sma users -"
|
||||
];
|
||||
|
||||
# Required packages for NFS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue