podman storage: zfs -> overlayfs
This commit is contained in:
parent
9687c5a356
commit
675deee5d2
@ -1,13 +1,5 @@
|
|||||||
{ config, pkgs, lib, ... }: {
|
{ config, pkgs, lib, ... }: {
|
||||||
boot.kernelModules = [
|
boot.kernelModules = [ "x_tables" ];
|
||||||
# "xt_nat"
|
|
||||||
# "iptable_nat"
|
|
||||||
# "iptable_filter"
|
|
||||||
# "ip_tables"
|
|
||||||
# "nft_chain_nat"
|
|
||||||
# "nft_masq"
|
|
||||||
"x_tables"
|
|
||||||
];
|
|
||||||
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
oci-containers.backend = lib.mkForce "podman";
|
oci-containers.backend = lib.mkForce "podman";
|
||||||
@ -23,7 +15,7 @@
|
|||||||
];
|
];
|
||||||
containers.storage.settings = {
|
containers.storage.settings = {
|
||||||
storage = {
|
storage = {
|
||||||
driver = "zfs";
|
driver = "overlay";
|
||||||
graphroot = "/var/lib/podman/storage";
|
graphroot = "/var/lib/podman/storage";
|
||||||
runroot = "/run/containers/storage";
|
runroot = "/run/containers/storage";
|
||||||
};
|
};
|
||||||
@ -40,11 +32,6 @@
|
|||||||
lxc.lxcpath = /var/lib/lxd/containers
|
lxc.lxcpath = /var/lib/lxd/containers
|
||||||
lxc.bdev.zfs.root = rpool/persistent/lxd
|
lxc.bdev.zfs.root = rpool/persistent/lxd
|
||||||
'';
|
'';
|
||||||
# defaultConfig = ''
|
|
||||||
# lxc.idmap = u 0 100000 65535
|
|
||||||
# lxc.idmap = g 0 100000 65535
|
|
||||||
# lxc.include = ${pkgs.lxcfs}/share/lxc/config/common.conf.d/00-lxcfs.conf
|
|
||||||
# '';
|
|
||||||
};
|
};
|
||||||
libvirtd = {
|
libvirtd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -63,26 +50,11 @@
|
|||||||
|
|
||||||
security.unprivilegedUsernsClone = true;
|
security.unprivilegedUsernsClone = true;
|
||||||
|
|
||||||
# users.users.podmanmanager = {
|
|
||||||
# uid = 1100;
|
|
||||||
# isSystemUser = true;
|
|
||||||
# description = "User that runs podman containers";
|
|
||||||
# autoSubUidGidRange = true;
|
|
||||||
# createHome = true;
|
|
||||||
# extraGroups = [ "podman" ];
|
|
||||||
# hashedPassword = "!";
|
|
||||||
# home = "/home/podmanmanager";
|
|
||||||
# group = "podmanmanager";
|
|
||||||
# };
|
|
||||||
# users.groups.podmanmanager = {};
|
|
||||||
|
|
||||||
home-manager.users.${config.mainuser} = {
|
home-manager.users.${config.mainuser} = {
|
||||||
home.file.".config/containers/storage.conf".text = ''
|
home.file.".config/containers/storage.conf".text = ''
|
||||||
[storage]
|
[storage]
|
||||||
driver = "overlay"
|
driver = "overlay"
|
||||||
'';
|
'';
|
||||||
# [storage.options.overlay]
|
|
||||||
# mount_program = "${pkgs.fuse-overlayfs}/bin/fuse-overlayfs"
|
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.${config.mainuser} = {
|
users.users.${config.mainuser} = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user