refactor: move to network printing
This commit is contained in:
parent
f3d9915d2f
commit
7c15872af8
16
flake.lock
16
flake.lock
|
@ -272,21 +272,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"hl3140cw-arm": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1696674831,
|
|
||||||
"narHash": "sha256-FJmtrlRWJ76GwSaUB/Y7UCkfqgYh7wsnLOgVe15YvqU=",
|
|
||||||
"ref": "refs/heads/feat/brother-hl3140cw-on-arm",
|
|
||||||
"rev": "060f8d9b2493166afc9a48e274ea38cbefb38549",
|
|
||||||
"revCount": 533407,
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://git.pub.solar/b12f/nixpkgs.git?branch=feat%2fbrotherhl3140cw-on-arm"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://git.pub.solar/b12f/nixpkgs.git?branch=feat%2fbrotherhl3140cw-on-arm"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -493,7 +478,6 @@
|
||||||
"deploy-rs": "deploy-rs",
|
"deploy-rs": "deploy-rs",
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"hl3140cw-arm": "hl3140cw-arm",
|
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"mobile-nixos": "mobile-nixos",
|
"mobile-nixos": "mobile-nixos",
|
||||||
"musnix": "musnix",
|
"musnix": "musnix",
|
||||||
|
|
|
@ -36,8 +36,6 @@
|
||||||
|
|
||||||
adblock-unbound.url = "github:MayNiklas/nixos-adblock-unbound";
|
adblock-unbound.url = "github:MayNiklas/nixos-adblock-unbound";
|
||||||
adblock-unbound.inputs.nixpkgs.follows = "nixpkgs";
|
adblock-unbound.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
hl3140cw-arm.url = "git+https://git.pub.solar/b12f/nixpkgs.git?branch=feat/brotherhl3140cw-on-arm";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ self, ... }:
|
outputs = inputs@{ self, ... }:
|
||||||
|
|
|
@ -58,7 +58,6 @@
|
||||||
inputs.nixos-hardware.nixosModules.raspberry-pi-4
|
inputs.nixos-hardware.nixosModules.raspberry-pi-4
|
||||||
./pie
|
./pie
|
||||||
self.nixosModules.yule
|
self.nixosModules.yule
|
||||||
self.nixosModules.printing
|
|
||||||
self.nixosModules.docker
|
self.nixosModules.docker
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
|
|
||||||
./networking.nix
|
./networking.nix
|
||||||
./printing.nix
|
|
||||||
./unbound.nix
|
./unbound.nix
|
||||||
./dhcpd.nix
|
./dhcpd.nix
|
||||||
./wake-droppie.nix
|
./wake-droppie.nix
|
||||||
|
|
|
@ -47,6 +47,11 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
reservations = [
|
reservations = [
|
||||||
|
{
|
||||||
|
hostname = "brwb8763f64a364.local";
|
||||||
|
hw-address = "b8:76:3f:64:a3:64";
|
||||||
|
ip-address = "192.168.178.4";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
hostname = "droppie.local";
|
hostname = "droppie.local";
|
||||||
hw-address = "08:f1:ea:97:0f:0c";
|
hw-address = "08:f1:ea:97:0f:0c";
|
||||||
|
|
|
@ -28,6 +28,11 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hardware.sane = {
|
||||||
|
enable = true;
|
||||||
|
extraBackends = [pkgs.hplipWithPlugin];
|
||||||
|
};
|
||||||
|
|
||||||
users.users."${psCfg.user.name}".packages = with pkgs; [
|
users.users."${psCfg.user.name}".packages = with pkgs; [
|
||||||
scan2paperless
|
scan2paperless
|
||||||
sane-backends
|
sane-backends
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
{
|
|
||||||
flake,
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
services.caddy = {
|
|
||||||
enable = true;
|
|
||||||
extraConfig = ''
|
|
||||||
cups.b12f.io:80 {
|
|
||||||
request_header Host localhost:631
|
|
||||||
reverse_proxy unix//run/cups/cups.sock
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -23,6 +23,8 @@
|
||||||
"\"box\" static"
|
"\"box\" static"
|
||||||
];
|
];
|
||||||
local-data = [
|
local-data = [
|
||||||
|
"\"brwb8763f64a364.local. 10800 IN A 192.168.178.4\""
|
||||||
|
|
||||||
"\"droppie.local. 10800 IN A 192.168.178.3\""
|
"\"droppie.local. 10800 IN A 192.168.178.3\""
|
||||||
"\"droppie.local. 10800 IN AAAA 2a02:908:5b1:e3c0:3077:4e39:7763:b5b8\""
|
"\"droppie.local. 10800 IN AAAA 2a02:908:5b1:e3c0:3077:4e39:7763:b5b8\""
|
||||||
"\"droppie.b12f.io. 10800 IN A 192.168.178.3\""
|
"\"droppie.b12f.io. 10800 IN A 192.168.178.3\""
|
||||||
|
@ -40,8 +42,6 @@
|
||||||
"\"firefly-importer.b12f.io. 10800 IN AAAA 2a02:908:5b1:e3c0:3077:4e39:7763:b5b7\""
|
"\"firefly-importer.b12f.io. 10800 IN AAAA 2a02:908:5b1:e3c0:3077:4e39:7763:b5b7\""
|
||||||
"\"paperless.b12f.io. 10800 IN A 192.168.178.2\""
|
"\"paperless.b12f.io. 10800 IN A 192.168.178.2\""
|
||||||
"\"paperless.b12f.io. 10800 IN AAAA 2a02:908:5b1:e3c0:3077:4e39:7763:b5b7\""
|
"\"paperless.b12f.io. 10800 IN AAAA 2a02:908:5b1:e3c0:3077:4e39:7763:b5b7\""
|
||||||
"\"cups.b12f.io. 10800 IN A 192.168.178.2\""
|
|
||||||
"\"cups.b12f.io. 10800 IN AAAA 2a02:908:5b1:e3c0:3077:4e39:7763:b5b7\""
|
|
||||||
|
|
||||||
"\"fritz.box. 10800 IN A 192.168.178.1\""
|
"\"fritz.box. 10800 IN A 192.168.178.1\""
|
||||||
"\"fritz.box. 10800 IN AAAA fd00::3ea6:2fff:fe57:30b0\""
|
"\"fritz.box. 10800 IN AAAA fd00::3ea6:2fff:fe57:30b0\""
|
||||||
|
|
|
@ -14,18 +14,13 @@
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
services.printing.browsing = true;
|
services.printing.browsing = true;
|
||||||
services.printing.listenAddresses = ["localhost:631"];
|
services.printing.listenAddresses = ["localhost:631"];
|
||||||
services.printing.allowFrom = ["all"];
|
services.printing.defaultShared = lib.mkDefault false;
|
||||||
services.printing.defaultShared = false;
|
|
||||||
services.printing.drivers = [
|
services.printing.drivers = [
|
||||||
pkgs.gutenprint
|
pkgs.gutenprint
|
||||||
pkgs.cups-brother-hl3140cw
|
pkgs.cups-brother-hl3140cw
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.sane = {
|
|
||||||
enable = true;
|
|
||||||
extraBackends = [pkgs.hplipWithPlugin];
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.hosts = flake.self.lib.addLocalHostname ["cups.local"];
|
networking.hosts = flake.self.lib.addLocalHostname ["cups.local"];
|
||||||
|
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
|
|
|
@ -10,11 +10,6 @@
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
nixd = inputs.nixpkgs-unstable.legacyPackages.${prev.system}.nixd;
|
nixd = inputs.nixpkgs-unstable.legacyPackages.${prev.system}.nixd;
|
||||||
|
|
||||||
cups-brother-hl3140cw = (import inputs.hl3140cw-arm {
|
|
||||||
system = prev.system;
|
|
||||||
config.allowUnfree = true;
|
|
||||||
}).cups-brother-hl3140cw;
|
|
||||||
|
|
||||||
factorio-headless = inputs.nixpkgs-master.legacyPackages.${prev.system}.factorio-headless;
|
factorio-headless = inputs.nixpkgs-master.legacyPackages.${prev.system}.factorio-headless;
|
||||||
paperless-ngx = inputs.nixpkgs-master.legacyPackages.${prev.system}.paperless-ngx;
|
paperless-ngx = inputs.nixpkgs-master.legacyPackages.${prev.system}.paperless-ngx;
|
||||||
waybar = inputs.nixpkgs-master.legacyPackages.${prev.system}.waybar;
|
waybar = inputs.nixpkgs-master.legacyPackages.${prev.system}.waybar;
|
||||||
|
|
Loading…
Reference in a new issue