diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..19ed1549 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ + + +.smb_credentials \ No newline at end of file diff --git a/hosts/msi-rtx4090/cifs-mount.nix b/hosts/msi-rtx4090/cifs-mount.nix new file mode 100644 index 00000000..f9078648 --- /dev/null +++ b/hosts/msi-rtx4090/cifs-mount.nix @@ -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"]; + }; +} + + diff --git a/hosts/msi-rtx4090/default.nix b/hosts/msi-rtx4090/default.nix index 1955c2a6..69fbcd87 100644 --- a/hosts/msi-rtx4090/default.nix +++ b/hosts/msi-rtx4090/default.nix @@ -7,6 +7,7 @@ { imports = [ + ./cifs-mount.nix ../../modules/system.nix ../../modules/hyprland.nix ../../modules/fcitx5 diff --git a/modules/system.nix b/modules/system.nix index ecd5359d..78761b70 100644 --- a/modules/system.nix +++ b/modules/system.nix @@ -117,6 +117,7 @@ p7zip xz zstd + cifs-utils # for mounting windows shares (python3.withPackages(ps: with ps; [ ipython