added comments to flake.nix
This commit is contained in:
parent
84c5dd7422
commit
c5a0d82212
|
@ -18,6 +18,7 @@
|
||||||
forEachSystem = nixpkgs.lib.genAttrs systems;
|
forEachSystem = nixpkgs.lib.genAttrs systems;
|
||||||
forEachPkgs = lambda: forEachSystem (system: lambda (pkgsFor system));
|
forEachPkgs = lambda: forEachSystem (system: lambda (pkgsFor system));
|
||||||
in {
|
in {
|
||||||
|
# development tooling
|
||||||
devShells = forEachPkgs (pkgs: {
|
devShells = forEachPkgs (pkgs: {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
@ -31,6 +32,7 @@
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
# library contents
|
||||||
nixosModules.default = self.nixosModules.syncthing;
|
nixosModules.default = self.nixosModules.syncthing;
|
||||||
nixosModules.syncthing = import ./lib/nixos-module.nix;
|
nixosModules.syncthing = import ./lib/nixos-module.nix;
|
||||||
|
|
||||||
|
@ -49,6 +51,7 @@
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# example configuration
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
default = nixpkgs.lib.nixosSystem {
|
default = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {inherit self;};
|
specialArgs = {inherit self;};
|
||||||
|
|
Loading…
Reference in a new issue