moved homelab modules
This commit is contained in:
27
modules/homelab/zfs.nix
Normal file
27
modules/homelab/zfs.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# set network host id
|
||||
networking.hostId = "3e6e7055";
|
||||
|
||||
# enable zfs support
|
||||
boot.kernelModules = [ "zfs" ];
|
||||
boot.supportedFilesystems = [ "zfs" ];
|
||||
|
||||
# enable smart monitoring
|
||||
services.smartd.enable = true;
|
||||
|
||||
# enable zfs
|
||||
services.zfs = {
|
||||
autoScrub.enable = true;
|
||||
autoScrub.interval = "weekly";
|
||||
|
||||
# datasets = {
|
||||
# "rpool/data" = {
|
||||
# mountPoint = "/mnt/storage";
|
||||
# };
|
||||
# };
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user