mobile-nixos-cfg | A personal Mobile NixOS adventure
kandi X-RAY | mobile-nixos-cfg Summary
kandi X-RAY | mobile-nixos-cfg Summary
mobile-nixos-cfg is a Shell library typically used in Jekyll applications. mobile-nixos-cfg has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.
This is an umbrella repo for my Pinephone and MobileNixOS experiemnts. This repo may link other projects as Git submodules. I expect it to contain scripts and customized configurations.
This is an umbrella repo for my Pinephone and MobileNixOS experiemnts. This repo may link other projects as Git submodules. I expect it to contain scripts and customized configurations.
Support
Quality
Security
License
Reuse
Support
mobile-nixos-cfg has a low active ecosystem.
It has 1 star(s) with 0 fork(s). There are 2 watchers for this library.
It had no major release in the last 6 months.
mobile-nixos-cfg has no issues reported. There are no pull requests.
It has a neutral sentiment in the developer community.
The latest version of mobile-nixos-cfg is current.
Quality
mobile-nixos-cfg has no bugs reported.
Security
mobile-nixos-cfg has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
License
mobile-nixos-cfg does not have a standard license declared.
Check the repository for any license declaration and review the terms closely.
Without a license, all rights are reserved, and you cannot use the library in your applications.
Reuse
mobile-nixos-cfg releases are not available. You will need to build from source code and install.
Installation instructions, examples and code snippets are available.
Top functions reviewed by kandi - BETA
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mobile-nixos-cfg
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mobile-nixos-cfg
mobile-nixos-cfg Key Features
No Key Features are available at this moment for mobile-nixos-cfg.
mobile-nixos-cfg Examples and Code Snippets
No Code Snippets are available at this moment for mobile-nixos-cfg.
Community Discussions
No Community Discussions are available at this moment for mobile-nixos-cfg.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mobile-nixos-cfg
The original post https://nixos.wiki/wiki/Distributed_build. Here we teach the Host PC's nixos to use the Pinephone as a remote build agent. Not sure, but it seems that it works faster than host-based build using qemu which also works by default.
Determine, which user runs builds on the Host PC. In our case, since we are using build daemon of NixOS, the user is root.
Setup the passwordless SSH loging from the Host PC's root user to the pinephone. Add the root's public SSH keys to the root@pinephone (done in the example.nix) Rebuild and switch the Pinephone's configuration with sh script/build-switch-toplevel.sh Add the pinephone-builder section into the /root/.ssh/config of the Host.
Add the following snippet to the Host PC's configuration: { config, pkgs, ... }: { nix.buildMachines = [ { hostName = "pinephone-builder"; sshUser = "root"; systems = ["aarch64-linux"]; maxJobs = 1; speedFactor = 2; mandatoryFeatures = [ ]; } ] ; nix.distributedBuilds = true; }
Test the config with (host) $ sudo nix ping-store --store ssh://pinephone-builder && echo ok ok
Now the distributed aarch builder should work on the Pinephone natively. Test with (host) $ vim modules/nixpkgs/pkgs/tools/misc/mc/default.nix ... edit smth to force rebuilding (TODO: how to --check distributed build?) (host) $ sh script/build-mobile-nixos.sh -j0 -A pkgs.mc
Watch the host's log and the pinephone's htop.
Determine, which user runs builds on the Host PC. In our case, since we are using build daemon of NixOS, the user is root.
Setup the passwordless SSH loging from the Host PC's root user to the pinephone. Add the root's public SSH keys to the root@pinephone (done in the example.nix) Rebuild and switch the Pinephone's configuration with sh script/build-switch-toplevel.sh Add the pinephone-builder section into the /root/.ssh/config of the Host.
Add the following snippet to the Host PC's configuration: { config, pkgs, ... }: { nix.buildMachines = [ { hostName = "pinephone-builder"; sshUser = "root"; systems = ["aarch64-linux"]; maxJobs = 1; speedFactor = 2; mandatoryFeatures = [ ]; } ] ; nix.distributedBuilds = true; }
Test the config with (host) $ sudo nix ping-store --store ssh://pinephone-builder && echo ok ok
Now the distributed aarch builder should work on the Pinephone natively. Test with (host) $ vim modules/nixpkgs/pkgs/tools/misc/mc/default.nix ... edit smth to force rebuilding (TODO: how to --check distributed build?) (host) $ sh script/build-mobile-nixos.sh -j0 -A pkgs.mc
Watch the host's log and the pinephone's htop.
Support
For any new features, suggestions and bugs create an issue on GitHub.
If you have any questions check and ask questions on community page Stack Overflow .
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page