Skip to content

Commit fe4461f

Browse files
complete data model migration to the module system
1 parent 612e6de commit fe4461f

3 files changed

Lines changed: 15 additions & 22 deletions

File tree

default.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ rec {
153153

154154
ngipkgs = import ./pkgs/by-name { inherit pkgs lib dream2nix; };
155155

156-
raw-projects-new = import ./projects/default-module.nix {
156+
raw-projects = import ./projects {
157157
inherit lib;
158158
pkgs = pkgs // ngipkgs;
159159
sources = {
@@ -163,8 +163,7 @@ rec {
163163
};
164164
};
165165

166-
projects-new = make-projects raw-projects-new.config.projects;
167-
projects = projects-new;
166+
projects = make-projects raw-projects.config.projects;
168167

169168
# TODO: find a better place for this
170169
make-projects =

flake.nix

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -77,23 +77,18 @@
7777
in
7878
rec {
7979
packages = ngipkgs // {
80-
# TODO: collapse when the migration to modules is complete
81-
overview =
82-
let
83-
overview-new = import ./overview {
84-
inherit
85-
lib
86-
lib'
87-
self
88-
nixpkgs
89-
system
90-
;
91-
pkgs = pkgs // ngipkgs;
92-
projects = classic.projects-new;
93-
options = optionsDoc.optionsNix;
94-
};
95-
in
96-
overview-new;
80+
overview = import ./overview {
81+
inherit
82+
lib
83+
lib'
84+
self
85+
nixpkgs
86+
system
87+
;
88+
pkgs = pkgs // ngipkgs;
89+
projects = classic.projects;
90+
options = optionsDoc.optionsNix;
91+
};
9792

9893
options =
9994
pkgs.runCommand "options.json"
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ let
3535
{ };
3636
allowedFiles = [
3737
"README.md"
38-
# TODO: remove `-module` suffix when migration to modules is complete
39-
"default-module.nix"
38+
"default.nix"
4039
"types.nix"
4140
];
4241
in

0 commit comments

Comments
 (0)