1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-27 20:29:47 +01:00
home-manager/tests/modules/programs/sagemath/sagemath.nix

21 lines
406 B
Nix
Raw Normal View History

2021-12-30 12:47:44 +01:00
{ config, ... }:
{
programs.sagemath = {
enable = true;
configDir = "${config.xdg.configHome}/sage";
dataDir = "${config.xdg.dataHome}/sage";
initScript = ''
%colors linux
'';
};
test.stubs.sage = { };
nmt.script = ''
assertFileExists home-files/.config/sage/init.sage
assertFileContent home-files/.config/sage/init.sage \
${./init-expected.sage}
'';
}