Many things

This commit is contained in:
Andrea Ciceri 2022-11-02 22:51:05 +01:00
parent 3b11f01f84
commit 6b3c9e83f7
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
17 changed files with 139 additions and 28 deletions

View file

@ -77,9 +77,13 @@
name,
device,
flavor,
androidVersion,
}:
lib.robotnixSystem {
inherit device flavor;
imports = [
(../hosts + "/${name}")
];
};
androidConfigurations = {
@ -87,10 +91,21 @@
name = "oneplus5t";
device = "dumpling";
flavor = "lineageos";
androidVersion = 12;
};
};
androidImages = lib.perSystem (system: builtins.mapAttrs (name: conf: conf.img) androidConfigurations);
androidImages = lib.perSystem (system: builtins.mapAttrs (confName: conf: conf.img) androidConfigurations);
androidGenerateKeysScripts = lib.perSystem (system:
lib.mapAttrs' (confName: conf: {
name = "${confName}-generateKeys";
value = {
type = "app";
program = "${conf.generateKeysScript}";
};
})
androidConfigurations);
mkVmApp = system: configuration: let
shellScript = pkgsFor.${system}.writeShellScript "run-vm" ''
@ -154,6 +169,7 @@
});
in {
inherit
androidGenerateKeysScripts
androidImages
checkFormatting
formatApp