diff --git a/flake.nix b/flake.nix index 52ac2bd..2498927 100644 --- a/flake.nix +++ b/flake.nix @@ -3,7 +3,8 @@ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - outputs = { self, nixpkgs }: + outputs = + { self, nixpkgs }: let allSystems = [ "x86_64-linux" @@ -11,24 +12,31 @@ "x86_64-darwin" "aarch64-darwin" ]; - forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f { - pkgs = import nixpkgs { inherit system; }; - }); + 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; - [ + devShells = forAllSystems ( + { pkgs }: + { + default = pkgs.mkShell { + packages = with pkgs; [ restic bash jq curl ]; - }; - }); + }; + } + ); }; }