mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
22 lines
433 B
Nix
22 lines
433 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
userCfg = config.users.foo-dogsquared;
|
|
cfg = userCfg.programs.nixvim;
|
|
in
|
|
{
|
|
options.users.foo-dogsquared.programs.nixvim.enable =
|
|
lib.mkEnableOption "NixVim setup";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.nixvim = {
|
|
enable = true;
|
|
imports =
|
|
[
|
|
./note-taking.nix
|
|
]
|
|
++ lib.optional userCfg.setups.development.enable ./lsp.nix;
|
|
};
|
|
};
|
|
}
|