Set up Cups and SANE
This commit is contained in:
parent
140676179e
commit
b50b743858
45
Timeline.org
45
Timeline.org
|
@ -1,6 +1,6 @@
|
||||||
* Zion configuration
|
* Zion configuration
|
||||||
|
|
||||||
** General
|
** General [4/8] [50%]
|
||||||
*** DONE NTP daemon
|
*** DONE NTP daemon
|
||||||
CLOSED: [2019-10-17 Thu 23:20]
|
CLOSED: [2019-10-17 Thu 23:20]
|
||||||
*** DONE User account
|
*** DONE User account
|
||||||
|
@ -12,17 +12,24 @@
|
||||||
*** TODO Smartmontools
|
*** TODO Smartmontools
|
||||||
*** DONE Zeroconf
|
*** DONE Zeroconf
|
||||||
CLOSED: [2019-10-23 Wed 00:51]
|
CLOSED: [2019-10-23 Wed 00:51]
|
||||||
** Printing
|
*** TODO Fish shell
|
||||||
*** TODO Cups
|
** Printing [2/2] [100%]
|
||||||
*** TODO SANE
|
*** DONE Cups
|
||||||
** Network
|
CLOSED: [2019-11-06 Wed 21:09]
|
||||||
*** TODO DynDNS [0/1] [0%]
|
*** DONE SANE [1/1] [100%]
|
||||||
- [ ] Ddclient
|
CLOSED: [2019-11-06 Wed 23:28]
|
||||||
*** TODO Firewall [0/2] [0%]
|
- [X] nf_conntrack_sane
|
||||||
- [ ] General nftables config
|
** Network [1/3] [33%]
|
||||||
|
*** DONE DynDNS [1/2] [50%]
|
||||||
|
CLOSED: [2019-11-06 Wed 23:00]
|
||||||
|
- [X] Ddclient
|
||||||
|
- [ ] Secrets outside the store
|
||||||
|
*** TODO Firewall [1/2] [50%]
|
||||||
|
- [X] General config
|
||||||
- [ ] VPN setup
|
- [ ] VPN setup
|
||||||
*** TODO Wireguard
|
*** TODO Wireguard [0/1] [0%]
|
||||||
** LEMP stack
|
- [ ] Encrypted DNS
|
||||||
|
** LEMP stack [0/8] [0%]
|
||||||
*** TODO Nginx
|
*** TODO Nginx
|
||||||
*** TODO PHP [0/1] [0%]
|
*** TODO PHP [0/1] [0%]
|
||||||
- [ ] Php-fpm
|
- [ ] Php-fpm
|
||||||
|
@ -31,19 +38,21 @@
|
||||||
*** TODO Certbot [0/2] [0%]
|
*** TODO Certbot [0/2] [0%]
|
||||||
- [ ] Obtain certs
|
- [ ] Obtain certs
|
||||||
- [ ] Script to renew certs
|
- [ ] Script to renew certs
|
||||||
*** TODO Nextcloud [0/1] [0%]
|
*** TODO Syncthing [0/2] [0%]
|
||||||
- [ ] Tweak options
|
- [ ] Relay server
|
||||||
|
- [ ] Discovery server
|
||||||
|
*** TODO Radicale
|
||||||
*** TODO Wallabag
|
*** TODO Wallabag
|
||||||
*** TODO Miniflux
|
*** TODO Miniflux
|
||||||
*** TODO Hugo [0/2] [0%]
|
*** TODO Hugo [0/2] [0%]
|
||||||
- [ ] Blog website
|
- [ ] Blog website
|
||||||
- [ ] Ox-hugo
|
- [ ] Ox-hugo
|
||||||
** Software development
|
** Software development [0/2] [0%]
|
||||||
*** TODO Git [0/2] [0%]
|
*** TODO Git [0/2] [0%]
|
||||||
- [ ] Gitea
|
- [ ] Gitea
|
||||||
- [ ] Import existing repositories
|
- [ ] Import existing repositories
|
||||||
*** TODO Drone
|
*** TODO Drone
|
||||||
** Backup
|
** Backup [0/2] [0%]
|
||||||
*** TODO Databases [0/4] [0%]
|
*** TODO Databases [0/4] [0%]
|
||||||
- [ ] Regular dumps
|
- [ ] Regular dumps
|
||||||
- [ ] Systemd timer (daily)
|
- [ ] Systemd timer (daily)
|
||||||
|
@ -52,11 +61,11 @@
|
||||||
*** TODO Machines [0/2] [0%]
|
*** TODO Machines [0/2] [0%]
|
||||||
- [ ] Daily snapshot of monolith
|
- [ ] Daily snapshot of monolith
|
||||||
- [ ] Weekly snapshot of zion
|
- [ ] Weekly snapshot of zion
|
||||||
** Workflow
|
** Workflow [0/1] [0%]
|
||||||
*** TODO Automate nix files deployment [0/2] [0%]
|
*** TODO Automate nix files deployment [0/2] [0%]
|
||||||
- [ ] Send local file to Zion
|
- [ ] Send local file to Zion
|
||||||
- [ ] Rebuild
|
- [ ] Rebuild
|
||||||
** Communication
|
** Communication [0/2] [0%]
|
||||||
*** TODO Matrix
|
*** TODO Matrix
|
||||||
*** TODO Mail [0/1] [0%]
|
*** TODO Mail [0/1] [0%]
|
||||||
- [ ] Check out[[https://gitlab.com/simple-nixos-mailserver/nixos-mailserver][ nixos-mailserver]]
|
- [ ] Check out [[https://gitlab.com/simple-nixos-mailserver/nixos-mailserver][nixos-mailserver]]
|
||||||
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
# CUPS and SANE configuration
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
cups
|
||||||
|
sane-backends
|
||||||
|
];
|
||||||
|
|
||||||
|
# Enable CUPS with Zeroconf
|
||||||
|
services.printing = {
|
||||||
|
enable = true;
|
||||||
|
drivers = with pkgs; [ hplip_3_18_5 ];
|
||||||
|
browsing = true;
|
||||||
|
listenAddresses = [ "*:631" ];
|
||||||
|
defaultShared = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable SANE
|
||||||
|
hardware.sane = {
|
||||||
|
enable = true;
|
||||||
|
extraBackends = with pkgs; [ hplip_3_18_5 ];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.saned = {
|
||||||
|
enable = true;
|
||||||
|
extraConfig = ''
|
||||||
|
192.168.1.0/24
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users.scanner = {
|
||||||
|
extraGroups = [ "lp" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue