1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-14 13:01:09 +01:00

default-specialisation: add test for default specialisation

This commit is contained in:
Weathercold 2022-10-08 16:29:46 -04:00 committed by Weathercold
parent f8429e7ed6
commit f16a27debc
3 changed files with 48 additions and 41 deletions

View file

@ -0,0 +1,10 @@
{ config, ... }: {
home.file.testfile.text = "not special";
specialisation = { test.default = true; };
nmt.script = ''
assertFileExists activate
assertFileContains activate \
"${config.specialisation.test.configuration.home.activationPackage}/activate"
'';
}

View file

@ -1 +1,4 @@
{ specialisation = ./specialisation.nix; }
{
specialisation = ./specialisation.nix;
default-specialisation = ./default-specialisation.nix;
}