Copy over all make configs
This commit is contained in:
parent
1cba02caf4
commit
0b7343289a
24
makefile
24
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 \
|
||||
|
|
Reference in New Issue
Block a user