Compare commits

..

2 commits

Author SHA1 Message Date
66aede16c1 Add scanner drivers 2025-08-22 08:35:55 +08:00
19b79f8315 Remove AFP mount 2025-08-22 08:35:46 +08:00
2 changed files with 30 additions and 10 deletions

View file

@ -13,19 +13,24 @@
}; };
}; };
# Root filesystem.
fileSystems = { fileSystems = {
# Root filesystem.
"/" = { "/" = {
device = "/dev/disk/by-label/NIXOS_SD"; device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4"; fsType = "ext4";
options = ["noatime"]; options = ["noatime"];
}; };
};
# AFP share. # Printer Sharing.
"/srv/iMac" = { services.printing = {
device = "/dev/disk/by-uuid/48843b25-4d8c-4638-a5f8-fb3901e1165e"; enable = true;
fsType = "ext4"; drivers = [pkgs.cups-dymo]; # Dymo label printer.
}; listenAddresses = ["*:631"];
allowFrom = ["all"];
browsing = true;
defaultShared = true;
openFirewall = true;
}; };
# Enable WebOne HTTP proxy. # Enable WebOne HTTP proxy.
@ -46,12 +51,21 @@
}; };
}; };
systemd.tmpfiles.settings = {
"10-netatalk" = {
"/srv/netatalk" = {
d = {
group = "users";
mode = "0755";
user = "fern";
};
};
};
};
# Open ports for services. # Open ports for services.
networking.firewall = { networking.firewall = {
allowedUDPPorts = [ allowedUDPPorts = [53 67]; # DHCP server.
53 # DHCP server.
67 # DHCP server.
];
allowedTCPPorts = [8080 548]; # WebOne & Netatalk. allowedTCPPorts = [8080 548]; # WebOne & Netatalk.
}; };
} }

View file

@ -314,6 +314,12 @@ with lib; {
drivers = [pkgs.brlaser pkgs.cups-dymo]; # Brother laser printer & Dymo label printer. drivers = [pkgs.brlaser pkgs.cups-dymo]; # Brother laser printer & Dymo label printer.
}; };
# Scanner drivers.
hardware.sane = {
enable = true;
extraBackends = [pkgs.cnijfilter2];
};
# https://github.com/tailscale/tailscale/issues/4432#issuecomment-1112819111 # https://github.com/tailscale/tailscale/issues/4432#issuecomment-1112819111
networking.firewall.checkReversePath = false; networking.firewall.checkReversePath = false;