home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

printing.nix (341B)


      1 { config, lib, pkgs, ... }:
      2 
      3 with lib;
      4 let
      5   cfg = config.profiles.printing;
      6 in
      7 {
      8   options = {
      9     profiles.printing = {
     10       enable = mkEnableOption "Enable printing profile";
     11     };
     12   };
     13   config = mkIf cfg.enable {
     14     services = {
     15       printing = {
     16         enable = true;
     17         drivers = [ pkgs.gutenprint ];
     18       };
     19     };
     20   };
     21 }