Merge pull request #75 from nix-community/zap2

zap only devices we care about
This commit is contained in:
Jörg Thalheim 2022-12-25 18:25:37 +00:00 committed by GitHub
commit e3527b826d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 114 additions and 32 deletions

View file

@ -39,6 +39,9 @@
type = "luks";
name = "crypted1";
keyFile = "/tmp/secret.key";
extraArgs = [
"--iter-time 1"
];
content = {
type = "lvm_pv";
vg = "pool";
@ -64,6 +67,9 @@
type = "luks";
name = "crypted2";
keyFile = "/tmp/secret.key";
extraArgs = [
"--iter-time 1"
];
content = {
type = "lvm_pv";
vg = "pool";

View file

@ -25,7 +25,6 @@
start = "100MiB";
end = "-1G";
part-type = "primary";
bootable = true;
content = {
type = "filesystem";
format = "ext4";
@ -33,12 +32,11 @@
};
}
{
name = "root";
name = "swap";
type = "partition";
start = "-1G";
end = "100%";
part-type = "primary";
bootable = true;
content = {
type = "swap";
randomEncryption = true;

View file

@ -49,7 +49,6 @@
zpool = {
zroot = {
type = "zpool";
rootFsOptions.mountpoint = "none";
datasets = {
"root" = {
zfs_type = "filesystem";
@ -58,7 +57,6 @@
"root/zfs_fs" = {
zfs_type = "filesystem";
mountpoint = "/zfs_fs";
options.mountpoint = "/zfs_fs";
options."com.sun:auto-snapshot" = "true";
};
};