<disasm>
update on hanging on boot weirdness, I bumped nixpkgs to latest unstable. I noticed it compiled zfs as part of the updates it did, so I'm wondering if that was part of the problem. After a reboot, it booted right into login screen so quickly I didn't even see the 18.09 splash screen! No issues with hanging.
<samueldr>
disasm: out of the loop define "hanging"
<samueldr>
I have been battling with unreproducible weirdness across DMs where sometimes in a generation it will hand on a black screen, which I can resolve quicker by ctrl+alt+f1, logging-in, restarting display-manager
<gchristensen>
I have that too but if I just wait it'll come up
<samueldr>
gchristensen: unreproducible?
<gchristensen>
hrm. reproducible. happens every time.
<samueldr>
and hangs for how long?
<gchristensen>
30s-1min
<samueldr>
:/ I can rebuild with seemingly irrelevant changes and it stops hanging
<kisik21>
samueldr: looks like corruption
<gchristensen>
huh.
<samueldr>
and the same config (same nixpkgs commit) on different computers (different hardware) act differently
<samueldr>
but haven't done anything yet since *I can't reproduce faithfully*
<samueldr>
(drives me mad)
<kisik21>
check your /nix/store for corrupted ~~billionaire people~~ files
<samueldr>
no corruption
countingsort has quit [Ping timeout: 240 seconds]
<clever>
kisik21: also, i think if you use buildInputs and nativeBuildInputs, it will pick the right one for you
<clever>
kisik21: oh, and cross-compile goes out of its way to NOT put buildInputs into PATH
<kisik21>
oh that's why
<kisik21>
nativeBuildInputs?
<clever>
yeah
<clever>
and just use a single pkgs
<gchristensen>
it seems like maybe too much magic, like sort of feels like it breaks referential transparency
<emily>
kisik21: b-billionaire people files?
<samueldr>
thinking it's a race condition somehwere :/
<kisik21>
~~it's Markdown's strikethrough syntax, too used to it~~
<samueldr>
thinking about it, *my* issue only happens (I think) on my slower computers
<emily>
~to me it makes me imagine a japanese subtitle~
JonReed_ has quit [Ping timeout: 252 seconds]
iyzsong has quit [Read error: Connection reset by peer]
<{^_^}>
#24600 (by chris-martin, 1 year ago, open): Mastodon
joebobjoe has joined #nixos
joebobjoe has quit [Ping timeout: 240 seconds]
abueide has joined #nixos
abueide has quit [Ping timeout: 276 seconds]
ryanartecona has quit [Quit: ryanartecona]
vmandela has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
witchof0x20 has quit [Remote host closed the connection]
witchof0x20 has joined #nixos
b has joined #nixos
worldofpeace_ has quit [Read error: Connection reset by peer]
c00w has joined #nixos
worldofpeace has joined #nixos
jD91mZM2 has joined #nixos
Guanin has quit [Ping timeout: 240 seconds]
Guanin has joined #nixos
<vmandela>
Is there a way to run on only one test out of multiple tests defined in a nixos test? say only the "simple" test from nixpkgs/nixos/tests/installer.nix
Drakonis has quit [Remote host closed the connection]
<Myrl-saki>
This is so sad. qemu on my desktop performs better than my actual device, even on single-core perf.
<DigitalKiwi>
I don't have an explanation but that's not unheard of and always amusing
<Myrl-saki>
DigitalKiwi: The device is from 2012
<Myrl-saki>
The difference is marginal though, probably at most 20% faster
<DigitalKiwi>
I had windows vms that booted in a few seconds and windows on the same machine in ~60 seconds back in... uh...2007?
<Myrl-saki>
DigitalKiwi: Same lol
<DigitalKiwi>
I'm sure there's a reason and I probably knew at some point but I forget
<Myrl-saki>
Oh, hm.
<Myrl-saki>
Interestingly, I might be talking out of my ass right now. On micro benchmarks, my tablet's actually faster.
sm0rux has quit [Quit: Leaving]
<ldlework>
Is there anyway to add functions to lib?
<Myrl-saki>
But qemu has a startup time.
<DigitalKiwi>
which is nice I guess the only reason I have a physical partition for windows is because parallels can't support direct x 11, so if I'm not using that I don't need to reboot
<Myrl-saki>
DigitalKiwi: FWIW, I'm guessing it's the same reason why Java is faster, sometimes.
<Myrl-saki>
Optimize for best-case scenario, reprogram if best-case is faulty.
<Myrl-saki>
Oh, apparently, my tablet was also capped at 600 MHz, for god knows what reason
<Myrl-saki>
Feels wayyy snappier.
simukis has joined #nixos
<clever>
DigitalKiwi: the linux host can cache reads, and serve them to the vm faster then the hdd could
joebobjoe has joined #nixos
pxc has joined #nixos
hlolli has joined #nixos
<hlolli>
Hello nightowls, I'm still learning nixos. I just updated my channels and rebuilt nixos. With both unstable and stable I get error: attribute 'nodejs-9_x' missing. How can I install node9 again, why did it disappear?
<pxc>
for some reason when I try to install nerdfonts via Nix, the curl hangs and it never downloads the source. It doens't show it updating, either. But if I copy and paste the very same URL from the nix-build output, I can download it myself successfully
<{^_^}>
[nix] @edolstra pushed to master « FIx floating point evaluation »: https://git.io/fAvY7
rfold has joined #nixos
<inquisitiv3>
I'm experiencing problems with connecting to my home network via WiFi. I always need to reconnect to the network when turning on the machine, and sometimes even try several times. Now I'd to reboot the computer to be able to connect. Sometimes the WiFi icon disappear after suspending the laptop. These problems only occur in NixOS. No such problems with my other machines running Fedora or when I ran Debian on this machine.
<inquisitiv3>
I couldn't find anything when I took a quick look at the issues reported for nixpkgs @ Github.
<inquisitiv3>
rfold: I don't know if this answer your question, but the installation CD is also a LiveUSB.
<inquisitiv3>
So when you boot the CD you'll probably find out what works and what doesn't.
<rfold>
inquisitiv3: Yes, I'm running it off a USB drive. But I can't connect to the internet because I think there's no driver for my wifi adapter included
<inquisitiv3>
rfold: Intel chip?
<sphalerite>
rfold: does `ip link` show a device whose name begins with wl?
<rfold>
inquisitiv3: The CPU is Intel, the Wi-Fi adapter is Linksys WUSB6400M, "ip a" only lists loopback and enp3s0
<rfold>
The device does appear in dmesg as "found USB device"
<sphalerite>
rfold: as far as I can see from a quick search of the internets, this adapter isn't supported by linux at all
<rfold>
Yeah, there appears to be an unmaintained driver on github :') Guess I'll have to look for something else then, thanks!
mayhewluke has quit [Ping timeout: 276 seconds]
<rfold>
Perhaps I can find a Wi-Fi PCIE device that Linux supports
<sphalerite>
angerman: maybe setting keep-failed = true in nix.conf on the builder will also do it
<sphalerite>
not sure
<ldlework>
Myrl-saki: i have a nix expression for setting up that split optirun thing
<ldlework>
not sure if you need it
<Myrl-saki>
ldlework: I already got it working using X11.
<Myrl-saki>
It's just that it breaks my system, ish.
<Myrl-saki>
After a suspend, I can't use sudo.
<ldlework>
ok
<Myrl-saki>
Yeah, weird, right? But I also can't shutdown properly.
periklis has quit [Ping timeout: 260 seconds]
<Myrl-saki>
OTOH, I can't seem to disable cupsSupport/waylandSupport at all.
<Myrl-saki>
:/
<Myrl-saki>
Globally, I mean.
<Ashy>
hmm, anyone running nixos with native zfs encryption on a uefi machine?
<Myrl-saki>
Oh.
<sphalerite>
Ashy: probably hyper_ch
<Ashy>
i've got a working install of that on a bios laptop but just tried to do a similar install on to a usb ssd on my uefi desktop (ryzen) and get a stage1 boot error
<Ashy>
sphalerite: cheers, i'll write up a proper pastebin tomorrow and ask hyper_ch
globin has quit [Ping timeout: 256 seconds]
<Myrl-saki>
Hm
<Myrl-saki>
Does anyone know of an `update` that only updates if the kv exists from the start?
<Myrl-saki>
I could just use filter elem.
globin has joined #nixos
<Myrl-saki>
overrideExisting?
<{^_^}>
[cabal2nix] @peti pushed to master « cabal2nix.cabal: bump version number for release »: https://git.io/fAv3N
<ldlework>
i mean passing pkgs.lib instead of pkgs doesn't fix the recursion
oldandwise has quit [Quit: leaving]
<Myrl-saki>
Oh. :(
<ldlework>
Myrl-saki: maybe you could try to write a simple function
<ldlework>
and get it into pkgs somehow :)
<Myrl-saki>
Sure, give me a few to MWE. :P
kisik21 has joined #nixos
<Myrl-saki>
Oh, I get the infinite recursion now.
<Guanin>
Hi, I got around yesterday to switch from 17.09 to 18.03, and nixos-rebuild switch --upgrade fails building /nix/store/6lj9vsj9l8wxra8wgks9vf7h3ngp6kw1-rustc-1.24.0.drv (some tests seem to fail). Can I identify somehow what requires rustc/cargo, or any other way to fix this?
<Myrl-saki>
ldlework: I think this is specific to `imports` though.
sm0rux has left #nixos ["Leaving"]
<symphorien>
Guanin: rust is a dependency of firefox
<Guanin>
ModemManager relies heavily on dbus and is not comfortable to script/automate reconnects (which I solved with while true; do wvdial; done on my current archlinux setup), so I'd be happy about any alternative
abueide has quit [Ping timeout: 244 seconds]
<ldlework>
ok i definitely give up on this
<ldlework>
crazy ass nixlang
<infinisil>
ldlework: Ah yeah, that's to be expected
<infinisil>
Because to evaluate pkgs, it needs to know all overlays. And these can be defined in any module (through imports), but to evaluate these imports it needs pkgs
pie__ has quit [Remote host closed the connection]
ajs124 has joined #nixos
<infinisil>
I guess yeah lib and pkgs.lib are different in that the latter one can have overlays that change it
pie__ has joined #nixos
<symphorien>
Guanin: well wdial was removed due to openssl 1.1. If you can get it to build with the current openssl (for example by using patches from other distros) you could get it back in nixpkgs
<ldlework>
infinisil so is there anyway to get recimport into a globally accessible place without modifying $NIX_PATH
<infinisil>
What's the problem with using lib?
<Guanin>
symphorien, the point is that I'm not really interested in wvdial itself - I'm only interested in a sane way to keep a modem connected without NetworkManager/ModemManager. my approach with wvdial feels pretty bad, too, so I'd be happy to know if there are any real alternatives
<ldlework>
infinisil: is the problem with the nature of ~recimport~ itself, and other more mundane functions should work?
<ldlework>
infinisil: what do you mean?
<ldlework>
i would love to get arbitrary functions I've written into lib!
<ldlework>
especially recimport
<Guanin>
Also, if the project itself is not maintained anymore, it does not really make sense to keep it alive artificially, tbh
<symphorien>
to some extent, as log as debian provides the patches, it is no real burden to maintain.
<infinisil>
ldlework: The linked gist gives inf rec?
<ldlework>
infinisil: yeah i use it like
<ldlework>
{ imports = pkgs.recimport ./.; }
<infinisil>
Ah yeah
<infinisil>
That won't work, because as explained above
<infinisil>
You can't use it from pkgs
<ldlework>
that's the whole point of the recimporter tho..
<ldlework>
to add stuff to imports
<ldlework>
doh
<infinisil>
Yeah but that's not possible due to how the module system works
<infinisil>
with overlays
<infinisil>
You need to import it some other way
<ldlework>
so the problem is just with recimporter?
<ldlework>
infinisil: what about functions that generate modules
<ldlework>
those will have problems too I guess?
<infinisil>
Yeah, everything that causes such a cycle
<ldlework>
I encapsualted your znc module in a function which generates a module that configures those options
<infinisil>
can't import modules that depend on pkgs
<ldlework>
damn it
<infinisil>
You can use the module system for such things though
justanotheruser has quit [Ping timeout: 272 seconds]
<ldlework>
oh well, explicit import statements it is
<infinisil>
Take the arguments as options
<infinisil>
Probably
<ldlework>
a hatch to add arbitrary code at the top-level would be good
<infinisil>
Ah no that won't work
<ldlework>
infinisil: it does work with normal import statements
<infinisil>
what does?
<ldlework>
importing recimporter from a normal .nix file and calling it to recursively get the imports assigning the result to some default.nix's imports =
abueide has joined #nixos
<ldlework>
that's what i was doing until Iwas like, "it would be cool if this, and other functions, were just available at pkgs.mine"
<infinisil>
Hmm yeah, you need to still do it the original way
<infinisil>
Or extend NixOS' lib in some way/get a special arg in there
za1b1tsu has quit [Ping timeout: 276 seconds]
abueide has quit [Read error: Connection reset by peer]
lawlesseel has quit [Remote host closed the connection]
<symphorien>
replace $HOME/nix-zsh-completion/ by ${pkgs.nix-zsh-completionss} or so
<symphorien>
it depends on the exact layout of the output of the derivation
joebobjoe has quit [Ping timeout: 272 seconds]
* nikivi
oh nvm I could just install it with nix-env. Just it wasnt showing up on the websit
<nikivi>
can someone explain me why some people try to embed everything in nix. For example take zsh aliases. Some people do it through nix with zsh.alias = or similar syntax
<nikivi>
is it bad to have alias.zsh file and then source that from nix?
<nikivi>
same for zsh functions and so on
<nikivi>
just nix adds syntax overhead to specifying the same things
<joepie91>
nikivi: my reason for nix-ifying configurations is that it allows a shared syntax and set of abstractions for configuring everything
mfernandez has quit [*.net *.split]
pSub_ has quit [*.net *.split]
ikwildrpepper has quit [*.net *.split]
thblt has quit [*.net *.split]
qz has quit [*.net *.split]
pemeunier has quit [*.net *.split]
mjrosenb has quit [*.net *.split]
oldnborg has quit [*.net *.split]
stew has quit [*.net *.split]
colescott has quit [*.net *.split]
sigtrm has quit [*.net *.split]
eliasp has quit [*.net *.split]
Ashy has quit [*.net *.split]
henrytill has quit [*.net *.split]
<symphorien>
I guess it is mostly a matter of declarative configuration vs imperative ones
stew has joined #nixos
<symphorien>
for aliases the advantage is arguably not that great
<symphorien>
but for example vim plugins declare their non vim dependencies and I find this great
romildo has quit [Quit: Leaving]
<nikivi>
I am in the process of moving everything in my dotfiles to nix. And I am curious, how do you deal with folders like ~/.ssh
<nikivi>
ideally I want to have a way to completely specify how my OS looks so I can run one command and everything is as I specified. but I am curious how do I deal with private settings like these
aw has quit [Ping timeout: 240 seconds]
_habnabit has joined #nixos
thblt has joined #nixos
aw has joined #nixos
Ashy has joined #nixos
Fare has joined #nixos
revtintin has joined #nixos
thc202 has joined #nixos
revtintin has quit [Client Quit]
revtintin has joined #nixos
<sphalerite>
nikivi: nix isn't really any good for managing secrets
ryanartecona has quit [Quit: ryanartecona]
<nikivi>
sphalerite so whats the conventional way to solve the issue?
init_6 has quit [Ping timeout: 276 seconds]
<nikivi>
I was thinking of syncing the secrets with my own server and then fetching those in ./install script
<sphalerite>
well for managing dotfiles in general, there's
<sphalerite>
,home-manager
<{^_^}>
home-manager allows you to manage your per-user configuration similarly to NixOS' configuration.nix: https://nixos.wiki/wiki/Home_Manager
arjen-jonathan has joined #nixos
joebobjoe has joined #nixos
rardiol has joined #nixos
<emily>
how well does home-manager work on non-NixOS?
<emily>
I guess Linux-only at least?
kisik21 has joined #nixos
inquisitiv3 has joined #nixos
ryanartecona has joined #nixos
mayhewluke has quit [Ping timeout: 240 seconds]
<sphalerite>
emily: nope, macos too AFAIK
<Thra11>
Is it possible to run a sandboxed nix-shell? i.e. to recreate the same environment a sandboxed builder sees.
<sphalerite>
Thra11: yes, it should be possible. There's no tool I know of for it yet though.
<sphalerite>
I found myself really wanting that the other day too
<Thra11>
Is the build sandbox a chroot?
<kisik21>
I think it will be something between a container and a chroot.
<kisik21>
Not sure though.
<kisik21>
Probably take everything out of container that isn't chroot - here's your sandbox.
<srhb>
kisik21: Insofar as we generally remove obsoleted software at some point..
<symphorien>
Import a 2010 nixpkgs ?
<kisik21>
__monty__: Try to find Python 2.5 in old commits of nixpkgs... or write your own derivation (it's not that hard!)
<srhb>
__monty__: 3b94efffe508b8e171b1af2b69a225f74e1c9873 is the commit that removed it.
<CodeKiwi>
what still uses python 2.5?
<kisik21>
symphorien: I'd not recommend it. Porting Py2.5 to new nixpkgs would be better, since updated libraries and stuff. Less security vulnerabilities.
<__monty__>
Just testing that my makefile would reject python 2.5 : )
joebobjoe has quit [Ping timeout: 276 seconds]
<{^_^}>
[nixpkgs] @vcunat pushed to staging « openjdk: fixup build after #44767 »: https://git.io/fAvE6
<{^_^}>
zfsonlinux/zfs#2028 (by seletskiy, 4 years ago, closed): Right way to boot from vanilla ZFS pool placed on entire disk?
<Zajcev>
guys, I have libvirtd-qemu virtual machine with nginx webserver, I can't make portforwarding working, I don't know if problem is on my side ... here is conf https://pastebin.com/gUeSV7rp , thank you for any advice ...
<Zajcev>
port forward from public to qemu machine
<Zajcev>
I'm quite new in nixos :-)
<sphalerite>
Zajcev: is the machine exposed directly to the internet?
<sphalerite>
Zajcev: you probably also need to open the firewall port using networking.firewall.allowedTCPPorts = [ 80 ];
<Zajcev>
I'm not that skilled in linux and networking, maybe problem is on my side
<booglewoogle>
this is really weird
<booglewoogle>
i did find an old generation i can boot
<sphalerite>
Zajcev: if you try to access the server's public IP address with an HTTP client, what error do you get?
<booglewoogle>
but when i rebuild the exact same configuration.nix that was using (i have it backed up), the resulting generation will be useless
<booglewoogle>
i only get a stale cursor in the top left on a blank black screen
<sphalerite>
Zajcev: also, there may be some firewalling going on on the provider's side, which you can usually configure on the hosting control panel or something
<clever>
Zajcev: i port scaned the IP you gave above, 22 is open, 443 is closed, and all others are blocked
<Zajcev>
curl 37.205.14.80
<Zajcev>
curl: (7) Failed connect to 37.205.14.80:80; Connection refused
<clever>
Zajcev: which machine did you run that from?
<sphalerite>
what I've seen of your nixos config looks ok
<Zajcev>
hm
<clever>
Zajcev: ok, thats very very weird, curl and nmap give different responses
<Zajcev>
I'll have to talk with guys from provider, tank you, I needed to know if my config is wrong or something ot there :-)
<Zajcev>
thank
<Zajcev>
out of there ... wehere are my letters ...
<Zajcev>
thanks
<clever>
bbl
<sphalerite>
Zajcev: also try `curl 192.168.122.153` on the host
<Zajcev>
its working
<Zajcev>
allready tried
<sphalerite>
ok
<Zajcev>
hello world working
za1b1tsu has joined #nixos
joebobjoe has quit [Ping timeout: 260 seconds]
<srk>
venet has two different IP addresses and the external one is the second one, might cause trouble but we've managed to get docker working with SNAT and correct ip (https://paste.vpsfree.cz/kvG43lkI/)
<srk>
not sure why NAT won't work even with externalIP (SNAT)
<sphalerite>
srk: you're working with Zajcev ?
<srk>
sphalerite: yeah
<srk>
from the provider side :D
<sphalerite>
oh, that's convenient :D
<Myrl-saki>
Okay, um. If I do "${foo}/bin/foo" instead of adding it to {native,}buildInputs, which one does it correspond to/
<ij>
how does nixops rename work?
<ij>
or rather how do I use it?
<sphalerite>
Myrl-saki: what do you mean?
<Myrl-saki>
sphalerite: Like, If I have `buildPhase = "${foo}/bin/foo";`
<Myrl-saki>
Is `foo` equivalent to buildInputs or nativeBuildInputs?
<sphalerite>
Myrl-saki: for cross-compilation purposes?
<Myrl-saki>
I'm guessing nativeBuildInputs, since it has to run on the host.
<Myrl-saki>
Yeah.
<sphalerite>
It depends
<{^_^}>
[nixpkgs] @shlevy opened pull request #45348 → haskellPackages.shellFor: fix after recent getHaskellBuildInputs fix. → https://git.io/fAvg1
<Myrl-saki>
sphalerite: How is it decided?
<sphalerite>
I don't know. {native,}buildInputs is unpleasantly magical
<Myrl-saki>
lol
<sphalerite>
my guess would be that just ${foo} gives you the one that runs on the target
<Myrl-saki>
sphalerite: FWIW, these are nixpkgs constructs and not Nix?
<sphalerite>
yes
<Myrl-saki>
Interesting.
<sphalerite>
you could always just try, and see whether it runs or gives you exec format error :p
<booglewoogle>
https://pastebin.com/1CKx9QwE at 12. - this seems to be the culprit for the fact that any new generation i build just gives me a black screen with a stale cursor and no functionality?
<booglewoogle>
nothing changed about the configuration.nix, i was just absent from this system for a month. anybody got a hunch as to whats going on?
<Myrl-saki>
God, nixpkgs is magical.
<Myrl-saki>
Was nixpkgs part of the thesis?
<gchristensen>
Myrl-saki: which part are you referring to?
<gchristensen>
("magical")
<LnL>
it's just some bash
<Myrl-saki>
gchristensen: Was asking how buildInputs and nativeBuildInputs compare to ${foo}
<samueldr>
booglewoogle: what do you mean "stale cursor"?
<gchristensen>
yes, I don't like that magic.
<Myrl-saki>
lol
<gchristensen>
I think that is a mistake
<emily>
nixpkgs magic is scary
<Myrl-saki>
gchristensen: FWIW, how does buildInputs "switch" the platform?
<booglewoogle>
theres a _ in the top left corner of the screen, not blinking
<sphalerite>
gchristensen: +1
<Myrl-saki>
I'm actually curious.
<gchristensen>
honestly no idea, that specifically is what I think is the mistake
<sphalerite>
booglewoogle: oh this sounds familiar
<Myrl-saki>
gchristensen: Oh. :P
<sphalerite>
booglewoogle: not sure what it was though
abueide has quit [Ping timeout: 256 seconds]
<sphalerite>
but yeah what was wrong with crossPkgs? :(
<sphalerite>
or maybe pkgsBuildBuild, pkgsBuildHost, etc
<LnL>
Myrl-saki: buildInputs adds headers/libraries to CFLAGS nativeBuildInputs adds binaries to PATH
<sphalerite>
but blargh magical changes
<Myrl-saki>
I checked the PDF, and nixpkgs *is* part of the thesis.
<Dezgeg>
which one is a mistake?
<gchristensen>
Dezgeg: the way buildInputs and nativeBuildInputs magically transmutes its inputs to a cross version of what it needs
<Myrl-saki>
LnL: Oh okay, that at least explains the environment side.
<Dezgeg>
well, they also transmute the inputs that they pick
<gchristensen>
pkgs.hello, imo, should always be pkgs.hello, and passing it in to one attrset over another shouldn't, imo, transmute it
<booglewoogle>
sphalerite: oh you had that problem before on nixos? its really weird.
<Dezgeg>
well yes, but it's probably too painful to try changing that
<sphalerite>
booglewoogle: with graphics driver problems
<LnL>
gchristensen: agreed, but how do you get that in nixpkgs...
<gchristensen>
maybe? dunno
<Dezgeg>
and it's actually convenient in some contexts
<Dezgeg>
i.e. in a nixos option you're asked to pick services.foo.package = pkgs.foo_42;
<booglewoogle>
nixos-installing from a live medium didnt help, which makes me wonder if reinstalling nixos all over would...
<Dezgeg>
it would be quite annoying if you'd need both the native and cross version of that
<booglewoogle>
this is kinda worrisome :x
<Dezgeg>
I mean, have the user manually specify both of them
Thra11 has quit [Quit: WeeChat 1.4]
<sphalerite>
booglewoogle: and rolling back didn't fix it either?
<sphalerite>
as in booting into a previous, working generation
<Myrl-saki>
Oh okay. I think I'm just at the edge of craziness now. I made a nix file which converts org to LaTeX(through Emacs) and LaTeX to PDF.
<Myrl-saki>
:D
<Myrl-saki>
Oh yeah. What spawned my question.
jD91mZM2 has quit [Quit: WeeChat 2.0]
<Myrl-saki>
How do I add fonts to buildInputs?
<booglewoogle>
sphalerite: i can boot into an older generation, but nixos-rebuilding still breaks any generation it produces
<Myrl-saki>
Er, badly stated. How do I add fonts to the environment? I'm thinking it has something to do with fc-* so it's.. erm. difficult.
<booglewoogle>
from there
<sphalerite>
booglewoogle: oh ok so it's not *that* bad :p
<sphalerite>
you can roll back your channels
rfold has quit [Ping timeout: 276 seconds]
<sphalerite>
and report it on nixpkgs, specifying the last version that works and the first that doesn't
<booglewoogle>
hmm
<booglewoogle>
im currently on generation 80 on that pc, so that exists and booting into it works. when i go "nix-channel --rollback 80" it says generation 80 doesnt exist. am i missing something?
alex`` has quit [Quit: WeeChat 2.2]
<sphalerite>
channel generations are separate from system generations
<sphalerite>
the system generation increases every time you make a config change *or* a channel update and rebuild
<sphalerite>
the channel generation only increases when you nix-channel --update and a new version is available
<sphalerite>
just nix-channel --rollback should do
<Myrl-saki>
Then I scrolled up and saw the function name
<sphaugh>
hehe
<infinisil>
Well it will however fail at installPhase, but maybe that's preventable through setting out to something else
<Myrl-saki>
infinisil: dontInstall=true
<infinisil>
Ah!
<infinisil>
Nice
<Myrl-saki>
Or something like that, I really don't know. :P
<Myrl-saki>
if [[ "$curPhase" = installPhase && -n "${dontInstall:-}" ]]; then continue; fi
<Myrl-saki>
Just a guess.
arjen-jonathan has quit [Ping timeout: 276 seconds]
ennui has quit [Remote host closed the connection]
<inquisitiv3>
I've an configuration.nix file that I want to check for errors before I make a git commit. But I don't want the system to actually change when testing the file. What is the easiest and simplest solution to do that_
<inquisitiv3>
?
<tilpner>
nix-build --no-out-link '<nixpkgs/nixos>' -A system
<tilpner>
Almost identical to nixos-rebuild build
<infinisil>
inquisitiv3: Or just nixos-rebuild build
<infinisil>
Oh
<infinisil>
(you said that already)
<inquisitiv3>
Note that the file is located in a local directory and is in no way referenced in my system's configuration.nix file.
joebobjoe has joined #nixos
<inquisitiv3>
Should I run `nix-build --no-out-link '<nixpkgs/nixos>' -A system [path to configuration.nix]`?
vidbina has quit [Ping timeout: 244 seconds]
<infinisil>
nix-build --no-out-link '<nixpkgs/nixos>' --arg configuration /path/to/configuration.nix -A system
<infinisil>
Or `nixos-rebuild build -I nixos-config=/path/to/configuration.nix`
<tilpner>
Or even NIXOS_CONFIG=path/to/configuration.nix nix-build --no-out-link '<nixpkgs/nixos>' -A system
<inquisitiv3>
Is the two variants give the same result?