about summary refs log tree commit diff
path: root/users/fcuny/blog/flake.nix
blob: 59ef578e2b2c8d63ee428457900fbabe55c2c3a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  description = "Franck Cuny's personal website.";

  inputs = { nixpkgs.url = "github:nixos/nixpkgs"; };

  outputs = { self, nixpkgs }:
    let pkgs = nixpkgs.legacyPackages.x86_64-linux;
    in {
      defaultApp.x86_64-linux = self.apps.server;
      apps.server = pkgs.writers.writeBashBin "server" ''
        set -e
        set -o pipefail
        PATH=${pkgs.lib.makeBinPath [ pkgs.hugo pkgs.git ]}
        hugo server
      '';
      devShell.x86_64-linux =
        pkgs.mkShell { buildInputs = with pkgs; [ hugo flyctl git ]; };
    };
}