be1ad30503
See, e.g., https://github.com/NixOS/nix/issues/4442 for wider discussions.
32 lines
616 B
Nix
32 lines
616 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
home.stateVersion = "19.09";
|
|
|
|
programs.firefox.enable = true;
|
|
|
|
nixpkgs.overlays = [
|
|
(self: super: {
|
|
firefox-unwrapped = pkgs.runCommand "firefox-0" {
|
|
meta.description = "I pretend to be Firefox";
|
|
preferLocalBuild = true;
|
|
passthru.gtk3 = null;
|
|
} ''
|
|
mkdir -p "$out/bin"
|
|
touch "$out/bin/firefox"
|
|
chmod 755 "$out/bin/firefox"
|
|
'';
|
|
})
|
|
];
|
|
|
|
nmt.script = ''
|
|
assertFileRegex \
|
|
home-path/bin/firefox \
|
|
MOZ_APP_LAUNCHER
|
|
'';
|
|
};
|
|
}
|