<samueldr>
julm: I have my doubts about that, since nixos/lib/make-system-tarball.nix used by nixos/modules/installer/cd-dvd/system-tarball.nix uses closureInfo
<samueldr>
and AFAIK we do have bootable iso images built on hydra
<julm>
samueldr: do you know if is it a wanted? a technical impossibility? or something to be fixed? And is there a way to run only a few selected tasks to reproduce the problem in the present case?
cole-h has quit [Ping timeout: 260 seconds]
<julm>
dminuoso: depending on the task at hand I would add a systemd's RuntimeDirectory, or use systemd's tmpfiles, or use mktemp -d
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JUhss
<samueldr>
and to run a couple tasks, definitely, but if it ends up failing because of *reasons* like (a past issue) the GC heap being too fragmented... that's not possible
<gambpang>
Hello! I'm playing around with disk encryption. Is there a way to use the dvorak keymap in the initrd? Also when I put in the wrong password it drops into a root shell rather than allowing me to retry.
jabster28 has quit [Client Quit]
jabster28 has joined #nixos
<hanetzer>
gambpang: assume so, what's your initrd provider? dracut/?
<pr06lefs>
hey I'm wanting to run a python package that isn't in nixpkgs. the directions say "pip install Snookey2". Found an article on how to do it the nix way, but I'm failing. I'm not a pythonista and that doens't help either.
<gambpang>
I did set console.keyMap but I could have messed some other stuff up
<samueldr>
which uses a while true
<pr06lefs>
can I use virtualenv and install it locally with pip? Currently I have read-only filesystem as the error.
<{^_^}>
[nixpkgs] @jonringer opened pull request #100003 → Fix staging next texinfo → https://git.io/JUhrF
sb0_ has joined #nixos
<sb0_>
hi
<sb0_>
I'm using hydra with declarative jobsets. I updated an input for a jobset and committed/pushed, but hydra isn't taking the new value into account, even after several checkinterval periods. I tried clearing VCS caches and restarting hydra-evaluator and hydra-queue-runner - to no avail
<{^_^}>
[nixpkgs] @jonringer pushed 2 commits to staging-next: https://git.io/JUho2
growpotkin has quit [Ping timeout: 246 seconds]
alp has joined #nixos
<sb0_>
okay it seems in fact hydra isn't processing my jobset declarations at all
<sb0_>
so the old ones are staying around
page has quit [Quit: leaving]
<sb0_>
and I have this kind of errors in the log:
<sb0_>
Oct 08 13:29:33 nixbld hydra-evaluator[22716]: ERROR: failed to process declarative jobset web:nixexprpath, Can't use string ("hydra/web.nix") as a HASH ref while "strict refs" in use at /nix/store/h0z0k67bvdf2ls0vsxg0y007723z5b29-hydra-2020-09-02/libexec/hydra/lib/Hydra/Helper/AddBuilds.pm line 48
<sb0_>
did the jobset specification change recently?
<{^_^}>
[nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/JUhim
knerten1 has joined #nixos
lsix has joined #nixos
knerten2 has quit [Ping timeout: 240 seconds]
ManiacOfMadness has quit [Ping timeout: 272 seconds]
ManiacOfMadness has joined #nixos
sangoma has joined #nixos
cole-h has joined #nixos
Ariakenom has joined #nixos
rihards has joined #nixos
cptrbn has joined #nixos
cptrbn has quit [Client Quit]
<simonpe^^>
I have a derivation whose output is a few binaries and a couple of scripts that manipulate the binaries. I would like to move the scripts out from the derivation and keep them in my global tools repo. The question is, if I run the tool in the directory of a default.nix - how would the tool be able to figure out the paths for all the binaries by querying the derivation after building it?
jabster28 has joined #nixos
pr06lefs has quit [Remote host closed the connection]
<{^_^}>
[nix-pills] @jonringer closed pull request #153 → Update example command to install `man` → https://git.io/JUZ15
<srhb>
simonpe^^: Can I ask why you want to do this? It sounds counter to the purpose of version matching the scripts with the binaries.
jabster28_ has joined #nixos
<{^_^}>
[nixpkgs] @austinbutler opened pull request #100009 → Google cloud asset fix → https://git.io/JUhXv
<{^_^}>
[nixpkgs] @tricktron opened pull request #100012 → bazel_1: fix build on darwin → https://git.io/JUhMg
jabster28_ has quit [Ping timeout: 240 seconds]
dermetfan has quit [Ping timeout: 272 seconds]
<simonpe^^>
srhb: basically we're building linux images using nix, and they all produce different sets of binaries depending on the platform - but I want a unified UX for flashing those images
civodul has joined #nixos
<simonpe^^>
srhb: so we've got the tools repo with the "base" derivation, then each platform repo creates a new derivation that picks out the correct binaries from its build and maybe does some patching or whatever
knerten1 has quit [Ping timeout: 240 seconds]
<simonpe^^>
srhb: so the developer should just be able to pick one of the platforms, hook the hardware to his computer, and then type a command like `flash-this-crap-to 192.168.1.94`
<simonpe^^>
that should trigger the nix-build, and call the product specific flash script with the product specific binaries in result/
<{^_^}>
[nixpkgs] @yihuang opened pull request #100013 → buildGoModule: check go.sum is up-to-date → https://git.io/JUhMA
<srhb>
simonpe^^: Hmm. Usually I like the directory approach. Like, you check out something, there's a shell that's relevant for this in particular, entering it brings a bunch of tools on $PATH that are relevant for the project in question
<srhb>
a shell ~ a shell.nix
<srhb>
Integrates nicely with direnv etc.
Ericson2314 has joined #nixos
Hirmes[m] has joined #nixos
Minijackson[m] has joined #nixos
abbec has joined #nixos
alexfmpe has joined #nixos
alexarice[m] has joined #nixos
Anonymous[m] has joined #nixos
alaskacanyon[m] has joined #nixos
barn0 has joined #nixos
bbigras has joined #nixos
bohan[m] has joined #nixos
betrion[m] has joined #nixos
mcaju has joined #nixos
colemickens has joined #nixos
das-g[m] has joined #nixos
crazazy[m] has joined #nixos
drozdziak1 has joined #nixos
davidak[m] has joined #nixos
dxu[m] has joined #nixos
felixfoertsch has joined #nixos
eddyb has joined #nixos
fzakaria1 has joined #nixos
hamishdehmer[m] has joined #nixos
hsiktas[m] has joined #nixos
GuillaumeChrel[m has joined #nixos
jgart[m] has joined #nixos
jtojnar has joined #nixos
jschievink has joined #nixos
kevincox[m] has joined #nixos
kisaja[m] has joined #nixos
kraem has joined #nixos
lndn[m] has joined #nixos
matthewkenigsber has joined #nixos
moben has joined #nixos
mkg20001 has joined #nixos
nilsirl[m] has joined #nixos
nikola[m] has joined #nixos
paalped[m] has joined #nixos
omasanori[m] has joined #nixos
regnat has joined #nixos
roberth has joined #nixos
siraben has joined #nixos
sjn[m] has joined #nixos
the_rajsun[m] has joined #nixos
ThaEwat has joined #nixos
theduke has joined #nixos
unclechu has joined #nixos
wak-work has joined #nixos
vaibhavsagar has joined #nixos
unrooted[m] has joined #nixos
zolk3ri[m] has joined #nixos
shu9 has joined #nixos
steve[m] has joined #nixos
jonte[m] has joined #nixos
timokau[m] has joined #nixos
leons has joined #nixos
alienpirate5 has joined #nixos
Ke has joined #nixos
ndarilek has joined #nixos
dominicusin[m] has joined #nixos
musicmatze has joined #nixos
ilya-fedin has joined #nixos
mmlb[m] has joined #nixos
anthony[m] has joined #nixos
aloiscochard[m] has joined #nixos
maralorn has joined #nixos
ZerataX has joined #nixos
esclear_m has joined #nixos
eadwu[m] has joined #nixos
aniketd[m] has joined #nixos
ptotter[m] has joined #nixos
rnhmjoj has joined #nixos
chreekat[m] has joined #nixos
juan[m] has joined #nixos
bpye has joined #nixos
jehova[m] has joined #nixos
doomer[m] has joined #nixos
tnias[m] has joined #nixos
bourbon has joined #nixos
georgyo[m] has joined #nixos
Guest76422 has joined #nixos
grahamc[m] has joined #nixos
ericdmoore[m] has joined #nixos
hsngrmpf[m] has joined #nixos
balsoft has joined #nixos
treed[m] has joined #nixos
dtz has joined #nixos
Amit[m] has joined #nixos
symphorien[m] has joined #nixos
ryantm has joined #nixos
phirsch has joined #nixos
ejpcmac has joined #nixos
pinage404[m] has joined #nixos
l_inus[m] has joined #nixos
cyberwolf[m] has joined #nixos
toto[m] has joined #nixos
q3k[m] has joined #nixos
georg[m] has joined #nixos
annemarie[m]2 has joined #nixos
arcnmx has joined #nixos
lahmilahsi[m] has joined #nixos
ialhamad[m] has joined #nixos
kaiha[m] has joined #nixos
codyopel has joined #nixos
SpaghettiCthulhu has joined #nixos
aterius has joined #nixos
ecou[m] has joined #nixos
ks2048[m] has joined #nixos
meow2142[m] has joined #nixos
domenkozar[m] has joined #nixos
TomaszKsiak[m] has joined #nixos
NobbZ[m] has joined #nixos
jonathan[m]3 has joined #nixos
killercup[m] has joined #nixos
bennofs[m] has joined #nixos
JJJollyjim has joined #nixos
yoctocell[m] has joined #nixos
reyman[m] has joined #nixos
sstreet[m] has joined #nixos
mnm[m] has joined #nixos
grin[m] has joined #nixos
pheoxy has joined #nixos
mindtree[m] has joined #nixos
axx has joined #nixos
hpfr has joined #nixos
quidome[m] has joined #nixos
yurb has joined #nixos
Ox4A6F has joined #nixos
Stphan[m] has joined #nixos
stu_[m] has joined #nixos
qbit[m] has joined #nixos
Dandellion has joined #nixos
ongy[m] has joined #nixos
wjjunyor[m] has joined #nixos
yisraeldov has joined #nixos
ptman_[m] has joined #nixos
superchonk[m] has joined #nixos
timotheel-f[m] has joined #nixos
AmitLevy[m] has joined #nixos
abcrawf has joined #nixos
worldofpeace has joined #nixos
yusdacra[m] has joined #nixos
srasu[m] has joined #nixos
crazymind-102[m] has joined #nixos
bloodyfish[m] has joined #nixos
ArtemVorotnikov[ has joined #nixos
sierraDelta has joined #nixos
tilcreator has joined #nixos
MrShatteredMirro has joined #nixos
MElemental[m] has joined #nixos
Valodim[m] has joined #nixos
truby has joined #nixos
Jake[m] has joined #nixos
nh2[m] has joined #nixos
l-as has joined #nixos
david-sawatzke[m has joined #nixos
IslandUsurper[m] has joined #nixos
bk1603[m] has joined #nixos
onny[m] has joined #nixos
kc[m] has joined #nixos
nicolas[m] has joined #nixos
cab404[m] has joined #nixos
amanjeev[m] has joined #nixos
Notkea[m] has joined #nixos
ma27[m] has joined #nixos
Preisschild has joined #nixos
callahad[m] has joined #nixos
lina[m] has joined #nixos
njha[m] has joined #nixos
us3r[m] has joined #nixos
theglenn888[m] has joined #nixos
sshow[m] has joined #nixos
hiroshi[m] has joined #nixos
fjodor[m] has joined #nixos
JankLoogi has joined #nixos
HumanJohn[m] has joined #nixos
daemon1024 has joined #nixos
jojosch|Johannes has joined #nixos
Hayden[m] has joined #nixos
rednaZ[m] has joined #nixos
l33[m] has joined #nixos
octowan[m] has joined #nixos
rschulman has joined #nixos
jt35[m] has joined #nixos
emily has joined #nixos
yangm has joined #nixos
aith[m] has joined #nixos
Yakulu[m] has joined #nixos
michaelpj has joined #nixos
philipp[m] has joined #nixos
joachimschmidt55 has joined #nixos
duktus[m] has joined #nixos
lurpahi has joined #nixos
kueckieben[m] has joined #nixos
danielrf[m] has joined #nixos
rycee has joined #nixos
slabity has joined #nixos
timclassic has joined #nixos
humancalico[m] has joined #nixos
ntnkwmkmnw[m] has joined #nixos
demoulin[m] has joined #nixos
hazel[m] has joined #nixos
jumper149[m] has joined #nixos
darkharmony9999[ has joined #nixos
mt[m] has joined #nixos
mica[m] has joined #nixos
scaroo[m] has joined #nixos
ramses[m] has joined #nixos
jlv has joined #nixos
colmeka has joined #nixos
jneplokh has joined #nixos
jbal[m] has joined #nixos
fgaz has joined #nixos
boogiewoogie[m] has joined #nixos
srxl has joined #nixos
srid has joined #nixos
nyu[m] has joined #nixos
menelaos[m] has joined #nixos
manu12[m] has joined #nixos
tristan[m] has joined #nixos
MilkManzJourDadd has joined #nixos
aanderse has joined #nixos
puzzlewolf has joined #nixos
CRTified[m] has joined #nixos
thefloweringash has joined #nixos
billsun has joined #nixos
inquisitiv3 has joined #nixos
daddy_james[m] has joined #nixos
faya01[m] has joined #nixos
SplitFire[m] has joined #nixos
Rian[m] has joined #nixos
tyrion-mx has joined #nixos
clefru_mm has joined #nixos
felschr[m] has joined #nixos
vpfeiffer[m] has joined #nixos
mmk2410[m] has joined #nixos
surf76[m] has joined #nixos
chinmayxd[m] has joined #nixos
neonfuz2 has joined #nixos
dxb[m] has joined #nixos
JaakkoLuttinen[m has joined #nixos
jfaassen[m] has joined #nixos
ghasshee[m] has joined #nixos
leonardp has joined #nixos
not7cd[h][m] has joined #nixos
AntonioYang[m] has joined #nixos
sparogy has joined #nixos
cchalc[m] has joined #nixos
schmittlauch[m] has joined #nixos
porphyrogenetos has joined #nixos
user_account[m] has joined #nixos
evils[m] has joined #nixos
spudly[m] has joined #nixos
Avoozl[m] has joined #nixos
qrilka[m] has joined #nixos
gnxlxnxx[m] has joined #nixos
yeongsheng_tan[m has joined #nixos
verum_alpha[m] has joined #nixos
bjtitus[m] has joined #nixos
Alex[m]5 has joined #nixos
martha[m] has joined #nixos
habbasi[m] has joined #nixos
test128383[m] has joined #nixos
a4wc6n[m] has joined #nixos
mullein[m] has joined #nixos
fatjedi[m] has joined #nixos
DanP[m] has joined #nixos
ipv6[m] has joined #nixos
tangotrotfox[m] has joined #nixos
hr[m] has joined #nixos
alp has joined #nixos
<simonpe^^>
srhb: yeah, that's probably the way it "should" be done
<simonpe^^>
srhb: rn i generate the scripts within the derivation and put them in result/bin
cr4y1 has joined #nixos
<simonpe^^>
maybe I could just put the argparsing code in its own function in the tools repo and the different platforms can extend on that to achieve a unified interface, and export these scripts as nativeBuildInputs for running in nix-shell
<{^_^}>
[nix] @edolstra merged pull request #4121 → Support user namespaces being disabled → https://git.io/JUppE
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sigmundv__ has joined #nixos
Narice has joined #nixos
Chiliparrot has joined #nixos
johanot has joined #nixos
dsal has joined #nixos
digitalgrease has joined #nixos
ProofTechnique has joined #nixos
taktoa[c] has joined #nixos
dvim has joined #nixos
d1rewolf has joined #nixos
thc202 has joined #nixos
Narice has quit [Ping timeout: 240 seconds]
Narice has joined #nixos
knerten1 has joined #nixos
<spacekookie>
My nginx doesn't come up anymore because of this error: [emerg] open() "/var/spool/nginx/logs/access.log" failed (30: Read-only file system) - Only #56255 came up in my search, but that was a while ago. Anyone know what changed or what I have to change to make this work again?
<{^_^}>
[nixpkgs] @vbgl pushed commit from @hongchangwu to master « ocamlPackages.fmt: 0.8.8 -> 0.8.9 »: https://git.io/JUhAZ
knerten2 has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @siraben opened pull request #100022 → zig: mark as broken on darwin → https://git.io/JUhAy
Ariakenom has quit [Ping timeout: 240 seconds]
arcnmx has quit [Quit: Idle for 30+ days]
<typetetris>
Hmm, I am thinking. nixos unstable doesn't contain unstable software, right? It is just the packaging, that is regarded unstable? So if I get a shell.nix to work with a pinned nixos unstable, it should be ok for production (the shell.nix stuff), too?
liuyb has joined #nixos
eta has quit [Quit: we're here, we're queer, connection reset by peer]
eta has joined #nixos
<typetetris>
@spacekookie checked dmesg for hardware or filesystem faults? filesystems often get remounted ro in case of failures.
<boogiewoogie[m]>
hey, I have a very simple external, out-of-tree kernel module I'm trying to include in my system and load on boot via configuration.nix. is this possible at all? if so, how?
sputny has quit [Read error: Connection reset by peer]
<avaq>
Hi all! Does anyone have experience running the Steam streaming_client (as a client) on NixOS? I've been trying, but at worst, the client crashes without an error message, and at best, it runs ("excellently" according to the logs), but without any visible result.
knupfer has quit [Ping timeout: 240 seconds]
misterio has joined #nixos
misterio has quit [Client Quit]
<lassulus>
avaq: I used it successfully a couple of weeks ago, with some performance issues. I have opened the ports 27031 and 27036 tcp and udp
<avaq>
lassulus, I have not opened any ports. I occasionally, under a specific configuration, managed to get the error message: "Cannot connect to remote server" or something of the sorts. Perhaps that was the closest I got, but without open ports! I'll give that a try! :)
grobi has quit [Quit: WeeChat 2.8]
knupfer has joined #nixos
kapil_ has joined #nixos
zupo has joined #nixos
spacekookie has quit [Quit: **aggressive swooshing**]
ixxie has joined #nixos
spacekookie has joined #nixos
D_ has quit [Ping timeout: 272 seconds]
<spacekookie>
typetetris: Hm so the weird thing is that /var/spool isn't actually a ro fs?!
<spacekookie>
I can go and touch files, and the nginx user has access to that directory (and can edit the file)
sputny has quit [Ping timeout: 260 seconds]
<typetetris>
@spacekookie: Just in case you missed it, did you try writing to a file in `/var/spool/nginx/logs` too? Might be a different fs (unlikely, but be sure).
<spacekookie>
Yea that worked too
<typetetris>
@spacekookie: That seems really strange, maybe take a look at the systemd unit for nginx if it contains something spooky?
<spacekookie>
I'm gonna try just moving the logs to /var/log and see what that does
<Taneb>
Might it have been a read-only filesystem when nginx was starting
<Taneb>
Can you restart nginx successfully?
<spacekookie>
I didn't realise I was setting it to be on /var/spool
<spacekookie>
Taneb: I can't no
<spacekookie>
Not sure why it broke though because this used to be fine :(
<{^_^}>
[docker] @Staff-d opened pull request #27 → Update the readme to warn users about the missing sandbox. → https://git.io/JUhhF
<Philonous>
I'm trying to package HP's proprietary printer drivers for use in cups. After some debugging I'm now facing the problem that a binary (rastertospl) is trying to dlopen a library (libscmssc.so), but doesn't find it and I can't put it into the places it's looking. What's the standard way of fixing this? Write a wrapper that sets LD_LIBRARY_PATH?
alp has quit [Ping timeout: 240 seconds]
sputny has joined #nixos
cosimone has joined #nixos
alp has joined #nixos
<{^_^}>
[nixpkgs] @delroth opened pull request #100024 → sudo: 1.8.31p1 -> 1.9.3p1 + adding myself as maintainer → https://git.io/JUhj0
<Philonous>
Oh, I guess that's what the rpath is for
<avaq>
lassulus, when I press "stream" on my Steam client, I see a few things happening: First some session negotiation log lines on Steams stdout indicating successful establishment of a streaming session. This leads me to believe my problem is not network related.
<avaq>
Briefly a new empty window opens in my tiling window manager, before immediately "popping out" as a full-screen window on my primary monitor, showing all-black contents. After a few seconds, this full-screen window disappears.
<avaq>
Did you have any problems of the sort you've had to solve?
knerten1 has quit [Ping timeout: 240 seconds]
<avaq>
With the window gone, the Steam stdout logs seem to indicate that streams are happening and everything is fine, except that I see a lot of spam in the logs saying: "Marking frame X complete with status k_EStreamFrameResultDroppedLate".
<avaq>
Now when I press "stop" in the Steam client, it logs some final report saying that no frames were lost, network was great, etc.
__monty__ has joined #nixos
Ariakenom has joined #nixos
<avaq>
I can see in my process manager that even though the full-screen window disappeared, the streaming_client process is still running. Under a different configuration this process could also crash.
vidbina has quit [Ping timeout: 246 seconds]
sputny has quit [Quit: sputny]
sputny has joined #nixos
<{^_^}>
[nixpkgs] @ardumont opened pull request #100026 → Drop spidermonkey from aliases → https://git.io/JUjeA
ericsagnes has quit [Ping timeout: 240 seconds]
<ardumont>
timokau[m]: ^ is that what you had in mind?
<{^_^}>
[nixpkgs] @Scriptkiddi opened pull request #100027 → pythonPackages.googlemaps: init at 4.4.2 → https://git.io/JUjv4
orivej has joined #nixos
<{^_^}>
[nixpkgs] @Scriptkiddi opened pull request #100028 → pythonPackage.openrouteservice: init at 2.3.0 → https://git.io/JUjvx
ericsagnes has joined #nixos
sputny has quit [Quit: sputny]
Narice has quit [Ping timeout: 240 seconds]
sputny has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
Narice has joined #nixos
orivej has joined #nixos
jani1234 has joined #nixos
alexherbo2 has joined #nixos
zupo_ has joined #nixos
jani1234 has quit [Ping timeout: 272 seconds]
srhm has joined #nixos
cfricke has joined #nixos
zupo has quit [Ping timeout: 272 seconds]
dermetfan has joined #nixos
meh` has joined #nixos
Narice has quit [Ping timeout: 246 seconds]
dermetfan has quit [Remote host closed the connection]
NinjaTrappeur has quit [Ping timeout: 272 seconds]
<lassulus>
maybe 20.09 was faster updated?
<lassulus>
avaq: hmm, well it works for me, not sure how I can help
fendor has joined #nixos
hamishdehmer[m] has quit [Quit: Idle for 30+ days]
cosimone has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
fendor_ has joined #nixos
octowan[m] has quit [Quit: Idle for 30+ days]
malook has joined #nixos
griff_ has quit [Quit: griff_]
malook has quit [Client Quit]
fendor has quit [Ping timeout: 260 seconds]
nuh^ has quit []
cfricke has joined #nixos
tsrt^ has joined #nixos
liuyb has joined #nixos
dermetfan has joined #nixos
Ariakenom has quit [Ping timeout: 260 seconds]
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
srhm has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
liuyb has quit [Ping timeout: 240 seconds]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
cfricke has quit [Ping timeout: 265 seconds]
<grobi>
as i see, respawn, you are an audiophile too
<bk1603[m]>
I was reading nix pills, but I got confused where the book explains why are derivations out paths are provided before we actually build the derivation. The book says if we were to access firefox, and we built it just when it was clicked, it'd be very slow, to which I agree. But how does having predefined output paths solve this problem?
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bk1603[m]>
The book says after giving us the path nix keeps evaluation the nix-expression. Is this where the derivation is actually built? If it is then we can still have the path after the derivation is built.
<simpson>
bk1603[m]: In brief, the output artifacts have to be put somewhere ($out), so that location has to be defined before the artifacts are moved there. The payoff is that, when that location exists, the artifacts will already be located there.
zupo has joined #nixos
<bk1603[m]>
simpson: Umm, couldn't understand the payoff part. We predetermine where the package will be, then we move the package there right? What do you mean by the artifacts will "already" be there?
zupo_ has joined #nixos
<Philonous>
bk1603[m], I think the point the author is making is that you don't have to instantiate the derivation (that is, in the example, build firefox), to know all the fields of the derivation.
<bk1603[m]>
Philonous: Oh! I get it now. If nix only every built a derivation when we accessed it, and we tried accessing a derivation using `nix show-derivation` it would take a long time in the case of firefox.
<karantan>
I want to check if all symbolic links (certificates) exists and if any is missing I want to delete it. I have one line bash command for this
<karantan>
but I'm having problems adding it to the prestart step
<simpson>
Philonous++ for successful communication
<karantan>
but obviously I don't have `haproxyCfg` variable defined
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<simpson>
karantan: I am not sure, but I think that ExecStartPre is defined so that it can be specified in multiple modules, and each specification adds more lines to a single multiline script. If that's the case, then you don't need to preserve the call to `haproxy -c` because it will be added by the system module for you. (This is a pattern in NixOS.)
<simpson>
If that doesn't work, then you can write a new systemd unit which runs right before haproxy and runs your command.
<karantan>
it doesn't work:
<karantan>
error: The option `systemd.services.haproxy.serviceConfig.ExecStartPre' has conflicting definitions, in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/networking/haproxy.nix' and `/etc/nixos/extra-configuration.nix'.
<karantan>
(use '--show-trace' to show detailed location information)
<karantan>
> If that doesn't work, then you can write a new systemd unit which runs right before haproxy and runs your command.
<{^_^}>
error: syntax error, unexpected ',', expecting ')', at (string):325:21
<karantan>
ok
<simpson>
Alas. So then you'll have to make your own unit and add `wantedBy = ["haproxy.service"];` or something like that.
<simpson>
(You'll want to read systemd's man pages to see exactly how the whole dependency system works; I'm sure that there exists some way to run a unit right before another unit starts, but I'm not sure what it is.)
<{^_^}>
[nixpkgs] @ju1m opened pull request #100031 → gnupg: make libexec tools available in PATH → https://git.io/JUjn5
orivej has joined #nixos
knupfer has quit [Client Quit]
knupfer1 has joined #nixos
andreas303 has joined #nixos
knupfer1 has quit [Client Quit]
knupfer has joined #nixos
knupfer1 has joined #nixos
knupfer has quit [Read error: Connection reset by peer]
knupfer1 is now known as knupfer
cfricke has joined #nixos
czer00 has joined #nixos
aswanson has quit [Quit: aswanson]
sr-hm has joined #nixos
aswanson has joined #nixos
wnklmnn has joined #nixos
zupo has joined #nixos
<aswanson>
anyone running a unifi controller service on a raspberry pi? been trying to get it running for a bit and mongodb keeps dumping core when I run the service
srhm has quit [Ping timeout: 264 seconds]
<dminuoso>
aswanson: Is that a 32bit pi?
sputny has quit [Remote host closed the connection]
<dminuoso>
Or rather, is the nixos on that pi 32bit?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<worldofpeace>
I believe it should be green again soon
supercoven has joined #nixos
supercoven has quit [Max SendQ exceeded]
supercoven has joined #nixos
Sanchayan has quit [Quit: leaving]
<bbigras>
nixos-unstable is green in my view. Last updated says "in 3 hours". I think I need to fix my clock.
NeoCron has quit [Remote host closed the connection]
zupo has joined #nixos
zupo has quit [Client Quit]
ericsagnes has joined #nixos
<bbigras>
oh it's "an hour ago" with the right time
knerten2 has joined #nixos
<siraben>
When pinning nixpkgs, should I use builtins.fetchTarball or pkgs.fetchFromGitHub?
proofofkeags has joined #nixos
<bbigras>
I use niv for that.
liuyb has joined #nixos
<siraben>
bbigras: Ah, I haven't used niv yet, but if you had to choose between the two functions which one is better?
supercoven has quit [Ping timeout: 260 seconds]
<worldofpeace>
siraben: by using fetchFromGitHub u have to evaluate a host nixpkgs. with bulitins all you need is nix
knerten1 has quit [Ping timeout: 272 seconds]
<worldofpeace>
depending on the situation fetchFromGitHub will be better since, IIRC, fetchTarball has a cache that will expire and you will need to fetch it again
fendor__ has joined #nixos
liuyb has quit [Ping timeout: 265 seconds]
orivej has quit [Ping timeout: 240 seconds]
sheel_ has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
growpotkin has joined #nixos
<timokau[m]>
ardumont: Yes, thank you! (IRC is usually not the best way to reach me, I get email notifications but that's not ideal for synchronous chat)
zupo has joined #nixos
zupo has quit [Client Quit]
<dminuoso>
siraben: Consider my case yesterday!
<dminuoso>
siraben: Using pkgs.fetchFromGitHub easily leads to infinite recursion when trying to import that same nixpkgs.
<dminuoso>
Say, if you did `let my = pkgs.fetchFromGitHubg { ... }; myPkgs = import my {}; ....` then using myPkgs will lead to infinite recursion
<dminuoso>
So you have no choice but to use builtins.fetchTarball
<dminuoso>
The reasons were elaborated in the chat if you're curious
<siraben>
ah, i'll take a look!
<dminuoso>
(So it's not even a choice, really)
hnOsmium0001 has joined #nixos
<{^_^}>
[nixpkgs] @NeQuissimus pushed 14 commits to master: https://git.io/JUjun
<siraben>
I have a collision resulting from using a package from a newer version of nixpkgs, how can I set the priority?
<siraben>
collision between `/nix/store/fxnqqcs5iixzdnpqani1c5prahvmvwb1-haskell-language-server-0.4.0.0/lib/links/libHSdistributive-0.6.2-FTsOdLvXelb4IxLgDCmRNI-ghc8.8.4.dylib' and `/nix/store/4mnfbjil68l7qblwv1dlgki1ibib3bs0-ghcide-0.4.0/lib/links/libHSdistributive-0.6.2-FTsOdLvXelb4IxLgDCmRNI-ghc8.8.4.dylib'
<neothefox>
hey everyone, I'm migrating my server to NixOS right now, and I really like it so far! However, there is an issue with pretty much vanilla nextcloud config, both on 20.03 and 20.09 - some settings can't be changed by the admin at all. What's worse is that there are no indications in the journal or the logs to even give a hint about what could be wrong... Am I missing something? https://pastebin.com/CGDgwDjW
fendor_ has joined #nixos
never_released has quit [Ping timeout: 272 seconds]
<neothefox>
I should also say, 18.xx nextcloud version also had this issue
<{^_^}>
[nix] @edolstra pushed to master « Remove stray 'Title:' from the manual »: https://git.io/JUjaM
<{^_^}>
[nix] @edolstra closed pull request #4096 → Remove title for nix-env → https://git.io/JUyiE
griff_ has joined #nixos
nature has joined #nixos
zupo has joined #nixos
zupo has quit [Client Quit]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Ariakenom has quit [Ping timeout: 264 seconds]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
cole-h has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
cosimone has quit [Remote host closed the connection]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
cosimone has joined #nixos
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
leungbk has joined #nixos
<neothefox>
welp, looks like it's a firefox/nextcloud issue, not a nixos issue - it all works in Brave. Very strange, and it wasn't the case with the same NextCloud version on my previous Debian installation
<jkt>
so, why does the pkg-config wrapper mangle its environment? I'm trying to use an env created by nix-shell *and* also installing some of my tools into my own custom prefix
<jkt>
I'm setting PKG_CONFIG_PATH properly (to point to my stuff), and when I run this script of mine via the `pkg-config` wrapper that's provided by /nix/store/z8ygmkgjg0h31h44sj1fs26hhy1kh9ag-pkg-config-wrapper-0.29.2/bin/pkg-config, I see that it's doing stuff like this:
<{^_^}>
[nixpkgs] @gebner pushed commit from @avdv to release-20.09 « notmuch: 0.30.1c80020 -> 0.31 »: https://git.io/JUjoX
cyphase has joined #nixos
zupo has joined #nixos
zupo has quit [Client Quit]
<{^_^}>
[nixpkgs] @rnhmjoj pushed 7 commits to release-20.09: https://git.io/JUjKm
<judson>
Is there a way to configure the nix run default command?
sr-hm has quit [Read error: Connection reset by peer]
<judson>
Put another way, why is it bash and not e.g. the calling shell, or the user's shell?
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JUjKZ
sr-hm has joined #nixos
sr-hm has quit [Read error: Connection reset by peer]
sr-hm has joined #nixos
knerten1 has joined #nixos
<cole-h>
Which version of Nix are you running?
<cole-h>
Because all `nix run` has done in recent months is run a binary from a package. And `nix shell` does indeed use the user's shell.
sr-hm has quit [Read error: Connection reset by peer]
knerten2 has quit [Ping timeout: 265 seconds]
<cole-h>
judson: You can try setting NIX_BUILD_SHELL to the path of your preferred shell.
alp has quit [Ping timeout: 272 seconds]
sr-hm has joined #nixos
<judson>
2.3.6
<judson>
For me, nix run <package>, by default, starts bash with package in scope, something like what nix-shell -p would
<cole-h>
Yeah, things have changed in that regard in recent months (but these changes have not seen a release aside from using nixUnstable)
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
knupfer has quit [Client Quit]
<judson>
So now nix run skips the step of running the executable in bash? Reasonable.
knupfer has joined #nixos
knupfer has joined #nixos
<cole-h>
e.g. `nix shell` is now an analogue to `nix-shell`, which brings the package into scope, and `nix run` runs the binary of that package outright
<{^_^}>
[nixpkgs] @timokau closed pull request #82429 → Init gerbera package and reuse mediatomb service → https://git.io/Jv6Ve
jani1234 has quit [Ping timeout: 256 seconds]
leo60228 has joined #nixos
<leo60228>
hi, i'm running nixos on a pi 4 and have both an issue and a question
<leo60228>
the issue is that whenever i boot it boots to generation 1
<leo60228>
which is quite annoying as generation 1 is missing most of my configuration (incl. what's necessary for ssh to work) so i have to connect a keyboard and display whenever i reboot
knerten2 has joined #nixos
<leo60228>
the question is that i have a local derivation that takes several hours to build on my Pi but only a few minutes to cross-compile from my laptop or desktop
<leo60228>
is there any clean way to get that derivation specifically to build on an x86 machine?
<{^_^}>
[nixpkgs] @thoughtpolice pushed 2 commits to master: https://git.io/JUjyB
<leo60228>
cinimod: generally, it should be using a path set at build time. if it gets it from the path, you can use makeWrapper or write a patch to use an absolute path
zacts has quit [Quit: leaving]
<leo60228>
s/the path/$PATH
zacts has joined #nixos
alexherbo2 has quit [Ping timeout: 240 seconds]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<{^_^}>
[nixpkgs] @siraben opened pull request #100042 → oberon-risc-emu: init at unstable-2020-08-18 → https://git.io/JUjSt
<anthony[m]>
What's the best way to try NixOS in a VM? I see there are some Vagrant Boxes, but they look like they aren't up to date?
liuyb has quit [Ping timeout: 260 seconds]
<dutchie>
just.... create a VM and install nixos into it?
<dutchie>
am i too old-fashioned?
alp has joined #nixos
zacts has quit [Quit: leaving]
<NobbZ[m]>
Last time I checked you could download prebuilt OVAs for virtual box.
k2s has joined #nixos
<anthony[m]>
No, that's a fair point. I'm just not super familiar with VMs. Usually I just create an Ubuntu 18.04 image with Vagrant whenever I need an environment to test something in.
<ardumont>
does someone know if there is a way to replace a systemd service from the current nixos stable version by the one from unstable? (if that makes sense ;)
<Philonous>
I'm trying to write a derivation for proprietary, binary-only program. One of the dynamic library files has the path of a data file hard-coded into it (/opt/smfp-common/scanner/share/pagesize.xml). How do I fix that?
<mgsk>
So I'm trying and failing miserably to do this: there's a github repo that has a script, and I want that script to be installed as part of my configuration.nix, so that when I move my config to a new pc I don't have to worry about installing it all again. I've pieced together a derivation that clones the repo, but I can't figure out how to actually install the script
<{^_^}>
[nixpkgs] @marsam pushed 3 commits to release-20.09: https://git.io/JTeOh
wnklmnn has quit [Quit: Leaving]
ris has quit [Ping timeout: 240 seconds]
knerten1 has joined #nixos
leungbk has joined #nixos
leungbk has quit [Remote host closed the connection]
tokudan has quit [Remote host closed the connection]
knerten2 has quit [Ping timeout: 240 seconds]
<danderson>
okay, I have a bit of a bizarre bug with my nixos desktop: my chrome windows all stutter by several seconds to update when typing or rendering video... But only when I'm not moving the mouse.
<danderson>
If there's mouse movement, everything is fluid and snappy. Stop moving the mouse, it goes all choppy again.
<danderson>
I put it to you: what the hell?
tokudan has joined #nixos
jabster28 has joined #nixos
bro123 has joined #nixos
bro123 has left #nixos [#nixos]
grobi has quit [Remote host closed the connection]
acarrico has quit [Ping timeout: 272 seconds]
mbrgm_ has joined #nixos
knerten2 has joined #nixos
jabster28 has quit [Ping timeout: 272 seconds]
acarrico has joined #nixos
mbrgm has quit [Ping timeout: 272 seconds]
mbrgm_ is now known as mbrgm
knerten1 has quit [Ping timeout: 260 seconds]
astylian_ has quit [Ping timeout: 240 seconds]
zakame_ has quit [Remote host closed the connection]
srhm has quit [Ping timeout: 240 seconds]
pr06lefs has quit [Ping timeout: 260 seconds]
zakame_ has joined #nixos
julm has joined #nixos
cinimod has joined #nixos
zakame has joined #nixos
mDuff has joined #nixos
zakame_ has quit [Ping timeout: 240 seconds]
ManiacOfMadness has quit [Ping timeout: 272 seconds]