1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 02:39:48 +01:00

tests: remove package dependencies on rofi and abook

This commit is contained in:
Robert Helgesson 2020-03-06 00:26:36 +01:00
parent 1a4c10e950
commit faa2945606
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
3 changed files with 10 additions and 1 deletions

View file

@ -6,6 +6,9 @@ with lib;
config = {
programs.abook.enable = true;
nixpkgs.overlays =
[ (self: super: { abook = pkgs.writeScriptBin "dummy-abook" ""; }) ];
nmt.script = ''
assertPathNotExists home-files/.config/abook/abookrc
'';

View file

@ -28,6 +28,9 @@ with lib;
'';
};
nixpkgs.overlays =
[ (self: super: { abook = pkgs.writeScriptBin "dummy-abook" ""; }) ];
nmt.script = ''
assertFileExists home-files/.config/abook/abookrc
assertFileContent home-files/.config/abook/abookrc ${./with-settings.cfg}

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, lib, pkgs, ... }:
with lib;
@ -20,6 +20,9 @@ with lib;
home.file.result.text = builtins.toJSON
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
nixpkgs.overlays =
[ (self: super: { rofi = pkgs.writeScriptBin "dummy-rofi" ""; }) ];
nmt.script = ''
assertFileContent \
home-files/result \