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";
|
||||
backupDir = "${xdg.dataHome}/PaperlessBackup";
|
||||
consumptionDir = "/home/${psCfg.user.name}/.local/share/scandir";
|
||||
scannerDefaultDevice = "hp3900:libusb:005:004";
|
||||
in {
|
||||
services.paperless = {
|
||||
enable = true;
|
||||
|
@ -41,11 +40,9 @@ in {
|
|||
|
||||
home-manager.users."${psCfg.user.name}" = {
|
||||
home.sessionVariables = {
|
||||
SCANNER_DEFAULT_DEVICE = scannerDefaultDevice;
|
||||
SCANNER_OUTPUT_DIR = consumptionDir;
|
||||
};
|
||||
systemd.user.sessionVariables = {
|
||||
SCANNER_DEFAULT_DEVICE = scannerDefaultDevice;
|
||||
SCANNER_OUTPUT_DIR = consumptionDir;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -18,8 +18,9 @@
|
|||
|
||||
services.printing.drivers = [
|
||||
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"];
|
||||
|
||||
|
|
Loading…
Reference in a new issue