mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53:56 -05:00
24 lines
582 B
Nix
24 lines
582 B
Nix
_: {
|
|
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];
|
|
};
|
|
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];
|
|
};
|
|
};
|
|
}
|