mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 19:15:37 +00:00
move gvfs outside of common
nixos-only option
This commit is contained in:
parent
ab6f80fc18
commit
0ed11de174
@ -29,9 +29,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Allow browsing Samba shares
|
|
||||||
services.gvfs.enable = true;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2,19 +2,25 @@
|
|||||||
|
|
||||||
options = { samba.enable = lib.mkEnableOption "Enable Samba sharing."; };
|
options = { samba.enable = lib.mkEnableOption "Enable Samba sharing."; };
|
||||||
|
|
||||||
config = lib.mkIf (config.samba.enable) {
|
config = {
|
||||||
|
|
||||||
services.samba.enable = true;
|
services.samba = lib.mkIf (config.samba.enable) {
|
||||||
services.samba.shares.video = {
|
enable = true;
|
||||||
path = "/data/video";
|
shares.video = {
|
||||||
browseable = "yes";
|
path = "/data/video";
|
||||||
"read only" = "no";
|
browseable = "yes";
|
||||||
"guest ok" = "no";
|
"read only" = "no";
|
||||||
"force user" = config.user;
|
"guest ok" = "no";
|
||||||
"force group" = config.user;
|
"force user" = config.user;
|
||||||
comment = "Movies and TV";
|
"force group" = config.user;
|
||||||
|
comment = "Movies and TV";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Allow browsing Samba shares
|
||||||
|
services.gvfs =
|
||||||
|
lib.mkIf (config.gui.enable && config.nautilus.enable) { enable = true; };
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user