[feat] flake: prepare for 24.05
We add an `unstable` overlay (available through `pkgs.unstable`) and pin nixpkgs to the `nixos-24.05` branch. Neovim is still kept in unstable (I want to live in the bleeding edge c:).
This commit is contained in:
parent
3d703f40df
commit
1da87b1153
5 changed files with 55 additions and 38 deletions
|
@ -17,7 +17,7 @@ in {
|
|||
(lib.optionalAttrs canSetAsDefault {defaultEditor = lib.mkDefault true;})
|
||||
(lib.optionalAttrs notStandalone {enable = lib.mkDefault true;})
|
||||
(lib.mkIf cfg.enable {
|
||||
# package = pkgs.neovim;
|
||||
package = pkgs.unstable.neovim-unwrapped;
|
||||
globals.mapleader = " ";
|
||||
# Appearance
|
||||
colorschemes.gruvbox = {
|
||||
|
@ -50,12 +50,12 @@ in {
|
|||
# Enable local configuration :h 'exrc'
|
||||
exrc = true; # safe since nvim 0.9
|
||||
};
|
||||
plugins = import ./plugins.nix {inherit lib pkgs;};
|
||||
plugins = import ./plugins.nix {inherit lib;};
|
||||
keymaps = import ./mappings.nix;
|
||||
inherit (import ./augroups.nix) autoGroups autoCmd;
|
||||
extraPlugins = let
|
||||
plugins = pkgs.vimPlugins;
|
||||
jjdescription = pkgs.callPackage ./vim-jjdescription.nix {};
|
||||
plugins = pkgs.unstable.vimPlugins;
|
||||
jjdescription = pkgs.unstable.callPackage ./vim-jjdescription.nix {};
|
||||
in [
|
||||
plugins.nui-nvim
|
||||
plugins.nvim-web-devicons
|
||||
|
@ -63,14 +63,12 @@ in {
|
|||
];
|
||||
# Formatting
|
||||
extraPackages = [
|
||||
pkgs.stylua
|
||||
pkgs.shfmt
|
||||
pkgs.taplo
|
||||
pkgs.yamlfmt
|
||||
pkgs.nixpkgs-fmt
|
||||
pkgs.alejandra
|
||||
pkgs.nixfmt-classic
|
||||
pkgs.luajitPackages.jsregexp
|
||||
pkgs.unstable.stylua
|
||||
pkgs.unstable.shfmt
|
||||
pkgs.unstable.taplo
|
||||
pkgs.unstable.yamlfmt
|
||||
pkgs.unstable.alejandra
|
||||
pkgs.unstable.luajitPackages.jsregexp
|
||||
];
|
||||
extraConfigLuaPre = ''
|
||||
-- Lua Pre Config
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
}: {
|
||||
{lib}: {
|
||||
bacon = {
|
||||
enable = true;
|
||||
settings.quickfix.enabled = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue