1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-05 01:19:46 +01:00
home-manager/tests/modules/programs/silicon/themes.nix

30 lines
690 B
Nix
Raw Normal View History

2024-05-09 16:56:36 +02:00
{ pkgs, ... }:
let themeName = "dracula";
in {
programs.silicon = {
enable = true;
themes = {
${themeName} = {
src = pkgs.fetchFromGitHub {
owner = "dracula";
repo = "sublime";
rev = "26c57ec282abcaa76e57e055f38432bd827ac34e";
sha256 = "019hfl4zbn4vm4154hh3bwk6hm7bdxbr1hdww83nabxwjn99ndhv";
};
file = "Dracula.tmTheme";
};
};
};
test.stubs.silicon = { };
nmt.script = let
themeFile = "home-files/.config/silicon/themes/${themeName}.tmTheme";
cacheFile = "home-files/.cache/silicon/themes.bin";
in ''
assertFileExists "${themeFile}"
assertFileExists "${cacheFile}"
'';
}