add dev module
This commit is contained in:
parent
aa19dcab9d
commit
85eedcf04d
2 changed files with 26 additions and 0 deletions
5
modules/dev/default.nix
Normal file
5
modules/dev/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./nvim
|
||||||
|
];
|
||||||
|
}
|
21
modules/dev/editors/nvim/default.nix
Normal file
21
modules/dev/editors/nvim/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue