From c5a0d822128a0801146aa5a7ff7250d9e70f5eb2 Mon Sep 17 00:00:00 2001 From: Leyla Becker Date: Thu, 13 Mar 2025 01:37:12 -0500 Subject: [PATCH 1/2] added comments to flake.nix --- flake.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flake.nix b/flake.nix index 2b23bf9..a421942 100644 --- a/flake.nix +++ b/flake.nix @@ -18,6 +18,7 @@ forEachSystem = nixpkgs.lib.genAttrs systems; forEachPkgs = lambda: forEachSystem (system: lambda (pkgsFor system)); in { + # development tooling devShells = forEachPkgs (pkgs: { default = pkgs.mkShell { packages = with pkgs; [ @@ -31,6 +32,7 @@ }; }); + # library contents nixosModules.default = self.nixosModules.syncthing; nixosModules.syncthing = import ./lib/nixos-module.nix; @@ -49,6 +51,7 @@ ); }; + # example configuration nixosConfigurations = { default = nixpkgs.lib.nixosSystem { specialArgs = {inherit self;}; From 3fdb28abef875195b02669ed10200a427846590d Mon Sep 17 00:00:00 2001 From: Leyla Becker Date: Thu, 13 Mar 2025 01:38:52 -0500 Subject: [PATCH 2/2] added a README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..f1be84d --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# Nix-Syncthing + +Helper flake for configuring syncthing across multiple systems. + +Check out the `nixosConfigurations` and `syncthingConfiguration` outputs of `flake.nix` as well as the contents of the `example` folder to see how to use it \ No newline at end of file