This commit is contained in:
notgne2 2022-06-11 11:37:58 -07:00
parent ac021ac976
commit 91eea7811a
No known key found for this signature in database
GPG key ID: 5CE0A245A2DAC84A
9 changed files with 259 additions and 256 deletions

View file

@ -3,9 +3,14 @@ with lib;
let
cfg = config.fuckingprint;
fixPlatforms = p: p.overrideAttrs (super: super // { meta = super.meta // { platforms = super.meta.platforms ++ [ "x86_64-linux" ]; }; });
in
{
fixPlatforms = p:
p.overrideAttrs (super:
super // {
meta = super.meta // {
platforms = super.meta.platforms ++ [ "x86_64-linux" ];
};
});
in {
options.fuckingprint.enable = mkEnableOption "Make my fucking printer work";
config = mkIf cfg.enable {
@ -76,7 +81,9 @@ in
mfcl3770cdwlpr
# Maybe this isn't a good idea?
(mfcl8690cdwcupswrapper.override { mfcl8690cdwlpr = fixPlatforms mfcl8690cdwlpr; })
(mfcl8690cdwcupswrapper.override {
mfcl8690cdwlpr = fixPlatforms mfcl8690cdwlpr;
})
(fixPlatforms mfcl8690cdwlpr)
];
hardware.sane.enable = true;