mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53:56 -05:00
use user-level tmpfiles.d
This commit is contained in:
parent
16d14bd764
commit
522437b1df
2 changed files with 16 additions and 13 deletions
|
|
@ -1,8 +1,11 @@
|
|||
_: {pkgs, ...}: {
|
||||
_: {pkgs, ...}: let
|
||||
xsane =
|
||||
pkgs.xsane.override {gimpSupport = true;};
|
||||
in {
|
||||
local.allowedUnfree = ["hplip"];
|
||||
environment.systemPackages = [
|
||||
xsane
|
||||
pkgs.gimp
|
||||
(pkgs.xsane.override {gimpSupport = true;})
|
||||
pkgs.libreoffice
|
||||
];
|
||||
users.users.jo.extraGroups = ["scanner" "lp" "cups"];
|
||||
|
|
@ -10,7 +13,7 @@ _: {pkgs, ...}: {
|
|||
enable = true;
|
||||
extraBackends = [pkgs.hplipWithPlugin];
|
||||
};
|
||||
systemd.tmpfiles.rules = ["L /home/jo/.config/GIMP/2.10/plug-ins/xsane - - - - /run/current-system/sw/bin/xsane"];
|
||||
systemd.user.tmpfiles.users.jo.rules = ["L %h/.config/GIMP/2.10/plug-ins/xsane - - - - ${xsane}"];
|
||||
services = {
|
||||
printing = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue