blob: dd9358e98367bd2ee9865e8937c604df5c461d6a (
plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
description = "kassouni.net server";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
};
outputs = inputs@{ flake-parts, nixpkgs, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
perSystem = { pkgs, ... }: {
packages = rec {
website = import ./nix/site.nix { inherit pkgs; };
cgit-theme = import ./git/theme.nix { inherit pkgs; };
default = website;
};
devShells.default = pkgs.mkShell {
packages = with pkgs; [
just
zola
];
};
formatter = pkgs.nixfmt-tree;
};
flake.nixosConfigurations.kassouni-net = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [ ./configuration.nix ];
};
};
}
|