diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-07-15 12:03:58 -0500 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-07-15 12:03:58 -0500 |
| commit | d2aecd69c17fa64305c07333686576152432993d (patch) | |
| tree | 2f52c7808a6cbd57ef60284947d3728a38cfab34 /tmux-tsunami/modules/hjem.nix | |
| parent | f5ef0cf848e65d4fea2be8dee7bc1c72ad67046f (diff) | |
changes.
Diffstat (limited to 'tmux-tsunami/modules/hjem.nix')
| -rw-r--r-- | tmux-tsunami/modules/hjem.nix | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/tmux-tsunami/modules/hjem.nix b/tmux-tsunami/modules/hjem.nix deleted file mode 100644 index 019eada..0000000 --- a/tmux-tsunami/modules/hjem.nix +++ /dev/null @@ -1,58 +0,0 @@ -{std, ...}: { - pkgs, - lib, - config, - ... -}: let - cfg = config.tsunami; -in { - imports = lib.filesystem.listFilesRecursive ./common; - - _module.args = { - inherit std; - tsunamiLib = { - scriptPath = f: "~/.config/tmux/scripts/${f}.sh"; - filePath = f: "~/.config/tmux/files/${f}"; - }; - }; - - files = lib.mkIf cfg.enable (lib.mkMerge [ - ( - cfg.scripts - |> builtins.mapAttrs (name: value: { - name = ".config/tmux/scripts/${name}.sh"; - value = { - text = value; - executable = true; - }; - }) - |> lib.attrValues - |> builtins.listToAttrs - ) - ( - cfg.files - |> builtins.mapAttrs (name: value: { - name = ".config/tmux/files/${name}"; - value.text = value; - }) - |> lib.attrValues - |> builtins.listToAttrs - ) - ( - cfg.confs - |> builtins.mapAttrs (name: value: { - name = ".config/tmux/conf.d/${name}.conf"; - value.text = value; - }) - |> lib.attrValues - |> builtins.listToAttrs - ) - { - ".config/tmux/tmux.conf".text = '' - run-shell "find ~/.config/tmux/conf.d -print0 | xargs -0 -n1 tmux source-file" - ''; - } - ]); - - packages = lib.optional cfg.enable pkgs.tmux; -} |
