Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

progs: firefox: *.userChrome may be path or drv #6761

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

spikespaz
Copy link
Member

@spikespaz spikespaz commented Apr 5, 2025

Description

This allows programs.firefox.profiles.*.userChrome to be set to a:
derivation, path/path-like string to directory or file, or multiline
text to be used as content verbatim.

This allows setting, for example(s):

programs.firefox.profiles."jacob.default".userChrome = pkgs.wavefox;
programs.firefox.profiles."jacob.default".userChrome =
    "${pkgs.wavefox}/userChrome.css";

Checklist

  • (Painstakingly) Change is backwards compatible.

  • Code formatted with ./format.

  • Code tested through nix-shell --pure tests -A run.all
    or nix build --reference-lock-file flake.lock ./tests#test-all using Flakes.

  • Test cases updated/added. See example.

  • Commit messages are formatted like

    {component}: {description}
    
    {long description}
    

    See CONTRIBUTING for more information and recent commit messages for examples.

  • If this PR adds a new module

    • Added myself as module maintainer. See example.

Maintainer CC

@spikespaz spikespaz force-pushed the u/jacob/firefox-profiles-userchrome-source branch 2 times, most recently from e11ac94 to a846d21 Compare April 7, 2025 03:33
spikespaz added a commit to spikespaz/dotfiles that referenced this pull request Apr 9, 2025
@spikespaz spikespaz force-pushed the u/jacob/firefox-profiles-userchrome-source branch from a846d21 to 1eb6ddd Compare April 10, 2025 02:21
@spikespaz spikespaz marked this pull request as draft April 10, 2025 02:39
@spikespaz spikespaz force-pushed the u/jacob/firefox-profiles-userchrome-source branch from 1eb6ddd to 37548f8 Compare April 10, 2025 02:48
@spikespaz spikespaz marked this pull request as ready for review April 10, 2025 02:48
This allows `programs.firefox.profiles.*.userChrome` to be set to a:
derivation, path/path-like string to directory or file, or multiline
text to be used as content verbatim.

This allows setting, for example(s):
```nix
programs.firefox.profiles."jacob.default".userChrome = pkgs.wavefox;
programs.firefox.profiles."jacob.default".userChrome =
    "${pkgs.wavefox}/userChrome.css";
```
@spikespaz spikespaz force-pushed the u/jacob/firefox-profiles-userchrome-source branch from 37548f8 to 4e03b78 Compare April 10, 2025 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants