1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-07 17:41:03 +01:00
home-manager/tests/modules/programs/zed-editor/themes/default.nix
2025-04-20 00:29:44 -05:00

25 lines
564 B
Nix

{ config, ... }:
{
programs.zed-editor = {
enable = true;
package = config.lib.test.mkStubPackage { };
themes = {
path = ./one.json;
string = builtins.readFile ./one.json;
json = builtins.fromJSON (builtins.readFile ./one.json);
};
};
nmt.script = toString (
map
(theme: ''
assertFileExists "home-files/.config/zed/themes/${theme}.json"
assertFileContent "home-files/.config/zed/themes/${theme}.json" "${./one.json}"
'')
[
"path"
"string"
"json"
]
);
}