diff options
| author | Caroline Larimore <caroline@larimo.re> | 2025-02-04 22:48:00 -0800 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2025-04-14 18:58:45 -0700 |
| commit | 7d3017f16deba3d04bd8ddd76f2531867b3ead78 (patch) | |
| tree | 39cbe8aa3d485bbd0da84331c4bc4a1162914aee /snowfall/modules/nixos/apps/vim/default.nix | |
| parent | 6ac2d7a349292124dc17a7cd1127e0e8c4c53982 (diff) | |
migration: vim
Diffstat (limited to 'snowfall/modules/nixos/apps/vim/default.nix')
| -rw-r--r-- | snowfall/modules/nixos/apps/vim/default.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/snowfall/modules/nixos/apps/vim/default.nix b/snowfall/modules/nixos/apps/vim/default.nix new file mode 100644 index 0000000..816aeda --- /dev/null +++ b/snowfall/modules/nixos/apps/vim/default.nix @@ -0,0 +1,19 @@ +{ options, config, lib, pkgs, namespace, ... }: + +with lib; with lib.${namespace}; let + cfg = config.${namespace}.apps.vim; +in { + options.${namespace}.apps.vim = with types; { + enable = mkEnableOption "vim"; + }; + + config = mkIf cfg.enable { + environment.systemPackages = with pkgs; [ + vim + ]; + + environment.variables = { + EDITOR = "${pkgs.vim}/bin/vim"; + }; + }; +} |