feat: samba mounts
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
{pkgs, ...}: {
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./disko-config.nix
|
||||
@@ -37,5 +41,39 @@
|
||||
|
||||
networking.firewall.allowedTCPPorts = [587];
|
||||
|
||||
fileSystems."/mnt/AutoAblage" = {
|
||||
device = "//192.168.152.97/AutoAblage";
|
||||
fsType = "cifs";
|
||||
options = [
|
||||
"credentials=${config.age.secrets.smb-autoablage.path}"
|
||||
"domain=az-group.local"
|
||||
"uid=0"
|
||||
"gid=0"
|
||||
"file_mode=0777"
|
||||
"dir_mode=0777"
|
||||
"iocharset=utf8"
|
||||
"nofail"
|
||||
"x-systemd.automount"
|
||||
"x-systemd.idle-timeout=60"
|
||||
];
|
||||
};
|
||||
|
||||
fileSystems."/mnt/SkriptHelper" = {
|
||||
device = "//192.168.152.98/SkriptHelper";
|
||||
fsType = "cifs";
|
||||
options = [
|
||||
"credentials=${config.age.secrets.smb-autoablage.path}"
|
||||
"domain=az-group.local"
|
||||
"uid=0"
|
||||
"gid=0"
|
||||
"file_mode=0777"
|
||||
"dir_mode=0777"
|
||||
"iocharset=utf8"
|
||||
"nofail"
|
||||
"x-systemd.automount"
|
||||
"x-systemd.idle-timeout=60"
|
||||
];
|
||||
};
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user