robotinx test config for my phone

This commit is contained in:
Sebastian Moser
2023-11-02 16:17:43 +01:00
parent debb87f3b8
commit a5554e71cd
3 changed files with 38 additions and 0 deletions

View File

@@ -27,6 +27,12 @@
inputs.nixpkgs.follows = "nixpkgs";
};
robotnix = {
url = "github:nix-community/robotnix";
#inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, ... }@inputs:
@@ -77,9 +83,23 @@
};
};
robotnixConfigurations = rec {
"phone" = inputs.robotnix.lib.robotnixSystem (import ./hosts/phone/default.nix);
};
packages.x86_64-linux = {
cbm = nixpkgs.x86_64.callPackage ./mods/cbm.nix { };
#default... TODO
run-vm = specialArgs.pkgs.writeScriptBin "run-vm" ''
${self.nixosConfigurations.hpm.config.system.build.vm}/bin/run-hpm-vm -m 4G -cpu host -smp 4
'';
};
apps.x86_64-linux = {
default = {
type = "app";
program = "${self.packages.x86_64-linux.run-vm}/bin/run-vm";
};
};
};
}