nixcfg/hosts/common/samba.nix

42 lines
849 B
Nix
Raw Permalink Normal View History

{
config,
lib,
...
}: {
2024-07-16 17:07:43 -04:00
fileSystems = let
fsType = "cifs";
options = [
"gid=100"
"guest"
"nofail"
"uid=${toString config.users.users.aly.uid}"
"x-systemd.after=network.target"
"x-systemd.after=tailscaled.service"
"x-systemd.automount"
"x-systemd.device-timeout=5s"
"x-systemd.idle-timeout=60"
"x-systemd.mount-timeout=5s"
];
in
lib.attrsets.optionalAttrs (config.networking.hostName != "mauville") {
"/mnt/Archive" = {
inherit options fsType;
device = "//mauville/Archive";
};
2024-07-16 17:07:43 -04:00
"/mnt/Media" = {
inherit options fsType;
device = "//mauville/Media";
};
};
home-manager.sharedModules = [
{
gtk.gtk3.bookmarks = [
"file:///mnt/Media"
"file:///mnt/Archive"
];
}
];
}