1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-24 12:09:46 +01:00
home-manager/tests/modules/misc/specialization/specialization.nix

19 lines
440 B
Nix
Raw Normal View History

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