-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
27 lines (24 loc) · 935 Bytes
/
Copy pathflake.nix
File metadata and controls
27 lines (24 loc) · 935 Bytes
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
{
description = "Exposes a home-manager module that installs the language servers and tools required by this nvim setup.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, ... }:
let
systems = [ "x86_64-linux" "aarch64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs systems;
in {
homeManagerModules.default = import ./module.nix;
# `nix profile install <this-flake>` or `nix shell <this-flake>` puts the
# same package set as the home-manager module on PATH, without touching
# the system config. Useful for testing locally before wiring the module
# into the system flake.
packages = forAllSystems (system:
let pkgs = nixpkgs.legacyPackages.${system}; in {
default = pkgs.buildEnv {
name = "nvim-tooling";
paths = import ./packages.nix pkgs;
};
});
};
}