-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
49 lines (45 loc) · 1.22 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
45
46
47
48
49
{
description = "zorg";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
openzfs-osx-shim-nix.url = "github:mikroskeem/openzfs-osx-shim-nix";
openzfs-osx-shim-nix.inputs.nixpkgs.follows = "nixpkgs";
openzfs-osx-shim-nix.inputs.flake-utils.follows = "flake-utils";
};
outputs = { self, nixpkgs, flake-utils, openzfs-osx-shim-nix }:
let
supportedSystems = [
"aarch64-linux"
"aarch64-darwin"
"x86_64-linux"
"x86_64-darwin"
];
in
flake-utils.lib.eachSystem supportedSystems (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [
openzfs-osx-shim-nix.overlay
];
};
inherit (pkgs) lib;
in
rec {
devShell = (pkgs.mkShell.override { stdenv = pkgs.stdenvNoCC; }) {
buildInputs = with pkgs; [
bindfs
borgbackup
gnupg
rage
(sanoid.override (lib.optionalAttrs stdenv.isDarwin {
mbuffer = null; # does not compile
}))
shellcheck
sops
zfs
];
};
});
}