Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Jan 19, 2025
1 parent fe2ae6c commit 0c18340
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 52 deletions.
18 changes: 0 additions & 18 deletions flake-modules/checks.nix

This file was deleted.

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

perSystem =
{
self',
system,
...
}:
Expand All @@ -27,7 +26,5 @@
overlays = lib.attrValues self.overlays;
config.allowUnfree = true;
};

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

nixvim = {
packages.enable = true;
checks.enable = true;
};

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

perSystem =
{ config, system, ... }:
{
nixvimConfigurations = {
default = inputs.nixvim.lib.evalNixvim {
inherit system;
modules = [
self.nixvimModules.default
];
};
};

packages = {
# Lets you start nixvim using `nix run`
default = config.packages.nixvim-default;
};
};
}
11 changes: 6 additions & 5 deletions flake.lock

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

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
nix-darwin.url = "github:LnL7/nix-darwin";
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixvim.url = "github:nix-community/nixvim";
nixvim.url = "github:MattSturgeon/nixvim/template/evalNixvim";
pkgs-by-name-for-flake-parts.url = "github:drupol/pkgs-by-name-for-flake-parts";
treefmt-nix.url = "github:numtide/treefmt-nix";

Expand Down
4 changes: 0 additions & 4 deletions modules/nixvim/default.nix

This file was deleted.

20 changes: 0 additions & 20 deletions packages/khanelivim/package.nix

This file was deleted.

0 comments on commit 0c18340

Please sign in to comment.