nix-community.nixvim/flake.nix

66 lines
1.7 KiB
Nix
Raw Normal View History

2020-12-30 01:05:51 +00:00
{
description = "A neovim configuration system for NixOS";
inputs.nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
inputs.neovim-nightly.url = github:nix-community/neovim-nightly-overlay;
outputs = { self, nixpkgs, ... }@inputs: rec {
overlays = [
inputs.neovim-nightly.overlay
];
2021-02-09 00:03:28 +00:00
nixosModules.nixvim = import ./nixvim.nix { nixos = true; };
homeManagerModules.nixvim = import ./nixvim.nix { homeManager = true; };
nixOnDroidModules.nixvim = import ./nixvim.nix { nixOnDroid = true; };
2020-12-30 01:05:51 +00:00
# This is a simple container for testing
nixosConfigurations.container = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
({ pkgs, ... }: {
boot.isContainer = true;
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
users.users.test = {
isNormalUser = true;
password = "";
};
imports = [
nixosModules.nixvim
];
nixpkgs.overlays = [ inputs.neovim-nightly.overlay ];
programs.nixvim = {
enable = true;
package = pkgs.neovim-nightly;
2021-02-10 14:49:33 +00:00
colorschemes.base16 = {
2021-01-17 22:15:54 +00:00
enable = true;
2021-02-10 14:49:33 +00:00
colorscheme = "ocean";
2021-01-17 22:15:54 +00:00
};
2020-12-30 01:05:51 +00:00
2021-01-05 11:26:49 +00:00
options.number = true;
2021-01-05 16:11:56 +00:00
maps.normalVisualOp."ç" = ":";
2021-01-05 11:26:49 +00:00
plugins.airline = {
enable = true;
powerline = true;
};
2021-01-07 16:06:39 +00:00
plugins.gitgutter.enable = true;
2021-02-01 15:54:53 +00:00
plugins.lsp = {
enable = true;
servers.clangd.enable = true;
};
2021-02-01 16:40:07 +00:00
plugins.treesitter.enable = true;
2020-12-30 01:05:51 +00:00
};
})
];
};
};
}