Update configuration.nix
This commit is contained in:
parent
1214df146a
commit
780fea8142
@ -10,15 +10,39 @@
|
|||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# This mounts the ZFS pool
|
## This mounts the ZFS pool
|
||||||
b#oot.supportedFilesystems = [ "zfs" ];
|
boot.supportedFilesystems = [ "zfs" ];
|
||||||
#boot.zfs.forceImportRoot = false;
|
boot.zfs.forceImportRoot = false;
|
||||||
#networking.hostId = "6d778fb4"; # head -c4 /dev/urandom | od -A none -t x4
|
networking.hostId = "1f72512b"; # head -c4 /dev/urandom | od -A none -t x4
|
||||||
|
|
||||||
|
## uncomment after formating disks or editing to import disks
|
||||||
#fileSystems."/mnt/media" = {
|
#fileSystems."/mnt/media" = {
|
||||||
# device = "media-pool";
|
# device = "media-pool";
|
||||||
# fsType = "zfs";
|
# 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.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user