-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
32 lines (29 loc) · 889 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
description = "My Personal Website built on Hugo, managed by Nix";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.05";
# hugo-theme-terminal = {
# url = "github:panr/hugo-theme-terminal";
# flake = false;
# };
hugo-theme-coder = {
url = "github:luizdepra/hugo-coder";
flake = false;
};
};
outputs = { self, nixpkgs, flake-utils, hugo-theme-coder, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
name = "zoenglinghou-website";
toml = pkgs.formats.toml { };
config = toml.generate "config.toml" (import ./config.nix);
in rec {
devShell = import ./shell.nix {
inherit pkgs;
inherit config;
inherit hugo-theme-coder;
};
});
}