mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
tests: remove package dependencies on rofi and abook
This commit is contained in:
parent
1a4c10e950
commit
faa2945606
3 changed files with 10 additions and 1 deletions
|
@ -6,6 +6,9 @@ with lib;
|
||||||
config = {
|
config = {
|
||||||
programs.abook.enable = true;
|
programs.abook.enable = true;
|
||||||
|
|
||||||
|
nixpkgs.overlays =
|
||||||
|
[ (self: super: { abook = pkgs.writeScriptBin "dummy-abook" ""; }) ];
|
||||||
|
|
||||||
nmt.script = ''
|
nmt.script = ''
|
||||||
assertPathNotExists home-files/.config/abook/abookrc
|
assertPathNotExists home-files/.config/abook/abookrc
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -28,6 +28,9 @@ with lib;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixpkgs.overlays =
|
||||||
|
[ (self: super: { abook = pkgs.writeScriptBin "dummy-abook" ""; }) ];
|
||||||
|
|
||||||
nmt.script = ''
|
nmt.script = ''
|
||||||
assertFileExists home-files/.config/abook/abookrc
|
assertFileExists home-files/.config/abook/abookrc
|
||||||
assertFileContent home-files/.config/abook/abookrc ${./with-settings.cfg}
|
assertFileContent home-files/.config/abook/abookrc ${./with-settings.cfg}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
|
@ -20,6 +20,9 @@ with lib;
|
||||||
home.file.result.text = builtins.toJSON
|
home.file.result.text = builtins.toJSON
|
||||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||||
|
|
||||||
|
nixpkgs.overlays =
|
||||||
|
[ (self: super: { rofi = pkgs.writeScriptBin "dummy-rofi" ""; }) ];
|
||||||
|
|
||||||
nmt.script = ''
|
nmt.script = ''
|
||||||
assertFileContent \
|
assertFileContent \
|
||||||
home-files/result \
|
home-files/result \
|
||||||
|
|
Loading…
Reference in a new issue