diff --git a/configuration.nix b/configuration.nix index 274a4dc..8e95ab6 100644 --- a/configuration.nix +++ b/configuration.nix @@ -213,7 +213,7 @@ in { services.xserver.xkb.layout = "se"; fonts.packages = with pkgs; [ - (nerdfonts.override { fonts = [ "FiraCode" "RobotoMono" ]; }) + (nerdfonts.override { fonts = [ "FiraCode" "RobotoMono" "JetBrainsMono" ]; }) ]; nixpkgs.config.permittedInsecurePackages = [ @@ -241,6 +241,16 @@ in { in ["${automount_opts},credentials=/etc/nixos/smb-secrets,uid=1000,gid=100"]; }; + fileSystems."/mnt/photos" = { + device = "//vanten-s.com/photos"; + fsType = "cifs"; + options = let + # this line prevents hanging on network split + automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s,user,users,exec"; + + in ["${automount_opts},credentials=/etc/nixos/smb-secrets,uid=1000,gid=100"]; + }; + # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true;