fix fuse permissions

This commit is contained in:
zuckerberg
2021-09-25 21:54:40 -04:00
parent 1d08d80c60
commit d3909251ca
2 changed files with 5 additions and 0 deletions

View File

@@ -55,7 +55,9 @@ in {
group = cfg.group;
home = cfg.dataDir;
createHome = true;
extraGroups = ["fuse"];
};
users.groups."fuse" = {};
users.groups.${cfg.group} = {};
systemd.services.radio = {
enable = true;
@@ -68,6 +70,7 @@ in {
preStart = ''
mkdir -p ${cfg.dataDir}
chown ${cfg.user} ${cfg.dataDir}
chown root:fuse /dev/fuse
'';
};
};