Added vim as a module

This commit is contained in:
marc
2022-11-19 15:54:57 +01:00
parent bba4b6028e
commit 4fc20b6d4f
2 changed files with 16 additions and 2 deletions

15
modules/editors/vim.nix Normal file
View File

@@ -0,0 +1,15 @@
{ config, lib, pkgs, ... }:
let
cfg = config.samfelag.modules.editors.vim;
in
{
options.samfelag.modules.editors.vim = {
enable = lib.mkEnableOption "vim";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
vim
];
};
}