diff --git a/configuration.nix b/configuration.nix index 486e7bd..83ee34c 100644 --- a/configuration.nix +++ b/configuration.nix @@ -10,15 +10,39 @@ ./hardware-configuration.nix ]; - # This mounts the ZFS pool - b#oot.supportedFilesystems = [ "zfs" ]; - #boot.zfs.forceImportRoot = false; - #networking.hostId = "6d778fb4"; # head -c4 /dev/urandom | od -A none -t x4 + ## This mounts the ZFS pool + boot.supportedFilesystems = [ "zfs" ]; + boot.zfs.forceImportRoot = false; + networking.hostId = "1f72512b"; # head -c4 /dev/urandom | od -A none -t x4 + + ## uncomment after formating disks or editing to import disks #fileSystems."/mnt/media" = { # device = "media-pool"; # fsType = "zfs"; #}; + ## ZFS snapshots + #services.sanoid = { + # enable = true; + # templates.backup = { + # hourly = 36; + # daily = 30; + # monthly = 3; + # autoprune = true; + # autosnap = true; + # }; + + # datasets."media-pool" = { + # useTemplate = [ "backup" ]; + # }; + #}; + + #services.zfs.autoScrub = { + # enable = true; + # interval = "*-*-1,15 02:30"; + #}; + + # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true;