nixos-configs/common/home-manager/vim/default.nix

15 lines
269 B
Nix

{ lib, config, pkgs, ... }:
with lib;
let cfg = config.within.vim;
in {
options.within.vim.enable = mkEnableOption "Enables Within's vim config";
config = mkIf cfg.enable {
home.packages = with pkgs; [ vim ];
home.file.".vimrc".source = ./vimrc;
};
}