Skip to content

Commit

Permalink
treewide: migrate to new standalone nixvim design
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Jan 20, 2025
1 parent f7a2a0c commit c8aabee
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 42 deletions.
18 changes: 0 additions & 18 deletions flake/checks.nix

This file was deleted.

6 changes: 3 additions & 3 deletions flake/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
}:
{
imports = [
./checks.nix
./devshell.nix
./git-hooks.nix
./nixvim.nix
./overlays.nix
./pkgs-by-name.nix
./treefmt.nix
];

perSystem =
{
self',
config,
system,
...
}:
Expand All @@ -27,6 +27,6 @@
config.allowUnfree = true;
};

packages.default = self'.packages.khanelivim;
packages.default = config.packages.khanelivim;
};
}
44 changes: 44 additions & 0 deletions flake/nixvim.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
inputs,
lib,
self,
...
}:
{
imports = [
inputs.nixvim.flakeModules.default
];

nixvim = {
packages = {
enable = true;
nameFunction = lib.id;
};
checks = {
enable = true;
nameFunction = lib.id;
};
};

flake.nixvimModules = {
default = ../modules/nixvim;
};

perSystem =
{ system, ... }:
{
nixvimConfigurations = {
khanelivim = inputs.nixvim.lib.evalNixvim {
inherit system;

extraSpecialArgs = {
inherit inputs system self;
};

modules = [
self.nixvimModules.default
];
};
};
};
}
7 changes: 6 additions & 1 deletion modules/nixvim/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, ... }:
{ lib, self, ... }:
let
inherit (builtins) readDir;
inherit (lib.attrsets) foldlAttrs;
Expand All @@ -22,4 +22,9 @@ in
./performance.nix
./usercommands.nix
];

nixpkgs = {
overlays = lib.attrValues self.overlays;
config.allowUnfree = true;
};
}
20 changes: 0 additions & 20 deletions packages/khanelivim/package.nix

This file was deleted.

0 comments on commit c8aabee

Please sign in to comment.