my over complex system configurations dotfiles.isabelroses.com/
nixos nix flake dotfiles linux
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

nixos/system/printing: fix eval error

isabel 6f4fe66b d945d584

+9 -8
+9 -8
modules/nixos/system/printing.nix
··· 11 11 mkEnableOption 12 12 attrValues 13 13 ; 14 - inherit (lib.types) listOf str; 14 + inherit (lib.types) attrsOf path; 15 15 16 16 cfg = config.garden.system.printing; 17 17 in ··· 20 20 enable = mkEnableOption "printing"; 21 21 22 22 extraDrivers = mkOption { 23 - type = listOf str; 24 - default = [ ]; 23 + type = attrsOf path; 24 + default = { }; 25 25 description = "A list of additional drivers to install for printing"; 26 26 }; 27 27 }; ··· 32 32 printing = { 33 33 enable = true; 34 34 35 - drivers = attrValues { 36 - inherit (pkgs) gutenprint hplip; 37 - 38 - inherit (cfg) extraDrivers; 39 - }; 35 + drivers = attrValues ( 36 + { 37 + inherit (pkgs) gutenprint hplip; 38 + } 39 + // cfg.extraDrivers 40 + ); 40 41 }; 41 42 42 43 # required for network discovery of printers