From 85eedcf04de8a03bd616467774fb5858eb7e5848 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 9 Jul 2023 01:15:18 +0300 Subject: [PATCH] add dev module --- modules/dev/default.nix | 5 +++++ modules/dev/editors/nvim/default.nix | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 modules/dev/default.nix create mode 100644 modules/dev/editors/nvim/default.nix diff --git a/modules/dev/default.nix b/modules/dev/default.nix new file mode 100644 index 00000000..36045662 --- /dev/null +++ b/modules/dev/default.nix @@ -0,0 +1,5 @@ +{ + imports = [ + ./nvim + ]; +} diff --git a/modules/dev/editors/nvim/default.nix b/modules/dev/editors/nvim/default.nix new file mode 100644 index 00000000..4bbbc753 --- /dev/null +++ b/modules/dev/editors/nvim/default.nix @@ -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; + }; + }; +}