move gvfs outside of common

nixos-only option
This commit is contained in:
Noah Masur 2023-03-02 14:49:20 -05:00
parent ab6f80fc18
commit 0ed11de174
2 changed files with 16 additions and 13 deletions

View File

@ -29,9 +29,6 @@
}; };
}; };
# Allow browsing Samba shares
services.gvfs.enable = true;
}; };
} }

View File

@ -2,10 +2,11 @@
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;
shares.video = {
path = "/data/video"; path = "/data/video";
browseable = "yes"; browseable = "yes";
"read only" = "no"; "read only" = "no";
@ -14,6 +15,11 @@
"force group" = config.user; "force group" = config.user;
comment = "Movies and TV"; comment = "Movies and TV";
}; };
};
# Allow browsing Samba shares
services.gvfs =
lib.mkIf (config.gui.enable && config.nautilus.enable) { enable = true; };
}; };