diff --git a/configuration.nix b/configuration.nix index 3aa3c3a..d104ed4 100644 --- a/configuration.nix +++ b/configuration.nix @@ -28,6 +28,20 @@ in { # Enable networking networking.networkmanager.enable = true; + services.printing.enable = true; + services.avahi = { + enable = true; + nssmdns = true; + openFirewall = true; + }; + services.printing.drivers = with pkgs; [ + epson-escpr2 + epson-escpr + ghostscript + cups-filters + ]; + + # Set your time zone. time.timeZone = "Europe/Stockholm"; @@ -179,6 +193,16 @@ in { in ["${automount_opts},credentials=/etc/nixos/smb-secrets,uid=1000,gid=1000"]; }; + fileSystems."/mnt/development" = { + device = "//vanten-s.com/development"; + 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"; + + in ["${automount_opts},credentials=/etc/nixos/smb-secrets,uid=1000,gid=1000"]; + }; + # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true; diff --git a/dotfiles/scripts/capture-image.sh b/dotfiles/scripts/capture-image.sh new file mode 100755 index 0000000..95dddcd --- /dev/null +++ b/dotfiles/scripts/capture-image.sh @@ -0,0 +1,2 @@ +cd ~/timelapses/pictures +gphoto2 --capture-image-and-download --force-overwrite --filename "$1" diff --git a/home.nix b/home.nix index 9a4c103..a6f9cd6 100644 --- a/home.nix +++ b/home.nix @@ -17,6 +17,7 @@ pkgs.prismlauncher pkgs.prusa-slicer pkgs.gphoto2 + pkgs.freecad ]; home.file = {