mirror of
https://github.com/nix-community/home-manager
synced 2024-11-28 15:40:42 +00:00
specialisation: add extra assertion
Assert that changes made in specialisations are effective.
This commit is contained in:
parent
f52b50b68d
commit
a54649d749
1 changed files with 1 additions and 4 deletions
|
@ -1,7 +1,3 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
home.file.testfile.text = "not special";
|
||||
specialisation.test.configuration = {
|
||||
|
@ -14,5 +10,6 @@ with lib;
|
|||
|
||||
assertFileExists specialisation/test/home-files/testfile
|
||||
assertFileContains specialisation/test/home-files/testfile "not special"
|
||||
assertFileContains specialisation/test/home-files/testfile "very special"
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue