lxc: ensure directory /var/lib/lxc/rootfs

This commit is contained in:
Volth 2017-03-14 11:34:04 +00:00 committed by Robin Gloster
parent bb3ef8a95c
commit bcc4c261be

View File

@ -71,6 +71,7 @@ in
environment.etc."lxc/lxc.conf".text = cfg.systemConfig;
environment.etc."lxc/lxc-usernet".text = cfg.usernetConfig;
environment.etc."lxc/default.conf".text = cfg.defaultConfig;
systemd.tmpfiles.rules = [ "d /var/lib/lxc/rootfs 0755 root root -" ];
security.apparmor.packages = [ pkgs.lxc ];
security.apparmor.profiles = [ "${pkgs.lxc}/etc/apparmor.d/lxc-containers" ];