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:
parent
6be459b9ac
commit
8cead61740
8 changed files with 263 additions and 278 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue