vim config

This commit is contained in:
Johannes Jöns 2024-07-15 18:00:45 +02:00
parent 611796f02e
commit 189be0ee01
5 changed files with 27 additions and 0 deletions

View file

@ -74,6 +74,7 @@
outputs =
inputs@{ self, nixpkgs, ... }:
{
modules.default = import ./modules;
nixosModules.default = import ./nixos-modules;
homeManagerModules.default = import ./home-modules;
nixosConfigurations = import ./systems { inherit self inputs nixpkgs; };

7
modules/default.nix Normal file
View file

@ -0,0 +1,7 @@
{ ... }:
{
imports = [
./neovim
];
}

View file

@ -0,0 +1,16 @@
{ config, lib, ... }:
let
cfg = config.jopejoe1.neovim;
in
{
options.jopejoe1.neovim = {
enable = lib.mkEnableOption "Enable neovim";
};
config = lib.mkIf cfg.enable {
programs.nixvim = {
enable = true;
};
};
}

View file

@ -29,5 +29,7 @@
self.inputs.nixos-generators.nixosModules.all-formats
self.inputs.sops-nix.nixosModules.sops
self.inputs.catppuccin.nixosModules.catppuccin
self.inputs.nixvim.nixosModules.nixvim
self.outputs.modules.default
];
}

View file

@ -32,6 +32,7 @@
enable = true;
layout = "us";
};
neovim.enable = true;
user = {
jopejoe1.enable = true;
root.enable = true;