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";
|
|
|
|
inputs.devshell.inputs.systems.follows = "systems";
|
|
|
|
|
|
|
|
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;
|
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";
|
2022-11-17 21:20:51 +05:30
|
|
|
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
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|