aboutsummaryrefslogtreecommitdiff
path: root/share/hm-modules/tofi.nix
diff options
context:
space:
mode:
authorMiran Bastaja <miran.bastaja04@gmail.com>2024-04-25 17:56:15 +0200
committerMiran Bastaja <miran.bastaja04@gmail.com>2024-04-25 17:56:15 +0200
commit3cadbb989c649b534c71cfdc7df7726212a7966c (patch)
tree4d39db549d798be7fcf910f258d7fc8360568720 /share/hm-modules/tofi.nix
parent88154d64372e6ca2b234e74be5dbf7f1eecc5838 (diff)
chore: update flake.lock
Removed tofi module because a compatible one was added to home-manager.
Diffstat (limited to 'share/hm-modules/tofi.nix')
-rw-r--r--share/hm-modules/tofi.nix57
1 files changed, 0 insertions, 57 deletions
diff --git a/share/hm-modules/tofi.nix b/share/hm-modules/tofi.nix
deleted file mode 100644
index 4d6dbee..0000000
--- a/share/hm-modules/tofi.nix
+++ /dev/null
@@ -1,57 +0,0 @@
-{ config, lib, pkgs, ... }:
-with lib;
-let
- cfg = config.programs.tofi;
-
- format = pkgs.formats.keyValue {
- mkKeyValue = generators.mkKeyValueDefault
- {
- mkValueString = v:
- if builtins.isBool v then
- if v then "true" else "false"
- else if builtins.isString v then
- ''"${v}"''
- else generators.mkValueStringDefault { } v;
- } "=";
- };
-
- configFile = format.generate "config" cfg.settings;
-in
-{
- options.programs.tofi = {
- enable = mkEnableOption
- "tofi - An extremely fast and simple dmenu/rofi.";
-
- package = mkOption {
- default = pkgs.tofi;
- defaultText = literalExpression "pkgs.tofi";
- type = types.package;
- example = literalExpression "pkgs.tofi";
- description = "The package to use for the tofi binaries.";
- };
-
- settings = mkOption {
- inherit (format) type;
- default = { };
- description = lib.mdDoc ''
- Tofi configuration. Refer to tofi(5) for supported values.
- '';
- example = {
- font = "Fira Code";
- font-size = "22";
-
- width = "1920";
- terminal = "kitty";
- };
- };
- };
-
- config = mkIf cfg.enable {
- home.packages = [ cfg.package ];
- xdg.configFile.tofi-config = {
- enable = true;
- target = "tofi/config";
- source = configFile;
- };
- };
-}