mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 15:29:07 +01:00
25 lines
626 B
Nix
25 lines
626 B
Nix
{
|
|
config,
|
|
osConfig,
|
|
modulesPath,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
imports = [ "${modulesPath}/programs/atuin.nix" ];
|
|
|
|
options.custom.programs.shell.atuin.enable = lib.mkEnableOption "";
|
|
|
|
config = lib.mkIf config.custom.programs.shell.atuin.enable {
|
|
programs.atuin = {
|
|
enable = true;
|
|
forceOverwriteSettings = true;
|
|
flags = [ "--disable-up-arrow" ];
|
|
settings = {
|
|
sync_address = "https://atuin.${osConfig.custom.networking.overlay.domain}";
|
|
key_path = pkgs.writeText "atuin-key" "3AAgzNnMicyALmrMt8ywzL/Mv3LMkEI/zKdPzLDMwCB9KCAwWsybzOrMn8zmzLZszIgMMQ==\n";
|
|
};
|
|
};
|
|
};
|
|
}
|