felixfoertsch23 has quit [Ping timeout: 276 seconds]
<SkyrisBactera>
Hey! I'm on unstable and I'm getting an error when I try to build cudatoolkit with the error "cd: pkg/run_files: No such file or directory". Any ideas?
mexisme has quit [Ping timeout: 276 seconds]
DigitalKiwi has quit [Quit: quite.]
DigitalKiwi has joined #nixos
<gyroninja>
SkyrisBactera: I'm getting the same error
andreas303 has quit [Read error: Connection reset by peer]
oida has quit [Remote host closed the connection]
phreedom has quit [Remote host closed the connection]
oxford has quit [Read error: Connection reset by peer]
gxt has quit [Read error: Connection reset by peer]
xelxebar has quit [Read error: Connection reset by peer]
klntsky has quit [Write error: Broken pipe]
jb55 has quit [Write error: Connection reset by peer]
das_j1 has joined #nixos
Scriptkiddi1 has joined #nixos
jb55 has joined #nixos
<SkyrisBactera>
gyroninja: You think I should file an issue then?
oxford has joined #nixos
phreedom has joined #nixos
xelxebar has joined #nixos
andreas303 has joined #nixos
<gyroninja>
yeah, I don't see one
MmeQuignon has quit [Ping timeout: 265 seconds]
gxt has joined #nixos
horner has joined #nixos
klntsky has joined #nixos
oida has joined #nixos
<gyroninja>
SkyrisBactera: It looks like it's fixed on master
<SkyrisBactera>
gyroninja: I'm not completely sure of how the NixOS build cycle works; how can I get these changes? (I thought unstable was functionally the same as master)
<gyroninja>
actually nvm I was mistaken
<gyroninja>
unstable lags behind master a little bit since it has to wait on hydra to build everything and have the tested tests pass
<SkyrisBactera>
Oh ok. Anyways, the issue is at github.com/NixOS/nixpkgs/issues/74720.
justanotheruser has quit [Read error: Connection reset by peer]
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
aw has joined #nixos
spacefrogg has joined #nixos
m0rphism1 has quit [Ping timeout: 268 seconds]
ddellacosta has quit [Read error: Connection reset by peer]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
marusich has joined #nixos
dansho has quit [Ping timeout: 240 seconds]
<DigitalKiwi>
hey puny humans, i have a question. why have <1000 IPs asked for xmlrpc.php an average of 5000 times each? I don't have wordpress...and for most of the time they've been at it I didn't even have php which is only a recent (and tempororary >.> ) thing
SkyrisBactera has quit [Remote host closed the connection]
<slack1256>
I don't deal the aliens on IRC.
<DigitalKiwi>
just let one complain
<DigitalKiwi>
I dare em
<DigitalKiwi>
i can understand trying millions of ips trying to get one that works, but trying the same one thousands of times is counter to that goal, no?
noonien has quit [Quit: Connection closed for inactivity]
dansho has joined #nixos
felixfoertsch has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
slack1256 has quit [Remote host closed the connection]
<lordcirth>
Depends. A lot of those IPs could be Chinese CS students all behind their university's NAT.
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<dansho>
can i get the contents of a local file as a string in a nix file?
<dansho>
like (import ./foo.txt), but without evaluating
o1lo01ol1o has quit [Ping timeout: 265 seconds]
<aleph->
Yes
<aleph->
builtins.readFile should do
<aleph->
Ah wait that would count as eval I think
<aleph->
Can also `cat` the file if you do it in a scriptPhase of some flavor or another
<dansho>
aleph- readFile is what i wanted, just found it
<MichaelRaskin>
DigitalKiwi: so, to recap, you are acomplaining that scriptkiddies scanning the entire internet in a search of something trivial to hack are not operating efficiently enough?
<aveltras>
Is there a way to manually delete a systemd service file found in "systemctl --user list-unit-files" ? I have an emacs.service which doesn't seem to be added by my config
thc202 has joined #nixos
<symphorien>
Systemctl cat will tell you where it is
<symphorien>
If it is in the store you won't be able to remove it though
<clever>
$ systemctl --user status pulseaudio.service
<adisbladis>
typetetris: I have the same problem ;)
<adisbladis>
I don't play that much games
<MichaelRaskin>
typetetris: just run XScreenSaver OpenGL hacks on maximum settings. Either Lava Lamp or Menger
<{^_^}>
[nixpkgs] @nyanloutre opened pull request #74734 → transmission-remote-gtk: fix build for new version of gettext → https://git.io/Je1MV
domogled has joined #nixos
lsix has joined #nixos
boogiewoogie has joined #nixos
simukis__ has joined #nixos
simukis_ has quit [Read error: Connection reset by peer]
<boogiewoogie>
hey, I was looking into iptables and my, definitely wrong, understanding of it tells me that the default nixos firewall (see https://hastebin.com/pagigaqadu.apache ) accepts every incoming packet? I'm looking at line 15 there. how am I reading this wrong/why doesn't it despite l15?
<boogiewoogie>
it seems the corresponding line would be l33 here, which could mean l15 from before is referring to loopback only but just doesn't say so?
<MichaelRaskin>
Looks like that, indeed
<clever>
line 33 says to allow any traffic on the lo interface
<clever>
so loopback doesnt get firewalled from yourself
<boogiewoogie>
yep
<clever>
33-36 forms the bulk of the firewall rules, with 36 refusing as a default
<boogiewoogie>
yep
<boogiewoogie>
I think I got it
<clever>
personally, i would use the default targets on 25-27 for such a purpose
<clever>
because when you reload the rules, 36 will temporarily not exist
<boogiewoogie>
I'll remember the iptables-save for sure
<clever>
in the old days, you where meant to run iptables-save at shutdown, and shove it into a file
<clever>
and then pipe it to iptables-restore on bootup, so the rules persisted
<clever>
but most modern firewalls just ignore that, wipe the tables, and re-build the rules with normal iptables commands
<clever>
there are also performance costs from that
<boogiewoogie>
oh
<clever>
the whole set of rules, is kept in an RCU structure
<clever>
any time you want to modify the rules, the kernel must copy the entire rule table, and modify the copy
<boogiewoogie>
so they re-build from something like a rules file on every startup?
<clever>
then it can do an atomic swap of which rules it uses
<clever>
boogiewoogie: for nixos, its a bash script that just runs iptables -A repeatedly
<clever>
and each time it does so, the kernel has to copy the entire list of rules
<clever>
so each `iptables -A` is slower then the previous
<clever>
something ive wanted to do (but its a major re-design) is to generate output that is compatible with save/restore
<clever>
because `iptables-restore` can atomicly apply the whole thing at once, making it load faster
gekketinus has quit [Remote host closed the connection]
<oscarvarto>
--- How should I modify the virtual box default size of the image? I guess I need to override the default of 80 GB :(
<oscarvarto>
using Nix
<oscarvarto>
I would normally use VboxManage for that, but in nixos I am not sure
<oscarvarto>
Compilation of leksah is fulling my disk
<clever>
oscarvarto: if the disk is already loaded into virtualbox and you want to keep the contents, just use the normal virtualbox tooling to resize the disk, then use gparted within the guest to expand the partition
m0rphism1 has joined #nixos
<oscarvarto>
clever: Thanks a lot!
<clever>
yep
<oscarvarto>
clever: Nevermind, the disk is created to dynamically allocate space
<oscarvarto>
So, it should grow naturally
<oscarvarto>
That is what makes more sense
<clever>
up to a the defined size limit of the image
MmeQuignon has joined #nixos
<oscarvarto>
Now I just need leksah to finish compiling
<coderobe>
gchristensen: no, they do - their C1 are armv7l
<klimi>
Hello guys, i was wondering where i should get some materials and basic overview of configuring nixos. I am beginner and i would like to try nixos for daily use. Anything is appreciated. Thanks
<gchristensen>
they don't seem to sell those anymore, coderobe
justanotheruser has joined #nixos
<coderobe>
gchristensen: they do, they're just miscategorized
<coderobe>
they're under bare metal, not under arm
<clever>
this uses both a vc4 and an arm cross-compiler, to generate a working bootcode.bin file
<evils>
klimi: if you know what you want to do, i found the options fairly self-explanatory, the manual offers some context and a lead in to that, and it's ofc never a bad idea to read the manual...
horner has joined #nixos
<xidica>
is there some recommended "best practice" for segregating system and user packages? I've read the handful of various ways and settled on just using users.users.USERNAME.packages = [ pkg.blah pkg.blah2 ], it seems to be doing fine for a single user laptop setup, am I missing something or overthinking it?
<MichaelRaskin>
One size does not fit all.
<qyliss>
xidica: either do what you're doing or use home-manager
<MichaelRaskin>
Your approach is OK.
<MichaelRaskin>
When it stops fitting you, tell us what is wrong with it.
<MichaelRaskin>
Depending on what your needs are, the answer will differ
<klimi>
evils: Thanks... also do you recommend to use dotfiles from git repo which i use now with combination with stow or to manage everything like within the nixos configuration with home-manager
peanutbutter144_ has joined #nixos
<xidica>
sure, i had tried the .config/nixpkgs/config.nix approach, seemed overkill for what I needed right now, so I guess I was making sure there weren't any serious gotchas or regrets I was going to set myself up for later, seems reasonable.
jgt has quit [Ping timeout: 252 seconds]
<evils>
klimi: my approach to dotfiles is too barbaric to discuss, i cannot advice you there
<jerry20>
@klimi: I started with stow but prefer to do it with home manager. It's preference
<jerry20>
klimi: I'd say, just try both and see what you like best
<MichaelRaskin>
xidica: as long as all of your configuration is in a VCS, migrating is OK-ish
<klimi>
I see, i see. I like how arch is easy to manager... nix seems a bit complicated at first
<MichaelRaskin>
(and just plain fine for most migration cases)
<klimi>
jerry20: and the home manager approach is including the files as strings in the configuration.nix?
peanutbutter144 has quit [Ping timeout: 276 seconds]
<jerry20>
klimi: It's up to you, this is possible with home manager yes, but you could also have them as normal files and let home manager symlink them
<klimi>
so i could just eliminate the stow part... okay okay. Thanks a lot. I will have to get going to my work. See ya
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @r-ryantm to master « qbs: 1.14.0 -> 1.14.1 (#74617) »: https://git.io/Je1Sk
jgt has joined #nixos
<{^_^}>
[nixpkgs] @andir opened pull request #74737 → cudatoolkit: move the dependencies into a common expression → https://git.io/Je1SI
ng0 has quit [Ping timeout: 260 seconds]
<xidica>
What are folks using to manage their dotfiles in VCS and deal with secrets (i.e. not committing actual secrets, but having the generic secret areas of the confs substituted on the real system) ?
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @r-ryantm to master « rednotebook: 2.11.1 -> 2.14 (#74631) »: https://git.io/Je1SW
<coderobe>
clever: what would the purpose of core.nix be, then?
<coderobe>
just a common one?
<clever>
coderobe: something that you usually set on every single machine, like creating your user, configuring timezones
<coderobe>
ah yeah
<coderobe>
makes sense
ixxie has quit [Ping timeout: 265 seconds]
<clever>
coderobe: nodes around the middle of the tree would then be groups of stuff, like laptop.nix, that configures laptop specific stuff, and pulls in both core.nix and wifi.nix
<coderobe>
if i were to load the secrets in said core.nix, will they be available in the downstream configs that have imports = [ ./core.nix ], or do i need to load the secrets into each of them?
<clever>
normally, each file would have to load its own copy of secrets.nix
<clever>
but, you can use the nixos options to solve that
<clever>
_module.args.secrets = import secrets.nix; will allow you to do { pkgs, config, secrets, ... }: in any module
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @r-ryantm to master « micronaut: 1.2.5 -> 1.2.6 (#74465) »: https://git.io/Je19y
domogled has joined #nixos
<gchristensen>
this kworker-pm thing is nuts, it kills my battery in notime
civodul has joined #nixos
anderslundstedt has quit [Quit: leaving]
Neo-- has joined #nixos
__Myst__ has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
fendor has joined #nixos
<DigitalKiwi>
what's that?
__Myst__ has joined #nixos
<clever>
DigitalKiwi: a kernel bug that happens on some motherboards
<clever>
DigitalKiwi: some thread sits at 100% cpu usage
<clever>
gchristensen: oh, have you seen how to backtrace all kernel threads?
<DigitalKiwi>
huh, that sounds problematic
<clever>
gchristensen: try echoing one of l, t, or w to /proc/sysrq-trigger (LTW, incase your fonts arent good)
<xidica>
Is there an easy way to generate the sha256 that fetchFromGitHub expects for a given commit?
<clever>
xidica: either nix-prefetch-url --unpack, or
<clever>
,tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected. See: tofu-vim
<Thra11>
Is there a simple way to switch a remote builder/substituter on and off? I know you can pass --option substituters and similar, but I'm thinking more about a stateful thing where if I'm connected to my home network it'll try to contact my build machine, but if I'm not, it won't.
<Thra11>
xidica, clever Isn't there some sort of lib.fakeSha256 function?
<clever>
Thra11: simplest thing that will persist for a while is to just `rm /etc/nix/machines`
<clever>
Thra11: nixos will "repair" it the next time you nixos-rebuild or boot
<Thra11>
^ Easier to get the right number of digits that way
<Thra11>
clever: removing /etc/nix/machines is probably good enough. Thanks
Nycatelos has joined #nixos
<xidica>
but I mean, i want to get a specific checkout of a github repo, and it's not already packaged as some release archive, and I don't think nix-prefetch-url takes github repo arguements with a specific rev
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @r-ryantm to master « libisoburn: 1.5.0 -> 1.5.2 (#74445) »: https://git.io/Je1HW
<betawaffle>
on macos, is there some way to determine where an environment variable is being set? and/or maybe list what env vars are coming from launchd?
<betawaffle>
(i know that's not a nixos question, sorry)
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @r-ryantm to master « libdigidocpp: 3.14.0 -> 3.14.1 (#74443) »: https://git.io/Je1Hj
<Gopal-M>
I don't think I'll ever restart firewall.service because docker manages it all. So at all times, if I have to restart anything, it'll be docker.service
<Gopal-M>
I was searching if there were a way to pin some iptables rules to the top of the chain, couldn't find anything
mexisme has quit [Ping timeout: 250 seconds]
<Gopal-M>
do you have any other ideas to go about this? seems a bit tricky to me because this is all dynamic
<clever>
Gopal-M: you can use mkBefore and mkAfter to control where in the firewall scripts your rules get inserted into the script
<magthe>
I'm trying to pull in ghcide from https://github.com/hercules-ci/ghcide-nix, since the one in nixpkgs is broken I was pointed to ghcide-nix. However, I'm failing because I don't really understand what it exports. My shell.nix: https://termbin.com/elui
bvdw has quit [Quit: bvdw]
<Gopal-M>
oh
<Gopal-M>
I found the problem
<Gopal-M>
iptables: command not found
<clever>
Gopal-M: that will do it!
<Gopal-M>
Nov 30 18:13:42 anri x0wrsv0vp9kss7l333my8sx451vvcwpv-unit-script-docker-post-start[8754]: /nix/store/x0wrsv0vp9kss7l333my8sx451vvcwpv-unit-script-docker-post-start: line 4: iptables: command not found
<karetsu>
hi all, I'm trying to set up nordVPN with my nixos box but I can't for the life of me find the documentation that explains it for dummies - I have set up services.openvpn.servers.<name>.config pointing to one of nord's ovpn config files but how/where do I configure my username and password to let it connect without having them in plain text in the .nix?
Luflosi has quit [Ping timeout: 260 seconds]
<clever>
karetsu: i think those would go into the ovpn file? but that may still get copied to /nix/store and become world-readable
<karetsu>
world-readable is less worrying than 'backed up on the intertint readable' but not preferred :(
<clever>
karetsu: if you quote the path to the config file, it shouldnt copy, but then the service wont auto-restart when the config is modified
<karetsu>
clever: so having the full path will read from place rather than making a {package}/foo/bar.ovpn?
<clever>
karetsu: "/path/to/config" will just insert that literal string into the args given to openvpn
<clever>
while /path/to/config, will copy it into the store, and insert a /nix/store/hash-config into the args of openvpn
jgt has quit [Ping timeout: 252 seconds]
<karetsu>
hmmm, better to hash or keep external
<clever>
mostly your preference
<karetsu>
yeah, i was talking to myself >_<
<karetsu>
thanks clever
<clever>
the best option, would be if you can tell openvpn to load the pw from another file
<gchristensen>
coderobe: hyeah, I can't get this C1 instance you can.
<clever>
and then put the main ovpn file int he store
drakonis has joined #nixos
<clever>
but openvpn may not support that
<karetsu>
clever: it does
<xidica>
openvpn does support a --pass-file argument I'm pretty sure
<coderobe>
gchristensen: huh wat - are you on the correct tab? i hope this is not some legacy thing...
<clever>
karetsu: ah, then youll want to look into the nixos module, and see how to pass that
<gchristensen>
coderobe: I've explored every tab that I can find :)
<pistache>
but you'd need to append the auth-user-pass line to the existing config
<clever>
${builtins.readFile ./foo.ovpn}
<clever>
karetsu: done!
<pistache>
see this ^
<coderobe>
gchristensen: you could try asking support to get a quota for that - i've had them reply within minutes before, so might be worth a shot?
<pistache>
:p
<coderobe>
weird though, is your account new? mine is only from earlier this year, so if it is a legacy thing it must have become legacy quite recently
<gchristensen>
I registered ages ago, but dunno
<karetsu>
thanks all
orivej has joined #nixos
<pistache>
karetsu: if I may, sometimes (often?) the best way to know how to do something with NixOS is to read module's .nix file
<karetsu>
pistache: noted :)
<karetsu>
although that's a poor state of affairs for usability :(
o1lo01ol1o has quit [Ping timeout: 276 seconds]
<pistache>
karetsu: well, to me, "yes and no"
<pistache>
of course it's less readable to a beginner than proper documentation
<pistache>
but Nix code is often very concise, well structured, and as documentation it's always up to date and correct
<evils>
that reading the source is a viable and often the most to the point option, is both an indictment of the documentation, and a testament to the quality of the code
<coderobe>
personally i find the syntax hard to understand and haven't found concise docs for that, either :b
<coderobe>
so i copied an armv7l nixos image to my raspberry pi 2 B 1.1, and a nixos-rebuild is pulling *a lot* of stuff, despite a fairly empty configuration.nix. nixos-rebuild: https://paste.debian.net/plainh/0feeaba2 configuration.nix: https://paste.debian.net/plainh/6b7ac598 - any ideas where all of that is coming from?
<clever>
coderobe: the nixpkgs rev might be different
<coderobe>
hm?
<clever>
if its built from a different version of nixpkgs, it will have to re-fetch/build everything
knupfer has joined #nixos
<coderobe>
right, but why is it building things that it doesn't need right now?
<coderobe>
shouldn't it fetch the things as-needed?
<clever>
coderobe: it probably does need those, because they differ from what you have
<coderobe>
hrm
<coderobe>
welp, that kinda sucks - i was not expecting to have the raspi building @world for the next 3 weeks :P
<srhb>
coderobe: clever isn't implying that it's expected behaviour, just that the (probably wrong) state your nixpkgs and/or image is in causes it to miss the cache for everything.
<srhb>
Presumably the image was built from some rev that actually _does_ have those things cached.
<coderobe>
right, but even if it is all cache misses it confuses me that it is trying to (among other things) pull X libs
<coderobe>
given that my configuration is not setting up anything at all
<srhb>
That's a separate issue though.
<clever>
coderobe: x is enabled by default in some libs
<coderobe>
i would expect it to build the kernel, uboot, sh, etc
<clever>
if you nixos-rebuild --dry-run, what does it print?
<clever>
thats the only real way to see if a binary cache has a given rev or not
Izorkin has joined #nixos
<coderobe>
the tiny problem being that i do not actually have git in this environment to walk nixpkgs
<clever>
coderobe: v6 v7 or aarch64?
<coderobe>
v7
<clever>
[root@amd-nixos:~]# nix-build --dry-run '<nixpkgs>' -A hello --argstr system armv7l-linux
<clever>
this will force it to test against v7, even if you run the test on an x86 machine
dirkx_ has joined #nixos
xidica has left #nixos [#nixos]
<dirkx_>
Is this the right place to ask nix-build questions about how i can test a build against a dependency that is also a local build?
<clever>
dirkx_: yes
MmeQuignon has quit [Ping timeout: 265 seconds]
<dirkx_>
clever: txs -- I have a nix-build against a foo.nix file working well -- and am now trying to create a bar.nix that builds something that needs a lib/include fom foo. I though that i could just put it in buildInputs=[ foo ] -- but suspect that it is not seen as nix-build does just build - and not put it in the right place for other builds to be picked up ?
bdju has quit [Ping timeout: 265 seconds]
<clever>
dirkx_: you need buildInputs = [ (import ./foo.nix) ]; at a bare minimum
<clever>
dirkx_: that will load the other file
<dirkx_>
ah - did not know that that is also an option. So in that case - does it simply suck in the declaration -- or also build the foo.nix ?
<clever>
dirkx_: it will basically just insert the result of parsing the file, and build whatever is missing
<clever>
dirkx_: if you build mod_ca.nix, and then `ls result/include`, is the file right in that dir?
<dirkx_>
double checking - I think it is as the compile line does not include the -I for mod_ca (it does contain the other one of apr, aprutil, openssl, openldap thouh).
<clever>
dirkx_: all buildInputs get added to -I automatically
<betawaffle>
whelp, it totally works
<betawaffle>
too bad apple has spoiled me with their fancy touchpad experience
<betawaffle>
also, really funny note... the accelerometer (used to detect sudden drops, i think) shows up as a joystick in linux
<betawaffle>
so i can see when my table shakes!
<clever>
betawaffle: something ive heard is that the apple touchpad (on some models) is both usb and i2c based
<clever>
betawaffle: when in the bios, it uses usb, but when the os boots up, it switches to i2c
<clever>
betawaffle: also, the i2c pads are in just the right spot to be damaged by water spills, and the os lacks usb drivers :P
<clever>
(for the touchpad)
<betawaffle>
huh. also, it's connected via bluetooth most of the time in macos (in my case)
<betawaffle>
(this is an external one, not on a laptop)
<clever>
ah
<clever>
i'm talking specifically about the laptops
<clever>
spill water in the wrong place, and the mouse will work in the bios, but not the os
<clever>
and it will also work just fine in linux, lol
<betawaffle>
fancy indeed
<betawaffle>
i think when it comes time to replace this 2013 mac pro with something new, i'll *definitely* be installing nix on here and using it as a server
<dirkx_>
clever_: so the include is nicely in result: https://pastebin.com/FPcuPa84 -- but I am not seeing the -I in the compile statement of the 'bar.nix' build that has import foo.nix as its buildInput: https://pastebin.com/mpHjfekD
<coderobe>
hm, either i'm doing something wrong or i can't find any available nixpkgs on arm.cachix.org
<coderobe>
guess i'm giving up on this whole nixos-on-arm thing...
zupo has joined #nixos
<clever>
dirkx_: what do you see when you `ls -l /nix/store/rsbdnyqr5b744hwv444rqjqb1yivahxn-mod_ca/` ?
jgt has quit [Ping timeout: 276 seconds]
<clever>
coderobe: youll have to ask whoever is maintaining that, what rev they are on
<coderobe>
at this point it'd be a better investment of my time to rent 25 buildservers and rebuild the latest revision on my own... lol
<clever>
coderobe: i think it took me ~2 days to build a usable amount of v7 on one or two pi's
<coderobe>
clever: you don't by any chance have some script that i just drop on a bunch of systems and have them build everything for me somehow? :P
<clever>
coderobe: you just need nix-store in $PATH somehow, so you could just install nix onto a bunch of rasbian machines
<clever>
coderobe: and then find the nix binary in the store, and run nix-env -i on that storepath
cosimone has joined #nixos
<clever>
then, i think, source the etc/profile.d/nix.sh in that path
<dirkx_>
clever: yes - that looks good too (the result is a symlink - so I guess it is the same thing) https://pastebin.com/DTPJGpTA
<clever>
dirkx_: thats completely wrong, your headers are not in /nix/store/foo/include, they are in /nix/store/foo/nix/store/foo/include
<vaibhavsagar>
I noticed the other day that jupyter nbextensions no longer seem to work when provisioned with Nix, has anyone else noticed this too? I'm pretty sure it used to work in 19.03
<coderobe>
clever: speaking of cross-compilation, is there anything that prevents the whole deal to just be cross compiled?
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #74715 → environment.noXlibs: do not pull gobject-introspection → https://git.io/Je1wY
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/Je152
<coderobe>
that'd be massively faster and easier than bootstrapping 25 raspis to build nixos once
<coderobe>
if i could just, like, have a threadripper server build the whole thing
<clever>
coderobe: things like llvm currently dont cross-compile
<dirkx_>
so somehow i am building up the install path wrong.
<clever>
dirkx_: destdir says to prefix all paths with $out, including the $INCLUDEDIR
<clever>
dirkx_: drop the destdir and see what happens
<dirkx_>
aye - trying.
<dirkx_>
I am having to fiddle a fair amount under the cover (in apr/apache its Makefile.am --- as it normally uses APXS to get the right places to install includes/modules -- but this obviously points to apache its own private store).
<coderobe>
how do i tell a running nixos system to switch to the latest stable nixpkgs?
gentauro has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @aske opened pull request #74745 → smlnj: 110.91 -> 110.95, add 64-bit support → https://git.io/Je156
gentauro has joined #nixos
<clever>
coderobe: use nix-channel --add as root, to change which channel its following
<dirkx_>
clever: great - I am now getting a whole different class of errors. So that is progress.
<dirkx_>
Thanks a lot !
<coderobe>
clever: if i set the channel to nixos-stable, nixos-rebuild will still attempt to create /nix/store/p5knxwra01c4nkq1m4iz65gbngsfira6-nixos-system-nixos-19.03.git.68aad73.drv
<coderobe>
instead of whathaveyou 19.09
<clever>
coderobe: did you nix-channel --update?
o1lo01ol1o has joined #nixos
boogiewoogie has joined #nixos
magthe has joined #nixos
jgt has joined #nixos
<coderobe>
hm no, doing that now
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knupfer has joined #nixos
bdju has joined #nixos
MmeQuignon has joined #nixos
<dirkx_>
clever: thanks for your help - traced it down to a known bug in automake.
<Nycatelos>
I'm trying to work on a nixpkg locally, building it with "nix-env -f . -iA ghidra"
<Nycatelos>
but the references in .nix-profile (specifically /share) refer to an old build of it
<srhb>
Nycatelos: Did you look at the old profile by accident?
<Nycatelos>
uninstalling the package, then build/installing again doesn't change the contents
<srhb>
Nycatelos: Remember that the symlink has changed.
<clever>
Nycatelos: its better to develop with nix-build, not nix-env
<gchristensen>
coderobe: in short, we couldn't use it under your account, but maybe could do some early testing.
mexisme has quit [Ping timeout: 250 seconds]
<evanjs>
Derp. Mmkay might've just been my shell.nix. Decided to try what `lorri init` gives me but didn't change mkShell to mkDerivation like I've been doing and a few other things
domogled has quit [Ping timeout: 252 seconds]
<evanjs>
I think it was mostly because of how I structured the imports (with import <nixpkgs> {}; vs pkgs = ...), etc. Anyway, lorri issue solved for now it seems
dirkx_ has joined #nixos
<dirkx_>
gchristensen: ok - shame. Will need to puzzle a bit then.
<vaibhavsagar>
dirkx_: why can't you put in a wrong sha256 (e.g. all '0's) and let it correct you with the actual sha256?
<dirkx_>
I've got a fairly long chain - and need to test against trunks and clones of about 9 pckages that all change at the same time. so the checksums change all the time.
<dirkx_>
Or can you enter all 000 and will it then auto populate ? No?
magthe has quit [Quit: WeeChat 2.6]
<vaibhavsagar>
try it with `--keep-going`, then it should report all the failures at once
captn3m0 has quit [Ping timeout: 245 seconds]
<dirkx_>
is there a way to install / refer to something build with 'nix-build' straight from the /nix/store into an nix-env (--install) ?
<dirkx_>
bypassing the honourable thing and hooking it in your fork of all packages.
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @r-ryantm to master « jetty: 9.4.22.v20191022 -> 9.4.24.v20191120 (#74417) »: https://git.io/Je1Fe
andreas303 has quit [Remote host closed the connection]
klimi has joined #nixos
andreas303 has joined #nixos
<klimi>
Hello, i am trying to get back to nixos with home manager but running nixos-rebuild. I get warning that home manager service failed and in the log there is a info about "The user systemd is degraded; Failed to connect to bus: No such file or directory" Any ideas?
<dirkx_>
Hmm - I've got a dynamically loaded engine for openssl -- how does one specify a runtime dependency so that if this engine is installed - openssl is also installed `to plug it into' as a runtime dependency.
xidica has joined #nixos
xidica has left #nixos [#nixos]
xidica has joined #nixos
<Nycatelos>
I've trying to update the nixpkg for ghidra from 9.04 to 9.1. That's easy enough and I've done it, but I've also added a desktop file. Because the ghidra icon file is a .ico, which freedesktop doesn't like, I need to extract the PNGs from it.
<dirkx_>
the buildInputs work splendidly -- what i mean is the much smaller runtime set.
<Nycatelos>
I have it working, but the result is kinda cursed https://0x0.st/zlo2.nix . Is it worth bothering trying to submit a PR for that, or should I just bother with a plain update.
<dirkx_>
hmm - that is odd - modules for apache, such as mod_dnssd - do not seem to pull in (in this case apache httpd) as a run time dependency either on install. Is that intentional ?
<dirkx_>
is there a good example of a recipe that does this - that enforces its binary dependencies when black magic through the linker cannot guess it ?
knupfer has quit [Ping timeout: 250 seconds]
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
ddellacosta has joined #nixos
<dirkx_>
OR is the idea that OpenSSL and Apache-httpd get a set of option flags - and they then pull in their engines/modules ? Much like PAM does.
argent0 has quit [Ping timeout: 268 seconds]
<avn>
dirkx_: something like apacheWithModules should be somewhere around
<dirkx_>
so it is that way round. A module cannot insist on apache (or an SSL hardware crytpo engine cannot 'ask' for openssl as its runtime dependency) ?
<xidica>
Is there a good way to get custom CA certificates into firefox on nixOS? I have already setup my security.pki.certificates and as such my ca-certificates.crt/ca-bundle.crt are correct, but firefox doesn't respect it
Luflosi has joined #nixos
lord| has quit [Read error: Connection reset by peer]
<dirkx_>
avn: that would mean though that every new module for apache or engine for openssl - would require work on apacheWithModules too.
is_null has quit [Ping timeout: 265 seconds]
is_null has joined #nixos
lord| has joined #nixos
gxt has quit [Quit: WeeChat 2.6]
<avn>
dirkx_: can you tell us, what you try to implement?
jgeerds has joined #nixos
philr has joined #nixos
symphorien has quit [Quit: WeeChat 2.6]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
selfsymmetric-pa has quit [Remote host closed the connection]
justanotheruser has quit [Ping timeout: 250 seconds]
cosimone has quit [Remote host closed the connection]
<m1cr0man>
Hi folks. I am trying to build chronograf (in particular its javascript yarn based frontend) for my server. I actually have my own implementation before I saw the PR. I was hopeing that someone could confirm that, the best way to do this would be add all the dependencies to the node-packages-$vers.json for nixpkgs, then build the project like it's a regular node package. This is based on the fact yarn2nix
cosimone has joined #nixos
<m1cr0man>
doesn't work on hydra
cosimone has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @thoughtpolice pushed commit from @r-ryantm to staging « libseccomp: 2.4.1 -> 2.4.2 »: https://git.io/Je1Ng
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
WilliButz has quit [Quit: WeeChat 2.6]
ng0 has quit [Quit: Alexa, when is the end of world?]
<tune>
I got a build failure for irrlicht or minetest or maybe both with home-manager. Not sure if it pulls from the same place or if this would be a problem reported elsewhere.