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 c00a3920ce
commit 732ec18009
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"
'';
}