msfjarvis.dev/flake.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

66 lines
1.5 KiB
Nix
Raw Normal View History

2022-11-16 17:27:38 +05:30
{
description = "The source behind msfjarvis.dev";
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";
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
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
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;
}
];
};
});
2022-11-16 17:27:38 +05:30
}