feat: mount smb/cifs share

This commit is contained in:
ryan4yin
2023-05-07 22:17:36 +08:00
parent 0716174fb7
commit f1c20d68f9
4 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
{ config, pkgs, ... }:
{
# mount a smb/cifs share
fileSystems."/home/ryan/SMB-Downloads" = {
device = "//192.168.5.194/Downloads";
fsType = "cifs";
options = ["vers=3.0,uid=1000,gid=100,dir_mode=0755,file_mode=0755,mfsymlinks,credentials=/etc/nixos/.smb_credentials,nofail"];
};
}

View File

@@ -7,6 +7,7 @@
{
imports =
[
./cifs-mount.nix
../../modules/system.nix
../../modules/hyprland.nix
../../modules/fcitx5