-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathflake.nix
More file actions
50 lines (47 loc) · 1.41 KB
/
flake.nix
File metadata and controls
50 lines (47 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
description = "My standalone neovim configuration in nvf";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nvf = {
url = "github:notashelf/nvf";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-colors = {
url = "github:misterio77/nix-colors";
};
};
outputs =
{ self, nixpkgs, ... }@inputs:
let
inherit (nixpkgs) lib;
systems = lib.systems.flakeExposed;
pkgsFor = lib.genAttrs systems (system: import nixpkgs { inherit system; });
forEachSystem = f: lib.genAttrs systems (system: f pkgsFor.${system});
in
{
packages = forEachSystem (pkgs: rec {
default = nvf-config;
nvf-config = pkgs.callPackage ./pkgs/nvf-config.nix {
inherit inputs;
inherit (self) outputs;
colorScheme = inputs.nix-colors.colorSchemes.gruvbox-dark-medium;
};
snippets = pkgs.callPackage ./pkgs/snippets.nix { };
inspect = pkgs.writeShellApplication {
name = "nvf-inspect-config";
text = ''nvim "$(${nvf-config}/bin/nvf-print-config-path)"'';
};
});
devShells = forEachSystem (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
nixd
nixfmt-rfc-style
statix
lua-language-server
# stylua # TODO: configure (spaces instead of tabs)
];
};
});
};
}