cleanup
This commit is contained in:
@@ -49,16 +49,18 @@ in
|
|||||||
# w1-gpio-pi5.dtbo
|
# w1-gpio-pi5.dtbo
|
||||||
# w1-gpio-pullup-pi5.dtbo
|
# w1-gpio-pullup-pi5.dtbo
|
||||||
|
|
||||||
systemd.services = {
|
config = {
|
||||||
apply-overlays = {
|
systemd.services = {
|
||||||
description = "Apply Raspberry Pi Device Tree Overlays";
|
apply-overlays = {
|
||||||
script = ''
|
description = "Apply Raspberry Pi Device Tree Overlays";
|
||||||
echo "Applying Device Tree Overlays via ConfigFS"
|
script = ''
|
||||||
'' ++ lib.mkIf cfg.pi5DisableWifi.enable ''
|
echo "Applying Device Tree Overlays via ConfigFS"
|
||||||
mkdir ${configfsPath}/disable-wifi-pi5
|
'' ++ lib.mkIf cfg.pi5DisableWifi.enable ''
|
||||||
cp ${cfg.pi5DisableWifi.overlay} ${configfsPath}/disable-wifi-pi5/dtbo
|
mkdir ${configfsPath}/disable-wifi-pi5
|
||||||
'';
|
cp ${cfg.pi5DisableWifi.overlay} ${configfsPath}/disable-wifi-pi5/dtbo
|
||||||
wantedBy = [ "multi-user.target" ];
|
'';
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user