From d0315e55b53640bd59d4d7131a57de80434b8a58 Mon Sep 17 00:00:00 2001 From: vanten-s Date: Mon, 25 Mar 2024 11:52:42 +0100 Subject: [PATCH 1/3] Screenshot script --- dotfiles/scripts/capture-image.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 dotfiles/scripts/capture-image.sh 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" From 7ed106cd9ce0ba51bfcdfde6516d60ba6cb2443b Mon Sep 17 00:00:00 2001 From: vanten-s Date: Mon, 25 Mar 2024 11:54:11 +0100 Subject: [PATCH 2/3] Added freecad --- home.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/home.nix b/home.nix index b4381ea..fe6a06f 100644 --- a/home.nix +++ b/home.nix @@ -20,6 +20,7 @@ in { pkgs.prismlauncher pkgs.prusa-slicer pkgs.gphoto2 + pkgs.freecad ]; home.file = { From 5737caeee4a4fd35e97a7a04829c7c14bb77aa6e Mon Sep 17 00:00:00 2001 From: vanten-s Date: Mon, 25 Mar 2024 11:54:23 +0100 Subject: [PATCH 3/3] Added printers --- configuration.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/configuration.nix b/configuration.nix index 7535099..c26fdd7 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"; @@ -178,6 +192,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;