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
0
machines/sleeper-service/ZFS_SETUP.md
Normal file
0
machines/sleeper-service/ZFS_SETUP.md
Normal file
|
@ -14,14 +14,21 @@
|
|||
../../modules/users/sma.nix
|
||||
];
|
||||
|
||||
# Boot configuration
|
||||
# Boot configuration with ZFS support
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
zfsSupport = true;
|
||||
efiSupport = true;
|
||||
efiInstallAsRemovable = true;
|
||||
devices = [ "nodev" ];
|
||||
};
|
||||
|
||||
# ZFS services for file server
|
||||
services.zfs = {
|
||||
autoScrub.enable = true;
|
||||
trim.enable = true;
|
||||
};
|
||||
|
||||
# Time and locale
|
||||
time.timeZone = "Europe/Oslo";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
|
|
@ -13,9 +13,25 @@
|
|||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
# ZFS Configuration for file server
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/12345678-1234-1234-1234-123456789abc";
|
||||
fsType = "ext4";
|
||||
{ device = "filepool/root";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/nix" =
|
||||
{ device = "filepool/nix";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/var" =
|
||||
{ device = "filepool/var";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/mnt/storage" =
|
||||
{ device = "filepool/storage";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue