rename "device" config tree as "hardware"

we are also using "device" for "network device" (as in eth0,
wlan0 etc) so this makes it a bit less confusing perhaps
This commit is contained in:
Daniel Barlow
2023-03-03 22:52:33 +00:00
parent 263882cbe4
commit e0ea576674
10 changed files with 38 additions and 37 deletions

View File

@@ -22,7 +22,7 @@ in {
};
boot.commandLine = [
"root=${config.device.rootDevice}"
"root=${config.hardware.rootDevice}"
];
outputs.firmware =
let o = config.outputs; in
@@ -49,7 +49,7 @@ in {
let
inherit (pkgs.lib.trivial) toHexString;
inherit (pkgs.lib.lists) concatStringsSep;
inherit (config.device) flash;
inherit (config.hardware) flash;
in
pkgs.buildPackages.runCommand "" {} ''
imageSize=$(stat -L -c %s ${config.outputs.firmware})