updated moms-laptop

This commit is contained in:
Gerg-L 2023-03-05 00:23:27 -05:00
parent afb948363e
commit 3a9755739b
3 changed files with 2 additions and 4 deletions

View file

@ -1,26 +0,0 @@
_: {
pkgs,
settings,
...
}: {
nixpkgs.allowedUnfree = ["hplip"];
environment.systemPackages = [
pkgs.gimp
(pkgs.xsane.override {gimpSupport = true;})
pkgs.libreoffice
];
users.users."${settings.username}".extraGroups = ["scanner" "lp" "cups"];
hardware.sane = {
enable = true;
extraBackends = [pkgs.hplipWithPlugin];
#run this to setup gimp plugin
#ln -s /run/current-system/sw/bin/xsane ~/.config/GIMP/2.10/plug-ins/xsane
systemd.tmpfiles.rules = ["L /home/jo/.config/GIMP/2.10/plug-ins/xsane - - - - /run/current-system/sw/bin/xsane"];
};
services = {
printing = {
enable = true;
drivers = [pkgs.hplipWithPlugin];
};
};
}