nixos-config/services/samba/home-pc.nix

30 lines
486 B
Nix
Raw Permalink Normal View History

2024-05-26 16:45:38 +02:00
{
config,
lib,
pkgs,
...
}:
2022-02-04 23:23:34 +01:00
{
age.secrets.samba.file = ../../secrets/samba.age;
2022-12-27 20:04:49 +01:00
fileSystems."/mnt/media" = {
device = "//home-server/media";
2022-02-04 23:23:34 +01:00
fsType = "cifs";
options = [
# automount options
"x-systemd.automount"
"noauto"
"x-systemd.idle-timeout=60"
"x-systemd.device-timeout=5s"
"x-systemd.mount-timeout=5s"
"uid=1000"
"gid=100"
2022-05-04 03:02:47 +02:00
"credentials=${config.age.secrets.samba.path}"
"nobrl"
2022-02-04 23:23:34 +01:00
];
};
}