Last active
November 24, 2016 10:21
-
-
Save cleverca22/b38d3fab623c0288fbdea0d77999cc39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, lib, config, ... }: | |
with lib; | |
let | |
cfg = config.stuff; | |
in { | |
options.stuff = { | |
chromium = mkEnableOption "chromium"; | |
firefox = mkEnableOption "firefox"; | |
flash = mkEnableOption "flash"; | |
}; | |
config = { | |
environment.systemPackages = (optional cfg.chromium pkgs.chromium) ++ (optional cfg.firefox pkgs.firefox); | |
nixpkgs.config = { | |
chromium = { | |
enablePepperFlash = cfg.flash; | |
}; | |
firefox = { | |
enableAdobeFlash = cfg.flash; | |
}; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment