[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:
Jalil David Salamé Messina 2024-06-01 16:24:05 +02:00
parent 3d703f40df
commit 1da87b1153
Signed by: jalil
GPG key ID: F016B9E770737A0B
5 changed files with 55 additions and 38 deletions

View file

@ -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

View file

@ -1,7 +1,4 @@
{
lib,
pkgs,
}: {
{lib}: {
bacon = {
enable = true;
settings.quickfix.enabled = true;