convert devices from overlay to module

this makes it possible for devices to stash things in
`config` (e.g. pathname to DTS) that can later be overwritten
(even by the end user)
This commit is contained in:
Daniel Barlow 2023-02-10 17:54:33 +00:00
parent 6be459b9ac
commit 8cead61740
8 changed files with 263 additions and 278 deletions

View file

@ -24,7 +24,12 @@ in {
};
filesystem = mkOption { type = types.anything; };
kernel = {
dts = mkOption { type = types.functionTo types.string; };
src = mkOption { type = types.package; } ;
extraPatchPhase = mkOption {
default = "true";
type = types.lines;
} ;
dts = mkOption { type = types.string; };
config = mkOption {
# mostly the values are y n or m, but sometimes
# other strings are also used
@ -40,6 +45,12 @@ in {
users = mkOption {
type = types.attrsOf types.anything;
};
device = {
defaultOutput = mkOption {
type = types.nonEmptyStr;
};
boot = mkOption { type = types.any; };
};
};
config = {
defaultProfile.packages = with pkgs;