forked from rarias/jungle
weasel: create user folders in /var/lib/podman-users
/home is a nfs mount, which does not support extra filesystem arguments needed to run podman. We need to have a local home.
This commit is contained in:
parent
8369b1207e
commit
6a89c4de90
@ -1,4 +1,9 @@
|
|||||||
{ pkgs, ... }:
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Enable common container config files in /etc/containers
|
# Enable common container config files in /etc/containers
|
||||||
@ -12,6 +17,20 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# We cannot use /home since nfs does not support fileattrs needed by podman
|
||||||
|
systemd.tmpfiles.settings = {
|
||||||
|
"podman-users" = lib.mapAttrs' (
|
||||||
|
name: value:
|
||||||
|
lib.nameValuePair ("/var/lib/podman-users/" + name) {
|
||||||
|
d = {
|
||||||
|
group = value.group;
|
||||||
|
mode = value.homeMode;
|
||||||
|
user = name;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
) (lib.filterAttrs (_: x: x.isNormalUser) config.users.users);
|
||||||
|
};
|
||||||
|
|
||||||
# Useful other development tools
|
# Useful other development tools
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
dive # look into docker image layers
|
dive # look into docker image layers
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user