mirror of
https://github.com/msfjarvis/msfjarvis.dev.git
synced 2024-06-03 04:18:56 +05:30
Harsh Shandilya
3be64ba51c
Flake lock file updates: • Updated input 'devshell': 'github:numtide/devshell/2cf83bb31720fcc29a999aee28d6da101173e66a' (2023-06-19) → 'github:numtide/devshell/3864857b2754ab0e16c7c7c626f0e5a1d4e42f38' (2023-06-28) • Updated input 'devshell/systems': 'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09) → follows 'systems' • Updated input 'flake-compat': 'github:edolstra/flake-compat/35bb57c0c8d8b62bbfd284272c928ceb64ddbde9' (2023-01-17) → 'github:nix-community/flake-compat/8bf105319d44f6b9f0d764efa4fdef9f1cc9ba1c' (2023-06-29) • Updated input 'flake-utils': 'github:numtide/flake-utils/abfb11bd1aec8ced1c9bb9adfe68018230f4fb3c' (2023-06-19) → 'github:numtide/flake-utils/dbabf0ca0c0c4bce6ea5eaf65af5cb694d2082c7' (2023-06-25) • Updated input 'flake-utils/systems': 'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09) → follows 'systems' • Updated input 'nixpkgs': 'github:nixos/nixpkgs/3d8a93602bc54ece7a4e689d9aea1a574e2bbc24' (2023-06-23) → 'github:NixOS/nixpkgs/3c614fbc76fc152f3e1bc4b2263da6d90adf80fb' (2023-06-30) • Added input 'systems': 'github:msfjarvis/flake-systems/7876462a5f60841e8b2712ad20dc18470f448e8d' (2023-06-25)
54 lines
1.5 KiB
Nix
54 lines
1.5 KiB
Nix
{
|
|
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";
|
|
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";
|
|
|
|
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
|
|
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";
|
|
}
|
|
];
|
|
};
|
|
});
|
|
}
|