You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using something like this to deploy to nix-on-droid with deploy-rs, but I can't figure out how to add some overlays.
I would guess that in my case, deploy-rs is just deploying the profile that I'm building myself, so maybe it has nothing to do with deploy-rs.
letpixel2=(inputs.nix-on-droid.lib.aarch64-linux.nix-on-droid{config=../hosts/pixel2;}).activationPackage;in{{deploy={autoRollback=true;magicRollback=true;user="root";nodes=[{pixel2={hostname="pixel2";# to prevent using sudosshUser="nix-on-droid";user="nix-on-droid";profiles.nix-on-droid.path=deploy-rs.lib.aarch64-linux.activate.custompixel2(pixel2+"/activate");};};];};}
I think the problem here is with the flake.nix in nix-on-droid, it passes pkgs
which is just nixpkgs.legacyPackages.${system}, and has seemingly no way to override it, in my opinion it might make more sense to have pkgs = import nixpkgs { inherit system; overlays = self.overlays; }; instead, then in the deploy-rs configuration you wouldn't need to change anything. Alternatively, you could make it take pkgs as an argument and pass that from your deploy-rs configuration.
note: the example I gave won't work because self.overlays won't exist, you should move it to not be under flake-utils.lib.eachSystem, see the output schema on https://nixos.wiki/wiki/Flakes
Also in other activations including those built-in to deploy-rs, we would do $PROFILE/activate instead, I don't think that's going to change anything in your case though
I'm using something like this to deploy to nix-on-droid with deploy-rs, but I can't figure out how to add some overlays.
I would guess that in my case, deploy-rs is just deploying the profile that I'm building myself, so maybe it has nothing to do with deploy-rs.
nix-community/nix-on-droid#94 (comment)
The text was updated successfully, but these errors were encountered: