/
flake.nix
40 lines (34 loc) · 985 Bytes
/
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
{
description = "bytes.zone infrastructure";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-23.11";
sysz = {
url = "github:joehillen/sysz";
flake = false;
};
};
outputs = inputs:
{
formatter.aarch64-darwin = inputs.nixpkgs.legacyPackages.aarch64-darwin.nixpkgs-fmt;
nixosConfigurations.gitea = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./machines/gitea
];
};
devShells = builtins.listToAttrs (map
(system:
let pkgs = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true; # for Terraform
};
in {
name = system;
value = {
default = pkgs.mkShell {
buildInputs = with pkgs; [ git terraform graphviz borgbackup pv ];
};
};
}) [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ]);
};
}