mirror of
https://github.com/nix-community/home-manager
synced 2024-12-27 12:19:48 +01:00
5f00024e75
This makes it possible to identify the test as big in the test file itself. It also seems like a more natural way to control the test running.
29 lines
595 B
Nix
29 lines
595 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
lib.mkIf config.test.enableBig {
|
|
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,lib}
|
|
touch "$out/bin/firefox"
|
|
chmod 755 "$out/bin/firefox"
|
|
'';
|
|
})
|
|
];
|
|
|
|
nmt.script = ''
|
|
assertFileRegex \
|
|
home-path/bin/firefox \
|
|
MOZ_APP_LAUNCHER
|
|
'';
|
|
}
|