mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 06:11:55 -05:00
hosts/common/samba: reuse options
This commit is contained in:
parent
a844e2ff68
commit
444fefdd8e
|
@ -3,41 +3,32 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
fileSystems = lib.attrsets.optionalAttrs (config.networking.hostName != "mauville") {
|
fileSystems = let
|
||||||
"/mnt/Archive" = {
|
fsType = "cifs";
|
||||||
device = "//mauville/Archive";
|
options = [
|
||||||
fsType = "cifs";
|
"gid=100"
|
||||||
options = [
|
"guest"
|
||||||
"gid=100"
|
"nofail"
|
||||||
"guest"
|
"uid=${toString config.users.users.aly.uid}"
|
||||||
"nofail"
|
"x-systemd.after=network.target"
|
||||||
"uid=${toString config.users.users.aly.uid}"
|
"x-systemd.after=tailscaled.service"
|
||||||
"x-systemd.after=network.target"
|
"x-systemd.automount"
|
||||||
"x-systemd.after=tailscaled.service"
|
"x-systemd.device-timeout=5s"
|
||||||
"x-systemd.automount"
|
"x-systemd.idle-timeout=60"
|
||||||
"x-systemd.device-timeout=5s"
|
"x-systemd.mount-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";
|
||||||
|
};
|
||||||
|
|
||||||
"/mnt/Media" = {
|
"/mnt/Media" = {
|
||||||
device = "//mauville/Media";
|
inherit options fsType;
|
||||||
fsType = "cifs";
|
device = "//mauville/Media";
|
||||||
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"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
home-manager.sharedModules = [
|
home-manager.sharedModules = [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue