<iqubic>
Is there a corresponding option for monitor brightness keys? My keyboard has XF86MonBrightnessUp and Down keys.
timokau has joined #nixos
<boomshroom>
iqubic: Sadly, I don't know what commands would map to that and if you could find them, they'd have to be manually added to services.actkbd.bindings.
jrolfs has quit [Ping timeout: 240 seconds]
<iqubic>
I was just planning on mapping "xbacklight + 5" and "xbacklight - 5" to those.
blonkhart has joined #nixos
jperras has quit [Ping timeout: 268 seconds]
jrolfs has joined #nixos
<boomshroom>
iqubic: That makes things easier. Now I just need to find how to check what id those keys have. After that, you can use the entries in alsa.nix as a template and substitue the values for the backlight keys and commands.
<iqubic>
Isn't it just XF86MonBrightnessUp and XF86MonBrightnessDown?
techtangents[m] has quit [Ping timeout: 240 seconds]
DIzFer[m] has quit [Ping timeout: 240 seconds]
leoleoleotest[m] has quit [Ping timeout: 240 seconds]
<iqubic>
Oh, no it really isn't.
reactormonk[m] has quit [Ping timeout: 240 seconds]
ison[m] has quit [Ping timeout: 240 seconds]
lazygun[m] has quit [Ping timeout: 240 seconds]
pierrebeaucamp[m has quit [Ping timeout: 240 seconds]
asp_ has quit [Ping timeout: 240 seconds]
hl has quit [Ping timeout: 240 seconds]
nh2[m] has quit [Ping timeout: 240 seconds]
nelag[m] has quit [Ping timeout: 246 seconds]
bkchr[m] has quit [Ping timeout: 246 seconds]
ConorCurry[m] has quit [Ping timeout: 246 seconds]
M-dpetranek has quit [Ping timeout: 246 seconds]
smrtak[m] has quit [Ping timeout: 246 seconds]
cornu[m] has quit [Ping timeout: 246 seconds]
LiuWeiHua[m] has quit [Ping timeout: 246 seconds]
chatnowvvv[m] has quit [Ping timeout: 245 seconds]
timokau[m] has quit [Ping timeout: 245 seconds]
Minijackson[m] has quit [Ping timeout: 245 seconds]
felipeac[m] has quit [Ping timeout: 245 seconds]
Elephant454[m] has quit [Ping timeout: 245 seconds]
primeos[m] has quit [Ping timeout: 245 seconds]
musicmatze[m] has quit [Ping timeout: 245 seconds]
bennofs[m] has quit [Ping timeout: 245 seconds]
superusercode has quit [Ping timeout: 256 seconds]
AllanDaemon has quit [Ping timeout: 256 seconds]
bachp has quit [Ping timeout: 256 seconds]
srini[m] has quit [Ping timeout: 256 seconds]
chominist[m] has quit [Ping timeout: 256 seconds]
benasse has quit [Ping timeout: 256 seconds]
gh0st[m] has quit [Ping timeout: 256 seconds]
turok9[m] has quit [Ping timeout: 256 seconds]
itorres has quit [Ping timeout: 256 seconds]
Orbstheorem[m] has quit [Ping timeout: 256 seconds]
jgl[m] has quit [Ping timeout: 256 seconds]
Deleh[m] has quit [Ping timeout: 256 seconds]
mith[m] has quit [Ping timeout: 256 seconds]
kainospur[m] has quit [Ping timeout: 256 seconds]
spawnthink[m] has quit [Ping timeout: 256 seconds]
purewater[m] has quit [Ping timeout: 256 seconds]
octowan[m] has quit [Ping timeout: 256 seconds]
atopuzov[m] has quit [Ping timeout: 256 seconds]
wilornel has quit [Ping timeout: 256 seconds]
aspiwack[m] has quit [Ping timeout: 256 seconds]
AntonLatukha[m] has quit [Ping timeout: 255 seconds]
leons has quit [Ping timeout: 255 seconds]
aramiscd[m] has quit [Ping timeout: 255 seconds]
clacke[m] has quit [Ping timeout: 255 seconds]
xodbox[m] has quit [Ping timeout: 255 seconds]
thra11[m] has quit [Ping timeout: 255 seconds]
PeterRomfeld[m] has quit [Ping timeout: 255 seconds]
m4rv33n[m] has quit [Ping timeout: 255 seconds]
mirlur[m] has quit [Ping timeout: 255 seconds]
imbigbrother[m] has quit [Ping timeout: 255 seconds]
YuFanLovezYou[m] has quit [Ping timeout: 255 seconds]
admin[m]4 has quit [Ping timeout: 256 seconds]
bhipple[m] has quit [Ping timeout: 256 seconds]
peterhoeg has quit [Ping timeout: 256 seconds]
BurNiinTRee[m] has quit [Ping timeout: 256 seconds]
baconicsynergy[m has quit [Ping timeout: 256 seconds]
crystalgamma[m] has quit [Ping timeout: 256 seconds]
matrixkrav has quit [Ping timeout: 256 seconds]
lolipducker[m] has quit [Ping timeout: 256 seconds]
benkolera1 has quit [Ping timeout: 246 seconds]
amiloradovsky[m] has quit [Ping timeout: 246 seconds]
randomenduser[m] has quit [Ping timeout: 256 seconds]
olejorgenb[m] has quit [Ping timeout: 256 seconds]
grahamc has quit [Ping timeout: 246 seconds]
zie[m] has quit [Ping timeout: 246 seconds]
unlmtd has quit [Ping timeout: 256 seconds]
herzmeister[m] has quit [Ping timeout: 256 seconds]
neecro[m] has quit [Ping timeout: 246 seconds]
M-ms has quit [Ping timeout: 246 seconds]
efx[m] has quit [Ping timeout: 246 seconds]
bobvanderlinden_ has quit [Ping timeout: 246 seconds]
kitten[m] has quit [Ping timeout: 246 seconds]
nmikhailov[m]1 has quit [Ping timeout: 246 seconds]
nmikhailov[m] has quit [Ping timeout: 246 seconds]
dywedir[m] has quit [Ping timeout: 246 seconds]
CoopDot has quit [Ping timeout: 246 seconds]
codyopel has quit [Ping timeout: 246 seconds]
swayf[m] has quit [Ping timeout: 276 seconds]
ipj[m] has quit [Ping timeout: 256 seconds]
Naughtmare[m] has quit [Ping timeout: 276 seconds]
Taneb has quit [Ping timeout: 265 seconds]
peterbat[m] has quit [Ping timeout: 240 seconds]
adisbladis[m] has quit [Ping timeout: 240 seconds]
johnnydread[m] has quit [Ping timeout: 240 seconds]
wervenyt[m] has quit [Ping timeout: 240 seconds]
regnat[m] has quit [Ping timeout: 240 seconds]
r3mfKm[m] has quit [Ping timeout: 240 seconds]
roygobeilantoine has quit [Ping timeout: 240 seconds]
etu[m] has quit [Ping timeout: 240 seconds]
YegorTimoshenko[ has quit [Ping timeout: 240 seconds]
DenisLehmann[m] has quit [Ping timeout: 240 seconds]
enick_350 has quit [Ping timeout: 240 seconds]
malteof[m] has quit [Ping timeout: 240 seconds]
magnap has quit [Ping timeout: 240 seconds]
thefloweringash[ has quit [Ping timeout: 240 seconds]
yochai[m] has quit [Ping timeout: 240 seconds]
chedi[m] has quit [Ping timeout: 240 seconds]
octalsrc[m] has quit [Ping timeout: 240 seconds]
rycee has quit [Ping timeout: 240 seconds]
hedning[m] has quit [Ping timeout: 240 seconds]
trikl[m] has quit [Ping timeout: 240 seconds]
ploud777[m] has quit [Ping timeout: 240 seconds]
TimePath has quit [Ping timeout: 240 seconds]
mbrgm has quit [Ping timeout: 264 seconds]
moosh_vectra[m] has quit [Ping timeout: 245 seconds]
abbafei[m] has quit [Ping timeout: 245 seconds]
retrry[m] has quit [Ping timeout: 245 seconds]
spacekitteh[m] has quit [Ping timeout: 245 seconds]
h30[m] has quit [Ping timeout: 245 seconds]
<boomshroom>
iqubic: Ah! The readme says that actkbd -n -s will print out the keycodes for the keys you press. You can also probably just find a table that gives the keycodes for those keys.
happyente[m] has quit [Ping timeout: 260 seconds]
jbarthelmes[m] has quit [Ping timeout: 260 seconds]
peel[m] has quit [Ping timeout: 240 seconds]
scott has quit [Ping timeout: 240 seconds]
aniketd[m] has quit [Ping timeout: 240 seconds]
thunker[m] has quit [Ping timeout: 240 seconds]
equalunique[m] has quit [Ping timeout: 240 seconds]
saschaveres[m] has quit [Ping timeout: 240 seconds]
necronian has quit [Ping timeout: 255 seconds]
mankyKitty[m] has quit [Ping timeout: 255 seconds]
dpc has quit [Ping timeout: 255 seconds]
danielrf has quit [Ping timeout: 255 seconds]
demyan[m] has quit [Ping timeout: 255 seconds]
paperdigits[m] has quit [Ping timeout: 255 seconds]
tet[m] has quit [Ping timeout: 246 seconds]
M-bbigras has quit [Ping timeout: 246 seconds]
florianjacob has quit [Ping timeout: 246 seconds]
fearlessKim[m] has quit [Ping timeout: 246 seconds]
smbarte2[m] has quit [Ping timeout: 246 seconds]
Khorne[m] has quit [Ping timeout: 246 seconds]
das-g[m] has quit [Ping timeout: 246 seconds]
dkellner[m] has quit [Ping timeout: 246 seconds]
wzy8L-B2[m] has quit [Ping timeout: 246 seconds]
rihardsk[m] has quit [Ping timeout: 246 seconds]
jmorriss[m] has quit [Ping timeout: 246 seconds]
davidar has quit [Ping timeout: 246 seconds]
copumpkin has quit [Ping timeout: 256 seconds]
wmertens[m] has quit [Ping timeout: 256 seconds]
briansteffens[m] has quit [Ping timeout: 256 seconds]
sudoreboot[m] has quit [Ping timeout: 256 seconds]
M-manveru has quit [Ping timeout: 256 seconds]
Singularity[m] has quit [Ping timeout: 256 seconds]
johnhamelink[m] has quit [Ping timeout: 256 seconds]
revoltmedia[m] has quit [Ping timeout: 256 seconds]
Oo[m] has quit [Ping timeout: 256 seconds]
rnhmjoj[m] has quit [Ping timeout: 256 seconds]
EuAndreh[m] has quit [Ping timeout: 256 seconds]
FRidh[m] has quit [Ping timeout: 256 seconds]
GuillaumeBuisson has quit [Ping timeout: 256 seconds]
moredhel has quit [Ping timeout: 256 seconds]
serentty[m] has quit [Ping timeout: 256 seconds]
davidak[m] has quit [Ping timeout: 256 seconds]
sphalerit has quit [Ping timeout: 256 seconds]
Drakonis[m] has quit [Ping timeout: 256 seconds]
offlinehacker[m] has quit [Ping timeout: 256 seconds]
timclassic has quit [Ping timeout: 256 seconds]
Wysteriary[m] has quit [Ping timeout: 256 seconds]
edef[m] has quit [Ping timeout: 256 seconds]
templis[m] has quit [Ping timeout: 256 seconds]
jamshoot[m] has quit [Ping timeout: 256 seconds]
ngerstle[m] has quit [Ping timeout: 256 seconds]
EB[m] has quit [Ping timeout: 256 seconds]
Vincenzo[m] has quit [Ping timeout: 256 seconds]
Phil[m]2 has quit [Ping timeout: 256 seconds]
card[m] has quit [Ping timeout: 245 seconds]
Kallegro[m] has quit [Ping timeout: 245 seconds]
taohansen has quit [Ping timeout: 245 seconds]
Ralith has quit [Ping timeout: 245 seconds]
blahblah has quit [Ping timeout: 256 seconds]
jlle[m] has quit [Ping timeout: 256 seconds]
Hook[m]1 has quit [Ping timeout: 256 seconds]
M-fishy has quit [Ping timeout: 256 seconds]
patrl[m] has quit [Ping timeout: 256 seconds]
castordamon has quit [Ping timeout: 256 seconds]
midchildan[m] has quit [Ping timeout: 256 seconds]
steshaw[m] has quit [Ping timeout: 256 seconds]
sorbet has quit [Ping timeout: 256 seconds]
nwspk has quit [Ping timeout: 265 seconds]
WilliamHamilton has quit [Ping timeout: 240 seconds]
indefini has quit [Ping timeout: 240 seconds]
dash has quit [Ping timeout: 240 seconds]
Fedor[m] has quit [Ping timeout: 276 seconds]
telent[m] has quit [Ping timeout: 246 seconds]
gudea[m] has quit [Ping timeout: 246 seconds]
dmitry-zen[m] has quit [Ping timeout: 246 seconds]
ayyjayess[m] has quit [Ping timeout: 246 seconds]
lycium[m] has quit [Ping timeout: 246 seconds]
tfc[m] has quit [Ping timeout: 246 seconds]
NickHu has quit [Ping timeout: 276 seconds]
enick_598 has quit [Ping timeout: 276 seconds]
nixo[m] has quit [Ping timeout: 276 seconds]
icetan has quit [Ping timeout: 276 seconds]
jluttine[m] has quit [Ping timeout: 276 seconds]
aaronc[m] has quit [Ping timeout: 276 seconds]
zoya-kosova[m] has quit [Ping timeout: 276 seconds]
apurvapavaskar[m has quit [Ping timeout: 276 seconds]
wak-work has quit [Ping timeout: 276 seconds]
freeman42x has quit [Ping timeout: 276 seconds]
pstn has quit [Ping timeout: 276 seconds]
petersjt014[m] has quit [Ping timeout: 260 seconds]
puffnfresh has quit [Ping timeout: 260 seconds]
Barnabas[m] has quit [Ping timeout: 260 seconds]
Elorm[m] has quit [Ping timeout: 260 seconds]
chedi has quit [Ping timeout: 260 seconds]
telent_[m] has quit [Ping timeout: 255 seconds]
wizek[m] has quit [Ping timeout: 255 seconds]
dtz has quit [Ping timeout: 255 seconds]
dylanjust[m] has quit [Ping timeout: 256 seconds]
htafdwes[m] has quit [Ping timeout: 256 seconds]
Rick[29SMPittsbu has quit [Ping timeout: 256 seconds]
Dezgeg[m] has quit [Ping timeout: 256 seconds]
Adev[m] has quit [Ping timeout: 256 seconds]
tokudan[m] has quit [Ping timeout: 256 seconds]
nwspk has joined #nixos
jack[m] has quit [Ping timeout: 256 seconds]
mbrgm has joined #nixos
Taneb has joined #nixos
alp has quit [Ping timeout: 240 seconds]
<kini>
Am I right in thinking that there's not much point to making a VM boot from UEFI instead of the traditional way?
<iqubic>
Yes.
jrolfs has quit [Ping timeout: 256 seconds]
<iqubic>
It matters more on actual hardware.
brodul has quit [Ping timeout: 240 seconds]
<kini>
All right, good to know :) That's more or less what I figured, but I found pages out there describing how to do UEFI in a VM so I wondered what use case there could be
Fare has quit [Ping timeout: 264 seconds]
<boomshroom>
kini: Are you specifically testing UEFI functionality?
<kini>
maybe it's for testing UEFI stuff (?)
<gchristensen>
clever: 'round?
<kini>
boomshroom: nah, just setting up a NixOS workstation VM and following the installation instructions, which say to choose whether I want UEFI or BIOS-based booting
<boomshroom>
kini: Then UEFI is just extra work and probably slower to boot.
<kini>
OK, thanks :)
alp has joined #nixos
brodul has joined #nixos
<zybell>
boomshroom:uefi is actually a few ns faster
jperras has joined #nixos
dan_b has quit [Ping timeout: 256 seconds]
telent has quit [Ping timeout: 256 seconds]
<boomshroom>
zybell: Really? I remember wasting much time trying to get QEMU to boot UEFI.
thc202 has quit [Ping timeout: 264 seconds]
dottedmag has quit [Ping timeout: 256 seconds]
<zybell>
yeah user time I was boot time
<boomshroom>
zybell: Also? I said "probably".
flugsio has quit [Ping timeout: 264 seconds]
<zybell>
and I actually
kmicklas has quit [Ping timeout: 264 seconds]
<zybell>
;-)
Maxdamantus has quit [Ping timeout: 255 seconds]
jrolfs has joined #nixos
Maxdamantus has joined #nixos
<zybell>
Its because the cache isnt as loaded as in bios mode
<Lisanna>
Is there a way to destroy a HashSink without hashing its contents?
<iqubic>
boomshroom: I don't actualy have actkbd installed. That's rather odd becuase I'd assume that setting sound.mediaKeys.enable to true would pull that in.
<Lisanna>
or if I just don't use the result will the C++ compiler be smart enough to optimize all that out?
<boomshroom>
iqubic: It doesn't actually install it. It loads it into the store, but doesn't link it. Because it doesn't have to. to run it, you'd need nix-shell or nix run.
windy328ghoee[m] has quit [Ping timeout: 276 seconds]
alexoundos7[m] has quit [Ping timeout: 276 seconds]
bdimcheff has quit [Ping timeout: 276 seconds]
Obscurity[m] has quit [Ping timeout: 276 seconds]
Criena[m] has quit [Ping timeout: 276 seconds]
xnaveira[m] has quit [Ping timeout: 276 seconds]
ajmccluskey[m] has quit [Ping timeout: 276 seconds]
AlanPearce[m] has quit [Ping timeout: 276 seconds]
slabity[m] has quit [Ping timeout: 276 seconds]
AdamSlack[m] has quit [Ping timeout: 276 seconds]
lukeadams[m] has quit [Ping timeout: 276 seconds]
hendrik[m] has quit [Ping timeout: 276 seconds]
bugabinga[m] has quit [Ping timeout: 276 seconds]
joh[m] has quit [Ping timeout: 276 seconds]
johnazoidberg[m] has quit [Ping timeout: 276 seconds]
sargon[m] has quit [Ping timeout: 276 seconds]
johnazoidberg has quit [Ping timeout: 276 seconds]
rardiol[m] has quit [Ping timeout: 276 seconds]
iohidtbhfam[m] has quit [Ping timeout: 276 seconds]
mudri[m] has quit [Ping timeout: 276 seconds]
attero has quit [Ping timeout: 276 seconds]
y0no[m] has quit [Ping timeout: 276 seconds]
ArdaXi[m] has quit [Ping timeout: 276 seconds]
bendlas has quit [Ping timeout: 276 seconds]
fgaz[m] has quit [Ping timeout: 276 seconds]
dottedmag has joined #nixos
dottedmag has quit [Changing host]
dottedmag has joined #nixos
<iqubic>
So what should I do? Add actkbd to environment.systemPackages?
<daveo>
hello. My EFI boot partition got hosed and I can't even find my nixos partition in the boot menu of the BIOS. How do I recover my system? All guides I'm finding online are for other OSes and say to use rEFInd or rEFIt...
<boomshroom>
iqubic: `nix run nixpkgs.actkbd -c actkbd -n -s` will run it without installing if you have Nix 2.0.
<iqubic>
But I want to install it so that I can use it on future boots.
<iqubic>
I want to have my media keys and other such things just work from the moment I boot into my system.
<boomshroom>
daveo: You're best bet is to use the installer disk/URB and chroot in.
<zybell>
the xserver and the console handle the keyboard totally different including the used progs
<iqubic>
What does that mean?
<iqubic>
zybell: does that help me?
<boomshroom>
iqubic: The daemon will work without installing. If the flag is set in configuration.nix, it will run even if it's not in your environment.
logzet has quit [Ping timeout: 260 seconds]
<iqubic>
If what flag is set?
<boomshroom>
iqubic: I take it you're new to NixOS?
<zybell>
what works without x must be redone in x
<iqubic>
Yeah, fairly.
<iqubic>
I've only been using it for 6-ish months
<boomshroom>
iqubic: The flag that marks actkbd to run is services.actkbd.enable, but setting sound.mediaKeys.enable enables a few defaults. Only one is needed.
<Lisanna>
Answer: finish doesn't actually destroy a HashSink, misleading name
jperras has quit [Quit: WeeChat 2.1]
<iqubic>
Only one what is needed?
jperras has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
<boomshroom>
iqubic: setting sound.mediaKeys.enable implicitly sets services.actkbd.enable for you.
<zybell>
one flag
<daveo>
boomshroom: I'm using the installer USB. I have luks encrypted volumes so I'm guessing I need all the stuff like `cryptsetup luksOpen /dev/sda2 enc-pv`
flugsio has joined #nixos
<iqubic>
running actkbd -s -n in a tty produces odd results.
<boomshroom>
daveo: The only issue that I can tell is that the motherboard can't see NixOS's bootloader. Chrooting in with the installer should let you tell nixos to boot to the latest generation and it should set the motherboards setting by doing so.
<daveo>
boomshroom: sweet I'll try it. thanks
<boomshroom>
iqubic: How so? Is it printing numbers when you press keys? If so it's working, otherwise it's not.
snajpa has quit [Ping timeout: 264 seconds]
<iqubic>
It is, but some of the keys are translated directly into symbols like ^@
<iqubic>
And running actkbd in a graphical environment is giving me different results.
<boomshroom>
iqubic: OK, that I don't know about.
<iqubic>
What I mean is that there are some keys that only show up when using a graphical terminal on X
<iqubic>
For the keys that show up in both places, the numbers are the same.
<iqubic>
But my brightness up and brightness down keys are not being seen by "actkbd -s -n"
<boomshroom>
iqubic: The number that shows up for the brightness increase button is the number you use when configuring actkbd.
<iqubic>
I know that.
<boomshroom>
iqubic: In a TTY, X, or both?
<iqubic>
But I'm getting no results from actkbd when hitting that particular button, in both places.
<zybell>
it may be that they are catched by acpi
<boomshroom>
In that case, you might have to set it up within EXWM.
<kini>
ok, this is kind of dumb... I need to use an HTTP proxy on this network, so I've changed /etc/nixos/configuration.nix to set networking.proxy.default to the URI of the proxy, but when I try to do `nixos-rebuild switch` it fails because it can't contact cache.nixos.org
<kini>
I tried exporting environment variables in my shell before running `nixos-rebuild` but that doesn't work, probably because it's talking to an already-running daemon -- what's the least hacky way to solve this?
silver_ has joined #nixos
<iqubic>
That's a really stupid thing. I wish I could have this all handled from the same place.
<boomshroom>
iqubic: Bug report?
snajpa has joined #nixos
<iqubic>
Should I do that?
<zybell>
you may be in luck
<zybell>
if your keys are handled by acpi
<iqubic>
I mean I can, but I want to make sure that actkbd works in the first place by getting my media keys.
<iqubic>
zybell: If the keys are being handled by acpi, then what
silver has quit [Ping timeout: 264 seconds]
<zybell>
then you can hadle then in one place
<zybell>
*handle them
sigmundv__ has quit [Ping timeout: 255 seconds]
<daveo>
boomshroom: used cryptsetup luksopen to open my volumes. I'm a bit unexperienced with chroot here so I need to know whether I need to mount anything first or do I just `chroot /dev/nvme0n1p2 /bin/bash`
<iqubic>
How?
<iqubic>
You need to mount root to /mnt
sehqlr has quit [Ping timeout: 264 seconds]
<boomshroom>
daveo: Actually, mounting the partitions followed by nixos-enter would have been enough to chroot.
<iqubic>
By root I mean the /dev/sda* that contains root.
<iqubic>
Yeah, I'm not even going to bother with that.
<gchristensen>
oh, cool zybell
<daveo>
boomshroom: I am booted into the nixos 17.03 install boot usb
joehh has joined #nixos
<boomshroom>
daveo: I think nixos-enter came later. I'm checking the manual. It might just be a normal chroot for 17.03.
<boomshroom>
daveo: Alternatively, since the installer is a nixos installation itself, you could update the in-memory instance of the installer and then you nixos-enter.
<daveo>
yeah
<daveo>
boomshroom: I'll try that
<daveo>
boomshroom: referencing the manual for the commands
<iqubic>
I'm just going to set-up these keys inside exwm.
<boomshroom>
daveo: Thanks! I'm often just chill in the IRC to help along new users. I do have a bitcoin acount that doesn't get used very much.
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jperras has quit [Ping timeout: 256 seconds]
<daveo>
boomshroom: that is great. I absolutely love nixos. It has amazed me in many ways. Made setting up a taskwarrior server much easier. Made many other things easy as well. I like nixos-rebuild build-vms as well. Pretty great stuff that the team is making.
<daveo>
boomshroom: did `nix-channel --add https://nixos.org/channels/nixos-18.03 nixos` and `nixos-rebuild switch --upgrade`. it should take a few more minutes
<kini>
The NixOS manual says I should create user accounts with `useradd`, but the generated /etc/nixos/configuration.nix has a section for defining user accounts there. Which is the recommended method? Or is what I see in configuration.nix something else?
jperras has joined #nixos
<sgillespie>
kini: You can do it either way
<gchristensen>
kini: you can do either! me? I prefer putting them in configuration.nix
<jgt>
how do I use a different nixpkgs.haskellPackages in my default.nix? It looks like this: { pkgs ? import <nixpkgs> { nixpkgs.system = "x86_64-linux"; } , compiler ? "ghc802" }: pkgs.haskell.packages.${compiler}.callPackage ./riskbook.nix { }
<kini>
Interesting -- so if both methods work, I guess that means removing a user declaration from configuration.nix isn't going to remove that user from the system, then? (since a user not described in configuration.nix might have been legitimately added by `useradd`)
<jgt>
I made my different set of haskellPackages with stack2nix . > haskell-packages.nix
<boomshroom>
kini: NixOS is usually pretty intelligent at undoing changes its made.
<boomshroom>
jgt: You'd add haskellPackages to the packageOverrides section in config.nix or you'd write an overlay that sets haskellPackages.
<sgillespie>
but `sudo nix-env -qaP | grep slack` doesn't find it
Arcaelyx has joined #nixos
<htafdwes>
hey guys, I got an idea for making nixos super secure, if each app had it's own username and group, and had a list of group corresponding to it's runtime dependencies, with the binaries having the setuid flag set.
<sgillespie>
What's the way to do that?
<htafdwes>
then normal users would need to be in the corresponding group to use an app.
<sgillespie>
That is, if it is not referenced from the base default.nix
<jgt>
boomshroom: I've somehow managed to make it work in nix-shell. This is my shell.nix: http://ix.io/17YT Does it look reasonable to you?
<boomshroom>
sgillespie: `license = licenses.unfree;` You have to enable unfree packages in config.nix in order to install it.
jperras has quit [Ping timeout: 246 seconds]
<sgillespie>
That makes sense, is there a way to set that on a package-by-package basis?
<sgillespie>
Like, can I set only enable the one unfree package?
<boomshroom>
sgillespie: I know there's an environment variable to enable broken packages, but I don't know about unfree. It should be possible to reimport nixpkgs and set it from the command line, but it's not a simple expression to write in one line.
<sgillespie>
nice, thanks
sigmundv has quit [Ping timeout: 264 seconds]
<boomshroom>
brb, dinner
jperras has joined #nixos
<joepie91>
boomshroom: sgillespie: NIXPKGS_ALLOW_UNFREE=1 is the env var - however, iirc there is now a way to add exceptions for specific packages
<sgillespie>
In my configuration.nix, I have `nixpkgs.config.allowUnfree = true;`. I ran `nixos-rebuild switch` and `nix-env -qaP | grep slack` and it still didn't print out the package
<sgillespie>
This also works: `nixpkgs.config.allowUnfreePredicate = (x: pkgs.lib.hasPrefix "slack-" x.name);`
<sgillespie>
Thanks for that ryantm
freeman42x]NixOS has quit [Ping timeout: 256 seconds]
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
<pirateking>
sgillespie: find more things with man 5 configuration.nix too
<foldingcookie>
how do I get libnetlink.a (from iproute2) on nixOS?
<boomshroom>
foldingcookie: If you're looking to build something that uses it, you'd need to to write a nix expression to build it with iproute as a buildInput. There's no actual way to install a library globally on NixOS.
mbrgm has quit [Ping timeout: 246 seconds]
vidbina has quit [Ping timeout: 240 seconds]
<teto1>
for some reason, I've lost console messages on boot even though I have boot.consoleLogLevel=6 :s (using systemd-boot). any idea ?
mbrgm has joined #nixos
jrolfs has quit [Ping timeout: 256 seconds]
sgillespie has quit [Quit: Lost terminal]
<jgt>
anyone know why my package overrides aren't working? http://ix.io/17Z5
<johnw>
i think becasue your'e not using haskellPAckages
sigmundv has quit [Ping timeout: 256 seconds]
<johnw>
at the end, try changing pkgs.haskell.packages.${compiler}.callPackage to haskellPackages.callPackage
pirateking has quit [Quit: Page closed]
<johnw>
err, pkgs.haskellPackages.callPackage
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
v0latil3 has joined #nixos
<jgt>
johnw: yeah, that makes sense. My override wasn't even being evaluated. Thanks :)
* gchristensen
's thinking about a nixops extension which, before copying closures to all the machines, first uploads all the closures to a singlg binary cache
<jgt>
johnw: this has a good example of overriding an individual package, but I'd like to override all of haskellPackages with my own that I created with stack2nix
<boomshroom>
It can get anoying when my computer starts slowing to the point where I can't do anything but wait. -_-
<johnw>
jgt: just use import
<johnw>
at line 14
<v0latil3>
Brand new Nix user here, how can I find out which options I can use for a derivation? It looks like home-assistant is in nixpkgs but what options does it have and how would I even install that? I hope I'm even using the right terminology here haha.
<johnw>
v0latil3: the best tool for exploring that I know of is to use tab completion in nix repl
<jgt>
but I'm having trouble translating that to my default.nix
<johnw>
why not just use that shell.nix as your default.nix?
<johnw>
i.e., mv shell.nix default.nix
<boomshroom>
v0latil3: Personally, I just check the source file. In this case, home-assistant has extraComponents, extraPackages, and skipPip as arguments.
<johnw>
it should work for both nix-shell and nix-build, the way you have it
<v0latil3>
johnw, It looks like I'm on Nix 2.0 so I can just use "nix repl"
<boomshroom>
v0latil3: The set them, you just pass a set containing them to nixpkgs.home-assistant.override
freeman42x]NixOS has joined #nixos
<jgt>
johnw: ok, I'll try that too
<v0latil3>
boomshroom, you mean like nixpkgs.home-assisant.override.extraComponents = "whatever goes here" in my configuration.nix?
<boomshroom>
v0latil3: more like `nixpkgs.home-assistant.override { extraComponents = ["whatever goes here"]; }` Override is a function that takes a set and extraComponents happens to be a list in this case. Since home-assistant is probably something you'd want available system wide, you'd add the result of the call to systemPackages, or something else if you're being more fancy.
<jgt>
johnw: I'm not sure if I should be using the name nixpkgs or pkgs. I have a services.nix for nixops that depends on default.nix. It looks like http://ix.io/17Zd
<jgt>
johnw: if I s/pkgs/nixpkgs/g in services.nix, it fails with missing attributes
<johnw>
btw, I think that import ./default.nix { inherit pkgs; } can generally be replaced by callPackage ./default.nix {}
<johnw>
er, pkgs.callPackage, of course
<johnw>
I know nothing at all about nixops
<jgt>
johnw: nixops should still work if I keep this top line in default.nix: { pkgs ? import <nixpkgs> { nixpkgs.system = "x86_64-linux"; }
<jgt>
johnw: but I need to change the inherit in the default.nix; in my working shell.nix it's: inherit (nixpkgs) pkgs;
<jgt>
but I can't do `inherit (pkgs) pkgs;`, because it fails with ininite recursion
<jgt>
I really don't get how inherit works, even after reading the docs
<{^_^}>
→ f72a80ae by @KingOfThePirates: hyper: 1.4.8 -> 2.0.0
<johnw>
well, inherit (pkgs) pkgs is the same as pkgs = pkgs, but in a rec set, you can see the problem
<{^_^}>
→ 78b2345b by @grahamc: Merge pull request #39024 from KingOfThePirates/patch-1
<jgt>
yes
Fare has joined #nixos
<johnw>
sorry, pkgs = pkgs.pkgs is what I meant
<v0latil3>
ahh nix is weird haha. you do "concat = x: y: x + y;" instead of doing concat x y = x + y or something.
<boomshroom>
v0latil3: I think it's mostly to simplify the grammer. `\x -> e` would be too long without an alternative, so Nix has just one way of defining functions.
<v0latil3>
boomshroom, yeah thats what I assumed. I was just trying to read through a .nix file and got confused at first. pretty big noob but i think I like what's goign on haha
<{^_^}>
[nixpkgs] @strager opened pull request #39038 → clang: fix install on Darwin → https://git.io/vpJPy
<v0latil3>
boomshroom, is "environment.systemPackages = with pkgs; [
<v0latil3>
vim
<v0latil3>
];
<v0latil3>
" short for "environment.systemPackages = [
<v0latil3>
pkgs.vim
<v0latil3>
];
<v0latil3>
" or something?
<v0latil3>
oh god im sorry everyone, can't see newlines in this irc
<boomshroom>
v0latil3: That's really the best you can do in terms of newlines without posting it to a third party website and linking it. At least Nix doesn't care about whitespace so it could all be one line if you cared.
<v0latil3>
ok question answered thats what nix repl is for. boomshroom, I mean sorry for spamming the irc channel not for bad formatting
<boomshroom>
v0latil3: Otherwise: yes, that is how it would simplify assuming you didn't have vim declared in the local scope elsewhere.
<boomshroom>
v0latil3: It was a little freaky seeing it happen, but there's not much that could have been done to avoid it.
jperras has quit [Ping timeout: 256 seconds]
daveo has joined #nixos
<daveo>
boomshroom: I got this error during the upgrade -- `Failed to start local-fs.target: Unit nix-.ro\x2dstore.mount is masked.`
<boomshroom>
daveo: I guess it didn't like the fact that the installer is read only. Maybe just a regular chroot with the partitions mounted?
sehqlr has joined #nixos
<v0latil3>
boomshroom, It doesn't seem to do anything by just adding pkgs.home-assistant Do I need some kind of services.<something> like I have for openssh?
<boomshroom>
v0latil3: It doesn't look like nixos has a service for home-assistant. What that means, is that you'd have to make your own! How comfortable are you with writing nix expressions and systemd services?
schoppenhauer has quit [Ping timeout: 256 seconds]
<v0latil3>
Systemd services are pretty easy I guess
schoppenhauer has joined #nixos
<v0latil3>
and I was awake for part of a class that included a short bit on haskell
<boomshroom>
v0latil3: You'd have to take a look at other services to see how they setup their services.
<v0latil3>
Can a service "require" a package? like why does the default configuration.nix have "services.openssh...." but not have ssh in the system packages?
<boomshroom>
v0latil3: Usually, you'd specify "${pkgs.openssh}/bin/sshd" to hardcode the absolute path into the service script. Nix picks up on that and registers a runtime dependency, so it won't get garbage collected and any attempt to copy the service will copy the binary with it.
<v0latil3>
ryantm, cool thanks for the reference.
<ryantm>
v0latil3: If you don't want it available on the path, you can just refer to it like boomshroom said.
<daveo>
thought I had to do that still figuring out how to handle the #!/bin/bash
<daveo>
boomshroom: do I have to do anything else before the reboot?
<daveo>
boomshroom: how do I know I've successfully done whatever it is I'm doing to fix the efi boot?
sehqlr has quit [Ping timeout: 246 seconds]
<boomshroom>
daveo: You should be able to run /run/current-system/bin/switch-to-configuration boot
rosa has quit [Quit: rosa]
<daveo>
boomshroom: do I have to locate a new script here? `[root@nixos:/]# /run/current-system/bin/switch-to-configuration boot updating GRUB 2 menu... read_file '/proc/self/mountinfo' - sysopen: No such file or directory at /nix/store/w29kkf6idy83242hnqhyz6qd42ivqsz3-install-grub.pl line 111.`
odi_ has joined #nixos
<daveo>
boomshroom: locating the file found many matches with different hashes
<daveo>
boomshroom: misunderstood the error the proc system is not set up
<boomshroom>
daveo: I was worried about that. You might need to mount some of the system partitions first.
<boomshroom>
I'm pretty sure nixos-enter would handle that, but we had trouble getting the installer to update. (Downloading a more recent installer might actually have been easier)
pie_ has joined #nixos
iyzsong has quit [Ping timeout: 256 seconds]
<daveo>
boomshroom: easy peasy after some false starts `export LFS=/mnt` `mount -v --bind /dev $LFS/dev` `mount -vt proc proc $LFS/proc`
<daveo>
boomshroom: think I'm done here. looks like the menu is updated. sure you don't want some bitcoin to buy a beer? You deserve it!
<boomshroom>
daveo: Fun fact: I initially installed NixOS because it was doing the same thing as I was trying to do with LFS.
<boomshroom>
daveo: Should I just post my address here?
<boomshroom>
jgt: No problem! Anything in https://github.com/NixOS/nixpkgs/tree/master/lib/systems concerns what goes into the crossSystem argument. You can also spoof localSystem to force building on a different machine, but I wouldn't recomend it.
<etherdaemon>
I'm wondering if anyone has had experience with the Kubernetes service setup? I'm using nixops deploy with services.kubernetes where roles is "master" and that does setup Kubernetes cluster on the deployed to node. But I can't seem to change the apiserver address to listen on any port or a specific IP other than localhost
<boomshroom>
daveo: Does it show up at all if you check your motherboard's boot menu?
<jgt>
boomshroom: hmm… didn't seem to work :-/ anonymous function at /Users/jgt/projects/riskbook/haskell-packages.nix:5:1 called with unexpected argument ‘crossSystem’
<etherdaemon>
I was able to change the apiserver port - but not the listener address for some reason
<jgt>
do I maybe have an outdated Nix?
kerrhau has joined #nixos
<boomshroom>
jgt: That's because crossPackages is an argument to all of nixpkgs. You then use the new cross nixpkgs's callPackage on your haskell file.
kerrhau has quit [Changing host]
kerrhau has joined #nixos
<jgt>
boomshroom: to clarify, haskell-packages.nix is the output of running stack2nix
<jgt>
boomshroom: this is what I have in default.nix: http://ix.io/17Zx
mjacob_ has joined #nixos
<jgt>
boomshroom: I need it to specify that it's for linux arch, so that my NIX_REMOTE_SYSTEMS machine will build it
obadz- has joined #nixos
sphalerite_ has joined #nixos
<boomshroom>
jgt: I was confused when first using stack2nix. In that case, it would be something like let pkgs = import <nixpkgs> {crossSystem = ...;}; in (import /path/haskell-packages.nix {pkg = pkgs;}).haskellPackage
<jgt>
boomshroom: there are likely other things in that file that I'm getting wrong, which causes more confusion
<daveo>
boomshroom: it did not
mteufel has joined #nixos
rosa has quit [Quit: rosa]
<boomshroom>
daveo: Are you back in the installer? We might need to manually set the EFI settings.
rosa has joined #nixos
<daveo>
boomshroom: I am. I think I will plan to continue tomorrow
justanotheruser has quit [Ping timeout: 246 seconds]
justanotheruser has joined #nixos
<daveo>
boomshroom: I wonder if it would have been possible to nixos-enter after mounting /proc /dev etc as well
<daveo>
boomshroom: and in the chrooted shell
<daveo>
boomshroom: maybe that is pointless
<boomshroom>
: Idaveo'm getting the impression that switch-to-generation isn't updating the EFI settings. To you have a /sys/firmware/efi/efivars?
<boomshroom>
*Do
<boomshroom>
My computer was lagging.
<jgt>
boomshroom: this is progress: http://ix.io/17Zz but now it fails with error: Package ‘acl-2.2.52’ in /nix/store/30g7yca1mmqm9x7w5psrljwdbb4mpvd7-nixpkgs-18.03pre121255.45a85eaceb/nixpkgs/pkgs/development/libraries/acl/default.nix:29 is not supported on ‘x86_64-darwin’, refusing to evaluate.
<jgt>
boomshroom: which is strange, because I thought it would know to build on Linux
<daveo>
boomshroom: in any case I'll purse manually setting the EFI settings or anything else tomorrow. thanks again! I definitely learned some stuff. Definitely interested in more info on the fun fact. Missed what you were trying to do with LFS that was already done by nixos exactly. TTYL!
odi has quit [Ping timeout: 240 seconds]
<daveo>
boomshroom: just got the message about switch to generation I'll check /sys/firmware/efi/efivars tomorrow
<jgt>
boomshroom_: I may have fixed it; need to wait for it to download everything and compile: http://ix.io/17ZE
<boomshroom_>
jgt: you have to take the attribute that corresponds to the specific Haskell package. Otherwise it will try to build every Haskell package in the file
<jgt>
boomshroom_: am I not doing that?
<boomshroom_>
jgt: I typed that before setting your latest update
<jgt>
boomshroom_: (not being sarcastic, I'm just fumbling quite a lot so I'm not exactly sure what I'm doing)
<jgt>
boomshroom_: ah ok :)
<boomshroom_>
My computer is being stupid, so now I'm on my phone
<jgt>
boomshroom_: well the output so far says it's building on nixos-docker, which is my remote build machine (developing on MacOS, deploying on Linux)
<jgt>
boomshroom_: so this is looking good so far
odi__ has quit [Remote host closed the connection]
<jgt>
boomshroom_: thanks so much for your help!
<boomshroom_>
jgt: No problem! Helping people is one of the reasons a hang out in this channel.
<jgt>
<3
rosa has quit [Quit: rosa]
<etherdaemon>
hey all, have I pinged into the right channel for help with a nixpkg service? kubernetes in particular?
<boomshroom_>
etherdaemon: sorry, I don't know much about kubernetes.
<etherdaemon>
no worries - thanks
[0__0] has quit [Remote host closed the connection]
blankhart has quit [Ping timeout: 240 seconds]
blonkhart has quit [Quit: WeeChat 1.9.1]
daveo has quit [Ping timeout: 260 seconds]
kerrhau has quit [Ping timeout: 246 seconds]
Rusty1_ has quit [Quit: Konversation terminated!]
ericsagnes has quit [Ping timeout: 240 seconds]
etherdaemon has quit [Quit: Page closed]
boomshroom_ has quit [Quit: Page closed]
mahalel_ has quit [Ping timeout: 264 seconds]
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
simukis has joined #nixos
sehqlr has joined #nixos
rosa has joined #nixos
aniketd[m] has joined #nixos
patrl[m] has joined #nixos
neecro[m] has joined #nixos
NickHu has joined #nixos
musicmatze[m] has joined #nixos
jmorriss[m] has joined #nixos
AlanPearce[m] has joined #nixos
grahamc has joined #nixos
ayyjayess[m] has joined #nixos
bkchr[m] has joined #nixos
baconicsynergy[m has joined #nixos
kitten[m] has joined #nixos
timokau[m] has joined #nixos
wilornel has joined #nixos
ma27 has joined #nixos
alex`` has joined #nixos
davidar has joined #nixos
pie_ has quit [Write error: Connection reset by peer]
Guanin has quit [Ping timeout: 240 seconds]
dottedmag has joined #nixos
dottedmag is now known as Guest67506
jbarthelmes[m] has joined #nixos
GuillaumeBuisson has joined #nixos
telent[m] has joined #nixos
Oo[m] has joined #nixos
techtangents[m] has joined #nixos
leons has joined #nixos
alexoundos7[m] has joined #nixos
bugabinga[m] has joined #nixos
amiloradovsky[m] has joined #nixos
admin[m]4 has joined #nixos
Elorm[m] has joined #nixos
yochai[m] has joined #nixos
etu[m] has joined #nixos
jamshoot[m] has joined #nixos
nmikhailov[m] has joined #nixos
Minijackson[m] has joined #nixos
spawnthink[m] has joined #nixos
robstr has joined #nixos
dywedir[m] has joined #nixos
attero has joined #nixos
[0__0] has joined #nixos
cornu[m] has joined #nixos
edef[m] has joined #nixos
spacekitteh[m] has joined #nixos
Rick[29SMPittsbu has joined #nixos
LiuWeiHua[m] has joined #nixos
Guanin has joined #nixos
mteufel is now known as mt
rosa has quit [Quit: rosa]
endformationage has quit [Quit: WeeChat 1.9.1]
reinzelmann has joined #nixos
rauno has joined #nixos
hamishmack has quit [Quit: hamishmack]
rosa has joined #nixos
tfc[m] has joined #nixos
bobvanderlinden_ has joined #nixos
lukeadams[m] has joined #nixos
das-g[m] has joined #nixos
octalsrc[m] has joined #nixos
kainospur[m] has joined #nixos
randomenduser[m] has joined #nixos
dpc has joined #nixos
ajmccluskey[m] has joined #nixos
srini[m] has joined #nixos
primeos[m] has joined #nixos
codyopel has joined #nixos
r3mfKm[m] has joined #nixos
chedi has joined #nixos
rauno has quit [Remote host closed the connection]
rauno has joined #nixos
isaac_ has joined #nixos
rauno has quit [Remote host closed the connection]
EB[m] has joined #nixos
rauno has joined #nixos
rauno has quit [Remote host closed the connection]
simukis has quit [Quit: simukis]
peel[m] has joined #nixos
rauno has joined #nixos
timclassic has joined #nixos
Wysteriary[m] has joined #nixos
dmitry-zen[m] has joined #nixos
peterhoeg has joined #nixos
johnnydread[m] has joined #nixos
M-Dan has joined #nixos
m4rv33n[m] has joined #nixos
gudea[m] has joined #nixos
Hook[m]1 has joined #nixos
dkellner[m] has joined #nixos
aramiscd[m] has joined #nixos
tokudan[m] has joined #nixos
petersjt014[m] has joined #nixos
castordamon has joined #nixos
y0no[m] has joined #nixos
dylanjust[m] has joined #nixos
templis[m] has joined #nixos
M-bbigras has joined #nixos
lycium[m] has joined #nixos
nh2[m] has joined #nixos
chatnowvvv[m] has joined #nixos
M-ms has joined #nixos
mudri[m] has joined #nixos
matrixkrav has joined #nixos
trikl[m] has joined #nixos
pqvj has joined #nixos
demyan[m] has joined #nixos
DenisLehmann[m] has joined #nixos
efx[m] has joined #nixos
Dezgeg[m] has joined #nixos
swayf[m] has joined #nixos
rauno has quit [Remote host closed the connection]
rnhmjoj[m] has joined #nixos
gh0st[m] has joined #nixos
Obscurity[m] has joined #nixos
felipeac[m] has joined #nixos
Deleh[m] has joined #nixos
johnazoidberg[m] has joined #nixos
chedi[m] has joined #nixos
fgaz[m] has joined #nixos
wmertens[m] has joined #nixos
<pqvj>
Is there a good way to get nix to preserve relative paths of files declared in `srcs`? e.g. `src = [ ./foo/bar ./baz/qux ]` would end up with `./foo/bar` and `./baz/qux` after unpack instead of `./bar` and `./qux`
smrtak[m] has joined #nixos
<boomshroom>
pqvj: I think you'd have to write a custom unpackPhase to set it up like that.
davidak[m] has joined #nixos
Bugworm[m] has joined #nixos
jack[m] has joined #nixos
Vincenzo[m] has joined #nixos
<pqvj>
It seems like the info is already "lost" even before the unpack phase
nelag[m] has joined #nixos
windy328ghoee[m] has joined #nixos
M-fishy has joined #nixos
<pqvj>
I'm actually already adding a custom `unpackCmdHook` and the files it sees are already flattened into the nix store
offlinehacker[m] has joined #nixos
odi has joined #nixos
bachp has joined #nixos
<boomshroom>
pqvj: As in, you'd have to manually create the foo directory and move qux and bar into it. Is there a reason why foo itself can't be the src?
Fedor[m] has joined #nixos
AntonLatukha[m] has joined #nixos
roygobeilantoine has joined #nixos
Adev[m] has joined #nixos
telent_[m] has joined #nixos
h30[m] has joined #nixos
bhipple[m] has joined #nixos
pierrebeaucamp[m has joined #nixos
midchildan[m] has joined #nixos
regnat[m] has joined #nixos
Elephant454[m] has joined #nixos
revoltmedia[m] has joined #nixos
hedning[m] has joined #nixos
mirlur[m] has joined #nixos
xodbox[m] has joined #nixos
olejorgenb[m] has joined #nixos
retrry[m] has joined #nixos
<jgt>
when I try deploying with nixops now, it wants to upload a ~600 MB closure o.O
<pqvj>
It's not that it strictly can't be but it's a bit dirty (i.e has files that aren't essential for the build)
ArdaXi[m] has joined #nixos
serentty[m] has joined #nixos
<pqvj>
And it's created problems in the past
reactormonk[m] has joined #nixos
<jgt>
and it wants to build nixos-system-riskbook-18.03pre121255.45a85eaceb.drv
<jgt>
that doesn't sound right
<pqvj>
So it seems useful to purify/clean things so that I'm only declaring a dependency on the files I actually need
<boomshroom>
pqvj: in that case, I'd probably clean the directory before invoking Nix.
<vaibhavsagar>
the last time I used NixOps, it insisted on uploading 16.09 to the host and then using that to bootstrap
card[m] has joined #nixos
johnhamelink[m] has joined #nixos
slabity[m] has joined #nixos
PeterRomfeld[m] has joined #nixos
moosh_vectra[m] has joined #nixos
<jgt>
vaibhavsagar: it's a big jump from what it was uploading before though, which was only 30mb or so
saschaveres[m] has joined #nixos
fearlessKim[m] has joined #nixos
<vaibhavsagar>
ah, weird
<vaibhavsagar>
in that case, disregard
wzy8L-B2[m] has joined #nixos
atopuzov[m] has joined #nixos
ison[m] has joined #nixos
jlle[m] has joined #nixos
ipj[m] has joined #nixos
TimePath has joined #nixos
sphalerit has joined #nixos
crystalgamma[m] has joined #nixos
apurvapavaskar[m has joined #nixos
jluttine[m] has joined #nixos
adisbladis[m] has joined #nixos
wervenyt[m] has joined #nixos
YegorTimoshenko[ has joined #nixos
dash has joined #nixos
danielrf has joined #nixos
johnazoidberg has joined #nixos
nmikhailov[m]1 has joined #nixos
DIzFer[m] has joined #nixos
<jgt>
vaibhavsagar: I'll let it run, but I'm expecting my server to fall over
bendlas has joined #nixos
benkolera1 has joined #nixos
<pqvj>
boomshroom: Yeah... I might resort to that. But a clean solution along the lines I was hoping for would be first best, I think. Because cleaning those files is a nuisance for other tasks
lolipducker[m] has joined #nixos
<vaibhavsagar>
jgt: is riskbook something you're building?
<pqvj>
To be a little more concrete: One of the things I'd like to clean is `node_modules`
thunker[m] has joined #nixos
<jgt>
vaibhavsagar: yes
smbarte2[m] has joined #nixos
ngerstle[m] has joined #nixos
aaronc[m] has joined #nixos
<pqvj>
Because I don't want to use the local copy in the directory during a proper nix build
<jgt>
vaibhavsagar: does this default.nix look reasonable to you? http://ix.io/17ZR
sargon[m] has joined #nixos
Naughtmare[m] has joined #nixos
malteof[m] has joined #nixos
moredhel has joined #nixos
<pqvj>
But it is useful to have those around for incremental builds during development
<vaibhavsagar>
jgt: is this because you're developing on a Mac?
<boomshroom>
pqvj: Try setting up a git repository to handle the cleaning for you. Anything you don't want in the resulting directory doesn't get committed. You can even aim fetchGit at the file itself.
chominist[m] has joined #nixos
leoleoleotest[m] has joined #nixos
zoya-kosova[m] has joined #nixos
Khorne[m] has joined #nixos
ConorCurry[m] has joined #nixos
lazygun[m] has joined #nixos
rihardsk[m] has joined #nixos
dtz has joined #nixos
rauno has joined #nixos
rauno has quit [Read error: Connection reset by peer]
thefloweringash[ has joined #nixos
necronian has joined #nixos
shabius_ has joined #nixos
<jgt>
vaibhavsagar: that's why I'm specifying the system, yes
asp_ has joined #nixos
EuAndreh[m] has joined #nixos
joh[m] has joined #nixos
rycee has joined #nixos
<pqvj>
Oooh, I like that idea
<jgt>
vaibhavsagar: so it compiles locally in a docker vm
rauno has joined #nixos
<vaibhavsagar>
looks alright otherwise
<pqvj>
Thanks
pstn has joined #nixos
ploud777[m] has joined #nixos
WilliamHamilton has joined #nixos
<boomshroom>
pqvj: This way it will be easier if you decide to make it public on Github or another site.
puffnfresh has joined #nixos
enick_598 has joined #nixos
<jgt>
vaibhavsagar: the haskell-packages.nix file is the output of stack2nix
jgl[m] has joined #nixos
Singularity[m] has joined #nixos
zie[m] has joined #nixos
copumpkin has joined #nixos
florianjacob has joined #nixos
<vaibhavsagar>
I think it's a bit odd that you're using stack2nix instead of cabal2nix but w/e
bennofs[m] has joined #nixos
equalunique[m] has joined #nixos
scott has joined #nixos
<vaibhavsagar>
maybe that's why your dependency footprint is so erratic?
nixo[m] has joined #nixos
magnap has joined #nixos
<jgt>
vaibhavsagar: it's because I wanted to use some forks of packages, and it ended up being too complicated to make this work otherwise
sehqlr has quit [Ping timeout: 256 seconds]
turok9[m] has joined #nixos
<jgt>
vaibhavsagar: yeah, maybe
<boomshroom>
vaibhavsagar: I mean, if your using stack, then stack2nix seems apropiate. And stack already integrates with Nix.
icetan has joined #nixos
itorres has joined #nixos
rosa has quit [Quit: rosa]
purewater[m] has joined #nixos
benasse has joined #nixos
ericsagnes has joined #nixos
<vaibhavsagar>
boomshroom: stack's 'integration' with Nix is rudimentary at best
superusercode has joined #nixos
rardiol[m] has joined #nixos
AllanDaemon has joined #nixos
blahblah has joined #nixos
<vaibhavsagar>
basically it does the Stack thing but in a nix-shell
herzmeister[m] has joined #nixos
xnaveira[m] has joined #nixos
taohansen has joined #nixos
YuFanLovezYou[m] has joined #nixos
<vaibhavsagar>
so not that much of an improvement over just using Stack normally
shabius has quit [Ping timeout: 256 seconds]
abbafei[m] has joined #nixos
<jgt>
vaibhavsagar: I think if this huge upload is a one-time thing, then it's ok. If it happens on subsequent runs, then something is definitely wrong
mith[m] has joined #nixos
freeman42x has joined #nixos
peterbat[m] has joined #nixos
steshaw[m] has joined #nixos
iohidtbhfam[m] has joined #nixos
hl has joined #nixos
mankyKitty[m] has joined #nixos
<vaibhavsagar>
fair enough
BurNiinTRee[m] has joined #nixos
FRidh[m] has joined #nixos
wak-work has joined #nixos
ma27 has quit [Ping timeout: 260 seconds]
Drakonis[m] has joined #nixos
Phil[m]2 has joined #nixos
briansteffens[m] has joined #nixos
indefini has joined #nixos
bdimcheff has joined #nixos
<boomshroom>
jgt: The packages will update whenever you run stack2nix. If you don't, it should use the cached versions.
Criena[m] has joined #nixos
htafdwes[m] has joined #nixos
unlmtd has joined #nixos
wizek[m] has joined #nixos
sudoreboot[m] has joined #nixos
tet[m] has joined #nixos
Orbstheorem[m] has joined #nixos
rosa has joined #nixos
Ralith has joined #nixos
enick_350 has joined #nixos
<jgt>
boomshroom: but that'll be cached versions locally, right?
<boomshroom>
jgt: If it had to copy a dependency and it didn't change, nix won't bother copying it again.
<jgt>
boomshroom: Right
<jgt>
boomshroom: would be good if nixops had some verbose output so I could ensure it's not copying over something it definitely doesn't need
<jgt>
I had misconfigured my default.nix earlier (when you were helping me), and it was trying to copy a bunch of MacOS SDK stuff to a Linux machine
<jgt>
ok, so I see nixops copied ghc and a bunch of haskell packages to the server
<jgt>
which is definitely not right
<vaibhavsagar>
why not?
<vaibhavsagar>
they might be stack's dependencies
<boomshroom>
jgt: It probably thinks that it can't build the linux binaries on mac, so it's trying to build them on the linux server. In that case, you'd need crossSystem.
<jgt>
boomshroom: I'll try again with crossSystem
Ariakenom has joined #nixos
<jgt>
boomshroom: http://ix.io/17ZU fails with error: infinite recursion encountered, at /nix/store/30g7yca1mmqm9x7w5psrljwdbb4mpvd7-nixpkgs-18.03pre121255.45a85eaceb/nixpkgs/pkgs/development/compilers/gcc/6/default.nix:52:33
<boomshroom>
jgt: Nix tries to use a compiler that runs on localSystem and targets crossSystem. If you overwrite localSystem (which happens if you set system or platform directly), it will try to build on the given system.
rauno has quit [Remote host closed the connection]
rauno has joined #nixos
<jgt>
boomshroom: I can tell you that my previous approach (before I was trying to use custom haskell packages) worked just fine: http://ix.io/17ZV
<jgt>
it would recognise that I'm on darwin, and it would use my local docker-vm to build instead
<boomshroom>
jgt: I didn't know that nix would use docker like that. Huh.
<boomshroom>
jgt: I was going to say that you should trust the article more than me, but my finger slipped and I commented nothing but your name.
<{^_^}>
[nixpkgs] @eqyiel opened pull request #39041 → libraries/agg: disable building of examples to fix build → https://git.io/vpJ7g
<jgt>
boomshroom: well that's why I'm setting `system` instead of `crossSystem`
jacob_ has joined #nixos
<boomshroom>
jgt: Ah, so that's how Nix is able to build linux binaries on macos!
Ariakenom has quit [Read error: Connection reset by peer]
rosa has quit [Quit: rosa]
<jgt>
boomshroom: really, I should be using the previous approach that worked, if only I could override haskellPackages with my own which stack2nix generates
<mkaito>
everything on nix needs better error messages
knupfer has quit [Ping timeout: 276 seconds]
<mkaito>
half the time, it might as well just give you the finger for how useful those messages are
<tilpner>
I do get errors with NIXPKGS_ALLOW_UNFREE=0 though
<sphalerite>
this one is a regression though, it used to work
<sphalerite>
huh
<tilpner>
Well, not errors. Just good output
<tilpner>
But yes, datagrip is unfree while idea-community isn't
<tilpner>
So that sounds like a good explanation
rosa has joined #nixos
vrdhn has joined #nixos
pie_ has quit [Ping timeout: 260 seconds]
<vrdhn>
hi. just moved from Arch to NixOS , a silly question: how do I install google-chrome, find /nix shows google-chrome, but nix-env -iA nixpkgs.google-chrome doesn't find it
chisui_w has joined #nixos
<mkaito>
vrdhn: try -iA nixos.google-chrome
<vrdhn>
mkaito, it exits without any message , ( and without installing! )
<{^_^}>
[nixpkgs] @gebner pushed to master « services.tt-rss: do not unnecessarily start nginx »: https://git.io/vpUkn
<ckauhaus>
ah ok
<ckauhaus>
just wondering
<kisik21>
Hello there. Cannot install xfce4-notes-plugin despite it being present in the nixpkgs as /nix/var/nix/profiles/per-user/root/channels/nixos/pkgs/desktops/xfce/panel-plugins/xfce4-notes-plugin.nix - when I do nix-env -i xfce4-notes-plugin it says error: selector 'xfce4-notes-plugin' matches no derivations
<electrocat>
is there a standard procedure for converting a single-user nix installation to multi-user?
i-am-the-slime has joined #nixos
<sphalerite>
electrocat: not particularly. But it's basically a matter of 1. create build users and build group, 2. chown nix store to root, 3. set up nix daemon
<sphalerite>
kisik21: usually it would actually give you an error message saying that it's marked as broken and how to install it anyway, it's just a recently introduced bug that causes it not to…
<reinzelmann>
Hi all, I'm getting this error when running nixos-rebuild, nix-env, nix-build etc. in a newly created container: "error: opening lock file '/nix/var/nix/db/big-lock': Read-only file system". I'm on a fresh nixos install; I've synced over my home dir from an old machine.
<vrdhn>
is there a issue for 'more descriptive messagees when install failes' ( that we can go and upvote) ?
<reinzelmann>
I've found an old IRC log entry that says to use a more recent version of nixos-rebuild, but I don't know how to go about that... I'm already on nixos-unstable, is there anything more recent than that?
<kisik21>
well, I will try to live without it then
<sphalerite>
kisik21: or you can try fixing it ;)
<kisik21>
How am I supposed to fix a problem in upstream source when I don't know C and xfce lib internals?
<kisik21>
It *seems* to be an upstream problem
qqlq has quit [Ping timeout: 268 seconds]
<kisik21>
Or someone just updated one package and forgot about another
<kisik21>
well, I don't use this package that often anyway, I could live without it
<vrdhn>
sphalerite, this is spaghetti of issues (-:
<sphalerite>
vrdhn: indeed
<fearlessKim[m]>
robstr: --debug ?
<vrdhn>
'shlevy self-assigned this 16 days ago ' , so I guess this must be close to getting fixed now.
<sphalerite>
not really
rosa has quit [Quit: rosa]
<{^_^}>
[nix] @edolstra pushed to master « exportReferences: Check whether the path is in the input closure »: https://git.io/vpUIM
<sphalerite>
kisik21: I think I've fixed it, at least it builds now
<kisik21>
How do I receive your fix?
<kisik21>
sorry for a dumb question
<kisik21>
but I really don't know
thblt has quit [Remote host closed the connection]
<kisik21>
error: Packages '/nix/store/3rf6b628m6kvjybgwlhsvvk9jnxg1ap5-xfce4-mailwatch-plugin-1.2.0/share/icons/hicolor/icon-theme.cache' and '/nix/store/32746xjnk7grmlww3w3mni46k130p7z2-xfce4-windowck-plugin-0.4.4/share/icons/hicolor/icon-theme.cache' have the same priority '5'use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' to change the priority of one of the conflicting packages ('0' being the highest priority)
<kisik21>
ouch, I found a bug in nixos.xfce.xfce4-mailwatch-plugin
<srhb>
kisik21: Usually you'll want to uninstall the older package rather than doing the priority flag dance.
<kisik21>
sphalerite: Wow, your fix prompts to download almost a gigabyte of derivations unpacked, including glibc, curl, bash, coreutils and some others...
<kisik21>
is my system not upgraded or is it a bug?
<sphalerite>
kisik21: yeah it's because it's based on master
<sphalerite>
whereas you're probably on 18.03
<kisik21>
I am.
<kisik21>
could you rebase it on top of 18.03 please?
<sphalerite>
will do
Acou_Bass has quit [Ping timeout: 256 seconds]
tilpner has quit [Quit: :wq]
<sphalerite>
could you ping me in the issue (@lheckemann) as well
<sphalerite>
it also contains a fix for the icon-theme.cache thing
<gmarmstrong>
Hi! I have a question about something in the configuration.nix man page. Is the first sentence of the description for `services.xserver.libinput.horizontalScrolling` worded correctly? Does enabling that option really *disable* horizontal scrolling? That seems counter intuitive, so I just want to make sure.
rosa_ has quit [Client Quit]
rosa_ has joined #nixos
<sphalerite>
gmarmstrong: that is confusing!
rosa has quit [Read error: Connection reset by peer]
<gmarmstrong>
I can make a PR to fix this if it's wrong, but I imagine I'll need to look at the xserver "InputClass" documentation.
Synthetica has joined #nixos
<Synthetica>
What is the difference between nixpkgs-unstable and nixos-unstable?
<unacceptable>
Best guess, one is an OS, one a collection of packages
sigmundv has joined #nixos
<Synthetica>
But can I use nixpkgs-unstable on nixos and still get (for example) a kernel?
<sphalerite>
Synthetica: nixos-unstable only advances once a test set has passed
<sphalerite>
you can, but it's strongly advised not to because that test set ensures that your system remains bootable
<kisik21>
sphalerite: about the fix: how to apply it? and does it fix all of the xfce4-*-plugin icon-theme.cache issues?
<sphalerite>
kisik21: no, I only fixed it for notes-plugin
<sphalerite>
Synthetica: it has happened in the past that nixpkgs-unstable has included changes that trashed the bootloader, and nixos-unstable didn't advance because of the tests that prevent exactly that
<Synthetica>
Ah, right
<sphalerite>
Synthetica: using nixpkgs-unstable on nixos for user packages is fine though
<angerman>
what’s the right way to read the `os` value?
<angerman>
we have `system` which is a string, and the user could override the system with the config. So I’m interested in the `os` value at the end.
<gmarmstrong>
Huh. Looks like the option is correct... ```Option "HorizontalScrolling" "bool" Disables horizontal scrolling.```
<kisik21>
sphalerite: is it normal that it pulls many -dev packages and some seemingly unrelated packages like networkmanager?
<kisik21>
btw, I don't have network-manager activated in /etc/nixos/configuration.nix and would like to not see it on my system
<sphalerite>
kisik21: yes, it needs to build it from source since it's not in the binary cache
<nick_l>
Myrl-saki: how easy is it to get that going?
<Myrl-saki>
nick_l: It's actually easy. Just takes 2 days.
<nick_l>
Myrl-saki: lol
cacatoes has joined #nixos
<nick_l>
Myrl-saki: CPU time or people time?
<nick_l>
Myrl-saki: I.e. was it hard to configure?
<etu[m]>
nick_l: Make tests, always interesting to see. At work we run Github Enterprise anyways, so it's kinda self-hosted almost :)
<Myrl-saki>
nick_l: People time.
<Myrl-saki>
nick_l: CPU time is 8 days. :P
<nick_l>
Myrl-saki: oh, that's kind of bad.
<Myrl-saki>
nick_l: Literally no configuring at all.
<Myrl-saki>
I just checked out a recent unstable.
iyzsong has quit [Ping timeout: 256 seconds]
<nick_l>
I think the default should be to ask for a build host.
<Myrl-saki>
nick_l: There are no build hosts. :P
<nick_l>
Myrl-saki: I understood, but who has 8 days?
<nick_l>
Myrl-saki: a hackathon takes a day :P
<kisik21>
Interesting. When installing xfce4-panel into user profile, it doesn't see installed plugins.
<Myrl-saki>
nick_l: I don't. I had NixOS on my RasPi a day before my lecture. I had to quickly download a graphical Raspbian.
<Myrl-saki>
nick_l: Now that that was done, I downloaded a console Raspbian and loaded Nix on it.
<kisik21>
It acts like nothing is installed (while, in fact, there are plugins installed! And even built-in things like Launcher don't work)
<kisik21>
sphalerite: should I file another issue about it?
<Myrl-saki>
How the hell do people bootstrap GHC anyway.
<Myrl-saki>
Did they like, start with Hugs, then made a GHC, then every succeeding GHC is bootstrapped by GHC-1?
<clever>
Myrl-saki: nixpkgs has a binary ghc package, that just patchelf's a pre-compiled one
<clever>
Myrl-saki: but that pre-compiled one is from debian
<sphalerite>
kisik21: I'm not sure about this one. Try searching existing issues though, it may be that it's just not the right way of using xfce plugins
<Myrl-saki>
clever: I mean how did they get the binaries from the start?
<Myrl-saki>
s/get/build/
<clever>
Myrl-saki: what i want to see, is a nix derivation that spits out a binary ghc, that can be patchelf'd to work on any future nixpkgs
<clever>
Myrl-saki: i'm guessing they started with a compiler written in c++
<clever>
Myrl-saki: there is also a language called c-- in the mix now i believe
<Myrl-saki>
clever: According to #haskell
<Myrl-saki>
│10:57:02 merijn | Myrl-saki: The very first Haskell compiler was written by Lennart in Lazy ML
ilyaigpetrov has joined #nixos
<Synthetica>
Hmm, would `(with : foo)` be feasible as syntactic sugar for `(bar: with bar; foo)`, in a similar vein to Haskell's LambdaCase?
kai_w has joined #nixos
<kisik21>
sphalerite: When installing system-wide, no changes, still empty "add to panel" menu
<Alling>
As part of my efforts to make Haskell/Cabal/ghc-mod/Atom build/install/run so I can commence work on a lab, I have a Nix question.
rosa_ has joined #nixos
<Alling>
I'm trying to override the cabal version in GHC. Let's say I have something like: let modifiedGhc = pkgs.haskell.packages.ghc802.override (oldAttrs: rec { }); in
<Alling>
Now, how can I tell what I can put inside the recursive set? I tried for example "sgsdagsdga = 5" which gave me an error, but how can I tell what attributes are legal there?
srdqty has quit [Ping timeout: 264 seconds]
<Alling>
I believe it would be useful to be able to "log" oldAttrs, just like one would do in JavaScript, to be able to examine its structure.
<Alling>
Therefore, I tried "throw oldAttrs" but "cannot coerce a set to a string".
<Myrl-saki>
clever: How hard would it be to extend from cross-platform to cross-architecture?
Ariakenom has joined #nixos
srdqty has joined #nixos
<Alling>
TL;DR: How to tell what attributes are valid in a set?
<Myrl-saki>
clever: I'm guessing "not hard at all" because a system is defined to be both `architceture-platform` string?
<clever>
Myrl-saki: i think angerman already mentioned ghc can target ARM easily enough and generate a self-contained dynamic library that android can dlopen()
vidbina has joined #nixos
<Myrl-saki>
clever: Right, but how about something that Nix can work with?b
<Myrl-saki>
Errr, sorry, that was incomplete. I'm using screen-under-tmux
<Synthetica>
sphalerite: Ah, that also works
<{^_^}>
[nixpkgs] @shlevy pushed to release-18.03 « hydra: build against nix stable. »: https://git.io/vpUsT
<{^_^}>
[nixpkgs] @shlevy pushed to master « hydra: build against nix stable. »: https://git.io/vpUsI
<Myrl-saki>
clever: Right, but how about something I can nix-build, say, using a custom `<nixpkgs> override`, maybe `import <nixpkgs> { host = ...; target = ...; }`?
<clever>
Myrl-saki: one sticky area with nix, is that you cant really mix native and cross easily
<Myrl-saki>
clever: Is it a Nix problem or Nixpkgs problem?
<clever>
Myrl-saki: if you configure nixpkgs to cross-compile with a linux-x86 host, then nix-env will forever rely on you having a linux-x86 host to do your building
<clever>
Myrl-saki: and if you ever try to switch to native, nix will rebuild the world
<Myrl-saki>
clever: I think that's fair.
<clever>
Myrl-saki: its mostly a limitation of nix
<Myrl-saki>
clever: It makes sense for maximum purity, I think?
<Myrl-saki>
clever: I can imagine this being useful for quick prototyping.
<clever>
Myrl-saki: yeah, its mostly a purity thing, you cant tell nix that compiler x and compiler y are identical and can be swapped out
mkoenig has joined #nixos
<angerman>
Myrl-saki: outside of nix it works pretty acceptable. See medium.com/@zw3rk, within nix Sonarpulse does a lot of infra, and i believe Obsidian Systems has it working for Android and iOS.
ericsagnes has joined #nixos
<angerman>
Myrl-saki: for windows (same arch) we have even TH working almost fully transparent. For iOS/Android it would require an external runner to make TH work.
<angerman>
For any cross Linux you could probably try QEMU or something similar.
xcmw has joined #nixos
<Myrl-saki>
angerman: Thanks, taking a look at it. I'm pretty interested in having this in nixpkgs itself, because, I believe it's possible to say `host = "x86-linux"; target = "arm-linux";`? on the ARM machine, and have the x86 machine run the compiler natively? Just have the target have the x86 machine as a substituter.
Fare has joined #nixos
Acou_Bass has quit [Ping timeout: 256 seconds]
rosa_ has quit [Read error: Connection reset by peer]
<Myrl-saki>
angerman: Yeah, I'm on the qemu route, and it seems to be slower than the RasPi itself.
<clever>
angerman: it should be trivial to take a linux-arm TH runner, and throw it under qemu-user-arm
<clever>
angerman: qemu-user basically works the same as wine, but for different arches of linux
<clever>
Myrl-saki: i also once tried qemu-user-x86-64 to run teamspeak on an rpi, but it threw an assertion within pulseaudio
<clever>
Myrl-saki: and the coredump was mangled by the mix of arches
<angerman>
Myrl-saki: the key with the TH runners is that you compile the bulk (non-TH) on your build machine and only need the target (real or emulated) for the TH bits.
<clever>
and getting the right gdb to play nicely...
<Myrl-saki>
clever: Aww. :(
<clever>
was too much of a mess to get a backtrace out of it
ma27 has quit [Quit: WeeChat 2.0]
<Myrl-saki>
clever: I've heard about using qemu static for binfmt. Why does it have to be a static build?
ma27 has joined #nixos
<clever>
Myrl-saki: ldd sets some magic env vars, that cause ld.so to spit out the dyn libs, rather then run things
<clever>
Myrl-saki: those magic env vars cause the dynamic qemu-user to spit out its own host deps!!
<clever>
then you wind up with x86 libraries in your arm initrd
<Myrl-saki>
angerman: Why does TH have to be run on the target?
<clever>
Myrl-saki: because the TH is importing libraries that have already been compiled for the target and the source for those is long lost
<Myrl-saki>
clever: On that topic, can you have ARM bins call to x86 libs without qemu-under-qemu?
<Myrl-saki>
Wait, can you even qemu a library?
<clever>
Myrl-saki: we need 2 types of import, for the host, and target, and limit TH to using host imports
<clever>
Myrl-saki: all code in the process has to be in the same arch
rosa has joined #nixos
<Myrl-saki>
clever: Oh okay, that makes sense.
joehh has joined #nixos
<Myrl-saki>
I'm pretty sure someone had a nixpkgs made specifically for cross compiling but I can't seem to find it.
<Myrl-saki>
Oh, nixcrpkgs
<angerman>
nixcrpkgs?
simukis has joined #nixos
<Myrl-saki>
Google failed me this time I think
<angerman>
Hehe ;)
<Myrl-saki>
angerman: Have you tried it out, considering you seem to be doing smoething similar?
tmaekawa has joined #nixos
kai_w has quit [Quit: kai_w]
<Myrl-saki>
Also, whatever happened to Church of Suckless NixOS?
<kisik21>
Guess what? Another bug. Plugins are symlinked in /run/current-system/sw/lib/xfce4/panel/plugins, but xfce4-panel doesn't even look in this directory, looking in /run/current-system/sw/share/xfce4/panel/plugins and /run/current-system/sw/share/xfce4/panel-plugins!
<{^_^}>
[nixpkgs] @Mic92 merged pull request #38930 → qemu: add option to build with gtk support → https://git.io/vpeTS
<clever>
kisik21: runCommand will have its own $out, that you can just use in the quotes
<nick_l>
clever: preferably without introducing extra running costs, that is. (anyone can attach additional EBS, etc.)
<clever>
kisik21: and the whole runCommand function returns that string within nix, for use elsewhere
<clever>
nick_l: id start with a GC, and check for old profiles of nixos you can delete
<nick_l>
clever: I already ran nix-collect-garbage -d
<kisik21>
clever: wait, so I could paste it into environment.systemPackages?
<nick_l>
clever: perhaps that doesn't delete older profiles, though.
<clever>
kisik21: yeah, once you wrap it with ( and )
mkoenig_ has joined #nixos
<kisik21>
because [] is more binding than pkgs.runCommand or something like that, right?
pie_ has joined #nixos
Rusty1_ has joined #nixos
<nick_l>
clever: I think one issue is that the default image of NixOS is too big. It seems there is lots of unnecessary tooling on the machine.
fusion809 has quit [Quit: Leaving]
<tokudan[m]>
is it notmal that nix-repl as a regular user fails on 18.03 with error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied ?
<clever>
nick_l: there are configuration.nix flags to disable a lot of that
<nick_l>
clever: headless? Already have that.
<clever>
tokudan[m]: its linked against nix 1.11, you need to either use `nix repl` or `NIX_REMOTE=daemon nix-repl`
<nick_l>
clever: This one seems particularly useless: hb3my57q3ai9iwxcsfv381z368xvn1qi-gnome-backgrounds-3.24.0
<clever>
nick_l: find the top-level .drv file that `nixos-rebuild dry-run` prints out, then do `nix-store -q --tree` on that, and trace the path to gnome-backgrounds
<kisik21>
clever: collision between `/nix/store/wpqvv18yswqizz5ykhl5pyqkmh7ww6v9-xfce4-panel-fix/share/xfce4/panel-plugins' and `'
<kisik21>
clever: was forced to mkdir because the ln bailed out with "No such file or directory" about $out/share/xfce4
Fare has joined #nixos
<clever>
kisik21: 2 different packages both had a share/xfce4/panel-plugins in their output, so it only used one of them
<clever>
kisik21: you can also use ; or even multi-line strings, no need for &&
<kisik21>
I know about ;, && is just better for this purpose because if something fails, everything fails gracefully without bugs
<kisik21>
or maybe it fails anyway
<kisik21>
I dunno
<zybell>
I think you collide with yourself
jgt1 has joined #nixos
<clever>
kisik21: nix already sets a bash flag to hard-fail the whole thing if any step fails
<kisik21>
ok
<zybell>
.drv and runcommand
<ben>
gotta be careful to avoid bash patterns that swallow errors i guess
fusion809 has joined #nixos
goibhniu has joined #nixos
jgt has quit [Ping timeout: 265 seconds]
<kisik21>
zybell: how's that possible and how to fix it?
nico202 has joined #nixos
<kisik21>
No conflicts, already fixed, I guess
<kisik21>
yay, it builds
<kisik21>
or not
<nick_l>
clever: I took the top listed drv file (all are printed on the same level), but background was not found int eh nix-store -q --tree <drv file> output.
<kisik21>
clever: zybell: I don't see my shiny new symlink...
<kisik21>
ls: cannot access '/run/current-system/sw/share/xfce4/': No such file or directory
<fusion809>
I added the two configuration.nix lines mentioned here https://unix.stackexchange.com/a/437249/27613 to said file, then rebuilt, on 18.03. I already had the Firefox GNOME store extension installed, yet when I open up the browser to extensions.gnome.org I get the host connector missing error. Any ideas why?
chaker has joined #nixos
<nick_l>
clever: the first command doesn't make sense to me, because it was completely unrelated to backgrounds.
bkchr has joined #nixos
<clever>
nick_l: when does gnome-backgrounds come into play, is nixos-rebuild downloading it?, is it already on-disk?
<nick_l>
clever: I saw it in the store.
pls-help has joined #nixos
<nick_l>
clever: I am now just destroying those machines and building new ones.
wangoe has quit [Quit: WeeChat 1.9.1]
<nick_l>
clever: but it would be nice to be able to upgrade to new releases on small machines.
<clever>
nick_l: this command will tell you why its ondisk still
nico202 has quit [Ping timeout: 260 seconds]
<chaker>
Hey, What's the best way to retry a function that raise an exception in nixops? The exception is raised within nixops itself (i.e. It's not a boto error).
<clever>
and if it has no output, you can `nix-store --delete` it to regain that space
<pls-help>
Hi everyone, I just installed NixOS and so far I'm really goddamn happy. But I have one question: can I disable the feature where Nix sets ~/background-image as my wallpaper?
<manveru>
it what?
<Synthetica>
That doesn't sound like a Nix feature?
<manveru>
apparently it is...
<pls-help>
the entry in "man configuration.nix" for services.xserver.desktopManager.wallpaper.mode tells me "The file ~/.background-image is used as a background image"
<jophish>
The file <filename>~/.background-image</filename> is used as a background image.
<chisui_w>
I am trying to use nix with travis-ci.org to build a haskell project. Unfortunatly the build always times out. Is there a way to cache dependencies between builds?
<clever>
pls-help: i believe it turns off automatically if you use a desktop env that can manage the root window automatically
<clever>
chisui_w: a hydra server is the best way to manage that, but then you need at least 2 machines running nixos
<pls-help>
ok well I'm using xmonad which I guess doesn't have that functionality. In my past OS I would set the background in .xprofile manually, but it looks like Nix sets it after .xprofile runs
<manveru>
pls-help: i think you can set an option in the xmonad config then
<clever>
pls-help: if ~/.background-image doesnt exist, nixos will instead just set the background to solid black
<pls-help>
Well, the functionality that I want is to select a background randomly from a directory, so it's a bit complicated and I'd rather just do it from a script
<chisui_w>
clever: ok, I think I will go with the normal haskell travis support then
<pls-help>
yeah I've noticed it's setting the background to black
<{^_^}>
→ 357d8f60 by @knedlsepp: clblas: Enable darwin build
<{^_^}>
→ d96f0c56 by @knedlsepp: pythonPackages.libgpuarray: enable darwin build
<{^_^}>
→ be5ad658 by @Mic92: Merge pull request #38971 from knedlsepp/fix-darwin-gpu-stuff
warbo has joined #nixos
<joko>
Any way to clean up the git repositories in hydra? I am getting an error (command `nix-prefetch-git /var/lib/hydra/scm/git/8bcf562ad1ea5cd3d7316c2cbd3607b2682c0f370f573aea174914af08dfd0d7 3d15af3724991dda15a2b1238ab9a9072d3c028a' failed with exit status 256 at /nix/store/s4ymjifk68q5pm01f8965rcn0g28wjvm-hydra-2017-11-21/libexec/hydra/lib/Hydra/Helper/Nix.pm line 428.) and "Clear VCS caches" is not fixing it
alexteves_ has joined #nixos
<nick_l>
What is a good client to connect to a MacOSX remote desktop?
<nico202>
clever: ehm it works with nixos-build-vms, but how to get it in nixos-rebuild build-vm?
<nick_l>
I am currently using remmina, but it doesn't seem to have a button to store credentials.
<pirateking>
gchristensen: ok perfect :) I just wanted to make sure I wasn't bugging anybody to drop an ofborg command if I could do it myself. I feel better now that I know this is part of th process :)
rosa has quit [Client Quit]
oida has quit [Remote host closed the connection]
oida has joined #nixos
kisik21 has joined #nixos
<tokudan[m]>
nick_l: remmina seems to be fine on 18.03, I'm using it. the menu is hidden below the button with the three dashes on the right
<nick_l>
tokudan[m]: where is the button to save a configuration then?
<nick_l>
tokudan[m]: I did find that menu before I asked.
odi has joined #nixos
<tokudan[m]>
to create a new connection? that's the plus on the left side
<nick_l>
tokudan[m]: that plus is a black cross on a dark grey background. Completely invisible for me.
<nick_l>
tokudan[m]: thanks!
<tokudan[m]>
it's blue on light grey for me
pirateking has quit [Quit: Page closed]
<nick_l>
tokudan[m]: it doesn't remember my password, however.
<nick_l>
tokudan[m]: even though I told it to do so.
thefloweringash has joined #nixos
blankhart has joined #nixos
phreedom has joined #nixos
<nick_l>
tokudan[m]: Remote error from secret service: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.secrets was not provided by any .service files
Akii_Work has joined #nixos
winem_ has quit [Remote host closed the connection]
<tokudan[m]>
saving the password works for me (i just checked), i just can't connect due to freerdp telling me my password expired (which is definitely wrong)...
<Akii_Work>
Good day! Decided to use NixOS at work xD... I need to install Slack, it's on the nixpkgs github and I added a nixpkgs-unstable channel but whatever I do I cannot install it via nix-env -i
<WilliamHamilton>
hi, how would I enter a shell in which libz.so.1 (zlib) is available?
<clever>
WilliamHamilton: nix-shell -p zlib
<LnL>
joko: journalctl -u hydra-evaluator
<Akii_Work>
clever: nice, thank you
<Akii_Work>
I'll +1 the ticket when I'm home and have access to GH
<LnL>
joko: and otherwise maybe just try to move/remove /var/lib/hydra/scm/git?
<WilliamHamilton>
clever: thanks, that was what I tried before, but I still get the error `error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory`
<Akii_Work>
just for understanding what I typed ther: how does "nixos.slack" refer to nixpkgs? And does this have anything to do with the unstable channel I added?
<joko>
LnL: ah /nix/store/s4ymjifk68q5pm01f8965rcn0g28wjvm-hydra-2017-11-21/bin/.nix-prefetch-git-wrapped: line 160: cd: too many arguments
<joko>
I am using git submodules in one project, indeed
phreedom has quit [Remote host closed the connection]
<clever>
WilliamHamilton: the shell wont add it to the search path at runtime, only at build-time
<clever>
WilliamHamilton: what program is failing to find it?
<WilliamHamilton>
clever: is patchelf my only hope? Isn't there something like steam-run to create an environment with the libraries I want?
<joko>
Akii_Work: nix-channel --list will show you the channels you have as user
<clever>
Akii_Work: `nix-env -i slack` will search the .name of every package you can currently install, and unfree packages are hidden by default
<clever>
Akii_Work: `nix-env -iA nixos.slack` forces it to use the slack package in the nixos channel, and it will fail with an error explaining how to enable unfree packages
<clever>
Akii_Work: thats a recent bug i heard sphalerite mention an hour ago, it no longer shows the error
<Akii_Work>
clever: so it had nothing to do with the unstable channel I added
<clever>
Akii_Work: yep
<LnL>
joko: ah, I don't use anything with submodules
Ariakenom has quit [Remote host closed the connection]
Ariakenom has joined #nixos
<clever>
WilliamHamilton: its also likely to go a lot better if you use nix-build instead of nix-shell
<joko>
LnL: I wasn't either, until Nix in Hydra became too pure to handle some hacks I was relying on :D
<WilliamHamilton>
clever: in building that program, another bootstrap program is used (so I can't build the boostrap program myself, I fear); if that is true, is patchelf the only way to go or is there a way of changing runtime paths also (for example, how does steam-run work so well?)
phreedom has joined #nixos
<clever>
WilliamHamilton: ahhh, yeah, you will need to patchelf the bootstrap program
<WilliamHamilton>
clever: that's a better way than to search the /nix/store path manually as I used to do, but unfortunately the --set-rpath command gives a bash error (bad substitution)
<clever>
WilliamHamilton: that has to go into the nix file
<clever>
WilliamHamilton: and you want nix-locate (part of the nix-index package)
<WilliamHamilton>
clever: ok, so I need a nix file; could you link to a template?
<{^_^}>
→ c4ef846c by @badi: tlaplusToolbox: init at 1.5.6
<{^_^}>
→ 5dc7a70f by @Mic92: Merge pull request #38589 from badi/tlatools
kisik21 has joined #nixos
dbmikus has quit [Client Quit]
nico202 has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @dotlambda merged pull request #39058 → Removed name from Scapy → https://git.io/vpUqX
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @Synthetica9 to master « pythonPackages.scapy: remove name attribute (#39058) »: https://git.io/vpUrd
patrl has quit [Quit: WeeChat 1.9.1]
dbmikus has joined #nixos
nico202 has joined #nixos
odi has quit [Ping timeout: 240 seconds]
<clever>
WilliamHamilton: ok, the patchelf phase is done, now on to the main phase...
chaker` has joined #nixos
odi has joined #nixos
<clever>
fatal error encountered in SBCL pid 482(tid 140737354088960):
<clever>
can't find core file at /usr//lib/sbcl//sbcl.core
chaker has quit [Ping timeout: 246 seconds]
<clever>
WilliamHamilton: any idea what causes this?
odi has quit [Remote host closed the connection]
<WilliamHamilton>
clever: I never arrived at that point; I can try to understand it if you share the first part or you can talk directly to the owner of that repo in #shen
<{^_^}>
→ 7c347556 by @luke-clifton: ipfs 0.4.13 -> 0.4.14
<{^_^}>
→ 5b3c2b18 by @peterhoeg: Merge pull request #38828 from luke-clifton/ipfs-update
joehh has quit [Ping timeout: 256 seconds]
nuncanada2 has joined #nixos
mkoenig has joined #nixos
lo_mlatu has joined #nixos
<Akii>
now using NixOS at work >_> that escalated quickly
katona has joined #nixos
<sphalerite>
:D
<clever>
:D
<Synthetica>
:D
<shapr>
Akii: nice
blym has joined #nixos
szicari has joined #nixos
<{^_^}>
[nixpkgs] @jbgi opened pull request #39072 → Azure agent mount resource option + bash to path → https://git.io/vpUXU
Fare has quit [Ping timeout: 256 seconds]
kisik21 has left #nixos [#nixos]
jperras has joined #nixos
<manveru>
Akii: happy little accidents :)
<Akii>
:D
jperras_ has joined #nixos
mkoenig has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @jbgi opened pull request #39073 → blobfuse: fuse fs adapter for Azure Blob storage. → https://git.io/vpU1V
<etu[m]>
Akii: Well done!
jperras has quit [Ping timeout: 268 seconds]
jtojnar has quit [Read error: Connection reset by peer]
<xCuri0>
is it possible to install nix packages optimized for your computer's cpu ?
jtojnar has joined #nixos
<xCuri0>
like compiled with -march=native
nico202 has quit [Remote host closed the connection]
<tokudan[m]>
xCuri0: i guess no, as that would have to be an additional architecture or system type or something like that. and you'd pretty much have to recompile the whole world...
Pneumaticat has joined #nixos
<xCuri0>
tokudan[m], isn't nix source based anyways (though it can use binary cache)
<xCuri0>
that feature probably needs to be added
<xCuri0>
its useful on embedded systems where you can every drop of performance
<{^_^}>
[nixpkgs] @jbgi opened pull request #39074 → atlassian-jira: 7.7.0 -> 7.9 and add bash to service path → https://git.io/vpUM9
<tokudan[m]>
you may be able to override gcc to add that flag by default, but that would result in all derivations that depend on gcc to be recompiled
<sphalerite>
xCuri0: yes, it's possible
warbo has quit [Ping timeout: 256 seconds]
<sphalerite>
I don't know where the best place to put it is though
jperras has joined #nixos
luigy has joined #nixos
<Pneumaticat>
Does anyone have experience running a small Kubernetes cluster on NixOS? The simplest way on other operating systems seems to be `kubeadm`, but I get errors when running it on nixos. There doesn't seem to be much documentation about it.
jperras_ has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @matthewbauer pushed 5 commits to staging: https://git.io/vpUD2
<{^_^}>
→ d3d0c019 by @strager: clang: refactor post-install comments
<{^_^}>
→ 2505aa51 by @strager: clang: fix install on Darwin
<{^_^}>
→ 94872447 by @matthewbauer: Merge remote-tracking branch 'strager/fix-clang' into staging
<sphalerite>
xCuri0: probably overriding stdenv to pass an extra setup hook which adds -march=native to NIX_CFLAGS
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #39038 → clang: fix install on Darwin → https://git.io/vpJPy
reinzelmann has quit [Quit: Leaving]
kmicklas has quit [Ping timeout: 256 seconds]
hyper_ch2 has quit [Ping timeout: 260 seconds]
<tokudan[m]>
Pneumaticat: lookup the option services.kubernetes.roles
ryanartecona has joined #nixos
thblt has quit [Remote host closed the connection]
<Pneumaticat>
yeah, I managed to get a single-node cluster running that way (I think), but I'm not sure how to add nodes that way
<tokudan[m]>
ah, ok. sorry, can't help with that
<sphalerite>
xCuri0: (import <nixpkgs> {overlays = [(self: super: {stdenv = super.stdenv.override {extraBuildInputs = [./march-native.sh];};)];}).hello should give you a native-optimised GNU hello, when ./march-native.sh is export NIX_CFLAGS="$NIX_CFLAGS -march=native"
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #38311 → Use lib/purple-2 directory instead of lib/pidgin → https://git.io/vx6lv
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpUDd
<{^_^}>
→ 75f79581 by @qfjp: Use lib/purple-2 directory instead of lib/pidgin
<{^_^}>
→ 3207b7e7 by @matthewbauer: Merge pull request #38311 from qfjp/submit/finch-fix
reinzelmann has joined #nixos
<sphalerite>
xCuri0: note though that that breaks purity of builds completely.
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #38032 → deepin: use libsForQt5 in meta package → https://git.io/vxVoW
jperras has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpUDA
<{^_^}>
→ e2341747 by @romildo: deepin: use libsForQt5 in meta package
<{^_^}>
→ 23eac59f by @matthewbauer: Merge pull request #38032 from romildo/deepin
<Pneumaticat>
I guess I'll see if there's a way to manually configure without kubeadm :)
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpUFc
<{^_^}>
→ 02757a6a by @ryantm: grml-zsh-config: 0.14.2 -> 0.14.3
<{^_^}>
→ 3bacb4f5 by @matthewbauer: Merge pull request #36580 from ryantm/auto-update/grml-zsh-config
<jgt>
gchristensen: I want to deploy my Haskell app with NixOps from MacOS via a remote builder (in docker) to AWS. This was working perfectly before, until I needed to override haskellPackages with newer haskell packages.
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpUAk
<{^_^}>
→ 51e0baf4 by @alesguzik: bitwig-studio2: update version 2.2.2 -> 2.3.1
<{^_^}>
→ ff540b8c by @matthewbauer: Merge pull request #36407 from alesguzik/update-bitwig
monotux has joined #nixos
<CornBurglar>
aye has anyone run into issues with OpenGL using nixos?
<CornBurglar>
When I try to run anything OpenGL I recieve libGL errors with loading drivers that I cannot resolve from any seemingly similar issues I find online
blankhart has joined #nixos
pkill9 has joined #nixos
dbmikus has quit [Ping timeout: 256 seconds]
ihar has joined #nixos
<kreisys>
hjälp! hydra doesn't let me access filtered sources created with builtins.path :'(
<kreisys>
actually that's restricted mode in general
chaker` has quit [Ping timeout: 256 seconds]
<kreisys>
if the original path is a declared input then why isn't the derived path allowed?
<spacefrogg>
You can try to filter them at evaluation time and then use the result as sources for your actual derivation
jtojnar has quit [Read error: Connection reset by peer]
sehqlr has joined #nixos
jtojnar has joined #nixos
sehqlr_ has joined #nixos
<LnL>
why are you forcing ./. to be a path?
<kreisys>
in my actual use case there's a filter there as well.
<kreisys>
to remove .git and node_modules
<kreisys>
as well as any result* symlinks
<LnL>
yes but that doesn't matter for (./. + "/package.json")
<LnL>
your example tries to read /nix/store/...-src-copied-to-store/package.json instead of /path/to/src/package.json
<kreisys>
Oh I see what you're saying... it was actually "${src}/package.json" originally. I tried changing it hoping it would make a difference. it didn't
<LnL>
that's not allowed at evaluation time
sehqlr has quit [Ping timeout: 256 seconds]
raynold has joined #nixos
<kreisys>
It isn't? Is that documented anywhere?
<bkchr[m]>
Peter Hoeg: Did you tried to build my kde framework pr?
<kreisys>
there's not much information about restricted eval
<LnL>
yeah, that's similar try "${toString src}/package.json"
pkill9 has joined #nixos
sehqlr_ has quit [Ping timeout: 256 seconds]
<LnL>
using "${path}" will copy it to the store implicitly
<kreisys>
well I guess there's no harm in pulling it from the original source dir... it's just a bit wonky because now I have to keep passing around filteredSrc and origSrc or something like that
<{^_^}>
[nixpkgs] @primeos pushed to master « signal-desktop-beta: Mark as broken (really outdated) »: https://git.io/vpUju
<kreisys>
I'm not sure what he's doing there but I'll dig in
<kreisys>
thx!
Tucky has quit [Quit: WeeChat 2.1]
chaker` has joined #nixos
lo_mlatu has quit [Ping timeout: 263 seconds]
rauno has quit [Ping timeout: 256 seconds]
<LnL>
let src = { outPath = builtins.filterSource f ./.; config = (./. + "/package.json"); } in ...
xcmw has quit [Ping timeout: 276 seconds]
<LnL>
I should be able to use "${src}" then
<LnL>
or src.config.version for the json metadata
Twey has joined #nixos
<jgt>
offer is still open. Will pay someone to pair with me on fixing my Nix setup. Need to override haskellPackages with one generated by stack2nix, and deploy with nixops. Probably takes 30-60 minutes?
grp has joined #nixos
xy2_ has joined #nixos
<kreisys>
wait is outPath a special parameter or something? why would "${src}" work if it's now an attrset?
ryanartecona has quit [Quit: ryanartecona]
blankhart has quit [Read error: Connection reset by peer]
blankhart has joined #nixos
<jluttine>
Has anyone used Nix environment with matplotlib in Windows somehow? I'm thinking if it's possible to use Nix to manage our Python environments but some people are using Windows so I'm thinking if that's a no-go..
<Twey>
Is there a way to get the path/directory of the current file (i.e. not copied to the store)? I'm making a nix-shell that should, amongst other things, append a directory of the source to the path
vodoo_ has joined #nixos
<vodoo_>
hi
<vodoo_>
anybody here?
lonokhov has quit [Quit: q]
<vodoo_>
i need some help about install and config lamp
<elvishjerricco>
Is there anything I can do with Nix 1.11 to test whether a binary cache is configured?
katyucha has joined #nixos
<vodoo_>
how can i install mysql and phpmyadmin ???
<katyucha>
vodoo_: configure your services, rebuild and it runs
<LnL>
kreisys: yeah, it's used when casting an attribute set to a string
<vodoo_>
thankyou .. what about phpmyadmin ?
<Twey>
kreisys: src is most likely a derivation; derivations are a particular type in Nix, and the result of converting a derivation to a string is to give the store path of its default output
<LnL>
kreisys: so you can use it like a regular path
<katyucha>
vodoo_: i don't know, never use it
<tnks>
can someone help me find the functions in nixpkgs that do the configuration of /run/current-system/sw?
<tnks>
I'm curious to see the steps.
ma27 has quit [Ping timeout: 256 seconds]
<tnks>
specifically, I'm wondering if I can emulate it in Docker.
<kreisys>
adding outPath implicitly turns an attrset into a derivation?
katona has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @bjornfor pushed commit from R. RyanTM to master « libsigrokdecode: 0.5.0 -> 0.5.1 »: https://git.io/vpTvK
<elvishjerricco>
shlevy: I feel like you would probably have an answer to my question :P Any way to use Nix 1.11 from a script to check if the system has a certain binary cache configured?
chisui has joined #nixos
<tilpner>
elvishjerricco - Can't you just check /etc/nix/nix.conf?
dbmikus has joined #nixos
chisui has quit [Client Quit]
astiles has quit [Ping timeout: 260 seconds]
astiles has joined #nixos
<elvishjerricco>
tilpner: That's a bit of a sore spot :P The bugs we're having with `try-reflex` have to do with our attempting to add caches to that file automatically. Sometimes it doesn't work for a variety of obscure reasons. `cat`'ing the file after writing to it seems like a kinda bad test.
thblt has quit [Remote host closed the connection]
<tilpner>
Oh, hmm. Can you try to use the cache?
<Guillaum>
I'm having issue to run a proprietary software on nixos. I did the usual patchelf to change the dynamic linker, but I'm having linking issues. With ldd, I'm having a lot of "...lib/libm.so.6: version `GLIBC_2.27' not found (required by ..../qtwebkit-5.9.1/lib/libQt5WebKit.so.5)" for example.
<tilpner>
Guillaum - Have you tried running it with steam-run?
<tilpner>
(If you only wnat to run it, and don't care to package it)
<elvishjerricco>
tilpner: Yea but that also has a variety of edge cases. Like if they have distributed builders, using `-j 0` can just have it use the remote builders if the cache isn't configured
chaker`` has joined #nixos
chaker` has quit [Remote host closed the connection]
Fare has joined #nixos
<tilpner>
elvishjerricco - Only if the remote builders have that cache added, right?
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « Revert "hfsprogs: init at 332.25" »: https://git.io/vpTIn
<Guillaum>
tilpner: no, I was not aware of "steam-run"
<elvishjerricco>
tilpner: I don't think -j 0 will propagate to remote builders.
<LnL>
elvishjerricco: I was trying to do something similar today, my idea was to use impureEnvVars to make a dummy build fail if it's built locally instead of substituted
<elvishjerricco>
LnL: Eek :P
<{^_^}>
[nixpkgs] @georgewhewell opened pull request #39082 → binutils: fix R_AARCH64_ABS32 on aarch64 → https://git.io/vpTIW
<LnL>
elvishjerricco: but for some reason impureEnvVars don't seem to work anymore for me
<tilpner>
Guillaum - It's a quick way to get an FHS environment, built for the Steam game distribution platform. It tends to work for many download binaries, so it's worth a try
nuncanada2 has quit [Ping timeout: 240 seconds]
<tilpner>
But yours might of course depend on some exotic libraries, so you might have to add some packages
<elvishjerricco>
LnL: Darn. Well anyway, relying on finding a certain build on the cache also has edge cases. Like if the build was downloaded previously but the cache has since been removed, or if the build finds its way onto another cache they use, like an ssh store to a machine they use to build with a lot.
<elvishjerricco>
Bleh. I guess parsing nix.conf is probably the right way to go
humanoyd has joined #nixos
<elvishjerricco>
Assuming there are no other environmental factors that can influence the cache list, besides command line flags?
<Guillaum>
tilpner: (actually I'm trying to package the software for nixos, so steam-run may be a temporary solution, but I'll try
nur0n0 has joined #nixos
<tilpner>
Guillaum - Oh! For nixpkgs, FHS' should be the last possible solution. Unfortunately patchelf-ing lots of libraries is very tedious :/
jrolfs_ has joined #nixos
ryantrinkle has joined #nixos
leat has joined #nixos
Myrl-saki has quit [Read error: Connection reset by peer]
<{^_^}>
→ 5f937db4 by @knedlsepp: clblas: Enable darwin build
<{^_^}>
→ 3fd2b19d by @knedlsepp: pythonPackages.libgpuarray: enable darwin build
chisui has joined #nixos
blymberry has quit [Quit: Leaving]
vodoo_ has quit [Quit: Page closed]
<nur0n0>
what is the relationship between nix and include paths? calling 'nix-shell -p gcc binutils linenoise' doesn't seem to change any relevant environment variables. do I need to explicitly tell gcc where to look?
chisui has quit [Client Quit]
<nur0n0>
or is wrapping the script in a 'stdenv.mkDerivation' the best way?
sigmundv__ has joined #nixos
<tilpner>
Look at $NIX_CFLAGS_COMPILE
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos
ma27 has quit [Client Quit]
ma27 has joined #nixos
sigmundv has joined #nixos
knupfer has quit [Ping timeout: 240 seconds]
sehqlr has quit [Ping timeout: 264 seconds]
sigmundv__ has quit [Ping timeout: 256 seconds]
sigmundv has quit [Read error: Connection reset by peer]
sigmundv has joined #nixos
<nur0n0>
tilpner: thank you
badi has quit [Quit: WeeChat 1.9.1]
<johnw>
shlevy: which commit of yours fixed lsof again?
<astiles>
however, I receive and error "undefined variable 'goPackages' when I try and run "nix-build redis-generic.nix -A redisOnDebian"
<kini>
How would one package for nix/nixpkgs an application that is "constantly changing"? For example, jDownloader is a program that attempts to automate downloading of files from a large variety of "file locker" websites by scraping pages, "clicking" ads, solving CAPTCHAs, waiting for timers, etc.
<kini>
jDownloader is in a sort of arms race with these sites so it has to keep updating itself constantly in order to maintain functionality. That seems like it doesn't fit that well with nixpkgs... or does it?
katyucha has quit [Ping timeout: 256 seconds]
sigmundv has quit [Ping timeout: 264 seconds]
<tilpner>
kini - How volatile are those changes?
jperras_ has joined #nixos
<kini>
As in how frequent? I haven't tried using it for a couple years now, but as I recall it was anywhere between once every two days and multiple times a day
<tilpner>
How do other distributions do it?
<kini>
they don't, as far as I've seen :P
<kini>
it is open source and cross platform, so it should in theory be possible, but I guess nobody has bothered to figure out how to package it in a sensible way
<tilpner>
You could technically automate it, write a script to update the expression, put it on a timer, and push to an out-of-tree repo
<tokudan[m]>
kini: well, you could try just adding a wrapper script that simply generates a nix expression and then builds and runs it
katyucha has joined #nixos
<tilpner>
Then provide an overlay like nixpkgs-mozilla does for nightly firefox and rust builds
<tilpner>
But I'm not really convinced it's worth it. Surely it has a self-updater?
jperras has quit [Ping timeout: 264 seconds]
<kini>
yeah, it does have a self updater, but I guess it mutates its own files in place so it wouldn't work to have it in the nix store
<tilpner>
Might be easier to modify the self-updater to use e.g. ~/.local
<kini>
(I've never actually tried running it on linux, I've only used the windows version before -- I more just brought it up as an example to ask a general question)
<tilpner>
And put it in an FHS if it downloads libs/binaries
<kini>
Hmm, good ideas. Thanks :) Also, I didn't realize we had nightly firefox/rust builds via an overlay. That's cool, and shows that it's feasible to package something that changes daily, at least.
<zybell>
how about making it an interpreter for a DSL (probably already is) and put interpreter in store, DSL scripts in /var
katyucha has quit [Ping timeout: 240 seconds]
<zybell>
?
<kini>
if it isn't already an interpreter for a DSL that seems to go beyond simple distro-specific patching into "fork" territory :P
<kini>
but yeah, also an idea
spear2 has joined #nixos
MP2E has joined #nixos
Lisanna has joined #nixos
gleber_ has joined #nixos
<{^_^}>
[nix] @shlevy opened pull request #2084 → isFunction: True on primops. → https://git.io/vpTOW
<Lisanna>
Should library package derivation names be named "libname" or "name"? what about their nixpkgs attr name?
<kini>
I think both are "libname" usually
<kini>
if you look at pkgs/top-level/all-packages.nix there's a huge swath of that file with lines like "libfoo = callPackage ../development/libraries/libfoo { };"
nuncanada2 has joined #nixos
jperras_ is now known as jperras
katyucha has joined #nixos
<{^_^}>
[nixpkgs] @vcunat pushed 8 commits to release-18.03: https://git.io/vpT3O
<{^_^}>
→ 7361cadc by @aszlig: Increase max group name length to 32 characters
<{^_^}>
→ 786f498c by @FRidh: python3: 3.6.4 -> 3.6.5
<Mic92>
There some NLP APIs that could parse the whole question instead without too much effort.
<Mic92>
*there are
rosa has quit [Quit: rosa]
rauno has joined #nixos
rosa has joined #nixos
vaninwagen has joined #nixos
Guest4662 is now known as Georgyo
Georgyo has quit [Changing host]
Georgyo has joined #nixos
Georgyo has joined #nixos
leat has quit [Quit: WeeChat 2.0.1]
<Georgyo>
dear #nixos, I am trying to override the src attribute of the nix package, so it builds off my own revision of nix with my changes, but the nix expression/package seems to be written in a fairly convoluted way, such that I can't use override or overrideAttrs
nuncanada2 has quit [Read error: Connection reset by peer]
<LnL>
derp, no wonder impureEnvVars didn't work
<Georgyo>
in particular, I want to build directly from git, so I want to use nixUnstable (which has fromGit set), but when I use overrideAttrs to change the src attribute, it seems to set fromGit = false
<{^_^}>
[nixpkgs] @xeji opened pull request #39085 → bwsyncandshare: init at 11.5.625 → https://git.io/vpTce
<Georgyo>
why???????????? pls help
leat has joined #nixos
rosa has quit [Quit: rosa]
<{^_^}>
[nixpkgs] @Mic92 merged pull request #39080 → partclone: add support for various filesystems → https://git.io/vpTfd
<{^_^}>
→ 02b022a9 by R. RyanTM: file: 5.32 -> 5.33
<{^_^}>
→ 991e0084 by @Mic92: Merge pull request #39063 from r-ryantm/auto-update/file
joko has quit [Quit: leaving]
drakonis_ has joined #nixos
drakonis has quit [Ping timeout: 256 seconds]
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
<Akii>
oh wow I got Nix to build my Haskell project
<Akii>
after upgrading it for two days
<Akii>
which isn't Nix's fault of course
<Akii>
I think I'm almost at a point where I can deploy this now
jperras has quit [Read error: Connection reset by peer]
dbmikus has quit [Ping timeout: 260 seconds]
katyucha has quit [Quit: Lost terminal]
nuncanada has joined #nixos
joko has joined #nixos
knupfer has joined #nixos
daveo has joined #nixos
jperras has joined #nixos
<kreisys>
LnL: thanks a lot! it took a bit of a wild goose chase to find all the places that use bad paths but that was the last hurdle! hydra is a happy camper now! 😅
<kreisys>
now I need to clean up all the code... it looks like it was hit by a tornado
<daveo>
kreisys: yaaay
<daveo>
boomshroom: I'm ready to resume trying to fix the EFI if you are.
<daveo>
boomshroom: with a fast connection till 5pm EST
sehqlr has joined #nixos
hotfuzz_ is now known as hotfuzz
ndrei has joined #nixos
ndrei has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « pkgs/shells: move extensions to subdirs »: https://git.io/vpTlG
<mpickering>
kreisys: I feel that pain. What are you packaging?
vidbina has quit [Ping timeout: 256 seconds]
rauno has quit [Ping timeout: 240 seconds]
<Lisanna>
"outputLib is meant for libraries, typically residing in lib/ and libexec/. They go to lib or out by default."
<iqubic>
boomshrom isn't here right now.
<Lisanna>
which is better? lib or out?
jperras has quit [Read error: Connection reset by peer]
ckauhaus has quit [Quit: Leaving.]
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
<kreisys>
mpickering: my work's product.. the part of it that we should really break down into smaller modules but never actually do. you know that one? lol
<mpickering>
Lisanna: What files are you talking about exactly? I would say lib without any futher info
<mpickering>
kreisys: It's worth it once you have packaged it though as you know it might continue to work in the future ;)
<kreisys>
It has so many dependencies that the npm-shrinkwrap file is more than a fracking megabyte
<Lisanna>
mpickering trying to package an autotools project
<Lisanna>
and trying to decide which outputs I should have
jperras has joined #nixos
<Lisanna>
I see that it picks default values based on what I have in drv.outputs
<Lisanna>
currently it's just [ "out" "dev" ]
knupfer has quit [Quit: knupfer]
<Lisanna>
bah, I'm getting a cyclic reference, so maybe I can't do a split-output derivation anyways
<zybell>
what does it do with ["out" "dev" "lib" ]?
<zybell>
that is if you let the choice to nix?
i-am-the-slime has quit [Ping timeout: 256 seconds]
<zybell>
*left
rosa has joined #nixos
<Lisanna>
zybell well, there's no bin, so that doesn't seem like a useful split
<Lisanna>
and, that wouldn't fix the cyclic reference
i-am-the-slime has joined #nixos
sigmundv has joined #nixos
<Lisanna>
guess I answered my own question here
jperras has quit [Ping timeout: 256 seconds]
dbmikus has joined #nixos
<mpickering>
why are you trying to split it in the first place?
<{^_^}>
→ 1d971b7a by @jbgi: azure-agent: add option to control auto mount
<{^_^}>
→ 28e352cf by @jbgi: azure-agent: add bash to service path.
<{^_^}>
→ 6bd83e62 by @Mic92: Merge pull request #39072 from jbgi/azure-agent-mount-resource-option
<{^_^}>
[nixpkgs] @Mic92 merged pull request #39072 → Azure agent mount resource option + bash to path → https://git.io/vpUXU
<LnL>
kreisys: great!
jacob_ has quit [Quit: Lost terminal]
<ndrei>
Hi, I'm trying to set up a system-wide overlay. I've read the docs & the code and I'm stumped as to why it doesn't seem to work. I've created a "nixpkgs-overlays" directory under /etc/nixos, and added a file for a package I'm defining. First line is "self: super:" and the assigning my package name "mypackage = ..". When I run nixos-rebuild I get an "undefined variable" error, but even with broken syntax, nixos-rebuild doesn't complain,
<ndrei>
which leads me to believe the problem must be elsewhere...
<joko>
ndrei: could you paste your configuration somewhere?
<zybell>
Lisanna:you asked what to prefer out or lib. I wanted to really know what the default style would do if not restricted by one of them missing. Usefulness was not considered at this moment.That I wanted to adress later.
<joko>
ndrei: stdenv.mkDerivation should also be super.stdenv.mkDerivation
<ndrei>
same
jrolfs_ has joined #nixos
<ndrei>
the thing is, it's like it's not even getting to that point, as I don't get any errors about that
<cheater>
can i create my own nixpkgs that's like a specific checkout of nixpkgs, just has one small change? i.e. the version bump of cabal2nix so that the fix for that bug 272 is included
<drakonis_>
hmm
<drakonis_>
here i wonder a thing
<drakonis_>
is there any reason why the top level packages list isn't generated from every available package?
<drakonis_>
parsed then generated off every other package?
<drakonis_>
this is a little large
<{^_^}>
[nix] @shlevy pushed to master « isFunction: True on primops. »: https://git.io/vpTRA
<{^_^}>
→ 04113fb8 by @mguentner: praw: 5.2.0 -> 5.4.0
<{^_^}>
→ 4c383cd4 by @dotlambda: python.pkgs.praw: drop upper bound of prawcore requirement
<{^_^}>
→ c3cbff3a by @mguentner: i3pystatus: 3.35 -> unstable
<mightybyte>
mpickering: Aha, that's it! Thanks.
<zybell>
then you look for a commit with eabf47b as parent. A git diff will show you which lines were touched. Any fix would have touched these lines again. git blame will help you there. As the page explains it was not *fixed*,but locked away in e7c38c1.
dan_b has quit [Ping timeout: 256 seconds]
telent has quit [Ping timeout: 256 seconds]
jperras_ has quit [Read error: Connection reset by peer]
alexteves_ has quit [Ping timeout: 240 seconds]
<clever>
nh2[m]: have you looked at my kexec stuff yet?
<mightybyte>
mpickering: Oh wait...maybe not. "statistics" is so easy to see wrong.
<mpickering>
what's the cabal file called?
jperras_ has joined #nixos
<clever>
mightybyte: that error can happen if the src dir you give to cabal2nix has 0 or 2 cabal files
<kini>
When I looked at that commit I saw it added the line "doCheck = stdenv.is64bit; # https://github.com/NixOS/cabal2nix/issues/272" to pkgs/top-level/all-packages.nix , and I saw that line no longer exists in the latest version of all-packages.nix
<kini>
So I searched `git log -p pkgs/top-level/all-packages.nix` to find where that line was removed again
darlan has quit [Client Quit]
<clever>
kisik21: there is a fetchSubModules = true; flag
<{^_^}>
→ 3aefd6c9 by @mdorman: elpa-packages: 2018-04-16
<{^_^}>
→ ee8b9d92 by @mdorman: org-packages: 2018-04-16
asuryawanshi has quit [Ping timeout: 264 seconds]
<{^_^}>
→ 4ec912fc by @mdorman: melpa-stable-packages: 2018-04-16
<mpickering>
is there anything else in the directory?
<kini>
ah, I see zybell already said something similar.
Jackneill has quit [Read error: Connection reset by peer]
<clever>
mightybyte: can you gist the nix expression?
bkchr has quit [Ping timeout: 256 seconds]
<nh2[m]>
clever: have not yet but that's definitely coming next, if kexec works on these machines then the image creation process would be very simple, to the extent that I can make it part of nixops so the user doesn't have to create the image themselves
<mightybyte>
I'm not sure. I was using: pkgs.haskellPackages.callHackage "statistics" "0.14.0.2" {}
<nh2[m]>
clever: yeah that is super cool, it doesn't get much shorter
<kisik21>
error: cannot coerce a function to a string, at /nix/var/nix/profiles/per-user/root/channels/nixos/pkgs/stdenv/generic/make-derivation.nix:148:11
<joko>
ndrei: it's not nixpkgs.config.overlays, it's nixpkgs.overlays xD
<ndrei>
:facepalm:
<ndrei>
joko: thank you very much
<ndrei>
I wonder why nix doesn't complain or at least warn about defining undefined attributes
<joko>
ndrei: it did, at least nix build: error: undefined variable 'wsta' at /home/joko/tmp/nixos-config/packages.nix:16:5
<joko>
anyway, off to sleep, nn everyone
daveo has quit [Ping timeout: 260 seconds]
<ndrei>
right, but I didn't complain about assigning nixpkgs.config.overlays, although I understand it's perfectly fine from the language's standpoint, still a little warning would be useful
vaninwagen has quit [Ping timeout: 240 seconds]
<mpickering>
kisik21: What command are you running?
seanparsons has quit [Read error: Connection reset by peer]
Fare has quit [Ping timeout: 240 seconds]
<kisik21>
mpickering: nixos-rebuild switch
<kisik21>
I'm including this as a pidgin plugin
<mpickering>
that file looks fine. That error is usually because of a missing "name" attribute in my experience.
<mpickering>
Why do you think that file is the problem?
<zybell>
I miss the nix equivalent in your buildInputs
<kisik21>
zybell: oh, right, dependencies, but that's not important, I need the file to at least be a valid nix expression that will at least do something
ambro718 has quit [Quit: Konversation terminated!]
<{^_^}>
→ 3955b846 by @shlevy: meta: Don't bypass unsupported platforms with allowBroken.
<{^_^}>
→ cb212cf5 by @Ericson2314: meta: Add `NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM` for consistency
<{^_^}>
→ c66440c1 by @Ericson2314: doc: Document `config.allowUnsupportedSystem` and its env var
<{^_^}>
[nixpkgs] @wmertens pushed to iso-cloud-init « minimal installer: support cloud-init »: https://git.io/vpTag
seanparsons has joined #nixos
acarrico has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @wmertens opened pull request #39088 → minimal installer: support cloud-init → https://git.io/vpTao
<zybell>
Didnt see the error, was in browser when it scrolled out of pic,sorry
<mpickering>
What happens if you try to build just that file rather than using nixos-rebuild
<cheater>
ok, so.. please indulge me with a little help again.. i am building this nix project, and in their .nix files they pin the nixpkgs. how do i override this? i tried changing the commit they're pinning to, but that doesn't change what source of nixpkgs nix-build uses, because apparently they somehow cache this expression. they pin the nixpkgs like this: nixpkgs = fetchFromGitHub { owner = ...; repo = ...
<cheater>
... ...; rev = ...; sha256 = ...; }. then they import that .nix file in a higher level .nix file. after editing owner/repo/rev to point to my repo, when i re-run nix-build, the same error persists. in specific, in my version of nixpkgs, i added hint = haskell.lib.overrideCabal haskellPackages.hint (drv: { doCheck = stdenv.is64bit; });
<cheater>
however, when i re-run nix-build, the test suite for hint is run anyways
<cheater>
also, i didn't change sha256, so it would be wrong, and therefore nix-build should show an error. but it doesn't.
<mpickering>
did you modify the sha as well?
<cheater>
no, i didn't
<mpickering>
you need to do that
<cheater>
will it silently reject the nixpkgs? i thought it should give an explicit error and abort
<mpickering>
It checks the store to see if something with the sha is in there first
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @oscarcarlsson to master « hunspell-dicts: add support for swedish dictionary (#39061) »: https://git.io/vpTVM
<{^_^}>
[nixpkgs] @Mic92 merged pull request #39061 → hunspell: support for Swedish dictionaries → https://git.io/vpUZQ
fragamus has joined #nixos
ihar has quit [Quit: WeeChat 2.0]
ihar has joined #nixos
szicari has quit [Quit: szicari]
lord| has joined #nixos
<cheater>
ok, so i have it fetching from my fork. thanks mpickering!
<cheater>
but it still doesn't disable the test suite. is doCheck the right thing to do here?
<cheater>
am i overriding things the right way here?
<cheater>
i'm pretty much cargo-coding here since i'm... not very familiar with nix
<kisik21>
Is there Debian's libgcrypt20 package equivalent available in nixpkgs?
<{^_^}>
[nixos-homepage] @woffs opened pull request #211 → install: use tar -f - → https://git.io/vpTw5
<kisik21>
Could I just use nixos.libgcrypt?
<zybell>
you should check the version
<kisik21>
libgcrypt-1.8.2 is the last version in nixpkgs
<kisik21>
I tried to build it anyway, since why not?
<kisik21>
maybe it will work
<zybell>
2.0 means that
<kisik21>
Oops, why did it tried to configure with cmake when I included cmake in nativeBuildInputs?
<cheater>
what i mean is i got the idea to use "haskellPackages" from all-packages.nix.
<mpickering>
You are not using the proper method to override hint
<daveo>
I have a problem with EFI booting
<mpickering>
it's not a terrible idea but not going to work as hint is not a top-level attribute
daveo has quit [Quit: Page closed]
xy2_ has quit [Quit: WeeChat 1.9.1]
<cheater>
mpickering: let me think about this... in fact this repo has a bunch of different nix files
<cheater>
mpickering: so i have the file that says nixpkgs = fetchFromGitHub { ... }. do i modify the value nixpkgs here?
<mpickering>
No, I explained before what is needed.
<mpickering>
look for where "haskellPackages" is used
kerrhau has quit [Ping timeout: 268 seconds]
<cheater>
sorry, i'm just having an issue figuring out what is a variable name, and what is an identifier that is used in various places. i'll look for haskellPackages.
<{^_^}>
[nixpkgs] @Mic92 pushed 2 commits to release-18.03: https://git.io/vpTPs
<{^_^}>
→ 2ed3099e by @samueldr: dbeaver: 5.0.2 -> 5.0.3
<{^_^}>
→ 0a97eb36 by @Mic92: Merge pull request #38980 from samueldr/dbeaver/5.0.3_18.03
daveo has joined #nixos
joehh has joined #nixos
Fare has joined #nixos
alfie is now known as `Allie
`Allie is now known as alfie
<cheater>
mpickering: the nix files here seem to be beyond my understanding. is there a way to override this in nixpkgs?
<mpickering>
There is an easy way to do so
<mpickering>
I don't understand why it is failing in the first place if they have pinned a version of nixpkgs though :P ?
daveo has quit [Ping timeout: 260 seconds]
furon has joined #nixos
<cheater>
mpickering: no idea.. :S
<mpickering>
in "pkgs/development/haskell-modules/configuration.nix" add the line "hint = dontCheck super.hint;"
<cheater>
ok, let me try that instead, thanks
<cheater>
there isn't configuration.nix. do you mean configuration-common.nix?
<cheater>
there's also configuration-nix.nix
chisui has joined #nixos
jperras_ has joined #nixos
SitiSchu has quit [Quit: Leaving]
<mpickering>
yes
<mpickering>
either is fine
alfie is now known as Alfie
<mpickering>
the first one is the one you should use
Alfie is now known as alfie
<furon>
I've created a /nix directory that is bind-mounted to an external disk and would like to set up a multi-user Nix environment, but the install script won't let me proceed unless my user account owns the directory. Should I take ownership, install Nix, and give the directory back to root after? Or is there a better way to do this?
<furon>
This is on CentOS 7, by the way.
hamishmack has joined #nixos
zybell has quit [Ping timeout: 256 seconds]
<cheater>
mpickering: thank you!
<cheater>
trying it now :) :)
alfie is now known as `Allie
justanotheruser has joined #nixos
jperras_ has quit [Ping timeout: 268 seconds]
<cheater>
mpickering: btw, how would i only disable it for when this is run on 32-bit?
<mpickering>
Something like "happy = if (pkgs.stdenv.hostPlatform.isArm || pkgs.stdenv.hostPlatform.isAarch64) then dontCheck super.happy else super.happy;"
<cheater>
ah, nice
<cheater>
so it would be.. "hint = if (pkgs.stdenv.is64bit) then super.hint else dontCheck super.hint;"
<mpickering>
is64Bit seems like a synonym for isLinux
<mpickering>
Usually things are specified more precisely
<mpickering>
I can also see no uses of is64Bit in the entire code base
<mpickering>
is64Bit = system == "x86_64-linux"
logzet has quit [Remote host closed the connection]
<achambe>
its not clear who controls the nix google cloud account
<achambe>
they just need to tick a box
pkill9 has quit [Quit: WeeChat 2.1]
erasmas has quit [Quit: leaving]
jackdk has joined #nixos
<samueldr>
Mic92: any reason for only having merged the cherry-pick for my package update? (or am I only impatient?) [thanks btw]
kisik21 has left #nixos [#nixos]
jperras_ has joined #nixos
nekroze has joined #nixos
<nekroze>
I am trying to install a program that uses yarn however whenever I run yarn install it fails because it cannot find a header called node_version.h however I have added nodejs to the deps of the default.nix that is building the nix-shell I am running yarn in. I have also tried to install nodejs in my user profile directly and it still cannot find this header and google has no useful information that I could
<nekroze>
find. Does anyone know what I am missing?
joehh has quit [Ping timeout: 240 seconds]
<achambe>
nekroze: did you do a system wide search for the file?
<achambe>
i.e., that it is in your store somewhere at all?
<nekroze>
achambe: I have not, perhaps I should not have assumed it be in nodejs package. let me check
<nekroze>
achambe: yeah it is in /nix/store/y8w39r3bs40p56m4r9m3vl3iwrqraabi-nodejs-8.11.1/include/node/node_version.h
<nekroze>
achambe: which is the nodejs package I am using in the nix-shell to run this
<nekroze>
by that I mean that package is in the buildInputs of the default.nix I am using
kerrhau is now known as ``^``^w
``^``^w is now known as kerrhau
<achambe>
hmm
<nekroze>
yeah that is where I am at too
jperras_ has quit [Ping timeout: 260 seconds]
<achambe>
I don't know enough about yarn, I'm not sure if packages use pkg-config
<zybell>
if it wants a .h file it wants to run gcc.
<achambe>
yeah, I'd try add pkgconfig as a dep
<achambe>
and gcc
<zybell>
is gcc incl setup hook in env?
<achambe>
yeah it is
jperras_ has joined #nixos
<zybell>
stdenv
<Mic92>
samueldr: I thought the other one was already in master
<samueldr>
that would be right if there was no merge commit or FF commit (I think)
<zybell>
a merge doesnt change the id, a cherry pick does!
sigmundv has quit [Remote host closed the connection]
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos
joehh has joined #nixos
<cheater>
mpickering: so.. i have another package failing its tests on 32-bit due to float rounding called freer, and i added freer = dontCheck super.freer to configuration-common.nix, but that doesn't skip the tests. any idea why that would be?
sigmundv has joined #nixos
<cheater>
is hint and freer somehow different?
quackslikeaduck has quit [Remote host closed the connection]
<zybell>
was hint the package name before?
<infinisil>
Hmm.. Is there some easy program to transfer files reliably in NixOS? I'd think FTP/SFTP would be the way to go, but I can't find an actual package that works
<zybell>
ssh?
nikola_i has joined #nixos
<infinisil>
There is busybox which includes ftpd and ftpget, but ftpd doesn't actually work.. It just spews out the --help text with any arguments
<infinisil>
zybell: Without keys
<infinisil>
I need it to work anonymously
<zybell>
could be so configured
<infinisil>
Oh maybe openssh's sftp
<cheater>
zybell: yes, hint was the one that was breaking the build before.
astiles has quit [Remote host closed the connection]
SitiSchu has joined #nixos
astiles has joined #nixos
<cheater>
zybell: mpickering said i should add hint = dontCheck super.hint; to configuration-common.nix and that helped stop hint tests from running. but now freer breaks the build due to its tests too, and adding this line but for freer doesn't help stop the tests from executing.
ericsagnes has quit [Ping timeout: 276 seconds]
<zybell>
cheater but was it the *package name*?
<infinisil>
Oh and ssh requires all these directories to be set up, but I need something that can run in a script ephemerally