Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
61 lines (55 loc) · 1.49 KB
/
Copy pathflake.nix
File metadata and controls
61 lines (55 loc) · 1.49 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
51
52
53
54
55
56
57
58
59
60
61
{
description = "Gaming on Nix";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-compat = {
url = "github:NixOS/flake-compat";
flake = false;
};
git-hooks = {
url = "github:cachix/git-hooks.nix";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-compat.follows = "flake-compat";
};
};
};
outputs =
{ self, ... }@inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
./lib
./modules
./pkgs
./tests
./fmt-hooks.nix
];
perSystem =
{ config, pkgs, ... }:
{
formatter = pkgs.nixfmt-tree;
# Add to legacyPackages to prevent easyOverlay from including this package in the Overlay.
legacyPackages.npins = pkgs.callPackage (
let
pins = import ./npins;
in
pins.npins + "/npins.nix"
) { };
devShells.default = pkgs.mkShell {
packages = [ config.legacyPackages.npins ];
shellHook = ''
${config.pre-commit.installationScript}
'';
};
};
};
# auto-fetch deps when `nix run/shell`ing
nixConfig = {
allowInsecure = true;
extra-substituters = [ "https://nix-gaming.cachix.org" ];
extra-trusted-public-keys = [
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
];
};
}