mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
Rework continues
This commit is contained in:
parent
91a7234605
commit
70da3fe0b5
4 changed files with 31 additions and 7 deletions
|
|
@ -1,7 +1 @@
|
||||||
{ pkgs, lib, config, ... }:
|
{ imports = ./.; }
|
||||||
|
|
||||||
{
|
|
||||||
import = [
|
|
||||||
./.
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
|
||||||
30
modules/nvim/default.nix
Normal file
30
modules/nvim/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
let cfg = config.modules.neovim;
|
||||||
|
|
||||||
|
github-theme = pkgs.vimUtils.buildVimPlugin {
|
||||||
|
name = "github-theme";
|
||||||
|
src = pkgs.fetchFromGithub {
|
||||||
|
owner = "projekt0n";
|
||||||
|
repo = "github-nvim-theme";
|
||||||
|
rev = "62b7b54a90c70c20cd1641f9facfced46bdd3561";
|
||||||
|
sha256 = "0cwr3b5r2ac7aizxmwb3mlhdc2sh0pw670vcwps79x9jp52yrj2y";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
options.modules.neovim = { enable = mkEnableOption "neovim"; };
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
|
home.file.".config/nvim" = {
|
||||||
|
source = ./nvim;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
nil nixfmt
|
||||||
|
sumneko-lua-language-server stylua
|
||||||
|
haskell-language-server hlint
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue