forked from Fediversity/Fediversity
data model: type nixos module
This commit is contained in:
parent
9d903f3ef7
commit
28fb4fe3ad
1 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
let
|
let
|
||||||
|
sources = import ../npins;
|
||||||
inherit (import ../default.nix { }) pkgs inputs;
|
inherit (import ../default.nix { }) pkgs inputs;
|
||||||
inherit (pkgs) lib;
|
inherit (pkgs) lib;
|
||||||
inherit (lib) mkOption types;
|
inherit (lib) mkOption types;
|
||||||
|
@ -69,7 +70,11 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
resource-type = types.raw; # TODO: splice out the user type from NixOS
|
resource-type = types.deferredModuleWith {
|
||||||
|
staticModules = import "${sources.nixpkgs}/nixos/modules/module-list.nix" ++ [
|
||||||
|
{ _class = "nixos"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
apply =
|
apply =
|
||||||
requests:
|
requests:
|
||||||
let
|
let
|
||||||
|
|
Loading…
Add table
Reference in a new issue