32 lines
1.1 KiB
Nix
32 lines
1.1 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-24.11";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
mfgames-project-setup.url = "git+https://src.mfgames.com/nixos-contrib/mfgames-project-setup-flake.git";
|
|
mfgames-writing-setup.url = "git+https://src.mfgames.com/nixos-contrib/mfgames-writing-setup-flake.git";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils, mfgames-project-setup, mfgames-writing-setup }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
project-config = mfgames-project-setup.lib.mkConfig {
|
|
inherit system;
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
prettier.proseWrap = "never";
|
|
};
|
|
writing-config = mfgames-writing-setup.lib.mkConfig {
|
|
inherit system;
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
};
|
|
in
|
|
{
|
|
devShell = pkgs.mkShell {
|
|
packages = [ ]
|
|
++ project-config.packages
|
|
++ writing-config.packages;
|
|
|
|
shellHook = project-config.shellHook;
|
|
};
|
|
});
|
|
}
|