Compare commits

..

2 commits

Author SHA1 Message Date
Leyla Becker 3fdb28abef added a README.md 2025-03-13 01:38:52 -05:00
Leyla Becker c5a0d82212 added comments to flake.nix 2025-03-13 01:37:12 -05:00
2 changed files with 8 additions and 0 deletions

5
README.md Normal file
View file

@ -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

View file

@ -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;};