-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
44 lines (39 loc) · 1.01 KB
/
flake.nix
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
{
description = "Development flake for Gize";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
};
outputs =
{ nixpkgs, ... }:
let
x86 = "x86_64-linux";
pkgs = nixpkgs.legacyPackages."${x86}";
in
{
devShells."${x86}".default = pkgs.mkShellNoCC {
packages = with pkgs; [
# Golang
go
golangci-lint
# Formatters
treefmt
beautysh
mdformat
yamlfmt
jsonfmt
deadnix
nixfmt-rfc-style
];
shellHook = ''
git config --local core.hooksPath .githooks/
'';
# Environment Variables
GIZE_ROOT = "./..";
GIZE_TITLE = "Gize (dev)";
GIZE_DESCRIPTION = "You local Git repository browser (dev)";
GIZE_FOOTER = "Made with ❤️ and published on <a href='https://github.com/MasterEvarior/gize'>GitHub</a> (dev)";
GIZE_PORT = ":8080";
GIZE_ENABLE_DOWNLOAD = "true";
};
};
}