diff --git a/flake.lock b/flake.lock index 10ec6aae..3a74a23a 100644 --- a/flake.lock +++ b/flake.lock @@ -170,11 +170,11 @@ ] }, "locked": { - "lastModified": 1711915616, - "narHash": "sha256-co6LoFA+j6BZEeJNSR8nZ4oOort5qYPskjrDHBaJgmo=", + "lastModified": 1714679908, + "narHash": "sha256-KzcXzDvDJjX34en8f3Zimm396x6idbt+cu4tWDVS2FI=", "owner": "nix-community", "repo": "home-manager", - "rev": "820be197ccf3adaad9a8856ef255c13b6cc561a6", + "rev": "9036fe9ef8e15a819fa76f47a8b1f287903fb848", "type": "github" }, "original": { diff --git a/modules/tofi/hm.nix b/modules/tofi/hm.nix new file mode 100644 index 00000000..a16a196c --- /dev/null +++ b/modules/tofi/hm.nix @@ -0,0 +1,34 @@ +{ + config, + lib, + ... +}: +with config.stylix.fonts; +with config.lib.stylix.colors.withHashtag; { + options.stylix.targets.tofi.enable = + config.lib.stylix.mkEnableTarget "Tofi" true; + + config = lib.mkIf config.stylix.targets.tofi.enable { + programs.tofi.settings = let + background = base00; + foreground = base05; + darkForeground = base04; + selection = base03; + in { + font = monospace.name; + font-size = toString sizes.popups; + + background-color = background; + outline-color = darkForeground; + border-color = foreground; + text-color = foreground; + prompt-color = base0A; + prompt-background = background; + placeholder-color = selection; + input-background = background; + default-result-background = background; + selection-color = selection; + selection-background = background; + }; + }; +}