-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
61 lines (54 loc) · 1.5 KB
/
Copy pathflake.nix
File metadata and controls
61 lines (54 loc) · 1.5 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 = "A declarative DNS server";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-25.05";
flake-parts.url = "github:hercules-ci/flake-parts";
gomod2nix = {
url = "github:nix-community/gomod2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
templ.url = "github:a-h/templ";
};
outputs = inputs @ {
flake-parts,
nixpkgs,
gomod2nix,
templ,
...
}:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = ["x86_64-linux" "aarch64-darwin" "x86_64-darwin" "aarch64-linux"];
perSystem = {
pkgs,
system,
...
}: {
# https://templ.guide/quick-start/installation#nix
packages = rec {
default = pkgs.callPackage ./algae.nix {
inherit (gomod2nix.legacyPackages.${system}) buildGoApplication;
inherit (inputs.templ.packages.${system}) templ;
};
algae = default;
};
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
air
go
gopls
gotools
go-tools
gomod2nix.packages.${system}.default
templ.packages.${system}.templ
tailwindcss_4
just
];
ALGAE_ALLOWED_ORIGINS = "http://localhost:2152";
ALGAE_DOMAIN = "as215207.net";
ALGAE_TEST_V6="2602:fbcf:df::1";
ALGAE_LOCATION = "New York City, NY, USA";
};
formatter = pkgs.alejandra;
};
};
}