fix: printing and scanning setup on pie
This commit is contained in:
parent
0ea7f9fb50
commit
d936aca698
|
@ -12,7 +12,6 @@ with lib; let
|
||||||
dataDir = "${xdg.dataHome}/Paperless";
|
dataDir = "${xdg.dataHome}/Paperless";
|
||||||
backupDir = "${xdg.dataHome}/PaperlessBackup";
|
backupDir = "${xdg.dataHome}/PaperlessBackup";
|
||||||
consumptionDir = "/home/${psCfg.user.name}/.local/share/scandir";
|
consumptionDir = "/home/${psCfg.user.name}/.local/share/scandir";
|
||||||
scannerDefaultDevice = "hp3900:libusb:005:004";
|
|
||||||
in {
|
in {
|
||||||
services.paperless = {
|
services.paperless = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -41,11 +40,9 @@ in {
|
||||||
|
|
||||||
home-manager.users."${psCfg.user.name}" = {
|
home-manager.users."${psCfg.user.name}" = {
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
SCANNER_DEFAULT_DEVICE = scannerDefaultDevice;
|
|
||||||
SCANNER_OUTPUT_DIR = consumptionDir;
|
SCANNER_OUTPUT_DIR = consumptionDir;
|
||||||
};
|
};
|
||||||
systemd.user.sessionVariables = {
|
systemd.user.sessionVariables = {
|
||||||
SCANNER_DEFAULT_DEVICE = scannerDefaultDevice;
|
|
||||||
SCANNER_OUTPUT_DIR = consumptionDir;
|
SCANNER_OUTPUT_DIR = consumptionDir;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -18,8 +18,9 @@
|
||||||
|
|
||||||
services.printing.drivers = [
|
services.printing.drivers = [
|
||||||
pkgs.gutenprint
|
pkgs.gutenprint
|
||||||
pkgs.cups-brother-hl3140cw
|
] ++ (if (pkgs.system == "x86_64-linux")
|
||||||
];
|
then [ pkgs.cups-brother-hl3140cw ]
|
||||||
|
else []);
|
||||||
|
|
||||||
networking.hosts = flake.self.lib.addLocalHostname ["cups.local"];
|
networking.hosts = flake.self.lib.addLocalHostname ["cups.local"];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue