system: add printing

This commit is contained in:
Dmitriy Pleshevskiy 2022-09-11 19:14:43 +03:00
parent 4b20878d5f
commit 74a45f8864
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, pkgs, lib, ... }:
let let
secrets = import ../../../secrets.nix; secrets = import ../../../secrets.nix;
@ -39,6 +39,19 @@ in
}; };
}; };
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "cnijfilter2" ];
services = {
avahi = {
enable = true;
nssmdns = true;
};
printing = {
enable = true;
drivers = with pkgs; [ gutenprint cnijfilter2 ];
};
};
services.xserver = { services.xserver = {
# All monitors in the right order # All monitors in the right order
# Source: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/x11/xserver.nix#L83 # Source: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/x11/xserver.nix#L83