add dev module

This commit is contained in:
Sakooooo 2023-07-09 01:15:18 +03:00
parent aa19dcab9d
commit 85eedcf04d
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 26 additions and 0 deletions

5
modules/dev/default.nix Normal file
View file

@ -0,0 +1,5 @@
{
imports = [
./nvim
];
}

View file

@ -0,0 +1,21 @@
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.dev.editors.nvim;
in
{
options.modules.dev.editors.nvim = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
# because yes
environment.systemPackages = with pkgs; [
neovim
];
home-manager.users.sako.xdg.configFile.nvim = {
source = ../../../../config/nvim;
recursive = true;
};
};
}