nixos-config/modules/vim.nix
2024-01-30 01:49:24 -05:00

12 lines
199 B
Nix

{ pkgs, ... }:
let
alias = cmd: pkgs.writeShellScriptBin cmd ''
exec nix run github:buckley310/vim -- "$@"
'';
in
{
environment.systemPackages = [
(alias "vi")
(alias "vim")
];
}