try to fix podman + zfs

This commit is contained in:
Ingolf Wagner 2023-05-05 09:49:58 +02:00
parent 0bb8d114a8
commit 36c1e554d1
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
4 changed files with 17 additions and 2 deletions

View file

@ -48,6 +48,12 @@
networking.hostId = "e439b116";
services.zfs.autoSnapshot.enable = true;
#virtualisation.containers.storage.settings = {
# # fixes: Error: 'overlay' is not supported over zfs, a mount_program is required: backing file system is unsupported for this graph driver
# storage.options.mount_program = "${pkgs.fuse-overlayfs}/bin/fuse-overlayfs";
#};
virtualisation.podman.extraPackages = [ pkgs.zfs ]; # make sure /var/lib/containers/storage is a zfs dataset
sops.defaultSopsFile = ../../secrets/chungus.yaml;
networking.hostName = "chungus";

View file

@ -171,6 +171,15 @@ in
compression = "lz4";
};
};
"container" = {
type = "zfs_fs";
mountpoint = "/var/lib/containers/storage"; # needed for podman
options = {
mountpoint = "legacy";
compression = "lz4";
acltype = "posixacl"; # needed for podman
};
};
"robi" = {
type = "zfs_fs";
mountpoint = "/robi";

View file

@ -331,6 +331,6 @@ in
] ++ (map pandocScript (lib.cartesianProductOfSets {
inputFormat = [ "man" "markdown" "mediawiki" ];
outputFormat = [ "mediawiki" "docbook5" "html5" "man" "jira" ];
outputFormat = [ "mediawiki" "docbook5" "html5" "man" "jira" "markdown" ];
}));
}