fix nextcloud shared folder access
This commit is contained in:
parent
3d0fbcf95e
commit
6cd2b63d35
2 changed files with 42 additions and 10 deletions
|
@ -1,8 +1,9 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, config, ... }:
|
||||
let
|
||||
|
||||
hostAddress = "192.168.100.10";
|
||||
containerAddress = "192.168.100.11";
|
||||
#syncthingGid = config.users.groups.syncthing.gid;
|
||||
|
||||
in {
|
||||
|
||||
|
@ -42,6 +43,35 @@ in {
|
|||
hostPath = toString <modules>;
|
||||
isReadOnly = true;
|
||||
};
|
||||
# shared folders
|
||||
samples = {
|
||||
mountPoint = toString
|
||||
config.test.services.syncthing.declarative.folders.samples.path;
|
||||
hostPath = toString
|
||||
config.test.services.syncthing.declarative.folders.samples.path;
|
||||
isReadOnly = true;
|
||||
};
|
||||
movies = {
|
||||
mountPoint = toString
|
||||
config.test.services.syncthing.declarative.folders.movies.path;
|
||||
hostPath = toString
|
||||
config.test.services.syncthing.declarative.folders.movies.path;
|
||||
isReadOnly = true;
|
||||
};
|
||||
music = {
|
||||
mountPoint = toString
|
||||
config.test.services.syncthing.declarative.folders.music-library.path;
|
||||
hostPath = toString
|
||||
config.test.services.syncthing.declarative.folders.music-library.path;
|
||||
isReadOnly = true;
|
||||
};
|
||||
series = {
|
||||
mountPoint = toString
|
||||
config.test.services.syncthing.declarative.folders.series.path;
|
||||
hostPath = toString
|
||||
config.test.services.syncthing.declarative.folders.series.path;
|
||||
isReadOnly = true;
|
||||
};
|
||||
};
|
||||
|
||||
# container network setup
|
||||
|
|
|
@ -113,15 +113,17 @@
|
|||
};
|
||||
};
|
||||
|
||||
systemd.services."permown._media_syncthing" = {
|
||||
bindsTo = [ "media.mount" ];
|
||||
after = [ "media.mount" ];
|
||||
};
|
||||
system.permown."/media/syncthing" = {
|
||||
owner = "syncthing";
|
||||
group = "syncthing";
|
||||
umask = "0007";
|
||||
};
|
||||
# todo now working properly
|
||||
# -------------------------
|
||||
#systemd.services."permown._media_syncthing" = {
|
||||
# bindsTo = [ "media.mount" ];
|
||||
# after = [ "media.mount" ];
|
||||
#};
|
||||
#system.permown."/media/syncthing" = {
|
||||
# owner = "syncthing";
|
||||
# group = "syncthing";
|
||||
# umask = "0002";
|
||||
#};
|
||||
systemd.services."syncthing" = {
|
||||
bindsTo = [ "media.mount" ];
|
||||
after = [ "media.mount" ];
|
||||
|
|
Loading…
Reference in a new issue