msfjarvis.dev/flake.nix

53 lines
1.3 KiB
Nix
Raw Normal View History

2022-11-16 17:27:38 +05:30
{
description = "The source behind msfjarvis.dev";
inputs = {
2022-11-25 01:30:49 +05:30
devshell = {
url = "github:numtide/devshell";
2022-11-25 01:30:49 +05:30
inputs.nixpkgs.follows = "nixpkgs";
};
2023-01-10 01:20:38 +05:30
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
flake-utils.url = "github:numtide/flake-utils";
2022-11-16 17:27:38 +05:30
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
outputs = { self, devshell, flake-utils, nixpkgs, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
2023-04-01 12:11:32 +05:30
overlays = [ devshell.overlays.default ];
2022-11-16 17:27:38 +05:30
};
in {
devShell = pkgs.devshell.mkShell {
name = "blog-dev-shell";
bash = { interactive = ""; };
packages = with pkgs; [
git
go
hugo
2023-06-13 16:05:59 +05:30
libwebp
nodejs
yarn
2022-11-16 17:27:38 +05:30
];
2022-11-17 02:04:13 +05:30
commands = [
{
name = "dev";
category = "development";
2022-12-23 16:07:21 +05:30
command = "hugo server -D";
2022-11-17 19:55:08 +05:30
help = "Run the Hugo development server";
2022-11-17 02:04:13 +05:30
}
{
name = "build";
category = "deployment";
command = "hugo";
2022-11-17 19:55:08 +05:30
help = "Build the site";
2022-11-17 02:04:13 +05:30
}
];
2022-11-16 17:27:38 +05:30
};
});
}