1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-18 17:19:45 +01:00
home-manager/tests/modules/programs/firefox/state-version-19_09.nix

32 lines
622 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
{
config = {
home.stateVersion = "19.09";
programs.firefox.enable = true;
nixpkgs.overlays = [
(self: super: {
2020-02-02 00:39:17 +01:00
firefox-unwrapped = pkgs.runCommand "firefox-0" {
meta.description = "I pretend to be Firefox";
preferLocalBuild = true;
2021-07-18 20:29:00 +02:00
passthru.gtk3 = null;
2020-02-02 00:39:17 +01:00
} ''
2021-11-25 08:21:54 +01:00
mkdir -p "$out"/{bin,lib}
2020-02-02 00:39:17 +01:00
touch "$out/bin/firefox"
chmod 755 "$out/bin/firefox"
'';
})
];
nmt.script = ''
assertFileRegex \
home-path/bin/firefox \
MOZ_APP_LAUNCHER
'';
};
}