mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-03 23:51:03 +01:00
The former toSCFG implementation had several shortcomings which did not consider a few possibilities SCFG provides. Details were lined out in #7465. The new interface needs more verbosity, but reflects better the properties of the SCFG format. I also chose to use the names used in the [Specification]. [Specification]: https://git.sr.ht/~emersion/scfg#specification-draft
11 lines
225 B
Nix
11 lines
225 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
home.file."toscfg-empty-result.txt".text = lib.hm.generators.toSCFG { } [ ];
|
|
|
|
nmt.script = ''
|
|
assertFileContent \
|
|
home-files/toscfg-empty-result.txt \
|
|
${./toscfg-empty-result.txt}
|
|
'';
|
|
}
|