From 5f8cf3cd2bba050742a4d16269e08e23110f7c86 Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Tue, 16 Jul 2024 10:46:20 +0100 Subject: [PATCH] Enable atuin --- home/atuin.nix | 12 ++++++++++-- home/home.nix | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/home/atuin.nix b/home/atuin.nix index 3bf2659a..e874a90d 100644 --- a/home/atuin.nix +++ b/home/atuin.nix @@ -1,7 +1,15 @@ # Default configuration file: https://github.com/atuinsh/atuin/blob/803b2fed5ce33cd08bf0c07b376c9a3f1e88f8ba/atuin-client/config.toml#L4 { - programs.atuin = { - enable = false; + lib, + config, + ... +}: +with lib; let + cfg = config.me.atuin; +in { + options.me.atuin.enable = mkEnableOption "atuin"; + config.programs.atuin = mkIf cfg.enable { + enable = true; settings = { enter_accept = false; dialect = "uk"; diff --git a/home/home.nix b/home/home.nix index 6b5aa79e..0c16a2bd 100644 --- a/home/home.nix +++ b/home/home.nix @@ -86,6 +86,7 @@ in { me = { wallpaper = ./wallpapers/sonoma.jpg; + atuin.enable = true; font-name = "JetBrains Mono"; font-style = "Semibold"; font-size =