2022-11-16 17:27:38 +05:30
|
|
|
{
|
|
|
|
description = "The source behind msfjarvis.dev";
|
|
|
|
|
2023-07-01 20:30:41 +05:30
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
|
|
|
|
|
|
inputs.systems.url = "github:msfjarvis/flake-systems";
|
|
|
|
|
|
|
|
inputs.devshell.url = "github:numtide/devshell";
|
|
|
|
inputs.devshell.inputs.nixpkgs.follows = "nixpkgs";
|
2024-01-19 13:11:00 +05:30
|
|
|
inputs.devshell.inputs.flake-utils.follows = "flake-utils";
|
2023-07-01 20:30:41 +05:30
|
|
|
|
|
|
|
inputs.flake-compat.url = "github:nix-community/flake-compat";
|
|
|
|
inputs.flake-compat.flake = false;
|
|
|
|
|
|
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
inputs.flake-utils.inputs.systems.follows = "systems";
|
2022-11-16 17:27:38 +05:30
|
|
|
|
2023-07-06 18:06:57 +05:30
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
devshell,
|
|
|
|
flake-utils,
|
|
|
|
nixpkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
flake-utils.lib.eachDefaultSystem (system: let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [devshell.overlays.default];
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
devShell = pkgs.devshell.mkShell {
|
|
|
|
name = "blog-dev-shell";
|
|
|
|
bash = {interactive = "";};
|
|
|
|
packages = with pkgs; [
|
|
|
|
git
|
|
|
|
go
|
|
|
|
hugo
|
2024-02-05 23:35:19 +05:30
|
|
|
hyperlink
|
2023-07-06 18:06:57 +05:30
|
|
|
libwebp
|
|
|
|
nodejs
|
|
|
|
yarn
|
|
|
|
];
|
|
|
|
commands = [
|
|
|
|
{
|
|
|
|
name = "dev";
|
|
|
|
category = "development";
|
|
|
|
command = "hugo server -D";
|
|
|
|
help = "Run the Hugo development server";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "build";
|
|
|
|
category = "deployment";
|
|
|
|
command = "hugo";
|
|
|
|
help = "Build the site";
|
|
|
|
}
|
|
|
|
];
|
2024-03-31 21:51:45 +05:30
|
|
|
env = [
|
|
|
|
{
|
|
|
|
name = "DEVSHELL_NO_MOTD";
|
|
|
|
value = 1;
|
|
|
|
}
|
|
|
|
];
|
2023-07-06 18:06:57 +05:30
|
|
|
};
|
|
|
|
});
|
2022-11-16 17:27:38 +05:30
|
|
|
}
|