1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-05 01:19:46 +01:00
home-manager/tests/modules/misc/specialisation/specialisation.nix
2023-06-13 08:51:05 +02:00

18 lines
440 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
home.file.testfile.text = "not special";
specialisation.test.configuration = {
home.file.testfile.text = "very special";
};
nmt.script = ''
assertFileExists home-files/testfile
assertFileContains home-files/testfile "not special"
assertFileExists specialisation/test/home-files/testfile
assertFileContains specialisation/test/home-files/testfile "not special"
'';
}