summaryrefslogtreecommitdiff
path: root/flake.nix
blob: cd0efaf0d3d74cc31b3964aa733c95c789e7445d (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
{
  inputs = {
    my-nixpkgs.url = "github:qaristote/my-nixpkgs";
    nixpkgs.url = "github:NixOS/nixpkgs/release-24.05";
  };

  outputs = {
    nixpkgs,
    my-nixpkgs,
    ...
  }: {
    nixosConfigurations = let
      system = "x86_64-linux";
      commonModules = [
        my-nixpkgs.nixosModules.personal
        ({...}: {
          nixpkgs.overlays = [
            my-nixpkgs.overlays.personal
          ];
        })
      ];
    in {
      hephaistos = nixpkgs.lib.nixosSystem {
        inherit system;
        modules =
          commonModules
          ++ [./config ./config/hardware-configuration.nix];
      };
      hephaistos-test = nixpkgs.lib.nixosSystem {
        inherit system;
        modules = commonModules ++ [./tests/configuration.nix];
      };
    };
  };
}