blob: 75732a6c2d3f502ff0c76810a119459f1f0d46ad (
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 = "hwebs' NixOS configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
discidurl.url = "git+https://git.hwebs.info/discidurl?ref=main";
discidurl.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
{ self, nixpkgs, ... }@inputs:
let
# A machine is common/ + its own machines/<name> module, plus any extra
# inline modules (e.g. per-machine overlays).
mkMachine =
machineModule: extraModules:
nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
./common
machineModule
]
++ extraModules;
};
in
{
nixosConfigurations = {
kusanagi = mkMachine ./machines/kusanagi [
{
nixpkgs.overlays = [
(import ./overlays/haunt.nix)
inputs.discidurl.overlays.default
];
}
];
enzo = mkMachine ./machines/enzo [ ];
};
};
}
|