From 8722afe2c8ff91c6ecf6e3c249c4dc667a260574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Mon, 27 Jan 2025 22:35:16 +0100 Subject: [PATCH] Format flake.nix --- flake.nix | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) 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 ]; - }; - }); + }; + } + ); }; }