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:
parent
f8429e7ed6
commit
f16a27debc
3 changed files with 48 additions and 41 deletions
10
tests/modules/misc/specialisation/default-specialisation.nix
Normal file
10
tests/modules/misc/specialisation/default-specialisation.nix
Normal 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"
|
||||
'';
|
||||
}
|
||||
|
|
@ -1 +1,4 @@
|
|||
{ specialisation = ./specialisation.nix; }
|
||||
{
|
||||
specialisation = ./specialisation.nix;
|
||||
default-specialisation = ./default-specialisation.nix;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue