<pie_[bnc]>
yeah. so thats not really surprising. clear PATH when youre calling it and see what happens
<pie_[bnc]>
then you should know to check the rc files and you should be able to follow the nix trails from there i think
<energizer>
pie_[bnc]: when i'm calling what?
<tbenst[m]>
pie_[bnc]: okay, I tracked the hang in pudb all the way until....... `np.dot`. The hang occurs in c code :(. Furthermore, I saved the inputs to np.dot, and cannot reproduce the hang using the same python shell. WTF
<pie_[bnc]>
tbenst[m]: dunno lol that sucks 'xD
<pie_[bnc]>
tbenst[m]: oh wait you mean it really is a hang and we shouldnt be getting it?
<{^_^}>
[nixpkgs] @bhipple pushed 2 commits to release-20.03: https://git.io/JvQwI
<pie_[bnc]>
energizer: PATH= bash --no-rc --no-profile or whatever the flags are
<pie_[bnc]>
you should not have python in the path
<pie_[bnc]>
hten remove the flags one at a time an dsee which one adds python to your path
<pie_[bnc]>
after you do that, check the contents of the rc or profile file
<{^_^}>
[nixpkgs] @Ma27 pushed to master « nixos/tests/mongodb: also test mongodb-3_4 »: https://git.io/JvQwq
<pie_[bnc]>
energizer: one of the big deals about nix, though things can still be pretty hard to track down, is it generally doesnt pull things out of thin air
<energizer>
/run/current-system/sw/bin/bash: python3: No such file or directory
reallymemorable has joined #nixos
leotaku has joined #nixos
<pie_[bnc]>
ok so that means if youd have a fresh envirnment it wouldnt be on your path
<tbenst[m]>
meh yeah that is the next logical step. My last endeavor debugging nix issues with strace was not productive though so I'm getting close to punting https://github.com/NixOS/nixpkgs/issues/75590
<pie_[bnc]>
me playing around a bit nix-shell -p pstree --run "pstree $$" | grep -Eo "[0-9]{5}" | xargs -I"{}" cat /proc/"{}"/environ | tr "\0:" "\n\n" | less
<pie_[bnc]>
nixos bash might not require vars from the parent
<pie_[bnc]>
im probably a bit out of my depth here
<energizer>
okay
<energizer>
thanks, this has been helpful
<pie_[bnc]>
i mean
<pie_[bnc]>
i have suggestions
<pie_[bnc]>
they just might not be good
<pie_[bnc]>
tbenst[m]: yeah i cant find my gdb stuff
never_released has quit [Ping timeout: 252 seconds]
never_released_ has joined #nixos
<tbenst[m]>
pie_[bnc]: gonna bump sklearn first
<pie_[bnc]>
energizer: so is the patch you linked not working or what
butterthebuddha has joined #nixos
<pie_[bnc]>
energizer: btw if you want to work on patches oyu might be able to start your window managet in Xephyr so it doesnt interfere with stuff
<pie_[bnc]>
energizer: that restore environment looks like its getting run after some __main__ stuff, not sure if thats the relevant part for "clearing", maybeits more like setting up for qtile? im not sure
<{^_^}>
[nixpkgs] @jtojnar opened pull request #83635 → hydra-unstable: Fix eval with allowAliases = false → https://git.io/JvQrG
<pie_[bnc]>
i think what we want (?) is to restore the original env vars or something for when a new process is spawned
<lordcirth_>
I'm trying to help with ZHF 20.03, but I am having trouble figuring out how to run the same tests that Hydra does. I can't find the docs on nixpkgs tests. I'm probably missing something obvious?
cptchaos83 has joined #nixos
<energizer>
ldlework: er grep instead of ag if you like
<pie_[bnc]>
energizer: you checked if the windowmanager isnt getting it from its parent right?
<ldlework>
energizer: i don't have a $qtile_pid
ambroisie has quit [Ping timeout: 256 seconds]
<energizer>
ldlework: check with `ps aux` what your qtile pid is
ddellacosta has joined #nixos
<pie_[bnc]>
tbenst[m]: whats up
chagra has quit [Ping timeout: 265 seconds]
drakonis has joined #nixos
dermetfan has quit [Ping timeout: 246 seconds]
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
<tbenst[m]>
pie_[bnc]: bumped sklearn, same issue, trying to launch pudb but now getting ModuleNotFoundError when trying to import deeplabcut
<pie_[bnc]>
tbenst[m]: i think i would try to compare to the shell that actually works for you
<pie_[bnc]>
though its probably a matter of the different backend
<pie_[bnc]>
tbenst[m]: if you have the spare cpu, might be worth trying to run through the stuff and see if everything works on the working backend while youdo the other stuff
<tbenst[m]>
I’m using the same genericBuilder approach you posted, and it was working great. Not sure why bumping sklearn would break it
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to release-20.03: https://git.io/JvQKa
felixfoertsch23 has joined #nixos
<energizer>
pie_[bnc]: what i don't quite understand is how i could be inheriting envvars from the wm since my shell isn't a descendant of the wm in pstree
felixfoertsch has quit [Ping timeout: 272 seconds]
<tbenst[m]>
pie_[bnc]: when I call `genericBuild` I get "ERROR: Could not install packages due to an EnvironmentError: [Errno 30] Read-only file system: '/nix/store/391bjg5ib6lrf460985jfld8pfjsnq5v-python3.7-deeplabcut-2.1.6'"
<tbenst[m]>
have you seen this before? wasn't happening an hour ago...
<pie_[bnc]>
doesnt sound familiar
<pie_[bnc]>
might not be a problem because it already exists or something
<pie_[bnc]>
maybe its calling installphase but it shouldnt be
<energizer>
ldlework: is that python path you linked on your PATH? `which -a python3`
<pie_[bnc]>
because you cant installphase from a shell
<pie_[bnc]>
(i presume)
<tbenst[m]>
I'm doing `nix-shell --pure -I nixpkgs=. -A python3Packages.deeplabcut` followed by `cd $(mktemp -d) && genericBuild && pudb3 testscript.py`
<pie_[bnc]>
tbenst[m]: sure, and im saying i have no idea but genericBuild *would* call installphase, and that sounds riht for it
<pie_[bnc]>
tbenst[m]: does it say installing or osmething
mounty has joined #nixos
<pie_[bnc]>
tbenst[m]: does deeplabcut still work?
<pie_[bnc]>
if yes i personally would not be too worried - until i run into something broken by it :P
<tbenst[m]>
no, I can't import anymore
<pie_[bnc]>
tbenst[m]: i think i might have been doing a weird hack where i ran nix-build then nix-shell
<pie_[bnc]>
tbenst[m]: which you just reminded me of
<pie_[bnc]>
which hypothetically would populate the store paths
<pie_[bnc]>
you follow?
<pie_[bnc]>
though that does make it odd that my patches worked
<ldlework>
energizer: yeah
<pie_[bnc]>
seems generally screwy but seemed to make my stuff work >_
<pie_[bnc]>
>_>
<tbenst[m]>
yes I follow
<tbenst[m]>
pie_[bnc]: you nailed it! Have to do nix-build first
<energizer>
ldlework: the general question is i'm wondering if the reason it's on my path is because qtile put it there, or if it's just coincidence and qtile happens to use the same one as the one that something else put on my path
<energizer>
but idk how to ask nix that question
<ldlework>
energizer: i would think that all shells inherit your terminal emulators which all inherit from qtile
<pie_[bnc]>
tbenst[m]: yeah sorry i totally forogt to mention that :D
<ldlework>
as qtile is responsible for creating those processes, assuming you have terminal creation bound to qtile bindings and start it that way
glittershark has joined #nixos
<pie_[bnc]>
tbenst[m]: i think this is the "relatively simple fix" i was talking about :D
butterthebuddha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<energizer>
how does python3 get onto PATH there? is that something that buildPythonApplication does?
<energizer>
and anyway why would i want that restore_os_environment
<energizer>
i'm gonna try it without that patch
<pie_[bnc]>
as we were discussing earlier, looks like restore_os_environment is precisely trying to remove the mutations qtile adds to the environment (or at least thats what the PR says)
<pie_[bnc]>
tbenst[m]: me, viewing this output with less >_> :
<pie_[bnc]>
DISPLAY=:1 script -qfc "xvfb-run -s \"-screen 0 800x600x24\" python3 build.py test --verbose --extra_pytest=\"-k 'not ( access_Tests or test_lib_agw_piectrlMethods )'\"" /dev/null |& tee log | less -R +F
<pie_[bnc]>
the output is mangled anyway and i have to less -R +F the log file anyway 'xD
<pie_[bnc]>
which...for some reason isnt getting the xkb log errors
<pie_[bnc]>
OH
<pie_[bnc]>
PH
<pie_[bnc]>
IM DUMB
<growpotkin>
Has anyone ever "migrated" their `store' to a new hard-drive? I (naively) installed mine on my tiny SSD years ago when I first installed NixOS and I'm constantly running out of space now.
<pie_[bnc]>
im running xephyr in the background
<pie_[bnc]>
thats where im getting all the xkbcomp warnings
<energizer>
pie_[bnc]: i thought it's the other way around, adding python back onto path after buildPythonApplication would normally remove it
<pie_[bnc]>
growpotkin: in theory you should just be able to copy the whole systemover, ive done it before
<pie_[bnc]>
energizer: in practice, idk whats going on
<growpotkin>
pie_[bnc]: Do you mean with `dd' or something?
<pie_[bnc]>
growpotkin: yeah
gustavderdrache has left #nixos [#nixos]
<growpotkin>
pie_[bnc]: Wow... it's so simple that id just might work haha
<pie_[bnc]>
growpotkin: yup ^.^
<pie_[bnc]>
growpotkin: some fun stuff i did was constructing a system in a virtual mahcine, testing it, then dding it to a drive
<growpotkin>
pie_[bnc]: I assume that the NixOS config's hardware settings need to be altered to point to the new drive?
<pie_[bnc]>
growpotkin: i dont htink so, but be careful when mounting both drives at once maybe
<pie_[bnc]>
UUIDs and such are set in software im quite sure, so dd will copy those too
<tbenst[m]>
Piepie_[bnc] ah glad to hear you found the cause
<pie_[bnc]>
unless youre using some kind of immutable hardware id
<growpotkin>
pie_[bnc]: You're the man now dog!
<pie_[bnc]>
growpotkin: tell me when it works xD
<growpotkin>
pie_[bnc]: Will do. I need to do some `fdisk' wizardry real quick to section off a part of that disk that I'm storing some videos on now; but I'm sure it'll pan out wonderfully.
<growpotkin>
Hard Mode: has anybody managed to use two stores? One on an SSD for frequently used binaries, and a second for general use?
<pie_[bnc]>
growpotkin: thats something im curious about
<pie_[bnc]>
growpotkin: the usual problem is that if you have a differnt store path you have to build everythig yourself, but ive heard there are fixes for this, im just not sure if theres anything accepted yet
<growpotkin>
I'm imagining `environment.SSDPackages = with pkgs; [...];'
<pie_[bnc]>
tbenst[m]: not sure whats causing these, though theyre running in xephyr; E SystemError: wxEntryStart failed, unable to initialize wxWidgets! (Is DISPLAY set properly?)
<pie_[bnc]>
growpotkin: afaik in theory there isnt anything stopping you from doing it, just inconvenient
<pie_[bnc]>
growpotkin: but im no authority on this subject so do look into it
<mjrosenb>
abathur: then why does my idea install have linux binaries in it, which can't be run on my computer?
<growpotkin>
pie_[bnc]: Yeah most Nix projects I dive into frequently crumble when I am re-acquanted with the "documentation" of deeper Nix libs haha. But it's worth looking into.
<{^_^}>
[mobile-nixos] @samueldr opened pull request #112 → Add GitHub actions for simple validations → https://git.io/JvQPz
<pie_[bnc]>
growpotkin: there are *several* issues about this on github, jsut gotta find them
<{^_^}>
nix#2107 (by Ekleog, 1 year ago, closed): Nix with custom store
<pie_[bnc]>
or someone on irc tha thas a clue tells you about it
<pie_[bnc]>
growpotkin: theres also stuff about bind mounts and i dont even know
<pie_[bnc]>
growpotkin: im pretty sure there are methods that work i just havent heard anyone say yeah this works, here, use it
<pie_[bnc]>
tbenst[m]: how are you doing?
<tbenst[m]>
pie_[bnc]: going in circles. thought that thread you sent suggested a multiprocessing problem, but changing forking method has no effect + joblib since patched this
<tbenst[m]>
pie_[bnc]: have a nagging suspiscion that problems are due to the nix-build/nix-shell environment. any idea how to build a python Env? I thought this would work
<pie_[bnc]>
well this has thoroughly thrown a wrench in my brain
<pie_[bnc]>
#@!$#$%#@$
<pie_[bnc]>
ok back to work
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<cole-h>
So, I'm trying to build a plugin for rofi. It errors out at rofi being unable to find a cairo.h, but I have it in my buildInputs... What gives?
work_ has quit [Quit: Connection closed for inactivity]
<est31>
I'm getting an error
<est31>
error: anonymous function at /nix/store/04ck4nckra6933g5r0ffy1m452zvh4ij-nixos-20.03beta874.b0c285807d6/nixos/pkgs/os-specific/linux/amdgpu-pro/default.nix:1:1 called without required argument 'libxcb', at /nix/store/04ck4nckra6933g5r0ffy1m452zvh4ij-nixos-20.03beta874.b0c285807d6/nixos/lib/customisation.nix:69:16
<est31>
how can I debug?
<est31>
I'm just trying to patch a package
<est31>
have never thought that it'd be as hard in nix os as this
<est31>
to do that I need to patch out relevant parts of the component
linarcx has joined #nixos
linarcx has quit [Client Quit]
<est31>
lovesegfault: thanks for your help and stay healthy
<multun>
est31: nixos has fairly unstable APIs. when some API is deemed not good enough, it just gets changed over releases. releases notes are a bit more important than debian's, for example
<jluttine>
can i somehow restart something that handles input devices (kernel??)? i'm trying to debug a touchpad issue and when making system changes, nixos-rebuild and restart display-manager isn't sufficient..
<{^_^}>
[nixpkgs] @FRidh opened pull request #83656 → buildPythonPackage: add prefix to pname → https://git.io/JvQ9o
<jluttine>
i wouldn't want to reboot after every step..
<{^_^}>
[nixpkgs] @Emantor opened pull request #83658 → linux config: enable Creative Soundblaster DSP loading → https://git.io/JvQ9A
ardumont has joined #nixos
Lysergic1reams has quit [Ping timeout: 265 seconds]
opthomasprime has joined #nixos
jluttine has quit [Quit: WeeChat 2.7.1]
Jonathan has quit [Ping timeout: 240 seconds]
LysergicDreams has joined #nixos
jluttine has joined #nixos
sudoforge has quit [Ping timeout: 265 seconds]
asheshambasta has joined #nixos
mounty has quit [Ping timeout: 250 seconds]
butterthebuddha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<asheshambasta>
hello everyone, I've been facing random crashes on a relatively new desktop system, so I've been trying to get memtest to show up in my grub boot menu. Any ideas on how to achieve that?
cosimone has quit [Remote host closed the connection]
cosimone has quit [Remote host closed the connection]
<evils>
asheshambasta1: .memtest86 or .memtest86.enable? did you nixos-rebuild switch after that, and is this on UEFI?
cosimone has joined #nixos
o1lo01ol1o has joined #nixos
<asheshambasta1>
This is uefi yes. And I’ve set the enabled Boolean option to true.
<asheshambasta1>
I’ve also run rebuild.
<evils>
memtest86 is bios only, for uefi, either try messing with the systemd-boot which has the non-free UEFI one, or put passmark memtest86 on a usb stick and boot from that
<asheshambasta1>
Ah okay.
o1lo01ol1o has quit [Ping timeout: 258 seconds]
cosimone has quit [Quit: Terminated!]
<Shados>
Any easy way to figure out what package contains a particular header?
<evils>
,locate pcap.h
<{^_^}>
Found in packages: pjsip, freerdp, libpcap
<Shados>
,locate dpms.h
<{^_^}>
Found in packages: nxproxy, xlibs.libxcb.dev, xlibs.libXext.dev, libsForQt511.kwayland.dev, kdeFrameworks.kwayland.dev
<asheshambasta1>
Apologies, crashing system so I’m typing on a phone. But there have been some kernel panics and I’m not sure these are related in any way.
noudle has joined #nixos
<mlatus>
Why placeholder "out" does not work in runCommand?
<mlatus>
I got "mkdir: cannot create directory '/1rz4g4znpzjwh1xymhjpm42vipw92pr73vdgl6xs1hycac8kf2n9'"
<mlatus>
ok, so placeholder does not work on passAsFile, why is it not fixed?
mexisme has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @fnords opened pull request #83661 → vimPlugins.coc-spell-checker: Add override and node dependency → https://git.io/JvQQJ
<Shados>
Is there some way of getting a single-output version of a multiple output package...? I have a build process that really, *really* wants headers and libs in the same prefix
Darkmatter66 has joined #nixos
<bqv[m]>
make a new derivation out of the two?
<bqv[m]>
cp -lr
<bqv[m]>
or is it -sr
<bqv[m]>
one of the two
<Shados>
I think I'd probably use symlinkJoin if that's really the best option ._.
Darkmatter66_ has quit [Ping timeout: 240 seconds]
<Emantor>
asheshambasta1: 5.4.6 is really old, current on nixos 19.09 is 5.4.28. Please update to a recent kernel and see if the issue persists.
<asheshambasta1>
Emanator: thanks. I’ll try this after my memtest. The system used to be stable on this kernel, or maybe it was just random
<Emantor>
asheshambasta1: note that memtest will not necessarily uncover faulty RAM, its usually easier to unplug sticks and crosstest with known good ones.
<Emantor>
But having known good RAM available is usaually the problem :-)
<asheshambasta1>
I have a suspicion it’s my motherboard though, but I have no idea what to make of these kernel panics.
cinimod` has joined #nixos
<asheshambasta1>
At this point all ‘poweroff’ and ‘reboot’ commands crash the system.
<Shados>
bqv[m]: well, symlinkJoin did work, but now I fee lsad
<Emantor>
dhess: Ah, I got a wrong rebase somewhere, thats why I am listed as the commiter. You'll want to ask ma27[m] as the author.
<dhess>
no worries
chloekek has joined #nixos
hmpffff has quit [Ping timeout: 256 seconds]
o1lo01ol1o has joined #nixos
<wavirc22>
I have noticed recently, nix-env don't seem to display curl download progress when it follows a redirect. Has anyone seen this? If I use curl directly on the same download, sure enough I do see the progress for the redirect.
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
linarcx has joined #nixos
linarcx has quit [Client Quit]
<pjt_014>
wait what? when does nix ever need to follow redirects? I've never seen that.
<pjt_014>
and I coulda sworn curl needed -L to do that.
<NobbZ[m]>
wavirc22 this is how curl and nix do output flushing and printing here.
hax404_ has joined #nixos
hax404 has quit [Read error: Connection reset by peer]
linarcx has joined #nixos
linarcx has quit [Client Quit]
<NobbZ[m]>
Nix will only flush the output on a newline, curl though does not send newlines during status updates. Just carriage return.
linarcx has joined #nixos
linarcx has quit [Client Quit]
<NobbZ[m]>
This has nothing to do with the redirect. If initial resource is large enough you wouldn't see anything.
hax404_ has quit [Client Quit]
hax404 has joined #nixos
linarcx has joined #nixos
teto has joined #nixos
<wavirc22>
<NobbZ[m]>: Ok. Fair enough. I guess there's not much I can do about it?
dermetfan has joined #nixos
linarcx has quit [Client Quit]
<cinimod`>
I am trying to build some C++ code (not mine) via a generated
<cinimod`>
on the command line is not in the spirit of nix.
<cinimod`>
<cinimod`>
What should I be doing?
linarcx has joined #nixos
<NobbZ[m]>
<wavirc22 "<NobbZ[m]>: Ok. Fair enough. I g"> Exactly, there is nothing that we can do...
<{^_^}>
[nixpkgs] @orivej opened pull request #83665 → avldrums-lv2: alias to x42-avldrums → https://git.io/JvQ74
<wavirc22>
Thanks
<MichaelRaskin>
Actually, if you put this path using ${libcxx} and not literal store path, this should be fine
<cinimod`>
MichaelRaskin: Ta very much
<MichaelRaskin>
Ah wait, you want in nix-shell, not in expression
<jluttine>
can i specify swap file declaratively in nixos configuration.nix without having to do anything myself about creating the file or so? i'm creating a live nixos usb stick and the target machine has very low memory so i thought i'd define a swap file to the usb stick.. if that makes sense..
asheshambasta1 has quit [Remote host closed the connection]
<MichaelRaskin>
cinimod`: does _just_ g++ fail?
<MichaelRaskin>
jluttine: I think pre-initialisation using mkswap is required. At least the comment says so
<MichaelRaskin>
Hmm, or maybe it is obsolete, because swapfile creation is also there…
<jluttine>
MichaelRaskin: hmm, maybe if i set both device="/tmp/swap-foobar" and size="1000" it'll create the file automatically
<MichaelRaskin>
There seesm to be code for creating a systemd unit creating the swap file
<MichaelRaskin>
(of course, swap on USB drive might be pretty painful)
<woffs>
Hi. I wonder when will haskell-updates including LTS-15 be merged into release-20.03?
<jluttine>
MichaelRaskin: yep.. and i'm not sure if it's even possible to use the swap file on a live os usb stick.. maybe it's not possible to write on the disk.. at least, that would be nice for live os usb sticks that they are immutable.. so maybe that's a no go.
zupo has joined #nixos
vandenoever has joined #nixos
asheshambasta1 has joined #nixos
laduke has quit [Ping timeout: 256 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
wavirc22 has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
<pjt_014>
Client: HexChat 2.14.2 • OS: Unknown Distro • CPU: AMD Phenom(tm) II X4 945 Processor (3.00GHz) • Memory: Physical: 7.4 GiB Total (6.6 GiB Free) Swap: 7.8 GiB Total (7.2 GiB Free) • Storage: 77.1 GB / 309.9 GB (232.8 GB Free) • VGA: Advanced Micro Devices, Inc. [AMD/ATI] RS780L [Radeon 3000] @ Advanced Micro Devices, Inc. [AMD] Family 10h Processor Miscellaneous Control • Uptime: 1w 1
<pjt_014>
d 10h 40m 44s
pjt_014 has quit [Quit: Leaving]
JonReed has joined #nixos
pjt_014 has joined #nixos
o1lo01ol1o has quit [Ping timeout: 256 seconds]
laduke has joined #nixos
asheshambasta1 has quit [Remote host closed the connection]
pnobre has joined #nixos
wavirc22 has joined #nixos
__monty__ has joined #nixos
pjt_014 has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @orivej-nixos merged pull request #83665 → avldrums-lv2: alias to x42-avldrums → https://git.io/JvQ74
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to master « avldrums-lv2: alias to x42-avldrums (#83665) »: https://git.io/JvQ53
vandenoever has quit [Read error: Connection reset by peer]
bvdw has quit [Read error: Connection reset by peer]
linarcx has quit [Ping timeout: 256 seconds]
bvdw has joined #nixos
<jdelStrother>
A library I use calls `sw_vers` at runtime, if it's running on macos. That normally exists at /usr/bin/sw_vers, so works fine if I run nix-shell. If I run `nix-shell --pure`, it fails because it's not in the path. Is there a canonical way of exposing certain executables like that to the nix environment?
<{^_^}>
[nixpkgs] @FRidh opened pull request #83674 → buildPython*: use pname → https://git.io/JvQd1
<mananamenos>
Hi, neither logout nor switch users works with xfce4-session-logout. It crashes. How can i track the error of this crash and be able to google for a solution?
dansho has joined #nixos
<mananamenos>
I use lightdm display-manager, which is the default for xfce
hax404 has quit [Remote host closed the connection]
hax404 has joined #nixos
<symphorien>
mananamenos: works for me on 20.03 beta
<symphorien>
(I tried switch users)
JonReed has quit [Remote host closed the connection]
<mananamenos>
symphorien: i use nixos unstable channel, so nixos-version is 20.90pre.. (nightingale). How could i try 20.03 beta?
<ivegotasthma>
I'm fighting a package that tries to use unexported symbols from libraries, if anyone wants to help out, here's the GH issue https://github.com/NixOS/nixpkgs/issues/83629 I can't dissect to see which package causes the problems
<mananamenos>
symphorien: so, this laptop has a nvidia card but also intel graphics 630. Is noveau responsable for both cards? Can i somehow setup nixos to only use intel 630 graphics?
<symphorien>
nouveau is only responsible for nvidia
<symphorien>
about only using integrated graphics, some bioses have a configuration switch for this, and otherwise I don't know
<mananamenos>
symphorien: one more question, in nixos-unstable xfce desktop does not have many xfce4-* tools in the ui's application menu. For example, i have to run xfce4-display-settings from the konsole, cause it is not in menu. Before it was always there
<{^_^}>
#82571 (by romildo, 2 weeks ago, open): xfce, mate: preferences not shown in menu
patagonicus has joined #nixos
<bqv[m]>
yorick: i had the segfault again, GC_DONT_GC=1 fixed it :D
<bqv[m]>
and it didn't even use that much ram
linarcx has joined #nixos
reallymemorable has joined #nixos
zupo has joined #nixos
ixxie has quit [Ping timeout: 264 seconds]
<patagonicus>
Hi there. I've spent some time now trying to get a NixOS system running that has root on LVM on LUKS and is unlocked via SSH. Is that a supported use case? My current config is close, but not quite there: https://gist.github.com/Patagonicus/0d8432734772d2f07d02dfeed1a3bea6 I have "read" in preLVMCommands to stop it from timing out, but afterwards it still asks for the password locally and then fails because
<patagonicus>
the device is already decrypted, but if I remove the luks.devices entry, cryptsetup is not included. Do I have to copy & modify the luksroot.nix file or am I just missing the right options?
<patagonicus>
Oh, duh. I can just leave it running asking for a password and run cryptsetup-askpass over SSH and that works. Interesting, I wonder what cryptsetup-askpass does, seems to be a wrapper.
<alexgood>
Hey folks, I'm just getting started with Nix having been on Arch for years. I've got gnome shell up and running from `unstable` but it's version 3.34 and I really want 3.36. 3.36 seems to be in `master` on nixpkgs but isn't available in the unstable channel yet. Is there an easy way to just install whatever is on master?
jjakob has joined #nixos
LysergicDreams has quit [Ping timeout: 250 seconds]
pluplog has joined #nixos
<benny>
alexgood: as far as my understanding goes you could switch to unstable-small, which has fewer tests and less binaries but is closer to the current master
vandenoever has quit [Read error: Connection reset by peer]
Maxdamantus has quit [Ping timeout: 260 seconds]
aveltras has joined #nixos
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
<duairc>
Are there any (nix) functions in nixpkgs for parsing/formatting IP addresses using CIDR notation?
cinimod` has quit [Ping timeout: 252 seconds]
<aveltras>
i'd like to setup a CI/CD server with hydra and nixos. It it possible having for example a private github repo, hydra setup to automatically build the master branch when it changes and automatically pushing the result of the build if it succeeds to some other nixos server ? if so, is there any example of this somewhere ?
philr has quit [Ping timeout: 265 seconds]
<duairc>
aveltras: I'm not sure about the last part, but the rest is certainly possible
Lysergic1reams has quit [Ping timeout: 256 seconds]
LysergicDreams has quit [Ping timeout: 265 seconds]
<duairc>
infinisil: Haha, that's going to save me a lot of time :) Thanks!
<infinisil>
:D
wavirc22 has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
wavirc22 has joined #nixos
andi- has quit [Remote host closed the connection]
relaxmax has joined #nixos
c0c0 has quit [Quit: WeeChat 2.6]
LysergicDreams has joined #nixos
roosemberth has joined #nixos
andi- has joined #nixos
<roosemberth>
Hello! I'm writing a nix script and I'd like to map a function over a cross join. In python I'd use a generator `(fn(a,b) for a in as; for b in bs)`. In nix I'm writing `with lib;(flatten (flip map as (a: flip map bs (b: fn a b))))`, but I wonder if there's anything more idiomatic?
<infinisil>
> roosemberth I'd use concatLists instead of flatten, because flatten won't work correctly if fn returns a list
<{^_^}>
error: syntax error, unexpected ',', expecting ')', at (string):293:51
LysergicDreams has quit [Ping timeout: 256 seconds]
inkbottle has joined #nixos
zebrag has quit [Ping timeout: 252 seconds]
LysergicDreams has joined #nixos
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
troydm has joined #nixos
nschoe has joined #nixos
CptCaptain has quit [Ping timeout: 250 seconds]
<nschoe>
Hi everyone, I'm having some issues with `nixos-rebuild build`. It fails with "error: creating symlink from '/tmp/nixos-rebuild.ZlM1OW/nix.drv.tmp-7373-491725176' to '/nix/store/qfc8grhyx4gqpj6m4gni0mgngffxxd87-nix-2.3.3.drv': No space left on device" and then "opening lock file '/nix/store/zvilp79l6g6a0ngk9pj5vbk3j7jzkkda-busybox-1.31.1-x86_64-unknown-linux-musl.lock': No space left on device" and at the end it says: "error: cannot open
<nschoe>
connection to remote store 'daemon': executing SQLite statement 'pragma synchronous = normal': unable to open database file (in '/nix/var/nix/db/db.sqlite')". I still have a few GBs of free space on my / partition, though.
<bqv[m]>
what about on /nix
<nschoe>
And it fails _immediately_ after I run the command. And I monitor the free space remaining on /: it doesn't change. So it's not like "usual" when it downloads a lot of files (after I updated my channels) and fill /
<immae>
nschoe: and /tmp
<symphorien>
nschoe: check inodes. df -i
<nschoe>
immae, weirdly enough when I run `df -h` it doesn't show /tmp/ But when I run `ls` on it, it's fuuuuuuuul of thousands of files.
captjakk has quit [Remote host closed the connection]
<bqv[m]>
i feel like that's what you're after and i think it would work(?)
<kraem>
bqv[m]: ah i tried it without callPackage - i'll try that!
captjakk has joined #nixos
lsix1 has joined #nixos
<nschoe>
bqv[m], ah ah: "sudo: unable to execute /run/current-system/sw/bin/rm: Argument list too long" that's a first for me :D
<nschoe>
Gotta split my rm command in smaller batches:D
<bqv[m]>
yeah
<bqv[m]>
you made me curious now, i checked my tmp, the oldest file is from two days ago but there's 75 babel-XXXXXX directories
CptCaptain has joined #nixos
wozeparrot has quit [Quit: Connection closed for inactivity]
zaeph1 has joined #nixos
captjakk has quit [Ping timeout: 240 seconds]
<bqv[m]>
but at least i'm safe by 5 orders of magnitude
ddellacosta has joined #nixos
<nschoe>
bqv[m], indeed :D
zaeph has quit [Ping timeout: 265 seconds]
zaeph1 is now known as zaeph
<nschoe>
I can't even run `rm -rf /tmp/nix-shell-22*` because "argument list too long" (I've got dirs like "nix-shell-22600-23". So I must loop with `rm -rf /tmp/nix-shell-226*`, then 225*, etc. It's amazing how it could creep up like this.
wavirc22 has quit [Ping timeout: 240 seconds]
kleisli has joined #nixos
<bqv[m]>
i did wonder how it was actually possible to run out of inodes
<bqv[m]>
i guess this is how
<MichaelRaskin>
bqv[m]: to run out of inodes it's better to create a ton of symlinks. Debugging Nixpkgs TeXLive composition code is highly recommended.
<nschoe>
MichaelRaskin, or have (somehow) /tmp not cleaned since, oct 26, 2015 :D
<das-g[m]>
nschoe: maybe `xargs` can help?
<immae>
nschoe: you can do find /tmp -name "nix-shell-2*" -exec rm -rf {} \;
<bqv[m]>
nschoe: since you have the luxury of /tmp living on your root filesystem, a shortcut might be to `mv /tmp /tmp.wtf` and then `mkdir /tmp`, then you can either `rm -rf /tmp.wtf` or `unlink /tmp.wtf` or whatever you like
<nschoe>
das-g[m], thanks, but as bqv[m] mentionned, ls -lt did the trick
leah2 has quit [Remote host closed the connection]
<nschoe>
bqv[m], indeed.
<bqv[m]>
immae++
<bqv[m]>
that would work too
<{^_^}>
immae's karma got increased to 10
growpotkin has joined #nixos
<immae>
(I had the same issue some time ago, because I had a nix-shell running every few seconds and I wasn’t aware that it created persistent files in /tmp)
<nschoe>
bqv[m], my plan was to rebuild configuration.nix with the new options and reboot, letting him take care of erasing /tmp. I do not know what is actually needed in tmp when nixOS is running
<bqv[m]>
i only suggested that because i now worry that on reboot, nix will just try and rm -rf, and run into the same issue
<nschoe>
immae, I did not know either. I don't have a nix-shell running every seconds, but I guess I msut open a fuckton of them over the years.
<nschoe>
Well about 900k over 5 years
<immae>
right
<kraem>
bqv[m]: i'm getting that toplevel/default is called with an invalid argument '<nixpkgs>'
<immae>
note that a recent version of nix fixes that
<immae>
(2.3.something)
<nschoe>
thats' abou t500 a day xD
<evanjs>
Okay... two things re gh (the github CLI utility) on nix/nixos... is anybody successfully using it with the nixpkgs repo? It’s unable to resolve PR numbers via `gh pr checkout <number>` whenever I try
<nschoe>
OMG my `du` commandjsut returned: /tmp consumed 13 G.
<nschoe>
So **that's** where my free space was being sucked :D
<evanjs>
2: does anybody else get a bunch of garbage text after executing commands using gh??
chloekek has quit [Ping timeout: 252 seconds]
<bqv[m]>
i prefer to use 'hub'
<bqv[m]>
kraem: i have no idea why
<bqv[m]>
it works for me
<kraem>
bqv[m]: oh i wrote it wrong. now it's saying i am not calling it with required argument localSystem
linarcx has quit [Read error: Connection reset by peer]
leah2 has joined #nixos
linarcx has joined #nixos
<bqv[m]>
interesting. i'm out of my depth, you'll have to see if someone else knows
<kraem>
bqv[m]: thanks anyways :)
reallymemorable has joined #nixos
nobrak``` has joined #nixos
nobrak`` has quit [Ping timeout: 258 seconds]
Rusty1 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @bhipple pushed 2 commits to release-20.03: https://git.io/JvQjO
zeorin90 has joined #nixos
<zeorin90>
Hello! I'm a new Nixos user. Just installed, now adding programs to my system, and I notice firefox is no longer starting.
<zeorin90>
There's no error ever when started from the terminal, it just never launches a GUI
katie_ has quit [Quit: \o]
katie_ has joined #nixos
<bhipple>
19.09 or 20.03?
<zeorin90>
19.09
<zeorin90>
There is a process, though, pgrep firefox tells me
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<zeorin90>
removing ~/.mozilla doesn't seem to make a difference
<immae>
zeorin90: did you by chance use a profile directory that was for a higher version of firefox in your previous system?
<immae>
ah then no
<bhipple>
First off welcome to NixOS, btw!
tilcreator has quit [Ping timeout: 258 seconds]
<zeorin90>
Thank you
<zeorin90>
Happy to be here. It's been a long time since I've switched distros
<bhipple>
One of the really cool things is that you can run multiple versions side-by-side to test/bisect/explore, without impacting others. Can you try running this to see if the latest-and-greatest firefox works:
<zeorin90>
But I started with Debian 3, so I've been around the block
<zeorin90>
This'll take some time. I'm in south africa and 2 african backbone cables are down
knupfer has quit [Ping timeout: 256 seconds]
<zeorin90>
cloning at 15% atm
<{^_^}>
[nixpkgs] @tobim opened pull request #83695 → pythonPackages.pyarrow: fix test → https://git.io/JvQj0
sudoforge has joined #nixos
<bhipple>
Ah yeah it's a big repo, but fortunately once you do the "build" you'll just have to download firefox from the binary cache, not actually download/build all its transitive dependencies
noudle has joined #nixos
<bhipple>
good to have on hand tho :)
<tilpner>
zeorin90: You don't need to clone the full repo
<bqv[m]>
shallow clone might have been an idea
<bhipple>
At some point he will definitely want it, though (maybe shallow would be fine)
<bhipple>
so good to get it sooner or later
<tilpner>
Ehh, it's only necessary when they want to contribute
<bhipple>
A lot of "documentation" of things like package options for overlays is done by `ripgrep <attr>` in the nixpkgs checkout :D
<bqv[m]>
a shallow clone leaves room for a full fetch later
<tilpner>
nixos-unstable should be close enough to master, and has some checks and caching
<bqv[m]>
bhipple: i'm doing that now...
<bhipple>
zeorin90: You can also try: nix run -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixpkgs-unstable.tar.gz nixpkgs.firefox
<bhipple>
Yeah you can also use the shortened alias for the -I argument too
Diogo has joined #nixos
<zeorin90>
let me do that so long
slack1256 has joined #nixos
<zeorin90>
Here is my configuration.nix in the meantime (I'm not using ad-hoc package management so far, so the whole state of the system is in there): https://pastebin.com/pDxcZnNP
<thinkingeye>
I try to package a binary with the help of buildFHSUserEnv. But how do I get the config of the binary to the desired directory....for example /var/app1/data/conf.cfg
<zeorin90>
That's the result of your `nix run` oneliner
vandenoever has quit [Read error: Connection reset by peer]
<bhipple>
ZerataX: interesting. Are you sure that's a fatal error? It seems to start and show just fine for me.
<bqv[m]>
<thinkingeye "I try to package a binary with t"> is it possible to package it without buildFHSUserEnv? that may be easier and is always better
alexgood has left #nixos ["User left"]
vandenoever has joined #nixos
turion has joined #nixos
<tilpner>
zeorin90: Pass -no-remote or kill the firefox process if it's still in the background
<zeorin90>
It's not a fatal error, the shell prompt is not returned to me, i.e. the process hasn't aborted
<zeorin90>
But nothing is drawn to the screen
jbgi_ has quit [Ping timeout: 240 seconds]
<bhipple>
This suggests to me that it's an issue with X11 and your display manager, rather than firefox
<zeorin90>
OMG
<zeorin90>
I'm very embarrassed right now
<zeorin90>
Firefox is just fine
relaxmax68 has joined #nixos
<thinkingeye>
bqv[m]: I get the binary running with autoPatchelfHook but it is missing its hard coded configs in a special /var directory
<bhipple>
Well you learned a couple new tricks for running packages out of older/newer distributions, at least ;)
relaxmax68 has quit [Client Quit]
nschoe has joined #nixos
<nschoe>
Hi again
<zeorin90>
I haven't completed my WM util setup, and I forgot that I set firefox to launch _on a specific workspace_, which currently is not highlighted on polybar because I need to fix it's config
<nschoe>
bqv[m], looks like it worked :)
<zeorin90>
If I just navigate to that workspace, it's there!
<zeorin90>
So sorry to waste your time!
<bqv[m]>
nice!
bennofs has quit [Ping timeout: 272 seconds]
<bhipple>
No worries, always happy to see and help some NixOS newcomers :D
<nschoe>
I'm after a fresh upgrade, the two options for cleaning are enabled and my /tmp is fresh now
<nschoe>
And I ge this magic "everything works faster" on the laptop, too :)
<nschoe>
I think it was pretty taxing on the whole system.
<zeorin90>
Cool, thank! Have a good morning/afternoon/evening/night
<bqv[m]>
doubtless
<bqv[m]>
having free inodes is always nice
<nschoe>
So, thanks for suggestion the inodes things
<bqv[m]>
thinkingeye: seriously? that's awful. not even relative paths?
fusion809 has quit [Remote host closed the connection]
jumper149 has joined #nixos
<thinkingeye>
bqv[m]: no its a service binary. So its better to use lxc, docker, vm ?
<bqv[m]>
if it's a service, perhaps you want to be making a module, not a package
<bqv[m]>
if it's "system setup" and not required for the binaries to actually *execute*, have it set up as part of a service module
pinecamp has joined #nixos
<jumper149>
Hi, I'm trying to set a user-based cursor theme in NixOS. I have already tried everything from https://wiki.archlinux.org/index.php/Cursor_themes . With lxappearance I'm able to set the theme, but after logging in from lightdm it doesn't work anymore.
jbgi_ has joined #nixos
<bqv[m]>
there's a gtk module in PR at the moment
<bqv[m]>
that should take care of that
<bqv[m]>
assuming it hasn't been merged yet, at least
kleisli has quit [Remote host closed the connection]
<bqv[m]>
infinisil: poke
<jumper149>
I guess that would be global for all users, but that's fine by me :)
<thinkingeye>
bqv[m]: well, the service is a binary which I cant write myself. Its like a server. Can I place with a nixos module those /var/... files into the correct position?
<bqv[m]>
jumper149: actually, if you use home-manager i think there is already a similar module in that, which is per-user
orivej has joined #nixos
pnobre has quit [Ping timeout: 240 seconds]
<pinecamp>
hello! I'm developing a nodejs app, using Nix package manager and the node2nix utility. node2nix generates a derivation(?) that presents a few attributes, like `package` and `shell`, so you can build the package with `nix-build -A package`, and enter a shell with `nix-build -A shell`. I want to write a shell.nix in this directory such that I can
<pinecamp>
type `nix-shell`, and it will execute the equivalent of `nix-build -A shell`. How can I do this?
<infinisil>
bqv[m]: Hm?
cinimod` has quit [Ping timeout: 260 seconds]
<bqv[m]>
infinisil: was looking for 80865
CptCaptain has quit [Ping timeout: 252 seconds]
zupo has joined #nixos
cinimod` has joined #nixos
<{^_^}>
[nix] @Ericson2314 opened pull request #3455 → Replace some `bool recursive` with a new `FileIngestionMethod` enum → https://git.io/Jv7vq
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/Jv7vb
waleee-cl has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to release-20.03: https://git.io/Jv7vN
zupo has quit [Client Quit]
forkland has quit [Remote host closed the connection]
Serus_ has joined #nixos
johnjay has quit [Ping timeout: 250 seconds]
<pinecamp>
maybe I can ask in a more general way... if I have a nix expression in default.nix that generates a development shell when `nix-shell -A shell` is run, how can I write a shell.nix file such that running `nix-shell` generates the same result?
<bqv[m]>
shell.nix can just be (import ./default.nix {}).shell
<bqv[m]>
tweak as desired
<pinecamp>
I've tried `let d = import ./default.nix; in d.shell`, but I get an error that "value is a function while a set was expected"
zupo has joined #nixos
<bqv[m]>
you forgot the {}
cinimod` has joined #nixos
<pinecamp>
bqv[m] thank you! :) why is {} necessary for import?
<bqv[m]>
those are the arguments you're passing to the imported file
<bqv[m]>
the file you imported is a function
domogled has joined #nixos
<duairc>
So on my 64-bit system, the largest integer I can make in Nix is 9223372036854775808. Is that always the case or would it be 2147483647 on a 32-bit system?
jbgi_ has joined #nixos
<pinecamp>
ahh, I see. so a Nix function with no args needs be called like `fname {}` rather than just `fname`?
<DigitalKiwi>
anyone else notice/know of problems with clipboard not syncing? I'll copy paste something, go to paste, it pastes something else, and then if I paste again it pastes the thing that should have pasted the first time
<DigitalKiwi>
also `firefox` seems like it got reallllly slow for some reason
<DigitalKiwi>
i think someone else mentioned it a few days ago where days might be a week or more
cole-h has joined #nixos
cr4y1 has quit [Remote host closed the connection]
<worldofpeace>
DigitalKiwi: what wm are you using? I've heard of bugs with clipboard sync with wayland stuff
cinimod` has quit [Ping timeout: 250 seconds]
Unode has quit [Read error: Connection reset by peer]
Unode_ has joined #nixos
cr4y1 has joined #nixos
<DigitalKiwi>
xmonad+plasma5
morgrimm has joined #nixos
Unode_ is now known as Unode
<morgrimm>
Hey folks - I'm trying to virtualize NixOS to prep my config and environment for migrating entirely, and I just had a question or two
<worldofpeace>
so x11. hmm
<DigitalKiwi>
i tried two things now that might have been a problem i logged out of the other session i was logged in (because i didn't want to log out of this one for something earlier) and logged out of that one as well
<morgrimm>
1) What's the config option to enable the virtualbox guest modules? I can't seem to bump up the resolution for the VM, and 2) is there a good all-encompassing resource for the config options? I've been through the manual, but is there like an exhaustive list of all the options?
<DigitalKiwi>
so uh we'll see if it keeps up
<pinecamp>
bqv[m]: I see now that in my case default.nix is a function that expects an attrset with some optional attributes, so the {} is necessary to call the default.nix function. thanks again for your help! :)
<morgrimm>
For example, making a user trusted decoratively , instead of adding them to the nix.conf (which seems to be read-only by default, even to root)
o1lo01ol1o has quit [Remote host closed the connection]
jbgi_ has quit [Ping timeout: 256 seconds]
johnjay has joined #nixos
<worldofpeace>
morgrimm: When you say config options you mean option, and not for example options to the nix command line?
bvdw has quit [Read error: Connection reset by peer]
<DigitalKiwi>
i have parcelite and klipper (not sure how to disable klipper anyway if it's possible) and that could also be a factor to consider
mexisme has joined #nixos
<morgrimm>
Oh, no - I mean options for the nix configuration file
CptCaptain has joined #nixos
bvdw has joined #nixos
<worldofpeace>
morgrimm: man configuration.nix https://nixos.org/nixos/options.html and the local manual on your machine would have an options section
<worldofpeace>
(the last being useful if you can nixos-unstable, the website only shows the current stable options)
cinimod` has joined #nixos
<worldofpeace>
DigitalKiwi: Is this in 20.03 (beta) or unstable?
<morgrimm>
worldofpeace: That's exactly what I needed, thank you :D All the options in one place. `nix.trustedUsers` is exactly what I'm looking for for that
<DigitalKiwi>
20.09 i'm living in the future
<worldofpeace>
DigitalKiwi: lol, but that means unstable since there's no unstable stateVersion we could match against and just use the release number
<morgrimm>
There doesn't seem to be an option for virtualbox guest tools, and I can't find a package on nixpkgs for it
<DigitalKiwi>
worldofpeace: and it's a git release too not even the unstable channel
<DigitalKiwi>
worldofpeace: i'm starting to think it was related to the things i've mentioned i had done and like partial update from not logging out of plasma after an upgrade. so far the times i've tried it's worked fine...
<asbachb>
*is still up to date.
<DigitalKiwi>
asbachb: someone mentioned it a few days ago...let me see what they said
<worldofpeace>
esclear: I changed pulseaudio to be socket activated and not x11 activated recently.
pinecamp has quit [Remote host closed the connection]
<asbachb>
DigitalKiwi: I see. I updated the wiki page with the new link.
<hpfr[m]>
trying to use some perl scripts I downloaded without any knowledge of perl. it says it can't locate config/General.pm, so I ran nix shell -p perl530Packages.ConfigGeneral, and used perl -I to include that nix store path. it worked but was obviously ugly. is there a better way to do this (make perl aware of packages)?
<esclear>
And: Will there be a possibility to disable that as well? In my setup pulse needs to be started by a user socket, that's also the reason why I'm trying to prevent sddm from starting it.
<GerdFlaig[m]>
bqv: After patchelf'ing the library dependencies, it appears I'm getting a corrupt binary. Captured current state in https://github.com/NixOS/nixpkgs/pull/83702
<worldofpeace>
esclear: pulseaudio has a user socket pulseaudio.socket, and it is wantedBy the sockets.target
<cole-h>
bqv[m]: :P
<esclear>
worldofpeace: Yep, for some reason, my sddm still starts pulseaudio, even though I'm not quite sure, how it is started at the moment.
<worldofpeace>
asbachb: I believe so
<worldofpeace>
Hmm, let me see if the issue tracker has any info on that. I do remember things like this
<roosemberth>
How can I have the nixos module system import an expression rather than a file? (e.g. I would like to do something like `let foo = { lib, ...}: { boot = ...; } in { imports [foo]; }`)
<worldofpeace>
esclear: I guess that's why you linked "Publish access credentials in the root window" in the display-manager script
<roosemberth>
infinisil: Is there any technical reason, or just not implemented?
<bhipple>
Ah, thank you!
morgrimm has quit [Ping timeout: 240 seconds]
asbachb has quit [Ping timeout: 240 seconds]
<jtojnar>
worldofpeace I though we have already removed it
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil>
roosemberth: I just said, you can do that, it works
<roosemberth>
Oh xD
<roosemberth>
My mind autocorrected to _can't_ xD
typetetris has joined #nixos
<roosemberth>
Hmm, then I have a problem in my derivation xD, because It's not getting evaluated :(
<worldofpeace>
Jan Tojnar: I guess I'll open one of those risky PRs "I dun think we need this anymore" 🤣 maybe esclear can test it
<esclear>
lol
<worldofpeace>
esclear: those PRs always seem to cause critical issues coming from me, so let's just 🤞
<DigitalKiwi>
worldofpeace: so far everything i've copy pasted has worked as expected
<DigitalKiwi>
worldofpeace: i'll make the PR for you and take the heat, and then you back me up
<hpfr[m]>
Oh there’s shell.nix
<worldofpeace>
DigitalKiwi: Great, it is very likely you hit a bug in the updated plasma5. maybe there's a patch for it somewhere, if you track their dev
<roosemberth>
Oh, my `imports` is not getting evaluated because the expression opening that file uses `import ./bar.nix { inherit lib; }`.
<worldofpeace>
DigitalKiwi: haha, prepare to be responsible for 20 rather simple issues that everyone works on simultaneously
<wirew0rm>
fpletz: hi there, I'm currently looking into bumping gnuradio to 3.8 (and moving to python3, enable zeroMQ module, ...) and since you are listed as one of the maintainers I just wanted to quickly make sure that there isn't allready a version out there on some branch waiting to get merged or if there are other things that should be kept in mind
<{^_^}>
[nixpkgs] @primeos pushed to master « mesos,swiften,pingus: Mark as broken »: https://git.io/Jv7U3
<cole-h>
alexgood: Did you try running `nixos-rebuild switch` as root? 99% sure all (or most) nixos-rebuild operations require root (via sudo or something else).
<alexgood>
I ran it as `sudo nixos-rebuild boot`
cinimod` has joined #nixos
<alexgood>
Being root shouldn't change that right?
<alexgood>
*`sudo nixos-rebuild switch`
<alexgood>
Well I tried both
<cole-h>
Sudo is (temporary) root :P
<cole-h>
And running it as root you still get the same operation not permitted?
<alexgood>
Yeah that was my understanding
equivrel has quit [Read error: Connection reset by peer]
<alexgood>
Yeah
equivrel has joined #nixos
jeaye has joined #nixos
<bqv[m]>
Likely prohibited by fs then?
<alexgood>
I've checked that I can write to files on the device
<alexgood>
e.g `echo 'test' > /test' runs fine
<{^_^}>
[nixpkgs] @edolstra pushed to master « make-tarball.nix: Restore the 'commit' field in packages.json »: https://git.io/Jv7U4
morgrimm has joined #nixos
<cole-h>
I would rerun the switch with varying degrees of verbosity (`-v`) and see if you get any more useful information
<AmandaC>
What filesystem is it?
<cole-h>
Something else to try might be remounting the /nix partition as rw (if it is a separate partition and isn't already mounted rw)
<AmandaC>
If it's a non-linux FS it might be that nix is doing something that the FS doesn't support
<bqv[m]>
<cole-h "Start commenting things you've d"> I miss haskell's verbose errors for this exact reason
<cole-h>
bqv[m]: I miss Rust's verbose errors for this exact reason :P
<bqv[m]>
gosh nix is a painful language half the time
<cole-h>
When you're new(ish) and trying to do more than packaging, indeed it is.
<alexgood>
It's an ext4 partition, although I'm using a windows Dual boot so I guess it could be complaining about the EFI partition
<bqv[m]>
Hah, rust is ok until you anger the borrow checker
<bqv[m]>
Or have lifetime bugs
cinimod` has quit [Ping timeout: 252 seconds]
mexisme has joined #nixos
<cole-h>
:^)
<alexgood>
Hmm, that seems to be the problem, looks like I only have read only acceess to the EFI partition for some reason
<bqv[m]>
Bingo
<alexgood>
No wait, just got confused about which terminal I was root in, `touch /boot/test` works fine (`/boot` is where I've mounted the EFI partition)
<morgrimm>
Is there a way to see deprecated config options? I just rebuilt from a new config, and my `desktopManager` and `windowManager` config options are deprecated I guess
<morgrimm>
The most I caught before it flashed by was the new value accepted like `"xcfe+xmonad"`
<cole-h>
If they're deprecated, they should show you the new option in a message
<bqv[m]>
What??
mexisme has quit [Read error: Connection reset by peer]
<bqv[m]>
They are?
<morgrimm>
It did show me the new option, but before I could read the entire thing, the store path copying drowned it out :/ and the default term for xcfe doesn't have far enough scrollback
<morgrimm>
Is there a way I can have nix like, analyze my config?
<morgrimm>
Without making a random change and rebuilding again?
<cole-h>
That's when I'd ^C...
zeenk has quit [Quit: Konversation terminated!]
<morgrimm>
Yeah - next time I see it, I will. But I didn't catch it this time, it's my first time with the OS
<mehlon>
sudo nixos-rebuild dry-build?
<morgrimm>
mehlon: Doesn't show the message again. It rebuild it, but I guess suppresses anything it's shown before
<morgrimm>
rebuilds*
zeenk has joined #nixos
vandenoever has quit [Read error: Connection reset by peer]
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
<morgrimm>
I wonder if `services.xrdp.defaultWindowManager` is what it wanted me to set
<morgrimm>
That seems to be the only one that takes in that sort of string
<jtojnar>
Also, you can try adding the following to your config `assertions = map (w: {assertion = false; message = w;}) config.warnings;`
<morgrimm>
`services.xserver.displayManager.defaultSession` does not exist, according to the rebuild
<morgrimm>
Oh, will that always assert warnings?
<jtojnar>
that should make it stop on module warnings
<morgrimm>
Oh, awesome
<jtojnar>
yup
<jtojnar>
what branch are you on? it should be in release-20.03 at least
<bqv[m]>
Hmm, I might steal that
<morgrimm>
19.03, which explains it - that's what the ISO is on right now
<morgrimm>
Although idk why I'm getting that message if I'm on a version without that change
<jtojnar>
oof that is very outdated
<morgrimm>
`nixos-rebuild --upgrade` time it is
<bqv[m]>
Oh, right
<jtojnar>
it might be nice to add an option to assert warnings upstream
Maxdaman1us is now known as Maxdamantus
<bqv[m]>
+1
Zander_ has joined #nixos
<morgrimm>
So if I wanted to upgrade to 20.03
kleisli has joined #nixos
<morgrimm>
Should I be adding that channel to my root channels
<morgrimm>
And the running the `nixos-rebuild switch --upgrade` ?
<morgrimm>
then*
johnw has joined #nixos
<morgrimm>
Oh, it's in the manual, perfect
magnetophon has quit [Read error: Connection reset by peer]
<alexgood>
Is running `nixos-rebuild` within `nixos-enter` supported? The error I'm getting looks a little bit like some errors other people have gotten due to nested chroots disabling clone
ixxie has joined #nixos
Zander_ has quit [Read error: Connection reset by peer]
lovesegfault has joined #nixos
Zander_ has joined #nixos
pluplog has quit [Read error: Connection reset by peer]
mexisme has joined #nixos
edef has quit [Quit: leaving]
edef__ has joined #nixos
edef__ is now known as edef
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<alexgood>
Okay, so I've been `strace`ing `nixos-rebuild` to try and figure out why it's erroring. The only thing that looks hopeeful is that it's getting an "operation not permitted" trying to write to `/proc/853.uid_map`, which feels similar to the clone problem other people have mentioned.
drakonis has joined #nixos
<bqv[m]>
Writing to /proc?
<bqv[m]>
That doesn't sound healthy
magnetophon has joined #nixos
<alexgood>
Yeah, but I'm guessing that's part of the sandbox machinery as it's writing to a namespace user mapping?
morgrimm has quit [Ping timeout: 240 seconds]
zupo has joined #nixos
<alexgood>
Yeah this seems to be the issue, if I run `unshare --user --pid echo YES` within the `nixos-enter` chroot then I get an error
<hpfr[m]>
with `mkShell { buildInputs = [ perl.withPackages (p: [ p.ConfigGeneral p.GD p.MathVecStat ]) ];}` in my `shell.nix`, `nix-shell` returns `cannot coerce a function to a string`?
FRidh has quit [Quit: Konversation terminated!]
o1lo01ol1o has joined #nixos
<hpfr[m]>
ok I just had to put parens around it... oof
<cole-h>
Yep, otherwise it wants `perl.withPackages` and `(p: ....)`
Zander_ has quit [Read error: Connection reset by peer]
Zander__ has joined #nixos
orivej has joined #nixos
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #83705 → buildFHSChrootEnv: link gsettings-schemas to FHS location → https://git.io/Jv7ku
phreedom has quit [Remote host closed the connection]
<{^_^}>
[nixops] @adisbladis opened pull request #1270 → Add support for non-root deployments → https://git.io/Jv7kP
phreedom has joined #nixos
chloekek has quit [Ping timeout: 256 seconds]
<alexgood>
Okay, for anyone who was following this tedious story, the correct incantation was `nixos-rebuild boot --option sandbox false` to disable the sandbox which was causing the unshare problem.
waleee-cl has joined #nixos
ixxie has quit [Ping timeout: 258 seconds]
nschoe has quit [Ping timeout: 252 seconds]
Zander__ has quit [Read error: Connection reset by peer]
Zander__ has joined #nixos
turion has joined #nixos
<{^_^}>
[mobile-nixos] @danielfullmer opened pull request #114 → initrd-vendor: mount vendor read-only → https://git.io/Jv7kj
o1lo01ol1o has quit [Ping timeout: 256 seconds]
roosemberth has quit [Ping timeout: 240 seconds]
o1lo01ol1o has joined #nixos
knupfer has joined #nixos
<turion>
Has anyone packaged Jitsi Meet (server) successfully?
<Nixola>
the NixOS on ARM page ( https://nixos.wiki/wiki/NixOS_on_ARM ) mentions a link for armv6l and armv7l images, saying those are the most up to date, but I would like to install the aarch64 version
<Nixola>
and I can't figure out whether I should get the aarch64 image from the same link, or whether there's a different one somewhere I'm supposed to get since it looks like those images are about one and a half years old
<cizra>
I installed NixOS to a new machine, but I must have messed it up somehow (did I manage to create a per-user profile for root?) Anyway, when I type nixos-rebuiuld switch, it says "warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring" and a bunch of similar errors.
<Nixola>
ok, I flashed the image on the microSD, now: I don't actually have a cable to connect the rpi to a monitor (I do have one, but I didn't plan to get stuck here due to covid lockdown so I'll have to make do)
<Nixola>
is there a way to enable sshd on it before first boot?
<Nixola>
or, alternatively, during/after first boot with just a keyboard and no monitor connected to it
<manveru>
Nixola: yeah, you just have to add an ssh key to your user
<manveru>
sshd is started by default afaicr
<manveru>
but just in case, set `services.openssh.enable = true` :)
<manveru>
or `services.openssh.startWhenNeeded = true` to use socket activation
<evils>
manveru: without a monitor?
<manveru>
the SD already has the full install on it
<manveru>
so it'll boot and start ssh, then you don't need to connect a monitor
<manveru>
that's how i setup mine
reallymemorable has quit [Quit: reallymemorable]
<Nixola>
where do I do that though?
reallymemorable has joined #nixos
<manveru>
how do you build your image?
ambro718 has quit [Ping timeout: 256 seconds]
<evils>
Nixola: i think you start your pi, ssh to it, then edit /etc/nixos/configuration.nix
<manveru>
you can't ssh if it doesn't have an ssh key
<Nixola>
manveru: I downloaded it from hydra
<manveru>
oh
oida has quit [Remote host closed the connection]
jbgi_ has joined #nixos
o1lo01ol1o has joined #nixos
<Nixola>
should I be building an image instead?
<evils>
Nixola: are you sure you can't ssh to it to the nixos user?
<hpfr[m]>
the Math::Combinatorics perl module is not in nixpkgs? is there something I can do short of having to learn how to package it?
<samueldr>
you can boot it, power off using `poweroff` blindly, use your computer to copy a key in /hom/nixos/.ssh/authorized_keys (or whatever the right name is)
<samueldr>
it needs to "rehydrate" a system on the first boot
<hpfr[m]>
*nixpkgs.
<Nixola>
evils: I can certainly try, but I also have no idea at what point I can safely shut it off
<Nixola>
or connect to it
<samueldr>
Nixola: `sudo poweroff`, forgot that it's not running as root
<samueldr>
(though I think since it's at the console the user should be able to poweroff anyway)
<Nixola>
it keeps refusing the connection, although sometimes it takes longer
<evils>
Nixola: i'd go with samueldr's suggestion and try to shut off the machine blindly, then mount the card on your desktop and copy over your ssh public key into /home/nixos/.ssh/authorized_keys
<samueldr>
it will not accept a password-less connection via ssh
reallymemorable has quit [Quit: reallymemorable]
<samueldr>
just like the x86_64 iso doesn't
<samueldr>
well, key-less and password-less
<Nixola>
when is it safe to power it off?
<samueldr>
after `sudo poweroff` the raspberry pi's LEDs should all turn off IIRC
<samueldr>
maybe one will stay on
<samueldr>
another option could be sudo passwd nixos blindly
<Nixola>
guess I'll try while pinging it
<evils>
Nixola: i think if you can enter the command to shut it down, it's safe to shut down
<samueldr>
sudo is password-less
<Nixola>
weird, the ethernet LEDs stayed on, green one blinking
<samueldr>
that may be correct
Naptra has quit [Remote host closed the connection]
kleisli has quit [Remote host closed the connection]
<Athas>
I want to add manpages to a Haskell package in nixpkgs. What would be a good way of doing it? Most of them are thin wrappers around whatever is downloaded from Hackage. The source for the manpages is in the source tarball already, but I need to use a bunch of other tools (Sphinx) to compile them.
kleisli has joined #nixos
<Athas>
I guess it goes in configuration-nix.nix somehow?
<Athas>
Doesn't look like any other Haskell packages in Nixpkgs installs manpages, which is a bit sad.
<Nixola>
is /etc/nixos supposed to be empty?
<evils>
Nixola: maybe... you can populate it with nixos-generate-config
lsix1 has quit [Ping timeout: 240 seconds]
<Nixola>
with or without sudo? 'cause I think that's something I'll need to do blindly, since I still can't connect via ssh
armin has joined #nixos
reallymemorable has joined #nixos
<evils>
how do you know /etc/nixos is empty if you're working blindly?
<Nixola>
I powered it off, popped the microSD in my pc, checked /etc/nixos, added my ssh key, popped the microSD back in the rpi, booted it, tried SSH
<evils>
ah
<evils>
maybe try setting a password and ssh in with that password on the nixos user?
<Nixola>
it's still "connection refused"
<Nixola>
sshd isn't even running as far as I can tell
<evils>
can you type `sudo systemctl start sshd` blindly?
<Nixola>
makes sense
ambroisie has joined #nixos
work_ has quit [Quit: Connection closed for inactivity]
<Nixola>
I'm in
granra has joined #nixos
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
<{^_^}>
[nixpkgs] @bcdarwin opened pull request #83712 → python3Packages.dcmstack: init at 0.8 → https://git.io/Jv7qj
captjakk has quit [Read error: Connection reset by peer]
ddellacosta has quit [Quit: WeeChat 2.2]
ddellacosta has joined #nixos
__monty__ has quit [Quit: leaving]
<granra>
I'm converting attribute set into JSON in my nixos config using builtins.toJSON. I'd like to be able to use lib.mkAfter on a list that's in the attribute set elsewhere in the config and merge them together before converting it to json.
<granra>
but everytime I merge them together with just regular // the list becomes an attribute set with _type, content and priority.
<granra>
which I'm assuming is used by some function to merge them together.
jmeredith has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @athas opened pull request #83716 → futhark: build and install manpages → https://git.io/Jv7mb
<Athas>
I was worried adding manpages to the futhark package was going to be a nightmare, because no other Haskell packages seem to build them, but it ended up almost trivial.
<Athas>
My compliments to whoever designed the Hackage integration. It was very easy to inject custom steps.
<bqv[m]>
it's fine to use callPackage on things that aren't actually packages, right?
<bqv[m]>
just for the DI
knupfer has quit [Remote host closed the connection]
miscellaneousbus has quit [Quit: Textual IRC Client: www.textualapp.com]
<duairc>
I'm gonna leave it at that for tonight. I couldn't cope with all the regexes in the thing you sent me so I wrote a parser-combinator library in nix!
dyon[m] has quit [Read error: Connection timed out]
reallymemorable has joined #nixos
f0i[m] has joined #nixos
Victor[m] has joined #nixos
tek[m] has quit [Ping timeout: 246 seconds]
<infinisil>
Looks like you're a Haskeller!
exprez135[m] has joined #nixos
dyon[m] has joined #nixos
<infinisil>
Nice!
tek[m] has joined #nixos
<duairc>
Yep :P
<bqv[m]>
ahaha
<gchristensen>
oh no
<bqv[m]>
excellent
arturo[m] has quit [Ping timeout: 246 seconds]
Guest99913 has quit [Read error: Connection reset by peer]
philr has joined #nixos
Guest99913 has joined #nixos
Ox4A6F has quit [Read error: Connection timed out]
psiperator[m] has quit [Ping timeout: 246 seconds]
xensky has quit [Quit: No Ping reply in 180 seconds.]
<{^_^}>
nix#1491 (by taktoa, 2 years ago, open): Add an Earley parser builtin
xa0[m] has quit [Ping timeout: 246 seconds]
GerdFlaig[m] has quit [Ping timeout: 246 seconds]
edomfjp[m]1 has quit [Ping timeout: 246 seconds]
romildo has joined #nixos
edomfjp[m]1 has joined #nixos
arturo[m] has joined #nixos
flacks_ has quit [Ping timeout: 246 seconds]
reallymemorable has quit [Quit: reallymemorable]
wavirc22 has joined #nixos
blitzclone_ has quit [Read error: Connection timed out]
sleibrock[m] has quit [Ping timeout: 246 seconds]
Guest99913 has quit [Read error: Connection reset by peer]
cosimone has quit [Ping timeout: 256 seconds]
sehqlr[m] has quit [Ping timeout: 246 seconds]
sleibrock[m] has joined #nixos
Guest99913 has joined #nixos
edomfjp[m]1 has quit [Ping timeout: 246 seconds]
das-g[m] has quit [Ping timeout: 246 seconds]
<romildo>
What is the difference between using buildInputs and runtimeDependencies with autoPatchelfHook?
the_pumpkin_man[ has quit [Ping timeout: 246 seconds]
ksixty has quit [Ping timeout: 246 seconds]
<DigitalKiwi>
duairc: for your next trick are you going to add static typing
aquarial has quit [Ping timeout: 246 seconds]
<DigitalKiwi>
with type inference
<DigitalKiwi>
(also that's really cool what you did)
hiroshi[m] has joined #nixos
<duairc>
DigitalKiwi: lol
psiperator[m] has joined #nixos
<DigitalKiwi>
don't listen to gchristensen
noonereally[m] has quit [Ping timeout: 246 seconds]
Leira[m] has quit [Read error: Connection timed out]
blitzclone_ has joined #nixos
Leira[m] has joined #nixos
arturo[m] has quit [Ping timeout: 246 seconds]
<gchristensen>
:)
<DigitalKiwi>
he's just mad he has to write python
petersjt014[m] has quit [Ping timeout: 246 seconds]
jbbr[m] has quit [Ping timeout: 246 seconds]
M4cheese[m] has quit [Ping timeout: 246 seconds]
Ox4A6F has joined #nixos
petersjt014[m] has joined #nixos
xa0[m] has joined #nixos
GerdFlaig[m] has joined #nixos
<energizer>
if nix were written in python it could have static typing already :P
<duairc>
I won't add static types to nix, but the closest thing we have are the types in NixOS modules, and the reason I went down this rabbit hole was because I wanted to make an "ip address" type for a NixOS module I'm writing which, given an IP address, will automatically calculate the gateway and some other networky things for a the particular network that I'm deploying to
<DigitalKiwi>
speaking of anyone want to buy some stickers :D
noonereally[m] has joined #nixos
<gchristensen>
Nix isn't a general purpose programming language, so a hello world would be more like, building something which prints "hello world" to $out
kaychaks[m] has joined #nixos
<parsnip>
so bash or C are examples of canonical hello worlds?
<parsnip>
i mean, i haven't encountered many languages that can't do hello world themselves
<gchristensen>
I guess Nix is more pure than those other languages you've tried :)
<parsnip>
:)
alexfmpe[m] has joined #nixos
val2229[m] has joined #nixos
<infinisil>
I guess from that perspective, Nix is a bit like Haskell without IO
ambro718 has quit [Quit: Konversation terminated!]
<energizer>
it might be missing some other features too
<DigitalKiwi>
all of the jokes people made about haskell not being able to do IO apply to nix too don't they
<parsnip>
so then, if one wanted to do projecteuler with nix, you'd want like C or something to do IO?
<gchristensen>
or have the output be a build
<infinisil>
Oh yeah projecteuler is terrible for trying to learn Nix
<gchristensen>
yeah
<pittma>
I'm trying to build something with `buildRustPackage` where `src = "./.";`. I must not understand something here because it's tell me, during unpacking sources, that ./. and ./. are the same files.
codyopel has joined #nixos
jbbr[m] has joined #nixos
<parsnip>
granted
<gchristensen>
you could print to stderr
<pittma>
which, ha, yeah, they definitely are. But not sure why that is bad.
<parsnip>
stderr, build as output, these are all things i'm willing to look into
<gchristensen>
pittma: try src = ./.;
<infinisil>
pittma: Did you mean to do `src = ./.`?
iceypoi has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
<pittma>
ha
<pittma>
probably
WillW has joined #nixos
<DigitalKiwi>
could you make the program in a package and put it in a *Phase ?
<Profpatsch>
DigitalKiwi: on the contrary, I can give you a Haskell hello world: `nix-shell -p ghc --run 'runhaskell $(tmp=$(mktemp) && echo "main = putStrLn \"hello world\"" > $tmp && echo "$tmp")'` but I can’t give you a nix hello world
icey__ has quit [Ping timeout: 240 seconds]
fendor has quit [Quit: Leaving]
bvdw has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @davidak opened pull request #83726 → [20.03] Backport small doc improvements → https://git.io/Jv738
<Profpatsch>
hm, one could probably argue that nix-instantiate --eval -E '"hello world"' is a nix hello world.
<parsnip>
Profpatsch: i don't think they meant nix jokes apply to haskell, but the other way around
bvdw has joined #nixos
<pie_[bnc]>
parsnip:
* pie_[bnc]
rubs his hands together
<pie_[bnc]>
importNative
<Profpatsch>
STOP
<Profpatsch>
STOP RIGHT THERE
<pie_[bnc]>
AHAHAHAAHAHAHAHA
<parsnip>
is that like unsafePerformIO
<pie_[bnc]>
also uhh what was it
xelxebar has joined #nixos
* pie_[bnc]
scratches ead
<pie_[bnc]>
there was some invisible builtin
<bqv[m]>
Lmao
<DigitalKiwi>
Profpatsch: lol
* pie_[bnc]
brings little tidbits of evil
<bqv[m]>
Oh god
<bqv[m]>
what does importNative do, out of curiosity?
<{^_^}>
[nixpkgs] @Profpatsch merged pull request #79705 → skawarePackages: support static builds via pkgsStatic → https://git.io/JvcMQ
<{^_^}>
[nixpkgs] @Profpatsch pushed to master « skawarePackages: support static builds via pkgsStatic »: https://git.io/Jv73u
<parsnip>
awesome. nix-instantiate gets me off the ground.
<pie_[bnc]>
i keep forgetting the bot has some secrets like this
<parsnip>
pie_[bnc]: reminds me of how cabal cli is still improving
<parsnip>
new-install, etc
<bqv[m]>
Oh no
<gchristensen>
,forget exec
<pie_[bnc]>
>:D
<andi->
Why forget? It is such a great feature ;-)
<gchristensen>
,forget andi-
kleisli has quit [Remote host closed the connection]
<Profpatsch>
Well, nix with a different set of builtins is not nix anymore
<Profpatsch>
lol
<pie_[bnc]>
<gchristensen> why do you enjoy destruction
<andi->
now we lost our only piece of docuumentation on that
<Profpatsch>
LOL
<Profpatsch>
^ that
<pie_[bnc]>
andi- is now an undocumented builtin
kleisli has joined #nixos
<andi->
pie_[bnc]: I know.
mbrgm_ has joined #nixos
<parsnip>
can't you make a factoid of, "don't do any of these"
reallymemorable has joined #nixos
<Profpatsch>
also great nickname parsnip
<Profpatsch>
parsnip++
<{^_^}>
parsnip's karma got increased to 3
<bqv[m]>
Why is it there if not to be used?
<adisbladis>
I'd much rather have builtins.andi- than builtins.exec
<andi->
adisbladis++
<{^_^}>
adisbladis's karma got increased to 43
<Profpatsch>
adisbladis++
<{^_^}>
adisbladis's karma got increased to 44
<pie_[bnc]>
but think of the parser
<pie_[bnc]>
the poor poor parser
<parsnip>
thank you, it was one of several monikers i considered in my youth, for the simple trait of sounding a bit silly. a similar one was "spatula"
<parsnip>
my most significant contributions to programming are, doing a few euler problems in haskell, doing a few clrs problems in proofs and python, and writing a shitty ledger app in flutter.
<parsnip>
oh, and fighting people on #emacs
<gchristensen>
hey now don't violate one of the only rules of #emacs
<parsnip>
it puts the -Q on the cli or it gets the hose
<parsnip>
lol
<parsnip>
btw, do not ask me to install emacs on macos via nix.
<parsnip>
thar be dragons
<parsnip>
i swear it left ghosts
<parsnip>
so is this nix-instantiate --eval hello-world.nix just using the idea of builds as output?
<bqv[m]>
Pfft. I used to use emacs on windows
<bqv[m]>
Windows I tell you
<gchristensen>
nix-instantiate doesn't build anything, just evaluates to Nix primitives
kleisli has quit [Remote host closed the connection]
kleisli has joined #nixos
<parsnip>
okay, random conjecture. thank you.
jlv has joined #nixos
<parsnip>
i got as far as "nix-instantiate - instantiate store derivations from Nix expressions"
<avn>
Have a question, folks. Are possible to make shell.nix for package.json (npm?) based project using IFD for instant regeneration of package.json.nix?
<bqv[m]>
Hey if you really want output, try `print = builtins.abort`
<bqv[m]>
Warning: one time use only
<andi->
avn: IIRC node2nix (or another one of those?) supports OFD