mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2024-12-29 17:36:33 +01:00
vim config
This commit is contained in:
parent
611796f02e
commit
189be0ee01
5 changed files with 27 additions and 0 deletions
|
@ -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
7
modules/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./neovim
|
||||
];
|
||||
}
|
16
modules/neovim/default.nix
Normal file
16
modules/neovim/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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
|
||||
];
|
||||
}
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
enable = true;
|
||||
layout = "us";
|
||||
};
|
||||
neovim.enable = true;
|
||||
user = {
|
||||
jopejoe1.enable = true;
|
||||
root.enable = true;
|
||||
|
|
Loading…
Reference in a new issue