printing: init
This commit is contained in:
parent
1db5104679
commit
a4d9a59b1b
3 changed files with 21 additions and 8 deletions
|
|
@ -22,6 +22,7 @@
|
|||
../../modules/nixos/system/fonts.nix
|
||||
../../modules/nixos/system/home-manager.nix
|
||||
../../modules/nixos/system/laptop.nix
|
||||
../../modules/nixos/system/printing.nix
|
||||
../../modules/nixos/system/scx.nix
|
||||
../../modules/nixos/system/swap.nix
|
||||
../../modules/nixos/system/yubikey.nix
|
||||
|
|
@ -45,11 +46,6 @@
|
|||
# necessary to make the camera not look like the sun
|
||||
environment.systemPackages = [ pkgs.cameractrls ];
|
||||
|
||||
services.printing = {
|
||||
enable = true;
|
||||
drivers = [ pkgs.cups-brother-hll2375dw ];
|
||||
};
|
||||
|
||||
home-manager.users.wo2w = {
|
||||
imports = [
|
||||
../../modules/home
|
||||
|
|
|
|||
|
|
@ -15,9 +15,6 @@
|
|||
};
|
||||
security.rtkit.enable = true;
|
||||
|
||||
# CUPS
|
||||
services.printing.enable = true;
|
||||
|
||||
# enable native wayland in chromium/electron
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
|
||||
|
|
|
|||
20
modules/nixos/system/printing.nix
Normal file
20
modules/nixos/system/printing.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
services.printing = {
|
||||
enable = true;
|
||||
drivers = [
|
||||
pkgs.cups-filters
|
||||
pkgs.cups-browsed
|
||||
|
||||
pkgs.epson-escpr
|
||||
pkgs.cups-brother-hll2375dw
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue