[fanny] disable mounting root datasets and add encrypted swap
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,3 +5,4 @@ result
|
|||||||
*.qcow2
|
*.qcow2
|
||||||
.direnv/
|
.direnv/
|
||||||
book/
|
book/
|
||||||
|
fanny-efi-vars.fd
|
||||||
|
|||||||
@@ -17,6 +17,13 @@
|
|||||||
mountOptions = [ "umask=0077" ];
|
mountOptions = [ "umask=0077" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
encryptedSwap = {
|
||||||
|
size = "8G"; #set to 100M for testing
|
||||||
|
content = {
|
||||||
|
type = "swap";
|
||||||
|
randomEncryption = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
zfs = {
|
zfs = {
|
||||||
size = "100%";
|
size = "100%";
|
||||||
content = {
|
content = {
|
||||||
@@ -70,6 +77,7 @@
|
|||||||
# Workaround: cannot import 'zroot': I/O error in disko tests
|
# Workaround: cannot import 'zroot': I/O error in disko tests
|
||||||
options.cachefile = "none";
|
options.cachefile = "none";
|
||||||
rootFsOptions = {
|
rootFsOptions = {
|
||||||
|
mountpoint = "none";
|
||||||
compression = "zstd";
|
compression = "zstd";
|
||||||
"com.sun:auto-snapshot" = "false";
|
"com.sun:auto-snapshot" = "false";
|
||||||
};
|
};
|
||||||
@@ -114,6 +122,7 @@
|
|||||||
storage = {
|
storage = {
|
||||||
type = "zpool";
|
type = "zpool";
|
||||||
mode = "mirror";
|
mode = "mirror";
|
||||||
|
rootFsOptions = { mountpoint = "none"; };
|
||||||
|
|
||||||
datasets = {
|
datasets = {
|
||||||
encrypted = {
|
encrypted = {
|
||||||
|
|||||||
Reference in New Issue
Block a user