<LnL>
the ofborg builders have a pretty conservative timeout :)
<kerrhau>
ottidmes: alright, I tried it and it seems to be working
digitus has quit [Quit: digitus]
<ottidmes>
kerrhau: Great to hear! :) Don't forget to still add it to environment.systemPackages, the overlay just defines the package, you still have to include it in the systemPackages to make it become part of your system environment
<kerrhau>
yeah
<kerrhau>
now, could I do services.xserver.windowManager.dwm_local.enable = true;?
<ottidmes>
kerrhau: No, it does not work like that, the service is not bound to the package, the service determines the packages, but if you overwrite the dwm package, which is being used by services.xserver.windowManager.dwm, it will be used instead, so just use dwm = super.dwm.overrideAttrs ... in your overlay
<ottidmes>
kerrhau: It just references to pkgs.dwm directly, so by overwriting dwm with an overlay, yours will be used
acarrico has joined #nixos
<alhariel>
my network configuration is the minimal required, and ive seen this recommended to resolve an issue im having with github where the pages wont load any resources, just text
<alhariel>
the command works, still no luck with github tho.. it only shows the text if i cancel loading the page, otherwise its blank and the status line says 'waiting for assets-cdn.github.com' :/
Ridout has joined #nixos
<ottidmes>
alhariel: do you run dnsmasq, if so try restarting that as well
<alhariel>
nope
<ottidmes>
alhariel: This then? nscd -i hosts
<alhariel>
nope :/ already cleared cache and cookies and whatnot
<ottidmes>
alhariel: Try changing your resolv.conf to something like 8.8.8.8
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
<alhariel>
theres a second line 'options edns0', do i keep that?
fl3 has quit [Ping timeout: 240 seconds]
<ottidmes>
alhariel: I have it too, not sure what it does, shouldnt hurt I guess
<alhariel>
k fingers crossed
<alhariel>
ugh
<ottidmes>
alhariel: its apparantly and extension to allow custom buffer sizes, but its old and should be supported by all nameservers nowadays
<zybell_>
last time I had to kick resolving the command was "sudo resolvconf -u".
maximiliantagher has quit [Ping timeout: 264 seconds]
<ottidmes>
zybell_: Good call, I remember having to do so as well, but recently all my changes to resolv.conf did not require this, not sure whats up with that
<alhariel>
no luck
<alhariel>
maybe its a temporary thing
<alhariel>
hopefully
Sonarpulse has quit [Ping timeout: 240 seconds]
<ottidmes>
alhariel: What does pinging: assets-cdn.github.com give you
<alhariel>
appears to be working
maximiliantagher has joined #nixos
<ottidmes>
alhariel: So maybe it is unrelated to your DNS?
<ottidmes>
alhariel: Did you try a different browser?
<alhariel>
yup, same thing on both firefox and chrome
<ottidmes>
alhariel: And works fine on other machines? So its not a router issue?
<alhariel>
hm let me check
<zybell_>
is there a prog httping or so?
<alhariel>
hm?
<zybell_>
Fires a HEAD at a server
<alhariel>
im afraid i still dont understand what youre trying to say
<alhariel>
sorry im pretty unkowledgeable with regards to networking
<alhariel>
or anything else really
<zybell_>
ping is ICMP = OS level if httpd is down no luck
<ottidmes>
alhariel: rule nr. 1 in solving IT stuff, eh? "Did you try turning it off and on again?" :P Although normally you should not have to in Linux, still sometimes it does the trick
<alhariel>
hehe
ennui has quit [Ping timeout: 264 seconds]
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
<elvishjerricco>
Is it not possible to deploy to EC2 an arbitrary non-NixOS AMI with NixOps? Obviously you can't expect to provision software on these instances, but it's important if you already have a bunch of AMIs you want to deploy
<alhariel>
so shoudl i switch back that resolv.conf thing?
Acou_Bass has joined #nixos
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
<ottidmes>
alhariel: Yeah, but isn't it already reset? If not, a nixos-rebuild switch should put it back again
<alhariel>
oh i see
aarvar has quit [Ping timeout: 240 seconds]
<zybell_>
that resolv.conf thing has noihing to do with it.
coconnor has quit [Ping timeout: 240 seconds]
<alhariel>
what would i have to do if it did solve the issue and i wanted the changes to persist a nixos-rebuild?
maximiliantagher has quit [Ping timeout: 264 seconds]
<alhariel>
i see
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zybell_>
I admit I edit resolv.conf although I KNOW that it doesn't help, but only because I know that the special app I use to do it kicks the dns all over the places when it writes the resolv.conf.
gillmanash has joined #nixos
<ottidmes>
zybell_: I hate to admit that I often have no clue what is going on with networks. Often enough I cannot figure out the logic behind it, so I am guilty of cargo culting, just trying out stuff that sometimes helps, even though it might be totally unrelated, but so far it works for me, so... I guess I will never learn
s2mitrov has joined #nixos
<alhariel>
i second that lol
kerrhau has quit [Ping timeout: 276 seconds]
<s2mitrov>
anyone got a nixos/dotfile repo or gist i can check out for some guidance on how to get mpd + ncmpcpp working?
<zybell_>
And I sometimes fail to understad what others find so hard.
<alhariel>
s2mitrov: if you figure it out let me know hehe
<s2mitrov>
ncmpcpp launches and connects, but it won't let me browse my music directory and tapping the browse view keybinding gives me a "for browsing local filesystem, connection to MPD bia UNIX socket is required" error, even though I've got a socket specified in both my configuration.nix and mpd.conf
<s2mitrov>
alhariel: will do haha
<ottidmes>
zybell_: How would you then figure out why your desktop has random network drops, and somehow pinging your gateway solves it, enabling networkmanager seems the only way to fix it for me (I have no drops, no need to ping)
<alhariel>
so when i do 'PATH = foo' on the arg to mkDerivation it sets PATH to foo right? but what i want to append to PATH?
<alhariel>
what if*
<ottidmes>
alhariel: you would use something like preConfigure and do that like you would in bash there
<alhariel>
s2mitrov: for me it appered to work fine except for one crucial part: no audio output lol
<zybell_>
Thats why I run IRC. The Router can sleep when its dead.
<s2mitrov>
alhariel: https://i.imgur.com/sCmffOL.png i don't know how idiomatic it is, but i've got this atm, can just keep adding more PATH=$PATH:... lines
coconnor has joined #nixos
<ottidmes>
time to get some sleep, good night!
<alhariel>
laters
<alhariel>
i see, thanks s2mitrov
paraseba has quit [Ping timeout: 256 seconds]
<zybell_>
the correct syntax for PATH append PATH=$PATH${PATH:+:}$foo
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vx8BH
<{^_^}>
→ 6eeb06f1 by @ryantm: gmic: 1.7.9 -> 2.2.0
<{^_^}>
→ 12d79ca0 by @matthewbauer: Merge pull request #36550 from ryantm/auto-update/gmic
<s2mitrov>
alhariel: where's your mpd config under? i've got it under systemd.user.services, but i'm seeing a bunch of config files and stuff where it's just under services
ryanartecona has joined #nixos
<s2mitrov>
i feel like maybe it has something to do with that
<drtenna>
no i dont think so sorry
<drtenna>
reboot your system
<drtenna>
plug out cable
<drtenna>
wait 10 seconds
<drtenna>
get well soon
<alhariel>
i dont have the mpd stuff in my configuration.nix anymore sorry
<drtenna>
follow steps above
<alhariel>
s2mitrov: ^
<drtenna>
get well soon
xcmw has joined #nixos
flugsio has quit [Ping timeout: 252 seconds]
Lisanna has joined #nixos
<Lisanna>
hey, just pinging to see if there's anyone online who might be able to help me figure out why one of my derivations is becoming corrupted every time it builds
jluttine has quit [Ping timeout: 276 seconds]
<s2mitrov>
yeah, switching it to just services got it working
<s2mitrov>
fuck if i know why
silver has quit [Read error: Connection reset by peer]
<zybell_>
how do you start mpd? As user -> userconf, as sys->sysconf
spear2 has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #37012 → Make "localizations" sane again → https://git.io/vxIEF
<{^_^}>
[nixpkgs] @matthewbauer pushed 16 commits to staging: https://git.io/vx8RR
<{^_^}>
→ 223a77c3 by @matthewbauer: libiconvOrNull: deprecate
<alhariel>
s2mitrov: could you post your config?
<{^_^}>
→ 90c132c7 by @matthewbauer: gettext: add -lintl to setup-hook
<{^_^}>
→ 9e75fb5e by @matthewbauer: libiconv: add setup-hook
<s2mitrov>
zybell_: i have no clue at this point why/how this works tbh
<s2mitrov>
mpd was starting fine, if i asked systemctl about it i'd get the correct port and all and ncmpcpp would connect but it wouldnt' show anything in my music directory
<drtenna>
please dont paste malicious code in here thanks
<gchristensen>
drtenna: who did?
<drtenna>
s2mitrov
Fare has joined #nixos
<drtenna>
next time is kick and red card is ban
<adisbladis[m]>
gchristensen: I was wondering about the rabbitmq setup that ofborg uses. What events are published and where can I subscribe to them?
<gchristensen>
drtenna: I don't see it
<gchristensen>
drtenna: where is it?
<drtenna>
gchristensen: please open your eyes and dont waste my time THX
<gchristensen>
I'm just confused, because I'm not sure anyone else has +o'd in #nixos in a long time, don't seee the malicious code, and would also like to keep it out of #nixos.
<adisbladis[m]>
drtenna: It's a legitimate question (I also didn't see any malicous code).
<s2mitrov>
gchristensen: you should probably /ignore him, he's just here to troll
<alhariel>
gchristensen: hes a troll
<gchristensen>
oh
drtenna was banned on #nixos by gchristensen [*!6d5aa679@*]
<alhariel>
bai :)
drtenna was kicked from #nixos by gchristensen [drtenna]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<s2mitrov>
gchristensen: would you happen to know what the dealy is with service vs. systemd.user.service?
<clever>
s2mitrov: systemd.service and systemd.user.service is to define systemd services, either globally or per-user
<clever>
s2mitrov: and services. is to configure modules, that will probably set one of the previous 2
<zybell_>
gchristensen: ignore drtenna, its a trollbot
<gchristensen>
indeed...
<s2mitrov>
clever: is it better practice to specifically use one of the systemd option/scopes?
<clever>
s2mitrov: depends on if your defining your own service or not
rosa has quit [Quit: rosa]
abathur has joined #nixos
<zybell_>
gchristensen: but he came through webchat. Hope you didn't ban the whole webchat system.
<gchristensen>
zybell_: just their IP
<clever>
zybell_: the webchat always uses his real ip in the ident field
<zybell_>
good
Arcaelyx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jluttine has joined #nixos
<tnks>
I see that all the dependencies of a "nix run" seem to be protected from garbage collection, not sure where the references keeping them alive are.
<clever>
tnks: all environment variables are roots
<clever>
since they are in $PATH, they are "in use"
<tnks>
clever: oh cool!
<tnks>
clever: wait, a little confused, because I'm calling the garbage collection from another terminal.
<tnks>
what's the algorithm exactly?
<clever>
it uses /proc/PID/environ to peek into the env of every process on the machine
<clever>
and /proc/PID/fd to check the open files in every process
<clever>
and /proc/PID/maps for the mapped files
<clever>
and /proc/PID/cwd for the working directory!
<clever>
proc has a lot of magic in it
<tnks>
clever: okay, so I'm playing a lot of games if calling Nix from a Docker container with a mounted /nix volume.
sirkha has quit [Remote host closed the connection]
<tnks>
probably breaks that.
<clever>
the processes from the docker container are still visible
drakonis has joined #nixos
<clever>
just with different PID's
<clever>
the roots in /tmp that nix-shell/nix-build generate are more likely to break
<clever>
it should be safe to use the stuff in the store from inside docker
<clever>
but the nix tools themselves may break some
<tnks>
the profiles keep some of the important roots alive.
<clever>
zybell_: looks like nix doesnt directly check for things like chroots
<alhariel>
s2mitrov: copied your config, still same issue, appears to be working but no sound :/
<clever>
zybell_: and if a guest has its own store, and is using path A, the host probably wont let you GC the host copy of A
<zybell_>
looked into src, no sign of root, guest has to ref path A vm opens on host open fd->protected
<tnks>
clever: yeah, I just verified that a nix-collect-garbage done in another container with the same mounted volume removes a binary a running "nix run" in another container may be depending on.
<tnks>
In a way, I can deal with it, because I'm not running garbage collection much at all, and it can be documented... the running "nix run" breaks... so just rerun it and get the dependencies again.
<zybell_>
Did you know that you can symlink to a file through an open fd on a dir, the link works in all procs that have that dir open, in others its dead.
<s2mitrov>
alhariel: do you have pulse audio setup?
<s2mitrov>
i'm running in a vm so i don't have it included in my config, but i'm guessing you'll want to change type to pulse and write a service.hardware.pulseaudio config
mbrgm has joined #nixos
<Lisanna>
...and --to file:// works fine when nix copy is run in runInLinuxVM :|
<s2mitrov>
clever: what do you mean by defining my own service?
<s2mitrov>
like if i'm writing a systemd thing myself? or just whether or not there are other users on the machine or something
<zybell_>
foldingcookie: In cloud deployment its easy to deploy stateless vms, called so because they work if started right out of box. Stateful cloud machines have to be prepared before they can integrate into the cloud.
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
markus1189 has joined #nixos
Supersonic112 is now known as Supersonic
<zybell_>
That goodie makes machines possible that can hold state, but leave or enter the cloud without preparation.
<foldingcookie>
that's true
<zybell_>
That is the holy grail of cloud management.
n0qqe has joined #nixos
markus1199 has quit [Ping timeout: 265 seconds]
noqqe has quit [Ping timeout: 246 seconds]
n0qqe is now known as noqqe
jluttine has joined #nixos
fl3 has joined #nixos
<Lisanna>
...can't pass a custom ./src to src of Nix's builder... omg
rosa has joined #nixos
fl3 has quit [Ping timeout: 264 seconds]
freeman42x]NixOS has joined #nixos
<nikivi>
I read that nix on mac does not have binary caches, is that correct?
<nikivi>
So you need to compile everything from source on mac
<dhess>
That is incorrect.
fl3 has joined #nixos
benny has quit [Ping timeout: 276 seconds]
<Shados>
I've spent a while looking, but am I correct that there is no way to add or replace root-owned dummy files inside sandboxed build environments (e.g. /etc/passwd) on a per-package basis?
freeman42x]NixOS has quit [Ping timeout: 264 seconds]
benny has joined #nixos
rosa has quit [Quit: rosa]
jrolfs has quit [Ping timeout: 256 seconds]
fl3 has quit [Ping timeout: 240 seconds]
marusich has joined #nixos
nuncanada has quit [Read error: Connection reset by peer]
<ryantm>
Or a better question, is how do we handle cases where attrpaths need to be renamed? For example, when they use an unconventional version representation.
<coconnor>
broken might be the closest.
<coconnor>
ah
<coconnor>
does the "name" attribute need to be changed?
<coconnor>
or the name of the attribute? THere is a aliasing standard for attribute names
<coconnor>
not sure about "name" changes tho
<coconnor>
that was a horrible explanation but check out nixpkgs/pkgs/top-level/aliases.nix
<coconnor>
btw. no. I did not know a solution to your question about ami
<coconnor>
did you figure one out?
<robstr>
no, it was quite late yesterday. I created a small issue
<robstr>
What i dont get right now, wich channel does nixops use ?
<abathur>
hmm
thefloweringash has quit [Ping timeout: 246 seconds]
<coconnor>
not sure what the default is. I'm careful to set NIX_PATH for projects specifically to a known checkout
<coconnor>
highly recommend that practice
<kaychaks>
I am behind a intercepting proxy and my `nix-channel --update` command is failing with error `SSL peer certificate or SSH remote key was not OK (51)`
<kaychaks>
prior to nix 2 it used to ack curl settings (--insecure)
<robstr>
coconnor: who, this makes sense, I run into the issue that first time ghc-mod was working perfect on the stable channel, 1w later i updated it and it wont start... How can this happen ? Shouldn't a channel be freezed for old things ?
<kaychaks>
but with nix 2 `.curlrc` settings are not accepted. Is there some other way to let nix not worry about SSL verification
<abathur>
has anyone successfully compiled something that depends on mysql/mariadb?
sellout-1 has joined #nixos
sellout- has quit [Read error: Connection reset by peer]
<fearlessKim[m]>
how can I use "or" keyword" in nix. I am trying in a string '' ${account ? signatureFilename or ""} '' (signatureFilename can be null)
<abathur>
fearlessKim haven't really started learning nix expression language in earnest yet, but why 'or' keyword instead of ||?
<fearlessKim[m]>
|| will return a bool I believe while or will return the value
<fearlessKim[m]>
abathur it's used in pkgs/os-specific/linux/kernel/generic.nix
<abathur>
hmm
<abathur>
maybe just parens for order of operations?
<{^_^}>
[nixpkgs] @peterhoeg pushed to master « ksystemlog: init at 17.12.2 »: https://git.io/vx8oX
Lisanna has joined #nixos
roconnor has quit [Remote host closed the connection]
roconnor has joined #nixos
boomshroom has quit [Quit: WeeChat 2.0]
jrolfs has joined #nixos
pie_ has quit [Read error: Connection reset by peer]
pie_ has joined #nixos
jrolfs has quit [Ping timeout: 240 seconds]
asuryawanshi has joined #nixos
roconnor has quit [Ping timeout: 264 seconds]
roconnor has joined #nixos
rauno has quit [Ping timeout: 260 seconds]
jrolfs has joined #nixos
reinzelmann has joined #nixos
hyper_ch2 has joined #nixos
<fearlessKim[m]>
dtz: thanks for the link, in fact account.signatureFilename always exists, it's just that sometimes it's null, I guess I will have to do the full if accout.signatureFilename != null then account.signatureFilename else ""
<{^_^}>
→ 7b6cdb55 by @ryantm: librsync: 2.0.1 -> 2.0.2
<{^_^}>
→ 0efd1287 by @adisbladis: Merge pull request #37667 from ryantm/auto-update/librsync
blankhart has quit [Ping timeout: 276 seconds]
jluttine has quit [Ping timeout: 260 seconds]
mounty_ has quit [Ping timeout: 240 seconds]
zzamboni has joined #nixos
reinzelmann has quit [Quit: Leaving]
reinzelmann has joined #nixos
zzamboni has quit [Read error: Connection reset by peer]
zzamboni1 has joined #nixos
mounty has quit [Quit: Konversation terminated!]
<goodwill>
is the only way to set priority in configuration.nix via packageOverrides
alex`` has joined #nixos
<goodwill>
for the systemPackages
hotfuzz_ has joined #nixos
jluttine has joined #nixos
hotfuzz has quit [Ping timeout: 240 seconds]
asuryawanshi has quit [Remote host closed the connection]
ma27 has quit [Ping timeout: 240 seconds]
pie_ has quit [Ping timeout: 240 seconds]
xAFFE has joined #nixos
periklis has joined #nixos
mounty has joined #nixos
asuryawanshi has joined #nixos
Lears has joined #nixos
zzamboni1 has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @Mic92 pushed to master « vis: patch shebang to use system bash »: https://git.io/vx8XM
<{^_^}>
[nixpkgs] @Mic92 pushed to release-18.03 « vis: patch shebang to use system bash »: https://git.io/vx8X9
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
rauno has joined #nixos
maximiliantagher has quit [Ping timeout: 268 seconds]
d0nkey has joined #nixos
periklis has quit [Ping timeout: 240 seconds]
chrisbarrett has joined #nixos
jeeger has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @dtzWill opened pull request #37688 → gettext: don't add -lintl on musl, either → https://git.io/vx818
<jeeger>
Greetings! I'm wondering whether I could use nixos/nix to build images for raspberry pis. All i've seen so far is live CDs, I'd like to create a bootable SD card image on a (x86) host machine. Is this possible?
asuryawanshi has joined #nixos
roconnor has quit [Remote host closed the connection]
<jeeger>
aminechikhaoui: Raspi 3 is officially supported (AArch64). I'm wondering about the *bootable image building* part.
<aminechikhaoui>
Dezgeg is the one that knows better I think, not sure which expressions are used to build the images
chrisbarrett has quit [Quit: chrisbarrett]
<lvmond_>
how do i see which python packages there are available?
<lvmond_>
i dont suppose nixos.org lists all those
<{^_^}>
[nixpkgs] @adisbladis pushed to master « modemmanager: Add glib to buildInputs »: https://git.io/vx81y
<aminechikhaoui>
lvmond_: you could use 'nix repl <nixpkgs>' and play with auto completion of pkgs.pythonPackages.
Tucky has joined #nixos
<jeeger>
aminechikhaoui: Thanks! if I understand nix correctly, what I'd need is the Nix configuration file that's used for generating the SD card images. I modify it and get custom Raspi images.
<lvmond_>
is there a comprehensive search tool for all derivations?
<aminechikhaoui>
nix search on Nix 2.0
<lvmond_>
i find it difficult to find a specific derivation in github
<symphorien>
There is nix-index/nix-locate
Izorkin_ has joined #nixos
coconnor has quit [Ping timeout: 264 seconds]
zzamboni has joined #nixos
jrolfs has quit [Ping timeout: 248 seconds]
Izorkin has quit [Ping timeout: 246 seconds]
<lvmond_>
aminechikhaoui: that repl trick seemed useful, thanks!
<lvmond_>
i have tried upgrading to nix 2.0 by adding nixUnstable to my config but still `nix --version shows 1.12pre...`
<aminechikhaoui>
lvmond_: how did you add nixUnstable ?
<lvmond_>
i want the fancy loading bar for when i'm installing new stuff ;_;
<aminechikhaoui>
the right way is to set the option nix.package = pkgs.nixUnstable
ThatDocsLady has joined #nixos
<lvmond_>
i'm on a mac and i have a .config/nixpkgs/config.nix and there i have a packageOverrides
<lvmond_>
as instructed in the manual
<lvmond_>
how can i set that when not using nixos?
<aminechikhaoui>
oh no idea what's the right way to do that on darwin :)
<lvmond_>
darn
<aminechikhaoui>
I could think of how to do it manually by upgrading the daemon launchd config file ? and then updating the UI using nix-env maybe
<aminechikhaoui>
or if your launchd config file has the path depending on the current profile just nix-env then restart of the daemon should probably work
<aminechikhaoui>
but you should not listen to me as I know little about nix on Darwin :D
thblt has joined #nixos
<sphalerite>
jeeger: the expressions are in nixpkgs
<mpickering>
and also https://github.com/NixOS/nixpkgs/pull/37326 could be tested by building the attribute openorienteering-mapper if someone could please trigger a CI build?
<LnL>
don't think so, but since you fixed it on darwin we should test that :)
<mpickering>
I could test tonight. The build takes an annoying about of time though :(
<LnL>
more then an hour?
robstr has quit [Ping timeout: 240 seconds]
robstr_ has joined #nixos
<aminechikhaoui>
robstr_: which expression are using ? also which nixpkgs version
abbradar has quit [Remote host closed the connection]
<typetetris>
How are locales handled in nix? (`nix-env --query -R $(which tmux)` doesn't show glibc-locales, but If I call it with a wrong setting of `LANG` it refuses to start.)
<{^_^}>
[nixpkgs] @Profpatsch pushed to generators-codeowners « CODEOWNERS: Add Profpatsch to /lib/generators.nix »: https://git.io/vx8bd
<{^_^}>
[nixpkgs] @Profpatsch opened pull request #37694 → CODEOWNERS: Add Profpatsch to /lib/generators.nix → https://git.io/vx8bF
xAFFE has left #nixos [#nixos]
xAFFE has joined #nixos
Guest98961 has quit [Changing host]
Guest98961 has joined #nixos
Guest98961 is now known as TweyII
__Sander__ has joined #nixos
<TweyII>
LnL: Nope
<TweyII>
LnL: nix-store -q --referrers $(nix-instantiate -A texlive) ?
mquin has quit [Read error: Connection reset by peer]
humanoyd has joined #nixos
<typetetris>
For all packages, which model manpages with a separate ouput thingy (forgot the terminology), they are not placed in my user environment by nix-env, even if I do something like `nix-env -iA tmux.man` :( Is there a reason for this?
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
<Lisanna>
ugh... nix-daemon causing cpu lockups + can't boot any generation other than the first generation is a really sucky combo ):
rardiol1 has joined #nixos
abbradar has joined #nixos
coot has quit [Quit: coot]
screamin_jimmy has joined #nixos
jensens has quit [Ping timeout: 248 seconds]
<screamin_jimmy>
anybody home ?
humanoyd has quit [Ping timeout: 246 seconds]
humanoyd has joined #nixos
pie_ has joined #nixos
<lejonet>
screamin_jimmy: We're always at 127.0.0.1 :)
ottidmes has joined #nixos
<screamin_jimmy>
:)
<screamin_jimmy>
warning: I'm just a user
<screamin_jimmy>
buuuut .... how does one edit config files for various programs ?
<screamin_jimmy>
Yes, read the manual but ....
<ottidmes>
screamin_jimmy: You need to configure your configuration.nix file to include the relevant options for those programs: https://nixos.org/nixos/options.html
<screamin_jimmy>
that's what I read. Hoever, in practice ... for instance, bftpd
<ottidmes>
screamin_jimmy: If you mean dotfiles, then this is not included in NixOS, but there are various projects that make it possible to configure it like NixOS, like home-manager: https://github.com/rycee/home-manager
<screamin_jimmy>
there is nothing on the options page relevant (that I could find)
<screamin_jimmy>
no, I mean bftpd_config
<screamin_jimmy>
or in the case of squid, services.squid.configText is supposed to read a file. but it doesn't
<screamin_jimmy>
I can find the generated config files but they cannot be written, as it's a read-only file system
<ottidmes>
screamin_jimmy: It seems there is no corresponding service for bftpd yet, so you would have to either create one yourself, or it that is too difficult at this point, you could also create the relevant file in /etc directly in your configuration.nix by environment.etc."bftpd/config" = '' ... ''; (not sure what the file location has to be)
ThatDocsLady_ has joined #nixos
<screamin_jimmy>
hmm. I can try that :) but that is supposed to work with squid, yet I have not been able to make the rebuild read that file
<ottidmes>
screamin_jimmy: It states "Verbatim contents of squid.conf", so it is not supposed to read a file, you are supposed to give it the contents of the file directly in the form of a string. You could include a file if you want via: lib.fileContents /path/to/file
<screamin_jimmy>
Using a full pathname like /opt/suid/squid.conf
<screamin_jimmy>
oh. So take the configuration file and make it into a single long string ?
troydm has quit [Ping timeout: 240 seconds]
<ottidmes>
screamin_jimmy: Not a single long string, or yes, depends on what you mean, you have newlines :P but yeah, one big string
ThatDocsLady has quit [Ping timeout: 276 seconds]
<screamin_jimmy>
Okay, but rather than ebing a separate file, it needs to go into configuration.nix itself ?
<screamin_jimmy>
between " and "
<ottidmes>
screamin_jimmy: NixOS does not follow FHS, e.g. the is no /opt op my system, and it will be ignored by all programs by default, since all programs are patched to only look in /bin /lib /etc and /share
<{^_^}>
→ 01f37880 by @ttuegel: wrapFirefox: update icon location
<{^_^}>
→ 6ca55776 by @ttuegel: Merge pull request #37636 from ttuegel/bugfix/firefox/icons
<screamin_jimmy>
oh right. I knew that ... sort of (where's that embarrassed icon ?)
<mpickering>
LnL: Yes more than an hour.
<ottidmes>
screamin_jimmy: Everything needs to go in your configuration (otherwise it would not be a complete enough description of your system)
<screamin_jimmy>
I understand that in principle but it seemed like putting configuration files somewhere that the build process could access would be cleaner than a huge configuration.nix ...
<ottidmes>
screamin_jimmy: But like I said, you can put things in other files and embed them via lib.fileContents (which trims the last newline, if present) or builtins.readFile
<ottidmes>
screamin_jimmy: Yeah, that is what you do in practice, but they are still all referenced or included in you configuration at some point or another
<ij>
I enabled avahi and services.avahi.nssmdns = true; and even though I can see the other localhost machine in avahi-browse, I can't resolve it with, say, "ssh othermachine.local". Should I be able? Am I doing it wrong?
<screamin_jimmy>
so telling configuration.nix that bftpd/config = onelongstringyfileofbftpdsettings will cause the build to use that to configure bftpd ?
<screamin_jimmy>
this oughta keep me busy for a while :p
troydm has joined #nixos
<ottidmes>
screamin_jimmy: yeah, if /etc/bftpd/config is a location that bftpd accepts (I just made that file up), but again, to be clear you can do thing like: ''\n... stuff ...\n${lib.fileContents /stuff/from/file}\n... other stuf ...\n''
<screamin_jimmy>
I will try the easier way first :) Kind of curious - do people use some of these packages ? This is probaly the first thing you'd have to do with an ftp server but I was not successful in finding any info on that :(
<ottidmes>
screamin_jimmy: Since it has been packaged, there is at least one user that was willing to do so, so there is (or was) at least one user. If it was more popular I would have expected a corresponding service file, no matter how small, to exist by now, so it is probably not that popular
tos9 has joined #nixos
<tos9>
Hi. How do I get a linkable openssl out of nix (non nixos)?
<screamin_jimmy>
it is on slow larry (sigh) :( Maybe I betetr get the basic program running the way I like first, but thanks for the linkn :)
* tos9
reads the doc page though
<symphorien>
ok there is no /bin/true but you get the idea
knupfer has joined #nixos
<ottidmes>
ij: From what I could see on the Arch wiki and by checking what NixOS does, it should work
az` has joined #nixos
<sphalerite>
tos9: that's for software to discover plugins and such at runtime
xcmw has joined #nixos
<tos9>
sphalerite: yeah so if I want to dynamically link openssl why is that different?
<ij>
ottidmes, Yeah, I also figured so, but it doesn't. :(
<tos9>
(I'm sure I get the underlying reasoning by the way -- I'm all for the approach obviously, just trying to figure out how to not have to learn even more nix config, which is not particularly easy)
<ij>
ottidmes, Do you know the difference between .domain and .workstations?
az` has quit [Ping timeout: 268 seconds]
nick_l has joined #nixos
<ottidmes>
ij: According to the manual .domain is the domain name reported by the machine, and .workstation seems to be what is used on some Mac systems, so it probably allows you to see systems using Bonjour, but this is speculation on my part
<nick_l>
Given that nixops ssh venus works, how do I use plain ssh to ssh into venus?
reinzelmann has quit [Quit: Leaving]
<nick_l>
The end goal is that I can run something like: ssh remote-host "tcpdump -s0 -w - 'port 8080'" | wireshark -k -i -
<srhb>
nick_l: The easiest way is to provision your user/ssh key using nixops, and then just ssh venus
<sphalerite>
nick_l: what do you mean?
<srhb>
nick_l: nixops generates its own root key and sshs as root
<ij>
ottidmes, I restarted the dns cache and it seems like services.avahi.publish.addresses = true is all that I need.
<ij>
Maybe these IRC logs will help someone some day. :)
<nick_l>
srhb: shouldn't venus be in /etc/hosts of the computer running nixops then?
<srhb>
nick_l: Oh sorry, I misunderstood.
<nick_l>
srhb: It's not clear to me how ssh would know where venus is.
<srhb>
nick_l: deployment.targetHost
<sphalerite>
ooooh
<ottidmes>
ij: Indeed, that is why I always supply the answer, even though it is to myself :) the IRC logs have helped me out plenty of times
<nick_l>
srhb: what does that do?
<srhb>
nick_l: That's the attribute nixops uses to find the hostname, iirc.
<srhb>
It doesn't _actually_ call ssh venus
<srhb>
Not that I know, at least :)
<nick_l>
srhb: but I am interested in *ssh* to find venus.
<nick_l>
Also, there is no way to run a single command unless you use --include via nixops.
<ottidmes>
nick_l: So if you want to use regular SSH, why not copy the private key out of nixops, via `nixops export --deployment <name>`, and just supply that key via ssh?
<sphalerite>
nick_l: surely there is? `nixops ssh [username@]machine [command [args...]]`
<sphalerite>
(from the manpage)
kreisys has joined #nixos
<nick_l>
sphalerite: the manpage might document a feature, but it doesn't work. nixops ssh venus ls does not return a directory listing.
<sphalerite>
nice
<nick_l>
sphalerite: or, actually it does.
<nick_l>
sphalerite: it's just that it was an *empty* directory.
<nick_l>
omfg
<sphalerite>
haha
fl3 has joined #nixos
fl3 has quit [Remote host closed the connection]
ryanartecona has joined #nixos
jrolfs has joined #nixos
jrolfs has quit [Ping timeout: 240 seconds]
jrolfs has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nh2 has joined #nixos
ma27 has quit [Ping timeout: 256 seconds]
ma27 has joined #nixos
<robstr_>
I haven't figured out a way to resolve my `nixops` issue with aws, it's complaining `no ami defined for ec2 machine` https://github.com/NixOS/nixops/issues/910 can someone help here ? :-/ ?
<nick_l>
robstr_: deployment.ec2.ami = ami; # add this
<nick_l>
robstr_: where ami has a valid string value.
<robstr_>
nick_l: ok but shouldnt this be specified by the region ? why do I need to specify this myselfe, each document / example I found doesnt mention this variable
<nick_l>
robstr_: you can run thousands (millions?) of AMIs.
<nick_l>
robstr_: a default value could take the image for a given release, I suppose.
<nick_l>
robstr_: perhaps it already does that, but I override it anyway. I don't want stuff to change without me knowing about it.
<robstr_>
nick_l: isnt this ami a nixos specific one ? I mean it makes sense for defining a _channel_
<nick_l>
robstr_: you can still build your own NixOS based AMIs.
<aminechikhaoui>
in <nixpkgs/nixos/modules/virtualisation/ec2-amis.nix>
<nick_l>
aminechikhaoui: is there am 18.03 ami already?
<robstr_>
aminechikhaoui:17.9
<robstr_>
nick_l: yea what you say makes sense, for nixX beginner it would be easier to find this documented
<nick_l>
robstr_: I am also a beginner.
<nick_l>
robstr_: I would also like more documentation.
martingale has joined #nixos
<robstr_>
nick_l: then you are cleverer then me :P
pbogdan has joined #nixos
<aminechikhaoui>
robstr_: does this happen with a recent instance type different than m1.small
pie_ has quit [Ping timeout: 256 seconds]
<aminechikhaoui>
I wonder if m1.small is pv instead of hvm
<aminechikhaoui>
as for nixos-17.03/17.09 there is no pv AMIs but that should trigger an evaluation error afaik not during the python code execution of nixops
<robstr_>
aminechikhaoui: im sorry need to leave fast, i will check later this day and come pack to you
<aminechikhaoui>
yeah I don't think what I said is relevant though, in that case there would be an eval error which is more clear
rardiol1 has left #nixos [#nixos]
<nick_l>
robstr_: "ami-a30192da" # just use this string.
<aminechikhaoui>
nick_l: the AMI should be picked up from the default ones
<nick_l>
robstr_: well, that's for eu-west-1.
<nick_l>
aminechikhaoui: I don't think it did for me, so that's another reason why I set it.
<nick_l>
aminechikhaoui: anyway, it seems a really simple solution to set it just to exclude things.
<nick_l>
At least, I assume that robstr_ is interested in solving something for himself or his employer.
<nick_l>
If he wants to improve nixops directly, then it would be relevant to get to the bottom of this.
Fare has joined #nixos
<nick_l>
But since he is a self-proclaimed beginner, that isn't going to happen.
<aminechikhaoui>
oh I can reproduce, so should be something obvious
periklis has quit [Ping timeout: 276 seconds]
pie_ has joined #nixos
<aminechikhaoui>
robstr_: oh that should be the hvm vs pv thingy
<aminechikhaoui>
I though it generates an exception but seems it just silently put "" in the AMI id
blankhart has joined #nixos
<aminechikhaoui>
so maybe try using a more recent EC2 machine generation ?
<abbradar>
fendor: you use something from Intel, that's for sure
<fendor>
*what can I read
<abbradar>
if you want to know exact chipset...
<abbradar>
try searching for "renderer"
<{^_^}>
[nixpkgs] @shlevy pushed to master « Remove HIE package set until automation can be put in place. »: https://git.io/vx4s9
<fendor>
exact chipset is 620, i know my gfx :D my question is, because i wanted to start some haskell program with sdl2 and it complains that i cant find any drivers
<{^_^}>
[nixpkgs] @shlevy pushed to release-18.03 « Remove HIE package set until automation can be put in place. »: https://git.io/vx4sF
<abbradar>
fendor: ahh, that's different. how do you start it?
<abbradar>
"cabal run" in shell?
<fendor>
abbradar, stack build in shell
<fendor>
abbradar, stack run in shell
xAFFE has left #nixos [#nixos]
<fendor>
yeah, sorry, classical XY problem :D
szicari has joined #nixos
<abbradar>
do you have glxinfo working in shell?
rauno has quit [Ping timeout: 268 seconds]
ikwildrpepper has quit [Read error: Connection reset by peer]
<krey>
symphorien: can't find it :/
<fendor>
abbradar, hard to tell, but probbaly not
<abbradar>
fendor: spews errors?
<abbradar>
can you check your "echo $LD_LIBRARY_PATH" in shell?
<fendor>
abbradar, in some nix-shell, glxinfo is present, but the problem is porbably related to stack
<abbradar>
also, are you on NixOS or on a regular Nix?
<abbradar>
Nix-on-some-Linux
<fendor>
abbradar, NixOS
<fendor>
output is /run/opengl-driver/lib:/run/opengl-driver-32/lib
<abbradar>
fendor: let's try running the binary directly, you can find it in dist/build/... I think
<fendor>
abbradar, yeah i tried and you are right, then it works
<fendor>
so, it is stack related
<abbradar>
seems stack clears its environment
<fendor>
missing dependency probably
<abbradar>
nah
<abbradar>
the problem is stack probably doesn't propagate LD_LIBRARY_PATH
<abbradar>
we can patch it in NixOS to do the right thing
<abbradar>
can you file an issue?
<shlevy>
Yeah this should definitely be fixed upstream
<{^_^}>
[nixpkgs] @shlevy merged pull request #37698 → Remove HIE package set until automation can be put in place. → https://git.io/vx4YC
<fendor>
where should i file that issue? nixpkgs?
<abbradar>
I think let's try upstream first
<krey>
symphorien: never mind, looks like I don't know how to use find
ma271 has joined #nixos
<abbradar>
cc @abbradar
<shlevy>
fendor: I'd phrase it as a general issue, not just nix specific. LD_LIBRARY_PATH long predates us ;)
<abbradar>
yeah, but you can describe your specific issue as well, Stack knows and uses Nix if available
<abbradar>
it's not like they hate us ;)
<screamin_jimmy>
ottidmes: thanks, got the squid to work properly, thanks for your assistance :)
<fendor>
oh, so they should fix in stack?
ma27 has quit [Ping timeout: 240 seconds]
<abbradar>
fendor: not yet sure, they may have their specific reasons to not
<abbradar>
at least they can advise
freeman42x]NixOS has joined #nixos
<gchristensen>
anyone else have this bug with Spotify that when it isn't playing music, it takes 100% CPU?
<MasseR>
gchristensen: and flashing the screen?
<gchristensen>
doesn't seem to flash the screen
<fendor>
ok, i open an issue in stack
screamin_jimmy has quit [Quit: ChatZilla 0.9.93 [Firefox 45.7.0/20170118123525]]
psychic1 has quit [Quit: WeeChat 1.6]
<ottidmes>
gchristensen: What is the benefit of using the spotify application rather than the web interface?
<gchristensen>
mostly it boils down to: they have a web interface?
<abbradar>
fendor: I see! Can you check what `stack exec env | grep LD_LIBRARY_PATH` reports?
psychic1 has joined #nixos
<gchristensen>
ottidmes: evidently I went around that though, because I was just able to log in with a username and password, no facebook required!
<gchristensen>
ottidmes: I disabled "Platform" on Facebook, then went to Spotify and tried to reset my password, they sent me a username (which was just a sequence of numbers) and a link to reset the password
<ottidmes>
gchristensen: Awesome! The only problem I have with the web interface is some problem reconnecting after suspending my machine, but it seems a refresh fixes this, so its no biggie
Sonarpulse has joined #nixos
stphrolland has joined #nixos
ilyaigpetrov has joined #nixos
<abbradar>
fendor: yeah, no parent LD_LIBRARY_PATH
<gchristensen>
ottidmes: thank you! I love that I don't have to _run their program_ now.
<abbradar>
you can use the same issue I think, just report your experience
abbradar has quit [Remote host closed the connection]
<gchristensen>
of course if I had MichaelRaskin's fancy system I'd feel less bad about it
abbradar has joined #nixos
<krey>
gchristensen: what is this fancy system I keep hearing about?
<gchristensen>
it is a largely custom system with his own process launcher which uses unique UIDs and namespaces for pretty much everything and has really nice isolation properties
<stphrolland>
Hi! I have installed a dozens of packages related to development. As a consequence my system take twice as more storage space as before. Without removing/adding packages to see which is the culprit, this I can do it manually, but I was wondering: Is there a one-liner so as to have an idea which nixos derivation takes the most space in my system ? I was planning to use "du" and "ncdu", but if you have
<stphrolland>
any other trick, I'd be glad to try and use it !
<phry>
can someone give me a quick tip on how to combine an option with it's default value instead of overriding the default value?
<krey>
gchristensen: hmm, maybe I should put on my tinfoil hat too and move to the web interface
<infinisil>
phry: foo = mkMerge [ options.foo.default someOtherValue ]; should work
<ottidmes>
gchristensen: So somewhat similar to QubesOS, but then while still using NixOS? Anyway seems interesting
<gchristensen>
ottidmes: agreed
<gchristensen>
it is very very lispy... he's a very lispy person... apparently he's given talks about how his computer works.
<ottidmes>
lol
<ottidmes>
My love for Lisp was short lived, and I never loved the kind of Lisp's he does, because I believe he uses Common Lisp for everything
<krey>
gchristensen, ottidmes: so I guess it's like QubesOS with Nix on top of it?
<fendor>
abathur, ok, i'll try
<gchristensen>
I guess
<krey>
what's the benefit of using NixOS compared to using Nix very heavily on another distro?
<TweyII>
krey: Working OpenGL ;)
<gchristensen>
what are the benefits of using Nix compared to using <<other package manager very heavily>>?
<ottidmes>
krey: That is basically answered by why Nix is useful, and NixOS just takes it to the extreme
<joepie91>
lol
<goibhniu>
krey: system rollbacks are nice
Tucky has quit [Quit: WeeChat 2.1]
<TweyII>
krey: More seriously — NixOS gives you the ability to manage your system config in the same way as your packages, which is nice
<joepie91>
krey: I would argue that you're not getting anywhere near the full potential value of Nix if it can't also control your kernel, services, etc. - but you're still paying most of the costs
<krey>
joepie91: hahaha
<ottidmes>
joepie91: I second that, that is why I moved from Arch+Nix to NixOS myself
<joepie91>
krey: if you use NixOS, you suddenly have system-wide rollbacks, ability to just instantiate your setup entirely on a new device, declarative system management, etc.
<TweyII>
I also switched for rollbacks
<joepie91>
krey: (this coming from somebody who started out with openSUSE + Nix)
<joepie91>
er
<joepie91>
declarative service management*
<joepie91>
well system management too but that's not what I meant :P
<phry>
infinisil: I'm not really finding the path to the original option, that's where I'm struggling. I'm overriding xsession.windowManager.i3.config.keybindings from home-manager and am trying things like pkgs.home-manager.options.xsession.windowManager.i3.config.keybindings.default but I guess that's wrong
<stphrolland>
krey: managing one system as a text file is something you should try before judging it. Take a VM and play with NixOs. I don't consider coming back to Ubuntu or any Linux alike now.
<joepie91>
krey: the one downside is that you can no longer 'cheat' by running static binaries that you grabbed from a random site
<joepie91>
without a packaging/patching/steam-run/whatever step
<joepie91>
also what stphrolland said
<joepie91>
expect a nontrivial amount of time being needed to get accustomed to the way NixOS works, because it doesn't have the escape hatches that Nix-on-another-distro might have
<goibhniu>
also, you have a more limited set of services to choose from than a mainstream distro
<infinisil>
phry: Add "options" to your argument list at the very top, then it's `options.xsession...`
<joepie91>
goibhniu: I'd counter that with "most anything I was looking for, I've found - and it's easier to turn random stuff into a service"
<joepie91>
:P
<joepie91>
more a tradeoff than a downside imo
<krey>
guys, I am on NixOS, but I switched from Arch cos I was curious, not necessarily for logical reasons
tos9 has left #nixos [#nixos]
<phry>
infinisil: argh, I forgot to get the options argument. thanks for the pointer!
<goibhniu>
joepie91: some services are pretty hard to package and keep up to date though
<joepie91>
krey: depending on how much you've worked with Nix already, be prepared to spend some time finding your way around then :)
MercurialAlchemi has quit [Ping timeout: 260 seconds]
<joepie91>
it's definitely worth it in the long run, but for now it requires a nontrivial time investment to really get going
<joepie91>
ie. not something I'd generally advice people to jump straight into, if they /need/ a working system right away
<joepie91>
advise*
<krey>
I guess the most compelling answer is declarative configuration
<goibhniu>
on the other hand, the services in nixos are usually dead easy to enable and configure
<krey>
but home-manager seems to do a lot of that and is cross-platform (?)
<joepie91>
krey: not so much declarative configuration in and of itself, as the fact that it now handles everything
oida has quit [Ping timeout: 268 seconds]
<joepie91>
ie. *universal* declarative configuration, rather than in just a few pockets of your system
<joepie91>
(this also means an overall more reliable system, as you don't need to worry about the non-declarative pockets anymore or make them work together with the declarative pockets :P)
<ottidmes>
In other words, if you have your data / config backup up, you can just restore you system anytime. I recently had this with a server, messed up full disk encryption, lost everything, but I could just reformat, put back data + config, install, done. Imagine that happening on a different distro, means you will have to redo everything you did setting up your system
<krey>
ottidmes: offtopic, but messed up fde? how do I not do that?
<goibhniu>
or if you have a few machines, which share a lot of config, they're so easy to manage
<gchristensen>
or several -- I manage ... uh ... ~20? NixOS machines with very similar configs
<{^_^}>
[nixpkgs] @erictapen opened pull request #37700 → neopg: Init at 0.0.4 → https://git.io/vx48A
<ottidmes>
krey: Well in my case I used sedutil, which leverages the builtin hardware encryption found in most modern SSDs, and we (a friend an I) could no longer remember ever setting a different password, but it reported the default password as being wrong, so we just reset with the full reset code and reformatted the thing. So with sedutil you can mess up FDE if you ever forget your password, but that is true for LUKS
<ottidmes>
as well I guess, so make sure to use some password manager
<leotaku>
Is the nixos-18.03 channel already usable? I see it in the channels repo however I don't think I have read anything about its release?
cacatoes has quit [Ping timeout: 276 seconds]
<gchristensen>
leotaku: it is not yet released
<ottidmes>
leotaku: Its pre-release, you could try it, but its not stable yet for some things, I read on the IRC there were problems with Qt and nixops, so I am waiting until it is actually released
spacefrogg has quit [Remote host closed the connection]
spacefrogg has joined #nixos
<{^_^}>
[nixpkgs] @peterromfeldhk opened pull request #37701 → nodePackages_8_x.re-natal: init at 0.8.2 → https://git.io/vx44K
<leotaku>
Ok, thanks
srjek|home has joined #nixos
oida has joined #nixos
maximiliantagher has joined #nixos
nuncanada has joined #nixos
maximiliantagher has quit [Ping timeout: 240 seconds]
<{^_^}>
→ 5c142776 by Tim Williams: displaycal: 3.2.4.0 -> 3.5.0.0
<{^_^}>
→ 4882ab1a by @gebner: Merge pull request #37663 from willtim/master
<{^_^}>
[nixpkgs] @gebner merged pull request #37663 → update of displaycal to 3.5.0.0 → https://git.io/vx8mq
knupfer has quit [Ping timeout: 240 seconds]
stphrolland has quit [Remote host closed the connection]
rauno has joined #nixos
silver has joined #nixos
<elvishjerricco>
leotaku: I'm using it. I regret it. I've got problems with screen flickering and audio controls not working. Haven't had the time to investigate enough for a proper bug report
hyper_ch2 has quit [Quit: Page closed]
<yorick>
maybe it's time to update the virtualbox image
mariel__ has joined #nixos
ThatDocsLady_ has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @dezgeg pushed commit from @xzfc to master « wine: disable bindnow hardening »: https://git.io/vx4zi
humanoyd has quit [Quit: WeeChat 2.1]
<ottidmes>
krey: config contains the final attrset describing the config of your machine, so you can use it to base config on other config, which works because it is lazily evaluated
rosa has quit [Client Quit]
<{^_^}>
[nixpkgs] @dezgeg pushed commit from @xzfc to release-18.03 « wine: disable bindnow hardening »: https://git.io/vx4zD
coconnor has joined #nixos
cooleoj has joined #nixos
<cooleoj>
Hello!
<cooleoj>
I have a question about NixOS. I am using a swedish keyboard but cant seem to find how to set the keymap to swedish layout
<cooleoj>
Anyone else had this problem?
humanoyd has joined #nixos
<ottidmes>
krey: If you look at almost any module found in nixpkgs you will see that it is used to define other config options based on the config values defined for the options of that module. They for example define a systemd service based on the config you provide, but that systemd service is again just config
lpsmith- has joined #nixos
<ottidmes>
cooleoj: services.xserver.layout = "se"; (se is swedish, right?)
<cooleoj>
Yeah it is
lpsmith has quit [Ping timeout: 240 seconds]
<cooleoj>
so do i put that in config instead of consoleKeyMap = "" ?
<{^_^}>
→ 6b9771e4 by @abbradar: systemd: use stable tree
<{^_^}>
→ eae4eec5 by @fpletz: Merge pull request #37692 from abbradar/systemd-238
<abbradar>
fpletz: ah, disregard :3
<ottidmes>
cooleoj: Not sure if they are related, as in, if supportedLocales also is responsible for providing keymaps, doubt it, but if you do not have it defined, you might want to do so anyway
<abbradar>
ottidmes: supportedLocales shouldn't be related
<abbradar>
I think when it's not defined it's.... hm
<abbradar>
not sure :D
<krey>
ottidmes: that actually makes sense
<abbradar>
...they default to "all"
abbradar has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @fpletz pushed commit from @abbradar to release-18.03 « systemd: use stable tree »: https://git.io/vx4gb
<{^_^}>
→ b59fd702 by @dtzWill: gettext: don't add -lintl on musl, either
<{^_^}>
→ 4ae1790f by @dtzWill: Merge pull request #37688 from dtzWill/fix/no-libintl-musl
<ottidmes>
cooleoj: I just checked and I do have /run/current-system/sw/share/X11/xkb/symbols/se, and I definitely did not configure anything for Swedish
<cooleoj>
Okay
<cooleoj>
Im missing everything under /X11/xkb/symbols/se
<cooleoj>
This is probably why haha
<cooleoj>
But why would that be
<ottidmes>
cooleoj: You need services.xserver.exportConfiguration = true; for them to show up
<ottidmes>
cooleoj: But you should not have to do so in order to them to be available, just for them to be available at that path, I believe
<cooleoj>
Okay
<cooleoj>
hm
knupfer has joined #nixos
jb55 has joined #nixos
<ottidmes>
coconnor: Thanks for the tip, I double checked, I am using it in my keyboard configuration, but not in my "shared by all" configuration, which is also used by servers, so there it makes sense not to have that
<ottidmes>
andrewrk: That is normal if you have updated to Nix 2.0, while still using nixos-17.09, you can safely ignore it
<andrewrk>
ottidmes, thank you
Neo-- has joined #nixos
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
<TweyII>
Is that because Nix 2.0 uses signed-binary-caches by default?
<ottidmes>
andrewrk: (copied from an earlier answer to this question) You should be able to safely ignore it, or you could set nix.requireSignedBinaryCaches = false; but be careful, you are very unlikely to want to have that in the long run, since in 18.03 this setting will result in the new setting, require-sigs, to be said to false!
<cooleoj>
ottidmes: I found it! its not "se" its "de-lat6"
<cooleoj>
Thanks for the help!
<ottidmes>
TweyII: Its organized differently, from what I understand, binary caches and substituters are unified, and there now is a require-sigs property that describes whether you expect them to produce signed paths
<teozkr>
haven't had as much time to maintain it as I'd like, so there's still no SBT 1.x support, for example
<freeman42x]NixOS>
I assume it is still possible to use SBT by itself and pretend this is not NixOS, and it will cache its stuff in home somewhere
<fpletz>
abbradar: oh, yeah, sorry, forgot about staging :
<fpletz>
:)
<ottidmes>
elvishjerricco: Thanks, I made a note of it :)
Xal has quit [Ping timeout: 264 seconds]
<teozkr>
freeman42x]NixOS: yeah, that should still work
freeman42x]NixOS has quit [Quit: Leaving]
<abbradar>
fpletz: you have merged it to staging, it's just that Hydra was faster :D
<teozkr>
didn't get to finish my but... :(
<krey>
this question is probably wrong, but can I reference my system configuration in a derivation?
<elvishjerricco>
teozkr: is still like to hear the but :P
<krey>
I'm writing my first, and I don't wanna redefine which python packages I want
<fpletz>
abbradar: yeah, I meant that I also should've triggered a new staging evaluation along with 18.03 :)
<abbradar>
b
Xal has joined #nixos
<abbradar>
*cat issue* ok
<fpletz>
eval triggered and the old jobs are being cancelled
<ottidmes>
krey: If you define the derivation within your configuration, then sure, just use config (the one passed at the top of your module)
mariel__ has joined #nixos
<gchristensen>
mariel__: hi! may I PM?
rosa has quit [Quit: rosa]
<teozkr>
elvishjerricco: but.. make sure to reset your sbt.global.base, so it doesn't pick up your user-global plugins
<robstr_>
aminechikhaoui: ping
<krey>
ottidmes: haha, I know how to do *that* now
<robstr_>
aminechikhaoui: thank you really much for checking this :+1
<krey>
ottidmes: but so far, it just lives in a default.nix and I use it with nix-shell
sanscoeur has joined #nixos
fendor has quit [Ping timeout: 256 seconds]
blankhart has quit [Ping timeout: 240 seconds]
<ottidmes>
krey: Not sure what you want then, or do you want to reference some value of your config in the default.nix?
<krey>
ottidmes: I'm not able to describe the problem in generality, so here are the specifics
<krey>
ottidmes: in my config.environment.systemPackages, I use python36.withPackages with a long list of packages
<krey>
ottidmes: I want my derivation to depend on that list
<aminechikhaoui>
robstr_: yeah sure
blankhart has joined #nixos
<krey>
ottidmes: I want my package to depend on all the python packages available when I type python in the terminal
<krey>
ottidmes: does this make any sense?
<ottidmes>
krey: Makes sense, and should be easy enough
<ottidmes>
krey: Instead of defining it in your systemPackages, define it as part of an overlay file.
mariel__ has quit [Ping timeout: 276 seconds]
<aminechikhaoui>
Anyone knows if I'm doing something wrong by modifying configurePhase of a derivation then doing nix-shell/ configurePhase always results in running the stdenv configurePhase
<aminechikhaoui>
what's the right way to run $configurePhase instead, which is correct in the env variable
<clever>
aminechikhaoui: there is botn a configurePhase function, and a $configurePhase string
<krey>
ottidmes: what's an overlay file?
<clever>
aminechikhaoui: the simplest way to run the right one is: phases="configurePhase" genericBuild
<ottidmes>
krey: And once you have defined your python36.withPackages as part of an overlay file located in the right folder als defined in the manual (you can also define your own location via nixpkgs-overlays=/path/to/overlays as mentioned in the manual)
<ottidmes>
krey: You can then include that same overlay file in your nixos configuration as follows: nixpkgs.overlays = [ (import /path/to/your/overlay/file) ];
<{^_^}>
→ 107eaa87 by @dezgeg: armTrustedFirmwareQemu: 1.4 -> 1.5, fixes build with GCC7
<{^_^}>
→ bab5a066 by @dezgeg: armTrustedFirmware: Disable parallel build
<ottidmes>
krey: That makes the overlay available in both your system configuration as the nix tools
<ottidmes>
krey: And allows you to just reference that custom package like any other in your default.nix
<phry>
hm, quick question: I cannot find much about the ordering of sets. Can those be read in the order they are defined or do they end up sorted by alphabet?
maximiliantagher has joined #nixos
<ottidmes>
phry: The Nix manual states about sets that "The order of the attributes is irrelevant.", so you cannot assume anything about the order
mkoenig has quit [Remote host closed the connection]
<phry>
ottidmes: okay, that's the way to read it that I had hoped not to be true -.- thanks
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
rosa has joined #nixos
asuryawanshi has joined #nixos
<ottidmes>
phry: Just out of curiosity, what do you need it for?
nh2 has joined #nixos
<phry>
ottidmes: I was stuck with home-manager generating my ssh config, which relies on order. but as it seems I missed the option to add an array instead of a set
Ariakenom has joined #nixos
<phry>
ottidmes: so I got my workaround there :)
ryanartecona has joined #nixos
<ottidmes>
phry: Good to hear :) That is basically what it comes down to, unordered + keys = attrsets, ordered + indexed = lists
<phry>
ottidmes: I've still got a shitload of stuff to learn :) but I'm getting better at finding things in the docs and this channel is awesome :) (thanks everyone!)
<mpickering>
fresheyeball: What's the exact error building what?
<gchristensen>
krey: that doesn't look "pretty broken" but instead "weird confluence of features and design choice resulting in a specific use case being unpleasent"
<Dezgeg>
are you actually sure the problem isn't with the libsass version instead?
<Dezgeg>
does the error change if you don't mention libsass at all?
<mpickering>
Does hlibsass specify the necessary dependency on libsass already?
unkn has quit [Quit: moo]
<elvishjerricco>
mpickering: What do extra libraries do?
<mpickering>
I don't know but it looked plausible
<elvishjerricco>
Anyway, I tend to prefer the pkgconfig-depends solution for this when possible
<fresheyeball>
Dezgeg: error is the same
<elvishjerricco>
cabal2nix will pick it up automatically
<Dezgeg>
getting a linking error that only mentions two missing symbols sounds weird
<elvishjerricco>
so you often won't even have to customize the nix expression
<mpickering>
I think Dezgeg might be right
<fresheyeball>
if I run cabal2nix more or less get the old version of my expression that fails to link
<mpickering>
librarySystemDepends = [ libsass ]; from the hackage-packages.nix file
ertes-w has quit [Quit: Bye!]
Ivanych has quit [Quit: Leaving.]
<krey>
how can I add overlays to my configuration.nix? ottidmes?
<elvishjerricco>
fresheyeball: Is that with libsass in the pkgconfig-depends section?
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
<fresheyeball>
elvishjerricco: I dont understand your question
<elvishjerricco>
try adding `pkgconfig-depends: libsass` to your cabal file
<fresheyeball>
oic
<elvishjerricco>
cabal2nix will pick it up and pull both pkg-config and libsass in, and cabal will use them to link it
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<ottidmes>
krey: "You can then include that same overlay file in your nixos configuration as follows: nixpkgs.overlays = [ (import /path/to/your/overlay/file) ];"
WhittlesJr has joined #nixos
<krey>
ottidmes: oops
<mpickering>
It is already listed in hackage-packages.nix
<mpickering>
I don't think it will change anything
<elvishjerricco>
preferably changing `name` and `version` alongside `src`.
jwynn6 has quit [Ping timeout: 264 seconds]
knupfer has quit [Ping timeout: 240 seconds]
<WhittlesJr>
gchristensen: Howdy. Looks like logs.nix.samueldr.com is way more searchable than botbot.me. Sorry for the noise.
<gchristensen>
WhittlesJr: no worries, botbot has been sick lately
<joepie91>
honestly, botbot has *never* worked correctly for me with searching
<Dezgeg>
it is too web 2.0
<WhittlesJr>
gchristensen: aww poor guy.
__Sander__ has quit [Quit: Konversation terminated!]
<gchristensen>
also that
<elvishjerricco>
Is there any fundamental reason `nixos-container` is tied to NixOS? Or could it be made to work on any Linux with systemd?
asuryawanshi has quit [Remote host closed the connection]
jwynn6 has joined #nixos
asuryawanshi has joined #nixos
szicari has quit [Quit: szicari]
<pmade>
I'm trying to build a haskell package with profiling. I have an override in place to build all dependencies with enable*Profiling but I get a compiler error that GHC can't find the profiling interfaces for the dependencies. But if I start a nix-shell ghc-pkg shows the dependencies and they all have profiling hi files. Any suggestions?
<{^_^}>
[nixpkgs] @dezgeg pushed commit from @xeji to master « t: 2.9.0 -> 3.1.0 »: https://git.io/vx4MI
szicari has joined #nixos
<{^_^}>
[nixpkgs] @dezgeg pushed commit from @xeji to release-18.03 « t: 2.9.0 -> 3.1.0 »: https://git.io/vx4Mm
<LnL>
manveru: Mic92: pushed a 2.0 container and it's 40mb smaller :)
<pmade>
Wait, never mind. I removed an overlay and it started building correctly.
ma27 has quit [Ping timeout: 276 seconds]
ma271 has joined #nixos
<Mic92>
cool
<LnL>
I totally forgot about the 2.0 no perl thing
WhittlesJr has quit [Quit: Page closed]
7GHAAFMOQ has joined #nixos
<{^_^}>
[nixpkgs] @dezgeg pushed to master « riscv-pk: Set correct platforms »: https://git.io/vx4MX
<{^_^}>
[nixpkgs] @dezgeg pushed to release-18.03 « riscv-pk: Set correct platforms »: https://git.io/vx4M7
alexteves has quit [Ping timeout: 264 seconds]
7GHAAFMOQ is now known as zybell_
alexteves has joined #nixos
spear2 has quit [Ping timeout: 240 seconds]
TweyII has quit [Ping timeout: 268 seconds]
boomshroom has joined #nixos
<boomshroom>
Hello!
<boomshroom>
Does anyone have experience with the i3 window icons patch?
<abbradar>
Mic92: btw on gajim -- I think I've seen mentions of something something could not load a pixbuf GTK3 errors on our tracker before
<Mic92>
abbradar: I just noticed eog has the same problem
<Mic92>
so the update is probably unrelatet
<abbradar>
ugh
<boomshroom>
Another thing, does any version of nixos have the llvm_6 package? It seems to be in master, but it's not available on nixos-unstable as far as I can tell.
<abbradar>
I vaguely remember some quite hacky stuff related to gtk pixbuf caches or something
<Mic92>
there was a gnome3 update.
<abbradar>
ah, probably that's the culprit
<abbradar>
(I use it cherry-picked on current channel)
<teozkr>
coconnor: great! I believe chaker almost had it working, but I'm not sure anything came of it
raynold has joined #nixos
maximiliantagher has quit [Remote host closed the connection]
<krey>
I'm having trouble writing a function that imports all files in a directory
humanoyd has quit [Quit: WeeChat 2.1]
<krey>
builtins.readDir can't tell me if something's a file or a directory if it's a symlink
maximiliantagher has joined #nixos
aarvar has joined #nixos
monotux has joined #nixos
MichaelRaskin has joined #nixos
Neo-- has quit [Ping timeout: 240 seconds]
maximiliantagher has quit [Ping timeout: 260 seconds]
<zybell_>
krey: use stat() on it.
<taohansen>
LnL: How do you find it with NixOS? Are you able to pass around secrets in an immutable way?
<fresheyeball>
error: imported archive of ‘/nix/store/rrhniw21zsd6rjbk85m6mmixji5xq85a-source’ lacks a signature
<fresheyeball>
WHAT DOES IT MEANNNN>
<fresheyeball>
?
<elvishjerricco>
fresheyeball: What are you trying to do?
<krey>
zybell_: uuh, where does that live?
<fresheyeball>
elvishjerricco: enter a nix shell after substantial refactoring of an expression
<elvishjerricco>
fresheyeball: Nix doesn't let paths get added to the store unless they're signed or the user is trusted. So the cache you got it from is probably a little busted
<elvishjerricco>
"the users" being the user that's trying to add the path to the store
<elvishjerricco>
fresh locally grown builds are always trusted
<fresheyeball>
How can I know what its referring to?
<fresheyeball>
let nixpkgsRev = "bab5a0664cfc982bf4915ccb214f4a11a5310cea";
<fresheyeball>
in import (builtins.fetchTarball
<zybell_>
would expect builtin, but is found on cmdline too.
<elvishjerricco>
fresheyeball: So the path is not in your nix store, right?
<zybell_>
on a bash : 'stat -L name' the output is obvious. -c allows to ask for certain aspects.
<fresheyeball>
elvishjerricco: grep says its not there
<elvishjerricco>
fresheyeball: So when you try to eval it, it has to download it, right?
<fresheyeball>
yes
<elvishjerricco>
fresheyeball: Does it say what url it's downloading?
<zybell_>
man stat helps.
maximiliantagher has joined #nixos
<fresheyeball>
yes but it only shows for a second while its downloading
<fresheyeball>
looks right
MP2E has joined #nixos
<elvishjerricco>
fresheyeball: Try nix-instantiate --eval -E instead of nix eval. Won't clear the log on you. (There may also be a way to ask nix eval not to do that but I don't know)
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #36465 → weston: fix typo in configure flag → https://git.io/vAN49
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vx4bm
<{^_^}>
→ 895b9967 by @Infinisil: weston: fix typo in configure flag
<{^_^}>
→ 5beab747 by @matthewbauer: Merge pull request #36465 from Infinisil/typo/weston
zzamboni has quit [Quit: Leaving.]
maximiliantagher has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vx4N8
<{^_^}>
→ f310df17 by @ryantm: arangodb: 3.3.3 -> 3.3.4
<{^_^}>
→ 9e7358b6 by @matthewbauer: Merge pull request #36958 from ryantm/auto-update/arangodb
<ottidmes>
andrewrk: For what package?
<andrewrk>
trying to build zlib from source
<andrewrk>
sorry, trying to build libxml2 from source
<andrewrk>
note that I don't want a libxml2 package; nixos already provides that. The userland thing I'm trying to do is literally build libxml2 from source
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vx4N6
<{^_^}>
→ 0bb52265 by @ryantm: lynis: 2.6.2 -> 2.6.3
<{^_^}>
→ 460dde91 by @matthewbauer: Merge pull request #37065 from ryantm/auto-update/lynis
<krey>
I'm still confused by overlays; I added <nixpkgs-overlays> to my $NIX_PATH, it's a file. according to the manual this is fine, but when I do nixos rebuild-switch, it says "error opening directory"
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vx4AC
<{^_^}>
→ 7b1f515b by @ryantm: pmd: 6.0.1 -> 6.1.0
<{^_^}>
→ 6ffbed89 by @matthewbauer: Merge pull request #37080 from ryantm/auto-update/pmd
<elvishjerricco>
shlevy: Oddly enough, this even occurred when he tried a brand new url (one that I wouldn't expect to be cached anywhere except maybe cache.nixos.org)
<ottidmes>
andrewrk: I was asking because I always look at how other distros package it, makes it easy to spot the dependency you might miss
<shlevy>
So there are three options: 1) add your cache (probably Formation's hydra?)'s public key to trusted-public-keys 2) add ?trusted=1 to the offending cache, 3) set require-sigs to false
<shlevy>
fresheyeball: All of those would have to be in your system-wide nix.conf, and would require restarting your daemon if you're multi-user
<{^_^}>
[nixpkgs] @matthewbauer pushed commit from @ryantm to master « osrm-backend: 5.15.0 -> 5.16.3 (#37072) »: https://git.io/vx4AV
<andrewrk>
ottidmes, I think I figured it out. It's unrelated to nixos. I'm building with a non-default prefix for libz.a and libxml2 has an annoying build configuration that did not find the pkgconfig located therein
<{^_^}>
[nixpkgs] @matthewbauer pushed commit from @ryantm to master « samplv1: 0.8.6 -> 0.9.0 »: https://git.io/vx4xY
drakonis has joined #nixos
<boomshroom>
andrewrk: It's not even a progress bar, it's just a number followed by either G or M.
<boomshroom>
Also, LLVM is building and, as usual, is taking forever.
<dtz>
:D
<dtz>
I still haven't enabled the min/max auto-gc from nix 2 lol
<andrewrk>
ooh that sounds neat
<coconnor>
which would win: gcc compile speed or clang? ;)
<dtz>
so just run it manually occasionally xD
<boomshroom>
Indeed, it does sound neet.
<dtz>
or frequently if I'm doing many GHC builds and debugging flags for them xD xD
<dtz>
lol hey-- we don't even do the multiple-stage bootstrap thing for LLVM/clang like gcc does for itself
<shlevy>
dtz: We used to :P
<dtz>
although we probably should soon, since that seems to be what upstream prefers
<shlevy>
I was, um, shouted down
<dtz>
clang: it'll immediately error out because your code has undefined behavior
<dtz>
:D :P
<dtz>
jk jk
nh2 has quit [Ping timeout: 265 seconds]
<dtz>
D:
<coconnor>
or it could make you tea. Behavior is undefined and all
<shlevy>
I do wonder what would happen if we disabled multitarget though
maximiliantagher has joined #nixos
<boomshroom>
I want my RISC-V Rust support, dammit!
<coconnor>
I keep hoping for tea... one of these days
<brianhicks>
hey, new user here… I'm trying to use Nix to manage my dotfiles and I'm having trouble figuring out how to add my global gitignore file to the wrapper generated by makeWrapper. Any tips? Here's what I've got now, inc nix-info: https://gist.github.com/BrianHicks/16181a02f3331adda5df87f6cecdfdca
<andrewrk>
coconnor, technically making you tea would comply with the c++ specification. but the c++ specification still answers to physics
<elvishjerricco>
fresheyeball: are you on nixos or other linux?
<fresheyeball>
also, it sucksthat I am in a ddonut hole
<fresheyeball>
elvishjerricco: nixos
<dtz>
shlevy: hopefully (after appropriate testing? dunno if there's a roadmap or what) we cut a 2.0.1 or 2.1 or w/e soon--those memory fixes are wonderful (among other fixes)
<dtz>
(as you well know, xD)
<elvishjerricco>
18.03 comes with 2.0 by default, or the latest 17.09 channel lets you do `nix.package = pkgs.nixStable2;`
<shlevy>
dtz: Yeah, I'm hoping to wrap up the release discussion on nix-core soon so we can get something out
<fresheyeball>
is 18.03 out and stable?
<gchristensen>
no
<shlevy>
fresheyeball: It's out but not stable yet
<fresheyeball>
ok, so I dont want to do that
<boomshroom>
Can someone please make `help` a command for nix 2.0?
<fresheyeball>
I am on 17.03
<coconnor>
is zero hydra failures for release-18.03 required for that?
<elvishjerricco>
the 17.09 option works well though
<fresheyeball>
17.09
<boomshroom>
As oposed to just a flag
<shlevy>
coconnor: yes, but we have the "mark broken" option for most breakages
<shlevy>
boomshroom: Writing new nix subcommands isn't that hard :)
<boomshroom>
LLVM with RISC-V is 8% built.
<dtz>
boomshroom: haha I want that too :D
<shlevy>
boomshroom: Ooh is it in a release?
<dtz>
boomshroom: I try it a shameful number of times
<dtz>
so maybe list of targets, exp or otherwise... bah those all need to be rewritten - the LLVM expressions, I mean
<fresheyeball>
all I see there is an expression fragment
<boomshroom>
shlevy: For some reason, LLVM 6 isn't in the latest nixos-unstable, so it's being built from master.
<elvishjerricco>
fresheyeball: That goes in your configuration.nix
<andrewrk>
which package provides PKG_CHECK_MODULES?
<fresheyeball>
ah
<Sonarpulse>
speaking of LLVM 6
<Sonarpulse>
turns out this evil __is_target is already in that
<Sonarpulse>
:( :(
<dtz>
we can instead just bootstrap an uber-LLVM-compiler exactly once per platform and never build a cross-compiler again :P:P
<Sonarpulse>
^ yes
<Sonarpulse>
llvm should not contain any libraries
<Sonarpulse>
nor should gcc
<boomshroom>
dtz: That's what's nice about LLVM.
<Sonarpulse>
this is the most important cross infra thing for 18.09
<Sonarpulse>
boomshroom: but we currently dump the compiler-rt sources into the LLVM build
<boomshroom>
9%.
<Sonarpulse>
very veru suspicious
brianhicks has quit [Quit: Page closed]
<shlevy>
IMO emit-platform specific stuff should be a separate build... If we have severe build times as a result of multitarget, which seems likely on llvm and plausible on binutils, I think we can make a case that the non-cross case takes precedence...
<Sonarpulse>
boomshroom: I think I'm just going to see you everywhere, I wrote Once in spin-rs haha
<Sonarpulse>
shlevy: why is llvm being slower?
<shlevy>
Sonarpulse: Build times I mean
<Sonarpulse>
shear size of backend codes?
<boomshroom>
Sonarpulse: That was you‽
<shlevy>
We'd have to test of course
<Sonarpulse>
boomshroom: I am Ericson2314
<shlevy>
But it's such an absurdly long build already
<fresheyeball>
hahah this is fucked guys
<Sonarpulse>
shlevy: are we using ninja?
<Sonarpulse>
that helps dramatically, actually
<fresheyeball>
error: attribute ‘nixStable2’ missing, at /etc/nixos/configuration.nix:228:15
<{^_^}>
→ df141c29 by @ryantm: libdvdread: 5.0.3 -> 6.0.0
<boomshroom>
Sonarpulse: Small world!
<{^_^}>
→ f0e59725 by @wmertens: Merge pull request #37662 from ryantm/auto-update/libdvdread
<{^_^}>
→ 9846fbf0 by @wmertens: libdvdnav: 5.0.3 -> 6.0.0
<fresheyeball>
nix-channel --update
<{^_^}>
[nixpkgs] @jonafato opened pull request #37711 → Enable desktop notifications for keybase-gui → https://git.io/vx4pZ
<fresheyeball>
throws error: imported archive of ‘/nix/store/0ki8g6pk2gvlpvypy5wa09mvyyqn53bb-nixos-17.09’ lacks a signature
<ottidmes>
lol
<elvishjerricco>
fresheyeball: shit
<fresheyeball>
I cant even update my channel to get nix 2
<Sonarpulse>
shlevy: lets take this to #nixos-dev
<elvishjerricco>
fresheyeball: you must have nix.package = nixUnstable, right?
<Sonarpulse>
it's too busy here
<elvishjerricco>
Sonarpulse: I had no idea there was a nixos-dev :P
<dtz>
need to use nix2 daemon too...
<fresheyeball>
I didnt have a nix.package entry prior
<Sonarpulse>
yeah it should be in #nixos topic
<elvishjerricco>
fresheyeball: Ah, that might explain it.
<elvishjerricco>
How did you update to 1.12pre?
<fresheyeball>
how so? How could we just let a stable 17.09 install just die like this?
<fresheyeball>
elvishjerricco: I didnt
<ottidmes>
fresheyeball: Just do a git checkout of channels/nixos-unstable, and add to an overlay: unstable = import <nixpkgs-unstable> { config = { allowUnfree = true; }; overlays = []; }; then add nix.package = pkgs.unstable.nix; and you should have 2.0
<boomshroom>
fresheyeball: Try a nix-env -qa "nix" | less to see if you even have nix 2 in your channel.
<elvishjerricco>
Note to self: Avoid `nixUnstable` :P
<fresheyeball>
note to self: doing a nix-store gc, does not actually clear out certain imperatively installed env packages
<shlevy>
fresheyeball: Your user profile is a gc root
<elvishjerricco>
shlevy: But how did that pip get GC'd?
<fresheyeball>
now I dont have a nix command at all
<ottidmes>
elvishjerricco: Its safe to use nix 2.0 from unstable though, just use its nix package (not nixUnstable), I am using it on nixos-17.09
<fresheyeball>
should I add it to my configuration.nix?
<elvishjerricco>
fresheyeball: You shouldn't have `nix`, but you should have `nix-env` etc.
<shlevy>
fresheyeball: nix was added in 2.0
<fresheyeball>
ok, so I am back in a good state
<fresheyeball>
gotcha
<elvishjerricco>
ottidmes: Yea I used nixStable2 in 17.09.
<ottidmes>
fresheyeball: do nix-daemon --version to be sure
<elvishjerricco>
But I've prematurely upgraded to 18.03 :P
<fresheyeball>
nix-daemon (Nix) 1.11.15
<shlevy>
:o ancient
<ottidmes>
fresheyeball: You should update your channel/checkout, 1.11.16 has been out for quite a while
sanscoeur has quit [Read error: Connection reset by peer]
sanscoeur has joined #nixos
<shlevy>
Switching to nixStable2 is probably the right move if you can manage a nix-channel update :)
<elvishjerricco>
Yea I've had no bad experiences with nixStable2
krey has quit [Quit: Lost terminal]
<ottidmes>
elvishjerricco: I haven't updated my 17.09 for a month (don't want to do the rebuilds), I plan to go straight to 18.03 once it is out, and nixStable2 does not exists on my checkout
<elvishjerricco>
except that nix-shell somehow lost --add-root
maximiliantagher has joined #nixos
<elvishjerricco>
ottidmes: nixStable2 is on one of the last versions of 17.09
<fresheyeball>
ottidmes: why? I try not to use the channel
<fresheyeball>
I actually dont understand what the value of channels actually is
<elvishjerricco>
fresheyeball: I'm not a fan of `nix-channel`. But the contents of the channels are just stable release branches
<elvishjerricco>
I keep myself pinned to a specific checkout of a channel I like
<fresheyeball>
elvishjerricco: I just dont use it
<fresheyeball>
I pin my user env to a local checkout of nixpkgs
<boomshroom>
fresheyeball: Suff like maybe you want your system to be stable, but as a user, you want the latest and greatest.
<ottidmes>
fresheyeball: I have never used a channel on NixOS, first thing I learned was that I could use my own checkout, so that was one the first things I did, I do use the nixpkgs channels to update my checkout
erictapen has quit [Remote host closed the connection]
<fresheyeball>
ottidmes: how can I use nix-channels to manage my local checkout? Is there an advantage over just using git?
<boomshroom>
The real value I've seen is enabling alternate repositories that aren't the default nixpkgs, but I haven't actually used it for such.
<boomshroom>
20%.
<ottidmes>
fresheyeball: No idea, never used nix-channels either, I just git rebase as described on the README of the nixpkgs channels github project :P
<elvishjerricco>
fresheyeball: I just use git
<fresheyeball>
me too
<fresheyeball>
ok
rauno has joined #nixos
<elvishjerricco>
and track the nixos-18.03 branch
maximiliantagher has quit [Ping timeout: 264 seconds]
<fresheyeball>
gebus all this, and now the package links
<fresheyeball>
the hlibsass, but the tests fail
<fresheyeball>
much sads
<elvishjerricco>
fresheyeball: lol sad
<boomshroom>
fresheyeball: `doCheck = false;` is the magic spell. Be careful though; it is black magic.
<elvishjerricco>
boomshroom: Unfortunately this is a valid test failure
<elvishjerricco>
i think...
<fresheyeball>
boomshroom: where would I put that?
<elvishjerricco>
does the Nix installer for non-nixos linuxes do a multi-user installation by default now?
<boomshroom>
You'd need to override the attributes for the package in an expression.
<tnks>
just checking, does the new "nix" command have an alternative for nix-prefetch-url or nix-store --realise --add-root?
<tnks>
I suspect these commands have no alterntive, or are the most succinct way to do the task.
endformationage has joined #nixos
<elvishjerricco>
makefu: Hm. That installs everything in /usr/local/bin. Can Nix upgrade itself after that?
ikitat has quit [Quit: ikitat]
<makefu>
elvishjerricco: i really don't know, i've never tried multiuser nix - i just knew that there is an article about it in the wiki :)
aarvar has quit [Quit: Leaving.]
<coconnor>
elvishjerricco: nix will upgrade itself by adding the update to the current nix profile (the user). Which would then shadow the nix in /usr/local/bin
<coconnor>
that covers nix-build et al. As for nix-daemon I'm not sure how to do that on other platforms
<ottidmes>
krey: Thats simple, just move the things inside pkgs: { ... } to your overlay and rename references to pkgs to super
<krey>
ottidmes: ok, but how do I refer to config? I guess I don't?
<fresheyeball>
is there an easy way to get a chron job out of a systemd unit?
<fresheyeball>
like, hey nixos, run this script every hour or whatever
<mpickering>
LnL: It builds for me fine
<ottidmes>
instead of copying over the config and the overlays, I would recommend defining NIXPKGS_CONFIG and pointing to a fine defining your config, you are very unlikely to also want to put your overlays on top of unstable and master
<ottidmes>
fresheyeball: systemd timers?
Judson has joined #nixos
<kreisys>
hey.. any darwin users familiar with an issue where each nixbldN user spawns all of apple's voodoo daemons and make your laptop melt?
<kreisys>
I could really use a hand with this :P
<kreisys>
Like I'm pretty sure they don't need a spotlight index
<ottidmes>
krey: ah ok, well, like I said, I think you probably want a global nixpkgs config, shared by all nixpkgs checkouts, which can be achieved with NIXPKGS_CONFIG (nixpkgs config defaults to that file)
<krey>
ottidmes: I put { allowUnfree = true; } into the file $NIXPKGS_CONFIG refers to
<{^_^}>
[nixpkgs] @dtzWill opened pull request #37715 → systemd: patch to build on musl → https://git.io/vxBtA
<ottidmes>
krey: Thats good, then you can remove all explicit setting of the config attribute
<ottidmes>
krey: What remains then are the overlays
<krey>
ottidmes: nixos-rebuild isn't happy with it
<ottidmes>
krey: I would set nixpkgs-overlays in the NIX_PATH (can be set with nix.nixPath = [ "nixpkgs-overlays=/path" ];) and point that to a directory (because of the issue mentioned before), containing your overlay file describing your unstable, master, and other changes you want to make to your default nixpkgs checkout
<ottidmes>
krey: That's not enough info, why is it not happy?
<ottidmes>
krey: I would then define the overlays for your master and unstable nixpkgs explicitly in some other overlay files, or just embed those overlays directly (maybe even better)
<krey>
ottidmes: I know, sorry, I'm also trying to fix it at the same time
<ottidmes>
krey: To be clear, I expect your overlays of your master and unstable to be different
<krey>
ottidmes: I actually gave up on setting nixpkgs-overlays in my nixPath, the outcomes were too crazy
<krey>
ottidmes: I can't remember the exact errors, but I could not get it to work
<krey>
ottidmes: so I set "overlays" instead and import it manually when I'm nix-shelling
<ottidmes>
krey: NIXPKGS_CONFIG is properly set in the shell you run sudo nixos-rebuild switch (try `sudo su` and check if it is defined there)
<ottidmes>
krey: I am using it, not sure what you did to make it go crazy
<krey>
ottidmes: fair point. I tried sudo -E
<ottidmes>
krey: probably again an issue with the env variable not being set properly and the not doing what you expect because it is looking elsewhere, or something like that
<clever>
ottidmes: i prefer `sudo -i` over `sudo su`
<krey>
ottidmes: sudo su also not helping
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
<ottidmes>
krey: env | grep NIX
<clever>
krey: compare `env | grep NIX` under both `sudo -i` and `sudo su`
<ottidmes>
tnks: I think they make sense since toString is almost always used in the context of shell scripts, and then using "1" for true and "" for false really makes sense
sanscoeu_ has joined #nixos
<ottidmes>
krey: Did you succeed with your rebuild?
<krey>
ottidmes: unfortunately, I didn't
<tnks>
ottidmes: yeah, I just never accepted a world where "" was "falsey". I guess call it style/clarity over convenience.
<ottidmes>
krey: Hmm, I just remembered, you want to have nixpkgs.config = import /same/path/as/your/NIXPKGS_CONFIG;
blankhart has quit [Ping timeout: 240 seconds]
sanscoeur has quit [Ping timeout: 266 seconds]
sanscoeu_ has quit [Ping timeout: 240 seconds]
asuryawanshi has joined #nixos
<krey>
zybell_: that doesn't sound right. how would it know what nixpkgs is?
<ottidmes>
krey: What is happening is that with the other nix tools, nixpkgs is evaluated and then NIXPKGS_CONFIG is inspected, but with NixOS the nixpkgs used by NixOS is being supplied the config parameter explicitly based on nixpkgs.config, so if you want to make them all use that one config file, you have to import it explicitly in your NixOS config
<zybell_>
The error asks for it, ask the errormsg.
<ottidmes>
tnks: I have lowered my standards considerbly when writing shell scripts...
<{^_^}>
→ 36fd2baa by @ryantm: yate: 5.4.2 -> 6.0.0
<{^_^}>
→ da446cf2 by @Mic92: Merge pull request #37705 from ryantm/yate
<krey>
what's the difference between variables and sessionVariables? I'm very confused
<ottidmes>
krey: session variables are loaded when you start a session for some user (PAM), and variables are loaded as part of the shell (bash, zsh, etc.), so session variables have a greater reach
<krey>
ottidmes: thanks
<ottidmes>
krey: And /etc/nix/nixpkgs-config.nix should not be necessary, its just overkill, its the default global location for the nixpkgs config, and its easier to remember than the actual location (for me)
<ottidmes>
krey: session variables are great for things that are static and you want to be set everywhere possible, the downside is, you cannot update them, you would have to restart your session
<ottidmes>
krey: They can be shadowed of course, but if they are not, they will still hold the old value unless you restart the session
<fresheyeball>
ottidmes: so I dont think overlays are right for me
<fresheyeball>
how can doing an override magically make this fail?
<ottidmes>
fresheyeball: If you checked the links given to you by krey, you see that all overlays have the shape of: self: super: { ... your redefined packages ... }
<fresheyeball>
ottidmes: yes, and it says to put it in .config/nixpkgs
<fresheyeball>
I am not going to do that
<ottidmes>
fresheyeball: You do not need to
<fresheyeball>
this is project specific need to call dontCheck
<fresheyeball>
ottidmes: ok, so that tut only shows lambdas, it doesnt show me how to use it
<ottidmes>
fresheyeball: There is also the manual, but if you want a custom overlay just for that project, you could also pass nixpkgs a list of overlays directly, but thats does mean its not suitable to contributation to nixpkgs in general