Copy over all make configs

This commit is contained in:
James Patrick 2021-11-15 03:00:56 +00:00
parent 1cba02caf4
commit 0b7343289a

View File

@ -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 \