alexandergall / nixos-pxe-installer Goto Github PK
View Code? Open in Web Editor NEWA set of modules to perform a fully automated installation of a customised NixOS system
License: MIT License
A set of modules to perform a fully automated installation of a customised NixOS system
License: MIT License
Looks like a regression was introduced in 448cbe3#diff-2e716080a08972ecb7adf2548fed7affR176
When useBinaryCache is set to true
the default, the value "true"
is passed to nix-env causing an error.
Anyone have experience with getting ARM support for this?
Sorry for opening essentially A support request, I'm not sure if this a bug or if I can't figure out how to use it.
I followed the instructions on a nixos 18.09 machine as was able to build the installer, but using the example for how to build an image
with import <nixpkgs> {};
let
installImageConfig = {
installImage = {
nixpkgs.path = ./nixpkgs;
};
};
installImage = (import <nixpkgs/nixos/lib/eval-config.nix> {
modules = [ modules/install-image.nix
installImageConfig ];
}).config.system.build.installImage;
in
with installImage;
[ tarball config ]
I ran into a few strange issues.
Following that example exactly, I ran into an error error: cannot coerce a built-in function to a string, at /root/nixos-pxe-installer/modules/install-image.nix:62:20
after playing with the code in nix repl (and using print debugging) I found what happens is that readlink -f
doesn't return anything.
If I remove the readlink
on line 60, it returns an absolute path, but then I get an error, unable to cd to /root/nixos-pxe-installer/nixpkgs
which occurs on line 77.
I assume this script needs the nixpkgs to be in the nix store, so I also tried pre-"realising" the path by changing nixpkgs.path = ./nixpkgs
to nixpkgs.path = ${./nixpkgs}
which also returns cannot cd to /nix/store/$sha-nixpkgs
from line 77.
I also tried running this script as a non-root user, but it had the same behavior. Unfortunately, while I have Linux experience, I have no idea why cd
doesn't work and haven't been able to find any reasons for it, so I was hoping you could help guide me to a solution.
Thanks!
The building of the manpages for the installImage
and installer
NixOS options is broken on NixOS 18.09.
I think I'm pretty close to getting this work, though it fails close to the end of build with the following error (sorry for the screen shot)
This is installing Nixos 18.09, the closest issue I could find is this, but I'm not sure how to proceed with debugging this
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.