Added vim as a module

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

No files matched your search

+1 -2
View File
@@ -39,11 +39,9 @@
environment.pathsToLink = [ "/libexec" ]; environment.pathsToLink = [ "/libexec" ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
curl curl
git
htop htop
pciutils pciutils
psmisc psmisc
vim
]; ];
# - Modules ------------------------------------ # - Modules ------------------------------------
@@ -53,6 +51,7 @@
samfelag.modules = { samfelag.modules = {
shell.utils.enable = true; shell.utils.enable = true;
shell.zsh.enable = true; shell.zsh.enable = true;
editors.vim.enable = true;
dev.git.enable = true; dev.git.enable = true;
# May go away from common if not all hosts use it # May go away from common if not all hosts use it
+15
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
];
};
}