diff options
| author | Arpit Chakladar <arpitchakladar@proton.me> | 2026-04-22 19:15:58 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@proton.me> | 2026-04-22 19:15:58 +0530 |
| commit | b30b88d2614cecb7826aadbf8c0aab6bd4215e82 (patch) | |
| tree | 8f4d5697ad4e48ab7de69ae3ac717192b157517a /utils/scripts.nix | |
| parent | 667cb52ab1583401742e4bcdc79321c3fcbfa2c0 (diff) | |
| download | home-manager-config-b30b88d2614cecb7826aadbf8c0aab6bd4215e82.tar.gz home-manager-config-b30b88d2614cecb7826aadbf8c0aab6bd4215e82.zip | |
added scripts to show keybindings for i3
Diffstat (limited to 'utils/scripts.nix')
| -rw-r--r-- | utils/scripts.nix | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/utils/scripts.nix b/utils/scripts.nix deleted file mode 100644 index 87639c6..0000000 --- a/utils/scripts.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ - lib, - pkgs, - config, -}: - -{ - # We define mkScript as a function that takes the context it needs - mkScript = - name: path: env: - let - # Logic inside the helper - defaultShell = - if (config.tools.zsh.enable or false) then - (lib.getExe config.programs.zsh.package) - else - "/usr/bin/env sh"; - - envVars = lib.concatStringsSep "\n" ( - lib.mapAttrsToList (n: v: "export ${n}=\"${toString v}\"") env - ); - in - pkgs.writeTextFile { - inherit name; - executable = true; - destination = "/bin/${name}"; - text = '' - #!${defaultShell} - ${envVars} - ${builtins.readFile path} - ''; - }; -} |
