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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user