try to fix podman + zfs
This commit is contained in:
parent
0bb8d114a8
commit
36c1e554d1
4 changed files with 17 additions and 2 deletions
|
@ -48,6 +48,12 @@
|
||||||
networking.hostId = "e439b116";
|
networking.hostId = "e439b116";
|
||||||
services.zfs.autoSnapshot.enable = true;
|
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;
|
sops.defaultSopsFile = ../../secrets/chungus.yaml;
|
||||||
|
|
||||||
networking.hostName = "chungus";
|
networking.hostName = "chungus";
|
||||||
|
|
|
@ -171,6 +171,15 @@ in
|
||||||
compression = "lz4";
|
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" = {
|
"robi" = {
|
||||||
type = "zfs_fs";
|
type = "zfs_fs";
|
||||||
mountpoint = "/robi";
|
mountpoint = "/robi";
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
# https://docs.tdarr.io/docs/installation/docker/run-compose
|
# https://docs.tdarr.io/docs/installation/docker/run-compose
|
||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers = {
|
||||||
#backend = "podman";
|
# backend = "podman";
|
||||||
containers.tdarr = {
|
containers.tdarr = {
|
||||||
volumes = [
|
volumes = [
|
||||||
"/srv/tdarr/server:/app/server"
|
"/srv/tdarr/server:/app/server"
|
||||||
|
|
|
@ -331,6 +331,6 @@ in
|
||||||
|
|
||||||
] ++ (map pandocScript (lib.cartesianProductOfSets {
|
] ++ (map pandocScript (lib.cartesianProductOfSets {
|
||||||
inputFormat = [ "man" "markdown" "mediawiki" ];
|
inputFormat = [ "man" "markdown" "mediawiki" ];
|
||||||
outputFormat = [ "mediawiki" "docbook5" "html5" "man" "jira" ];
|
outputFormat = [ "mediawiki" "docbook5" "html5" "man" "jira" "markdown" ];
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue