specialisation: add extra assertion

Assert that changes made in specialisations are effective.
This commit is contained in:
Weathercold 2022-10-08 16:30:03 -04:00
parent f52b50b68d
commit a54649d749
No known key found for this signature in database
GPG key ID: 059102E35214D867

View file

@ -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"
'';
}