<Lisanna>
the first time I use it I can get stuff from mystuff, but any future calls to callPackage down the hierarchy are finding the regular nixpkgs.callPackage
<joepie91>
Lisanna: stab in the dark: callPackage = nixpkgs.newScope (nixpkgs // mystuff // {inherit callPackage;})
<joepie91>
no guarantee that it'll work :P
<Lisanna>
holy fsck that worked
<Lisanna>
how does that work though
aneeshusa has joined #nixos
<joepie91>
Lisanna: so `{inherit callPackage;}` is basically equivalent to `{callPackage = callPackage}`, ie. grabbing callPackage from the current scope
<joepie91>
Lisanna: since things are lazily evaluated in Nix, a thing can refer to itself in its definition
cwre_ has joined #nixos
benzrf has joined #nixos
cwre has quit [(Quit: Aliens ate me. I'm not good for them.)]
<joepie91>
Lisanna: therefore, the attribute set you pass into newScope contains: 1) nixpkgs, 2) overridden by stuff in mystuff, 3) overridden by the single callPackage attribute in that last set, which refers to the attribute you're about to store the resulting scope in
<benzrf>
"nix-env -i" is dispreferred, right?
<Lisanna>
joepie91: okay, I've always tried to avoid that since recursion is scary, I didn't know nix supported that so simply
<joepie91>
Lisanna: meaning that `callPackage` in your new scope refers to the 'return value' of your `newScope` call :)
Guest88345 has quit [(Ping timeout: 240 seconds)]
<Lisanna>
benzrf: if your'e running NixOS it's not the best way to install things
<joepie91>
Lisanna: right - recursion requires a slightly different way of thinking in a lazily-evaluated language
<benzrf>
Lisanna: i'm actually on arch, but why would that change anythign? :p
<Lisanna>
benzrf: Either put it in your systemPackages defined in your configuration.nix, or a trick I do when I just need something quickly is to just do nix-shell -p <whatever>
Myrl-saki has quit [(Ping timeout: 240 seconds)]
<Lisanna>
benzrf: oh, so in your case nix-env -i should be fine. AFAIK the recommendation to not use nix-env -i only applies to NixOS users, since there's a better way :)
<Lisanna>
benzrf: you can do that if you maintain your own copy of nixpkgs, if you depend on the upstream nixpkgs then you're pretty much at the mercy of the maintainers :)
cwre has joined #nixos
<Lisanna>
when you maintain your own copy you can go in and hand-edit the version strings in any package you want
<joepie91>
benzrf: hm. with 'upgrade' do you mean 'update all nix-installed stuff to the latest version in nixpkgs', or do you mean 'change the package set to package a newer version than nixpkgs provides'?
<benzrf>
ah srry let me clarify -
<benzrf>
while pulling a new version of nixpkgs is also arguably unpleasantly stateful, i was specifically thinking about the former
<benzrf>
er 'the former' meaning 'upgrading the imperatively-installed stuff to newer versions of the things'
<joepie91>
right, then nix-env -u for imperatively installed stuff
<joepie91>
(I don't think you can declaratively install outside NixOS?)
domenkozar has quit [(Ping timeout: 246 seconds)]
<benzrf>
rly? isnt there at least a command for, like, rebuilding based on your edited expression?
Alling has quit [(Ping timeout: 260 seconds)]
<joepie91>
which edited expression?
<benzrf>
if i maintain a declarative description of my environment that just lists all the packages i want to have
pSub has quit [(Ping timeout: 240 seconds)]
<benzrf>
and then cant i upgrade by just going in there and bumping up the version and re-instantiating, or some shit
pSub has joined #nixos
<joepie91>
benzrf: I mean, it depends on your setup. if you've upgraded the package set (eg. nixpkgs) then a rebuild will upgrade stuff anyway
<joepie91>
without changing the expression you're building, even
<joepie91>
the question is how you're doing this package management declaratively because I don't think there's an existing mechanism for that outside of NixOS
gandreani_OG has quit [(Ping timeout: 240 seconds)]
<fearlessKim[m]>
I would like to enable browserpass for firefox too. What's the best way to copy from nixos/modules/programs/browserpass.nix "${pkgs.browserpass}/bin/lib/mozilla/native-messaging-hosts/com.dannyvankooten.browserpass.json" to "/usr/lib64/mozilla/native-messaging-hosts/com.dannyvankooten.browserpass.json" ?
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
Wizek has quit [(Quit: Connection closed for inactivity)]
jgertm has joined #nixos
nslqqq has quit [(Ping timeout: 240 seconds)]
jgertm has quit [(Ping timeout: 258 seconds)]
griff_ has quit [(Quit: griff_)]
nslqqq has joined #nixos
jgertm has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vdiDX
<NixOS_GitHub>
nixpkgs/master 829730d Peter Hoeg: nixos user: reserve kodi
NixOS_GitHub has left #nixos []
nh2 has quit [(Quit: Leaving.)]
gandreani has quit [(Ping timeout: 240 seconds)]
mizu_no_oto has joined #nixos
gandreani has joined #nixos
marusich has joined #nixos
mizu_no_oto has quit [(Client Quit)]
mizu_no_oto has joined #nixos
gandreani has quit [(Ping timeout: 255 seconds)]
pxc has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg closed pull request #30340: cryfs: init at 0.9.7 and minor updates to dependencies (scrypt and spdlog) (master...p/cryfs) https://git.io/vdKau
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 2 new commits to master: https://git.io/vdiSe
<NixOS_GitHub>
nixpkgs/master 71b7b4f Peter Hoeg: Merge pull request #30296 from adisbladis/kdeconnect_1_2...
NixOS_GitHub has left #nixos []
iqubic has quit [(Ping timeout: 246 seconds)]
pxc has quit [(Ping timeout: 255 seconds)]
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
lsyoyom has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 2 new commits to master: https://git.io/vdiS8
<NixOS_GitHub>
nixpkgs/master f9415cb Yegor Timoshenko: desktop-managers: do not leak feh to PATH...
<NixOS_GitHub>
nixpkgs/master f7ba92b Peter Hoeg: Merge pull request #30286 from yegortimoshenko/patch-2...
NixOS_GitHub has left #nixos []
csingley has quit [(Ping timeout: 240 seconds)]
iqubic has joined #nixos
iqubic has quit [(Remote host closed the connection)]
iqubic has joined #nixos
alp has quit [(Ping timeout: 258 seconds)]
ebzzry has joined #nixos
lsyoyom has joined #nixos
alp has joined #nixos
gandreani has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
marusich has quit [(Ping timeout: 255 seconds)]
marusich has joined #nixos
gandreani has quit [(Ping timeout: 260 seconds)]
marusich has quit [(Ping timeout: 255 seconds)]
jgertm has quit [(Ping timeout: 255 seconds)]
pie_ has joined #nixos
gandreani has joined #nixos
Arcaelyx_ has joined #nixos
eacameron has joined #nixos
boomshroom has joined #nixos
<boomshroom>
Hello!
gandreani has quit [(Ping timeout: 240 seconds)]
Arcaelyx has quit [(Ping timeout: 260 seconds)]
<boomshroom>
I'm using nix on my macbook with the store on a dedicated 8GB ZFS partition. I just got the message that no space was left on the device so I did a collect garbage. It managed to free 1.14MiB before aborting with "no transaction is active". Subsequent attempts to use nix give "error: setting synchronous mode: disk I/O err"
<boomshroom>
*error
<boomshroom>
Hello?
schoppenhauer has quit [(Read error: Connection timed out)]
<fearlessKim[m]>
eqyiel: why should I edit the wrapper ? if the file is present in the folder; it should be picked up automatically ? The best way would be to configure native-messenging folder but I had a look at firefox building process and I don't think it's possible
MP2E has quit [(Remote host closed the connection)]
ertes-w is now known as supercynic
civodul has joined #nixos
Wizek_ has joined #nixos
Wizek has joined #nixos
goibhniu has joined #nixos
truh has joined #nixos
nslqqq has joined #nixos
<eqyiel[m]>
fearlessKim: yeah it would be great if the path was configurable (like the plugin path), but unfortunately you have to put it in that weird place. I can't get into it too much right now because I'm on mobile, but when I was looking into this same problem (wanting to use browserpass) I think the only way to do it was to wrap Firefox in its own fhs env
<fearlessKim[m]>
eqyiel: or rather write a home-manager module to move the file into ~/.mozilla/native-messaging
sigmundv__ has joined #nixos
jensens has quit [(Ping timeout: 255 seconds)]
<hyper_ch>
hmmm, I just did update nixos-unstable-small and after reboot, I don't have a ipv4 connection anymore.... how to pinpoint that issue?
<hyper_ch>
did boot back into an old generation now
Wizek_ has quit [(Ping timeout: 240 seconds)]
<fearlessKim[m]>
hyper_ch wifi or wired ? look what packages have been changed or in the journalctl -u network-manager.service
<hyper_ch>
wired
<hyper_ch>
wireless doesn't work
<sphalerite>
hyper_ch: have a look at /nix/var/nix/profiles/per-user/root/channels-x-link/manifest.nix (substitute x for the latest generation number and the one before) to see which version works and which doesn't
<hyper_ch>
non-working generation is from like 2h ago (vbox compilation)
<sphalerite>
right but which git revisions
<dalaing>
I'm on 17.09
<sphalerite>
there should be something like "nixos-17.09.1547.2231575a7d" in the manifest, the bit at the end is the git rev
<sphalerite>
oh ok so probably unrelated
<sphalerite>
could you share an example expression that exhibits the issue? Can you build anything at all?
<dalaing>
It's the boehm gc error: too many heap sections
<dalaing>
I can build lots of stuff, but if I try to build the haskell package beam, it dies
<elvishjerricco>
Is it possible to do `chroot` in a nix derivation? I've got a very stubborn piece of software whose build scripts are insanely complicated, and hard code *many* output paths to root dir locations that can't be configured. The easiest way to build it for Nix would be to just run it under `chroot` and then copy/symlink things where I need them.
<hyper_ch>
sphalerite: ok, got the manifests
marusich has quit [(Quit: Leaving)]
<dalaing>
And it dies if I do it from nixpkgs or from a git checkout
<dalaing>
elvishjerricco: there is something like that, I think the haskell tensorflow bindings use it from memory
<sphalerite>
huh, works fine for me. Do you have enough memory?
<elvishjerricco>
there are Haskell tensor flow bindings built with nix?
<sphalerite>
actually no it doesn't build :) but it evaluates fine
<Isorkin>
How to modify package ncurses with mouse support and ./configure ... --enable-ext-colors ? is obtained only with - ncurses = pkgs.ncurses.override { mouseSupport = true; }; how to add --enable-ext-colors ?
<dalaing>
Failing for me on two different machines
<sphalerite>
weird. Do you have an overlay or something that might affect it?
<dalaing>
Fails during nix-instantiate
<dalaing>
No overlays
<dalaing>
I don't need it immediately
<sphalerite>
same nix version as your coworker?
<elvishjerricco>
dalaing: I'm not sure I understand. I though Nix's FHS stuff was for creating FHS environments, not for building Nix derivations inside FHS environments.
<dalaing>
Just thought I'd tell someone in case others start to have similar troubles
<dalaing>
elvishjerricco: I may have gotten confused there, been a while since I looked at that stuff
<elvishjerricco>
Hm... the `shellHook = "exec fhs"` line seems... intriguing
Wizek_ has joined #nixos
Synthetica has joined #nixos
jb55 has quit [(Ping timeout: 240 seconds)]
gandreani has joined #nixos
<fearlessKim[m]>
do I understand the manual correctly, in multioutput derviation , the other folders are not derivation ? so I can't pass libgpgerror.dev as a propagatedBuildInputs ?
athan has quit [(Ping timeout: 240 seconds)]
jacob has joined #nixos
jacob is now known as Guest64706
<andi->
Is there a way to test packages on darwin without having them merged and receiving hydra feedback? I've added `dnstracer` to nixpkgs a few days ago and today I got a mail from hydra complaining about darwin.. while it should compile there I've no means to test it on anything but linux (amd64)...
<sphalerite>
oh yeah, needs a semicolon after ["--enable-ext-colors"];
<sphalerite>
but basically override modifies what's going into the package function (the inputs at the top of the package file), and overrideAttrs modifies what's getting passed into stdenv.mkDerivation
<sphalerite>
overrideAttrs also gets the original values so you can modify them
<sphalerite>
oh yeah, it might also need some parentheses like…
<NixOS_GitHub>
[nixpkgs] Profpatsch created revert-30286-patch-2 (+1 new commit): https://git.io/vdPfK
<NixOS_GitHub>
nixpkgs/revert-30286-patch-2 a208295 Profpatsch: Revert "desktop-managers: do not leak feh to PATH"
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Profpatsch opened pull request #30385: Revert "desktop-managers: do not leak feh to PATH" (master...revert-30286-patch-2) https://git.io/vdPfP
NixOS_GitHub has left #nixos []
ThatDocsLady_ has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Profpatsch pushed 1 new commit to master: https://git.io/vdPfS
<NixOS_GitHub>
nixpkgs/master 2864bc8 Profpatsch: Revert "desktop-managers: do not leak feh to PATH"
<clever>
steveeJ: runCommand is just an attribute within pkgs, not a global variable
<clever>
so you have to refer to it somehow, usually by adding runCommand to the args between lines 8 and 14
snikkers has joined #nixos
catch22_ has joined #nixos
reinzelmann has quit [(Quit: Leaving)]
<steveeJ>
clever: the assertion tests for it
<ij>
Can I recover from "manual garbage collecting"(the adventures of a mixture of sudo, rm and /nix/store/…, that is)? nix-build is trying to open a .drv that's now gone.
<clever>
steveeJ: nothing is bringing it into scope
<clever>
ij: run nix-store --delete on the problem file
<steveeJ>
clever: what is the '->' syntax used with assert?
<clever>
no idea, ive never tried using asserts like that in nix
<sphalerite>
ixxie: medium. It's not trivial but it's not super complicated either
<sphalerite>
I did it on my chromebook inside a debian chroot
<sphalerite>
iirc I built it from source and installed it to /usr/local because I didn't know of anywhere to get binary dists of nix for ARM
catch22 has quit [(Remote host closed the connection)]
<sphalerite>
but the only extra setup steps are adding build users and a nixbld group, and adding the users to that group (making sure to make the group an auxiliary group, nix won't be satisfied with them just having nixbld as their primary group)
<sphalerite>
then adding a systemd unit or whatever for the daemon
<clever>
tilpner: this function will take a list of binaries to copy from a list of packages, and automatically grab all deps, and patchelf it back together
<hyper_ch>
so, how to properly provide the url then?
<clever>
hyper_ch: add a name to the fetchurl
<hyper_ch>
add a name?
<hyper_ch>
ah :)
<clever>
hyper_ch: name = "something.deb";
<clever>
it defaults to the entry after the last / in the url
<clever>
but that has %'s
<hyper_ch>
name "rtorrent-ps_${version}_amd64.deb";
<hyper_ch>
+ =
* clever
heads to bed
<hyper_ch>
clever: nooooo :)
notdaniel has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/vdPYn
<NixOS_GitHub>
nixpkgs/master 826d7d2 Fatih Altinok: yarn: 1.0.1 -> 1.2.1 (#30346)
NixOS_GitHub has left #nixos []
<ixxie>
sphalerite: the machine is shared amongst colleagues, and we are using it for analytics with python; what I would like to be able to do is install python packages systemwide
<adisbladis>
hyper_ch: May I ask why you are trying to build upon the deb rather than building from source?
<ixxie>
sphalerite: I am also considering NixOS but that will be harder to sell
<hyper_ch>
adisbladis: because building this from source is a lot more complicated
<hyper_ch>
you will not only need to build rtorrent but also other stuff in addition to id... so I thought I take the easy route ;)
<hyper_ch>
adisbladis: in my shells cripts I also have a intermezzo between configuration vars and script thats: Below be dragons
<fearlessKim[m]>
rtorrent ps looks nice
<hyper_ch>
so just taking the compiled binaries is easier
<hyper_ch>
but I currently fail in my expression to include the also compiled libs
<sphalerite>
ixxie: in that case I'd put something like `source /nix/var/nix/profiles/per-user/shared-py/profile/etc/env` and make sure to install a derivation that puts the shell code to set all the env vars in etc/env
<hyper_ch>
so that rtorrent-ps properly uses them
<sphalerite>
ixxie: nixos/modules/programs/environment.nix could be helpful for working out how to make that script
<hyper_ch>
fearlessKim[m]: you do use rtorrent?
<sphalerite>
I'm sure there shoudl really be something outside the nixos tree as well? I don't know where though…
<sphalerite>
they only apply until next poweroff, and are just applied by the kernel on every boot
ison111 has quit [(Ping timeout: 240 seconds)]
<Profpatsch>
Okay, that sounds like it’s worth a try.
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Read error: Connection reset by peer)]
<tilpner>
Can someone with a working command-not-found please find out where ipvsadm comes from?
<Profpatsch>
sphalerite: Heh, microcode update seems to have fixed the problem.
<Profpatsch>
Noice.
anton_ has quit [(Ping timeout: 246 seconds)]
anton_ has joined #nixos
<ixxie>
sphalerite: that script helps with multiuser installs?
<hyper_ch>
so, trying to write a nix expression for rtorrent-ps... it comes precomipled and with according precompiled libraries... I thought I could just put libPath = "$out/lib" and then use patchelf to provide that libpath... but it does not work. So where do I go wrong? https://paste.simplylinux.ch/view/raw/adc6a37b
<sphalerite>
ixxie: that script is used by the single-user installer, but you should be able to salvage the parts of it that set the env vars
<ixxie>
sphalerite: I guess its easier to make a default.nix /shell.nix and add it to our repo
<ixxie>
sphalerite: and just set up the multiuser install
<sphalerite>
yeah, a shell.nix is always easier if that's an option
<gchristensen>
ixxie: what version of centos?
Ivanych has joined #nixos
<adisbladis>
peterhoeg: You there?
<ixxie>
gchristensen: 7
sary has quit [(Ping timeout: 240 seconds)]
<gchristensen>
ixxie: so (1) the nix manual has some stuff about multi-user (2) except for the darwin-specific stuff, the darwin installer will be useful
<gchristensen>
do you use puppet or chef?
truh has quit [(Remote host closed the connection)]
truh has joined #nixos
<sirkha>
taktoa, thanks for reply ~19 hours ago
orivej has quit [(Read error: Connection reset by peer)]
sary has joined #nixos
<adisbladis>
Anyone familiar with cmake who would care to help to figure something out? I'm looking at why https://github.com/cryfs/cryfs with -DBUILD_TESTING=ON does not generate an install target
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vdPsy
<NixOS_GitHub>
nixpkgs/master 22505d8 Yegor Timoshenko: connman: do not restart after suspend
<sphalerite>
adisbladis: vendor/googletest/CMakeLists.txt:4 # When test cases are build, disable "make install", because this would also install gtest libraries.
<sphalerite>
hm but that should probably only affect gtest itself? I think?
ma27 has quit [(Client Quit)]
<adisbladis>
sphalerite: Ahh thanks :)
<adisbladis>
I'll give it a go and see what ends up in the nix store
efx2 has joined #nixos
griff_ has quit [(Quit: griff_)]
dannyg has joined #nixos
iyzsong has quit [(Ping timeout: 260 seconds)]
<dannyg>
for running docker on a nixos server, what config changes are required to get kernel support for cgroup cfs period/quotas, rt period/runtime
<nwspk>
What's the preferred way to manage additional plugins for a package?
reinzelmann has quit [(Quit: Leaving)]
<alp>
nwspk, something like what emacsWithPackages / ghcWithPackages / etc do?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dotlambda opened pull request #30386: stapler: init at 2016-04-24 (master...stapler) https://git.io/vdPCF
NixOS_GitHub has left #nixos []
abcrawf has quit [(Remote host closed the connection)]
<nwspk>
alp: this seems a bit like an overkill for a small program
xdelv has quit [(Remote host closed the connection)]
xdelv has joined #nixos
<ij>
Since mesos' and kube's test code was using dockerTools.builtImage I hoped to see a failure there, but I have a oneliner for testing it.
<ij>
$ nix-build '<nixpkgs>' -A dockerTools.examples.bash # does this work alright for you? I'm getting a json read error.
<ij>
s/you/anyone/
leat has quit [(Quit: WeeChat 1.9)]
<tilpner>
ij - Works
<gchristensen>
nixos unstable hasn't been updated since oct 7 though
<gchristensen>
fww :)
<ij>
ugh, so frustrating… I nuked all /nix already and redownloaded everything.
chakerbenhamed has quit [(Ping timeout: 240 seconds)]
chakerbenhamed1 has joined #nixos
<alp>
nwspk, well, you can surely write a simpler variant that just does the bookkeeping needed to have the program know where the relevant plugins are through some mechanism of your choise. the xxxWithPackages thing would just be the user facing part
leat has joined #nixos
<sirkha>
is there a way to get nix-shell to exit if the shellHook exits with an error?
<efx>
error: selector ‘/nix/store/4wrxbzvjk2v587ss5696xq3ydhl9m4nd-sqitch-pg-0.9994.drv’ matches no derivations
<gchristensen>
I have no idea how to use nix-env, apparently, sorry
<efx>
no worries at all, glad for the help as I am totally new to it
<gchristensen>
might I suggest nix-darwin? :P github.com/lnl7/nix-darwin
<efx>
true, I should probably ask in there :)
<gchristensen>
the user unfriendliness of nix-env is cross-platform unfortunately
<gchristensen>
I use nix-env to be able to not uses nix-env
simukis has quit [(Ping timeout: 264 seconds)]
<efx>
interesting, so nix-darwin project is another, more user friendly way to manage packages/system with nix on mac os?
Phillemann has joined #nixos
<gchristensen>
yeah, it brings a more nixos-like experience
<LnL>
I hope so :D
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vdPBR
<NixOS_GitHub>
nixpkgs/master ea1a925 Peter Hoeg: cryfs: disable testing as it does not work - I pushed the wrong branch earlier
NixOS_GitHub has left #nixos []
<Phillemann>
I have a haskell project that needs to use a recent version of the "brick" package. In haskell-packages.nix I see that there's "brick" and "brick_0_27_0". When I try to use brick_0_27_0 in my default.nix, however, it tells me it cannot find it.
<efx>
nice. I will check it out today. thanks again
<infinisil>
there you should see a brick version you can install
<infinisil>
Or you could use nox too
<Phillemann>
Oh, you mean if my nixpkgs repo is up to date with what my nixos is using.
<infinisil>
You said you see the package in haskell-packages.nix, did you look at this in the version you're using or online or something?
<Phillemann>
I have nixpkgs/master checked out in my $HOME, but otherwise I'm using nixos-unstable, so that might be the culprit.
<Phillemann>
I'm still not sure how nixos-unstable and nixpkgs/master are related.
<infinisil>
Um, where do you see version 27_0?
<infinisil>
I can't find it in neither nixos-unstable or master
<infinisil>
both times it's just 26_1
<Phillemann>
Hmmm, is it because hackage-packages.nix is auto-generated and I just need to regenerate it somehow?
<infinisil>
master is where all stuff gets added, hydra then tests these new changes, and if all nixos tests succeed, then it's safe to use the version with nixos, and it gets pushed to nixos-unstable
<gchristensen>
jtojnar: I'm meerging geary now, sorry for the delay
iyzsong has joined #nixos
<Phillemann>
But you're right, brick_0_26_1 works.
<infinisil>
Phillemann: Not sure how haskell generation works
<joachifm>
tilpner: it overwrites store references, e.g. to avoid picking up unwanted references
<infinisil>
Looking at this code, I would've never figured that out
<joachifm>
there's also remove-references-to which is for specific paths
<tilpner>
Ehh, now the VM fails to boot because /init has /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-glibc-2.25-49/lib/ld-linux-x86-64.so.2 as its interpreter :/
<tilpner>
I would have preferred if nuke-refs just errored and told me I can't do that
<sirkha>
how do i tell make what paths to use?
<joachifm>
tilpner: but that's what nuke-refs is supposed to do ...
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] copumpkin pushed 1 new commit to master: https://git.io/vdPE5
<NixOS_GitHub>
nixpkgs/master 56e18c5 Dan Peebles: Revert "Simple proof of concept for how to do other types of services"...
NixOS_GitHub has left #nixos []
<infinisil>
sirkha: cd <some-dir>; make; ?
<infinisil>
or i bet there's a flag for that
<tilpner>
joachifm - First time using nuke-refs, I just expected it to do something else, I guess
<tilpner>
make -C dir
<joachifm>
tilpner: what are you trying to accomplish?
<sirkha>
infinisil, just tells me ld can't find libm
<tilpner>
joachifm - Building an initrd for hypercontainers
<tilpner>
I'll try patchelf-ing /init manually
<joachifm>
tilpner: what did you intend nuke-refs to do?
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vdPzW
<NixOS_GitHub>
nixpkgs/master 67ae0fa James Edington: palemoon: 27.4.2 -> 27.5.0...
<NixOS_GitHub>
nixpkgs/master 6e7f35c Joachim F: Merge pull request #30327 from JamesTheAwesomeDude/master...
NixOS_GitHub has left #nixos []
<infinisil>
Ohh I actually used glibc.static before, didn't think this would solve it, nice
Phillemann has left #nixos ["WeeChat 1.9.1"]
<sirkha>
the static thing in the makefile made me try it once i found that article
ma27 has joined #nixos
<infinisil>
I believe static builds are discouraged in general in nixpkgs though, because it just duplicates stuff
<infinisil>
or something like that
<tilpner>
Wheee, kernel panic!
<tilpner>
(in the vm)
<sirkha>
i am actually only planning on working in the nix-shell
<sirkha>
strangely
<disasm>
I just have bad luck with dns. When I went to 17.03 bind stopped working so I switched to pdns, when I jumped to 17.09 pdns stopped working, lol
<disasm>
ah, it's something with postgres
m0rphism has quit [(Quit: WeeChat 1.9.1)]
<infinisil>
what has postgres to do with dns :/
<disasm>
infinisil: using pg backend for powerdns
ixxie has joined #nixos
xdelv has quit [(Remote host closed the connection)]
ixxie has quit [(Client Quit)]
<sphalerite>
disasm: do you maybe not have a system.stateVersion?
xdelv has joined #nixos
chreekat has joined #nixos
<disasm>
sphalerite: I found the problem, data dir for postgresql moved from /var/db -> /var/lib/postgresql
<infinisil>
unless you migrate everything manually as described in the release notes
<disasm>
yeah, I know... when I refactored my machine configs all into one repo I must have lost that :( I rolled back to 17.03 adding stateVersion in and will try again
<infinisil>
I should add a submodule for nixpkgs to my system config, such that I won't ever have to deal with something like that
<shlevy>
niksnut: Can we get a new nixUnstable that includes the sudo -i OS X installer fix?
<tilpner>
shlevy - You can override nixUnstable if you need it now
ShalokShalom_ has joined #nixos
ShalokShalom has quit [(Ping timeout: 260 seconds)]
<shlevy>
Just want to make sure niksnut is OK with me 'keep'ing another build on hydra
<niksnut>
shlevy: what for? presumably, if you're in a position to use nixUnstable, you already have nix installed...
<niksnut>
and keeping builds on hydra does absolutely nothing these days
<shlevy>
Ah OK
<niksnut>
but bumping nixUnstable is fine
<shlevy>
OK cool
<niksnut>
well, I guess marking builds to keep is still a gooid idea if we ever start doing garbage collection for cache.nixos.org
<niksnut>
which we probably should do soon, given S3 storage costs...
<copumpkin>
😱
<copumpkin>
:)
<infinisil>
why is this not a thing already
MercurialAlchemi has quit [(Remote host closed the connection)]
<disasm>
well that worked, but not upgraded to pg 9.6... Maybe I'll just switch the state version back to 17.09 and manually upgrade :)
<gchristensen>
infinisil: a benefit of it is when people bisect nixpkgs from 15.09 through to today, they don't have to mass-rebuild 20 times
<gchristensen>
but really probably the reason is s3 was cheap and setting up GC wasn't worth the effort
<gchristensen>
but as soon as we migrate to IPFS we'll just store years of binary cache on our user's systems sincere-troll.bmp
<infinisil>
heh
<sphalerite>
wait, macOS comes with zsh now?
riclima has joined #nixos
<disasm>
gchristensen: wait, tell me more? you can git bisect and not mass rebuild?
erictapen has quit [(Ping timeout: 246 seconds)]
<gchristensen>
disasm: if you happen to land on a commit which was built, yeah
<aminechikhaoui>
Hi all, I'm getting few issues with my gpg-agent still as it basically prompt me to fill in the passphrase of the keys most of the time. But can probably be an issue in my setup and not in the gpg-agent nixpkgs config
<riclima>
Hi, is there a channel for Mac OS Nix discussion?
<disasm>
sphalerite: it has for years, but it was too old of a version for my zsh config, so I used homebrew.
<disasm>
riclima: you be here
<infinisil>
gchristensen: I mean, just gc'ing packages that haven't been hit in 6 months or so would probably reduce storage a lot
mguex has joined #nixos
<sphalerite>
disasm: I had no idea! but yeah I'll be using the one from nixpkgs
<riclima>
Ah, cool, so all Nix discussion is centralized here, then?
<gchristensen>
disasm: it'll fetch the cached versions from the cache. if you write a smart bisector, you can "skip" commits that trigger a mass rebuild and the bisecting algo will automatically find commits which aren't mass-rebuilds
<adisbladis>
riclima: Yes :)
<aminechikhaoui>
some of the erros I'm seeing in journalctl --user -fu gpg-agent are "Failed to lookup password for key <MY_KEY> with secret service: Cannot autolaunch D-Bus without X11 $DISPLAY"
<infinisil>
riclima: There is #nix-darwin i think
<gchristensen>
riclima: here, and ##nix-darwin also exists if it is really niche / you're not getting help here (see /topic)
<riclima>
Excellent, cheers
<aminechikhaoui>
and "Oct 13 16:07:00 nixos gpg-agent[951]: failed to unprotect the secret key: Operation fully cancelled
<aminechikhaoui>
Oct 13 16:07:00 nixos gpg-agent[951]: failed to read the secret key
<ldlework>
I am trying to write some Nix expression lang to create a derivation. Let's say I have a number of folders each with a default.nix inside. I want to visit each folder and load the derivation from inside the file and add it to the set of derivations I'm returning from this main file. I can't quite wrap my head around how to write this in a functional language.
<disasm>
gchristensen: ah, so not straight git bisect, you need some logic for that to work?
<gchristensen>
disasm: if you're on a mass rebuild, just do `git bisect skip`
<gchristensen>
not so hard :)
<disasm>
haha, learn something new everyday!
erictapen has joined #nixos
<infinisil>
ldlework: builtins.readDir
Wizek_ has quit [(Remote host closed the connection)]
<ldlework>
I mean.. I know that function exists.
<riclima>
Anyway, I'm looking for advice—I'm moving from using Homebrew to Nix, and I'd like to switch my user's shell to bash 4 installed with Nix. With Homebrew, I added to /etc/shells /usr/local/bin/bash, and then `chsh -s /usr/local/bin/bash`
<ldlework>
My problem is with formulating the algorithm in a functional and recursive way. I'm a long time imperative programmer.
<infinisil>
ldlework: You need it recursively?
<riclima>
In the case of Nix, bash is now a symlink on my home folder
<ldlework>
Well I assumed that's the only way
<joko>
Hello, could anyone help me with the NixOS tests? I'm running the installer one and I would like to give the VMs internet access
<riclima>
I was wondering what's the recommended way to adding it to the allowed shells? Same thing? `echo $(which bash) >> /etc/shells` ?
<infinisil>
ldlework: I'll show you an example, hold on
Wizek_ has joined #nixos
<riclima>
Or perhaps would it be recommended to only switch bash in my terminal application's settings?
<riclima>
I'm trying to not have my user break in case something goes wrong while I'm messing around
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
<disasm>
riclima: if you point it to the symlinked binary in your home dir profile, you won't have to update the shells file every time you update bash
griff_ has quit [(Client Quit)]
mkoenig has joined #nixos
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
<riclima>
Yeah, I don't mind doing that, but I'm not a sysadmin so I don't know if that's a mistake of some sort
<riclima>
I figured I'd check with more experienced people first
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
cement has joined #nixos
griff_ has quit [(Client Quit)]
<disasm>
gchristensen: what are your thoughts on the above ^^^ would pointing to the symlink in nix profile for bash be the best way to change your shell?
griff_ has joined #nixos
<gchristensen>
oh hm how do I do this
griff_ has quit [(Client Quit)]
<disasm>
I seldomly boot into osx anymore, lol
<riclima>
I could always just tell my terminal application to just run Nix's bash, and leave the system one alone, differently from what I did with Homebrew
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
<gchristensen>
I don't know :/
<riclima>
But in the case of my home server Mac mini, that would mean my login shell would be Bash 3
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
<disasm>
I would think /Users/foo/.nix-profile/bin/bash would be the best, because then if you upgrade bash and garbage collect the old version, you're shell will still work
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
mortum5 has quit [(Ping timeout: 255 seconds)]
JosW has joined #nixos
erictapen has quit [(Ping timeout: 240 seconds)]
griff_ has quit [(Client Quit)]
jensens has quit [(Ping timeout: 255 seconds)]
<riclima>
Sounds good, since no one has jumped to say "that is a horrible idea", then I guess there aren't any obvious problems that it would cause. At any rate, I'm gonna run a full backup just in case hahah
<infinisil>
ldlework: Umm, I'm having a bit of problems with reading relative paths, but
<infinisil>
I'm gonna get it eventually
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
<ldlework>
Well I feel less like an idiot
erictapen has joined #nixos
<infinisil>
I find file handling to be very finnicky in nix
<ldlework>
I want to try my hand at implementing something similar to home-manager
<infinisil>
Oh boy, that doesn't work with nix only
taktoa has quit [(Remote host closed the connection)]
<ldlework>
?
csingley has quit [(Quit: WeeChat 1.9.1)]
<infinisil>
Nix isn't a general purpose language
<infinisil>
Which is what you need for something like home-manager
csingley has joined #nixos
<infinisil>
Its interaction with the system is very limited
erictapen has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Fuuzetsu pushed 1 new commit to master: https://git.io/vdPKN
<NixOS_GitHub>
nixpkgs/master 0ef6e21 Mateusz Kowalczyk: Agda: package builds fine these days...
NixOS_GitHub has left #nixos []
<ldlework>
Sure, I just had the idea that if I could make a derivation that aggregated the derivations inside those folders, then I could utilize the rollback/generations for the whole thing at once.
<ldlework>
Rather than using say Python, to iterate the folders and produce multiple Nix builds.
<tilpner>
Well... Nix can generate code, and put it into your path. I feel like that still counts as implemented with Nix
<tilpner>
Especially when it generates bash or something like that
<ldlework>
The point is to be able to to point at a single nix build for every time you build your dotfiles and symlink them to your home folder
<ldlework>
I don't think code generation is relevant here
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vdP6f
<ldlework>
tilpner so this is just some helper functions for writing files/directories to the store?
<sphalerite>
oh so the keyword was "speed"… derp
<sphalerite>
thanks
<tilpner>
ldlework - And copying/linking those store files to any place on your system. Did I misunderstand what you needed?
<sphalerite>
… nope, scrolls 5 lines at a time
<sphalerite>
(not sure if it was doing 3 before, might have been 5 too)
<ldlework>
tilpner you accomplish the last bit by writing out some bash functions and then calling them because they can write outside of the store?
<adisbladis>
My one is just scrolling one line at a time out of the box
<sphalerite>
huh.
<tilpner>
ldlework - Yes, that's the code generation part I thought was relevant. The activationscript automatically called by nixos-rebuild, so it's not an extra utility for me, but you can also call it yourself if you don't use NixOS
<tilpner>
*The activationscript is automatically called
<sphalerite>
it's doing 5 at a time for me, both on macOS and on nixos
<ldlework>
tilpner yeah, I'm on OSX so I only have nix-env and nix-build
<ldlework>
(I think?) lol
<adisbladis>
sphalerite: Or are you talking about the scrollback buffer?
<sphalerite>
yes
<sphalerite>
what else would I be talking about?
<adisbladis>
Because the default scroll behaviour is scrolling through history
Acou_Bass has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<tilpner>
ldlework - You will need another utility, like a generated script. nix-build/nix-env alone will not let you write files into your home
<sphalerite>
uuuh what?
<sphalerite>
oh yeah, no I set mouse on
<adisbladis>
sphalerite: That's what happens on all my systems
<sphalerite>
right
jensens has joined #nixos
<sphalerite>
if you set mouse on, I'm guessing it scrolls 5 lines at a time too?
<adisbladis>
Yes it does :>
<sphalerite>
I'll go ask in #tmux, probably a better place :)
<adisbladis>
Never explored what tmux has to offer..
mrkgnao has joined #nixos
<ldlework>
tilpner I guess technically I also have nix-instantiate
<nliadm>
I also have a means of putting things in my home directory
chreekat has quit [(Quit: quitting)]
Myrl-saki has joined #nixos
<tilpner>
nliadm - Link?
<nliadm>
it's constructing a "configs" package that I install, then use stow to manage the links from $HOME to $HOME/.nix-profile/cfg
<nliadm>
tilpner: lemme find my gist
<tilpner>
nliadm - Are you on NixOS? I considered doing something similar, but didn't want yet another extra command
Acou_Bass has joined #nixos
<tilpner>
Then again, later I gave in and did... this, so it wouldn't have been a problem
<nliadm>
my .proflie sources everything in $HOME/.nix-profile/etc/profile.d, so the first link writes out a file in there, and the script manually triggers it
<tilpner>
You two can, I won't (I need NixOS specific features)
freusque has quit [(Quit: WeeChat 1.7.1)]
<tilpner>
Oh... I read that completely wrong :(
<ldlework>
nliadm any interest?
<nliadm>
sure, if our usecases are close enough
Enzime has joined #nixos
<tilpner>
Consider early if you need to manage permissions too
<ldlework>
nliadm I'm using OSX / Ubuntu, and I just want the ultimate dotfiles solution that can also install the software I depend on
<nliadm>
yeah, I want a way to declaritvely control my nix-profile, and to have my dotfiles stored in the nix store
jb55 has joined #nixos
<ldlework>
Just putting your dotfiles in a repo doesn't let you bootstrap a new laptop, you still have tons of installing of stuff to do, and god help you if you forogt what you did
<ldlework>
nliadm I was thinking that it would be nice if you had a repo, with different folders representing the different software you want to manage, like git, emacs, and so on
<ldlework>
instead of shoving everything into a dense file
<ldlework>
those folders could also contain templated versions of the dotfiles and any other data
<ldlework>
this way things are easier to maintain over time
<ldlework>
do you agree that might be slightly better UX?
<tilpner>
Remind me what was wrong with home-manager?
<nliadm>
I kind of do... okay this is the third time in two days I've tried to explain my setup without sharing code, let me see if I have passwords in here, maybe I can upload it somewhere
<ldlework>
It is actually very good, but its UX isn't as good as I just described
<ldlework>
I basically like everything else about HM
<tilpner>
And it's not possible to "fix"/improve HM?
Guest64706 has quit [(Quit: Lost terminal)]
<ldlework>
Sure, most likely it is, but I also want to learn how to build things with Nix and decided this is a good project.
<tilpner>
Okay
<infinisil>
ldlework: So you're problem with hm is that you don't like having everything in a single file?
iyzsong has quit [(Ping timeout: 240 seconds)]
<infinisil>
Because that's not a problem, you can import other files like with your nixos config
hydraz has quit [(Read error: Connection reset by peer)]
<tilpner>
infinisil - Creating their own as a fun/learning project is a valid reason
jb55 has quit [(Ping timeout: 248 seconds)]
<infinisil>
yeah of course, but his critisism makes me think that he missed a very basic thing of the module system
<ldlework>
its possible
Myrl-sak1 has joined #nixos
hydraz has joined #nixos
hydraz has quit [(Changing host)]
hydraz has joined #nixos
entries has joined #nixos
<entries>
does anyone know how to switch bootloader from systemd-boot to grub in nixos?
<infinisil>
ldlework: What is?
<infinisil>
entries: You remove the systemd-boot.enable line, done
<tilpner>
infinisil - "that he missed a very basic thing of the module system"
dannyg has quit [(Quit: dannyg)]
<infinisil>
Ah
<entries>
infinisil: i did that and changed boot.loader.grub.enable to true
Myrl-saki has quit [(Ping timeout: 255 seconds)]
<entries>
inifinisil: but i get the following error when i nixos-rebuild error: creating symlink from ‘/boot/loader/entries/result.tmp-5821-930462479’ to ‘/nix/store/g7p2j2galgmdcha9jy693yljh6vizlwh-nixos-system-nixos-17.09.1547.2231575a7d’: Operation not permitted
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 1 new commit to 1.11-maintenance: https://git.io/vdPyI
<NixOS_GitHub>
nix/1.11-maintenance 76431e0 Eelco Dolstra: nix-shell -p: Use runCommandCC...
<infinisil>
Ah, it was ij with a similar problem when nixos-installing
<entries>
settings boot.systemd-boot.enable to false does not fix it. I went with systemd-boot when I installed nixos yesterday because Grub setup failed (maybe because i booted from a non-uefi device
<entries>
but now i want to use grub to be able to boot into windows which lays on another device
<tilpner>
entries - Are you running the command from /boot by any chance?
<infinisil>
entries: Is /boot (or /boot/efi) vfat? and mounted?
<entries>
its vfat and mounted and i am running it in /boot/loader/entries atm
<tilpner>
entries - Run it somewhere else please
<entries>
moved to /root, now it works...
<entries>
is that a bug??
hotfuzz_ has joined #nixos
jacob has joined #nixos
<infinisil>
huh weird
<nliadm>
ldlework: I can send you an export of my rube goldberg setup, if you want to see how I've done things
<tilpner>
IIRC it tries to symlink stuff in the current directory, which vfat doesn't like
jacob is now known as Guest79382
<entries>
well lets see if it works, brb
hotfuzz has quit [(Ping timeout: 248 seconds)]
entries_ has joined #nixos
<entries_>
grub complains my device does not have a bios boot description. even though: boot.loader.grub.efiSupport = true; boot.loader.grub.efiInstallAsRemovable = true;
<tilpner>
If a user installs Docker, should they have dockerd in their path?
Myrl-sak1 is now known as Myrl-saki
<tilpner>
Or is it enough if a service that runs dockerd is started?
entries_ has quit [(Ping timeout: 260 seconds)]
entries has joined #nixos
Myrl-saki has quit [(Disconnected by services)]
<sphalerite>
tilpner: well the way to "install" docker properly on nixos is using the nixos config option
<entries>
avn: excuse me, you just posted something about efiVariables, what was it again?
<sphalerite>
If a user installs it using nix-env, they either have to set the daemon up themselves or use a remote daemon (which I believe is not entirely unheard of either, so it is a valid usecase!)
Lisanna has quit [(Ping timeout: 260 seconds)]
riclima has joined #nixos
<riclima>
Does anyone know how can I install pip with nix?
<ldlework>
tilpner the docker client talks to the docker daemon by way of a socket or https url so I don't think users need dockerd on the path
<maurer>
riclima: Many (if not all) of pip's normal operations will not work under nixos
<disasm>
riclima: you really shouldn't, lol but pythonPackages.pip
<maurer>
riclima: what will work is available at e.g. python27Packages.pip
<disasm>
riclima: I'd highly recommend setting up a nix-shell with pypi2nix instead
<tilpner>
sphalerite - So you agree that virtualisation.docker.enable = true; should not put dockerd in my path?
erasmas has joined #nixos
<avn>
entries: I posted excerpt about all my boot-related settings earlier
goibhniu has quit [(Ping timeout: 240 seconds)]
<sphalerite>
tilpner: if you want to run a docker daemon on your nixos machine, yes
<riclima>
disasm maurer it's not for installing packages globally, it's just for using with development tools under virtual environments
<disasm>
riclima: yup, that's a perfect example of something to do with nix-shell
<disasm>
nix-shell is pretty much designed for development environments :)
<riclima>
Sure, so in that case I use pip under nix-shell?
<tilpner>
sphalerite - Good, just wanted to check if there's a convention to put daemons into PATH. FWIW, that puts dockerd in my path, but I won't put hyperd in my path for virtualisation.hyperd.enable = true;
<disasm>
nix-shell is like virtualenv for the entire dependency tree down to c libraries and everything
<maurer>
riclima: Yeah, that will still work, but disasm is correct - using a shell.nix here is the preferred solution within nixos
<riclima>
I'm not under nixos :P
<riclima>
macOS
<disasm>
riclima: well nix in general :)
<disasm>
nix-shell works great on osx
<riclima>
I'll read more into it, and sounds great, but while developing it's a hassle to use non-standard tools that the other devs aren't gonna be using
Tucky has quit [(Quit: WeeChat 1.9.1)]
<ldlework>
nix-shell is so cool
<riclima>
Like, if everyone is just using `pipenv run` and what not
<maurer>
riclima: So, if you're not gonna use nix-shell and the rest of the nix stack, I'd suggest installing pip+venv through a more traditional OSX installation mechanism
<ldlework>
I was using Docker to develop locally, like instead of having Go on my machine, I would just docker build a Dockerfile that build the binary and I'd test things that way
<riclima>
maurer I'm using it for global installs and for other types of development
<ldlework>
But a co-worker pointed out that you can't get the benefits of language facilities, for like your editor
<ldlework>
nix-shell is the perfect intermediary
<disasm>
riclima: yeah, you may want to just use homebrew if you want to do things the way everyone else does
<riclima>
maurer it just felt messy to have some packages under Homebrew, and others under nix
lsix has quit [(Quit: Konversation terminated!)]
<riclima>
disasm nah, I'm pretty excited about doing most of my development under nix, but Rome wasn't built in a day ;) I have a lot of documentation to read and in the meanwhile, work to do
<maurer>
riclima: Yeah, what you're suggesting will work, I was more pointing out that if you aren't getting the actual dependency isolation benefits from nix, you kind of end up paying the weirdness cost with few benefits
<riclima>
maurer I see
<riclima>
maurer It's a step on my transition, is what I meant. Anyway, for the application I'm writing now, I intend to deploy it using Nix
<maurer>
Yeah, in that case, the nix file you use to build/deploy it will end up containing almost all of what you'd put in a shell.nix anyways >_>
<maurer>
only thing that'd be missing would be devtools and editor configurations
<riclima>
OK, well which part of the manual should I be looking into?
p4cman has joined #nixos
pxc has joined #nixos
<joko>
Anyone to help me with the NixOS tests? I'm running the installer one and I would like to give the VMs internet access
mrkgnao has quit [(Ping timeout: 240 seconds)]
<riclima>
I'm gonna spend some time looking more into nix-shell, perhaps I'll figure out a way to use it so that I don't have to make other developers use nix to work on my project :)
obadz has quit [(Quit: WeeChat 1.9.1)]
<riclima>
Thanks for all the tips!
mal_ has joined #nixos
<sphalerite>
tilpner: right. I'd say there's probably not really one particular right or wrong way. If you have the docker daemon it makes sense to install the docker client as well (put it in systemPackages) usually, and I'm guessing that would just bring the daemon along with it just because it's not separated, because they're built together and stuff
<mal_>
hi, running virt-install ... --network bridge=virbr0 i get "ERROR '/usr/libexec/qemu-bridge-helper' is not a suitable bridge helper: No such file or directory". Any ideas how to fix this?
<mal_>
qemu-bridge-helper is in /nix/store/ multiple times though
<sphalerite>
tilpner: also because AFAIU it's quite common to run the daemon from the command line to debug issues with it
<disasm>
riclima: I hear ya, I made the jump to nixos on my mac about 6 months ago. First month was a crazy learning curve :)
pie_ has joined #nixos
<ldlework>
disasm are you managing your dotfiles with nix?
<tilpner>
sphalerite - I understand how it's done currently. My question was more of a "is this how we want it to be?". I have added the hypercontainer toplevel set, which contains hyperd, hyperctl and vmlogd. hyperd and vmlogd are not put into the users path but started as services on virtualisation.hyper.enable. Only hyperctl is added to my path, and if I need to debug hyperd I can use nix-shell to bring hyperd into
<tilpner>
path
<disasm>
ldlework: not yet... most of my configs in my dotfiles (zsh, vim) are globally set in configuration.nix
<disasm>
been meaning to play with home-manager, but no time!
<sphalerite>
Right
iqubic_ has quit [(Remote host closed the connection)]
<riclima>
how come when I run `nix-env -I ~/SourceCode/personal-nixpkgs`
<riclima>
error: no operation specified?
ShalokShalom_ has quit [(Ping timeout: 248 seconds)]
<tilpner>
riclima - -I only adds to NIX_PATH, -i installs things
<ldlework>
disasm: nliadm and I are thinking about writing a thing
<riclima>
Ahh, I guess I misunderstood the flag
<riclima>
I figured it would add that to the NIX_PATH permanently?
<riclima>
I guess I should just add that to my profile?
digitus has joined #nixos
<tilpner>
No, only for the current command
<riclima>
Or is there a nix config file?
supercynic has quit [(Quit: Bye!)]
<tilpner>
Your profile is probably the right place
<riclima>
tilpner excellent, cheers
phreedom has quit [(Ping timeout: 260 seconds)]
charlycoste has quit [(Remote host closed the connection)]
jb55 has joined #nixos
<ryantm>
In mkMerge, what does _type = "merge" do?
ThatDocsLady has quit [(Remote host closed the connection)]
ThatDocsLady has joined #nixos
<copumpkin>
is there a good way for a list module option type to say "give me the default value + this thing I ask for"
<copumpkin>
the values I want are in the option'
<copumpkin>
s default value
<copumpkin>
I don't want to repeat the default in my config
<copumpkin>
but I also want it
ma27 has quit [(Quit: WeeChat 1.9)]
ma27 has joined #nixos
civodul has quit [(Remote host closed the connection)]
ebzzry has joined #nixos
<infinisil>
copumpkin: put options in the argument list at the beginning
<infinisil>
then options.<your>.<option>.default
<copumpkin>
oh I guess I can just pull it out of there
<copumpkin>
good point
<copumpkin>
thanks :)
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<infinisil>
:)
<copumpkin>
forgot that it got passed in!
<riclima>
So I know this is probably a long shot but
<riclima>
Anyone here use borgbackup on macOS? I'm getting an error trying to install it
<riclima>
Says package acl is not supported on darwin :/
<riclima>
Should I file a bug report?
ShalokShalom has joined #nixos
<MichaelRaskin>
You could try to run the same command with env NIXPKGS_ALLOW_BROKEN=1 to see if it is a real problem or lack of confidence.
<riclima>
What does that do? Just get the binaries anyway and try to run in?
<copumpkin>
I think acl is legit not supported on non-linux
<copumpkin>
I think it's just a case of a conditional dependency
<copumpkin>
assuming borgbackup claims to work on macos
<riclima>
It does, already used it before
<riclima>
Well, don't have time to debug right now
<joepie91>
riclima: if it can work without acl on darwin, then you should definitely file a bug; it means a conditional dependency should probably be added to the expression
<riclima>
I don't know what acl is tbh, borgbackup is normally distributed as a 6mb self-contained binary
<riclima>
Now I guess Nix needs to be able to build it from source, so there must be a way to build it without acl?
<riclima>
I'll revisit it and file a bug report if nobody has yet
<ldlework>
disasm basically a similar thing as home-manager, with techniques added from tilpner and nliadm, with more factored code, and a better end-user UX (how you organize your actual dotfiles)
<disasm>
sounds cool. have you talked to rycee at all about if he'd be interested in adopting the features your discussing with home manager?
chakerbenhamed1 has quit [(Ping timeout: 240 seconds)]
<ambro718>
I want to try VS Code (it's in nixpkgs) but the C++ extension doesn't work, I think it downloads some binaries and tries to run them and of course they don't. What's the trick to make it work? The same stuff that is done for Steam, right?
<copumpkin>
one approach might be to plumb in an FHS filesystem at runtime, assuming the error is that it can't find ld.so
riclima has quit [(Read error: Connection reset by peer)]
<heinz9>
is it possible to remove a user profile? I want to set an option in configuration.nix, which is already defined below /nix/var/nix/profiles/per-user/root
erictapen has joined #nixos
<infinisil>
heinz9: I'm not sure i understand what you mean
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
nisstyre has joined #nixos
jabranham has quit [(Remote host closed the connection)]
Itkovian has joined #nixos
<heinz9>
infinisil: "services.xserver.displayManager.sddm.theme" is already set in /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/services/x11/desktop-managers/plasma5.nix, but i want to set it in configuration.nix. I did not set in the file below .../root/...
<infinisil>
heinz9: use services.xserver.displayManager.sddm.theme = mkForce <your value>;
<infinisil>
lib.mkForce
<infinisil>
and add lib to your arguments at the top of the file
<disasm>
heinz9: I believe that's saying you have plasma5 enabled that's already setting the theme, what infinisil says is the way to do it.
<ldlework>
infinisil you said you linked to the relevant part of the docs; could you hit me with that again?
<ldlework>
about the options and the activation, etc
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 2 new commits to master: https://git.io/vdXst
<NixOS_GitHub>
nixpkgs/master 90594b8 Eli Flanagan: modsecurity: 2.9.0 -> 2.9.2...
<gleber_>
I am unable to reproduce https://travis-ci.org/NixOS/nixpkgs/jobs/287172491#L2557 neither on NixOS nor on Ubuntu. The GCC command is suspicious since it includes from `/usr/include/postgresql` O_O Any ideas how to reproduce?
aneeshusa has quit [(Quit: WeeChat 1.9.1)]
mudri has joined #nixos
kozaim has joined #nixos
<LnL>
yeah that looks suspicious
<LnL>
maybe try a build after apt-get install postgresql-dev
mudri has quit [(Ping timeout: 240 seconds)]
<LnL>
it's pretty likely that travis has those installed so that people using python/ruby dependencies don't run into problems
<gleber_>
infinisil: Of course substitute, or of course argument? :)
<gchristensen>
arg would be better
<infinisil>
gleber_: argument
<gleber_>
gchristensen: infinisil: ack!
<infinisil>
i mean giving arguments is explicitly supported, patching the source is super hacky and may break at any point
dw has left #nixos []
<tilpner>
Is there any hack to build things as root?
<infinisil>
"Lets instead of using /usr/local directly, build a path with { "usr", "local" }" - Some devs, probably
<infinisil>
-> patching breaks :P
<gleber_>
infinisil: right
kozaim has quit [(Remote host closed the connection)]
<disasm>
tilpner: what's the use case?
<tilpner>
Hmm, spelling it out makes it sound wrong
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<tilpner>
Sending commands to a daemon that's hopefully running, which requires you to be root
<gchristensen>
ouch
<tilpner>
(hyperctl with hyperd)
<tilpner>
I can't just start the daemon for the build, it insists on being sole ruler of my laptop, and I don't know if there's already one running at build-time
MichaelRaskin has quit [(Remote host closed the connection)]
<joko>
Any idea where "a web server that simulates cache.nixos.org" is referring to?
<pbogdan>
gchristensen: ./help.sh: bad interpreter: /bin/bash: no such file or directory
<CrazedProgrammer>
elvishjerricco: you sure you've set boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; ?
<infinisil>
ah right, i thought I saw nix-server somewhere but couldn't think of where
<elvishjerricco>
Oh I didn't have `canTouchEfiVariables`. Don't even know what that is
<infinisil>
serve*
<gchristensen>
heh, the build fixes thaht. can you fix it by hand and trry again, pbogdan ?
mudri has quit [(Quit: WeeChat 1.9.1)]
<elvishjerricco>
CrazedProgrammer: looking at the manual, that looks like it's probably it. Thanks!
<joko>
alright
<CrazedProgrammer>
elvishjerricco: no problem :)
<elvishjerricco>
CrazedProgrammer: That should really be in the manual next to the systemd-boot bit.
<sphalerite>
gchristensen: on osx (run using bash explicityl rather than relying on the shebang) system: "x86_64-darwin", multi-user? no, version: nix-env (Nix) 1.11.15, channels(linus): "nixpkgs-18.03pre116939.d7d774deea", nixpkgs: /Users/linus/.nix-defexpr/channels/nixpkgs
<sphalerite>
gchristensen: (it is indeed single-user because high sierra)
<MichaelRaskin>
gchristensen: does just running the «bash help.in» work well enough?
<sphalerite>
gchristensen: on my hacky install in debian in a chroot on my chromebook system: "armv7l-linux", multi-user? yes, version: nix-env (Nix) 1.11.11, channels(root): "nixpkgs-17.09pre111304.5328102325", nixpkgs: /home/linus/nixpkgs
<efx>
tilpner: thanks, i put that in earlier and it works but I was more wondering the why of these selection methods. It seems odd to me that I query available and then install differently. So nix-env -iA basically looks for a package with the name attribute of apacheHttpd
<tilpner>
efx - Alternatively, use -i apache-httpd
<gchristensen>
cool :) thank you MichaelRaskin
<gchristensen>
that PR seeems good to me thene
<tilpner>
efx - It's odd, slow, unintuitive, and I hope it gets removed
<efx>
thanks tilpner, that -i is exactly what i needed. oh, wow, you can tell i don't know what i'm doing
<MichaelRaskin>
Dunno if it is better to paste UID and not username
<efx>
lol, you know, user interaces
<MichaelRaskin>
Technically, local username is a disclosure.
<efx>
s/interaces/interfaces
<efx>
gchristensen: i have a multi user install on os x. Need me to run that script?
<MichaelRaskin>
And unlike Nixpkgs path we don't have any way to use it for helping
<gchristensen>
userss that care can sanitise it it
<sphalerite>
sed s/$USER/\$USER/
<tilpner>
No, please no privacy by opt-in :/
<MichaelRaskin>
Well, we care only about uid-0/non-uid 0, and printing numeric uid is approximately the same effort.
<gchristensen>
I put the userename in theree on purpose, I think it is helpful
<tilpner>
(username isn't important, but sitll)
<MichaelRaskin>
How is it helpful beyond «is UID=0?»
<gchristensen>
privacy by default: you don't share that tweet-length message unless you install it, run it, cocpy it, and paste it
<gchristensen>
truly multi-user systems
<copumpkin>
how do I pass multiple binary caches in with --option binary-caches?
<MichaelRaskin>
With '' and spaces
<copumpkin>
aha!
<copumpkin>
thanks
<gchristensen>
tweet length is relevant not because it is short, but because it isn't long enough to be cumbersome to review
efx has quit [(Remote host closed the connection)]
<LnL>
just spaces is enough
<LnL>
oh n/m
<sphalerite>
gchristensen: also because you can tweet it out to the world to show off your nixos systems :p
<sphalerite>
s/nixos/nix/
<gchristensen>
:P
<MichaelRaskin>
gchristensen: I wonder if detecting non-/nix prefix is helpful
bennofs has quit [(Ping timeout: 255 seconds)]
<gchristensen>
I'm hoping it'll be obvious, I don't intend this script to debug everything, just provide a high level set of info to kick off IRC help
<MichaelRaskin>
I guess «nix-instantiate '<nixpkgs>' -A stdenv» should always succeed quickly and tell the store path…
riclima has joined #nixos
<MichaelRaskin>
It is more about multi-user detection
<gchristensen>
eh? multi-user via different prefixes?
<MichaelRaskin>
That would be fun (but possible). I mean the current prefix can be not /nix and then multi-user detection is wrong (and half of our assumptions are wrong too)
<gchristensen>
oh
<gchristensen>
I'mhoping someone who has done that will be able to tell us that, and know it is relevant, heh
<gchristensen>
but worth exploring that,yeah
<MichaelRaskin>
I really hope we won't see anyone with $NIX_STATE_DIR not matching $NIX_STORE_DIR, though
civodul has quit [(Ping timeout: 240 seconds)]
kp__ has quit [(Quit: WeeChat 1.4)]
kp__ has joined #nixos
a6a3uh has joined #nixos
<elvishjerricco>
CrazedProgrammer: Huh. That still didn't work. No boot =/
noam has quit [(Read error: No route to host)]
noam has joined #nixos
<sphalerite>
MichaelRaskin: wait that's a thing? Heh
<sphalerite>
elvishjerricco: are you on an EFI-capable system? Do you have an EFI system partition? Did you mount it to /mnt/boot for installation?
<MichaelRaskin>
As for just using non-standard storePath — I even used it; I don't see any reason to change NIX_STATE_DIR, though.
<infinisil>
How about ACL's for the nix store
gandreani has quit [(Quit: Lost terminal)]
<sphalerite>
infinisil: why :(
<infinisil>
for private nix and multi-user systems
<sphalerite>
Sounds like a great way to break stuff
<sphalerite>
And unreliable for keeping secrets too I'd guess
<sphalerite>
I think the best approach is to just keep secrets out of the nix store
<infinisil>
oh and sparkle some encryption in there too
<sphalerite>
Meh
<sphalerite>
Even if the extension for secrets in the store gets anywhere I think I'll try to avoid using it
<infinisil>
why?
<infinisil>
i think it depends on the implementation
<sphalerite>
It just feels wrong
<sphalerite>
I'd say secrets are state
<symphorien>
I try ` boot.crashDump.kernelPackages = pkgs.linuxPackages_4_13; ` but nixos-rebuild tells me: error: The option value `boot.crashDump.kernelPackages' in `/etc/nixos/hibernationbug.nix' is not a package. Any idea why ?
<symphorien>
even the default value gives the above error
<infinisil>
sphalerite: I know what you mean, but the situation with private nix is really bad right now
<sphalerite>
infinisil: that's the thing, nix *isn't* private
<MichaelRaskin>
At some point I had a script that sets a broken build sandbox. So that I could run all the _downloads/fetches_ without doing any builds.
<gchristensen>
huh
<LnL>
lol, so everything that's not a fixed output drv aborted?
<MichaelRaskin>
Yep.
<MichaelRaskin>
But subsituters worked.
iqubic has joined #nixos
simukis has quit [(Ping timeout: 246 seconds)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
Nobabs27 has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
hc_ has joined #nixos
truh has quit [(Ping timeout: 255 seconds)]
<ryantm>
It's surprising that config for a submodule doesn't work the same way as config for a module.
hc has quit [(Ping timeout: 246 seconds)]
<disasm>
ryantm: what's the issue?
<ryantm>
disasm: I don't have an issue; It just seems like they are just very different in how they work.
<ryantm>
disasm: in config of a module, you are basically in an environment like configuration.nix; config for a submodule seems to just be a attrset that gets merged into the submodule options set.
ambro718 has quit [(Ping timeout: 240 seconds)]
hc has joined #nixos
<disasm>
ryantm: I think that's because nixos doesn't really have a concept of submodules. That attr set is just an attrset that's doing some stuff, it's not a real submodule. Someone smarter than me can correct me if I'm wrong.
<iqubic>
Does anyone in here use EXWM? How well does it work?
<disasm>
ryantm: ah, thanks, nifty
kosmikus has quit [(Remote host closed the connection)]
kosmikus has joined #nixos
<disasm>
emacs really is it's own operating system, lol :)
<ryantm>
disasm: There is an extra feature where you can add `config` to the submodule attrset and it lets you set more attributes based on the other submodule options.