mirror of
https://github.com/nix-community/home-manager
synced 2024-12-13 21:39:50 +01:00
34 lines
851 B
Nix
34 lines
851 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
config = {
|
||
|
programs.firefox = {
|
||
|
enable = true;
|
||
|
enableGnomeExtensions = true;
|
||
|
};
|
||
|
|
||
|
nixpkgs.overlays = [
|
||
|
(self: super: {
|
||
|
firefox-unwrapped = pkgs.runCommand "firefox-0" {
|
||
|
meta.description = "I pretend to be Firefox";
|
||
|
preferLocalBuild = true;
|
||
|
allowSubstitutes = false;
|
||
|
} ''
|
||
|
mkdir -p "$out/bin"
|
||
|
touch "$out/bin/firefox"
|
||
|
chmod 755 "$out/bin/firefox"
|
||
|
'';
|
||
|
})
|
||
|
];
|
||
|
|
||
|
test.asserts.warnings.expected = [''
|
||
|
Using 'programs.firefox.enableGnomeExtensions' has been deprecated and
|
||
|
will be removed in the future. Please change to overriding the package
|
||
|
configuration using 'programs.firefox.package' instead. You can refer to
|
||
|
its example for how to do this.
|
||
|
''];
|
||
|
};
|
||
|
}
|