home

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

scanning.nix (445B)


      1 { config, lib, pkgs, ... }:
      2 
      3 with lib;
      4 let
      5   cfg = config.profiles.scanning;
      6 in
      7 {
      8   options = {
      9     profiles.scanning = {
     10       enable = mkEnableOption "Enable scanning profile";
     11     };
     12   };
     13   config = mkIf cfg.enable {
     14     environment.systemPackages = with pkgs; [
     15       saneFrontends
     16       saneBackends
     17       simple-scan
     18     ];
     19     hardware.sane = {
     20       enable = true;
     21       extraConfig = { "pixma" = "bjnp://192.168.1.16"; };
     22     };
     23   };
     24 }