blob: ff6c2bdbf5b630d5bf686abbf26907cb41bf177e (
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
46
47
48
49
50
51
|
{
inputs = {
personal-webpage = {
url = "git+https://git.aristote.fr/about-me/webpage";
inputs.nixpkgs.follows = "/nixpkgs";
};
my-nixpkgs.url = "git+https://git.aristote.fr/nix/my-nixpkgs";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
};
outputs =
{
nixpkgs,
my-nixpkgs,
personal-webpage,
...
}:
{
nixosConfigurations =
let
system = "x86_64-linux";
commonModules = [
my-nixpkgs.nixosModules.personal
(
{ ... }:
{
nixpkgs.overlays = [
(self: _: { personal = { inherit (personal-webpage.packages."${self.system}") webpage; }; })
# TODO the order shouldn't matter, yet this overlay doesn't work
# if it comes first
my-nixpkgs.overlays.personal
];
}
)
];
in
{
hermes = nixpkgs.lib.nixosSystem {
inherit system;
modules = commonModules ++ [
./config
./config/hardware
];
};
hermes-test = nixpkgs.lib.nixosSystem {
inherit system;
modules = commonModules ++ [ ./tests/configuration.nix ];
};
};
};
}
|