I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
542 B

12 months ago
  1. # This file is controlled by /etc/dotfiles/README.org
  2. { config, options, lib, pkgs, ... }:
  3. with lib;
  4. with lib.types;
  5. let
  6. cfg = config.modules.firefox;
  7. myFirefox = pkgs.writeShellScriptBin "firefox" ''
  8. HOME=~/.local/share/mozilla ${pkgs.firefox-bin}/bin/firefox
  9. '';
  10. in {
  11. options.modules.firefox = {
  12. enable = mkOption {
  13. type = bool;
  14. default = false;
  15. };
  16. };
  17. config = mkIf cfg.enable {
  18. # NOTE: Use the binary until module is developed.
  19. environment.systemPackages = [
  20. myFirefox
  21. ];
  22. };
  23. }