Compare commits
4 commits
fe9f52b931
...
6195428c72
Author | SHA1 | Date | |
---|---|---|---|
vanten-s | 6195428c72 | ||
vanten-s | 5737caeee4 | ||
vanten-s | 7ed106cd9c | ||
vanten-s | d0315e55b5 |
|
@ -28,6 +28,20 @@ in {
|
||||||
# Enable networking
|
# Enable networking
|
||||||
networking.networkmanager.enable = true;
|
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.
|
# Set your time zone.
|
||||||
time.timeZone = "Europe/Stockholm";
|
time.timeZone = "Europe/Stockholm";
|
||||||
|
|
||||||
|
@ -178,6 +192,16 @@ in {
|
||||||
in ["${automount_opts},credentials=/etc/nixos/smb-secrets,uid=1000,gid=1000"];
|
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
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
# programs.mtr.enable = true;
|
# programs.mtr.enable = true;
|
||||||
|
|
2
dotfiles/scripts/capture-image.sh
Executable file
2
dotfiles/scripts/capture-image.sh
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
cd ~/timelapses/pictures
|
||||||
|
gphoto2 --capture-image-and-download --force-overwrite --filename "$1"
|
Loading…
Reference in a new issue