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