mirror of
https://github.com/nix-community/home-manager
synced 2024-11-13 22:59:44 +01:00
21 lines
406 B
Nix
21 lines
406 B
Nix
|
{ 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}
|
||
|
'';
|
||
|
}
|