add printer-scanner.nix
This commit is contained in:
parent
59b092040f
commit
cf4aac1606
2 changed files with 22 additions and 1 deletions
|
@ -20,6 +20,7 @@ args@{
|
|||
../../modules/nixos/nautilus.nix
|
||||
(import ../../modules/nixos/nix.nix (args // { user = "pomp"; }))
|
||||
../../modules/nixos/nixvim.nix
|
||||
# (import ../../modules/nixos/printer-scanner.nix (args // { user = "pomp"; }))
|
||||
(import ../../modules/nixos/shell.nix (args // { user = "pomp"; }))
|
||||
../../modules/nixos/steam.nix
|
||||
(import ../../modules/nixos/virtualbox.nix (args // { user = "pomp"; }))
|
||||
|
@ -97,7 +98,6 @@ args@{
|
|||
enable = true;
|
||||
acceleration = "cuda";
|
||||
};
|
||||
services.printing.enable = false; # enable only when needed
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
|
|
21
modules/nixos/printer-scanner.nix
Normal file
21
modules/nixos/printer-scanner.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
# enable only when needed
|
||||
|
||||
{
|
||||
pkgs,
|
||||
user ? "pomp",
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
hardware.sane.enable = true;
|
||||
services.printing.enable = true;
|
||||
|
||||
users.users.${user}.extraGroups = [
|
||||
"scanner"
|
||||
"lp"
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
simple-scan
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue