1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00
home-manager/tests/modules/programs/intelli-shell/settings.nix

39 lines
988 B
Nix

{ pkgs, ... }:
{
programs.intelli-shell = {
enable = true;
settings = {
data_dir = "/home/myuser/my/custom/datadir";
check_updates = false;
logs.enabled = false;
theme = {
primary = "default";
secondary = "dim";
accent = "yellow";
comment = "italic green";
error = "dark red";
highlight = "darkgrey";
highlight_symbol = "» ";
highlight_primary = "default";
highlight_secondary = "default";
highlight_accent = "yellow";
highlight_comment = "italic green";
};
};
};
nmt.script =
let
configPath =
if pkgs.stdenv.hostPlatform.isDarwin then
"Library/Application Support/org.IntelliShell.Intelli-Shell"
else
".config/intelli-shell";
in
''
assertFileExists 'home-files/${configPath}/config.toml'
assertFileContent 'home-files/${configPath}/config.toml' \
${./config.toml}
'';
}