mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 10:49:48 +01:00
tests: update nmt
This commit is contained in:
parent
41094aa3c7
commit
ebdfa06685
8 changed files with 10 additions and 10 deletions
|
@ -10,4 +10,4 @@ before_script:
|
|||
script:
|
||||
- ./format -c
|
||||
- nix-shell . -A install
|
||||
- nix-shell --pure tests -A run.all
|
||||
- nix-shell --pure --max-jobs 10 tests -A run.all
|
||||
|
|
|
@ -7,8 +7,8 @@ let
|
|||
nmt = pkgs.fetchFromGitLab {
|
||||
owner = "rycee";
|
||||
repo = "nmt";
|
||||
rev = "4174e11107ba808b3001ede2f9f245481dfdfb2e";
|
||||
sha256 = "0vzdh7211dxmd4c3371l5b2v5i3b8rip2axk8l5xqlwddp3jiy5n";
|
||||
rev = "ae9ce0033dbd28b4774142a67369f41c11753555";
|
||||
sha256 = "1m5jqhflykya5h6s69ps6r70ffbsr6qkxdq1miqa68msshl21f9y";
|
||||
};
|
||||
|
||||
modules = import ../modules/modules.nix {
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
};
|
||||
|
||||
nmt.script = ''
|
||||
local serviceFile=home-files/.config/systemd/user/polybar.service
|
||||
serviceFile=home-files/.config/systemd/user/polybar.service
|
||||
|
||||
assertFileExists $serviceFile
|
||||
assertFileRegex $serviceFile 'X-Restart-Triggers=.*polybar\.conf'
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
[ (self: super: { sxhkd = pkgs.writeScriptBin "dummy-sxhkd" ""; }) ];
|
||||
|
||||
nmt.script = ''
|
||||
local sxhkdrc=home-files/.config/sxhkd/sxhkdrc
|
||||
sxhkdrc=home-files/.config/sxhkd/sxhkdrc
|
||||
|
||||
assertFileExists $sxhkdrc
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
};
|
||||
|
||||
nmt.script = ''
|
||||
local serviceFile=home-files/.config/systemd/user/sxhkd.service
|
||||
serviceFile=home-files/.config/systemd/user/sxhkd.service
|
||||
|
||||
assertFileExists $serviceFile
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ with lib;
|
|||
};
|
||||
|
||||
nmt.script = ''
|
||||
local serviceFile=home-files/.config/systemd/user/test-service@.service
|
||||
serviceFile=home-files/.config/systemd/user/test-service@.service
|
||||
assertFileExists $serviceFile
|
||||
assertFileContent $serviceFile ${./services-expected.conf}
|
||||
'';
|
||||
|
|
|
@ -10,7 +10,7 @@ with lib;
|
|||
};
|
||||
|
||||
nmt.script = ''
|
||||
local envFile=home-files/.config/environment.d/10-home-manager.conf
|
||||
envFile=home-files/.config/environment.d/10-home-manager.conf
|
||||
assertFileExists $envFile
|
||||
assertFileContent $envFile ${./session-variables-expected.conf}
|
||||
'';
|
||||
|
|
|
@ -13,8 +13,8 @@ with lib;
|
|||
};
|
||||
|
||||
nmt.script = ''
|
||||
local unitDir=home-files/.config/systemd/user
|
||||
local timerFile=$unitDir/test-timer.timer
|
||||
unitDir=home-files/.config/systemd/user
|
||||
timerFile=$unitDir/test-timer.timer
|
||||
|
||||
assertFileExists $timerFile
|
||||
assertFileContent $timerFile ${./timers-expected.conf}
|
||||
|
|
Loading…
Reference in a new issue