added comments to flake.nix

This commit is contained in:
Leyla Becker 2025-03-13 01:37:12 -05:00
parent 84c5dd7422
commit c5a0d82212

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