diff --git a/makefile b/makefile index 8eed239..7756ea8 100644 --- a/makefile +++ b/makefile @@ -95,29 +95,7 @@ mount: nix_install: nixos-generate-config --root /mnt - cat << EOF > /mnt/etc/nixos/zfs.nix - # /etc/nixos/zfs.nix (Don't forget to add it to configuration.nix) - # These are the options ZFS requires, but a normal system has, of course, - # more options (like a bootloader, or installed software). - { config, pkgs, ... }: - { - # remove this after 1st boot - # see https://nixos.org/nixos/options.html#boot.zfs.forceimportroot - boot.kernelParams = ["zfs_force=1"]; - - boot.zfs.forceImportRoot = false; - boot.zfs.forceImportAll = false; - - boot.supportedFilesystems = [ "zfs" ]; - - services.zfs.autoScrub.enable = true; - # this enables the zfs-auto-snapshot - services.zfs.autoSnapshot = { - enable = true; - flags = "-k -p --utc"; - }; - } - EOF + cp -i nixos/* /mnt/etc/nixos/ install: | format \