nixos-config/modules/vim.nix

13 lines
199 B
Nix
Raw Normal View History

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