mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 20:40:24 +01:00
feat: mount smb/cifs share
This commit is contained in:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
.smb_credentials
|
||||
12
hosts/msi-rtx4090/cifs-mount.nix
Normal file
12
hosts/msi-rtx4090/cifs-mount.nix
Normal 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"];
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
{
|
||||
imports =
|
||||
[
|
||||
./cifs-mount.nix
|
||||
../../modules/system.nix
|
||||
../../modules/hyprland.nix
|
||||
../../modules/fcitx5
|
||||
|
||||
@@ -117,6 +117,7 @@
|
||||
p7zip
|
||||
xz
|
||||
zstd
|
||||
cifs-utils # for mounting windows shares
|
||||
|
||||
(python3.withPackages(ps: with ps; [
|
||||
ipython
|
||||
|
||||
Reference in New Issue
Block a user