<colemickens>
trying to use make-disk-image and it's not able to find /boot, and I'm nto sure why. I added some debugging to make-disk-image and you can see that /boot is available...
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjmDO
sigmundv__ has quit [Remote host closed the connection]
kleisli has quit [Ping timeout: 250 seconds]
burne251 has quit [Ping timeout: 250 seconds]
Irenes has joined #nixos
sigmundv__ has joined #nixos
orivej has quit [Ping timeout: 255 seconds]
pxc has quit [Ping timeout: 240 seconds]
sellout- has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
jluttine has quit [Ping timeout: 268 seconds]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
jluttine has joined #nixos
<samueldr>
colemickens: looks mounted in stage-1, but is that error happening in stage-2? might not have been mounted if e.g. it wasn't set in fileSystems
<samueldr>
between stage-1 and stage-2, switch_root usually happens and anything mounted outside the root isn't available
Wulfsta has joined #nixos
<colemickens>
samueldr: I'm actually calling nixos-enter --root $mountPoint -- mount
<colemickens>
ahead of the call to NIXOS_INSTALL_BOOTLOADER=1 nixos-enter --root $mountPoint -- /nix/var/nix/profiles/system/bin/switch-to-configuration boot
<colemickens>
and it shows that /dev/vda1 is mounted as /boot inside the chroot
<samueldr>
hm, maybe I don't know what make-disk-image is supposed to do...
<samueldr>
I thought this was a boot log
o1lo01ol1o has joined #nixos
<Wulfsta>
Something like `USE_ROCM=1 USE_LMDB=1 USE_OPENCV=1 python setup.py install` is handled in `preConfigure` right?
<colemickens>
it preps the disk by installing to a directory, then cptofs'ing it to an ext4 image
<colemickens>
then it boots the image, format/mounts /boot and calls nixos-enter switch-to-cfg boot to install the bootloader into the ESP partition
stepcut has joined #nixos
growpotkin has quit [Ping timeout: 250 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
mnoronha_ has joined #nixos
buffet has joined #nixos
buffet_ has quit [Ping timeout: 264 seconds]
<GlennS>
The release notes for NixoS 19.03 say that `buildPythonPackage` now sets `strictDeps = true`, but this is the only mention of `strictDeps` in the Nix/NixOS/NixPkgs manuals. Does anyone know what it means?
<{^_^}>
#58720 (by astro, 1 week ago, open): openjdk: disable hotspot os version check
<colemickens>
How has that not affected the build servers? ^
<colemickens>
Do the build servers build certain packages on a non-NixOS host?
<colemickens>
edit: I guess it's just a Linux 5 thing.
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
day|flip has quit [Remote host closed the connection]
drakonis_ has quit [Read error: Connection reset by peer]
<colemickens>
oh god what have I done. The workaround doesn't work and apparently it's fixed. This is how I get suckerd into trying to update openjdk now
<colemickens>
oh, there's not a GA for 212 yet, :(
ayerhart has quit [Remote host closed the connection]
hlolli_ has quit [Remote host closed the connection]
hlolli_ has joined #nixos
slack1256 has joined #nixos
<growpotkin>
I'm not sure I "get" the point of channels. Is it valid to do : `nix.nixPath = ["nixpkgs=https://github.com/nixos/nixpkgs/archive/master.tar.gz"];` instead on using `nix-channels` at all?
wfranzini has quit [Remote host closed the connection]
<bsima>
except you'll want to pin the specific commit, not just point it to master
<growpotkin>
whoa
<growpotkin>
this is awesome haha
<growpotkin>
bsima++
<{^_^}>
bsima's karma got increased to 1
<clever>
growpotkin: note, that setting nixpkgs=url, will cause nix to re-download the url every hour or so
<growpotkin>
yeah this is exactly what I was looking for
<clever>
growpotkin: so it will random update with zero warning
<bsima>
cool i got a karma
<bsima>
<bsima>
thanks!
<growpotkin>
clever: Thanks for the heads up, thats what I was starting to gather from the docs.
<clever>
growpotkin: using nix-channel, will give you `nix-channel --rollback`, so you can undo --update
<clever>
so you know when it updates, and you can un-update
<growpotkin>
clever: Definitely glad to have it cleared up tho :)
<clever>
i dont think any other distro makes it so simple to un-update the system
<growpotkin>
clever: It is definitely nice; although to be honest I've never once rolled back an update haha
<clever>
ive had to rollback my router before, because the new rev failed to build
<clever>
which left me unable to nixos-rebuild at all
ayerhart has joined #nixos
<growpotkin>
the reason I bring it up is because I use 3 different machines daily, and love just syncing my config, and rebuilding to get "everything matchy matchy". I always forget to keep channels consistently updated though
<linarcx>
symphorien: Thank you. General question: How can i find a specific program(in this case: clang-format) belong to X package(in this case clang-tools)?
<symphorien>
with nix-index and nix-locate
<symphorien>
this is what backs ,locate
Netsu has joined #nixos
<linarcx>
symphorien: Ah, thank you again. :)))
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srhb>
Netsu: You can builtins.fromJSON (builtins.readFile ./the-output.json)
<srhb>
Netsu: Then you can get the rev in order to construct the fetchTarball url.
pereira_alex has quit [Quit: Konversation terminated!]
<srhb>
Unfortunately you'll probably need to wrangle it a bit more to get the sha if you insist in fetchTarball
<Netsu>
srhb: awesome, I would try
<srhb>
Oh, actually no, it looks stable neough.
<Netsu>
thanks a lot
<srhb>
I get the same hashes with unpack and with nix-prefetch-git, so all's good.
<johanot>
srhb++
<{^_^}>
srhb's karma got increased to 52
<jluttine>
in python package derivation, how should i add a non-python package to inputs so that its executable is on PATH? i tried adding to checkInputs but the tests won't find the executable of the non-python package..
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
orivej has joined #nixos
<linarcx>
Guys, when i want to use qtcreator help, i get this issue: `QTextBrowser: No document for qthelp://org.qt-project.qtcreator.462/doc/index.html`
thc202 has joined #nixos
<{^_^}>
[cabal2nix] @roman-kashitsyn opened pull request #414 → Add a minimal version contstraint for 'containers'. → https://git.io/fjmHF
ixxie has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @adisbladis pushed 2 commits to pull/59368/head: https://git.io/fjmHh
sigmundv__ has quit [Remote host closed the connection]
<Netsu>
srhb: BTW where can I get `nix-prefetch-git`? Currently I have `nix-prefetch-url` only
fusion809 has quit [Remote host closed the connection]
<srhb>
Netsu: pkgs.nix-prefetch-git
<srhb>
Apparently we even have a github version
<srhb>
That will make it cleaner yet.
<Netsu>
nice, thanks
knupfer has quit [Ping timeout: 252 seconds]
Anton-Latukha has joined #nixos
<linarcx>
Why nix-index is tooo slow?
<srhb>
linarcx: It has to query the file lists for a loooot of packages.
<srhb>
Plus, evaluating all of nixpkgs top-level takes a while :-)
<linarcx>
srhb: Yes i know.
<srhb>
linarcx: I guess I didn't understand your question then.
<infinisil>
You *can* use the ,locate here if you don't mind a potentially slightly outdated listing
<phdoerfler>
Hi! I have a super impure and horrible and OMG it will destroy the world build, just kidding, it needs internet access and when trying to upgrade to 19.03 it fails because nix* won't let it internet. I tried __impure = true; which did nothing. I tried nix.sandBox = false; which also did nothing. What is it?
<phdoerfler>
What changed from 18.09 to 19.03 that would prevent builds from having access to the interwebs?
<tilpner>
The NixOS option to disable the sandbox is nix.useSandbox
<phdoerfler>
btw the name "__impure" is just horrific
<tilpner>
__impure is not implemented in master
<phdoerfler>
tilpner: my bad, that's what I did: nix.useSandbox = false;
<immae>
isn’t it __noChroot? it’s still working for me
<phdoerfler>
nix.sandBox was a typo
<tilpner>
Where did you put that? Did you rebuild switch?
<phdoerfler>
I put it in configuration.nix
<phdoerfler>
and yes I rebuild switch
<phdoerfler>
I have not enabled sandbox anywhere btw. It was just a suspicion that it might be enabled by default now?
<tilpner>
Yes, it's enabled by default on NixOS
<phdoerfler>
since when? 19.03?
<tilpner>
It is quite useful, so it should be left enabled if possible
<phdoerfler>
oh yeah
<phdoerfler>
I just need internet for this one particular self written build
<phdoerfler>
this is my default.nix that I fabricobbled together
<phdoerfler>
worked really nice on 18.09
<phdoerfler>
I had to change /var/tmp/...whoami... to /tmp/...whoami... for 19.03 and apparently sacrifice an unborn child to gain internet access or something
<tilpner>
Does `grep sandbox /etc/nix/nix.conf` print "sandbox = false"?
<phdoerfler>
uh I added nix.useSandbox = false; to configuration.nix. Does that generate /etc/nix/nix.conf? I thought that had to be written by hand
<tilpner>
nix.conf is generated from your configuration.nix
<phdoerfler>
interesting
<phdoerfler>
and you are on the right path: It does print sandbox = true
<immae>
you can put sandbox = relaxed and use __impure (or __noChroot if equivalent) in derivation where you need to have impure version, so that you keep most of them pure, too?
<tilpner>
Are you sure your configuration.nix contains nix.useSandbox = false;? Not in your editor, but on disk
<Taneb>
Does the new-style nix build have a flag for parallel building?
<Taneb>
Like nix-build -jN
<tilpner>
I've had people forget to save or use sudoedit and not exit the editor
<phdoerfler>
tilpner: yes, I renamed useSandbox to useSandboxx (two x) and it failed the rebuild switch
<tilpner>
Many people want evaluation to be faster, and there is optimisation going on
<phdoerfler>
tilpner: So once again a sacrifice has been made in the name of the holy grail of performance
rajivr___ has joined #nixos
<phdoerfler>
NixOs, you failed me. I feel betrayed.
<tilpner>
But my system takes 5.9s to evaluate (system, less for a partial eval), and it would need to be brought down to less 0.1s for me to find this acceptable
<phdoerfler>
Indeed
<phdoerfler>
at the end it's just a graph
<phdoerfler>
a not super small graph
<phdoerfler>
but just a graph
<tilpner>
Feel free to make your tradeoff differently
<phdoerfler>
how?
<phdoerfler>
is there a nix.beAtomic = true; I can set?
<{^_^}>
seppeljordan/nix-prefetch-github#8 (by Pitometsu, 2 minutes ago, open): How it supposed to work?
<immae>
tilpner: do you have hints get such a small time to evaluate? mine usually take ~10s, which is very long...
<phdoerfler>
a nix.iWouldRatherHaveYouBeSlowAndNiceThanFastAndFurious = true; ?
<tilpner>
All you need to do is wrap the nix commands and pass a NIX_CONF_DIR that you built from the configuration.nix
<tilpner>
And you don't even have to do the logic yourself
<tilpner>
Earlier, we built just the nix.conf file from your system
<phdoerfler>
ah
<Yaniel>
clearly nixos-rebuild needs a similar --pure flag to nix-shell :P
<tilpner>
And that takes about 0.8s for me
<tilpner>
That will take care of the nix.conf dependency
<tilpner>
There is also the NIX_PATH dependency, which would take another workaround
<tilpner>
(But is still fairly easy)
<phdoerfler>
ok I'll start my coffee and then sit down and see if I can figure this out
alexherbo2 has quit [Quit: Ping timeout (120 seconds)]
<phdoerfler>
I still am somewhat of a nix newb so bear with me
alexherbo2 has joined #nixos
<tilpner>
immae: That might just be a difference in complexity of the config and the machine you run it on
<phdoerfler>
and the only way I survived this long is because I have a growing personal collection of notes and snippets of nix-expressions I found on the internet that help me do what I wanna do
<immae>
ok
ggpeti has quit [Ping timeout: 252 seconds]
<tilpner>
immae: I try to keep the imported module closure smaller by using explicit imports where I can
ixxie_ has joined #nixos
<tilpner>
(As opposed to importing everything and using the module system to activate certain modules. This means any module I write and import is active by default)
<immae>
ok
<immae>
I can definitly improve on that :D
Notkea has quit [Ping timeout: 240 seconds]
<immae>
(I write module that are disabled by default and I enable them in the caller)
ixxie_ has quit [Client Quit]
ixxie_ has joined #nixos
pie_ has joined #nixos
parsnip is now known as parsnip0
<boogiewoogie>
hey, is there a way I can find the package that produced a specific out path?
<arianvp>
replacing it with <nixos-19.03/nixos/modules/profiles/qemu-guest.nix>
<arianvp>
works, but I dont want to use globals
<tilpner>
pkgs is set via the module system
Makaveli7 has joined #nixos
<andi->
yeah, using `pkgs` for anything that constructs the `imports` (on any level of recursion) will not work...
<Jetien__>
Hi I'm having trouble building using "fetchgitPrivate" on a nixos host that is much newer than the nixpkgs from the build. Somehow the ssh from fetchGitPrivate can't switch users on the host machine. Has anybody experienced this issue before?
<andi->
would be nice to have a `bootPkgs` or similar that doesn't have that issue. I regulary have some pkgs.fetch* functions that I'd like to use there.
<{^_^}>
[nixpkgs] @justinwoo opened pull request #59589 → purescript: upgrade to 0.12.5 → https://git.io/fjm7N
<tilpner>
andi-: That would be builtins and <nix>
<andi->
tilpner: I know that.. I just think that a nixpkgs version that isn't affects by the nixos configuration would be handy in that case..
<{^_^}>
[nixpkgs] @timokau pushed commit from @r-ryantm to master « jmol: 14.29.32 -> 14.29.36 (#59546) »: https://git.io/fjm7x
giffel has joined #nixos
<tilpner>
Yes, is is handy, my configuration has one, but at the same time it seems wrong to set that globally
<arianvp>
too bad. How do I import these hidden modules in a 'modular' way then?
Notkea has joined #nixos
<arianvp>
could I pass pkgsRepo as a separate argument to lib.evalModules ?
<tilpner>
Oh, if you're considering that...
<tilpner>
I wasn't going to mention it, because most people shy away from touching the evaluation process
<andi->
arianvp: I think so. That is what I meant with `bootPkgs` instead of just the location
<andi->
adding it there might a good enough solution for your case.
<arianvp>
tilpner: I currently use pkgs.nixos function to evaluate my configs, but I guess I could replace it with lib.evalModules
<tilpner>
But I find that using specialArgs to make functions available that construct paths is quite clean
<arianvp>
it's just a thin wrapper I think
<teto>
Jetien__: I think you are better of using builtins.fetchGit
tboston_ has joined #nixos
darkf has quit [Quit: Connection closed for inactivity]
__monty__ has joined #nixos
<tilpner>
So I have a function nixos = name: "${path}/nixos/modules${toString name}"
<tilpner>
And then I can do imports = [ (nixos /profiles/qemu-quest.nix) ];
<tilpner>
But of course the resulting module now depends on being instantiated in your custom way
sigmundv has joined #nixos
<tilpner>
Which may or may not be a problem for you
<giffel>
trying to setup a nix-shell for a haskell project when I get some compilation errors for a haskell dependency that I think might be due to some ghc flags not being passed properly or that might not be compatible with the current version. is there any way I can get a full log of what commands are being run during build? so far I tried nix log path/to/.drv which shows me the stdout but not the explicit ghc compiler commands
<arianvp>
apparently there is a modulesPath specialArgs already
<arianvp>
:O
<teto>
giffel: you can try nix-shell -vvvvvv or try to build the said dependency in its own nix-shell -A ...
<arianvp>
that sounds ... useful
<giffel>
teto: thanks, will try!
<tilpner>
arianvp: Oh right, I forgot about that
<jophish>
Hi all.
<jophish>
I'm trying to build dconf on armv7l, however the shm test fails because of SIGTRAP
<jophish>
does this ring any bells?
ThatDocsLady has joined #nixos
<arianvp>
modulesPath seems to work! awesome
Mateon1 has quit [Quit: Mateon1]
tboston_ has quit [Ping timeout: 268 seconds]
mg has joined #nixos
tboston_ has joined #nixos
<boogiewoogie>
I just switched main channels from 18.09 to 19.03 and now a previously working build fails due to this glib error: https://hastebin.com/aqoyajiviy. I'm in this nix-shell https://hastebin.com/ditewilofi running `cmake -DLINUX_LOCAL_DEV=true -DGTK2_GLIBCONFIG_INCLUDE_DIR=${glibdev}/lib/glib-2.0/include -DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2}/lib/gtk-2.0/include -DGTK2_INCLUDE_DIRS=${gtk2}-dev/include/gtk-2.0` directly from the shell (won't work
<boogiewoogie>
otherwise). However, `${glib}/lib/glib-2.0/include/glibconfig.h` very much exists inside the shell. Anyone got a hunch as to what's going wrong?
Mateon1 has joined #nixos
<sphalerite>
boogiewoogie: did you try using a fresh build dir?
<mg>
Lately the bootloader has stopped incrementing the generation pointer, i.e. every time I boot I have to manually select the latest generation before booting. Any way to fix this?
<arianvp>
mg:are you using systemd-boot?
<tilpner>
boogiewoogie: Did you have sandboxing enabled on 18.09?
<mg>
arianvp: Yes
<arianvp>
systemd-boot saves a default boot entry in the EFI ROM if you hit spacebar in the bootloader
<arianvp>
when booting the default entry is marked > or *
ixxie has quit [Ping timeout: 255 seconds]
<arianvp>
if you press spacebar again it should unmark it
<arianvp>
if there is no default, it will always select the latest
<mg>
arianvp: but I seem to recall that the latest/newest generation was always marked as default before?
<arianvp>
it does, if you haven't manually marked one as default
<mg>
ahh, so I've misclicked somewhere
<mg>
arianvp: thanks, I'll try to unmark on next boot :)
<arianvp>
it's because sd-boot keeps some mutable state around its UI
<arianvp>
unfortunatley :)
<boogiewoogie>
sphalerite: No, I haven't, trying now, but does this matter? Isn't it getting the same library paths from the store regardless of build dir?
<boogiewoogie>
tilpner: No, I don't
pereira_alex has joined #nixos
<sphalerite>
boogiewoogie: cmake likes caching stuff, which doesn't work with nix
<tilpner>
boogiewoogie: 19.03 enabled sandboxing by default
knupfer has joined #nixos
<boogiewoogie>
sphalerite: I see. Wow, good to know. This actually did it, too. Thanks a lot :)
<sphalerite>
\o/
<tilpner>
Oh, I missed that you were in a nix-shell
<boogiewoogie>
tilpner: oh, okay, is there a reason for that?
<tilpner>
Makes the sandboxing irrelevant
<tilpner>
Sure, sandboxing is great and everyone should have it
<qyliss^work>
If you use things in nix-shell / nix run a lot, it can be annoying if things are cleaned up a lot and have to be redownloaded. OTOH, running out of space is also annoying. So it's a tradeoff.
<tilpner>
You can even make Nix run GC automatically when the store fills up
<{^_^}>
[nixpkgs] @NeQuissimus pushed commit from @r-ryantm to master « kotlin: 1.3.21 -> 1.3.30 »: https://git.io/fjmdY
asymmetric| has quit [Ping timeout: 246 seconds]
tboston_ has joined #nixos
kleisli has joined #nixos
alexozer has quit [Client Quit]
asymmetric| has joined #nixos
alexozer has joined #nixos
lassulus has quit [Ping timeout: 245 seconds]
worldofpeace has joined #nixos
nomeata has joined #nixos
<nomeata>
Hi. Odd issue: When building something via `nix-build` on Travis (single-user installation), it seems that no `/usr/bin/env` (or even `/usr/bin`) is available, so scripts with `#!/usr/bin/env bash` fail. Outside of `nix-build` stuff is there just fine. Any idea how that can be?
<{^_^}>
#6227 (by peti, 4 years ago, closed): chroot environments have no `/usr/bin/env`?
worldofpeace has quit [Ping timeout: 245 seconds]
Jetien__ has quit [Ping timeout: 252 seconds]
exarkun has joined #nixos
pereira_alex has joined #nixos
<{^_^}>
[nixpkgs] @timokau opened pull request #59595 → [WIP] binutils, build-fhs-userenv: make use of ld fallback → https://git.io/fjmdE
asymmetric| has quit [Ping timeout: 252 seconds]
<emilsp>
why for one binary I get ldd output with libdbus-1.so.3 => not found but for a different binary I get libdbus-1.so.3 => /nix/store/cvjw6gh0l5ba2k92d4ivgvyg1972gzb7-dbus-1.12.12-lib/lib/libdbus-1.so.3 (0x00007f8d24d6a000)
<pereira_alex>
i am having trouble configuring an optional on a user package, waybar , although i have nixos-option waybar = { pulseSupport = true; }; , i can't enable pulseaudio on waybar package ! what am i missing ?
<emilsp>
is there a way I can coax the first one to use the same shared object?
<yorick>
it can't hurt to have this in 19.03, though
rev_strangehope has quit [Ping timeout: 250 seconds]
rev_strangehope has joined #nixos
<gchristensen>
just a heads up, I'm about to upgrade the core infra for ofborg in a way that I haven't done in quite some time. it'll be down for a few minutes. hold on to your butts, though
<tilpner>
But it does have an advantage in combination with auto-GC. auto-GC only runs when Nix fills up the filesystem, not when something else fills it up. So if Nix gets its own filesystem, auto-GC will always work
parsnip0 has quit [Quit: Connection closed for inactivity]
<mthst>
tilpner: i thought so, but it's weird that the article doesn't mention it
<mthst>
there's also a lot of Prescriptive Tone to be cleaned up there
<__monty__>
gchristensen: You *will* tell us when we can let go of our buttocks, won't you? (Painstakingly typed with my nose.)
<johanot>
:D
<gchristensen>
:D
<tilpner>
mthst: makefu added that, but it's possible it was just copied from the old wiki
<{^_^}>
[nixpkgs] @amirshavit opened pull request #59602 → boost170: init at 1.70.0 → https://git.io/fjmbY
Netsu has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @peti pushed 0 commits to haskell-updates: https://git.io/fjmbG
rjmill has joined #nixos
user____ has joined #nixos
orivej has quit [Ping timeout: 255 seconds]
mnoronha_ has joined #nixos
<basvandijk>
@yorick yes, I think I can vendor prometheus2 with some effort but it would be way more convenient to have in in 19.03. The only potential issue is that services.prometheus.dataDir now requires /var/lib/ as a prefix. I think it's very unlikely if somebody has set that option to something outside /var/lib. If they have they will get an eval error with a good error message of course. So I think it's safe to merge into 19.03. I'll probably
<basvandijk>
do that later today.
rjmill has quit [Ping timeout: 250 seconds]
rjmill has joined #nixos
nomeata has quit [Remote host closed the connection]
worldofpeace has joined #nixos
user____ has quit [Ping timeout: 246 seconds]
galaxie has quit [Ping timeout: 256 seconds]
arianvp has quit [Quit: WeeChat 2.4]
<emilsp>
If I enable libvirtd, should the virtual networks __just work__? Because to me it seems that they don't.
arianvp has joined #nixos
<emilsp>
scratch that, I'm an idiot.
drakonis_ has quit [Ping timeout: 250 seconds]
<gchristensen>
I don't believe you
arianvp has quit [Client Quit]
<pereira_alex>
ok, got it how to do what i asked earlier: create ~/.nixpkgs/config.nix and make an pkg override
arianvp has joined #nixos
galaxie has joined #nixos
drakonis_ has joined #nixos
arianvp has quit [Client Quit]
arianvp has joined #nixos
Notkea has quit [Read error: Connection reset by peer]
Notkea has joined #nixos
<emilsp>
gchristensen: virtual networks work far better if the VMs which should use them actually use them. It seems that by default, virt-manager will specify the highest ranked network by alphabetical order, so my docker virtual networks were being used.
<gchristensen>
yeah, it isn't really going to work nicely
<gchristensen>
that is called Recursive Nix
stepcut has quit [Remote host closed the connection]
<pie_>
crap, i knew recursive nix wasnt supported, hoped my case might be simple enough 'xD
stepcut has joined #nixos
<gchristensen>
the only use of nix-build inside nix-build which really works is if they're trivial builds without any dependencies -- essentially testing to make sure Nix works
Jetien__ has joined #nixos
drakonis_ has quit [Ping timeout: 255 seconds]
<pie_>
i should be able to flatten this into normal nix without losing functionality?
<gchristensen>
well
<gchristensen>
yes
<gchristensen>
there are builtins for readDir, hashing strings, basename
<pie_>
actually..hm. i guess i could just move the bash stuff to the nix level instead, but theoretically, would i be able to alternate between bash and nix running things? or is that precisely what recursive nix ends up being
_kwstas has quit [Remote host closed the connection]
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
_kwstas has joined #nixos
_kwstas has quit [Client Quit]
<romildo>
worldofpeace, hello.
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<worldofpeace>
romildo: hey :)
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<romildo>
worldofpeace, I would like to finish adding those DDE services in NixOS.
_kwstas has joined #nixos
rjmill has quit [Ping timeout: 264 seconds]
_kwstas has quit [Remote host closed the connection]
hyper_ch2 has quit [Ping timeout: 256 seconds]
Makaveli7 has quit [Quit: WeeChat 2.4]
<worldofpeace>
romildo: i'm unsure whether having a similar setup to gnome's modules is going to work well
<romildo>
worldofpeace, an idea is finding the packages containing applications which would make sense to be used outside of DDE, and give them separate modules if needed.
mexisme has joined #nixos
<romildo>
worldofpeace, from the already package I would list: terminal, calendar, image viewer, screenshot
<worldofpeace>
romildo: right. I think we can start with the applications. But the modules for the system services maybe should come later
<worldofpeace>
romildo: things that are specific for DDE should probably just be in the desktop manager module
<romildo>
romildo, but how to deal with the modules provided by more basic packages, like dde-api, which may be needed by several applications and the desktop manager module?
<worldofpeace>
romildo: looking at dde-api now
<romildo>
worldofpeace, I do not want to replicate the code for them.
ThatDocsLady has joined #nixos
andi- has quit [Ping timeout: 250 seconds]
<romildo>
worldofpeace, https://github.com/NixOS/nixpkgs/issues/59023 has a list of packages which provides some dbus service, systemd service, kernel module or some specific user/group.
<mwilsoncoding>
oh, not much, just finally registering a freenode account so I can retire @everybodyHertz and @sumTimes - too much work to maintain live sessions at home/work nowadays
<pie_>
ooook so thats not how to do that "error: the contents of the file '/home/nixos/stuff/fiddb/scratch/prodtest/samples/mount' cannot be represented as a Nix string"
<fresheyeball>
I have never used .extend to add haskell packages before
<fresheyeball>
any know what it really does?
<fresheyeball>
is it potentially why my build isn't getting sandboxed?
mnoronha_ has quit [Ping timeout: 255 seconds]
romildo has quit [Ping timeout: 250 seconds]
lassulus has joined #nixos
<aminechikhaoui>
hm I wonder what's the general plan for python 2.7 EOL in NixOS, this reminded me https://termbin.com/s191
<romildo>
worldofpeace, but you are more experienced and knowledgeable than me, and your guidance here will be helpful.
ThatDocsLady has quit [Remote host closed the connection]
<worldofpeace>
romildo: deepin-anything look like it's going to need some testing for sure with it's service. But IMHO a feature, even parts of it, should be a complete feature when it lands.
ThatDocsLady has joined #nixos
<worldofpeace>
romildo: So as you said, we're just finding which ones we can complete most completely if that makes any sense
<worldofpeace>
Though there's a slight problem with the programs that get added to `environment.systemPackages` and just need a module because it has a dbus service.
<worldofpeace>
I've noticed that if the program is in `PATH` it just gets launched and adding it to dbus.packages doesn't even matter
linarcx has joined #nixos
aanderse-work has joined #nixos
<romildo>
worldofpeace, the dbus service for those programs may be used by other parts of DDE, I suppose, which would launch them through the service, for instance.
petrkr has quit [Remote host closed the connection]
wfranzini has quit [Remote host closed the connection]
<worldofpeace>
romildo: Well that means having modules for deepin-screenshot for instance aren't really needed.
leat has quit [Remote host closed the connection]
leat has joined #nixos
kleisli has quit [Ping timeout: 252 seconds]
lassulus has quit [Ping timeout: 255 seconds]
<{^_^}>
[nix] @edolstra pushed 4 commits to 2.2-maintenance: https://git.io/fjmhj
<worldofpeace>
romildo: But I guess we're stuck with this "having a module for x ecosystem internals" and then enabling them within the DE module. So I guess we'll have to stick with it
<{^_^}>
[nix] @edolstra pushed to 2.2-maintenance « Bump version »: https://git.io/fjmjf
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
<worldofpeace>
romildo: Though I did like the idea of "a unique module for the entire DDE" since they're not flexable
<romildo>
worldofpeace, thinking about some applications, let's say deepin-terminal. It uses the dde-menu service to implement its menus. Other applications also need the dde-menu service, although it is of no value per si. How would a system be configured to have deepin-terminal?
<{^_^}>
[nixpkgs] @kalbasit pushed commit from @r-ryantm to master « kubetail: 1.6.7 -> 1.6.8 (#59558) »: https://git.io/fjmjK
asymmetric has quit [Ping timeout: 264 seconds]
<romildo>
worldofpeace, option 1: explicitly add dde-menu to services.dbus.packages and deepin-terminal to environment.systemPackages
asymmetric_ is now known as asymmetric
<worldofpeace>
romildo: That's purely a dbus service. I wish in nixpkgs we had a way we could say that this package needs this dbus service. So when you add it to `systemPackages` it'll bail if it can't find it. So yeah if someone just wants just dde apps they'll need to enable that menu service.
<romildo>
worldofpeace, option 2: explicitly enable the dde-menu service (supposing there is one) and add deepin-terminal to environment.systemPackages
<romildo>
worldofpeace, option 3: enable a deepin-terminal program module (supposing there is one) that would take care of the details
<mdash>
worldofpeace: you can have it add stuff to services.dbus.packages
tmaekawa has quit [Quit: tmaekawa]
mnoronha_ has quit [Ping timeout: 268 seconds]
[Leary] has joined #nixos
Lears has quit [Ping timeout: 264 seconds]
<arianvp>
how do I make nix-build ./nixos/tests/<test here> create a log.html file even if the test failed?
mabel has joined #nixos
<arianvp>
I want to figure out why a test failed, but I only get logs on ... success
<worldofpeace>
romildo: I don't really like the `programs` modules in general. We already have option 2 for gnome-terminal (you need to enable the terminal server) so I think we can go with that
teej has quit [Quit: Connection closed for inactivity]
acarrico has joined #nixos
<elvishjerricco>
arianvp: What was unclear about the "running tests interactively" section?
<elvishjerricco>
arianvp: The result symlink referenced by that section is the output of the `-A driver` derivation, not the test itself. The driver is just a script that puts you in an environment to run the tests
<elvishjerricco>
arianvp: You can also `nix log` on derivations that fail to build
lassulus has joined #nixos
astrofog has quit [Ping timeout: 252 seconds]
arjen-jonathan has quit [Ping timeout: 252 seconds]
<arianvp>
elvishjerricco: the #anchor links are swapped, (bug in the html)
<arianvp>
that link actually links to the 46.2. Running Tests section
<arianvp>
but it does answer my question haha. running the driver manually allows me to generate that log.html file even if the tests fail right?
<etu>
srhb: Maybe? I have a postscript file that I want to look at
<sphalerite>
etu: evince :p
<etu>
oh
<etu>
it can do that
<etu>
That's handy, thanks :)
Thra11 has joined #nixos
judson has joined #nixos
boogiewoogie has quit [Quit: Leaving]
freeman42x has joined #nixos
<{^_^}>
[nixpkgs] @strager opened pull request #59619 → python37: fix build on macOS → https://git.io/fjYvq
<infinisil>
sphalerite: evince doesn't include application/postscript in its mime types :(
<sphalerite>
infinisil: PR!
<infinisil>
I already thought it would be really cool if I could implement `,locate opens .ps`, which would look through all .desktop files to find a package that has a binary that opens that file type
<infinisil>
sphalerite: That's a good idea
<__monty__>
Not everything has a .desktop file though.
<infinisil>
At least most desktop-intended applications do
<infinisil>
It's the closest we can get to "which package can open this" (with reasonable effort)
<__monty__>
But those are the least useful ones : /
<infinisil>
__monty__: You can always PR .desktop files for packages :)
<infinisil>
Well, for a lot of them anyways
<infinisil>
__monty__: What useful ones are you thinking of?
<__monty__>
How would I do that if I don't know what they open in the first place?
<__monty__>
But a .desktop doesn't make much sense for something like ranger, while it *does* do useful things with files.
arianvp has quit [Ping timeout: 246 seconds]
zupo has joined #nixos
<infinisil>
Hmm yeah, but ranger doesn't really "open" files anyways, we could call that a previous
<infinisil>
preview*
<__monty__>
Yes, but it makes me think of all the cli utilities that don't come with desktop files.
<worldofpeace>
infinisil: Huh we just enabled postscript support for evince again
arianvp has joined #nixos
<{^_^}>
[nixpkgs] @moyamo opened pull request #59620 → [19.03] emacs: Link subdirs.el into emacs-packages-deps → https://git.io/fjYvu
fusion809 has joined #nixos
<__monty__>
The lack of "show me things that open X" means people'll google. Having the feature'll add a threshold to just asking or googling.
<__monty__>
I'm not against it though. That doesn't mean I have to like it : )
<infinisil>
exarkun: You can do something like this: nix-build '<nixpkgs/nixos>' --arg configuration '{ imports = [ ./miniconf.nix ]; privatestorage.staging = ...; }'
<infinisil>
exarkun: You can do something like this: nix-build '<nixpkgs/nixos>' --arg configuration '{ imports = [ ./miniconf.nix ]; privatestorage.staging = ...; }' -A system
<exarkun>
There's no simpler way to set privatestorage.staging from the command line?
<infinisil>
exarkun: Nope
<infinisil>
Well
<exarkun>
I am using nixpkgs/nixos and the sd-image builder
<exarkun>
And I have the string you gave for `configuration` in another .nix source file
<infinisil>
You could wrap above in a nix file with an argument list like `{ staging }` at the top, then you could use `--arg staging foobar`
<exarkun>
seems like I should be able to squeeze one bool in :/
<infinisil>
What do you want to evaluate?
<infinisil>
.system?
sigmundv has joined #nixos
<exarkun>
config.system.build.sdImage
asymmetr- has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil>
exarkun: You could do `{ configuration }: (import <nixpkgs/nixos> { configuration = { imports = [ ./miniconf.nix configuration ]; }; }).config.system.build.sdImage` in a file
<exarkun>
I tried adding staging to the argument list earlier but it doesn't seem like it gets passed. something about how modules work?
<infinisil>
Then `nix-build --arg configuration '{ privatestorage.staging = ...; }'
<hexa->
I'm currently trying to reduce the number of build cores for a kernel rebuild
ddellacosta has quit [Client Quit]
asymmetric has quit [Ping timeout: 255 seconds]
<waleee>
how would one go about adding sway to gdm and launching it without a xserver?
<waleee>
I tried adding it to services.xserver.displayManager.session and services.xserver.windowManager.session, but that launched it on top of an xserver
<hexa->
I've currently set nix.maxJobs = lib.mkForce 1;\nnix.buildCores = lib.mkForce 2;, but the kernel build will always use all available cores
<hexa->
> > build flags: -j4 -l4 [...]
<{^_^}>
error: syntax error, unexpected '>', at (string):243:1
<hexa->
thats not possible, because the machine will run out of memory if it builds with too many cores :)
acarrico has joined #nixos
ggVGc has joined #nixos
<ggVGc>
can someone tell me how to make sense of this error messag?
<ggVGc>
$ ~/ nix-channel --update
<ggVGc>
unpacking channels...
<ggVGc>
error: while setting up the build environment: getting attributes of path '': No such file or directory
dbmikus has joined #nixos
zupo has joined #nixos
<exarkun>
ggVGc: That looks kind of like an error I had at some point where I had an empty string for a path in some configuration somewhere, I think
<nixosbeginner01>
Are the any sorts of power savings that might prevent a system using the plama5 desktop environment from being reachable over the network? I'm plugged into ethernet and tryin to debug my computer being randomly unreachable
<nixosbeginner01>
The ssh daemon is enabled
mnoronha_ has quit [Ping timeout: 246 seconds]
<mthst>
i have an issue with nix, strings and numbers
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nixosbeginner01>
srhb: Yea, that was the first thing that came to mind
<srhb>
mthst: It's a precedence issue
<mthst>
ahhhh
mnoronha_ has joined #nixos
<mthst>
thanks
<srhb>
mthst: function application is left associative, so you have (toString 1024) * ...
<mthst>
sorry
<srhb>
mthst: No problem :)
<nixosbeginner01>
I've switched to "Never suspend or shutdown" in power saver settings
<JonReed>
Is there a way to locate binaries without relying on bot here and without using local index? I mean, if used locally, wouldn't you need to have a package already installed for `nix-locate` to be able to locate its binary, somewhat defeating the purpose (trying to find the package where that binary is to install it)?
<nixosbeginner01>
Not sure if this will help, since manually suspending doesn't make it unreachable
<JonReed>
,locate systemd-cat
<srhb>
nixosbeginner01: Wait, what? That's even stranger :-)
<{^_^}>
Found in packages: systemd, systemd_with_lvm2
<srhb>
nixosbeginner01: It certainly _should_ be unreachable while suspended.
<samueldr>
JonReed: nix-locate builds its index on hydra's results, so no need to install things to have them indexed
nixosbegginer_01 has joined #nixos
<JonReed>
samueldr: Ah, ok. Thanks.
<srhb>
JonReed: (The command from the package to build the index from hydra is called nix-index, fwiw)
<kingsley>
Hi
<nixosbegginer_01>
srhb: Okay, so maybe this is interesting or maybe not. When it's suspended, ssh just hangs, rather than producing the same "unreachable" message
nixosbeginner01 has quit [Ping timeout: 256 seconds]
<srhb>
nixosbegginer_01: What's the exact error message?
<nixosbegginer_01>
srhb: "port 22 network is unreachable" (when it's on but not reachable) vs. "port 22: Operation timed out" when it's suspended
<srhb>
The latter behaviour sounds expected. The former sounds like it's not caused by the NixOS machine, but some routing issue, but honestly I've no idea.
kreisys has joined #nixos
<hyper_ch>
hmmmm, autofs looks weird to setup
<hexa->
infinisil: yep, that did it. I missed a rebuild that updated the settings obviously. :)
judson has quit [Ping timeout: 268 seconds]
<srhb>
hyper_ch: x-systemd.automount is nicer in many cases.
sam_d has quit [Ping timeout: 255 seconds]
<hyper_ch>
srhb: do tell me more
anderslundstedt has joined #nixos
<hyper_ch>
problem is wireguard doesn't get properly started at bootup because of dns so I run a cron that regularly checks if the wg interface is running nicely and if not, call it
sam_d has joined #nixos
<srhb>
hyper_ch: I think it's just a nicer way of setting up autofs stuff than through the regular autofs options
<hyper_ch>
well, with autofs it would mount at first access
linarcx has quit [Quit: WeeChat 2.4]
<srhb>
like, you can usually get by with "x-systemd.automount,noauto"
<hyper_ch>
but x-systemd.automount probably tries to mount at boot - which would fail because of wireguard not being up
<srhb>
Not with noauto.
<hyper_ch>
srhb: got an example ready?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srhb>
I use this for a cifs share: x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s
Neo-- has quit [Ping timeout: 264 seconds]
<hyper_ch>
so this will try to mount whenever you access the folder?
<srhb>
make it automount, make it not be required for the regular filesystem targets (dont mount at bootup), timeout and unmount when not in use, timeout if device is unreachable, give up if fail to mount..
<{^_^}>
nixops#1124 (by mwilsoninsight, 1 week ago, open): Allow GCE VMs to be reached by private IP address if specified
<mwilsoncoding>
hoping those final edits legitimately do the trick
<hyper_ch>
srhb: interesting, thx
<srhb>
hyper_ch: But honestly my main motivation over autofs is just being able to set options in filesystems."/some/mount".options and not have to learn something else :-P
<srhb>
I mean, I guess it _is_ autofs, just a nicer interface.
<srhb>
(If you don't loathe systemd)
<mwilsoncoding>
anyone with a GCE account, the knowledge/wherewithall to set up a vpn, and proper motivation can check that out at their leisure
<srhb>
hyper_ch: I do something like that, but without the passwords in the store.
<hyper_ch>
srhb: nobody touched my notebook :)
<hyper_ch>
s/touched/touches/
<hyper_ch>
infinisil: yeah, parts of my solution is from yours
<hyper_ch>
nope... it's sphalerite, clever and Shados
sam_d has quit [Quit: Bye]
sam_d has joined #nixos
<srhb>
hyper_ch: Yeah, save here, I'm just scared I'll accidentally run something that I shouldn't have.
<srhb>
s/save/same
<hyper_ch>
:)
<srhb>
Having the root/user separation is nice. :)
<hyper_ch>
so, changed to your x-systemd settings and I'll find out at next reboot
<srhb>
Cool.
<hyper_ch>
gotta go to bed early, need to commute to Berne tomorrow :(
wfranzini has joined #nixos
civodul has joined #nixos
pie_ has joined #nixos
kreisys has joined #nixos
ng0 has quit [Remote host closed the connection]
ng0 has joined #nixos
ggVGc has quit [Quit: WeeChat 2.4]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<AleXoundOS_>
Hi. I try to accomplish one thing for a long time without much success. Please, help me.
<AleXoundOS_>
I try to copy binary cache from cache.nixos.org for the whole 19.03 channel in order to serve it in LAN without internet. For x86_64 cache I use the following command:
<tilpner>
You can play around with the xargs parallelisation arguments, and you'll probably want to create a gc-root for the channel
fendor has joined #nixos
fendor has quit [Client Quit]
vidbina has joined #nixos
<tilpner>
Though this assumes you're serving from the local store, which I just noticed your line doesn't. Oh well
<AleXoundOS_>
Yeah, I've encountered the argument list problem too and xargs solves this. My question was more related to `nix copy`. Is it the right tool?
<LnL>
nix copy --to file:/// will create a file binary cache that you can use as a local substitute or serve over http
<AleXoundOS_>
LnL, I plan to stick to a single nixpkgs commit for a period of time. Is it what you mean?
tomberek has quit [Ping timeout: 246 seconds]
<LnL>
your configuration.nix might depend on things that are not available in the cache
waleee has quit [Quit: WeeChat 2.4]
<AleXoundOS_>
So even modifing some system parameters may require downloading sources?
<LnL>
those can be built locally, but not without the sources which won't be part of that list
<AleXoundOS_>
Hm, that's something I did not think about.
<LnL>
most options only change config files which don't need anything special to build locally, but some options need specific features, etc.
<tilpner>
You can try to mirror tarballs.nixos.org if this is important to you
<tilpner>
But I have no idea how much work that'll be
<LnL>
I'd rather build the system on another host instead
<tilpner>
And that probably won't cover some non-tarball sources
<AleXoundOS_>
Hm, and how can I mirror tarballs.nixos.org?
erasmus has quit [Quit: END-AUMF]
<LnL>
not sure, and that would be huge
<tilpner>
nixpkgs/maintainers/scripts has some details on how the tarball mirroring works
random_yanek has quit [Ping timeout: 255 seconds]
<LnL>
not sure what you're trying to do but building the system on another host would be much faster and smaller
<tilpner>
Oh yes. If that's an option you should look into that first
wolfman154 has joined #nixos
<AleXoundOS_>
But this will be limited to specific configuration.
<AleXoundOS_>
I don't know beforehand all the configurations that NixOS will be installed on.
nixosbegginer_01 has quit [Quit: Page closed]
<AleXoundOS_>
And every next "internet session" iteration cost is high.
<gchristensen>
AleXoundOS_: may I ask more specifically what you're doing? we could PM if you'd rather
<AleXoundOS_>
tilpner, thank you for the link, I will try to figure out how this works
<LnL>
this sounds a bit weird, but seems like this is a very specific situation
<AleXoundOS_>
gchristensen, I have an enviroment at work where internet is mainly prohibited (no proxies).
cyphase_eviltwin has joined #nixos
<LnL>
maybe take a look at the mirroring script then and include those sources, that won't cover everything but you'll have some or most sources available if necessary
<gchristensen>
and you don't know what software you'll need?
<AleXoundOS_>
gchristensen, well, it's not only a "devops/servers" target, but also development/work machines. So you often need something new as libraries. Or (as I've got to know now) any new configuration may arrive/requested.
cyphase_eviltwin has quit [Ping timeout: 250 seconds]
<AleXoundOS_>
gchristensen, binary cache?
<gchristensen>
right
_kwstas has quit [Quit: _kwstas]
_kwstas has joined #nixos
<AleXoundOS_>
gchristensen, maybe it sounds not nice, but for Arch Linux it is just a matter of downloading repositories. And I think it should be possible for NixOS as well. It's simply not a popular request it seems.
zupo has joined #nixos
<gchristensen>
NixOS's binary cache fully supports this
<tilpner>
With Arch you have a fixed amount of packages, while here you can customise/override each for many different combinations. The binary cache of course doesn't contain all these combinations, so Nix will fall back to building it locally
erasmus has joined #nixos
<tilpner>
If you're careful you can avoid doing this, of course
<AleXoundOS_>
gchristensen, I started with it (specifically `nix copy`). However, as LnL said, packages like configuration.nix might depend on things that are not available in the cache, some specific features that require a local rebuild.
<tilpner>
But even setting e.g. environment.noXlibs will bring you far out from binary cache coverage
<gchristensen>
aye
<LnL>
yeah, all depends on what kind of configurations you have to build
<LnL>
I could write one that fetches 3 channels and pulls in different packages from all of those
<infinisil>
I guess in theory (with some nixpkgs restructuring), it would be possible to download all sources in nixpkgs so you really could build everything without internet
<AleXoundOS_>
First of all `nix copy` uses up to ~2 GiB RAM if I pass more than 1 store path.
aanderse-work has quit [Ping timeout: 246 seconds]
<AleXoundOS_>
It's not clear what makes `nix copy` use that much, since... shouldn't it just be a copying process? As I see it's not. I've searched internet and for unknown reasons (for me) it does XZ compression.
<gchristensen>
LnL: impressive :D
knupfer has joined #nixos
<AleXoundOS_>
Indeed CPU becomes a bottlenet and not RAM in case I give 1 store path to `nix copy`.
<AleXoundOS_>
bottleneck*
<AleXoundOS_>
Can someone explain me why XZ compression happens during `nix copy`. And can I disable it or speedup `nix copy`. Currently it runs at a speed of 1 GiB per 3 hours.
<simpson>
Yikes. That is a fascinating problem to have. It doesn't appear that there's a way to disable compression, but I haven't looked very hard yet.
judson has joined #nixos
<niksnut>
add ?compression=none to the destination URL
kreisys has joined #nixos
arjen-jonathan has quit [Ping timeout: 246 seconds]
<AleXoundOS_>
Maybe the rate is even less, like 1 GiB per 4 hours. The nanopi neo2 works 24/7, but mirroring 100 GiB from cache.nixos.org will require 17 days.
mwilsoncoding has quit [Ping timeout: 256 seconds]
<gchristensen>
this is great!
kleisli has joined #nixos
<LnL>
nix-store -r away! :)
nD5Xjz has quit [Ping timeout: 264 seconds]
<wolfman154>
Has rycee changed the master.tar(unstable) home-manager channel to 19.03.tar(stable) home-manager channel? I want to upgrade to nixos 19.03 stable but I don’t want my packages crashing?
oida has quit [Remote host closed the connection]
nD5Xjz has joined #nixos
<simpson>
wolfman154: What have you tried so far?
<simpson>
I see a `release-19.03` branch but don't know whether it is what you want.
<LnL>
gchristensen: would be nice to have builtins.genericClosure explained somewhere
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wolfman154>
simpson: nothing, I’m still on 18.03 stable, last time I checked there was just two channels 18(stable) and master.tar(unstable), I did not see a 19(stable) channel, has this been updated recently?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen>
is there a way to list all block devices but not their partitions?
<gchristensen>
so get /dev/sda but not /dev/sda1
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<sphalerite>
gchristensen: /sys/block
<LnL>
lsblk -something
kreisys has joined #nixos
<AleXoundOS_>
niksnut, it works, thank you!
kreisys has quit [Client Quit]
_kwstas has joined #nixos
<AleXoundOS_>
Btw, does `nix copy` download uncompressed caches?
<stepcut>
Is there some way to use ssh-agent with the nix build daemon ? The nixbld[1-32], don't have permission to talk to my SSH_AUTH_SOCK, and if I use setfacl to give them permission, ssh-agent notices the trickery and closes the socket
TonyTheLion has quit [Ping timeout: 246 seconds]
<stepcut>
One work around would be if the fetchgitPrivate got called before forking the work off to nix build daemons -- though I am not sure how that would interoperate with remote builds
<gchristensen>
just use builtins.fetchgit
<stepcut>
.fetchgit or .fetchGit?
o1lo01ol1o has quit [Ping timeout: 255 seconds]
<AleXoundOS_>
I'm curious why XZ compression happens on the local side by default? Aren't *.nar files compressed on the cache.nixos.org side already?
tboston_ has joined #nixos
<gchristensen>
builtins.fetchGit :)
<stepcut>
so, I attempted using builtins.fetchGit, but perhaps I did it wrong
<stepcut>
I did, haskell-self.callPackage ./my-package { fetchgit = builtins.fetchGit; }
<LnL>
I wonder if we should get rid of fetchgitPrivate
<stepcut>
where the ./my-package/default.nix is generated by cabal2nix
<gchristensen>
probably should, LnL
phdoerfler has quit [Quit: Leaving.]
<stepcut>
that seems to have two issues: (1) fetchGit doesn't understand the sha256 and fetchSubmodules options -- so it dies. If I comment those fields out of the default.nix, then it just fails to authenticate
<AleXoundOS_>
niksnut, are there other compression variants besides xz and none?
sindrip has quit [Ping timeout: 264 seconds]
<tilpner>
AleXoundOS_: Grepping through nix tests suggests there are at least br (brotli) and bzip2
mexisme has joined #nixos
<AleXoundOS_>
tilpner, thank you, bzip2 works. I hoped there will be an option for my weak nanopi neo2 like gzip or lzop...
<{^_^}>
[nixpkgs] @edwintorok opened pull request #59640 → opam: fix sandboxing in release-19.03 → https://git.io/fjYTQ
Zer000 has joined #nixos
erasmus has quit [Read error: Connection reset by peer]
<Zer000>
How can I write a value for a service option that depends on another service being enabled or not? Like if services.foo.enabled == true then "has foo" else "has bar"
kleisli has quit [Ping timeout: 264 seconds]
mexisme has joined #nixos
mnoronha_ has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @LnL7 pushed commit from @strager to release-19.03 « python37: fix build on macOS »: https://git.io/fjYTN
<ajs124>
Zer000, does writing exactly that not work? Well, maybe use *config.*services.foo.enable, but besides that, it seems fine.
<wolfman154>
Does nixos home-manager (home.nix) have an equivalent to: system.autoUpgrade.enable = true; or do I only need this for my global config(configuration.nix)?
knupfer has quit [Ping timeout: 250 seconds]
drakonis has quit [Read error: Connection reset by peer]
<__monty__>
You can also do that declaratively but it'd involve pinning and more effort : )
<kingsley>
However, to be fair, once every few years I need to upgrade everything, I'm hearing grumblings from Debian developers, I don't like how unstable systemd is, I'm considering buying new hardware, it might be a convenient time to level up my distro-fu, and I admire that repology.org says nixpkgs unstable has the most fresh packages.
domogled has quit [Ping timeout: 255 seconds]
wfranzini has quit [Remote host closed the connection]
<pie_>
nix is Chaotic Good
wfranzini has joined #nixos
<infinisil>
kingsley: Nice to hear!
<kingsley>
So, I'd be happy to see a knowledgeable comparison between administering Debian and NixOS unstable.
<kingsley>
Particularly with regard to stability and feature freshness.
<{^_^}>
[nixpkgs] @veprbl merged pull request #57573 → drawpile: add build options and split into multiple top-level attrs → https://git.io/fjefh
<{^_^}>
[nixpkgs] @veprbl pushed commit from @fgaz to master « drawpile: add build options (#57573) »: https://git.io/fjYkH
NickHu_ has joined #nixos
mmlb7 has joined #nixos
mmlb has quit [Ping timeout: 250 seconds]
leat has quit [Remote host closed the connection]
<NickHu_>
Hi, I'm trying to build a system on a small armv7l raspberry-pi like device, but I'm encountering the following build error: https://paste.xinu.at/zZTpm9/
<NickHu_>
I have no idea why it wants to build mesa noglu, the environment.systemPackages is completely empty and the only service I have enabled in the configuration is sshd
leat has joined #nixos
<NickHu_>
It takes over a whole day to attempt to build llvm, before it fails at the test phase - does anyone have any insight as to why it's trying to build mesa?
__monty__ has quit [Quit: leaving]
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<NickHu_>
I'm not sure why it wants to build gtk3 either
<ajs124>
kingsley, I used to run Debian for a handful of releases (5 to 9, I think) and I now run NixOS, but not unstable. It's a big difference in a lot of ways, but the main thing is obviously the built-in configuration management. When I retired some of my debian installs, I literally couldn't tell you what was in/on them, because I forgot, over the years.
<ajs124>
wrt how you use packages: In my mind, I barely think of packages on NixOS the way I used to, when running something like Debian. I just think of store paths, because those are all that really matters.
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<pie_>
you might run into hardware issues as on any distro i suppose
<pie_>
and what in the world is feature freshness?
<ashkitten>
hey, is it possible to use my own nixpkgs fork as a channel or default nix expression somehow?
<pie_>
ashkitten, also possibly of interest are overlays
<ashkitten>
yeah i want to use my fork tho
tdbgamer has joined #nixos
<kingsley>
pie_: Sorry if "feature freshness" is unclear.
<ashkitten>
most of the changes are things i'd want to see upstreamed
<pie_>
ashkitten, at one point what i did was global pinning in my configuration.nix and imported a local repository, but then i lost a lot of data for unrelated reasons so i didnt get much experience wit that
<pie_>
and havent had time to replicate
leat has joined #nixos
<pie_>
but thats not with the channels mechanism
Ariakenom has quit [Quit: Leaving]
<kingsley>
pie_: What I meant is how soon new versions of packages, with their new features (and bug fixes) are assimilated.
<pie_>
ashkitten, there *should* be some things on the wiki or some blog posts or something. (maybe that helps a littlE)
leat has quit [Remote host closed the connection]
<ashkitten>
pie_: i've been using a local repository but i'd really like to be able to have it on github or whatever
<ajs124>
b) Well, a) kind of leads to b) being old. Debian, as I'm sure you're aware, likes to patch everything so they don't have to ship new upstream ressources. So even if some software doesn't get updated after a NixOS release, releases happen every 6 months, so that's (assuming someone updates nixpkgs/master) how out of date it will be, at the maximum.
<ajs124>
a) nothing beats Debian's stability, except maybe CentOS. Or, idk. Solaris? I wouldn't call NixOS (release, mind you, not unstable) unstable, but it has a smaller developer and user base, so things can and do slip though, which might get caught in a project like Debian.
<ajs124>
kingsley, to be honest, I was never the biggest fan of debian. I just used it, because it was around at the time and seemed stable and well-tested.
<ajs124>
c) Hard to say, depends on what you're running on that computer. I'd say for both Debian and NixOS machines, I had/have some which I just check(ed) in on every other month/half a year or so, but they tend to be fine, if you leave them alone.
<pie_>
kingsley, as soon as someone makes a pull request to nixpkgs, it gets accepted, and the CI doesnt fail
<kingsley>
Is NixOS easier to roll back than Debian?
mmlb7 has quit [Ping timeout: 264 seconds]
<pie_>
can you even roll back debian?
leat has joined #nixos
<gchristensen>
NixOS is basically designed to be rolled back
<pie_>
kingsley, if youre running off the unstable channel that is, but you can run off stable and get individual packages from unstable most of the time
<NickHu_>
pie_: But I haven't even asked for gpg, the only thing I've asked for in the configuration is sshd
<ajs124>
pie_, we have a section in our overlay dedicated to exactly this.
<pie_>
NickHu_, try the why-depends on your system config
<NickHu_>
pie_: It won't let me do nix why-depends nixpkgs.system nixpkgs.glibc
<pie_>
NickHu_, i dont think you can use it with expressions
<pie_>
can you?
<pie_>
you have to pass the path
<pie_>
uhh...idk the technical term for it
<pie_>
the store path
<pie_>
NickHu_, i.e. try /nix/store/kk2b0q348ajcxadl6f53yz7bpg85kvgr-nixos-system-nu-19.09pre174426.acbdaa569f4.drv from "error: build of '/nix/store/kk2b0q348ajcxadl6f53yz7bpg85kvgr-nixos-system-nu-19.09pre174426.acbdaa569f4.drv' failed"
<kingsley>
Would it be fair to say Debian is stabler, but NixOS has newer code and can be rolled back?
<pie_>
kingsley, i guess
tboston_ has joined #nixos
<pie_>
ajs124 was pretty through i think
<pie_>
*thorough
<NickHu_>
pie_: Ah, I see
<pie_>
NickHu_, did it work
<pie_>
kingsley, the most youll lose from trying nixos is probably time xD
<NickHu_>
It seems to be "building"
<pie_>
kingsley, fire up a vm or something and give it a shot
<mdash>
kingsley: i wouldn't call debian more stable
<NickHu_>
Yeah I think it's trying to build llvm now
<pie_>
NickHu_, i dont think why-depends should cause a build...
<NickHu_>
Maybe why-depends only works for installed packages
<NickHu_>
Yes it's 100% building llvm
<mdash>
kingsley: (I switched away from debian/ubuntu 2 years ago after 20+ years of use)
<NickHu_>
I did nix why-depends /nix/store/kk2b0q348ajcxadl6f53yz7bpg85kvgr-nixos-system-nu-19.09pre174426.acbdaa569f4.drv /nix/store/n9j56pbc3mc0a73xddnkwvipdp3mxs4k-mesa-noglu-18.3.4.drv
<kingsley>
mdash: Maybe your 2 years ahead of me. I've used Debain 24x7 on my daily driver since 1996.
<pie_>
NickHu_, really dumb wild guess, maybe try reversing the order of the arguments
<ajs124>
kingsley, I was born in 1995, to give you some perspective :D maybe you should listen to mdash instead.
<simpson>
kingsley: I would say that NixOS is more stable *and* has newer versions of packages *and* can be rolled back.
<simpson>
I only used Debian for like a decade-ish though.
<NickHu_>
pie_: it does the same thing
<kingsley>
ajs124: Thank you.
<pie_>
NickHu_, oh :( sorry idk then
<NickHu_>
I'm pretty sure it builds the derivations before it can run the why-depends
<kingsley>
simpson: Wow
<simpson>
kingsley: Don't worry, just like all software, it's bad.
<kingsley>
simpson: You're a funny guy
<ashkitten>
are we talking about how computers are bad and should be thrown in lakes
<ashkitten>
i support this
<gchristensen>
not exactly, but obviously yes
phdoerfler has joined #nixos
phdoerfler has quit [Client Quit]
<hodapp>
life is a spike / on which I have impaled myself / **** you, dad
* hodapp
goes to write in his livejournal
<hodapp>
oh, wrong kind of edginess, sorry
<samueldr>
do (yes do) mind simpson, but keep in mind he's not the most positive voice around :) (I see software with room for improvement)
tboston_ has quit [Ping timeout: 246 seconds]
<gchristensen>
+1
<kingsley>
How about the administrative burden. Is there a difference between how much time and effort it takes to maintain Debian and NixOS boxes?
o1lo01ol1o has quit [Remote host closed the connection]
kleisli_ has joined #nixos
o1lo01ol1o has joined #nixos
<samueldr>
burden? I went to NixOS to unburden myself from administering things :)
<mdash>
kingsley: It
<hodapp>
interesting. several games are in Nixpkgs that are based on darkplaces - but darkplaces itself seemingly isn't.
<mdash>
erm. it's differently distributed
<mdash>
the advantage to debian is that answers are easier to find on stackoverflow or whatever in many cases.
wolfman154 has quit [Ping timeout: 264 seconds]
kleisli has quit [Remote host closed the connection]
<ashkitten>
setting up things on nixos is more definitely effort than other distros, but once you get it working it'll almost never break
<samueldr>
answers are abundant, but the right ones? not always :/
<pie_>
kingsley, depends on how much you poke things
<pie_>
and what you need to do
<mdash>
the advantage to nixos is that nearly all the fix-it-yourself cases are trivially easy
<samueldr>
(^ above quip was about debian answers)
<ajs124>
Hm. I recently packaged sndio (and enabled support for it (optionally) in a bunch of packages), but now I wonder where in nixpkgs to put it, for my PR. pkgs/applications/audio? pkgs/servers?
wolfman154 has joined #nixos
<kingsley>
ashkitten: SPeaking only for myself, I'm curious if a more sophisticated distribution exists than a Debian unstable Franken-box, with packages upgraded indivualy, and failing to boot every few years.
<mdash>
and yeah, things are easier to _keep_ fixed :)
<pie_>
I would answer as "Q: What about the..." "A: Yes."
<kingsley>
ashkitten: And no systemd.
<hodapp>
For me, I spent about the same about of time futzing around with really annoying setup for pesky software as I did with most other distros, but once I did this, the result in NixOS was far more maintainable, and much better-isolated from all the other stuff I was doing.
<gchristensen>
nixos is a level for me
<hodapp>
having a declarative description you can reuse is huge.
<gchristensen>
I can do way *more* because of NixOS
<mdash>
kingsley: the #1 advantage to nixos is that almost all of your configuration state can be kept in a single place
<infinisil>
The good thing about NixOS is that if something is well packaged, one person can upstream this effort to nixpkgs and therefore lessen the burden for maintenance for everybody else
<samueldr>
I think there might be a bell curve, where the less you poke around for stuff, the easier nixos will be, some poking, gradually harder (at first), but if you're extra pokeful, it will pay off early
<hodapp>
extra pokeful? o_O
<samueldr>
dunno, like patching the kernel to hide directories
<pie_>
the answer to this is nixos is a definite yes <kingsley> ashkitten: SPeaking only for myself, I'm curious if a more sophisticated distribution exists than a Debian unstable Franken-box, with packages upgraded indivualy, and failing to boot every few years.
<mdash>
some apps/services stubbornly want to manage their config in their local state, but that's the exception not the rule
<pie_>
kingsley, oh by the way, theres a debian package of the nix package manager now
wolfman154 has quit [Client Quit]
<gchristensen>
(let's not be rude about debian)
<ashkitten>
kingsley: i've had my nixos vps running for about a year and haven't touched it in that time. it's up to date and still running strong.
<pie_>
kingsley, i got it to build a few days ago and it seems to work ok but i havent had much time to test it yet
goibhniu has quit [Ping timeout: 250 seconds]
<hodapp>
yes, Debian does some tremendous things and has been doing them quite awhile
<pie_>
this is why i believe in nixos for the longer term <infinisil> The good thing about NixOS is that if something is well packaged, one person can upstream this effort to nixpkgs and therefore lessen the burden for maintenance for everybody else
<pie_>
lmao <samueldr> dunno, like patching the kernel to hide directories
<pie_>
kingsley, where by "now" i mean its in NEW and not in the ?binary dist stuff? yet and you have to build it yourself afaict
<kyren>
random question which may be more a general linux question than a NixOS one, what do you guys do when you want to temporarily open a firewall port? I know I can do iptables surgery and then manually undo it, but it's a bit of a pain, is there some kind of helpful script for this? 'ufw' on debian is stateful and gross, but it DOES have the ability to quickly do then undo firewall changes, is there a way to get that convenience in NixOS?
<samueldr>
kyren: on a trusted network, systemctl stop firewall; then remember to restart it
<kyren>
oh, you know what I didn't even think of that :P
<kyren>
samueldr: works, thanks!
<pie_>
kingsley, i assume you know how to build a deb, as a seasoned debianer, but in case you dont, this can be uhh...interpreted as a uhh... "tutorial" https://github.com/KaiHa/nix-debian/issues/27
<{^_^}>
KaiHa/nix-debian#27 (by deliciouslytyped, 4 days ago, open): build/usage problems on debian 9.8
<pie_>
for hwo to get nix-debian anyway
<infinisil>
ajs124: Regarding where to put packages, it doesn't matter much, the directory layout is a mess anyways. Just try to find a somewhat applicable category
mnoronha_ has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<ashkitten>
the main thing i like about nixos is that once i get something working i never have to touch it again. i never have to manually merge config files, and if i don't pay attention during an upgrade and it fails for some reason it doesn't put me in an unbootable state
<samueldr>
hodapp: applying the gobohide patchset to my kernels through nix, I hide everything except my "fun" named folders; without nix it's a pain to do the same, but with nix... pretty painless! just needs a kernel compile
<pie_>
oh no im way past my bedtime :(
<hodapp>
samueldr: whyyyyyyyy
<samueldr>
hodapp: why not? :D
<pie_>
MAC OS-NIX
<ashkitten>
gdi zfsonlinux
<infinisil>
samueldr: Do you have that online? The NixOS config for that?
<samueldr>
I also have in the pipeline to try and set my home as "C:/Users/Full Name Including Spaces", and mounts as D:,E:,F:
<pie_>
who needs all those nasty system folders anyway. i wait for the day we have just /nix and /home
<ashkitten>
the fucking, zfs cache gets on my nerves so much
<samueldr>
first part will be easy (but I assume will break SO MUCH software)
<samueldr>
second part should be relatively trivial by hacking udisks a bit
<ajs124>
infinisil, thanks. I'm scrolling around all-packages.nix rn and feel like I'm in a maze without an exit. https://imgflip.com/i/2yo94n
<pie_>
samueldr, then wine wont need to translate paths anymore
<pie_>
ah well, slashes
<infinisil>
ajs124: Haha
<kingsley>
ashkitten: I'd like to not be left in an unbootable state. To be fair, it doens't happen often on my Franken-debian box, and might be completely avoided with Debian's stable release.
<pie_>
ajs124, you are in a series of twisty passages all alike
<gchristensen>
fwiw I do erase everything but /home and /nix and /boot on each boot
<ajs124>
I'll just sneak it right next to pulseaudio, where it belongs. And I'll put pulseaudio-module-sndio next to pulseaudio-modules-bt, a few hundred lines away, because apparently that's where that belongs. yay.
<samueldr>
but since it's been for my own fun I didn't care enough to refactor (yet)
<infinisil>
ajs124: I really hope we can get rid of that monstrosity at some point
<samueldr>
ajs124: yeah :/ there was a per-topic, then a-z ordering at first, but uh, chaos emerged and there are now multiple a-z ordering in some topics
<ashkitten>
home-manager can't allocate memory because the zfs arc cache is taking up everything and doesn't know to get out of the way
<samueldr>
(and flagrant disregard in some parts)
* pie_
watches nixpkgs collapse under the weight of all-packages.nix
<samueldr>
github already collapses under all-packages.nix :)
m0rphism has quit [Ping timeout: 250 seconds]
<infinisil>
samueldr: I wonder if it would be a problem to just run a sort on that
<pie_>
infinisil, you should get one of the library studies people to make an ontology for this for their thesis or something ÖP
<pie_>
* :P
<samueldr>
infinisil: "unixy" sort: yes because of multiline callpackages
domogled has joined #nixos
<ajs124>
samueldr, disregard paired with ignorance. I might actually be responsible for some lines in there which aren't even in the right category, because I didn't know and nobody told me. (I'm sorry)
<pie_>
something something hnix?
<samueldr>
who would win? major corporation source hosting software, or a 23k liney boi?
<gchristensen>
lol
<samueldr>
ajs124: I might be too!
mnoronha_ has quit [Quit: Ping timeout (120 seconds)]
<pie_>
samueldr, or the people trying to load the page
<kyren>
I was bitten multiple times by assuming github could search all-packages.nix... and also I think emacs-packages.nix
<ashkitten>
would it be possible to separate all-packages into the categories laid out in the directory tree?
<infinisil>
ajs124: Your assumption is that there even *is* a right category, I don't think that's the case
<ashkitten>
like, separate files
<infinisil>
ashkitten: I'm pretty convinced that we should be using a tagging system for categories instead, packageus can be in multiple categories
<pie_>
infinisil, add that to my github issue about additional meta fields
<ashkitten>
infinisil: but regardless all-packages is way too big for its own good
ym555 has joined #nixos
chessai has joined #nixos
<ashkitten>
it takes forever to open it even in neovim
<infinisil>
ashkitten: Yeah, I think flattening nixpkgs/pkgs into a mostly flat file hierarchy, auto-calling all these files to get an attribute -> file mapping, and adding a tagging system for categories is the way to go
<infinisil>
There's other more important things to do right now
mnoronha_ has joined #nixos
<ashkitten>
i hope people don't mind my change to dolphin's versioning scheme *anxious*
<ashkitten>
out of all the things i could be worrying about, i think that's the least important
<ashkitten>
thanks brain
phdoerfler has joined #nixos
phdoerfler has quit [Client Quit]
phdoerfler has joined #nixos
<ajs124>
How does one specify multiple licenses in nixpkgs meta attributes? Is such a thing even possible?
phdoerfler has joined #nixos
<ashkitten>
ebay stop telling me to buy a macbook like im some kinda person with money
<pie_>
ajs124, i think you can just pass a list
phdoerfler has quit [Client Quit]
phdoerfler has joined #nixos
phdoerfler has quit [Client Quit]
<pie_>
ajs124, maybe try grepping for an example
* pie_
runs off to bed
phdoerfler has joined #nixos
phdoerfler has quit [Client Quit]
<ajs124>
pie_, there are examples like this in nixpkgs, so that should indeed work
phdoerfler has joined #nixos
phdoerfler has quit [Client Quit]
mnoronha_ has quit [Ping timeout: 250 seconds]
phdoerfler has joined #nixos
phdoerfler has quit [Client Quit]
phdoerfler has joined #nixos
phdoerfler has quit [Client Quit]
shush has joined #nixos
phdoerfler has joined #nixos
phdoerfler has quit [Client Quit]
kvda has joined #nixos
phdoerfler has joined #nixos
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
pie_ has quit [Ping timeout: 252 seconds]
jackdk has joined #nixos
phdoerfler has quit [Quit: Leaving.]
sindrip has quit [Quit: WeeChat 2.4]
fusion809 has quit [Remote host closed the connection]
ym555 has quit [Quit: leaving...]
Anton-Latukha has quit [Quit: Leaving.]
<infinisil>
Man, I couldn't live without the convenience of being able to run any version of a package without having to deal with version conflicts
<kingsley>
infinisil: How do you do that?
shush has quit [Remote host closed the connection]
<infinisil>
kingsley: Step 1: Get the package you want to run from the nixpkgs version you want it
<infinisil>
Step 2: Run the binary
<infinisil>
(there's only 2 steps)
<kingsley>
infinisil: How are dependencies reconciled?
<infinisil>
kingsley: A package like hello resides in the store path /nix/store/<some-hash>-hello, and it's linked to its dependencies via absolute paths. E.g. libc would be /nix/store/<some-hash>-libc
<infinisil>
This means you can have any number of hello/libc/whatever packages in your /nix/store, because whenever they're different, the hash is different too
<kingsley>
Is my understanding correct that multiple versions of the same package can be installed on the same computer, simultaneously, and that you can choose which one you want to run, as long as they share data and configuration file formats?
<infinisil>
kingsley: Indeed
gentauro has quit [Read error: Connection reset by peer]
<kingsley>
infinisil: OK. Thanks!
gentauro has joined #nixos
<infinisil>
Just earlier I tested the pulseeffects update PR (#59639) by just git checking out the PR, building the package (nix-build -A pulseeffects), and running the binary (result/bin/pulseeffects), without even "installing" anything