aboutsummaryrefslogtreecommitdiff
path: root/default.nix
blob: 0e8e2d55d58f29d2292206b25e8f6f211e3a23f2 (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
let
  inherit
    (import (fetchTarball {
      url = "https://github.com/fricklerhandwerk/flake-inputs/tarball/4.1";
      /*
        Update mit:

        nix-prefetch-url --unpack
      */
      sha256 = "1j57avx2mqjnhrsgq3xl7ih8v7bdhz1kj3min6364f486ys048bm";
    }))
    import-flake
    ;
  flake = import-flake { src = ./.; };
in
inputs@{
  flake-parts ? flake.inputs.flake-parts,
  ...
}:
flake-parts.lib.mkFlake
  {
    inherit (flake) inputs;
    inherit (flake) self;
  }
  (
    {
      self,
      lib,
      options,
      config,
      ...
    }:
    {
      flake.inputs = flake.inputs;
      imports =
        with lib.fileset;
        toList (
          # Alle Nix-Dateien in diesem Projekt sind Flake-Parts-Module
          difference (fileFilter (file: file.hasExt "nix") ./.) (unions [
            ./flake.nix
            ./default.nix
            ./www/framework
          ])
        )
        ++ [ flake-parts.flakeModules.modules ];
      systems = [ "x86_64-linux" ];
    }
  )