From fb6f327d4e13f4aec477ab4805c83ab5df1efbe4 Mon Sep 17 00:00:00 2001 From: vanten-s Date: Mon, 22 Apr 2024 08:50:25 +0200 Subject: [PATCH] Added font and another drive --- configuration.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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;