diff --git a/home-manager/home.nix b/home-manager/home.nix index 412f7c5..297693e 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -25,6 +25,7 @@ ./modules/alacritty.nix ./modules/newsboat.nix ./modules/helix.nix + ./modules/tofi.nix ]; # My packages diff --git a/home-manager/modules/confs/tofi b/home-manager/modules/confs/tofi new file mode 100644 index 0000000..d051a91 --- /dev/null +++ b/home-manager/modules/confs/tofi @@ -0,0 +1,22 @@ +anchor = top +width = 100% +height = 28 +horizontal = true +font-size = 12 +prompt-text = "Run: " +font = CaskaydiaCove Nerd Font +history = false +require-match = false +terminal = alacritty +outline-width = 0 +border-width = 0 +min-input-width = 120 +result-spacing = 15 +padding-top = 4 +padding-bottom = 0 +padding-left = 5 +padding-right = 5 +text-color = #c6d0f5 +prompt-color = #e78284 +selection-color = #e5c890 +background-color = #303446 diff --git a/home-manager/modules/tofi.nix b/home-manager/modules/tofi.nix new file mode 100644 index 0000000..4217549 --- /dev/null +++ b/home-manager/modules/tofi.nix @@ -0,0 +1,15 @@ +{ inputs, pkgs, ... }: +{ + # Install tofi + home.packages = with pkgs; [ + tofi + (writeShellScriptBin "tofi-pass" '' + tofi --hide-input true --prompt-text 'Password: ' --require-match false --hidden-character '.' < /dev/null + '') + ]; + + # Setup my config file + home.file = { + ".config/tofi/config".source = ./confs/tofi; + }; +}