fix fuse permissions
This commit is contained in:
parent
1d08d80c60
commit
d3909251ca
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
@ -154,6 +154,8 @@ in {
|
||||
options.inputs = lib.mkOption { default = config.inputs; };
|
||||
options.currentSystem = lib.mkOption { default = config.currentSystem; };
|
||||
|
||||
programs.fuse.userAllowOther = true;
|
||||
|
||||
config = {
|
||||
pia.enable = true;
|
||||
nixpkgs.pkgs = pkgs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user