summaryrefslogtreecommitdiff
path: root/flake.nix
blob: 47ed1adf5dd1293cf1303c860b486d6941344d41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  description = "OpenRC flake";

  outputs = { self, nixpkgs, flake-utils }:
    let
      flakelib = flake-utils.lib;
    in {
      overlay = final: prev: import ./pkgs { nixpkgs = prev; };
      nixosModules = import ./nixos;
      nixosModule = {
        imports = builtins.attrValues self.nixosModules;
        nixpkgs.overlays = [ self.overlay ];
      };
    } // flakelib.eachDefaultSystem (system: {
      packages = import nixpkgs {
        inherit system;
        overlays = [ self.overlay ];
        crossOverlays = [ self.overlay ];
      };
    });
}