backup-helper/flake.nix

35 lines
774 B
Nix
Raw Permalink Normal View History

2024-06-02 19:35:28 +00:00
{
description = "OpoenGL testing";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
allSystems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
in
{
nixosModules.backup-helper = import ./backup.nix;
nixosModules.default = self.nixosModules.backup-helper;
devShells = forAllSystems ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs;
[
restic
bash
jq
curl
];
};
});
};
}