<clever>
energizer: use --to instead, and run on the other machine
2020-10-26
<clever>
pinpox: yeah, the only way to avoid that, is to change the netrc-file option, and point it to something only you can read
<clever>
pinpox: you dont have to push the /etc/nix/netrc file to the public repo, at some point, your going to have un-managed files with secrets in them
<clever>
pinpox: but then it needs to be readable by any user on the machine
<clever>
pinpox: you can also put it into the default netrc file, /etc/nix/netrc
<clever>
pinpox: pass the --option to nix when you run nix on that expression
<clever>
353 /* Merges two lists of the same size together. If the sizes aren't the same
<clever>
363 zipListsWith =
<clever>
pinpox: and do you have a branch called main?
<clever>
pinpox: if you want fetchurl to work on private repos, you need to put `machine github.com login <TOKEN>` into ~/.netrc and use `--option netrc-file ~/.netrc`
<clever>
spease: not sure
<clever>
pinpox: if its on github, that makes things much simpler, you can just use niv
<clever>
pinpox: that could also be a branch name, or use niv
<clever>
pinpox: and builtins.fetchurl caches better then fetchGit
<clever>
pinpox: downloading a .tar.gz will make it a faster copy
<clever>
pinpox: you can still do that build in nix
<clever>
spease: if you use nativeBuildInputs and callPackage properly, you dont have to do that
<clever>
pinpox: yep, thats over 256mb, the only way to make fetchGit faster, is to supply it with a rev= and sha256= i believe
<clever>
pinpox: try just `nix-build blog.nix`
<clever>
spease: .override cant change the system, but you could `import pkgs.path { system = "something"; }` to re-create the whole pkgs tree, from the same source, but it will ignore any past overlays
<clever>
spease: or add { system ? builtins.currentSystem }: to the top for use with --argstr, then `inherit system;` to forward it on
<clever>
spease: basically, when -A is loading a nix file, and following an attribute path, it will check if each thing in that path is a function, and then pass it the --arg's
<clever>
energizer: you need to install nix on a pi4, with a 64bit kernel, and add it as a build machine
<clever>
energizer: yeah
<clever>
CyberManifest: ?
<clever>
nix-build '<nixpkgs/nixos/release.nix>' -A sd_image_raspberrypi4.aarch64-linux
<clever>
which model of pi?
<clever>
nixos-install only works if the host and target are the same cpu
<clever>
thats the problem
<clever>
energizer: was that ran on an x86 or arm machine?
<clever>
what command did you run to cause the error?
<clever>
energizer: it sounds like your building the firmware for x86, which wouldnt work
<clever>
energizer: there are already sd image files for raspi in nixpkgs
2020-10-23
<clever>
though i dont see one for clang10...
<clever>
laduke-132: such as clangStdenv.mkDerivation
<clever>
laduke-132: you generally dont want to add compilers to the inputs, you want to instead change the stdenv
<clever>
ahhh
<clever>
dminuoso: and the pkgsCross part, makes it magically cross compile to arm instead
<clever>
dminuoso: in my case, i didnt have a directory of sources, so i made a custom unpackPhase, and i lacked a makefile, so i just threw in a buildPhase too
<clever>
c4droid``: xmonad wont see any library you install normally, you must use services.xserver.windowManager.xmonad.extraPackages
<clever>
2020-10-22 23:29:50 < clever> c4droid: you must install it with `services.xserver.windowManager.xmonad.enable = true;` to make it find ghc properly
<clever>
c4droid: you must install it with `services.xserver.windowManager.xmonad.enable = true;` to make it find ghc properly
<clever>
the binary will land in ~/.nix-profile/bin/
<clever>
aquarial: and it will grab whatever { foo = ...; } has been set to, and install it
<clever>
aquarial: you can just nix-env -f /path/to/default.nix -iA foo
<clever>
forgot it in my example
<clever>
yeah, that / needs to be there
<clever>
because they dont use , and eat your function args
<clever>
the outer () is only for lists
<clever>
yeah
<clever>
you want ++ to concat 2 lists together
<clever>
pumpy: so that is [ ./hardware.nix [ ./cond.f/home-manager.nix ] ];
<clever>
pumpy: map returns a list, you then put it inside imports, a list
<clever>
now try :p builtins.attrNames (builtins.readDir /etc/nixos)
<clever>
yeah, so its a set where the keys are filenames, and the values are the type
<clever>
pumpy: pop open `nix repl` and then try to eval `:p builtins.readDir /etc/nixos`
<clever>
pumpy: oh yeah, and builtins.readDir doesnt return a list of strings
<clever>
and its kernel based, so you must use the linuxPackages.callPackage
<clever>
pickfire: thats a package, you must load it with callPackage
<clever>
pickfire: what is line 1 of rtl8822ce.nix ?
<clever>
pickfire: that will heavily depend on what is inside rtl8822ce.nix
<clever>
yeah
<clever>
the 2nd round, it needs to be in /mnt/etc/nixos, when you run nixos-install
<clever>
the 1st round, is needed when building the iso, before you even boot
<clever>
but on that 2nd round, the wifi is up, so scp will be up too
<clever>
then a second time, when nixos-install builds the final install, youll put it in /mnt/etc/nixos then
<clever>
once on the machine building the iso, which will let wifi work when you boot the iso
<clever>
you need it twice
<clever>
or manually copy it into the machine with git/scp after booting
<clever>
pickfire: normally, the nix files are not copied into the build product, so you would have to add a `cp ${./foo.nix} somewhere/foo.nix` to some expression
<clever>
pickfire: you can also inline it directly into configuration.nix, but having it as a seperate file is cleaner
<clever>
pickfire: you can also use an overlay to modify the linux packages
<clever>
pickfire: add it to your main configuration.nix
<clever>
yeah
<clever>
iso_plasma5.x86_64-linux for graphical
<clever>
pickfire: then edit configuration.nix to add the drivers, the same way you would have added them to a normal nixos
<clever>
pickfire: nix-build '<nixpkgs/nixos/release.nix>' --arg configuration ./configuration.nix -A iso_minimal.x86_64-linux
<clever>
and rollbacks didnt help, because it was the generation of the rollback menu that broke
<clever>
jakobrs: what followed, was about 2 weeks of nixos users on nixpkgs-unstable,streaming into the channel because it wasnt booting anymore
<clever>
jakobrs: i have seen an incident about 2 or 3 years back, when grub did break, nixos-unstable didnt change as it should have, nixpkgs-unstable did change
<clever>
joebobjoe: only if your not building with nix
<clever>
joebobjoe: i'm on an older branch of nix
<clever>
jbal[m]: that only happens if either, a: you have overlays that make it never match the cache, b: your not on a full channel, c: it failed to build on hydra, and will fail for you as well
<clever>
joebobjoe: you can read the release.nix to see how nix is doing it