<simpson>
clever: I'm ordering some BeagleBones so that I can put them in Altoids tins. Would not-os be suitable for this kind of thing? What would I need to customize? Kernel and u-boot?
tghume has joined #nixos
simukis_ has quit [(Ping timeout: 240 seconds)]
hamishmack has joined #nixos
justelex has joined #nixos
eacameron has quit [(Remote host closed the connection)]
justelex_ has quit [(Ping timeout: 240 seconds)]
mbrgm has quit [(Ping timeout: 260 seconds)]
mbrgm has joined #nixos
derjohn_mob has quit [(Ping timeout: 260 seconds)]
eacameron has joined #nixos
mudri has quit [(Quit: WeeChat 1.7.1)]
eacameron has quit [(Ping timeout: 260 seconds)]
ryanartecona has joined #nixos
eacameron has joined #nixos
vaibhavsagar_ has joined #nixos
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
vaibhavsagar has quit [(Ping timeout: 240 seconds)]
derjohn_mob has joined #nixos
acarrico has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
acarrico has joined #nixos
darlan has joined #nixos
eacameron has joined #nixos
justelex has quit [(Ping timeout: 240 seconds)]
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
revtintin has joined #nixos
eacamero_ has quit [(Ping timeout: 240 seconds)]
johnsonav has joined #nixos
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 276 seconds)]
s33se_ has joined #nixos
<hodapp>
general question for those with stronger library-fu than I have: if 'readelf -d' shows that a binary's RUNPATH includes a folder which contains (for instance) libcups.so.2, why would that binary be unable to find libcups.so.2 upon running it or running ldd on it?
s33se has quit [(Ping timeout: 268 seconds)]
ryanartecona has quit [(Quit: ryanartecona)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<hodapp>
I made DraftSight run \o/
eacameron has joined #nixos
<hodapp>
(without pkgs.buildFHSUserEnv)
neeasade has joined #nixos
mizu_no_oto has joined #nixos
<gchristensen>
w00t!
eacameron has quit [(Ping timeout: 260 seconds)]
<clever>
simpson: the kernel attribute may need to be updated, and u-boot added if you need it
<clever>
simpson: and depending on if you favor cpu time or disk space, the squashfs could be swapped out for something else
eacameron has joined #nixos
takle has joined #nixos
<clever>
simpson: main thing to keep in mind, is that it lacks the nix package manager, so you cant just rebuild-switch, you have to nix-build an image elsewhere, and re-flash whatever hdd its booting from
<hodapp>
clever: by the way, the libcups.so.2 et al. issue from earlier was that some bundled libraries, not the main binary, weren't able to find libcups.so.2
<simpson>
clever: That's not the end of the world, I suppose.
<clever>
hodapp: ah, that would do it
<clever>
simpson: i have also ran full nixos on some raspberry pi's so that is also an option
<simpson>
clever: Is it wrong of me to prefer a full NixOS if I have the space?
<clever>
simpson: depends on if you want to use it as a nixos machine, or specialize it for just one task and leave it to run forever
<hodapp>
what's the state of NixOS on modern RasPi?
eacamero_ has joined #nixos
<clever>
hodapp: i have ran armv6l and armv7l builds of it on my pi's
<clever>
main issue is a lack of binary cache support, so it takes a week or 2 to recompile everything on channel updates
<clever>
this is a generic arm image Dezgeg has made, that will probably boot on most arm boards
takle has quit [(Ping timeout: 276 seconds)]
<clever>
though you may need to tweak the bootloader
eacamero_ has quit [(Read error: Connection reset by peer)]
<Jookia>
I use full NixOS on my Novena
<Jookia>
since 2015
<hodapp>
...why does this binary distribution have a pile of .tx files, alongside the binary, which are all just symlinked to libraries elsewhere in the distribution?
<hodapp>
whatever. I just shouldn't ask
eacameron has joined #nixos
<hodapp>
this probably relates to the reason why the package is 525 MB
<hodapp>
one of them is symlinked to /home/builduser/workspace2/BUILD_ARES_2017.1.0_COMPILE_LinuxX64/Argon/_build/linux_release64/draftsight/lib//libK2GestureWidget.so.1
hexagoxel has quit [(Ping timeout: 260 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
davidak has quit [(Quit: Leaving.)]
hexagoxel has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
newhoggy_ has joined #nixos
pmade_ is now known as pmade
eacameron has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
newhoggy has quit [(Ping timeout: 258 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
mizu_no_oto has joined #nixos
<hodapp>
but now: "QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled"
schoppenhauer has quit [(Ping timeout: 260 seconds)]
systemfault has quit [(Quit: Bye!)]
schoppenhauer has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
ryanartecona has joined #nixos
mizu_no_oto has joined #nixos
dridus has joined #nixos
indi_ has joined #nixos
inflames has joined #nixos
mellowmaroon has joined #nixos
mellowmaroon has quit [(Quit: Leaving)]
DIzFer has quit [(Remote host closed the connection)]
DIzFer has joined #nixos
takle has joined #nixos
dridus has quit [(Quit: znc? wassat?)]
takle has quit [(Ping timeout: 268 seconds)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
newhoggy_ has quit [(Remote host closed the connection)]
proteusguy has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
aperte has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
newhoggy has quit [(Remote host closed the connection)]
takle has joined #nixos
<inflames>
I am trying to install synergy, I ran 'nix-env -iA nixpkgs.synergy' and it seemed to finish and install successfully, but I don't understand how to launch it
takle has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
athan has joined #nixos
<clever>
inflames: you need to run synergs on the server and "synergyc <serverip>" on the client
<tilpner>
inflames - If you're on NixOS, it might be better to use the synergy service
<clever>
inflames: and the server needs a config file that describes the layout of the screens
<clever>
tilpner: the nixos service for syngery is currently broken
<clever>
and a nixos system wouldnt use -iA nixpkgs.
<tilpner>
Welp, didn't know that :/
takle has joined #nixos
<inflames>
oh, ok i'll look into that
newhoggy has quit [(Remote host closed the connection)]
<tilpner>
clever - While I have you here (sorry): I can nix-env -f '<nixpkgs>' -iA gcc, but I can't install anything with nix-env without that, after switching to a local checkout yesterday. Do I need to do anything else for nix-env to work?
<clever>
tilpner: nix-env is one of the weird tools, it will make no attempt to use the search path by default
<clever>
it uses ~/.nix-defexpr/ instead
<clever>
but -f '<nixpkgs>' will force it to use the search path
<clever>
you would need to create a dummy entry under ~/.nix-defexpr/ if you want to cease using channels
<tilpner>
I heard that before, right. I'll try that
<tilpner>
clever - Thank you, it works! :)
takle has quit [(Ping timeout: 276 seconds)]
newhoggy has joined #nixos
aperte has quit [(Quit: aperte)]
<clever>
inflames: are you on nixos or another distro?
newhoggy has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
takle has joined #nixos
aperte has joined #nixos
takle has quit [(Ping timeout: 276 seconds)]
ryanartecona has joined #nixos
neeasade has quit [(Quit: WeeChat 1.5)]
takle has joined #nixos
nicknovi1 has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
ertes has quit [(Ping timeout: 268 seconds)]
takle has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
takle has quit [(Ping timeout: 240 seconds)]
reinzelmann has joined #nixos
<inflames>
nixos
<inflames>
clever, ^
nil has quit [(Disconnected by services)]
eacameron has quit [(Remote host closed the connection)]
Guest39778 has quit [(Killed (verne.freenode.net (Nickname regained by services)))]
katyucha has joined #nixos
katyucha_ has joined #nixos
marsel has quit [(Ping timeout: 240 seconds)]
inflames has joined #nixos
takle has joined #nixos
<inflames>
clever, was I not supposed to install nixpkgs with nixos?
CMCDragonkai has joined #nixos
CMCDragonkai is now known as Guest195
justelex has joined #nixos
Guest91804 has quit [(Ping timeout: 260 seconds)]
takle has quit [(Ping timeout: 260 seconds)]
osa1_ has joined #nixos
osa1 has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
MichaelRaskin has quit [(Ping timeout: 260 seconds)]
marusich has quit [(Quit: Leaving)]
osa1_ has quit [()]
<LnL>
don't use nixpkgs channels for nixos-rebuild, but it's fine for nix-env
hotfuzz_ has joined #nixos
hotfuzz has quit [(Ping timeout: 240 seconds)]
leat has quit [(Read error: No route to host)]
leat has joined #nixos
nicknovi1 has quit [(Ping timeout: 255 seconds)]
orivej has joined #nixos
ertes has joined #nixos
Filystyn has joined #nixos
marsel has joined #nixos
inflames has quit [(Ping timeout: 246 seconds)]
ertes has quit [(Ping timeout: 276 seconds)]
<vaibhavsagar_>
has anyone seen this error before: "Failed to stop -.slice: Operation refused, unit -.slice may be requested by dependency only."?
<vaibhavsagar_>
or "rm: cannot remove '/var/setuid-wrappers': Device or resource busy"
nschoe has joined #nixos
proteusguy has joined #nixos
bennofs has joined #nixos
justelex has quit [(Remote host closed the connection)]
justelex has joined #nixos
thineye has quit [(Remote host closed the connection)]
thineye has joined #nixos
nithor has joined #nixos
nithor has quit [(Client Quit)]
viric_ is now known as viric
nithor has joined #nixos
nithor has left #nixos []
jensens has joined #nixos
Itkovian has joined #nixos
Itkovian has quit [(Client Quit)]
pie_ has joined #nixos
hotfuzz_ is now known as hotfuzz
Itkovian has joined #nixos
<sphalerite>
How do the --jobs and --cores options interact with each other? AFAIU --cores specifies how many builds will run at once while --jobs specifies the -j flag for make and friends. Will using --cores C --jobs J result in up to C*J processes running at once?
<Dezgeg>
yes, up to. but also the '-l $C' flag is passed to make so in practice it doesn't launch C*J
derjohn_mob has quit [(Ping timeout: 255 seconds)]
<freusque>
how do the nixops users among you manage deployments from different endpoints? do you use nixops export?
ekleog_ has joined #nixos
socksy_ has joined #nixos
joepie91 has quit [(Excess Flood)]
socksy has quit [(Ping timeout: 264 seconds)]
ekleog has quit [(Ping timeout: 264 seconds)]
dweller has quit [(Ping timeout: 264 seconds)]
dweller has joined #nixos
joepie91___ is now known as joepie91
jacob_ has joined #nixos
Guest195 has quit [(Ping timeout: 240 seconds)]
jacob_ is now known as Guest62124
Guest195 has joined #nixos
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
StillerHarpo39 has joined #nixos
pie_ has quit [(Ping timeout: 260 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
kier_ is now known as kier
<srhb>
How does a pythonPackage overlay work nowadays? Usually I've just made top level self: super: { foo = ... overlays, but if I want to add a package to pythonPackages, how do I go about that?
goibhniu has joined #nixos
takle has joined #nixos
derjohn_mob has joined #nixos
cfricke has joined #nixos
<ikwildrpepper>
freusque: we do not deploy from different endpoints, we use shared deployment servers via ssh, and we have a nixops web interface as well (which will replace the ssh based deployment servers)
Guest195 has quit [(Ping timeout: 268 seconds)]
<freusque>
ikwildrpepper: ok, thanks. :)
Guest195 has joined #nixos
FRidh has joined #nixos
<domenkozar>
we (iohk) are using a shared deployment server as well, but we are looking into other options that would give us more accountability
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
mudri has joined #nixos
<iMatejC>
sphalerite: you could also check /var/log/X.0.log
newhoggy has quit [(Remote host closed the connection)]
<sphalerite>
nothing at all unusual in any of the X logs :/
indi_ has quit [(Ping timeout: 255 seconds)]
<iMatejC>
sphalerite: hm, not even in `journalctl -u display-manager` ? what display manager and window/desktop manager are you using
<sphalerite>
nope, not there either. lightdm / i3
<iMatejC>
hm I am using exactly the same
<sphalerite>
My x session journal has a bunch of errors from applications about Resource temporarily unavailable with X, so the X server did clearly just disappear unexpectedly
bennofs has quit [(Ping timeout: 276 seconds)]
<iMatejC>
you are using nixos unstable or stable? could you share somewhere the complete log?
reinzelmann has quit [(Ping timeout: 240 seconds)]
goibhniu has quit [(Ping timeout: 276 seconds)]
Guest62124 has quit [(Ping timeout: 255 seconds)]
goibhniu1 is now known as goibhniu
roconnor has quit [(Ping timeout: 260 seconds)]
<iMatejC>
sphalerite: I do not see the "Resource temporarily unavailable..." errors
<sphalerite>
yes, they're not in the X log
MP2E has quit [(Quit: sleep)]
nadley has joined #nixos
<sphalerite>
http://ix.io/ssj excerpt of the journal at the time of the crash
<iMatejC>
sphalerite: I gather that :) , I would like to see the log with those errors, I am interested in part where errors started
<sphalerite>
up to that it's business as usual
<sphalerite>
(the last messages before that are 13 minutes before)
bennofs has joined #nixos
Jookia has quit [(Quit: WeeChat 1.7.1)]
k2s has quit [(Ping timeout: 255 seconds)]
cfricke has quit [(Quit: WeeChat 1.7.1)]
k2s has joined #nixos
jacob_ has joined #nixos
jacob_ is now known as Guest42856
<iMatejC>
sphalerite: there is not enough info, try setting this `services.xserver.displayManager.xserverArgs = [ "-logverbose 6" ];` and wait for the next time it happens, then look into logs again
<manveru>
is there some easy way that i can remap keys in the nixos config?
<sphalerite>
I know there is not enough info :p
<sphalerite>
manveru: remap keys?
<manveru>
well, i'd like the Muhenkan key to become Super_L, and the Super_L key to be Alt_L :(
<iMatejC>
sphalerite: beside that, I do not know what to do else, either that or Jookia's answer
<manveru>
i saw xkbOptions, but there seems to be none for this premade
ertes has joined #nixos
k0001 has joined #nixos
<avn>
manveru: custom xkb layout definelly should work (xkbcomp -I ... foo.xkb $display)
<avn>
also xmodmap _can_ work (I swap alt_l and super_l on my laptop with xmodmap)
<Dezgeg>
nah don't ever use xmodmap, it's deprecated (and works funny with multiple keyboards and stuff)
ericsagnes has quit [(Ping timeout: 255 seconds)]
k2s has quit [(Ping timeout: 260 seconds)]
<manveru>
hmm, will read up on what xkbcomp is
ertes has quit [(Ping timeout: 255 seconds)]
<manveru>
i don't even have that command for some reason
justelex has quit [(Remote host closed the connection)]
<manveru>
ah, found it
k2s has joined #nixos
justelex has joined #nixos
<manveru>
avn: thanks, will take some time tonight to do this :)
Raimondii has joined #nixos
k2s has quit [(Ping timeout: 240 seconds)]
<avn>
Yes, it a bit complicated and take some time to learn again each time (it why I used xmodmap to swap keys ;))
spinus has quit [(Ping timeout: 264 seconds)]
Raimondi has quit [(Ping timeout: 268 seconds)]
Raimondii is now known as Raimondi
athan has quit [(Ping timeout: 276 seconds)]
oida_ has joined #nixos
newhoggy has joined #nixos
savanni has quit [(Remote host closed the connection)]
fingerzam has quit [(Remote host closed the connection)]
vdemeester has quit [(Remote host closed the connection)]
dgonyeo has quit [(Remote host closed the connection)]
zx2c4 has quit [(Remote host closed the connection)]
codedmart has quit [(Remote host closed the connection)]
bdimcheff has quit [(Remote host closed the connection)]
nz has quit [(Remote host closed the connection)]
teozkr has quit [(Remote host closed the connection)]
aristid has quit [(Remote host closed the connection)]
modafinil has quit [(Write error: Broken pipe)]
r0bby has quit [(Read error: Connection reset by peer)]
athan has joined #nixos
oida has quit [(Ping timeout: 245 seconds)]
cfricke has joined #nixos
r0bby has joined #nixos
newhoggy has quit [(Ping timeout: 260 seconds)]
teozkr has joined #nixos
aristid has joined #nixos
nz has joined #nixos
ericsagnes has joined #nixos
bdimcheff has joined #nixos
newhoggy has joined #nixos
savanni has joined #nixos
newhoggy has quit [(Ping timeout: 276 seconds)]
dgonyeo has joined #nixos
codedmart has joined #nixos
vdemeester has joined #nixos
newhoggy has joined #nixos
oida has joined #nixos
nixy has joined #nixos
oida_ has quit [(Ping timeout: 260 seconds)]
zx2c4 has joined #nixos
modafinil has joined #nixos
fingerzam has joined #nixos
thineye has joined #nixos
oida_ has joined #nixos
kahiru has joined #nixos
oida has quit [(Ping timeout: 240 seconds)]
newhoggy has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
Wizek has joined #nixos
Wizek_ has joined #nixos
<sphalerite>
Are we getting notifications from the bot back at any point?
newhoggy has joined #nixos
FRidh has quit [(Quit: Konversation terminated!)]
zraexy has quit [(Ping timeout: 260 seconds)]
Fare has quit [(Ping timeout: 260 seconds)]
bennofs has quit [(Ping timeout: 240 seconds)]
<unlmtd[m]>
any bsd users in here
snikkers has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
Phlogistique has quit [(Quit: WeeChat 1.0.1)]
Phlogistique has joined #nixos
<Phlogistique>
pas
<Phlogistique>
oops
<sziszi>
I'm reading about "collections" in https://nixos.org/wiki/Cheatsheet#config_nix ; but I didn't found anything relevant in the manual, also I have a feeling this wiki page is slightly outdated. Can anybody point me in the right direction with this?
simukis_ has joined #nixos
<sziszi>
21653 store paths deleted, 28943.88 MiB freed
<nixy>
sziszi: The wiki is pretty outdated. Let me see if I can find a good example of this for you
<nixy>
Look for the buildEnv calls, but its effectively just a way to bundle multiple paths/packages into a singular one
FRidh has joined #nixos
k2s has joined #nixos
<sziszi>
nixy: I think I got it, I'll try it out as soon as my nix-store --optimise finishes on my superslow disk
ertes has joined #nixos
k2s has quit [(Ping timeout: 260 seconds)]
newhoggy has joined #nixos
engblom has quit [(Read error: Connection reset by peer)]
engblom has joined #nixos
makefu has quit [(Quit: WeeChat 1.7.1)]
snikkers has quit [(Quit: leaving)]
newhoggy has quit [(Ping timeout: 255 seconds)]
ertes has quit [(Ping timeout: 276 seconds)]
newhoggy has joined #nixos
sirius[m] has joined #nixos
Infinisil has joined #nixos
justelex has quit [(Excess Flood)]
<sphalerite>
the-kenny: do you by any chance know how to get audacity to build? I wanted to update it (2.1.2 -> 2.1.3) but it's complaining about not finding ffmpeg.
<sziszi>
nixy: didn't work
acarrico has joined #nixos
peacememories has joined #nixos
MoreTea has joined #nixos
<nixy>
sziszi: How so? It works fine for me? Can you show me the expression you wrote?
<sziszi>
and i got the message "error: selector ‘test’ matches no derivations"
<sziszi>
I'm on unstable by the way
<nixy>
Oh, it needs to be in a packageOverrides statement. Look at the beginning of the config from github. Its easy to miss it there because they didn't indent for it
Guest74377 has quit [(Ping timeout: 268 seconds)]
<sziszi>
nixy: didn't catched my attention at first, thank you
nh2 has quit [(Ping timeout: 245 seconds)]
acarrico has quit [(Ping timeout: 260 seconds)]
Filystyn has quit [(Quit: Konversation terminated!)]
<MoreTea>
Hm. I have a question about the recusive nix RFC.
<MoreTea>
What exactly is this recursive nix to do? make it possible to just create the .drv files from nix? Or just run `nix-build` in a current build.
<ronny>
hi
<ronny>
anyone aware of a command to clean out /boot
makefu has joined #nixos
<ronny>
its full and i cant remove unused data
makefu has quit [(Client Quit)]
<Profpatsch>
Meeeeh, cache.nixos.org is extremely unresponsive again.
<Profpatsch>
So annoying.
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
makefu has joined #nixos
<Profpatsch>
It just doesn’t answer cache requests.
<gchristensen>
what IP are you talking to?
<Profpatsch>
That’s clearly a bug.
<Profpatsch>
gchristensen: How do I find out?
makefu has quit [(Client Quit)]
<gchristensen>
ping it
<Profpatsch>
52.222.171.156
makefu has joined #nixos
nh2 has joined #nixos
<MoreTea>
@ronny see `man nix-collect-garbage`, be aware that this might disable rollback
<the-kenny>
sphalerite: Will come back later to you, very busy right now
nicknovi1 has joined #nixos
<Infinisil>
Hi there! I'm trying to use the option systemd.services.<name>.environment, but for some reason it throws an error http://nixos.org/nixos/options.html#systemd.services.%3Cname%3E.environment
<sziszi>
nixy: .config/nixpkgs/config.nix was the missing piece of this puzzle
<hodapp>
If I run instead from the pkgs.buildFHSUserEnv I built, it all works fine, and the library list was more or less just copied across from that
oida has joined #nixos
<hodapp>
suggestions online mention things like dbus, but adding that to the libraries doesn't seem to matter
<sphalerite>
the-kenny: no worries
<hodapp>
is it possible this binary-only package is trying to do something janky, like dlopen from a fixed path (which I assume patchelf can't do anything about)?
<hodapp>
and that's why buildFHSUserEnv is working (because it put things in the right fixed path)?
oida_ has quit [(Ping timeout: 258 seconds)]
makefu has quit [(Quit: WeeChat 1.7.1)]
acarrico has joined #nixos
<Infinisil>
Anybody know how environment.variables works? I'm setting environment.variables = { TESTTEST = "Hi!"; }; but after a rebuild echo $TESTTEST doesn't print anything
<Infinisil>
Even after restarting the terminal
<nixy>
Infinisil: It may initialize those variables only from a login shell
makefu has joined #nixos
<nixy>
Are they there if you login to another TTY?
<Infinisil>
I'll try with a login shell, hold on
<Infinisil>
Hmm doesn't seem to work, I tried with xterm and sakura
<Infinisil>
I may try a restart, but that really shouldn't solve it
<hodapp>
...nevermind. My issue was that I needed "dontPatchELF = true;"
<Infinisil>
If somebody else has the time, could they test if environment.variables.TESTTEST = "Test" works for them?
<nixy>
Anybody know of a good reference for figuring out python.withPackages?
<Profpatsch>
gchristensen: I removed my laptop from the dock, it switched to wifi and suddenly started working
<hodapp>
nixy: what are you trying to figure out particularly+
<hodapp>
...?
<Profpatsch>
cache.nixos.org is now 2600:9000:2043:fe00:10:dfa4:b0c0:93a1
pie__ has joined #nixos
<gchristensen>
Profpatsch: ok please run that script now
<nixy>
hodapp: How to use python.withPackages in my config.nix to make my python interpreter have libraries available
<nixy>
I have seen how to use it in a shell.nix, but can't find any good examples of using it in a packageOverrides
Guest74377 has joined #nixos
<ronny>
MoreTea: Profpatsch: both commands are worthless to clean out a /boot partition tht has copied around kernel images that no longer match the oens existing in the store
pie_ has quit [(Ping timeout: 255 seconds)]
<hodapp>
nixy: can't you just (to steal one of the manual examples) put something like "pythonEnv = pkgs.python.withPackages (ps: [ps.pyramid]);" into config.nix, and install that into your environment?
<hodapp>
bleah. next fun error: "xkbcommon: ERROR: failed to add default include path /usr/share/X11/xkb", "Qt: Failed to create XKB context!"
<hodapp>
is it normal that "grep in nixpkgs" is my go-to method of trying to figure things out?
makefu has joined #nixos
thineye has quit [(Quit: Leaving.)]
<Profpatsch>
ronny: They will not remove live store paths
<nixy>
hodapp: When I do that I get a 'pythonEnv matches no derivation', so it doesn't seem to be in scope
<lassulus>
hodapp: I'm doing the same most of the time
<Profpatsch>
So gc cannot remove an active system profile.
<ronny>
Profpatsch: myproblem is NOT store paths
kuznero has joined #nixos
<kuznero>
Hi All! I am trying to find an alternative to gvim in NixOS but with neovim. Can anybody help? there is a package neovim-pygui, but I have no idea how to start it...
<ronny>
Profpatsch: my problem is that a gc will not fix up excess useless data in the boopt partition
<Profpatsch>
ronny: How about moving everyting in /boot to a backup and rebuilding your system?
<gchristensen>
ronny: I think aftere a gc do a nixos-rebuild boot to clean it up, have you tried that?
<ronny>
gchristensen: that does absolutely fail due to no space left on /boot
<hodapp>
nixy: can you gist your config.nix maybe?
<gchristensen>
ronny: what is your bootloader?
mudri has joined #nixos
cpennington has quit [(Ping timeout: 260 seconds)]
<ronny>
a nix-colect-garbage -d afre a failed nixos-rebuild boot leaves a system where the only existing generation is not in the boot menu, i suppose the only reason things stay around is the current bootet symlink?
<ronny>
i deleted all kernels and ran a rebuild boot
<ronny>
so after a reboot it should work again
<ronny>
brb
<gchristensen>
this is such a big gotcha :(
cpennington has joined #nixos
<nixy>
hodapp: ayyyy that did it. Wonder why I have to explicitly specify nixpkgs
<hodapp>
nixy: I don't know >_>
ertes has joined #nixos
toppler has joined #nixos
Mateon1 has joined #nixos
Mateon1 has quit [(Remote host closed the connection)]
<hodapp>
blugh. what's the policy on giving URLs that sort of kind of bypass a license page?
<hodapp>
should I just use requireFile and say how to get the file, even if it's possible to link directly?
Mateon1 has joined #nixos
ertes has quit [(Ping timeout: 260 seconds)]
MoreTea has quit [(Ping timeout: 240 seconds)]
newhoggy has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
pie__ has quit [(Ping timeout: 264 seconds)]
<sphalerite>
nixy: -i is generally not waht you want without -A. nix-env -iA nixpkgs.pythonEnv will work too, but nix-env -i pythonEnv will search through *all* packages for one with the *name* (not attribute path) pythonEnv. You haven't specified a name for pythonEnv at all, so I think it becomes something like "user-environment"
leat has quit [(Ping timeout: 260 seconds)]
<gchristensen>
hrmm it seems nginx's module can't support a single domain name on http and https
<gchristensen>
_unless_ it has forceSSL enabled
<ronny>
gchristensen: it worked out tho
<gchristensen>
ronny: oh?
<nixy>
sphalerite: I would use -A a lot more if there was a way to make it defaults to nixpkgs. and if half of the packages weren't named inconsistently for their attribute path :(
newhoggy has quit [(Ping timeout: 276 seconds)]
<sphalerite>
nixy: I usually use nox to find packages along with their attribute paths, and consider the names to be nothing but decoration
justelex has quit [(Quit: Konversation terminated!)]
<ikwildrpepper>
no, if it works, feel free to commit
<ikwildrpepper>
commit -> push
<domenkozar>
works for me :)
<ikwildrpepper>
domenkozar: does the PR mean btw, that you cannot define environment.etc."dd-agent/conf.d" entries anymore?
<domenkozar>
ikwildrpepper: I'm afraid so. I can add an option to link in additional configs
<domenkozar>
if you need that
<ikwildrpepper>
yeah, that would be nice, otherwise you cannot use custom agent checks
<ikwildrpepper>
domenkozar: can't you use environment.etc for this combining actually?
peacememories has joined #nixos
dridus has joined #nixos
<ikwildrpepper>
then you wouldn't need the ln's really
<domenkozar>
ikwildrpepper: how would that work? filter all enviroment.etc that start with dd-agent?
<ikwildrpepper>
no, I mean, add the fixed datadog ones, as well as the ones via the specific options, using environment.etc
romildo has joined #nixos
<domenkozar>
that might give an impression that /etc/dd-agent/ folder works
<ikwildrpepper>
so basically you build a environment.etc structure based on the config in stead of creating some pseudo path
<ikwildrpepper>
well, it does right
<domenkozar>
works: meaning that you can add files manually there
<ikwildrpepper>
as you are using it
<ikwildrpepper>
well no
<ikwildrpepper>
it allows previous config that creates /etc/dd-agent files to still work
<ikwildrpepper>
aka be backward compatible
<romildo>
When writing a nix expression for a given package, execution of autoreconfHook fails with the message: aclocal: error: aclocal: file 'm4/intltool.m4' does not exist.
<romildo>
Any clues on how to fix that?
<domenkozar>
ikwildrpepper: how would you populated environment.etc from datadog config structure?
<domenkozar>
populate*
<domenkozar>
I don't see how we could keep backwards compatibility, but copy over $out/agent/conf.d-system/
<domenkozar>
which is dynamic
<domenkozar>
and we need to be able to override those files
<domenkozar>
with ln -sf does
<romildo>
I have /nix/store/21kwshpzq3ywxbwy5brapia70lrmjll5-intltool-0.51.0/share/aclocal/intltool.m4 on my system.
<domenkozar>
ikwildrpepper: I'm all for using bw approach if you have an idea that would work :)
<ikwildrpepper>
domenkozar: yeah, I see the problem. perhaps we should have an update script for datadog that reads the dynamic part, and generates a static list
kuznero has quit [(Quit: Page closed)]
<ikwildrpepper>
(not at eval time, at update time)
<domenkozar>
afaik we prefer to have as few activation scripts as possible
<ikwildrpepper>
it is not ideal, but adding new options that basically do what environment.etc used to do, doesn't sound that nice either
<domenkozar>
in this case bw compatibility is not hard to achieve
<domenkozar>
it will error out
<domenkozar>
and you'll just need to set something like
<ikwildrpepper>
domenkozar: yeah, not at eval/build time, only a script what need to be run to update the package
<ikwildrpepper>
how is erroring out, bw compatible ;)
iclanzan has joined #nixos
<domenkozar>
ikwildrpepper: well it's nix eval time small change :)
<domenkozar>
I consider that not much of a deal breaker once it happens now and there
<domenkozar>
that's the leverage we have compared to other distros, to keep things clean :D
<ikwildrpepper>
I do, when I need to fix it in a lot of places ;)
<ikwildrpepper>
well, I think my suggestion is cleaner really
<ikwildrpepper>
just puts 'more burden' on the maintainer
mkoenig has joined #nixos
<domenkozar>
so a script would crawl through files in $out/agent and generate environment.etc code?
<ikwildrpepper>
i'll try to look at it tonight
oida_ has joined #nixos
<domenkozar>
ikwildrpepper: thanks!
alunduil has joined #nixos
takle has quit [(Remote host closed the connection)]
leat has joined #nixos
estewei has joined #nixos
ryantrinkle has joined #nixos
roconnor has joined #nixos
oida has quit [(Ping timeout: 268 seconds)]
<niksnut>
FRidh: we have access logs, but we can't make them available for privacy reasons
_Vi has joined #nixos
taktoa has quit [(Remote host closed the connection)]
romildo has quit [(Quit: Leaving)]
johnsonav has quit [(Remote host closed the connection)]
nh2 has joined #nixos
reinhardt has quit [(Quit: Leaving)]
hamishmack has joined #nixos
nh2 has quit [(Ping timeout: 246 seconds)]
cfricke has quit [(Ping timeout: 260 seconds)]
justelex has joined #nixos
taktoa has joined #nixos
zraexy has joined #nixos
ilyaigpetrov has joined #nixos
taktoa has quit [(Remote host closed the connection)]
OfficialJustan has quit [(Ping timeout: 260 seconds)]
<copumpkin>
for the binary cache?
smw has quit [(Ping timeout: 240 seconds)]
nicknovi1 has quit [(Ping timeout: 245 seconds)]
newhoggy has joined #nixos
<copumpkin>
niksnut: does hydra keep an index from nar hashes back to expressions that generated them?
nh2 has joined #nixos
<FRidh>
niksnut: understandable. I'm interested in knowing how popular packages are and so would like to have know when a certain file was requested. I suppose it may make more sense to go for a debian popcon approach instead.
taktoa has joined #nixos
bennofs has quit [(Ping timeout: 276 seconds)]
<domenkozar>
niksnut: what data would have to be stripped, IPs?
nh2 has quit [(Client Quit)]
newhoggy has quit [(Ping timeout: 260 seconds)]
MercurialAlchemi has quit [(Ping timeout: 268 seconds)]
erasmas has joined #nixos
Guest42856 has quit [(Quit: Lost terminal)]
jacob__ has joined #nixos
nicknovi1 has joined #nixos
oida_ has quit [(Quit: WeeChat 1.7.1)]
smw has joined #nixos
nh2 has joined #nixos
justelex has quit [(Ping timeout: 276 seconds)]
newhoggy has joined #nixos
<asymmetric>
i tried updating ipfs to latst, changed the version and ran `nix-build -A ipfs`. was expecting the build to fail and give me the correct hash, but it didn't
<gchristensen>
asymmetric: it is because the hash hasn't changed, and a hash present in a fetcher overrides its inputs, if the hash has already been fixed
<niksnut>
copumpkin: I suppose you could use the BuildSteps table to get the corresponding JobsetEval (and thus the inputs)
<niksnut>
domenkozar: at least IPs
<niksnut>
also user agents
takle has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
<asymmetric>
gchristensen: hmm, that's not my experience for other types of packages though.. i just do what i did, fix the hash after running, and go ahead
<niksnut>
and in general anonymization is hard
<niksnut>
e.g. if I know somebody requested some paths, I can use the logs to discover what else they're doing
<asymmetric>
gchristensen: or maybe i don't fully understand your comment
<LnL>
asymmetric: did you change the sha256 attribute?
obadz has quit [(Ping timeout: 260 seconds)]
<asymmetric>
no, i didn't, as i don't know what to change it to yet.. that's why i usually run nix-build first, watch it fail, and then update using its output.. and it usually works
<domenkozar>
niksnut: sure but with just paths one could do some statistics. I don
<domenkozar>
't find it useful but anyway :)
<gchristensen>
asymmetric: it is likely that before you didn't already have the downloaded file, so nix was going to fetch it anyway
<gchristensen>
but this time you already have the downloaded file, so it knows based on the hash it already has it
<LnL>
symphorien: you have to change the hash to something else (like all zeros)
<asymmetric>
ok, i'll try changing the hash to a bogus value
<LnL>
asymmetric: ^, the url isn't important for the output so it'll use the "old" source since that already exists
endformationage has joined #nixos
<asymmetric>
i have another question: i ran `nix-collect-garbage -d` and a) it freed up 25 GB b) now i have this error: `set: Warning: $PATH entry "/nix/store/zhhb02yrp03xzfrpk06ixb0gmwrjmjff-coreutils-8.25/bin/" is not valid (No such file or directory)`
<asymmetric>
when opening a new shell
<asymmetric>
the shell if fish btw
<LnL>
alternatively nix-build -A ipfs.src --check will also redownload and verify the hash
noam has quit [(Read error: Connection reset by peer)]
newhoggy has joined #nixos
dlight has quit [(Remote host closed the connection)]
Sigma has quit [(Ping timeout: 240 seconds)]
<flyx>
hi folks! I am getting a strangs syntax error when trying `nix-shell -p ghc-7.8.3`: error: syntax error, unexpected INT, expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):1:72
rizary has quit [(Ping timeout: 264 seconds)]
thoughtpolice has quit [(Ping timeout: 255 seconds)]
<flyx>
what's this?
sellout- has joined #nixos
eqyiel_ has quit [(Ping timeout: 240 seconds)]
goodwill has quit [(Ping timeout: 264 seconds)]
[0__0] has quit [(Ping timeout: 241 seconds)]
ilyaigpetrov has quit [(Ping timeout: 276 seconds)]
leothrix has quit [(Ping timeout: 255 seconds)]
nicknovitski has joined #nixos
vdemeester has quit [(Ping timeout: 255 seconds)]
pmade has quit [(Ping timeout: 255 seconds)]
johnw has quit [(Ping timeout: 255 seconds)]
nand0p has quit [(Ping timeout: 264 seconds)]
baroncharlus has quit [(Ping timeout: 264 seconds)]
clever has quit [(Ping timeout: 255 seconds)]
codedmart has quit [(Ping timeout: 255 seconds)]
Bodil has quit [(Ping timeout: 255 seconds)]
bdimcheff has quit [(Ping timeout: 276 seconds)]
andrewrk has quit [(Ping timeout: 264 seconds)]
dvim has quit [(Ping timeout: 264 seconds)]
canndrew_ has quit [(Ping timeout: 264 seconds)]
edofic has quit [(Ping timeout: 264 seconds)]
wavewave has quit [(Ping timeout: 264 seconds)]
kragniz has quit [(Ping timeout: 240 seconds)]
Dezgeg has quit [(Ping timeout: 258 seconds)]
vdemeester has joined #nixos
nicknovi1 has quit [(Ping timeout: 276 seconds)]
nz has quit [(Ping timeout: 276 seconds)]
<LnL>
flyx: you probably want nix-shell -p haskell.packages.ghc783.ghc
zx2c4 has quit [(Ping timeout: 264 seconds)]
Ankhers has quit [(Ping timeout: 264 seconds)]
avn_nb has quit [(Ping timeout: 260 seconds)]
newhoggy has quit [(Ping timeout: 276 seconds)]
Intensity has quit [(Ping timeout: 258 seconds)]
<flyx>
LnL: ah yes, thanks
samae has quit [(Ping timeout: 246 seconds)]
ilyaigpetrov has joined #nixos
eqyiel has joined #nixos
eqyiel has quit [(Changing host)]
eqyiel has joined #nixos
pmade_ has joined #nixos
dgonyeo has quit [(Ping timeout: 264 seconds)]
nh2 has quit [(Quit: Leaving.)]
ben has quit [(Ping timeout: 260 seconds)]
bennofs has joined #nixos
<hyphon81>
Can I use bash array in the nix script?
canndrew has joined #nixos
samae has joined #nixos
johnw has joined #nixos
lpsmith has quit [(Ping timeout: 240 seconds)]
manveru has quit [(Ping timeout: 264 seconds)]
acarrico has quit [(Ping timeout: 276 seconds)]
zx2c4 has joined #nixos
thoughtpolice has joined #nixos
bdimcheff has joined #nixos
nand0p has joined #nixos
<sphalerite>
yes, it's run by bas
<sphalerite>
h
andrewrk has joined #nixos
lpsmith has joined #nixos
nz has joined #nixos
ocharles has quit [(Ping timeout: 240 seconds)]
avn_nb has joined #nixos
Sigma has joined #nixos
rizary has joined #nixos
goodwill has joined #nixos
Ankhers has joined #nixos
eacameron has joined #nixos
Bodil has joined #nixos
leothrix has joined #nixos
nh2 has joined #nixos
ben__ has joined #nixos
Dezgeg has joined #nixos
<hyphon81>
If I write "${array[@]}" in nix, it will be recognized as a nix value. And it output error...
edofic has joined #nixos
dgonyeo has joined #nixos
kragniz has joined #nixos
canndrew has quit [(Ping timeout: 276 seconds)]
Intensity has joined #nixos
canndrew has joined #nixos
codedmart has joined #nixos
Jackneill has quit [(Read error: Connection timed out)]
clever has joined #nixos
Jackneill has joined #nixos
stepcut has quit [(Remote host closed the connection)]
acarrico has joined #nixos
baroncharlus has joined #nixos
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
sellout- has quit [(Quit: Leaving.)]
Guest74377 has quit [(Ping timeout: 268 seconds)]
<sphalerite>
hyphon81: escape it with ''. It's rather ugly, but if you use ''${ rather than ${ nix won't interpret it
<hodapp>
well, there's my PR for DraftSight. No idea if it'll be accepted, since it's a big ugly annoying binary package
dvim has joined #nixos
ocharles has joined #nixos
manveru has joined #nixos
newhoggy has joined #nixos
<FRidh>
perl on staging seems to fail
thineye has joined #nixos
nh2 has quit [(Ping timeout: 260 seconds)]
newhoggy has quit [(Ping timeout: 276 seconds)]
<phorse`>
does anybody here use nixos on a macbook? what do you use to adjust the screen brightness?
hyphon81 has quit [(Ping timeout: 240 seconds)]
arh1243 has joined #nixos
<ikwildrpepper>
phorse`: xbacklight
arh has quit [(Ping timeout: 260 seconds)]
<phorse`>
ikwildrpepper: I was trying that out last night, but it wasn't working
<phorse`>
just xbacklight -inc/-dec?
<ikwildrpepper>
yeah
<ikwildrpepper>
lemme check if I can find anything else in my config that makes that work ;)
<sphalerite>
hyphon81: if you're not using nix's ${} at all you could also put the script in a separate file and get it in the expression using builtins.readFile
<phorse`>
sphalerite: ok, that's two votes for the simple solution. I must have mucked it up somehow, I'll try again tonight. Thanks!
<sphalerite>
phorse`: does xbacklight work for you? I had to mess with the X config a bit because X wasn't using the right device — there's both intel_backlight and gmux_backlight in /sys/class/backlight and X was preferring intel_backlight even though gmux_backlight was the right one
nh2 has joined #nixos
<sphalerite>
phorse`: of course the right solution depends a bit on how you're going to use it as well. For example, using xbacklight won't work well if you're going to be on a plain console :)
<phorse`>
sphalerite: oh, this is good stuff. I have nv_backlight and gmux_backlight. When I was playing with it it made no change whatsoever, but I only fiddled for ~15 minutes.
<phorse`>
sphalerite: thanks, that looks perfect. I'll give it a spin tonight
digitus has joined #nixos
cpennington has quit [(Ping timeout: 260 seconds)]
newhoggy has joined #nixos
<Isorkin_>
Hi. How to global install nodejs-pm2 ? package pm2 not found
ryanartecona has joined #nixos
<guillaum2>
Hello. I have a projet with a default.nix somewhere on my harddrive. How can I add this file as a gc root to avoid all the dependencies included inside this default.n
<gchristensen>
guillaum2: look up `man nix-store` and `--add-root`
jensens has quit [(Ping timeout: 276 seconds)]
newhoggy has quit [(Ping timeout: 255 seconds)]
newhoggy has joined #nixos
leat has quit [(Ping timeout: 240 seconds)]
peacememories has joined #nixos
cpennington has joined #nixos
Fare has quit [(Ping timeout: 268 seconds)]
peacememories has quit [(Client Quit)]
newhoggy has quit [(Ping timeout: 255 seconds)]
meshita is now known as a_ryan
peacememories has joined #nixos
simukis has joined #nixos
simukis_ has quit [(Ping timeout: 240 seconds)]
dridus has quit [(Quit: znc? wassat?)]
cpennington has quit [(Ping timeout: 240 seconds)]
mudri has quit [(Ping timeout: 240 seconds)]
<disasm>
Isorkin_: use node2nix
[0__0] has joined #nixos
newhoggy has joined #nixos
spinus has quit [(Ping timeout: 240 seconds)]
leat has joined #nixos
radvendii has joined #nixos
radvendii has quit [(Client Quit)]
newhoggy has quit [(Ping timeout: 240 seconds)]
sellout- has joined #nixos
pie_ has joined #nixos
brodul has joined #nixos
cpennington has joined #nixos
mudri has joined #nixos
aswanson has joined #nixos
newhoggy has joined #nixos
raydeo has quit [(Changing host)]
raydeo has joined #nixos
marsel has quit [(Ping timeout: 240 seconds)]
newhoggy has quit [(Ping timeout: 255 seconds)]
bennofs has quit [(Ping timeout: 240 seconds)]
ambro718 has quit [(Quit: Konversation terminated!)]
iclanzan has quit [(Ping timeout: 240 seconds)]
iclanzan has joined #nixos
newhoggy has joined #nixos
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
ertes has joined #nixos
Guest74377 has joined #nixos
newhoggy has quit [(Ping timeout: 276 seconds)]
<aswanson>
is it cool to ask troubleshooting questions here? I've never participated in a development IRC channel...
<gchristensen>
you bet, aw
<gchristensen>
aswanson:
newhoggy has joined #nixos
<lewo>
Hi. Is it possible to get a conflict in a python closure if there are different module versions in build requires?
<aswanson>
cool! I'm setting up an R development environment and getting errors installing the R 'openssl' package. It's complaining that 'pkg-config' can't find openssl.pc on its path
<aswanson>
I can see that the nix store has several copies of openssl.pc in it, but the pkg-config path doesn't contain any of them
<hodapp>
aswanson: yeah, typical R procedure is to look in the existing R packages rather than try to install from R, as doing it from R leads to all sorts of annoyance when the packages that have native components assume all sorts of things about the environment
<aswanson>
hodapp, makes sense now, but I had a lot of trouble finding the packages in the nix repo. Are they named the same?
k2s has joined #nixos
wavewave has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
newhoggy has quit [(Ping timeout: 240 seconds)]
<hodapp>
aswanson: searching with "nix-env -f "<nixpkgs>" -qaP -A rPackages" like the manual says?
<aswanson>
no, I hadn't done any of the setup in the manual for R. I'll be setting that up and hoping it works as advertised
dridus has joined #nixos
<hodapp>
I've been using it myself and had no problems
FRidh has quit [(Ping timeout: 276 seconds)]
<hodapp>
well, I had some problems with RStudio, which I did my best to fix and commit
<hodapp>
(mainly, the problems were that RStudio couldn't access the packages the R installation had installed)
<hodapp>
but that was recently so it may be a bit before it makes its way into a stable release
newhoggy has joined #nixos
<contrapumpkin>
niksnut: that could be a fun script to write. Might help inform a smarter GC of the cache bucket
<simukis>
how can I install a cross compiler for, say, mingw? My goal is to have `x86_64-w64-mingw32-*` et al (or similar) in the environment. I’ve found makeStdenvCross, but having a hard time figuring it out
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Mic92>
s3 is down and I cannot update my linux distribution
newhoggy has quit [(Ping timeout: 276 seconds)]
<gchristensen>
s3 is down?
goibhniu has quit [(Ping timeout: 264 seconds)]
<Yaniel>
again?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
* gchristensen
finds that tough to believe...
<Mic92>
gchristensen: it was for several minutes
<Mic92>
looks like nixos-ipfs lost its spin
<gchristensen>
I think the conclusion was that ipfs can't handle it yet
<Mic92>
gchristensen: do know where this was discussed?
<jophish>
Does @grwlf ever come on IRC?
<niksnut>
contrapumpkin: what script?
<sziszi>
gchristensen: is there any news on the wiki?
<gchristensen>
I have no stake in the wiki other than wanting it to go away or come back
ryanartecona has joined #nixos
<gchristensen>
actually ... maybe making it go away will push people to bring it back, niksnut :~)
<Mic92>
gchristensen: is it possible to get a dump somewhere?
<sziszi>
Mic92: to be honest I'm more interested in some commit based one like gitbook.com or readthedocs.io privides
<Mic92>
sziszi: you can
<gchristensen>
sziszi: there is a long and tired discussion about that
<gchristensen>
Mic92: I don't know
<gchristensen>
sziszi: you'd have to talk to eelco :)
<Mic92>
sziszi: I can add you to the repo
<contrapumpkin>
niksnut: oh, the nix-cache bucket GC script. I figured it'd be fun to write a script that sucked up S3 access logs, cross-referenced them against hydra DB, and provided aggregated usage data (both that we could publish, and that we could use to inform future decisions). The obvious one would be that we could probably GC things that have never been downloaded (probably obscure expressions from ancient revisions of nixpkgs), but less
<contrapumpkin>
obvious examples might be that we can probably get away with much smaller i686 builds than we're doing today, but it's hard to know without data
<sziszi>
gchristensen: I'm even fine with a jekyll generator
<gchristensen>
sziszi: there is a long and tired discussion about that
aloiscochard has quit [(Quit: Connection closed for inactivity)]
<Mic92>
sziszi: what is you github username?
newhoggy has quit [(Ping timeout: 264 seconds)]
<Mic92>
If I add you as contributor, you can also push
<sziszi>
thanks
k2s has quit [(Ping timeout: 240 seconds)]
nschoe has quit [(Quit: Program. Terminated.)]
newhoggy has joined #nixos
bennofs has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
ryanartecona has quit [(Quit: ryanartecona)]
newhoggy has joined #nixos
_Vi has quit [(Ping timeout: 245 seconds)]
<copumpkin>
niksnut: so tbc, I'm not proposing anonymization in any traditional sense. Just saying that we could have a script that aggregates the request-level data into package/version-level data
<copumpkin>
and then use that both because folks love stats, and to actually make useful decisions
mudri has quit [(Ping timeout: 276 seconds)]
<gchristensen>
request-level is pretty low level
stepcut has joined #nixos
stepcut has quit [(Read error: Connection reset by peer)]
derjohn_mob has quit [(Ping timeout: 255 seconds)]
bennofs has quit [(Quit: WeeChat 1.7.1)]
bennofs has joined #nixos
lsyoyom has joined #nixos
newhoggy has joined #nixos
newhoggy has quit [(Ping timeout: 264 seconds)]
stepcut has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
newhoggy has quit [(Ping timeout: 246 seconds)]
Vorpal has quit [(Ping timeout: 240 seconds)]
<simpson>
Hm. We need a networking.batman configuration.
<simpson>
It's not clear how to turn the various stuff under networking.bridges and networking.firewall into an actual operating router/gateway. Are there hidden docs on this?
newhoggy has joined #nixos
aswanson has quit [(Quit: Page closed)]
MichaelRaskin has joined #nixos
<gchristensen>
I can post my config
<gchristensen>
simpson: can you wait a few hours? :)
bennofs has quit [(Ping timeout: 276 seconds)]
newhoggy has quit [(Ping timeout: 240 seconds)]
<asymmetric>
i am trying updating the ipfs package, but i get errors like `cannot find package "gx/ipfs/QmV5gPoRsjN1Gid3LMdNZTyfCtP2DsvqEbMAmz82RmmiGk/go-cid" in any of:`
<asymmetric>
normally go packages have a deps.nix file, but this one doesn't
mudri has joined #nixos
<asymmetric>
maybe i should add it, with the dependencies.. maybe they introduced new ones in the new version..
newhoggy has joined #nixos
stepcut has joined #nixos
grillon has quit [(Read error: Connection reset by peer)]
preyalone has joined #nixos
StillerHarpo39 has joined #nixos
newhoggy has quit [(Ping timeout: 260 seconds)]
newhoggy has joined #nixos
cpennington has quit [(Ping timeout: 260 seconds)]
alfie is now known as Alfie^matrix
Alfie^matrix is now known as alfie
grillon has joined #nixos
peacememories has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
bennofs has joined #nixos
newhoggy has joined #nixos
<asymmetric>
but it seems ipfs uses gx for deps
_Vi has joined #nixos
kampfschlaefer has joined #nixos
newhoggy has quit [(Ping timeout: 276 seconds)]
phreedom has quit [(Quit: No Ping reply in 180 seconds.)]
joko has joined #nixos
<joko>
Hello, is it possible to change binary cache before a nixos-rebuild? I'm trying with --option binary-caches, but it seems not to be working
newhoggy has joined #nixos
kykim has joined #nixos
katyucha has quit [(Killed (adams.freenode.net (Nickname regained by services)))]
katyucha_ is now known as katyucha
katyucha_ has joined #nixos
cpennington has joined #nixos
leat has quit [(Read error: No route to host)]
stepcut has quit [(Remote host closed the connection)]
newhoggy has quit [(Ping timeout: 240 seconds)]
<kykim>
anyone have experience setting up nixos in virtualbox with two network adapters? Adapter1 is NAT, and Adapter2 is Host-only (i.e. vboxnet0). I'm trying to keep Adapter1 DHCP, and assign an IP address to Adapter2. I tried adding an etry in /etc/nixos/configuration.nix, but Adapter2 fails to get the assigned address.
<sphalerite>
kykim: what are the names of the interfaces, and what do your entries in the configuration look like?
<lassulus>
is it possible to backport the new youtube-dl to 17.03? a lot of youtube pages don't work for me anymore
newhoggy has joined #nixos
<clever>
joko: one thing i sometimes do, copy the contents of /etc/nix/nix.conf to a new file, delete the symlink, then rename the copy back to nix.conf, and edit it freely
<clever>
joko: nixos-rebuild will overwrite the file with a symlink at the next switch
<sphalerite>
lassulus: What I do in those cases is generally to cherry-pick the appropriate commits onto my local cehckout of nixpkgs
<sphalerite>
then install it from there
<lassulus>
yeah, I'm also doing that, but for people who just want to use the stable channels its very unconvenient
derjohn_mob has joined #nixos
<clever>
you can also copy the default.nix for it into a packageOverride in config.nix
<kykim>
spahlerite: the two interfaces are "enp0s3" for Adapter1 and "enp0s8" for Adapter2 (via 'ifconfig -a')
<clever>
then you dont need to maintain your own clone of nixpkgs
<gchristensen>
^ definitely preferable, but most often what we do is just backport changes for youtubledl
takle has quit [(Ping timeout: 255 seconds)]
<kykim>
sphalerite: the config line is 'networking.interfaces.enp0s8.ip4 = [ { address = "192.168.56.101"; prefixLength = 24; } ];'
newhoggy has quit [(Ping timeout: 255 seconds)]
<joko>
clever: great idea, thanks!
<MichaelRaskin>
I think backporting youtube-dl is something that would be easily accepted as a PR, and it is not done just because too many people use unstable or master on desktop and stable on servers (and end up not caring)
itscaleb has left #nixos ["ERC (IRC client for Emacs 25.1.1)"]
<simpson>
gchristensen: Are you busy or just not near your setup? I want to chat a bit about what I've found so far.
cpennington has quit [(Ping timeout: 240 seconds)]
<steveeJ>
simukis: sorry I can't read the full backlog right now but saw your question earlier. have you managed to install the cross compiler?
newhoggy has joined #nixos
<simukis>
steveeJ: I have no idea how to do that
aneeshusa has joined #nixos
<simukis>
obviously I do not want to fetch gcc sources manually and do make install thingy
<simukis>
I’m fine with nix os compiling me one, though, if there’s no prebuilt crosscompilers
<gchristensen>
simpson: I can't be too involved / sharing things during work hours, lest an assumption is made that b/c it was during work hours it is owned by my employer
<clever>
simukis: what cpu do you need a compiler for, and does it need to have a libc or just kernel level stuff?
<simpson>
gchristensen: Ah, of course, the problem of the daylighter. I totally understand. Let *me* say, then, what I've done so far. >:3
<simukis>
clever: various. I need crosscompilers for these targets at least: x86_64-pc-windows-gnu (mingw thing), powerpc{,64}-unknown-linux-gnu (with glibc), mips{,64,64le,le}-unknown-linux-gnu (with glibc)
<simpson>
BATMAN works great over ad-hoc WiFi, ignoring stupid bugs in WiFi chipsets and drivers like WEP not working right.
<simukis>
clever: so a generally usable approach would be nicest
newhoggy has quit [(Ping timeout: 276 seconds)]
<simpson>
I want a services.alfred, but this means that there probably needs to be a networking.batman because alfred can't run until bat0 is up.
<clever>
simukis: ah, ive done a mingw with libc before, but havent tried powerpc or mips
takle has joined #nixos
<simpson>
And I would also like networking.batman to be able to set up gateways to the Internets automatically, because I have forgotten how to set up Linux routers.
<joko>
clever: would the new method change the hash of closures? As far as I remember that was the catch in the old method
Guest71075 has quit [(Changing host)]
Guest71075 has joined #nixos
Guest71075 is now known as Vorpal_
Vorpal_ is now known as Vorpal
<clever>
joko: both methods of cross-compiling would have their own hashes, and it would also differ from natively building the same expression on the target platform
justelex has joined #nixos
<joko>
Is it possible then to build your own system (e.g. a Raspberry Pi) completely from cross-compilation? I remember asking you this some time ago :)
<clever>
joko: some packages dont like cross-compiling, so you cant build the entire OS via cross-compile
hegemoOn has joined #nixos
<hegemoOn>
hello there
stepcut has joined #nixos
cpennington has joined #nixos
<clever>
joko: and the hashes dont match up, so the first time you try to nix-env -i, it will want to re-build everything from gcc and up
<hegemoOn>
i got some issues, first i tried to compile nix on top of LFS build
<hegemoOn>
but its failing and never produce any binaries
<hegemoOn>
no error so far
<hegemoOn>
second i tried to install the binary version
<hegemoOn>
and it's falling to install too
eacameron has quit [(Quit: Leaving...)]
<simpson>
hegemoOn: Why not use the standard single-user Nix installer? Nix does a better job of building itself AIUI.
<joko>
clever: that would be too much work still :( ... In ArchLinuxARM I was using distcc and cross-compiling to speed up stuff, but I admit it's been a long time since I've touched any arm board
<hegemoOn>
i dont have sudo and i run it in root
<clever>
joko: i just aim a hydra configured for native builds at my raspberry pi and then leave it for a week
newhoggy has quit [(Ping timeout: 260 seconds)]
<hegemoOn>
it complains about nixbld not existing group
<hegemoOn>
i created this group
<clever>
hegemoOn: you need to put build users like nixbld1 into the nixbld group
<hegemoOn>
but what if i want to run it as root ?
<joko>
clever: I see, do you have any shareable configuration.nix?
<hegemoOn>
or do i have to create a user (other than nixbld1)
<clever>
hegemoOn: if you run nix tools as root, they will automaticaly drop privs down to a member of the nixbld group
<hegemoOn>
ok
<hegemoOn>
so far it is understandable
justelex_ has joined #nixos
<clever>
and you must not put your own user into the nixbld group
<hegemoOn>
but the package isnt installing
<hegemoOn>
ok
<clever>
it will -9 every process in the user it picks
<clever>
and nixos-generate-config should make that file for you
<aanderse>
yeah it was pretty easy to install on my laptop
<aanderse>
the docs work well
<clever>
Mic92: line 39-75 will get eaten the next time you generate-config!!
<Mic92>
clever: thanks I am aware of that
<Mic92>
hence its a git
newhoggy has quit [(Ping timeout: 276 seconds)]
kykim has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
<clever>
Mic92: ah, and line 15 isnt needed, nixos will automaticaly find the filesystem for /
<clever>
Mic92: line 84 tells it that it needs zfs to boot
m0rphism has joined #nixos
newhoggy has joined #nixos
marsel has quit [(Ping timeout: 255 seconds)]
goibhniu has quit [(Ping timeout: 240 seconds)]
cpennington has joined #nixos
<simukis>
clever: so AFAICT what I have to do here is to "derive" pkgs.stdenv with targetPlatform set to my desired platform
<simukis>
I suspect targetPlatform is a plain string here, but how would I go about "deriving" the package?
<simukis>
callPackage?
<clever>
simukis: i think what you did was load the entire nixpkgs with the targetplatform setup
<simukis>
I didn’t do anything yet
<clever>
simukis: via pkgs = import <nixpkgs> { somethinghere; }
<clever>
simukis: then everything under that pkgs attribute will be cross-compile
<clever>
d
<simukis>
clever: can I try stuff like this out with nix-shell or somesuch?
<clever>
nix-repl would help more i think
<Mic92>
there will be also `nix repl` in the future
phreedom has joined #nixos
cpennington has quit [(Ping timeout: 240 seconds)]
<simukis>
and with nix-repl, how do I make it "build" package(s)?
jacob__ has quit [(Remote host closed the connection)]
exarkun has joined #nixos
<clever>
simukis: :b
kampfschlaefer has quit [(Ping timeout: 240 seconds)]
newhoggy has quit [(Remote host closed the connection)]
<simukis>
okay, so `somethinghere` cannot be just targetPlatform… it has to be passed as an argument into package derivation
newhoggy has joined #nixos
Kallegro[m] has joined #nixos
endformationage has quit [(Quit: WeeChat 1.7)]
newhoggy has quit [(Ping timeout: 240 seconds)]
alx741 has quit [(Quit: alx741)]
sigmundv_ has quit [(Ping timeout: 260 seconds)]
isidore has joined #nixos
<clever>
simukis: yeah, i'm not seeing a good example in the nixpkgs docs
<simukis>
import <nixpkgs> { platform = { targetPlatform = "x86_64-pc-windows-gnu"; }; } seems to not yell at me
alx741 has joined #nixos
<simukis>
its just error: derivation ‘/nix/store/61vy8qciamfpid4vk1cny7z0nqvladab-bootstrap-gcc-wrapper.drv’ has incorrect output ‘/nix/store/xggr8vqz503gnsgdxrr8d3h8s49yfpcx-bootstrap-gcc-wrapper’, should be ‘/nix/store/yn4sskdsj4vmj6xdqigf5rc92v6iqhzr-bootstrap-gcc-wrapper’ now
preyalone has quit [(Quit: Connection closed for inactivity)]
<simukis>
oh humm, I kinda hacked on it and it seems to be doing powerpc stuff too?
<clever>
what values did you use?, i could make a list of examples on my githut
<simukis>
https://paste.rs/C6F, it doesn’t actually build yet, because I need to figure out what to put into kernelHeaderBaseConfig
mellowmaroon has joined #nixos
<mellowmaroon>
Is there a way to include multiple files in configuration.nix? Like a glob?
<clever>
mellowmaroon: what kind of files?
<mellowmaroon>
clever: just other .nix files. Like I split up my installed packages declartaions into a bunch of separate files
<clever>
mellowmaroon: for things like package overrides, you would want to use import
<clever>
mellowmaroon: import just returns the top-level object of the file you name, so you can create a file that takes { pkgs }: and returns some overrides
<mellowmaroon>
clever: That's what I mean, sorry. Right now, I have an imports list at the top with explicit file paths
<clever>
mellowmaroon: then do (import ./file1.nix { inherit pkgs; }) // (import ./file2.nix { inherit pkgs; })
<simukis>
clever: not sure if it will produce anything usable yet, though
<clever>
mellowmaroon: imports is for whole nixos modules, which must have the same format as configuration.nix itself
<mellowmaroon>
clever: so right now, I have imports = [ ./hardware.nix ./packages/a.nix ... ]; (ellipses not actually there, just more hardcoded paths)
<clever>
mellowmaroon: as long as all of those files are in nixos module format, that should work
jensens has joined #nixos
<mellowmaroon>
clever: what I'd like to do is have just imports = [ ./hardware.nix ./packages/**.nix ];, so I don't need to remember to change the file when I add a new .nix file
<clever>
mellowmaroon: ahh, you can use builtins.readDir
<mellowmaroon>
clever: I'll look that up, but does that read recursively?
<clever>
mellowmaroon: no, it just lists a single dir
<clever>
but you could then make it recursive with a nix function
cpennington has quit [(Ping timeout: 276 seconds)]
k0001 has quit [(Quit: WeeChat 1.7)]
newhoggy has joined #nixos
newhoggy has quit [(Ping timeout: 276 seconds)]
darlan has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
darlan has quit [(Client Quit)]
digitus has quit [(Quit: digitus)]
ambro718 has quit [(Quit: Konversation terminated!)]
sellout- has quit [(Quit: Leaving.)]
MP2E has joined #nixos
thineye has joined #nixos
thineye has quit [(Client Quit)]
erasmas has quit [(Quit: leaving)]
ryanartecona has joined #nixos
alphor has quit [(Quit: Bye!)]
zraexy has quit [(Remote host closed the connection)]
zraexy has joined #nixos
alphor has joined #nixos
markus1209 has joined #nixos
zraexy has quit [(Remote host closed the connection)]
markus1219 has joined #nixos
zraexy has joined #nixos
thc202 has quit [(Ping timeout: 240 seconds)]
markus1199 has quit [(Ping timeout: 260 seconds)]
markus1189 has quit [(Ping timeout: 268 seconds)]
darlan has joined #nixos
<simpson>
Maybe I missed it in the docs, but: On NixOS, if I want to be in a Debian-like (Ubuntu is fine I guess?) root, and have binaries more or less Just Work, what would I do? Is there anything better than making a new directory and running debootstrap?
<MichaelRaskin>
steam-run
<Ralith>
simpson: buildFHSEnv?
<simpson>
Ralith, MichaelRaskin: Can I run apt and install packages and stuff? I thought that the FHS env didn't come with that.
<Ralith>
that's more debian-like than I imagined you to want
<simpson>
IKR?
<MichaelRaskin>
Well, if you want _apt_ debootstrap does sound natural
<MichaelRaskin>
Because apt has this idea that it can just go and overwrite whatever files it wants
<MichaelRaskin>
So these files would better match apt's expectations