Skip to content

Commit

Permalink
flake.lock: Update (#47)
Browse files Browse the repository at this point in the history
* flake.lock: Update

Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/c2cd2a52e02f1dfa1c88f95abeb89298d46023be?narHash=sha256-UNky3lJNGQtUEXT2OY8gMxejakSWPTfWKvpFkpFlAfM%3D' (2024-08-23)
  → 'github:nix-community/home-manager/aaebdea769a5c10f1c6e50ebdf5924c1a13f0cda?narHash=sha256-%2BHsjshXpqNiJHLaJaK0JnIicJ/a1NquKcfn4YZ3ILgg%3D' (2024-09-07)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/71e91c409d1e654808b2621f28a327acfdad8dc2?narHash=sha256-GnR7/ibgIH1vhoy8cYdmXE6iyZqKqFxQSVkFgosBh6w%3D' (2024-08-28)
  → 'github:NixOS/nixpkgs/574d1eac1c200690e27b8eb4e24887f8df7ac27c?narHash=sha256-v3rIhsJBOMLR8e/RNWxr828tB%2BWywYIoajrZKFM%2B0Gg%3D' (2024-09-06)
• Updated input 'nixvim':
    'github:nix-community/nixvim/caefb266bee301922a4cf4d4564b1b000a0a21c3?narHash=sha256-tjMrSaxGXC7JQkENchdPPxWv4gPbelPwSoPs5A5e0vU%3D' (2024-08-31)
  → 'github:nix-community/nixvim/810eacf5163b16b666ca70b6617c6a85ce412e0a?narHash=sha256-bzJ5iUPaEjSt24fIoQihBGN%2BQ7mye73hd/jbubHhyZA%3D' (2024-09-07)

* flake: fix eval with unstable

* Disable stable CI

* Fix deprecations

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sandro Jäckel <[email protected]>
  • Loading branch information
3 people authored Sep 10, 2024
1 parent 4aae65f commit 0bd3701
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 30 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/flake-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ jobs:

- uses: cachix/install-nix-action@V27

- name: build stable
if: matrix.target == 'stable'
run: |
nix build -L \
--override-input nixpkgs github:NixOS/nixpkgs/nixos-24.05 \
--override-input home-manager github:nix-community/home-manager/release-24.05 \
--override-input nixvim github:nix-community/nixvim/nixos-24.05
# TODO: bring back with 24.11
# - name: build stable
# if: matrix.target == 'stable'
# run: |
# nix build -L \
# --override-input nixpkgs github:NixOS/nixpkgs/nixos-24.05 \
# --override-input home-manager github:nix-community/home-manager/release-24.05 \
# --override-input nixvim github:nix-community/nixvim/nixos-24.05

- name: build unstable
if: matrix.target != 'stable'
Expand Down
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@
package = pkgs.callPackage ./pkgs/angular-language-server { };
};

mkLsp = import "${nixvim.outPath}/plugins/lsp/language-servers/_mk-lsp.nix";
mkLsp = args: import "${nixvim.outPath}/plugins/lsp/language-servers/_mk-lsp.nix" (args // {
package = nixpkgs.lib.mkOption {
default = args.package;
type = with nixpkgs.lib.types; nullOr package;
description = "Which package to use for ${args.name}.";
};
});

mkModules = { config, lib, pkgs }: [
./modules/nixos.nix
Expand All @@ -41,7 +47,7 @@
};

config.programs.nixvim = lib.mkMerge [
(mkLsp { inherit config lib pkgs; } (angularLsp { inherit pkgs; }))
(mkLsp (angularLsp { inherit pkgs; }))
{
# this unfortunately needs to be here as we cannot access the nixos options inside of nixvim
extraPackages = map (let
Expand Down Expand Up @@ -82,7 +88,7 @@
nixvimWithOptions = { pkgs, options ? { } } : nixvim.legacyPackages.${system}.makeNixvimWithModule {
module = { config, lib, pkgs, ... }: {
imports = [
(mkLsp { inherit config lib pkgs; } (angularLsp { inherit pkgs; }))
(mkLsp (angularLsp { inherit pkgs; }))
./modules
options
];
Expand Down
2 changes: 1 addition & 1 deletion modules/cmp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ in

luasnip = {
enable = true;
extraConfig = {
settings = {
region_check_events = "CursorHold,InsertLeave";
# those are for removing deleted snippets, also a common problem
delete_check_events = "TextChanged,InsertEnter";
Expand Down
24 changes: 14 additions & 10 deletions modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,21 @@
lastplace.enable = true;
lualine = {
enable = true;
globalstatus = true;
# https://github.com/nvim-lualine/lualine.nvim?tab=readme-ov-file#filename-component-options
sections = {
lualine_b = [ {
extraConfig.sources = [ "nvim_diagnostic" "nvim_lsp" ];
} ];
lualine_c = [ {
extraConfig.path = 1;
} ];
settings = {
options = {
globalstatus = true;
theme = "onedark";
};
# https://github.com/nvim-lualine/lualine.nvim?tab=readme-ov-file#filename-component-options
sections = {
lualine_b = [ {
sources = [ "nvim_diagnostic" "nvim_lsp" ];
} ];
lualine_c = [ {
path = 1;
} ];
};
};
theme = "onedark";
};
nvim-autopairs.enable = true; # brackets, html, ...
nvim-colorizer.enable = true;
Expand Down

0 comments on commit 0bd3701

Please sign in to comment.