Files
scribe/flake.nix
Sashanoraa 5d33b071b0 Add Nix package and NixOS moodule
Add a Scribe Nix package and NixOS module to the flake that a user can
build and install.

Includes the following supporting changes:
- Adding a name and version to package.json to make Nix's mkYarnPackage
  happy
- Update laravel-mix to fix ERR_OSSL_EVP_UNSUPPORTED on newer nodejs
  versions
2023-12-04 14:41:05 -05:00

22 lines
523 B
Nix

{
description = "Scribe";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem
(system:
let pkgs = nixpkgs.legacyPackages.${system};
in
{
devShell = import ./shell.nix { inherit pkgs; };
packages.default = pkgs.callPackage ./default.nix { };
})
// {
nixosModules.default = import ./module.nix self;
};
}