georges-duperon has quit [(Ping timeout: 252 seconds)]
stepcut has joined #nixos
<nh2>
earldouglas: you just say `deployment.targetHost = "1.2.3.4"` and that's it, will work for any NixOS target host
<nh2>
this fact is underdocumented though
<nh2>
simpson: thanks
alx741 has quit [(Ping timeout: 240 seconds)]
<nixy>
I am looking at the nix expression for weechat and having a hard time figuring out how I would get a python module to be available to the python weechat uses
darlan has joined #nixos
<nixy>
I thought I would override the python it depends on, but it depends on pythonPackages for some reason. How can I get the python weechat uses to have a python module available?
Mateon3 has joined #nixos
Mateon1 has quit [(Ping timeout: 255 seconds)]
Mateon3 is now known as Mateon1
hamishmack has quit [(Quit: hamishmack)]
stepcut has quit [(Remote host closed the connection)]
<dmj`>
Is it possible to retrieve the runtime closure (list of all paths) of one derivation, inside another derivation
<earldouglas>
nh2: oh, awesome; thanks!
<earldouglas>
Do I just omit deplyment.targetEnvironment?
<earldouglas>
How do I manage SSH keys? Does it just use my host key?
stepcut has joined #nixos
stepcut has quit [(Remote host closed the connection)]
aneeshusa has quit [(Quit: WeeChat 1.7)]
<nh2>
earldouglas: yes, you omit `deplyment.targetEnvironment`. For ssh keys, `openssh.authorizedKeys.keys`
<nh2>
takes a list of pubkeys as strings
<earldouglas>
Makes sense. Does that connect as root? Should I add the appropriate pub keys to /root/.ssh/authorizedKeys on the remote boxes?
roconnor has joined #nixos
ebzzry has quit [(Ping timeout: 252 seconds)]
* dmj`
sees exportReferencesGraph
<nh2>
earldouglas: the setting I mentioned sets the given keys as additional keys for root after nixops is done configuring your machine. For connecting to your machine initially, it will just use you standard ssh key / ssh agent
<nh2>
in other words, it will invoke plain `ssh`
ebzzry has joined #nixos
<earldouglas>
Got it. Thanks a lot.
filterfish has joined #nixos
<NixOS_GitHub>
[hydra] shlevy pushed 1 new commit to master: https://git.io/vS1HX
<NixOS_GitHub>
hydra/master 949e586 Shea Levy: Move build logic for the core hydra package into its own default.nix....
thc202 has quit [(Read error: Connection reset by peer)]
carlosda1 has joined #nixos
filterfish_ has joined #nixos
<NixOS_GitHub>
[nixops] nh2 opened pull request #647: manual: Add section on how to deploy to a machine already running NixOS (master...patch-1) https://git.io/vS1HH
derjohn_mob has quit [(Ping timeout: 260 seconds)]
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
fnlkj has quit [(Ping timeout: 252 seconds)]
Wizek has quit [(Ping timeout: 255 seconds)]
galen has joined #nixos
Wizek_ has quit [(Ping timeout: 260 seconds)]
<gchristensen>
Dezgeg: " I can imagine library code has never been tested to that limit, certainly Mksquashfs code hasn't. The maximum size machine I've run it on is 24 cores, and it's been tested/developed on a 4 core machine with 8 Gbytes (*). I can imagine a whole host of problems with statically sized tables which size to the amount of cores/memory which given the above exceed addressing limits and/or code assumptions."
vaibhavsagar has quit [(Ping timeout: 252 seconds)]
derjohn_mob has joined #nixos
acarrico has quit [(Ping timeout: 240 seconds)]
ertes has joined #nixos
boothead has quit [(Ping timeout: 240 seconds)]
boothead has joined #nixos
hexagoxel has quit [(Ping timeout: 255 seconds)]
zeus_ has quit [(Remote host closed the connection)]
sellout- has joined #nixos
jsgrant_ has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[at]jsgrant.io & I'll try to get back to you within 24 hours.)]
hexagoxel has joined #nixos
darlan has joined #nixos
takle has quit [(Remote host closed the connection)]
jsgrant has quit [(Read error: Connection reset by peer)]
jsgrant has joined #nixos
iclanzan has joined #nixos
vaibhavsagar has joined #nixos
takle has joined #nixos
lpsmith has joined #nixos
systemfault has joined #nixos
stepcut has joined #nixos
zeus_ has joined #nixos
coltfred has quit [(Remote host closed the connection)]
takle has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
<copumpkin>
can we just limit the parallelism/etc?
eacameron has joined #nixos
carlosda1 has joined #nixos
carlosda1 has quit [(Ping timeout: 252 seconds)]
<gchristensen>
yeah I pinned it to just 24 CPUs and 24GB RAM
<gchristensen>
("just")
nh2 has quit [(Quit: Leaving.)]
takle has joined #nixos
tinkyholloway has quit [(Ping timeout: 240 seconds)]
ryanartecona has joined #nixos
takle has quit [(Ping timeout: 252 seconds)]
<c74d>
"<Havvy> We really should remove rustNightly from nixpkgs... <Havvy> ...in favor of Mozilla's overlay" — although I don't yet use nightly, I like the idea of having a rustc nightly that updates without my intervention but not so frequently as nightlies are released
<c74d>
(I don't, however, think the package should be kept just for me)
tinkyholloway has joined #nixos
mguentner3 has quit [(Quit: WeeChat 1.7)]
<c74d>
I don't like the idea of Nix updating it actually nightly because of how quickly it would produce garbage generations
takle has joined #nixos
<c74d>
I could GC them, but for me these are system generations, and I don't want to risk GCing all my bootable generations, so I only GC them after booting, which is seldom
<c74d>
rcschm: you can set options for tmux in /etc/nixos/configuration.nix, but configuration.nix is a separate way of installing software from nix-env; that configuration will not apply to a tmux installed with nix-env
<rcschm>
you mean just have configuration.nix file in the folder when i call nix-env -i tmux?
<rcschm>
i am using nix-env on ubuntu.
takle has quit [(Ping timeout: 240 seconds)]
<c74d>
no; if you want to configure tmux in Nix— oh. configuring tmux from Nix only works on NixOS (afaik)
<c74d>
rcschm: on Ubuntu, write /etc/tmux.conf as normal
<c74d>
rcschm: oh, or ~/.tmux.conf
<c74d>
I don't believe Nix can write either for you on Ubuntu
<rcschm>
i am seeing the configuration is defined in tmux.nix.
<c74d>
yes, that only works on NixOS (a Linux distribution based on Nix)
<rcschm>
it should be allowing user to customize stuff. is my understading far off?
<c74d>
rcschm: that doesn't work on Ubuntu
<rcschm>
nix is a flexible package management. that is what is advertised to be, to my understanding.
<rcschm>
hmm. that is kind of strange.
<rcschm>
nix-env should be universal. at least more robust on linux.
greymalkin has quit [(Ping timeout: 240 seconds)]
<rcschm>
i am looking at vim.nix. and it allows users to customize the plugins for instance.
<c74d>
rcschm: You have the Nix package manager installed on Ubuntu; you can install tmux from it and use that tmux normally. The feature you want is not part of Nix, but rather part of NixOS, a Linux distro based on Nix
<rcschm>
i am just not sure on tmux since there is no example at all.
teknico has joined #nixos
<rcschm>
can i write a derivable overwrite to get my customization in?
greymalkin has joined #nixos
<c74d>
probably
jgertm- has joined #nixos
<rcschm>
if you look at tmux.nix
<rcschm>
tmuxConf = ''
<rcschm>
set -g default-terminal "${cfg.terminal}"
<rcschm>
set -g base-index ${toString cfg.baseIndex}
<rcschm>
${if cfg.newSession then "new-session" else ""}
<rcschm>
${if cfg.reverseSplit then ''
<rcschm>
bind v split-window -h
<rcschm>
bind s split-window -v
<rcschm>
'' else ""}
<rcschm>
it has a built in tmuxConf. i am just trying to provide my own tmuxConf in place of the one in tmux.nix.
justanotheruser has joined #nixos
derjohn_mob has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 268 seconds)]
thc202 has joined #nixos
takle has joined #nixos
gal_bolle has joined #nixos
sibi has joined #nixos
RchrdB has quit [(Remote host closed the connection)]
carlosda1 has joined #nixos
takle has quit [(Ping timeout: 268 seconds)]
Itkovian has joined #nixos
fiddlerwoaroof has quit [(Ping timeout: 260 seconds)]
carlosda1 has quit [(Ping timeout: 240 seconds)]
jrolfs has joined #nixos
matthewbauer has joined #nixos
<steveeJ>
rcschm: doesn't ~/.tmux.conf work?
jrolfs has quit [(Ping timeout: 245 seconds)]
takle has joined #nixos
jgertm has quit [(Ping timeout: 255 seconds)]
filterfish has quit [(Ping timeout: 240 seconds)]
takle has quit [(Ping timeout: 255 seconds)]
xAFFE has joined #nixos
jrolfs has joined #nixos
xAFFE has quit [(Quit: Error from remote client)]
freusque has joined #nixos
<unlmtd[m]>
does someone have a trick to define their shell per user?
Khetzal has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] matthewbauer opened pull request #24838: pinentry_mac: use xcbuild (master...ibtool) https://git.io/vSMmX
Khetzal has joined #nixos
<steveeJ>
does fetchFromGithub encode $PWD when it's used?!
jrolfs has quit [(Ping timeout: 268 seconds)]
Khetzal has quit [(Remote host closed the connection)]
Khetzal has joined #nixos
__Sander__ has joined #nixos
Havvy has quit [(Remote host closed the connection)]
Havvy has joined #nixos
<steveeJ>
ha, this was a funny one. I have the local cloned repository installed as an overlay, and the symlink was broken after the local repo was moved ;D
takle has joined #nixos
goibhniu has joined #nixos
ThatDocsLady has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
filterfish has joined #nixos
<symphorien>
I am on x86_64 but I would like a nix-shell with a 32 bits version of a specific library. How can I do that ?
mudri has joined #nixos
Yatekii has joined #nixos
<LnL>
symphorien: nix-shell -p hello --argstr system i686-linux
aminechikhaoui has joined #nixos
freusque has quit [(Quit: WeeChat 1.7)]
freusque has joined #nixos
sigmundv_ has joined #nixos
reinzelmann has quit [(Ping timeout: 245 seconds)]
takle has joined #nixos
snikkers has quit [(Ping timeout: 240 seconds)]
reinzelmann has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
<symphorien>
I still have 64 bit libraries in what is listed in CMAKE_LIBRARY_PATH
<symphorien>
despite using --pure
<domenkozar>
try
<domenkozar>
nix-shell -p pkgsi686Linux.hello --argstr system i686-linux
johnw has quit [(Read error: Connection reset by peer)]
johnw has joined #nixos
indi_ has joined #nixos
jensens has joined #nixos
<musicmatze>
Has someone wrapped ipfs into tor on nixos already?
ixxie has joined #nixos
<musicmatze>
if not, how to? :-)
indi_ has quit [(Ping timeout: 260 seconds)]
carlosda1 has joined #nixos
matthewbauer has quit [(Remote host closed the connection)]
matthewbauer has joined #nixos
<symphorien>
domenkozar: thanks :)
<symphorien>
what is the use of "--argstr ..." if it is already specified with pkgsi686Linux. ?
carlosda1 has quit [(Ping timeout: 240 seconds)]
<domenkozar>
it's two different things
jgertm has joined #nixos
takle has joined #nixos
plumps has joined #nixos
plumps has quit [(Client Quit)]
plumps has joined #nixos
ThatDocsLady is now known as ThatDocsLady_mtg
chattered has quit [(Ping timeout: 255 seconds)]
<symphorien>
then what do those mean ?
matthewbauer has quit [(Remote host closed the connection)]
goibhniu1 has joined #nixos
jrolfs has joined #nixos
<domenkozar>
symphorien: hmm reallz what LnL suggested should work, maybe nix-shell has some guards
<LnL>
oh wait, it's probably because of the -p magic
<domenkozar>
right
goibhniu has quit [(Ping timeout: 260 seconds)]
goibhniu1 is now known as goibhniu
<domenkozar>
LnL: but doesn't still that use a template when the imports should respect system input?
<LnL>
no idea, but that would make sense
byteflame has joined #nixos
<NixOS_GitHub>
[nix] edolstra closed pull request #1302: Process nix.conf options in "new" commands, add test (master...fix/nix-options) https://git.io/vSuQt
<ocharles>
I've noticed in my shells that $SSH_AUTH_SOCK isn't set. Looking at set-environment, $SSH_AUTH_SOCK is only set if $XDG_RUNTIME_DIR is set, but that is also not set, so that might be part of the problem
vaibhavsagar has quit [(Ping timeout: 240 seconds)]
Wizek has joined #nixos
ebzzry has quit [(Ping timeout: 240 seconds)]
Wizek_ has joined #nixos
filterfish has quit [(Ping timeout: 245 seconds)]
katyucha has quit [(Ping timeout: 240 seconds)]
filterfish has joined #nixos
Filystyn has joined #nixos
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
Filystyn has quit [(Read error: Connection reset by peer)]
jrolfs has joined #nixos
Filystyn has joined #nixos
byteflame has joined #nixos
jrolfs has quit [(Ping timeout: 240 seconds)]
byteflame has quit [(Ping timeout: 252 seconds)]
<hyper_ch>
how to get KVM running on NixOS with virtmanager?
ThatDocsLady_mtg is now known as ThatDocsLady
so has joined #nixos
ThatDocsLady is now known as ThatDocsLady_afk
cmacrae has joined #nixos
<cmacrae>
Morning peeps o/
<cmacrae>
How's everyone doing? :)
matthewbauer has joined #nixos
cfricke has joined #nixos
johann__1 has quit [(Quit: Leaving.)]
eacameron has joined #nixos
stukj has joined #nixos
<LnL>
hyper_ch: virtualization.qemu.enable and enableKvm IIRC
stukj has left #nixos []
eacameron has quit [(Ping timeout: 268 seconds)]
eacameron has joined #nixos
matthewbauer has quit [(Remote host closed the connection)]
bennofs has joined #nixos
<LnL>
hyper_ch: virtualisation.libvirtd.enableKVM, not qemu aparently
eacameron has quit [(Ping timeout: 240 seconds)]
carlosda1 has joined #nixos
snikkers has quit [(Remote host closed the connection)]
m0rphism has joined #nixos
carlosda1 has quit [(Ping timeout: 240 seconds)]
bennofs has quit [(Quit: WeeChat 1.7)]
bennofs has joined #nixos
nanobapt has joined #nixos
<nanobapt>
hi there
jrolfs has joined #nixos
prose[m] has left #nixos ["User left"]
nh2 has joined #nixos
<nanobapt>
I want to use Slic3r under nixos but I have some trouble to execute it
<NixOS_GitHub>
[hydra] edolstra pushed 1 new commit to master: https://git.io/vSMaa
<NixOS_GitHub>
hydra/master 468b048 Eelco Dolstra: Revert "Move build logic for the core hydra package into its own default.nix."...
<ixxie>
nanobapt: I think a packageOverride is what you need
civodul has quit [(Ping timeout: 245 seconds)]
<nanobapt>
ixxie: and how you can look for a specific version of a package ?
<ixxie>
nanobapt: I believe each version of nixpkgs has some specific versions of all the packages, and that if you want to have a specific version you should package it yourself
<ixxie>
nanobapt: if the project is on a git repo, you can use nix-prefetch-git to find the details you need to pin the particular revision
<toppler>
Hey. Is the nixops way to get SSL keys into the VM via the deployment.keys attribute?
<nanobapt>
ixxie: don't it depend from the store version I use ?
<ixxie>
nanobapt: in the example I sent, no: it uses the fetchFromGitHub tool to create a package from a specific revision of a git repo of my choosing. The dependence here on pkgs is simply because I need fetchFromGitHub.
katyucha has joined #nixos
georges-duperon has joined #nixos
<nanobapt>
ixxie: yes ok, but if I use a different channel, it should be ok right ?
<NixOS_GitHub>
[nixpkgs] loskutov opened pull request #24841: pythonPackages.bleach: declare unix support (master...bleech-unix) https://git.io/vSMwc
civodul has joined #nixos
<ixxie>
ixxie: as long has you have access to the githubfetch thingy it should work I think
fnljk has joined #nixos
<ixxie>
nanobapt, I mean xD
<nanobapt>
ixxie: yes thxw
<nanobapt>
:)
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vSMok
<NixOS_GitHub>
nixpkgs/master 54bbf91 Nikolay Amiantov: buildFHSEnv: add ACLOCAL_PATH...
<hyper_ch>
running virtmanager it complains about nothing found
<LnL>
what's the error?
<hyper_ch>
can't say... not at that machine right now
<hyper_ch>
it complains no suitable stuff found
cmacrae has quit [(Ping timeout: 260 seconds)]
mkoenig has joined #nixos
ThatDocsLady_afk is now known as ThatDocsLady
katyucha has quit [(Ping timeout: 260 seconds)]
cmacrae has joined #nixos
cfricke has quit [(Quit: WeeChat 1.7)]
<copumpkin>
Dezgeg: any idea what all the new failures in staging are? I took a random sampling and they seemed largely spurious hydra issues, but wasn't sure if there was something else about your commits
RchrdB has joined #nixos
<Dezgeg>
I think the latest one where findutils fails seemingly spuriously causes all the rest
<Dezgeg>
it looks strange in hydra though, as they don't show up as "Dependency failed"...
<gchristensen>
is there a way force the broadcast address for an interface? I'm not seeing an option.
nanobapt has quit [(Read error: Connection reset by peer)]
carlosda1 has joined #nixos
earldouglas has joined #nixos
ThatDocsLady has quit [(Ping timeout: 255 seconds)]
<copumpkin>
do fetchgit and fetchzip now match in the common case if pointed at github?
<copumpkin>
match hash
<copumpkin>
Dezgeg: yeah that's what was throwing me off
<copumpkin>
that's a ton of red Xs
vaibhavsagar has joined #nixos
georges-duperon has quit [(Ping timeout: 252 seconds)]
carlosda1 has quit [(Ping timeout: 260 seconds)]
eacameron has joined #nixos
<SovereignBleak>
I have a package that triggers a source package build of qt-anywhere but I don't know which package it is and I don't want to rip the packages out one by one to find out. Is there a command I can use to find the perpetrator of this processor violence?
<SovereignBleak>
Triggers it on a nixos-rebuild switch that is.
eacameron has quit [(Ping timeout: 240 seconds)]
mrottenkolber has joined #nixos
<mrottenkolber>
So I have just upgraded to 17.03 and one of my modules stopped working because apparently config.environment.sessionVariables.SSL_CERT_FILE does no longer exist, was it renamed? Can anyone give me a pointer to what’s changed?
<hyper_ch>
so, I just noticed that the Iosevka font is packaged for nix. However I needed to add it in the package list settings and not the "font section" of my configuration. Why is that?
<mrottenkolber>
domenkozar: so SSL_CERT_FILE was renamed to NIX_SSL_CERT_FILE?
<symphorien>
how can I get a library compiled with an extra compiler flag ?
<domenkozar>
mrottenkolber: at least in Nix, yes
sellout- has quit [(Quit: Leaving.)]
jrolfs has joined #nixos
<mrottenkolber>
domenkozar: do you think I should keep setting SSL_CERT_FILE for backwards compatibility?
[0__0] has quit [(Remote host closed the connection)]
<domenkozar>
mrottenkolber: yes, most applications will use that
<domenkozar>
NIX_* is something we patch for curl/etc
<sphalerite>
Is there a good reason not to put absolute paths in the DT_NEEDED entries in executables built through nix? It should make executing programs take much fewer system calls as far as I understand it
takle has quit [(Remote host closed the connection)]
eacameron has quit [(Ping timeout: 252 seconds)]
<gchristensen>
domenkozar: can I borrow you for 30 minutes to an hour? I'd like to give you access to a powerful server running nixos, and I'd like to see if you think it works correctly
<gchristensen>
ok. does anyone (who I know) want to bang on an 8-core server w/ 32GB of RAM for a bit?
betaboon_ has quit [(Client Quit)]
odi has quit [(Ping timeout: 260 seconds)]
betaboon has joined #nixos
<betaboon>
Hello everyone, I am somewhat new to nixos and currently trying to package taiga-io as a nixes-service.
bennofs1 has joined #nixos
<betaboon>
Here my question: can anyone share any experiences with packaging a django-based application?
betaboon has quit [(Client Quit)]
<exarkun>
--quiet didn't suppress the output
betaboon has joined #nixos
bgamari has quit [(Ping timeout: 268 seconds)]
<copumpkin>
boo
<copumpkin>
exarkun: not sure it's possible then. Might be worth filing an issue to Nix issue tracker? It should be on stderr if you just don't want to see it
<exarkun>
yea I guess I'll change my build script to do something with stderr instead of passing it through
<exarkun>
What does -Q do?
bennofs1 has quit [(Ping timeout: 252 seconds)]
bgamari has joined #nixos
<copumpkin>
-Q makes individual builds shut up
<copumpkin>
so you only see summaries
<copumpkin>
saying "building path X"
<cmacrae>
Sup guys - so I've only very recently started using NixOS. Playing around with it on an old ThinkPad at the moment. I'd really like to have pretty much my entire configuration be declaritive. Are there any good approaches/practices/methods for storing potentially sensitive information in .nix configurations? I'd like to track my system configurations with Git and host them on GitHub, but slightly concerned about publicizing some
<cmacrae>
stuff. For instance; wpa_supplicant's 'pskRaw' hex value for some WiFi networks, or my user account's hashedPassword (yep... I know it's hashed, but still). Just wondering what others do to approach this?
<cmacrae>
(Sorry for the essay in the middle of a discussion :p)
<cmacrae>
Glad to see there's healthy, active conversation taking part around this subject
yorick has joined #nixos
aminechikhaoui has joined #nixos
<cmacrae>
On another note: I've enjoyed my short time with NixOS so much already that I'm considering changing my work laptop from a MBP (/w macOS) -> Dell XPS 13 /w NixOS
<cmacrae>
Been looking to get away from macOS for a little while now
<steveeJ>
betaboon: maybe you can look at one of the existing services that uses django? does seafile still use django? if so that would be a candidate
nanobapt has joined #nixos
carlosda1 has joined #nixos
<copumpkin>
cmacrae: if you decide to stay on macOS, there's also a lot of effort going into making that experience better, including some NixOS-style service management by LnL
bennofs1 has joined #nixos
betaboon has quit [(Quit: This computer has gone to sleep)]
<cmacrae>
copumpkin: Cool! Yeah it's already piqued my interest, as I've spent quite some time hacking around with pkgsrc on macOS. But really, I just miss BSD/Linux
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vSMb0
<NixOS_GitHub>
nixpkgs/master 8c56608 Nikolay Amiantov: unity3d: 5.3.5 -> 5.5.3...
carlosda1 has quit [(Ping timeout: 260 seconds)]
betaboon has joined #nixos
betaboon has quit [(Changing host)]
betaboon has joined #nixos
<cmacrae>
Awesome LnL
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to release-17.03: https://git.io/vSMbz
<NixOS_GitHub>
nixpkgs/release-17.03 a9fb947 Nikolay Amiantov: unity3d: 5.3.5 -> 5.5.3...
<cmacrae>
It'd be great to bring this stuff to macOS
imbeemo has joined #nixos
ixxie has joined #nixos
<LnL>
it still needs some work, but the basic stuff is there
<cmacrae>
I think my urge to switch to NixOS is primarily in wanting to get away from macOS as an OS, only encouraged by my new found love for NixOS
<schoppenhauer>
hi. I am still trying to get teamviewer work, and nobody answers my mail on the mailinglist :\ anyway I could write a patch that uses their included libraries that probably have all the required symbols, but the maintainer of the nix package probably had his/her reasons to delete it. the maintainer is "jagajaga". does anyone know him/her or whether I should contact him/her?
<the-kenny>
cmacrae: did that about three (or already four?) years ago, never looked back
eacameron has joined #nixos
<schoppenhauer>
also, I think since this is a package that not many people use, it might be better to provide it in an FHS environment
darlan has joined #nixos
<goibhniu>
cmacrae: FWIW one XPS 13 user here had problems with keys being repeated, and another had no problems at all
<schoppenhauer>
but then again, since it is also a system service, this might not be the best idea.
<schoppenhauer>
anyway, can anyone help?
<cmacrae>
the-kenny: Funnily enough, I went backwards :p Ran various Linuxes, then OpenBSD exclusively for a number of years, only to jump onto macOS and hack around on that
odi has joined #nixos
<NixOS_GitHub>
[nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/vSMNt
<NixOS_GitHub>
nixpkgs/master 635822d Domen Kožar: nixos: escape brackets in systemd units...
<cmacrae>
goibhniu: Hmm, good to hear - hopefully it's not a problem. Fortunately, I think I'm gunna get to "try it out" before making it a permanent switch
[0__0] has joined #nixos
katyucha has joined #nixos
<NixOS_GitHub>
[nixpkgs] domenkozar pushed 1 new commit to release-17.03: https://git.io/vSMNO
<NixOS_GitHub>
nixpkgs/release-17.03 7ad99e9 Domen Kožar: nixos: escape brackets in systemd units...
<schoppenhauer>
sort of "culture" to try to link everything agains the native libs from other packages. On the other hand, it is even in the debian package, so there might be actual reasons.
takle has joined #nixos
<schoppenhauer>
so if this was the only reason, I would try to patch it the way that it uses its own RTlib. because functionality is, imo, more important than saving a few kilobytes of memory. on the other hand, if there was a reason or these libraries do not work in some environments, maybe having a flag for whether or not to keep it might be the right thing.
<bennofs1>
schoppenhauer: I think debian in particular has a no-vendoring policy
<schoppenhauer>
bennofs1: yes, but it *is* included in the debian package.
dridus has joined #nixos
<bennofs1>
oh
<schoppenhauer>
bennofs1: and it is actually used. while in the corresponding nix-libraries, some symbol is not exported, which is why for me, some binary does not start
eacameron has quit [(Remote host closed the connection)]
<schoppenhauer>
I am not sure what to do about that, but I also don't really consider it worthwile for a few kilobyte RAM, if there's no other reason.
erasmas has joined #nixos
eacameron has joined #nixos
<schoppenhauer>
So what's the right thing to do? just submit a patch, and wait if anyone complains?
<schoppenhauer>
or ask the maintainer beforehand, what his reasons were?
katyucha has quit [(Ping timeout: 240 seconds)]
odi has quit [(Read error: Connection reset by peer)]
<schoppenhauer>
actually, I see the reason why not to just put it into an FHS environment: it requires a root daemon to run. *on the other hand*, there is a version not requiring installation or root. but that one maybe doesn't have the possibility to be a server.
jrolfs has joined #nixos
odi has joined #nixos
<NixOS_GitHub>
[nixops] domenkozar pushed 1 new commit to master: https://git.io/vSMxu
<NixOS_GitHub>
nixops/master bbf9a79 Niklas Hambüchen: manual: Add section on how to deploy to a machine already running NixOS (#647)
<ryantrinkle>
is there a way to make command-not-found work with a git checkout of nixpkgs-channels rather than an actual channel reference?
<disasm>
cmacrae: I have a parameters.nix file that's machine specific and in my .gitignore.
<bennofs1>
ryantrinkle: no, as the data it uses comes from file listings generated by hydra
<schoppenhauer>
gah, to patch and actually test the package, I would have to install a system daemon from a local repo.
<disasm>
cmacrae: also, I was rather impressed (made the jump about a week or two ago) with how well my macbook pro works with nixos :)
<bennofs1>
ryantrinkle: you could try https://github.com/bennofs/nix-index which will let you index everything for which hydra has builds (but the hash needs to match exactly)
eacameron has quit [(Ping timeout: 252 seconds)]
snikkers has joined #nixos
<schoppenhauer>
how can I do a nixos-rebuild switch with a single package from a local repo, but the rest from the old ones.
<ryantrinkle>
bennofs ah, nice
<ryantrinkle>
that looks good
<schoppenhauer>
ah, or more like it, how is the policy: under what conditions can I also submit pull requests to stable?
<seanparsons>
Is there a process (other than clogging Github issues) by which we can push for changes to migrate from nixpkgs master into release-X?
<mrottenkolber>
Ok, I got rid of the warning, nixops still errs with "rm: cannot remove '/var/setuid-wrappers': Device or resource busy", what could that hint to?
drasich has joined #nixos
<Filystyn>
aaaand it seems torsocks need to be anbled via configuration file
<mrottenkolber>
I am actually not sure that is the error
<cmacrae>
disasm: Yeah that Air is the exact one I have! Alright... maybe there's hope - guess I know what I'm doing tonight then!
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vSDe5
<NixOS_GitHub>
nixpkgs/master ae002d6 Tim Steinbach: Merge pull request #24845 from lsix/update_nano...
<cmacrae>
disasm: Don't suppose you've got your .nix configs up somewhere for the Air? Wouldn't mind grabbing some of the system specific options :)
Sonarpulse has joined #nixos
<symphorien>
I am writing a nix expression for a package which is built with cmake but when I list cmake in the buildInputs it triggers a sort of hook "fixing cmakelists" which fails because the CmakeLists are elsewhere. How can I disable this hook ?
aminechikhaoui has quit [(Ping timeout: 268 seconds)]
<tippenein>
while evaluating the attribute ‘nativeBuildInputs’ of the derivation
phorse` has joined #nixos
<bennofs1>
domenkozar: hmm. I don't like wrapper scripts to be honest. a stack integrated solution could use nix to build a ghc-with-packages for all deps and then just behave as if you've set resolver: ghc-resolver-using-that-ghc. Then stack could avoid going through nix-shell every time and only rebuild it if anything changed
<tippenein>
does this give me any clue where the build is breaking?
carlosda1 has quit [(Ping timeout: 240 seconds)]
<domenkozar>
bennofs1: I don't know much about intero and how it works, just wante to give a lead
imbeemo has quit [(Remote host closed the connection)]
bennofs has joined #nixos
ryanartecona has joined #nixos
georges-duperon has joined #nixos
sellout- has joined #nixos
odi has quit [(Remote host closed the connection)]
odi has joined #nixos
jrolfs has joined #nixos
betaboon has quit [(Quit: This computer has gone to sleep)]
calvertvl has joined #nixos
jsgrant_ has joined #nixos
jrolfs has quit [(Ping timeout: 260 seconds)]
<gchristensen>
when does the next weekly go out?
jsgrant_ has left #nixos []
odi has quit [(Ping timeout: 240 seconds)]
<nixy>
gchristensen: Seemingly the 14th
<gchristensen>
cool, might get this done in time ...
Itkovian_ has joined #nixos
aminechikhaoui has joined #nixos
Itkovian has quit [(Ping timeout: 245 seconds)]
Itkovian_ has quit [(Ping timeout: 260 seconds)]
drasich has quit [(Ping timeout: 240 seconds)]
xadi has quit [(Ping timeout: 252 seconds)]
xadi has joined #nixos
noah-nix has joined #nixos
<noah-nix>
Hello
<noah-nix>
Does anyone have an idea of how to solve the issue with my NixOS installation not booting?
<noah-nix>
I'd rather troubleshoot a bit more, before switching to UEFI.
<Havvy>
So, uh, kdeinit5 fails for me, but KDE4 doesn't.
katyucha has joined #nixos
byteflame has quit [(Ping timeout: 268 seconds)]
<noah-nix>
Havvy: speaking to me, or asking for help?
<Havvy>
Asking for help, I think.
<Havvy>
I'm not sure how to debug what's going on.
<Havvy>
It worked a few days ago, but now even going back to the nixos generation that worked is crashing.
<noah-nix>
Oh, okay. I'm new to Linux, so I can't probably help. What happens when it crashes? An error message or something?
aminechikhaoui has quit [(Ping timeout: 260 seconds)]
<noah-nix>
Does it switch over to the terminal screen?
aminechikhaoui has joined #nixos
mudri` is now known as mudri
xadi has quit [(Quit: Leaving.)]
darlan has joined #nixos
<mudri>
noah-nix: I probably can't help much, but what's in /etc/nixos/configuration.nix?
alx741_ has quit [(Quit: alx741_)]
bennofs has quit [(Quit: WeeChat 1.6)]
xadi has joined #nixos
xadi has quit [(Client Quit)]
alx741 has joined #nixos
xadi has joined #nixos
<Havvy>
noah-nix: Nope. I get a half-working desktop. The first notification stays up forever since whatever code to repaint after you close it doesn't load.
katyucha has quit [(Ping timeout: 252 seconds)]
<Havvy>
It segfaults twice. Once 30% through the loading bar; another 70% through.
<noah-nix>
mudri: srhb checked it yesterday and it was okay. I can paste the link from yesterday (Nix pastebin) if you'd like
<mudri>
Yeah, just so I can see what's going on.
<goibhniu>
noah-nix: I had trouble using BIOS on a particular machine (years ago), but UEFI worked. My understanding is that some machines have a BIOS compatible thing, which doesn't quite work ... maybe UEFI is worth a shot.
<noah-nix>
goibhniu: well my computer has BIOS of standard, and UEFI would be the compatibility layer.
<noah-nix>
mudri: sure, one moment, I don't have the link from yesterday so I'll create a new pastebin :-)
<noah-nix>
mudri: oh and, I've reinstalled several times
<goibhniu>
Havvy: I wonder if some rc file is referring to a path in the store ... did you try with a fresh user account?
<Havvy>
noah-nix: That says something about freetype, but I don't know if I'd be using the version they say isn't working or not.
Itkovian has joined #nixos
snikkers has quit [(Ping timeout: 240 seconds)]
<noah-nix>
Havvy: what if you type "freetype-config --cflags" in terminal? As mentioned, I'm just guessing here.
<noah-nix>
That should show the freetype version installed.
* noah-nix
will be right back, eating.
<Havvy>
freetype-config: command not found
<noah-nix>
Havvy: oh :-( then I don't know, sorry
<Havvy>
Although that's on the KDE4 bootup.
<Havvy>
Logging in as a new user worked.
<Havvy>
(Testing reboot)
<goibhniu>
Havvy: cool, there are various files e.g. ~/.config/ksmserverrc which could contain store paths ... I guess something like that is causing the problem
<goibhniu>
(grepping ~/.config for "/nix/store" will help track that down)
<Havvy>
This looks wrong: In .config/kdeglobal `dbfile=/home/havvy/.mozilla/firefox/pl0moes4.default/places.sqlite`
<nh2>
is there a current solution / convenience function to put (A) a full nixos installation or (B) a package built with nix and its dependencies, into a Docker container?
Vorpal has quit [(Ping timeout: 260 seconds)]
katyucha has joined #nixos
<simpson>
nh2: Yeah, lemme find it.
<dash>
nh2: B is fairly easy, it's dockerTools.createImage iirc
<nh2>
simpson dash: so `contents = theDerivation` simply makes sure that the image has the appropriate file system including recursive /nix/store dependencies?
<dash>
yes.
<dash>
also known as the "closure" for that package
JagaJaga has joined #nixos
<nh2>
dash: OK, so I guess it won't run systemd, so it will be the solution for question (B), right?
<dash>
simpson and I have done this for some stuff we package with nix and employed a few tricks to make the image size smaller
<dash>
nh2: I don't know how to get a full nixos system running in a container using this approach
<schoppenhauer>
I wonder how this teamviewer-package *ever* builds anywhere…
jensens has quit [(Ping timeout: 240 seconds)]
<dash>
nh2: I hadn't ever considered that as a thing someone would want actually
<simpson>
nh2: I am guessing that something defined near the top of the nixos tree could be plugged in in order to get a boot-to-systemd, but I don't know exactly how to do it.
<domenkozar>
config.build.toplevel is an attribute that has a reference to filesystem layout of /run/current-system, you'd copy that to a docker image
jgertm has joined #nixos
<dash>
domenkozar: aha.
spacefrogg has joined #nixos
<domenkozar>
there's an init in there
<bennofs1>
domenkozar: were you talking about building an auto-patchelf? or was that someone else?
<bennofs1>
domenkozar: well, I wonder, how where you planning to disambiguate between multiple possibilites? Like (zsnes.out) 0 s /nix/store/r30afcf4nww961s1yhmad4nwvrdr5h3v-gcc-5.4.0-lib/lib/libstdc++.so
<bennofs1>
(zed.out) 0 s /nix/store/k3hfmjr1xjywl45s47fb0lj3l1im05md-node-webkit-env/lib/libstdc++.so
<bennofs1>
(zed.out) 0 s /nix/store/k3hfmjr1xjywl45s47fb0lj3l1im05md-node-webkit-env/lib64/libstdc++.so
<bennofs1>
(xen.out) 0 s /nix/store/yjpc1r08wz2prykgjmikbl2m2p4vz20b-gcc-4.9.4-lib/lib/libstdc++.so
<bennofs1>
(virtualbox.out) 0 s /nix/store/m561iqcgas57rzv8z2nwb7s59zy2zgfp-gcc-5.4.0-lib/lib/libstdc++.so
<bennofs1>
(virtualbox.out) 0 s /nix/store/m561iqcgas57rzv8z2nwb7s59zy2zgfp-gcc-5.4.0-lib/lib64/libstdc++.so
<bennofs1>
(trezord.out) 0 s /nix/store/zag7bpja0fxm2r45x5xzdv8ff3rvj2nx-gcc-5.4.0-lib/lib/libstdc++.so
<bennofs1>
(suil.out) 0 s /nix/store/f0pvl01br5rm76kf2f9i8iapi01i8nr8-gcc-6.3.0-lib/lib/libstdc++.so
<bennofs1>
mentorToolchains.armLinuxGnuEabi.out 0 s /nix/store/90hmgqpz184bk3mb7akd84gwczw3mdlf-sourcery-codebench-lite-arm-linux-gnueabi-2013.05-24/arm-none-linux-gnueabi/libc/armv4t/usr/lib/libstdc++.so
jrolfs has joined #nixos
<bennofs1>
mentorToolchains.armLinuxGnuEabi.out 0 s /nix/store/90hmgqpz184bk3mb7akd84gwczw3mdlf-sourcery-codebench-lite-arm-linux-gnueabi-2013.05-24/arm-none-linux-gnueabi/libc/thumb2/usr/lib/libstdc++.so
<bennofs1>
mentorToolchains.armLinuxGnuEabi.out 0 s /nix/store/90hmgqpz184bk3mb7akd84gwczw3mdlf-sourcery-codebench-lite-arm-linux-gnueabi-2013.05-24/arm-none-linux-gnueabi/libc/usr/lib/libstdc++.so
<bennofs1>
(sherpa.out) 0 s /nix/store/1z9x2lrvbr6yzn3xvbh03wz50q2kwqfw-gfortran-5.4.0-lib/lib/libstdc++.so
<bennofs1>
(platformio.out) 0 s /nix/store/f0nbx395cn809xm5lr2ai18xc0w0s3ma-platformio-usr-multi/lib/libstdc++.so
<bennofs1>
(platformio.out) 0 s /nix/store/8fkmz592f21b4zmng3wqn62lqcmnipkm-platformio-usr-target/lib/libstdc++.so
<bennofs1>
(platformio.out) 0 s /nix/store/8fkmz592f21b4zmng3wqn62lqcmnipkm-platformio-usr-target/lib64/libstdc++.so
<bennofs1>
(platformio.out) 0 s /nix/store/yrp146nxnilvs4yavl0v3aa1y22hikxn-platformio-fhs/usr/lib32/libstdc++.so
bennofs1 was kicked from #nixos by gchristensen [(bennofs1)]
<bennofs1>
(platformio.out) 0 s /nix/store/yrp146nxnilvs4yavl0v3aa1y22hikxn-platformio-fhs/usr/lib64/libstdc++.so
<bennofs1>
(pdftk.out) 0 s /nix/store/yy1df1lqvv0c1r3yi7q99wsxs5lvs6wb-gcj-4.9.4/lib/libstdc++.so
<bennofs1>
libstdcxx5.out 0 s /nix/store/08qm110as8dxq55dkx55lip2mlg41yfm-libstdc++5-3.3.6/lib/libstdc++.so
<bennofs1>
(habitat-sh.out) 0 s /nix/store/fnxcbvpxjmr2lgrx3i4sd1vx01zs0vy9-habitat-sh-fhs/usr/lib32/libstdc++.so
<Havvy>
;.;
<bennofs1>
(habitat-sh.out) 0 s /nix/store/fnxcbvpxjmr2lgrx3i4sd1vx01zs0vy9-habitat-sh-fhs/usr/lib64/libstdc++.so
<bennofs1>
(habitat-sh.out) 0 s /nix/store/hqhwl3br4jbfgz9ybf6fcmrmmcd94g3p-habitat-sh-usr-target/lib/libstdc++.so
<bennofs1>
(habitat-sh.out) 0 s /nix/store/hqhwl3br4jbfgz9ybf6fcmrmmcd94g3p-habitat-sh-usr-target/lib64/libstdc++.so
<bennofs1>
(gfortran48.out) 0 s /nix/store/cvb4bpssrafihzdnxq6vxqmbbhrjqdjx-gfortran-4.8.5-lib/lib/libstdc++.so
<bennofs1>
(gcc-snapshot.out) 0 s /nix/store/lwcmqqx0xd930hwnv322zksjyfmvyd54-gcc-7-20161211-lib/lib/libstdc++.so
<bennofs1>
(gccgo.out) 0 s /nix/store/1zqyvb5xzxszqyrdvk9dslykr1v1lnxx-gccgo49-4.9.4/lib/libstdc++.so
<bennofs1>
(gfortran49.out) 0 s /nix/store/m9qwh6xrqi5phifjm8z4xi81ngkdp281-gfortran-4.9.4-lib/lib/libstdc++.so
<gchristensen>
omg
<bennofs1>
(gfortran6.out) 0 s /nix/store/gcnk03x7g07jnk6z4iwv7znzfrmwni5a-gfortran-6.3.0-lib/lib/libstdc++.so
<bennofs1>
(gcc45.out) 0 s /nix/store/n5sj9j3jy5g8c53azq19y5iba4cpnjfl-gcc-4.5.4/lib/libstdc++.so
<bennofs1>
(gcc48.out) 0 s /nix/store/y7ss1l9mwgw72rgnnfl6xpzj0lmldggp-gcc-4.8.5-lib/lib/libstdc++.so
<bennofs1>
gcc-unwrapped.lib 0 s /nix/store/mpi06h1i531wdjrmp6dnq4hwyrm52hcy-gcc-5.4.0-lib/lib/libstdc++.so
<bennofs1>
(gcc_debug.out) 0 s /nix/store/wg8iq8wnw5pxhmf1mlpdxsv92pxpbwly-gcc-debug-5.4.0-lib/lib/libstdc++.so
<bennofs1>
(brackets.out) 0 s /nix/store/xr0nh4q8dysipi410g74yvm9skdb81b2-env-brackets/lib/libstdc++.so
<bennofs1>
(brackets.out) 0 s /nix/store/xr0nh4q8dysipi410g74yvm9skdb81b2-env-brackets/lib64/libstdc++.so
<nh2>
I like how it posts one per second
<bennofs1>
(android-studio.out) 0 s /nix/store/zpkiclbmlz8x5xs7gnl8vgyfjq058yyl-android-studio-fhs-env-fhs/usr/lib32/libstdc++.so
<bennofs1>
(android-studio.out) 0 s /nix/store/zpkiclbmlz8x5xs7gnl8vgyfjq058yyl-android-studio-fhs-env-fhs/usr/lib64/libstdc++.so
<bennofs1>
(android-studio.out) 0 s /nix/store/3jkn3sym9xjna2784cdlxbys668lxkgq-android-studio-fhs-env-usr-target/lib/libstdc++.so
<bennofs1>
oh sorry! :(
* Havvy
blames the IRCd.
bennofs has joined #nixos
<dash>
gchristensen: out of practice i see ;-)
<gchristensen>
yup :P
<domenkozar>
bennofs: so my idea was to gather statistics about how many times a package is referenced
<bennofs>
sorry for the spam
<dash>
i wish more irc clients had irssi's paste guard
<gchristensen>
I haven't had to use +o very much since I stopped frequenty PHP
<domenkozar>
then provide a preview what would be picked
<nh2>
domenkozar: let me check if understand it right. If I declare a package, put systemd into the buildInputs, and then somehow put the config.build.toplevel of that package into `buildImage.contents`, I could "boot" that systemd?
<simpson>
gchristensen: I think that +q would have worked on Freenode. Not sure though.
<dash>
yeah, +q is the typical thing
<gchristensen>
it would have but I was going to have to look up the syntax
teknico has left #nixos []
<domenkozar>
nh2: you'd have to probably do more work to get NixOS to boot inside the container
<nh2>
dash: in trusted systems, it can be convenient to use Docker only as a resource isolation / scaling solution, e.g. when running your own software on your own Kubenetes
<domenkozar>
nh2: that's just a tip where to start
<exarkun>
nh2: You probably also have to a bunch of other hacks because systemd doesn't really want to run in Docker.
<bennofs>
I need to investigate why my client didn't warn me though
<bennofs>
it normally does when pasting more than 3 lines
<dash>
nh2: sure, but isn't that what docker is already
<exarkun>
nh2: The more common thing is to just put the specific application you want into a Docker image and run it without an init-like system.
<nh2>
dash: well by default it runs only 1 executable, not an entire process tree nicely
<simpson>
nh2: That just means that your one executable needs to know how to spawn subprocesses, in a certain POV.
<nh2>
exarkun: right, that's a microservice then though, and you can't use the convenient `services.*` helpers to build how the parts work with each other
<exarkun>
nh2: Why do you want to run lots of processes in one container?
digitus has joined #nixos
<gchristensen>
systemd can't run in docker
<schoppenhauer>
I am currently trying to figure out what is calling a specific file in the teamviewer-build. is there a default thing that the setup does with extracted debian packages?
<gchristensen>
there are other init systems sometimes used in docker, like tini
<nh2>
gchristensen: OK, I simply assumed it can by now, so then (A) is not yet possible
<gchristensen>
right
katyucha has quit [(Ping timeout: 240 seconds)]
rmrfroot has joined #nixos
<gchristensen>
which, why would you? if you want that, you want like Virtuozzo or openvz
zeus_ has joined #nixos
<Havvy>
Welp. Without doing anything other than creating a new user and logging in as that user, I can now log into my user without kdeinit5 crashing. X.X
ixxie has quit [(Ping timeout: 240 seconds)]
<nh2>
gchristensen: simply because of available tooling, it is very easy to just use a kubernetes farm as a cheap VM hosting platform
<gchristensen>
I spose
<dash>
nh2: alas, containers are not VMs :-[
<simpson>
nh2: Well, sure, but why not just put your IRC client or whatever into its own container?
<nh2>
simpson: it's not always easy with the subprocess, there are ugly things like reparenting: When you spawn some subprocesses which spawn other subprocesses, and some in the middle die, then they get reparented to init, which in that case would be your program; most programs are not expecting to get other deep processes reparented to themselves, typically only real init systems handle tha tproperly
* dash
grumbles something about how IBM figured all this out in the 70s
<simpson>
nh2: Well, yes, but if I start pointing out antipatterns, I'm going to have to include Docker, systemd, the idea of PID 1, the idea of PIDs and kernels... Computers are bad, I suppose.
<gchristensen>
yeah computers are bad
<nh2>
no questions about that
<nh2>
of course we're all eager to run nix on Redox OS
<noah-nix>
mudri: I'll pastebin the file now. :-)
cmacrae has quit [(Ping timeout: 268 seconds)]
<dash>
nh2: someone started porting it to genode...
<simpson>
nh2: I am viewing all memory-unsafe technologies as transitional. That includes Rust. Someday we will boot to capability-safe environments and I will not miss C.
<gchristensen>
right after we migrate off cobol
<noah-nix>
mudri: did you want to check the configuration.nix , or the hardware-configuration?
<Dezgeg>
hey, wasn't cobol memory safe? :-)
<simpson>
Dezgeg: My main gripe with COBOL is that it was a transitional language between unstructured and structured programming. So it still has stuff like GOTO. And ALTER, which is a runtime-computed GOTO.
<mudri>
noah-nix: just configuration.nix. I've never really read a hardware-configuration.nix.
<simpson>
But yes, it was a memory-safe jewel for its era. Really, memory-safety has been around for a while. FORTRAN was quite memory-safe compared to BCPL and C. It's weird that we haven't demanded it more often.
<gchristensen>
and ifort is really a gem of a compiler
<gchristensen>
(and priced accordingly)
<nh2>
simpson: why does Rust go into your transitional category, because of `unsafe`?
endformationage has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
<simpson>
nh2: Right. unsafe-blocks are a blessed part of the language, which means that Rust can't guarantee certain safety properties in third-party code.
<noah-nix>
mudri: alright. Here it is: nixpaste.lbr.uno/V-1WbNjF?nix
<gchristensen>
I have some extremely unsafe rust code that rust calls safe lol
<gchristensen>
(it is my own fault for not calling it unsafe, but this is a thing that you can do, and I could go ahead and publish this as a crate and nobody would know)
simukis_ has quit [(Quit: simukis_)]
<simpson>
So, if you could imagine Unsafe Java, a fork of Java which gives you unsafe-blocks for accessing private/protected members...
<simpson>
It would be unsafe, right? But regular Java is unsafe in the same way.
noah-nix_ has joined #nixos
<Havvy>
gchristensen: We could read the source and see the unsafe{} there.
<nh2>
simpson: that doesn't sound like a fundamental flaw though. I imagine that as the language evolves, there will be less and less `unsafe` and tooling can solve the remainders, just like SafeHaskell solves it for Haskell
<simpson>
So we can imagine a language which is *post* transition and simply: Doesn't have unsafe-blocks, and doesn't let you violate access modifiers, period.
<mudri>
noah-nix: and you're following the manual, I'm guessing?
<noah-nix_>
mudri: I had to switch to another PC, the previous one I was chatting on was way too slow. Did you receive the link_
<noah-nix_>
mudri: yeah
<mudri>
Yep.
<noah-nix_>
mudri: I have tried both the short and the detailed manual.
<rmrfroot>
i have a vague memory that there is a top-level go-packages.nix in nixos, but can't find it. have i been dreaming?
<simpson>
nh2: Those are incremental transitional steps. I envision (and indeed, have written) a language where we have simply encoded the best practices of safety into the language semantics.
indi_ has joined #nixos
<gchristensen>
Havvy: you could
Itkovian has quit [(Ping timeout: 240 seconds)]
<Havvy>
simpson: Except that things like Vec would have to become primitives in said language.
<simpson>
Havvy: Yes, and for a practical look at that kind of memory model, check out the Pony language.
<simpson>
Havvy: And this is why I normally work in GC'd languages. Abstracting memory means that I don't have to worry about it.
noah-nix has quit [(Ping timeout: 260 seconds)]
<noah-nix_>
Did the file look as it should? If it did, I presume I will have to switch to UEFI and try. I have waited with that since, switching to UEFI creates some weird partitions on my HDD named "EZ-Drive".
<rmrfroot>
bennofs: ah, that makes sense! thank you
<simpson>
Ditto with cap-safe languages. Abstracting the object graph and removing the ability to access privates means that we don't have to worry about whether or not we'll have an access violation.
cfricke has joined #nixos
sellout- has joined #nixos
<bennofs>
rmrfroot: git log --grep go-packages helps in this case :)
<dash>
nh2: The tricky part is that in general, you can't get to security by starting with an insecure system and removing stuff.
<noah-nix_>
But I would rather not switch because it should work with legacy bios! I think all distros I have tried previously have worked fine with legacy bios. Also my dad will have NixOS as well, and his computer has legacy BIOS
lsix has quit [(Quit: Konversation terminated!)]
<nh2>
dash: in general, no. In c, you couldn't, as removing [] would break all code. But if the compiler has explicit support for that, then you can
<noah-nix_>
Would this require submitting a bug in the Github, perhaps?
indi_ has quit [(Ping timeout: 260 seconds)]
<noah-nix_>
Since no-one here seems to know the solution of this issue.
<gchristensen>
noah-nix_: you could try github, or the mailing list
<gchristensen>
nixos does work with legacy bios for sure, but I think defaults to efi if the computer is capable
<noah-nix_>
gchristensen: I do not have UEFI enabled though.. so it should not detect that..
mck has joined #nixos
<noah-nix_>
gchristensen: can this be done without an email address?
<gchristensen>
I doubt it
<noah-nix_>
Okay
ambro718 has joined #nixos
<rmrfroot>
bennofs: yeah, definitely! :) can't believe it was almost a year ago
simukis_ has joined #nixos
<noah-nix_>
Can a bug be submitted from this IRC bot?
<noah-nix_>
Is there a way for me to file a bug without email?
<noah-nix_>
I currently do not have an email address since I am switching from ISP to ProtonMail.
<rmrfroot>
going to package a gdrive cli application, would `pkgs/applications/networking` be a suitable place?
<gchristensen>
if you write up your issue as an anonymous pastebin, I'll submit it for you noah-nix_
<gchristensen>
noah-nix_: can you include any log messages as well as your configuration files?
<gchristensen>
noah-nix_: on second thought, I'm starting to wonder if it would be better to wait for you to get your protonmail account
mudri has quit [(Ping timeout: 260 seconds)]
<noah-nix_>
gchristensen: okay. I will probably wait with it then. Thanks anyways!
<noah-nix_>
Is there no other place I could ask for help?
<noah-nix_>
Like #nix
<gchristensen>
this, the mailing list, and the github issue tracker are about it
<noah-nix_>
So there is no #nixos-admin like?
<gchristensen>
this is it
<noah-nix_>
ok
carlosda1 has quit [(Ping timeout: 255 seconds)]
<noah-nix_>
can I ping someone who might know the solution? if so, who?
<gchristensen>
I think you might get the best help by sending mail to the mailing list
<noah-nix_>
gchristensen: alright
<schoppenhauer>
how can I enforce a rebuild of a package? I already tried uninstalling and nix-collect-garbage. --repair is not supported through nix-daemon it says.
<gchristensen>
schoppenhauer: nix-build with --check
<Havvy>
Alright. What causes kdeinit5 to crash as one user but not as another?
<bennofs>
Havvy: files in $HOME ?
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vSD2G
<NixOS_GitHub>
nixpkgs/master 3fa5605 Joachim Fasting: grsecurity: 4.9.21-201704091948 -> 4.9.22-201704120836
<noah-nix_>
gchristensen: I have created a temporary hotmail account for this. What is the Mailing list address?
<schoppenhauer>
gchristensen: error: Package ‘Agda-Sheaves-8a06162a8f0f7df308458db91d720cf8f7345d69’ in ‘/home/christoph/nobackup/nixos-unstable-teamviewer/nixpkgs/pkgs/development/libraries/agda/Agda-Sheaves/default.nix:18’ is marked as broken, refusing to evaluate.
<gchristensen>
schoppenhauer: you're trying to build everything apparently, you'd add --check to your existing nix-build command
<gchristensen>
^ could we have a "stub" broken package named "you-are-trying-to-build-everything"
<schoppenhauer>
gchristensen: I did use nix-env -f ... -i ... before
<schoppenhauer>
gchristensen: now I use nix-build --check /home/christoph/nobackup/nixos-unstable-teamviewer/nixpkgs teamviewer
<gchristensen>
-A teamviewer should do it
jrolfs has quit [(Ping timeout: 240 seconds)]
<schoppenhauer>
gchristensen: ah thx
<schoppenhauer>
gchristensen: now I get a result/ directory. is it also installed?
<Filystyn>
anyone was successful with
<gchristensen>
no, schoppenhauer, but you can nix-env -i ./result/
<Filystyn>
using torsocks ?
<schoppenhauer>
gchristensen: thx
<NixOS_GitHub>
[nixpkgs] rzetterberg opened pull request #24848: gdrive: init at 2.1.0 (master...master) https://git.io/vSDaM
<taktoa>
Is there an attribute `foo` such that for any nixpkgs checkout `n`, `(import n {}).foo == n`?
<taktoa>
i.e.: a way to get from pkgs back to the path from which it was computed?
ma9e has joined #nixos
<taktoa>
hmm now that I think about it I might be able to carefully abuse meta.position (unsafeGetAttrPos) to compute such a thing
flohsor has quit [(Ping timeout: 240 seconds)]
<gchristensen>
taktoa: look at line 143 of pkgs/stdenv/generic/default.nix
<gchristensen>
oh there you go :P
<taktoa>
oh, apparently pkgs.path is a thing
byteflame has quit [(Ping timeout: 260 seconds)]
<gchristensen>
ikwildrpepper: ping (#3)
davidak has joined #nixos
<schoppenhauer>
hm. how can it be that a library can be loaded when its path is in LD_LIBRARY_PATH, but not when it is in the rpath?
<taktoa>
oh, I've had that before, but I'm totally forgetting the cause
<bennofs>
schoppenhauer: rpath does not propagate to dependencies
<bennofs>
schoppenhauer: while LD_LIBRARY_PATH does. or something like that
<schoppenhauer>
bennofs: ok
<bennofs>
schoppenhauer: check output with env LD_DEBUG=all to be sure
rmrfroot has quit [(Read error: No route to host)]
JagaJaga has quit [(Ping timeout: 268 seconds)]
<noah-nix_>
How long do you usually have to wait for a reply in mailing list?
<gchristensen>
noah-nix_: typically as long as it takes
<noah-nix_>
gchristensen: and how long approximately?
<nixy>
noah-nix_: Until somebody decides to respond
<bennofs>
noah-nix_: it really varies
johnw_ has joined #nixos
jrolfs has joined #nixos
gk_1wm_su has joined #nixos
gk_1wm_su has left #nixos []
<copumpkin>
noah-nix_: like most FOSS it's a community of volunteers, so it depends on (probability someone knows how to answer * probability they see your question * how willing they are to take their free time to answer it)
ryanartecona has joined #nixos
<noah-nix_>
oh hi copumpkin
<noah-nix_>
yeah
<Havvy>
noah-nix_: Do you know how to get drkonqi working on NixOS?
<noah-nix_>
Havvy: sorry, unfortunately not, tbh I have never used NixOS except the live environment on the install DVD, but I will do some research on the internet.. don't expect much tho..
<Havvy>
I've already done research and I'm not finding anything.
<Havvy>
Something about disabling some plasmoids I don't have.
<LnL>
urgh, I want a redirect for nixos.org/manual/nixos
<noah-nix_>
Have you tried reinstalling KDE?
<NixOS_GitHub>
[nixpkgs] bennofs opened pull request #24850: haskell-packages: factor package set construction into new file (master...haskell-make-package-set) https://git.io/vSDKK
<Havvy>
That's not really possible? It's all in the /nix/store. I did switch to an older NixOS generation that had KDE4 and that worked...
byteflame has joined #nixos
JagaJaga has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 3 new commits to master: https://git.io/vSDKX
<NixOS_GitHub>
nixpkgs/master a883581 Joachim Fasting: suitesparse_4_2: remove bogus NIX_CFLAGS...
<NixOS_GitHub>
nixpkgs/master 540a641 Joachim Fasting: suitesparse_4_4: NIX_CFLAGS -> NIX_CFLAGS_COMPILE...
<NixOS_GitHub>
nixpkgs/master 13a0ad3 Joachim Fasting: opal: NIX_CFLAGS -> NIX_CFLAGS_COMPILE...
<noah-nix_>
Havvy: maybe something's wrong with qt5..
<noah-nix_>
just guessing now, haven't worked before hahah
<Havvy>
It was working two days ago.
<Havvy>
This only started yesterday when the disk got full.
gk_1wm_su has joined #nixos
<gchristensen>
what fs are you using?
<Havvy>
gchristensen: ext3 I think?
gk_1wm_su has left #nixos []
<Havvy>
Nope, ext4.
<noah-nix_>
Havvy: yeah, that is what the manual says
<noah-nix_>
ext4
jsgrant has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[at]jsgrant.io & I'll try to get back to you within 24 hours.)]
<gchristensen>
hrm :/
sellout- has quit [(Quit: Leaving.)]
<Havvy>
If I could install drkonqi, I could figure out more information. But I don't see how to do so.
jrolfs has quit [(Ping timeout: 240 seconds)]
athan has quit [(Remote host closed the connection)]
alex-v has joined #nixos
cfricke has quit [(Quit: WeeChat 1.7)]
<alex-v>
Hi, I am getting different versions of R in nix-shell -p R (3.2.3) and nix-env -i R (3.3.3). Any reason why?
bennofs has quit [(Ping timeout: 252 seconds)]
<Havvy>
alex-v: nix-shell uses the NixOS packages by default, not your user profile.
bennofs has joined #nixos
bennofs has quit [(Client Quit)]
derjohn_mob has joined #nixos
<alex-v>
Havvy: I ran update-channels for the admin account (I am on unstable) which is my default profile. Shouldn't I get the latest R there?
<NixOS_GitHub>
[nixpkgs] laMudri opened pull request #24851: thunderbird: add option to enable calendar (master...thunderbird-calendar) https://git.io/vSDi7
aminechikhaoui has quit [(Ping timeout: 260 seconds)]
ThatDocsLady has quit [(Ping timeout: 260 seconds)]
sigmundv_ has joined #nixos
<tippenein>
I'm not explicitly using nativeBuildInputs, why is the dep failing here? http://lpaste.net/354541
<tippenein>
I got that with --show-trace, otherwise it just says I'm missing ghcjs-base
ma9e has quit [(Remote host closed the connection)]
<spacefrogg>
schoppenhauer: AFAIK it is responsible for runtime resolution of library dependencies
gbbrt has joined #nixos
<c74d>
"2017-04-12 13:07:39 <mbrock> maybe someone with experience packaging Rust programs in nixpkgs instantly recognizes the problem with this build? https://travis-ci.org/NixOS/nixpkgs/jobs/220878423" — that looks like depsSha256 mismatch; usually, as I understand it, one `nix-build`s the package once, the build fails with that error, one copies the hash it says the "-fetch" derivation has into the package's
<c74d>
`depsSha256` field, then `nix-build`s it again to confirm that the hash works
gbbrt has quit [(Remote host closed the connection)]
<c74d>
I would guess that you didn't perform the testing step specified in nixpkgs manual section 13.1 ("Making patches"; <https://nixos.org/nixpkgs/manual/#idm140737318467184>), which should have caught the error before it got to Travis
bennofs has joined #nixos
ertesx has joined #nixos
betaboon has joined #nixos
ertes has quit [(Ping timeout: 240 seconds)]
ertesx is now known as ertes
ThatDocsLady has joined #nixos
mrottenkolber has left #nixos []
<copumpkin>
shlevy: almost stumped on these installer test woes
<copumpkin>
:(
<copumpkin>
too many stores at play
<bennofs>
how can I clean unused derivations in /nix/store ?
<copumpkin>
nobody should have to think about 3 distinct nix stores in a single test
<cmacrae>
disasm: So, no luck booting NixOS on my 2011 MacBook Air :/ Still the same problem
<cmacrae>
Just goes straight to a black screen after the bootloader
<cmacrae>
It's weird...
<schoppenhauer>
hm. ok. now I need assistance. I changed the teamviewer package such that it works. at least the client part. before sending a pull request, I would like to test the teamviewer-daemon as well. but for the one part, I fail to add the unstable package to environment.systempackages; for the other part, there is also a teamviewer-service, services.teamviewer.enable = true;
gk_1wm_su has joined #nixos
<schoppenhauer>
and I have no clue how to use its unstable counterpart in my system
gk_1wm_su has left #nixos []
sivteck has joined #nixos
<schoppenhauer>
https://pastebin.com/5LvigHag this is how I currently try it. but it doesn't work. "error: value is a function while a set was expected" for tvpkgs.teamviewer
<schoppenhauer>
and as I said, no clue what to do about the service
katyucha has joined #nixos
taktoa has quit [(Remote host closed the connection)]
snikkers has joined #nixos
<copumpkin>
niksnut: I think only option is to switch all of nixpkgs to clang
<copumpkin>
then all will be good again
<gchristensen>
niksnut: it ikwildrpepper on vacation? :)
katyucha has quit [(Ping timeout: 260 seconds)]
byteflame has quit [(Ping timeout: 240 seconds)]
<sphalerite>
Dezgeg: just have to say I'm amazed that you jumped straight onto the issue and wrote a patchelf patch on my issue within 3 hours
carlosda1 has joined #nixos
nckx has joined #nixos
byteflame has joined #nixos
carlosda1 has quit [(Ping timeout: 260 seconds)]
<copumpkin>
!m Dezgeg
<[0__0]>
You're doing good work, Dezgeg!
<copumpkin>
such a useful bot
<gchristensen>
!m Dezgeg
<[0__0]>
You're doing good work, Dezgeg!
<gchristensen>
!m [0__0]
<[0__0]>
You're doing good work, [0__0]!
sivteck has quit [(Read error: Connection reset by peer)]
mog has quit [(Read error: Connection reset by peer)]
gk_1wm_su has joined #nixos
gk_1wm_su has left #nixos []
<NixOS_GitHub>
[hydra] domenkozar pushed 1 new commit to master: https://git.io/vSDde
<NixOS_GitHub>
hydra/master fed37ea Shea Levy: nix-prefetch-git: Only remove .git, not e.g. .gitkeep (#454)
xadi has quit [(Quit: Leaving.)]
johnw_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
AllanEspinosa has joined #nixos
mekeor has joined #nixos
johnw_ has joined #nixos
<mekeor>
is there something like an unfree nixos-installation image? i'd like to be able to `modprobe nvidia` instantly after booting the image (from usb-stick).
<gchristensen>
you can make your own installer
odi has quit [(Remote host closed the connection)]
<copumpkin>
anyone wanna help me think through a super weird installer test puzzle? Dezgeg, shlevy? :)
<gchristensen>
I'll listen at least
<davenull>
LnL, Just put they key in between brackets?
<copumpkin>
so: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/installer.nix#L132 is the source of all my pain :( right above the line above that copies into configuration.nix, I'm able to run (as an ad-hoc adjustment to the test script) `nix-build '<nixpkgs/nixos>' -A config.system.build.installBootLoader` and it returns a particular hash. As soon as I change configuration.nix, it has a new hash, and I can't figure out why. The new
<copumpkin>
configuration.nix doesn't seem to change anything that would affect it
<davenull>
s/bracket/brace/
snikkers has quit [(Ping timeout: 240 seconds)]
<MichaelRaskin>
copumpkin: have you diffed the dependency graph?
carlosda1 has quit [(Ping timeout: 260 seconds)]
flohsor has joined #nixos
<copumpkin>
MichaelRaskin: that's probably my next step, it's just painful because it all happens inside a VM after the somewhat lengthy install process :)
<MichaelRaskin>
(of .drv)
<gchristensen>
copumpkin: would you like a way to make your vm faster?
Filystyn has quit [(Quit: Konversation terminated!)]
<LnL>
not sure
mck has joined #nixos
<mck>
Hello! I am wondering if anyone here is running Sway on their nixos installation and could detail how they are doing so
<LnL>
davenull: /etc/ssh/authorized_keys.d
<copumpkin>
gchristensen: cool, unfortunately I don't think any of what this is doing is parallel :( but good to know for future
<gchristensen>
I found it helped a lot anyway
<sphalerite>
mck: I tried it once but it didn't work well enough to replace i3/X
<NixOS_GitHub>
[nixpkgs] edanaher opened pull request #24854: acme: Add "domain" option to separate domain from name (release-17.03...add-acme-domain) https://git.io/vSyTc
katyucha has quit [(Ping timeout: 245 seconds)]
Guest60 has quit [(Quit: My Mac Pro has gone to sleep. ZZZzzz…)]
<davenull>
Lnl, ok, the key is in there, and it appears to be the correct one, but it doesn't use the key when I try and ssh.
snikkers has joined #nixos
<copumpkin>
niksnut: have you switched nixpkgs to clang stdenv yet? :)
<gchristensen>
bahaha
stew has joined #nixos
dlight has joined #nixos
dlight has quit [(Changing host)]
dlight has joined #nixos
k2s has quit [(Ping timeout: 252 seconds)]
<nh2>
then we could at least link very fast
<davenull>
Any trick to get it working that anyone knows?
MP2E has joined #nixos
lucasOfBesaid has joined #nixos
flohsor has quit [(Ping timeout: 268 seconds)]
<nh2>
davenull: do you have an ssh-agent running? Is it the default key in `~/.ssh/id_rsa.pub`? Did you make sure to put in the pubkey, and not accidentally the private key? Does ssh -v produce some useful output? Does `ssh -i /path/to/privatekey` help?
ambro718 has joined #nixos
<davenull>
nh2, -vvvvv doesn't show an error, it sends the key to the server, a type 50 packet gets sent, a 51 gets sent back, and then password.
<copumpkin>
MichaelRaskin: arrrrgh, --tree output does not have a consistent ordering, so not very useful for diffing
<davenull>
Is strict mode enabled by default.
<davenull>
?
<copumpkin>
MichaelRaskin: and I can run through sort but then I lose the structure
<MichaelRaskin>
copumpkin: well, what's the depth?
<MichaelRaskin>
You could ask for _direct_ dependencies first
<MichaelRaskin>
(and sort them)
<copumpkin>
it's a big tree because it's of the .drv, which goes all the way back to bootstrap tools
<copumpkin>
but yes, I can definitely work around it
<copumpkin>
just even more pain :)
<davenull>
ffering RSA public key: .ssh/id_rsa.pub
<davenull>
debug3: send_pubkey_test
<davenull>
debug3: send packet: type 50
<davenull>
debug2: we sent a publickey packet, wait for reply
<MichaelRaskin>
--tree is not that useful after a certain point
<copumpkin>
curious, how will you diff the graphs? going to rerun again soon with --graph
Itkovian has joined #nixos
<MichaelRaskin>
Default plan: list the nodes, diff, grep the corresponding edges, draw
<MichaelRaskin>
Fallback plan: the same but draw the full graph and recolor
<nh2>
davenull: hmm, can you show how you declare the key config in your nix file?
takle_ has quit [(Remote host closed the connection)]
<davenull>
nh2, I have gone through and checked permissions on my local machine's user folder and the .ssh folder, no solution to be had there. I have a user named birdie, and in /etc/ssh/authorizedKeys.d/ I have a file called birdie, that contains the private key.
<davenull>
s/private/public
<bennofs>
shouldn't nix-store --gc --print-roots | cut -d' ' -f1 | xargs nix-store -qR | xargs du -ch be about the same size as my /nix/store ?
plumps has joined #nixos
<plumps>
yey, finally got portmidi ported to macOS
<copumpkin>
MichaelRaskin: it appears to not be consistent about assigning colors, so lots of spurious diffs in there too, even after sorting :)
<copumpkin>
MichaelRaskin: although it becomes clearer if I strip the attributes in [] and then sort
<benley>
Anyone know if there's a function that does the opposite of lib.getVersion? e.g. getVersion "foo-1.2" == "1.2", but what I want is stripVersion "foo-1.2" == "foo"
cpennington has quit [(Remote host closed the connection)]
<copumpkin>
MichaelRaskin: so I think it's just grub-config.xml.drv, which makes sense I guess based on that configuraiton.nix
<benley>
oh gah, answered my own question already. builtins.parseDrvName.
<MichaelRaskin>
Well, first sort/uniq the result of cut -d ' ' 0f 1
<MichaelRaskin>
-f 1
<bennofs>
MichaelRaskin: i did that
<bennofs>
MichaelRaskin: I now tried nix-store --gc --print-live | sort > /tmp/live
<copumpkin>
MichaelRaskin: yeah it's definitely grub-config.xml :) thanks for pushing me to use --graph
<bennofs>
seems to be mostly derivations
<MichaelRaskin>
bennofs: I was replying to copumpkin, even if cut -f1 sort uniq is generic enough…
<copumpkin>
that's always the answer :D
<bennofs>
oh, perhaps I should set gc-keep-derivations = false...
<ma9e>
is there a convention for having a git version and a release version of a package?
<MichaelRaskin>
There should be a reason to package the git version, but that is usually not a very high bar to clear — just nonzero
<MichaelRaskin>
Versioning can be complicated… Basically git package should get a version that sorts correctly with other git-derived versions and with actual releases
<ma9e>
well, do you think there'd be an issue with building i3 from git?
<ma9e>
and could we leave the possibility to choose between git and release tarball?
<Ralith>
I think you'd need a very strong reason to have both git and release versions
<Ralith>
it's easy for you to locally use a git version if you want that for your own purposes
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<MichaelRaskin>
Well, loPrio for git snapshot and -iA for those who want to force choice is the standard paractice
<MichaelRaskin>
practice
<MichaelRaskin>
What is the benefit of i3 trunk?
<ma9e>
the usual :/ just more/newer/occasionally broken-er features
<MichaelRaskin>
Any specifics? Because, I mean, it is always easy to overrideDerivation and replace src
<ma9e>
i was trying to debug something for airblader so i needed to build from next
<ma9e>
fair enough :)
<ma9e>
still learning nix so i haven't explored overrideDerivation. feel like i jumped a huge hurdle just navigating nixpkgs
<MichaelRaskin>
I mean, you don't need to clone/edit/diverge the main expression, just apply specific override
<copumpkin>
use overrideAttrs over overrideDerivation nowadays
<copumpkin>
overrideAttrs is what overrideDerivation should have been
<copumpkin>
same interface, but far more pleasant to use
<ma9e>
okay, i'll take a look :) thanks guys!
<LnL>
^ overrideDerivation has some strange edgecases
<ma9e>
it's all starting to feel strangely familiar to me so that's a good sign, maybe <3
davenull has quit [(Read error: Connection reset by peer)]
<MichaelRaskin>
Hm, I remember when I provided full overridability for builderDefs and that was commented on as obviously too much override possibilities
<MichaelRaskin>
On the other hand, Nix has infix addition of integers now, so things are slowly drifting
dridus has joined #nixos
Mateon1 has quit [(Remote host closed the connection)]
Mateon1 has joined #nixos
k2s has quit [(Remote host closed the connection)]
<benley>
wha - there was a time when nix did not have infix binary ops?
<MichaelRaskin>
It did have + for concatenating strings just fine
<NixOS_GitHub>
[nixpkgs] plumps opened pull request #24855: added macOS compatibility to portmidi-3.17, java situation is unchanged (master...portmidi-darwin) https://git.io/vSysH
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<MichaelRaskin>
But I think that _integer_ addition was a primop before being infix
<benley>
oh, just not integer arithmetic
YellowOnion has quit [(Read error: Connection reset by peer)]
<benley>
got it
<benley>
I hear nix 1.12 even has floating point support now, which is neat
<MichaelRaskin>
Ouch ouch ouch
<benley>
I don't have a use for that now but I wanted it a few years ago
<MichaelRaskin>
Floating point, reproducibility, cross-platform reprodcuibility, pain
ryanartecona has quit [(Quit: ryanartecona)]
<benley>
You could make it reproducible by handling it as fixed-point internally, right?
<MichaelRaskin>
Well, not _floating_ point then…
<NixOS_GitHub>
[nixpkgs] sphaugh opened pull request #24857: Add envypn bitmap font (master...master) https://git.io/vSyZv
<Ralith>
there's nothing difficult to reproduce about floating point operations
<MichaelRaskin>
Ah
<MichaelRaskin>
We are already out
<Ralith>
just don't use a bunch of different hand-wavey optimization passes
takle has joined #nixos
<benley>
heh, totally fair
<MichaelRaskin>
1+4*1073741824
<MichaelRaskin>
Evaluating this as Nix expression is already not cross-platform
<benley>
wat
bennofs1 has joined #nixos
kahiru has joined #nixos
<MichaelRaskin>
Ralith: I am afraid that «using hardware floating point support» can turn out to be a handwavy optimisation to avoid, too
<MichaelRaskin>
benley: it is a 32-bit integer overflow test, actually
<Ralith>
insofar as that you're using IEEE compliant operations on that hardware, which certainly exist on most platforms, that shouldn't be a problem
<Ralith>
may require some care in the implementation
<MichaelRaskin>
And setting an approximately infinite amount of flags
<Ralith>
but a failure is a bug, not some great tragedy we must resign ourselves to
<MichaelRaskin>
And making sure that the C compiler doesn't override any of them
bennofs has quit [(Quit: WeeChat 1.6)]
<MichaelRaskin>
The question is just whether fixed-point reals are good enough for Nix use case (while vastly simpler to get reproducible and fast)
<kahiru>
hey, I'm having trouble unlocking encrypted partitions on boot. My encrypted root mounts fine, but then I want to unlock another luks container with a keyfile (present on the root) which contains LVM and I want to mount one of the LVs from there. Whatever i tried it hangs on "waiting for device to appear". Seems to me it doesn't unlock the luks container at all, but dunno. any ideas?
bennofs has joined #nixos
betaboon has quit [(Quit: This computer has gone to sleep)]
<Ralith>
I'm not super clear on why we need non-integers at all, tbh
<dash>
Ralith: version numbers of course
<MichaelRaskin>
There we need more than one dot…
<Ralith>
dash: version numbers are tuples of integers
<benley>
Ralith: my most recent use case was wanting to use nix as a DSL to produce job definitions for Apache Aurora
<MichaelRaskin>
And we do have comparisons on version numbers anyway
<benley>
Ralith: which requires specifying a quantity of CPUs as a decimal number
<MichaelRaskin>
Ralith: that's false. There are also pre, rc, alpha, beta
<dash>
Ralith: ssssh don't ruin it
<Ralith>
comparing version numbers as floats would be very wrong
<benley>
and version numbers are definitely strings.
<Ralith>
dash: :P
<Ralith>
MichaelRaskin: how do we do comparison on those?
<copumpkin>
MichaelRaskin: okay, I think I know what I'm missing in my closure!!
<MichaelRaskin>
Ralith: pre goes before the release
<Ralith>
benley: quantity of CPUs as a decimal? o_O
<benley>
Ralith: there is a builtins.compareVersions primop
<MichaelRaskin>
So I would basically say pre ≈ -5 alpha ≈ -4 beta ≈ -3 gammas ≈ -2 rc ≈ -1
<Ralith>
MichaelRaskin: so, they're funnily-written integers? :P
<benley>
and yeah, aurora (which is a Mesos framework) lets you assign like 1.25 cores to a task. It's useful.
<MichaelRaskin>
Speed of CPU and scheduling slice
<MichaelRaskin>
I am not sure if we support actual negative integers in versions
<Ralith>
benley: is there some reason you couldn't just encode that as a string?
<benley>
One could certainly express that as an integer (where 100 = 1 core, perhaps) but that's not how that system expects it to be.
<Ralith>
"we need to emit values of this type into a config file" is not a good argument for supporting that type in nix
<Ralith>
seeing as you can always just pass strings through
dridus has quit [(Quit: znc? wassat?)]
<benley>
are you kidding me? that's a _good_ reason to support it imho
<dash>
there's a simple way to end this argument
<dash>
"accidentally" remove float support in a future nix release
<dash>
put it back in a bugfix if anyone notices
<copumpkin>
someone asked for it explicitly a year or two ago
<copumpkin>
it wasn't in there by accident
<Ralith>
benley: I strongly disagree. Config files can have arbitrarily complex and esoteric types which have no business in nix.
<dash>
copumpkin: distressing
<Ralith>
copumpkin: do we know why?
<copumpkin>
I dunno, we could dig up the original ticket asking for it
<benley>
Ralith: the config file is literally just JSON
<copumpkin>
we should replace them with an explicit rational type :)
ericsagnes has quit [(Ping timeout: 264 seconds)]
<Ralith>
rationals would be tidy, but I still don't see how they'd actually be useful
<benley>
Ralith: I didn't even need to do arithmetic with float values in nix - just a way to represent decimal numbers at all and put them in json output.
<copumpkin>
Ralith: you'd need a "toDecimalString" function :D
dridus has joined #nixos
<copumpkin>
Ralith: which uses an overline diacritic for repeating digits ;)
bennofs has quit [(Quit: WeeChat 1.6)]
<Ralith>
XD
<benley>
so I guess I could have written a special json serializer that somehow knew the difference between a string containing a decimal number that should remain a string vs one that you meant to be a number?
<Ralith>
benley: you don't need a json serializer, you need a your-app's-config-file serializer, which already knows what type each field is being mapped from and to.
mck has quit [(Ping timeout: 260 seconds)]
<benley>
it sure would be nice if the language just knew what numbers are though :-P
<Ralith>
I guess you could add a flag to an option definition to indicate to the internals whether a string should be quoted or injected directly for a generic serializer, but that's a detail
<benley>
but you're right, yes that could be done.
<Ralith>
I think it's important that nix not lose sight of its role as a DSL
<benley>
it's really quite useful to be able to do arithmetic in config DSLs, in my experience
bennofs has joined #nixos
<benley>
I ended up using Jsonnet rather than Nix for the aurora use case, largely because of the numeric type support.
<copumpkin>
which is sad because I like Nix more than jsonnet :)
<benley>
there are some things I really like about jsonnet, but I do like nix a lot :)
<domenkozar>
we have dhall now
<benley>
I'll have to try working with dhall a bit - I've read about it, but not used it.
<benley>
dhall would have been a hard sell at the company where I got jsonnet introduced, I think :-P
<benley>
"omg haskell!!?!?! are you crazy" etc
ericsagnes has joined #nixos
<benley>
Ralith: anyway I do see your point about avoiding the complexity of floating point support in the language implementation if you don't really need it. That's legit.
<benley>
I just think it's worthwhile overall.
<Ralith>
I'm not opposed to it if it's justified, but I'm drawing a total blank on defensible uses for float arithmetic in nix
<Ralith>
and without arithmetic operations it's just a glorified string anyway
<benley>
producing config files for various things seems useful to me :-P
<Ralith>
we've established that it's not necessary for that :P
<MichaelRaskin>
It is, if you want to use coarser policy than the config-file wants
<Ralith>
there will always be config values that need to be represented as strings
<copumpkin>
it's quite possible for FP operations to be fully deterministic across systems
<benley>
in the aurora case, I needed to do simple math to combine partial job templates. Each would come with some fractional cpu requirements, and you sum them together to produce the final template.
<Ralith>
given that, I think it is a better use of resources to support injecting strings very well in any case than to try to incorporate a huge number of types into the nix language natively
<Ralith>
copumpkin: right, it's just a really suspect problem to have in the first place imo
<benley>
and yes, you could fake that by awkwardly implementing fake decimal math using strings in nix. It would be awkward.
<copumpkin>
most people don't want the baggage that comes with FP, but they do want sub-integers
<copumpkin>
that's why I was half-jokingly saying rationals
<MichaelRaskin>
copumpkin: we don't have a good track record in cross-platform arithmetics, though
<davenull>
Hey guys, back again. Still haven't figured out the SSH key issue, but now I am in another world of pain... I have 4 VMs, all of them built with the same configuration file, and if I wget a tarball of ghost, they kernel panic, core dump, ,and freeze...
<MichaelRaskin>
copumpkin: no
<MichaelRaskin>
It's not real
<j_koreth>
Hey does anyone know how to get kmail/korganizer/kontact running on nixos?
<copumpkin>
MichaelRaskin: I also need all square roots of rationals, plus sine and cosine of rational multiples of pi in my config
bennofs has quit [(Ping timeout: 255 seconds)]
<copumpkin>
anyway, I'll submit an RFC to replace our float support with that
<MichaelRaskin>
Do you also need $e^{\pi \sqrt{163}}$ ?
<copumpkin>
since I suspect that's what people really need
<Ralith>
copumpkin: it looks to me like there wasn't ever any real discussion of justification, someone just went ahead and implemented it
<copumpkin>
I think benley has made a reasonable case for wanting arithemtic on common fractions, right?
<copumpkin>
the only real question remaining is whether that should be implemented in pure Nix (you lose e.g., the ability to load JSON containing fractions from someone else, since Nix's JSON support is a builtin)
lucasOfBesaid has quit [(Quit: Page closed)]
<Ralith>
um, I don't think benley has discussed any need for arithmetic at all
<copumpkin>
fair enough
<Ralith>
he just wanted to be able to easily pass literals through
<davenull>
Actually, it seems that downloading the tarball for ghost *is* what's causing the panics. I can wget anything, I can use NPM, but if I wget the ghost tarball, or use npm to fetch it, I get a panic :(
<benley>
... I also said I wanted to do arithmetic
<copumpkin>
I guess we just need a way to communicate that builtins.toJSON should take my "1.25" and make it a literal JSON float
<Ralith>
which is understandable but not compelling to me
<Ralith>
benley: wanting to do a thing is different then having a need for a thing :P
<davenull>
Anyone want to try downloading it, see if they experience the same?
<benley>
okay, well. I needed it enough that I couldn't use Nix.
<MichaelRaskin>
Give an url
<copumpkin>
Ralith: "not compelling to me" isn't a particularly great reason to remove functionality that others use though
<MichaelRaskin>
Experience shows that with more experience people start wanting more and more builtins
<copumpkin>
I just got my rewritten nixos-install to pass its installer test
<copumpkin>
!!!!!
<Ralith>
copumpkin: is anyone actually using any functionality but passthrough-to-toJSON, though?
<copumpkin>
Ralith: no idea :)
<benley>
Ralith: no, because the support has not existed in a released version of nix yet so of course it has no users yet
hiratara has quit [(Ping timeout: 255 seconds)]
<Ralith>
given that most config files can't be emitted in their entirety by toJSON it seems like a strange case to optimize for
<copumpkin>
Ralith: perhaps propose a primop for "builtins.literalJSON" that "builtins.toJSON" supports, and a proposal for how to load JSON containing decimals?
<MichaelRaskin>
On my fresh almost-NixOS system download works fine
<davenull>
Well wtf?
<MichaelRaskin>
Let me try downloading vanilla 17.03 ISO
<davenull>
I have 100% consitency, 4 fresh installs, all of them panic at the same spot.
<copumpkin>
I demand copious congratulations for my installer test success!
<davenull>
I am using 17.03
<copumpkin>
it's a momentous occasion indeed
<davenull>
copumpkin, Congrats, now make it better!
hiratara has joined #nixos
<copumpkin>
thanks!
<copumpkin>
and no, eww
<copumpkin>
I didn't even want to touch the installer
<copumpkin>
but a yak made me rewrite it anyway
<copumpkin>
refactor is a better word than rewrite
<MichaelRaskin>
I wonder if I should carpet-bomb RFC issues
<MichaelRaskin>
For bootloader handling, for etc handling…
MP2E has quit [(Remote host closed the connection)]
acarrico has joined #nixos
<MichaelRaskin>
Because I start getting a suspicion that my kludge-set systems have cleaner /etc/ switching than vanilla NixOS
<davenull>
Huh... and now it works.
carlosda1 has joined #nixos
<MichaelRaskin>
A mere menace of someone downloading a CD to check works wonders!
<copumpkin>
davenull: I removed the `if (user == "davenull") fail_loudly();` code to thank you for congratulating me
ma9e has quit [(Remote host closed the connection)]
<davenull>
Yay!
ixxie has quit [(Quit: Lost terminal)]
ma9e has joined #nixos
<MichaelRaskin>
copumpkin: tell me more about the exact deployment process for that…
<ma9e>
can we have quaternions in Nix? after all, golang did it
<copumpkin>
MichaelRaskin: oh, I hacked the fabric of reality itself and like to mess with people by adding confusing special cases
<MichaelRaskin>
Nothing less than sedenions is good enough
<copumpkin>
I think we just need a library of generic algebraic structures and properties on them, in nix
simukis_ has quit [(Ping timeout: 260 seconds)]
<ma9e>
if i can't use differential forms in my config files this language is useless to me
DutchWolfie has quit [(Quit: Konversation terminated!)]
<davenull>
ls
<MichaelRaskin>
Depends on the set of elementary functions you are OK with…
carlosda1 has quit [(Ping timeout: 240 seconds)]
<MichaelRaskin>
Also, are you OK to differentiate but not integrate?
<copumpkin>
I want fractional derivatives though
<copumpkin>
so we'll need the gamma function as well
<Ralith>
copumpkin: the whole special-casing json thing just strikes me as a confusing thing to focus on; most config files are not json.
<MichaelRaskin>
That's bad, you need integration there
<copumpkin>
Ralith: I use that JSON thing all the time
<Ralith>
last time I was writing modules I couldn't even get toJSON to handle modules at all, since there's a bunch of hidden attributes stuffed in option modules
<copumpkin>
a ton of stuff I use has JSON as config, and JSON usually serves as reasonably good YAML too
<Ralith>
so they ended up full of garbage
<copumpkin>
anyway, a lot of more recent projects use JSON for config
<copumpkin>
and toJSON has been great for them
<Ralith>
if they have trivial flat configs, perhaps :/
<Ralith>
pretty small benefit there
<Ralith>
maybe there's a better way to json-ify option modules that I'm missing
<copumpkin>
I also import JSON a lot
<copumpkin>
Ralith: I just filter the attributes in my option modules
georges-duperon has quit [(Ping timeout: 255 seconds)]
<copumpkin>
or explicitly spell out the schema before toJSONing it
<copumpkin>
still years ahead of splicing together strings by hand
<Ralith>
if you're explicitly spelling out the schema, why not just wrap the whole expression in quotes and splice in the values rather than going through an extra transformation stage?
<copumpkin>
because then I notice far far later when I have a random shitty typo in my json
<copumpkin>
like I spin up a whole server, it boots up, the service refuses to start, so I SSH in, and realize I forgot a comma
<copumpkin>
we can write it as a library function
<copumpkin>
but it's slow, and lots of library functions are getting translated to builtins because we like speed
<copumpkin>
fromJSON is even more miserable to write as a library function, especially when there are efficient native libraries for that
<copumpkin>
if we had a good plugins mechanism for nix, I'd totally use that
<Ralith>
I don't really have a problem with things being builtins, it just feels like all these justifications are too strong--next we're going to have IP literals, then regex literals, then who knows what next
<copumpkin>
but exec is a bit raw
<copumpkin>
hey, we already have HTTP literals ;)
<copumpkin>
but nobody's proposing literals
<copumpkin>
it's just library functions for common stuff we use
<copumpkin>
that can benefit significantly from native speed boosts
<Ralith>
I haven't said anything about the library, fp ops aside
<copumpkin>
I'd make a lib/json.nix if it weren't a builtin
<Ralith>
my concern is just that nix is growing a new primtiive type apparently for no other reason than "json has it"
<Ralith>
and a huge suite of complicated and apparently subtly buggy operations to match
<copumpkin>
subtly buggy?
flohsor has joined #nixos
<Ralith>
MichaelRaskin was going on about demonstrably unportable arithmetic earlier
<Ralith>
not sure of the details
JagaJaga has quit [(Ping timeout: 240 seconds)]
sibi has joined #nixos
<Ralith>
benley: I'm still not clear on what you want fp arithmetic for
<mounty>
I ask because I adapted it to my own purposes and it attempts the former, and fails.
byteflame has quit [(Ping timeout: 240 seconds)]
<MichaelRaskin>
Well, we had _integer_ arithmetics since forever and it is actually used
<MichaelRaskin>
But it is slightly unportable, yes
civodul` has joined #nixos
civodul has quit [(Ping timeout: 240 seconds)]
hiratara has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nix] benley opened pull request #1325: Move note about float support out of the wrong release notes (master...float-rl-1.12) https://git.io/vSyEv
dridus has joined #nixos
<Ralith>
integer ops are a lot more obviously useful, for stuff like computing unused UIDs, manipulating port numbers, etc
hamishmack has joined #nixos
elninja44 has joined #nixos
drasich has joined #nixos
ambro718 has quit [(Ping timeout: 260 seconds)]
hamishmack has quit [(Client Quit)]
ramsdenj has joined #nixos
georges-duperon has joined #nixos
<MichaelRaskin>
And still they are non-portable in Nix
hiratara has joined #nixos
<MichaelRaskin>
Of course, builtins.currentSystem discloses the evaluating Nix personality, and it is used in NixPkgs at least on the top level, so technically cross-platform portability bugs only disclose what was already available
itorres has quit [(Ping timeout: 252 seconds)]
<ramsdenj>
I'm wondering if someone might be able to point me to some information on setting up autofs properly. I have enabled it with 'services.autofs.enable ' and I'm trying to edit the configuration with 'services.autofs.autoMaster' as mentioned in the examples but it doesn't seem to do anything. I'm trying to attach to an NFS share with a domain name that resolves when I ping it. I've done the same on arch with no problem.
civodul` has quit [(Read error: Connection reset by peer)]
<MichaelRaskin>
Although --option system does allow you to change builtins.currentsystem
carlosda1 has joined #nixos
digitus has quit [(Quit: digitus)]
seanz has quit [(Quit: Leaving.)]
johnw_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
carlosda1 has quit [(Ping timeout: 260 seconds)]
itorres has joined #nixos
erictapen has joined #nixos
flohsor has quit [(Ping timeout: 260 seconds)]
griff_ has quit [(Quit: griff_)]
<erictapen>
good evening everyone, I have a file with an list of env vars like DB_HOST=localhost. is there any smart way to modify the values with an builtin nix function? Otherwise I'd use sed, but im sure this is nasty.
griff_ has joined #nixos
markus1209 has joined #nixos
markus1219 has joined #nixos
AllanEspinosa has quit [(Ping timeout: 260 seconds)]
AllanEspinosa has joined #nixos
markus1199 has quit [(Ping timeout: 240 seconds)]
markus1189 has quit [(Ping timeout: 252 seconds)]
aneeshusa has joined #nixos
eacameron has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] abbradar opened pull request #24861: qt4: enable gtk2 by default (master...qt4-gtk) https://git.io/vSy2y
indi_ has joined #nixos
eacameron has joined #nixos
eacameron has quit [(Remote host closed the connection)]
mudri has quit [(Quit: WeeChat 1.7)]
eacameron has joined #nixos
<copumpkin>
shlevy: turns out the only thing I was missing in the closure was stdenv :(
<copumpkin>
but it's working now
<NixOS_GitHub>
[nixpkgs] dasuxullebt opened pull request #24862: Added the formerly deleted RTlib-directory, included its patchelf-com… (master...fix/teamviewer-rtlibs) https://git.io/vSyal
georges-duperon has quit [(Ping timeout: 252 seconds)]