<{^_^}>
[nixpkgs] @zimbatm pushed commit from @nlewo to master « nixos/dockerPreloader: preload docker images (#49379) »: https://git.io/fxp9h
<andi->
clever: no worries, just curious as mic linked it to me... Have you thought about spot instances yet? Haven't seen that yet while briefly looking at it
kreisys has quit [Read error: Connection reset by peer]
<clever>
andi-: i was using spot instances for all testing, and its currently hard-coded to only do spot, i plan to make it a nix option in the deployment file
<andi->
nice
<andi->
clever++
<{^_^}>
clever's karma got increased to 33
<Mic92>
clever++
<{^_^}>
clever's karma got increased to 34
<Mic92>
some more points until 42.
<hyperfekt>
oh you can do that?
<hyperfekt>
once for today and once for the first time you helped me :)
<hyperfekt>
clever++
<{^_^}>
clever's karma got increased to 35
<hyperfekt>
clever++
<{^_^}>
clever's karma got increased to 36
jcrben has quit [Quit: Ping timeout (120 seconds)]
jcrben has joined #nixos
<azazel>
clever: You were right... again!
<azazel>
thanks
<drakonis>
clever++
<{^_^}>
clever's karma got increased to 37
<ottidmes>
clever++
<{^_^}>
clever's karma got increased to 38
<drakonis>
clever girl
brodul has quit [Ping timeout: 272 seconds]
<rotaerk>
so how does this work? can he spend this karma and do something evil?
<clever>
Drakonis: i'm a dude :P
<azazel>
:-D
<drakonis>
never watched jurassic park?
<azazel>
drakonis: which episode?
Laalf has quit [Quit: No Ping reply in 180 seconds.]
<{^_^}>
[nixpkgs] @dywedir opened pull request #49661 → bat: fix build on darwin → https://git.io/fxpH8
<clever>
aleph-: and it uses pythonPackages as an arg, so you can mopidy = super.mopidy.override { pythonPackages = super.python3Packages; };
thc202 has quit [Ping timeout: 252 seconds]
<aleph->
Actually before I even do this, so reason I want to is from mopidy-scan failing to index files. Failing on a large number like such, "Failed local:track:30%20Seconds%20to%20Mars/30%20Seconds%20To%20Mars/01%20Capricorn%20%28A%20Brand%20New%20Name%29.mp3: gst-resource-error-quark: Could not open file "/media/Data/Audio/Music/>"
<aleph->
Which I figured could possible be an issue with unicode in file names from what I've been reading.
<aleph->
Not sure otherwise since it works fine with mpd and on an ubuntu machine,
<clever>
aleph-: i have a different python program, which runs a function to recursively list a directory, and it tries to parse every single filename as utf8
<clever>
and if any filename fails, it throws an exception, and doesnt tell you what file caused the problem
<clever>
so you must then spend hours looking over strace output to find out why, lol
<aleph->
Huh, well it's failing on a lotttttt of files.
<aleph->
Like 1000's
<aleph->
Curious if py3 which fixed unicode a wee bit might help
<aleph->
Since there's not much out there for nixos
<clever>
in my case, the exception isnt caught, and it unravels the stack hard enough to break my connection to the server
<clever>
and upon reconnecting, it tries to list the same dir, and fails again
xourt has quit [Quit: WeeChat 1.4]
<azazel>
maybe monkey patching builtins' open maybe a way to trace the file opening
ilikeheaps has quit [Ping timeout: 245 seconds]
iyzsong has joined #nixos
<azazel>
clever: also, if you can run the program by hand, entering post-mortem debugger when the exception its raised maybe the quickest way to trace which file gives you issues
<azazel>
s/its/is/
<clever>
azazel: syncplay tends to catch the exception though, and then resume things, so that may not work
ilikeheaps has joined #nixos
<aleph->
This wouldn't even be a problem if I din't want to use my google music from ncmpcpp
<azazel>
ncmpcpp?
<azazel>
hell of an acronym:-)
<Mic92>
worst name ever
<aleph->
Yeahhhhh
<aleph->
azazel: Terminal mpd client.
<azazel>
oh
<Mic92>
and the thing is ncmpc is also written in c++
<Mic92>
so the name does not even make sense anymore.
<azazel>
I'm still using SlimServer here... It seems the only one around to do a decent indexing of classical/jazz music
<aleph->
Okay might just be a timeout issue... fucking kidding me?
<{^_^}>
[nixpkgs] @Mic92 merged pull request #49661 → bat: fix build on darwin → https://git.io/fxpH8
<azazel>
oh, reiserfs is still in mount's man page
<azazel>
who would have thought that the fs would have such fate...
<aleph->
Man this is annoying.
<aleph->
Missing like 5000+ tracks
ilikeheaps has quit [Ping timeout: 240 seconds]
ilikeheaps has joined #nixos
<hyperfekt>
i did it. bcachefs encrypted root works on nixos now :D as always with nixos, the solution was much simpler than i had initially anticipated
<hyperfekt>
azazel: it's awesome because not only do you get native caching, you also get native encryption >with authentication<. and i think erasure coding is being finished up right now
<azazel>
nice
<hyperfekt>
(dm-crypt doesn't give authentication, so this (disregarding the lack of vetting) is basically the best full disk encryption in existence right now
<azazel>
what about activating encryption directly supported by the drive? never tried it
<ottidmes>
azazel: that is what I use
<ottidmes>
azazel: with sedutil
mayhewluke has quit [Ping timeout: 272 seconds]
<azazel>
ottidmes: ah, is sedutil available in nixos? Plus, did the "resume" issues that plagued such encryption have been resolved?
zack_moe_ has quit [Ping timeout: 252 seconds]
<ottidmes>
azazel: I will check, if not, I really should make a pull request
mayhewluke has joined #nixos
<azazel>
ottidmes: it is it seems, sedutil is in nixpkgs
<ottidmes>
azazel: no, that is a fundamental issue with how it works I believe
<azazel>
ottidmes: you are referring to the suspend/resume issues?
<azazel>
it seem quite a big issue to me, I couldn't live without suspend and resume
<ottidmes>
azazel: yes
<ottidmes>
azazel: ah now I remember, I believe only hibernate (full power off) is not working, because then your whole disk has to be reencrypted
<ottidmes>
azazel: you can workaround that also, but I am not sure what the status on that is
<hyperfekt>
azazel: Unless the drive uses a really weird sector size, i highly doubt that'll give you authentication. for that to work you need to store a bit of data (i think it's called an HMAC) with every piece of data you want to be able to individually decrypt (like a sector)
<ottidmes>
azazel: but I think I should still do a pull request at some point, because my sedutil package has a bit more, and I also have a bunch of useful sedutil scripts that make it a lot easier to work with
<ottidmes>
azazel: basically sedutil alone is quite low level, while my scripts do everything you are likely to do with sedutil without having to check the wiki every time :P
<azazel>
ottidmes: but from what I read, you just only need to use sedutil during the setup or if you want to change/remove the password
hakujin has quit [Quit: WeeChat 2.3]
<hyperfekt>
older versions of nixos suggested what packages provide a binary when it wasnt found, anyone know how to reenable that?
<ottidmes>
azazel: to lock/unlock the drive, to enable/disable drive encryption, to set the PBA (Pre Boot Authorization, basically a small partition that is there when it is locked, to allow you to unlock) and to set/change the password
<azazel>
hyperfekt: mine still does that
aristid has quit [Ping timeout: 252 seconds]
<azazel>
hyperfekt: it uses the command-not-found package (from what my shell) says.. realy?
<hyperfekt>
hmm, i get an error 'unable to open database' when i run command-not-found. maybe it's broken
<clever>
hyperfekt: are you using nix-channel and one of the proper channels?
<hyperfekt>
no, i'm on unstable. from your question i assume that's a requirement for it to work?
jperras has quit [Ping timeout: 268 seconds]
<ottidmes>
hyperfekt: it depends on how you have setup your NixOS, if you use channels, then it should work, but just use my own nixpkgs repo, so I too get:
<ottidmes>
cannot open database `/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite' at /run/current-system/sw/bin/command-not-found line 13.
<clever>
hyperfekt: command-not-found uses a database in the channel
<clever>
ottidmes: programs.sqlite is the older command-not-found system
<hyperfekt>
i mean, i made an installer from an unstable fork. i'll switch to the channel and check if it works
<clever>
ah, the new one is also using programs.sqlite
<hyperfekt>
clever: it's uncanny how you know the answer to every problem ^-^'
<ottidmes>
clever: I just ran command-not-found in my shell, so internally it now uses something else?
<clever>
-r--r--r-- 1 root root 3.3M Dec 31 1969 /nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite
<hyperfekt>
clever++
<{^_^}>
clever's karma got increased to 39
<clever>
ottidmes: you need a channel called nixos, on the root user, that came from nixos.org
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ottidmes>
clever: I know, that is why it is not working for me, but I have other tools to help if I dont know which package has some missing binary
fendor_ has quit [Remote host closed the connection]
<clever>
ottidmes: you can also use nix-index and nix-locate directly to update your own db
<ottidmes>
how does one use rustPlatform from nightly, I tried just adding latest.rustChannels.nightly.rust to my systemPackages, but it does not seem to have effect, how do I use the nightly rustPlatform?
fendor_ has joined #nixos
<ottidmes>
clever: yep, those are the other tools I meant
<ottidmes>
clever: but you mean I can learn command-not-found to use my own db?
<ottidmes>
or whatever mechanism is used now
<clever>
last i looked, command-not-found has that path hard-coded
<clever>
11 my $dbPath = "/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite";
<clever>
still is
jperras has joined #nixos
<ottidmes>
clever: but if nix-index can build a valid programs.sqlite, I could just create said path and put it there if need be, or patch command-not-found
<ottidmes>
clever: if it still just calls command-not-found, it might be easier to just overlay it with one that uses nix-locate
<clever>
ottidmes: yeah, thats always an option
<clever>
just call nix-locate bin/$1
Mr_Keyser_Soze has quit [Ping timeout: 268 seconds]
Ariakenom has quit [Quit: Leaving]
erictapen has quit [Ping timeout: 272 seconds]
ilikeheaps has joined #nixos
nD5Xjz has quit [Ping timeout: 252 seconds]
teto has quit [Ping timeout: 246 seconds]
mvnetbiz has quit [Ping timeout: 252 seconds]
Mr_Keyser_Soze has joined #nixos
hamishmack has joined #nixos
nD5Xjz has joined #nixos
<ottidmes>
clever: (hiPrio (pkgs.writeShBin "command-not-found" ''exec ${pkgs.nix-index}/bin/nix-locate /bin/"$1"'')) this works, but I am not sure when it should be run, because I just get "command not found" whenever I try something
<clever>
ottidmes: is that in nix-env or systemPackages?
<__red__>
So, I'm a little confused by something in the nix manual.
ilikeheaps has quit [Ping timeout: 268 seconds]
<ottidmes>
clever: systemPackages, and you might need writeScriptBin instead of my writeShBin
<__red__>
If I want to edit nix.conf to change the number of cores, /etc/nix/nix.conf is a symlink to /etc/static/nix/nix.conf
<__red__>
which is linked into the nix store
<clever>
ottidmes: double-check what is in /run/current-system/sw/bin/command-not-found, and try lib.mkBefore, rather then hiPrio
<clever>
ottidmes: i think hiPrio only works on nix-env, and has no impact on systemPackages
<ottidmes>
clever: no its there, I just did not copy it
<ottidmes>
clever: #!/bin/sh
<clever>
ottidmes: and if you manually run nix-locate /bin/hello, it finds something?
<ottidmes>
clever: yes
<ottidmes>
clever: if I manually run command-not-found hello it works too
<clever>
ottidmes: aha, `type command_not_found_handle`, run that
<ottidmes>
clever: that is why I was wondering, what is triggering it, I thought maybe because I was using zsh it did not work, but in bash I dont see anything either
ilikeheaps has joined #nixos
<ottidmes>
clever: thats it
<clever>
ottidmes: the real thing doing the job, is the bash function command_not_found_handle, which has a full storepath baked into it
<ottidmes>
clever: thats useful indeed, had to figure that out initially, but now that I have quite a lot of config, I tend to just look at my previous uses so I can infer it from that (which particular shell attr to use)
<samueldr>
my command_not_found_handle is defined in my definitely-not-nix-managed bash profile, and the command-not-found command is `nix-env --install`ed from a private repo with WIP script :/ though the handle alias should be safe to use as long as `command-not-found` is eventually available in PATH
<clever>
samueldr: heh, need to switch over to something like environment.interactiveShellInit!
<__red__>
weird
<__red__>
the installPhase fails, but if I use make install it succeeds
<samueldr>
slowly moving towards something like that, where everything will be in the system... it's hard to break the mold from >10y of use
<__red__>
guess I have more reading up to do on the installPhase
<clever>
__red__: the default installPhase calls `make install` witl a lot more params
<__red__>
I guess it's one of the params that's causing the issue
<ottidmes>
to use [ over [[, I just use [[ everywhere except in those that need to be /bin/sh compatible
<samueldr>
ottidmes: haven't validated, but doesn't `[[` not handle file checks?
<samueldr>
hm no, it should (according to help)
<samueldr>
guess there's not much reasons, except to not use bashism
<__red__>
btw, the mac osx builds that are integrated into github - are those also done on a hydra server or is there a different way to test it
<__red__>
or cross-compiled even?
<ottidmes>
samueldr: as soon as your scripts starts to become somewhat involved, you will not be compatible anymore anyway, so I try to just stick with bashim when I can, and clearly state I am using bash
<clever>
__red__: there arent really any good cross-compile options for targeting darwin right now
<samueldr>
ottidmes: exactly, as long as you make it "clear" that it's not posix sh compliant, it isn't an issue imho :)
<ottidmes>
samueldr: So I use /bin/sh style only at places like when you only have /bin/ash (some pre boot script), /usr/bin/env bash everywhere else, and zsh as my goto shell :P (bash is almost the default when searching about scripts)
<__red__>
since I'm compiling up a cross-compiler for another platform trying to cross-compile it to a third platform sounds a little inception-esque for me ;-)
silver has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/fxpFC
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
Synthetica has quit [Quit: Connection closed for inactivity]
<ottidmes>
feep: wineStaging, sqliteInteractive, sqlite, and sage
dbmikus has joined #nixos
<ottidmes>
feep: so I would go with sqlite
annadane has joined #nixos
<feep>
nm worked it out
<feep>
thanks
<annadane>
hi, about how long is the stable release cycle?
dbmikus has quit [Client Quit]
dbmikus has joined #nixos
<hyperfekt>
is there any way as part of nix or the stdlib to condition multiple (but not all) definitions on one mkIf?
<ottidmes>
annadane: every half year a stable release is made, most safe things will be backported to stable though
<infinisil>
hyperfekt: Like?
<ottidmes>
hyperfekt: you mean config = mkIf ... { ... } ?
<annadane>
ottidmes, does it follow a "when it's ready" approach or set date, judging from a quick glance through the manual it looks so far to be set date
<infinisil>
hyperfekt: Can do it like this too: `{ lib, ... }: lib.mkIf (...) { ... }`
<infinisil>
Or if you need to have unconditioned things too:
<ottidmes>
annadane: set date for when it it supposed to be ready, but its not a hard deadline, they try to make the release as good as possible, so they rather wait a bit longer for a release and fix remaining problems, than holding to the date
<hyperfekt>
infinisil: That's exactly what I was looking for, thanks :)
annadane has left #nixos ["Leaving"]
<ottidmes>
annadane: in general its best to wait a month or so after the set date to update to the next stable, than its likely everything has updated to point to that version (documentation and prebuilt images and such), but that has just been my experience
<drakonis>
annadane left hmm
<drakonis>
maybe you should direct your messages to them
<ottidmes>
Drakonis: good point :P hate it when that happens, had it happen to me a few time after making a package for someone...
<drakonis>
ha
<drakonis>
annadane is still on the network
<drakonis>
wait no
<drakonis>
sorry about that
<ottidmes>
Drakonis: ah well, maybe someone googles this particular questions, and finds this log, so it might still be useful. I have been able to answer some of my questions that way in the past
<drakonis>
they'll be back and i'll refer to the messages
<drakonis>
whenevver they're on oftc again
<infinisil>
,tell
<{^_^}>
infinisil: Use `,tell john Remember to do the laundry` to send this to john next time he's talking in this channel
<hyperfekt>
infinisil++
<{^_^}>
infinisil's karma got increased to 32
<drakonis>
infinisil++
<{^_^}>
infinisil's karma got increased to 33
<drakonis>
love that command
<infinisil>
tell? It's not too useful because it can't send the message when the person joins, it has to receive a message
<infinisil>
(yet)
<ottidmes>
anyone know how to use rustPlatform of rust nightly? I have the nixpkgs mozilla overlay installed
dbmikus has quit [Read error: Connection reset by peer]
sigmundv has quit [Ping timeout: 246 seconds]
georges has joined #nixos
<{^_^}>
[nixpkgs] @benley opened pull request #49668 → stern: Include bash & zsh completion support → https://git.io/fxpbY
dbmikus has joined #nixos
Mr_Keyser_Soze has quit [Ping timeout: 240 seconds]
Mr_Keyser_Soze has joined #nixos
dramforever has joined #nixos
hellrazor has joined #nixos
dbmikus has quit [Quit: WeeChat 2.3]
dbmikus has joined #nixos
hellrazo1 has quit [Ping timeout: 268 seconds]
ottidmes has left #nixos ["WeeChat 2.2"]
nD5Xjz has quit [Ping timeout: 240 seconds]
dramforever has quit [Ping timeout: 256 seconds]
Mr_Keyser_Soze has quit [Ping timeout: 272 seconds]
fendor_ has quit [Read error: Connection reset by peer]
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
ilikeheaps has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @hyperfekt opened pull request #49671 → bcachefs root support → https://git.io/fxpxp
jsgrant- has joined #nixos
jD91mZM2 has joined #nixos
zack_moe has joined #nixos
<hyperfekt>
here we go :D it's rather minimal, but should suffice for the most common scenario. this is the first 'real' PR that i've ever made :)
jbgi has joined #nixos
<hyper_ch>
bcachefs has integrated encryption?
jbgi has quit [Ping timeout: 252 seconds]
<hyperfekt>
hyper_ch: yep. it's pretty cool because you get authentication, which schemes like dm_crypt can't do
<hyper_ch>
hyperfekt: I use native root encryption on zfs
<hyperfekt>
does that use a block layer? since zfs uses blocks instead of extents i don't think they have something like bcachefs, right?
<hyper_ch>
no idea where the difference is
aleph- has quit [Ping timeout: 245 seconds]
ddellacosta has quit [Remote host closed the connection]
<hyperfekt>
hyper_ch: basically with your encryption a sufficiently advanced adversary could shuffle parts of your filesystem around, or do chosen-ciphertext attacks
<hyperfekt>
it's not great, but so far it was the best we had
* colemickens
is trying to read up on authentication in encrpytion
<colemickens>
Are either of you running a / on bcachefs?
<hyper_ch>
couldn't I just shuffle tings around with DD anyway?
<hyperfekt>
okay, it doesn't have plausible deniability yet :b
<hyperfekt>
well, you could still shuffle them around, but bcachefs would notice if you replaced ls with a payload in that untrusted pdf you made me download
<hyperfekt>
colemickens: yes, I am :)
<colemickens>
I am trying to figure out if I can get my root partition moved over w/o getting out of bed :)
<hyper_ch>
zfs would also notice that things got shuffled around
<hyper_ch>
colemickens: hire 10 indian programmers to move it over
<elvishjerricco>
I'm pretty sure that ZFS even ensures that identical blocks are unidentifiable to an attacker (unless you have dedup on, in which case that info is leaked elsewhere).
<colemickens>
ha, I used LVM so I might have a shot
<elvishjerricco>
(which is dumb. ZFS's native encryption is unforunately leaky)
<hyper_ch>
I never liked lvm much
<hyperfekt>
hyper_ch: not if i change the checksums along with it ;) it's definitely hard and more of a theoretical property rather than something available in exploit kits (today), but the cryptographers aren't making this stuff up because they're bored
<colemickens>
I didn't either until I needed to do what I'm doing now :)
<hyperfekt>
oh, i was assuming a block layer. i don't know much about zsf' encryption
<elvishjerricco>
Yea I don't know the implementation details, but the acronym MAC comes to mind.
<hyper_ch>
elvishjerricco: how is zfs's encryption leaky?
<hyper_ch>
colemickens: what are you doing now?
<colemickens>
er, for some reason I thought LVM helped with online resize, but I guess it doesn't change the fact that ext4 isn't going to allow it.
<colemickens>
In retrospect, I don't remember why I used LVM here :S
<hyper_ch>
ext4 can be resized
<elvishjerricco>
hyper_ch: It leaks 100% of the pool structure, which includes dataset hierarchy and names, dedupe tables, and file sizes.
<hyper_ch>
elvishjerricco: ah ok
<elvishjerricco>
This is because they wanted to support using encryption on only some of your datasets, and encrypting the sub-pool-structure would have required a massive re-engineering of the pool structure
<hyperfekt>
I looked it up, looks like ZFS uses a similar scheme as bcachefs, that does authentication as well. Nice!
<elvishjerricco>
hyperfekt: There was a talk given about it somewhere... Like an hour of detailed info that went over my head :P
<elvishjerricco>
Still, I'm not a fan because of the leaky pool structure. I'm sticking to ZFS over LUKS, since Grub can read that stuff and /boot can sit in my ZFS pool.
<hyper_ch>
I love native zfs encryption
<jasongrossman>
elvishjerricco: ZFS leaks file sizes?! That's the first thing I've heard that's worrying from the point of view of real-world compromises.
<elvishjerricco>
jasongrossman: I'm not sure how precise it is. The manual doesn't specify. Could be exact file sizes or just the number of blocks used.
<elvishjerricco>
Still bad, but slightly less bad if it's just number of blocks
<jasongrossman>
elvishjerricco: Hm. Number of blocks is not so obviously worrying. Right.
<hyper_ch>
and what if you have compression enabled?
<hyper_ch>
what is reported then?
<elvishjerricco>
The dedupe table thing is the part that frustrates me the most. Like that's an actually enormous leak. And I know dedupe is discouraged for most people anyway, but still
<elvishjerricco>
hyper_ch: No clue how ZFS's compression works TBH :P
<hyper_ch>
it works by adding compression=xxx when creating a dataset or inheriting it from a parent dataset :)
<elvishjerricco>
Heh yea I've got 2x compression ratio on all my machines. Freakin miracle stuff.
<hyper_ch>
lz4?
<jasongrossman>
hyper_ch: Made me laugh. :-) (Which is a sign that this should all be on nixos-chat.)
<elvishjerricco>
I just used the default. Don't remember which that was
<hyper_ch>
I think setting it to on will use lz4
<elvishjerricco>
I switched my desktop over to ZFS tonight with compression enabled, and followed up with `nix-store --optimise` for the first time ever. Lowered my disk usage by 65%
<hyper_ch>
especially on SSDs its nice to free up space
a_ has joined #nixos
<hyper_ch>
actuall with switch from ext4 to zfs it freed up double because of the default 5% reservation for root
<hyperfekt>
compression is really cool. i think bcachefs can even use different algorithms on your cache and your main device, recompressing more strongly in the background. perfect with the decryption speeds lz4 offers
<{^_^}>
[nixpkgs] @aszlig pushed to master « autoPatchelfHook: Correctly detect PIE binaries »: https://git.io/fxpp1
<elvishjerricco>
hyperfekt: I thought bcachefs didn't actually support getting more space out of its compression yet? Like I know it has a feature called "compression," but the homepage says you won't actually get to store more data with it.
<emily>
good feature
<hyperfekt>
True, the accounting isn't quite there yet, because it's somewhat complicated to do in a way that doesn't just work, but is optimal.
<hyper_ch>
"Not quite finished - it's safe to enable, but there's some work left related to copy GC before we can enable free space accounting based on compressed size: right now, enabling compression won't actually let you store any more data in your filesystem than if the data was uncompressed"
jsgrant- has quit [Remote host closed the connection]
jbgi has joined #nixos
<hyperfekt>
colemickens: Nonexistent, and it's gonna take a considerable while and a diskformat change until we get them. My only real gripe :/
<colemickens>
Okay. I figure I don't have them anyway, so I can't really resist for that reason.
<hyperfekt>
Kent is working on that filesystem alone, so you can't expect any miracles. I hope that changes soon.
<colemickens>
Yeah, I read through some docs and the Patreon page. Sometimes it's surprising to me how few people it takes to move the needle on important things even like an FS for Linux.
<colemickens>
No doubt that much of that is due to Kent's talent, but still.
<colemickens>
Wish Facebook would throw some money at him, like they did the BTRFS author(s)
erictapen has joined #nixos
<hyperfekt>
Yeah, I cannot grasp how there is almost no investment on the most basic parts of the most important software ecosystem in the world.
<nschoe>
I have been reading a lot of nix,nixOS-related stuff these last couple of weeks, and I just wanted to say that the nix-pills helped _a lot_ to clarify some shadowy spots. So thanks again fro writing them, it's awesome :)
jbgi has quit [Ping timeout: 250 seconds]
srhb has quit [Remote host closed the connection]
crmlt_ has joined #nixos
crmlt_ has left #nixos [#nixos]
<{^_^}>
[nixpkgs] @peti merged pull request #49674 → haskellPackages.sdl2: test-suite needs x server, so deactivate it → https://git.io/fxpj1
<GiGa>
I'll be honest, I don't entirely understand what's caused it (I suspect a change in the BSDDB3 package, or in Python) - has anyone any advice on how to resolve please?
srhb has joined #nixos
<FRidh>
GiGa: yep, seems like you found a regression (caused by 45323efb5544114ea390c5fc9174c41dfb803d5c)
Thra11 has quit [Ping timeout: 268 seconds]
srhb has quit [Client Quit]
vk3wtf has quit [Ping timeout: 264 seconds]
<GiGa>
FRidh: OK, anything I can do to help (with an experience level of "novice")?
<{^_^}>
[nixpkgs] @FRidh pushed to master « python.pkgs.bsddb3: enable python3 and tests »: https://git.io/fxhUE
<GiGa>
FRidh: OK, so I need to take my local checkout of nixpkgs, rebase it on to origin/master and then tell somehow use that?
noam has joined #nixos
<GiGa>
Or just wait for master to come to unstable channel?
<johanot>
nix eval -f file.nix someattr <- will give me the value of "someattr" from "file.nix" given that file.nix returns an attrset. Question: Is there a way to return the root attrset of file.nix? The second arg to nix eval doesn't seem to be optional.
<GiGa>
I'm not desparate to upgrade today, just wanting to help if I can
<lassulus>
chris|: I haven't looked into it to be honest, just travelled a couple hundred km and attended a party
<FRidh>
GiGa: if you're in no hurry, you can wait. Otherwise, you can point to a checkout of the repo or a tarball. How, depends on how you use nixpkgs.
<GiGa>
FRidh: I think given my experience level waiting is best then. Thanks
<GiGa>
Although I can see an issue that suggests unstable hasn't been updated in two weeks
<{^_^}>
[nixpkgs] @FRidh pushed 612 commits to staging-next: https://git.io/fxhUS
<elvishjerricco>
Trying to upgrade to NixOS 18.09 on my desktop that I deploy with NixOps (`targetHost = "localhost";`), and I'm getting an error I can't track down:
<elvishjerricco>
`error: assertion failed at /nix/store/r63y7cyalmh3vfn0bd222zacajrh6611-source/pkgs/top-level/impure.nix:80:1`
<{^_^}>
jeaye/nixos-in-place#41 (by nh2, 28 weeks ago, open): Instructions on how to use this to make a Hetzner Cloud snapshot (includes moving /old-root/nixos to /)
<tilpner>
elvishjerricco - Something is instantiating nixpkgs improperly. I would expect that task to fall into nixops' area of responsibility
<elvishjerricco>
tilpner: Could be any of the NixOS modules setting `config.nixpkgs.system`, `config.nixpkgs.localSystem`, or `config.nixpkgs.platform`. Might be NixOps, but could be anything
<tilpner>
Oh, I'm not sure of course. Just saying to not rule out nixops yet
srhb has joined #nixos
jasongrossman has joined #nixos
jbgi has quit [Quit: WeeChat 2.2]
<hlolli>
LOL, there's a Nixos image on hetzner: An ISO Image is mounted: "NixOS 18.03 (amd64/graphical)". Just pressed boot image, and rebooot, and now I can't connect hahaha.
<tilpner>
hlolli - Can't connect? Try the web console?
<steveeJ>
rycee: what's the sorting for the hm activation scripts? is there any way I can way I can run something before `Activating checkLinkTargets`?
<hlolli>
tilpner: I'll look for a web console. Worst case, boot ubuntu again and do the NixOps trick.
<tilpner>
hlolli - I was going to suggest Vultr, DigitalOcean and Hetzner as cheap NixOS-compatible hosts, but they didn't really fulfill your no-manual-action requirement
<elvishjerricco>
steveeJ: Hey, the only google result for my problem is an IRC message from you on here back in June :P Any chance you remember how to fix `error: assertion failed at /nix/store/r63y7cyalmh3vfn0bd222zacajrh6611-source/pkgs/top-level/impure.nix:80:1`?
<hlolli>
yes, it seems easier that I imagined. Just short on time, need to move one website between hosts. Thanks still tilpner!
Theuni2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jasongrossman>
hlolli: RamNode has a NixOS ISO - you have to run the installer to get it installed, though. RamNode's cheap, and I've found it well run.
<hlolli>
nice, already swaped my credit card. Hetzner has a NixosISO, and I'm inside the webconsole, and it works! Just need to enable ssh service and I should be in trough my terminal.
<rycee>
elvishjerricco (IRC): Yeah, I believe it is pretty much exactly the same.
srhb has joined #nixos
<steveeJ>
rycee: thanks to your help I can now use home-manager to configure my system's nix-channels by setting up home-manager for root in configuration.nix :D
<hyperfekt>
I've made two pull requests, is there anything else I need to do to direct the attention of the right person to them or is it just a matter of waiting until someone gets to it?
<rycee>
steveeJ (IRC): Cool :-)
Travankor_ has joined #nixos
Travankor_ has quit [Client Quit]
Theuni2 has joined #nixos
vidbina has joined #nixos
<{^_^}>
[nixpkgs] @srhb opened pull request #49692 → nixos/google-network-daemon: systemd job type simple instead of oneshot → https://git.io/fxhto
ThatDocsLady has joined #nixos
Theuni2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lukego>
How can a NixOS module declare that a certain additional kernel patch should be applied, such that it plays nice with other modules and nixos config done elsewhere?
<WilliamHamilton[>
a question about haskell packaging: I want to patch a package in `pkgs/development/haskell-modules/hackage-packages.nix` so that it uses the latest source in a github repo instead of the hackage version. What would be the best way to do that?
<clever>
WilliamHamilton[: you can first try callHackage, if the version happens to be in the db
<lukego>
clever: Is there an example where a NixOS module adds an entry to boot.kernelPatches in such a way that it won't collide with other setup somehow?
<clever>
lukego: that option is a list type, so it will merge with all other values automatically
<WilliamHamilton[>
clever: duly noted, thanks, I'm sure I'll want this at some point; what should I do instead if the source is not on hackage, but on a git repo? Is there an equivalent pattern?
<clever>
WilliamHamilton[: either run cabal2nix on that repo (either url or ./.) and then haskellPackages.callPackage it, or use `haskellPackages.callCabal2nix "name" (pkgs.fetchFromGithub { ... }) {}`
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @jqueiroz to master « pythonPackages.fastpbkdf2: init at 0.2 (#47988) »: https://git.io/fxhqE
astrofog has joined #nixos
orivej has joined #nixos
zolk3ri has quit [Quit: Lost terminal]
ThatDocsLady has quit [Ping timeout: 252 seconds]
<steveeJ>
hyperfekt: if you changed a package with maintainers listed they'll be pinged on github
endformationage has joined #nixos
justanotheruser has quit [Ping timeout: 264 seconds]
<WilliamHamilton[>
clever: thanks; follow up: https://pastebin.com/kKPe6WC5 is the Agda definition in the haskell packages. Can I modify this structure in the way you indicated (callCabal2nix "name" (fetchFromGithub ...)) keeping the `postinstall` part? In other words, how does this mix with the callPackage and mkDerivation functions there?
<clever>
WilliamHamilton[: cabal2nix will return a nix file containing mkDerivation
<clever>
WilliamHamilton[: callPackage and callCabal2nix will then import that with the right args
<nh2>
arianvp: I really cannot help but think that some things in systemd are just bugged. Randomly, my timer no longer starts the service. It says the timer is `active (elapsed)`, but PASSED is now `n/a` and it hasn't started the cdn-rsync.service for the last 15 hours.
<clever>
nh2: can you pastebin the output of `systemctl list-timers` ?
Mr_Keyser_Soze99 has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @zimbatm merged pull request #49692 → nixos/google-network-daemon: systemd job type simple instead of oneshot → https://git.io/fxhto
<{^_^}>
[nixpkgs] @zimbatm pushed commit from @srhb to master « nixos/google-network-daemon: systemd job type simple instead of oneshot (#49692) »: https://git.io/fxhYx
<clever>
nh2: i usually see a OnCalendar= in the timer files, so this one likely behaves differently then what i'm used to
<nh2>
clever: the odd thing is that this timer worked fine before. arianvp and me did some debugging on switch-to-configuration not correctly bringing up the new ExecStart; I wrote a script to automate a nixops deploy for it. It ran fine for the first 4 hours. But now for the last 15 hours, the timer doesn't start the service any more
<clever>
nh2: might it be related to the rsync failing due to an error?
<clever>
systemd can be configured to not restart things when they fail due to an error, rather then exiting with 0
<nh2>
unlikely, the 400 times the script ran before, each time the rsync failed as well
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @fadenb to master « shutter: 0.94 -> 0.94.2 (#49546) »: https://git.io/fxh3S
cfricke has joined #nixos
lukego_ has joined #nixos
<{^_^}>
[nixpkgs] @c0bw3b opened pull request #49697 → [18.09] ansible: 2.5.2 -> 2.5.11 and 2.6.2 -> 2.6.7 → https://git.io/fxhsU
lukego_ has left #nixos [#nixos]
lukego_ has joined #nixos
acarrico has joined #nixos
<lukego_>
I added 'boot.kernelPatches' to my NixOS module but I'm not convinced that it's actually been applied. Is there an easy way to check? e.g. to see the build dependencies of the currently running kernel?
Itkovian has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @vcunat pushed 3 commits to release-18.09: https://git.io/fxhsY
<symphorien>
if you run nix show-derivation /nix/store/thederivationofthekernel.drv you should see your patch, I imagine
jtojnar has quit [Remote host closed the connection]
<lukego_>
Thanks. How do I identify the derivation for the running kernel?
stepcut has quit []
<symphorien>
looking at the output of nixos-rebuild ?
<gchristensen>
something has broken my audio independent of changes to nixos. I've rolled back to a copy from a month ago and it is still broken.
<gchristensen>
speakers work, but when I plugged in my headphones, no sound comes out. the speakers auto-mute and my headphones are detected. the equalizer is flat.
<gchristensen>
any ... uh... ideas?
<hyper_ch>
pulseaudio issue? check the devices settings and order maybe
fendor has quit [Quit: Leaving]
<gchristensen>
any nice gui tools for that? I usually use pavucontrol
<hyper_ch>
kde has it in systemsettings
<hyper_ch>
I think
<{^_^}>
[nixpkgs] @edwtjo pushed to master « x11basic: init at 1.26 »: https://git.io/fxhZG
<hyper_ch>
I think rss2email is broken
kp__ has joined #nixos
<gchristensen>
hyper_ch: do you have kde?
<hyper_ch>
gchristensen: I do
<gchristensen>
what is the cli program to start systemsettings?
<hyper_ch>
no idea :)
<gchristensen>
:) anything obvious starting with ktabtab?:)
<hyper_ch>
systemsettings5
<gchristensen>
nice, thank you!
<hyper_ch>
good luck
<gchristensen>
The program ‘systemsettings5’ is currently not installed. You can install it by typing: nix-env -iA nixos.plasma5.systemsettings .... nix-shell -p nixos.plasma5.systemsettings -> error: value is a function while a set was expected, at (string):1:94 :')
<clever>
gchristensen: try flipping each of the mute flags in pavucontrol?
<clever>
gchristensen: nix-env takes channel names (nixos.) but nix-shell doesnt
<gchristensen>
oh yeah, haha, blinded by ... something
<clever>
hyperfekt: this line will likely cause problems
<clever>
hyperfekt: its best to use a kernel package from config.boot.kernelPackages, which has to be added to the right region of all-packages.nix, or it will wind up being of the wrong kernel version
<clever>
everything else looks great
<gchristensen>
the : stuff feels weird I think
<clever>
hyperfekt: oh wait, no, misread that nvm
<clever>
hyperfekt: thats changing out the entire kernel package set, and the kernel version
<clever>
hyperfekt: yeah, i see it now, its using a fork of the linux kernel, with the BCACHEFS_FS flag enabled
<infinisil>
> :v nixos
hotfuzz has quit [Read error: Connection reset by peer]
<infinisil>
You can reassign nixosConfig to test some config, the `nixos` value will use the updated value
hotfuzz has joined #nixos
<hyperfekt>
gchristensen: do you mean it's existence at all, or the way it is handled in nixos? for the former, i don't see a way around it beyond maintaining a fork of bcachefs :/
<gchristensen>
huh?
<clever>
hyperfekt: if the source was kept as an external module, it could be built on any kernel version
<rnhmjoj[m]>
do you know why shells spawned by ranger have python, file and setuptools in the PATH? it's a bit of an issue because it shadows my python installation with the library i need.
<averell>
if i add a beta version of an existing package, what do i put in the maintainers field?
<gchristensen>
averell: presumably you :)
<averell>
only? and does that mean i have to get myself added?
<hyperfekt>
gchristensen: I see. The alternative would be reworking stage-1-init.sh to receive a list of devices separately in addition to the list of mounts.
drakonis has joined #nixos
<nh2>
clever: how did it end up with the .xz nix signature problem at nixcon?
<hyperfekt>
clever: I'm not really experienced at all with kernel development, there's definitely a lot of changes in the kernel as far as I have read. What of that qualifies as the 'internals' you refer to, I'm unsure.
drakonis_ has quit [Ping timeout: 252 seconds]
<clever>
nh2: i narrowed the bisect down to a certain region of commits, then entirely forgot about it! lol
<nh2>
clever: I think you should first file the issue so that we can coordinate it there, I'm sure dtz also wants to read about it
<clever>
nh2: sure
kp__ has joined #nixos
<roberth>
infinisil: that clears things up, thanks!
<clever>
and it could also be a smaller file for faster repro, it just needs to be a url ending in .xz
drakonis_ has joined #nixos
vidbina_ has joined #nixos
agander has joined #nixos
<nh2>
that bisection range is somewhere upwards of nix 2.1, right?
<clever>
the first good commit is on 2.1.3, as is the first bad commit
<clever>
so i would expect 2.1.3 and master to be broken
ivegotasthma has joined #nixos
<srhb>
globin: flokli: Hey guys. Did you manage to test migrations on the gitlab changes?
kp__ has quit [Ping timeout: 272 seconds]
<ivegotasthma>
hello, I just finished setting up nixos the way I want it. I want to ask if I should use home manager to create a completely stateless system, from a config standpoint. Will I be able to remove unused ~ configuration files with home-manager?
<nh2>
clever: I'll put that info in the issue, as that's probably what people will google
<clever>
nh2++
<{^_^}>
nh2's karma got increased to 2
<WilliamHamilton[>
what's wrong with this invocation in the nix repl?
<{^_^}>
[nixpkgs] @roberth pushed to roberth-patch-1 « rabbitmq module: Update documentation after proofreading »: https://git.io/fxhCi
ddellacosta has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @roberth pushed to roberth-patch-1 « rabbitmq module: Update documentation after proofreading »: https://git.io/fxhC1
<WilliamHamilton[>
also, is there a function to convert from json to nix syntax for this cases or it is commonly done manually?
<clever>
WilliamHamilton[: builtins.fromJSON
<WilliamHamilton[>
clever: thanks
Thra11 has joined #nixos
<WilliamHamilton[>
how would I call nix-prefetch-github in the nix repl?
<clever>
,tofu WilliamHamilton[
<{^_^}>
WilliamHamilton[: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<WilliamHamilton[>
so, you're saying i should not use nix-prefetch-github in the repl because I can use 0000?
<clever>
you can either use it in a normal shell, or just use the wrong hash in a nix repl
<ottidmes>
if a package has a default config, should I put it in $out/share? or what is best practice in that regard? I have a matching service module for it which supplies the real config to be placed in /etc
<WilliamHamilton[>
clever: thanks, I'm almost done, now if I write
<WilliamHamilton[>
I'm still missing something. callPackage?
<catern>
you know, git and nix seem quite similar to me
mayhewluke has joined #nixos
<hyper_ch>
both feature the letter "i" in the middle
<catern>
in both cases people complain about the UI being "bad", but my opinion is just that the UI requires an investment of effort and after that is actually really good, and both of them are really supremely powerful
<clever>
WilliamHamilton[: callCabal2nix handles the callPackage for you
<WilliamHamilton[>
so why does that invocation say `error: undefined variable 'Agda' at (string):1:151`?
<clever>
WilliamHamilton[: you have doublequotes inside doublequotes
<clever>
WilliamHamilton[: so the command turned into this
<clever>
singlequotes on the outside is the simplest solution
<elvishjerricco>
How do you build emacs packages locally? In 18.03 I used melpaBuild and set `recipeFile = null`. But now I HAVE to provide a `recipe` arg, and I don't know what to put in there.
<flokli>
srhb: I didn't use the gitlab module for now, as tests failed. I could give it a try, migrating from an older Debian omnibus installation (although that might not count). I think globin and fpletz have a gitlab around, where we could dogfood it with the changes :-)
<srhb>
flokli: Ah. I'm asking since the changes seem to break migrations for me on master, so I'm worrying that the changes were merged _very fast_ into 18.09 and will break peoples' gitlab instances.
<srhb>
I will test further as soon as I can.
<srhb>
At least rollback was succesful.
Izorkin has joined #nixos
Izorkin has quit [Client Quit]
<{^_^}>
[nixpkgs] @peti merged pull request #49653 → drop old ghc versions 7.10.3, 8.0.2, and 8.4.3. → https://git.io/fxpER
<{^_^}>
[nixpkgs] @FRidh opened pull request #49703 → nixos: hardware.nvidia.package option for selecting nvidia package → https://git.io/fxhW7
deanman has joined #nixos
fendor_ is now known as fendor
alex```` has quit [Ping timeout: 244 seconds]
<flokli>
srhb: I was assuming globin tested the migrations before merging... If it breaks, we should probably revert 18.09 and fix mkgrations in master first
Izorkin has joined #nixos
<ivegotasthma>
can nix run a different kernel than linux?
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « release-cross: use ghc844 for tests »: https://git.io/fxh8L
Izorkin has joined #nixos
Izorkin has quit [Client Quit]
Izorkin has joined #nixos
Izorkin has quit [Client Quit]
Izorkin has joined #nixos
cfricke has quit [Quit: WeeChat 2.2]
orivej has quit [Ping timeout: 252 seconds]
Itkovian has joined #nixos
o1lo01ol1o has joined #nixos
zolk3ri has joined #nixos
<o1lo01ol1o>
I have a project whose (two) binaries are produced by running a couple commands inside two shells, shell.foo and shell.bar. I would like to add another attribute to my default.nix that simply runs those two commands (each with access only to the one shell) and then copies the binaries to a new directory. How should I go about doing this?
<clever>
o1lo01ol1o: does nix-build work on those derivations yet?
aleph- has joined #nixos
<o1lo01ol1o>
I can nix-shell -A shell.foo and it builds
<o1lo01ol1o>
is that what you mean?
<clever>
o1lo01ol1o: usualy, -A provides a shell suitable for building foo, not for using foo
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « krb5: don't pull in keyutils with bionic »: https://git.io/fxh8Q
Ariakenom has quit [Quit: Leaving]
<aleph->
join #nixos-chat
<aleph->
Woops
Ariakenom has joined #nixos
<o1lo01ol1o>
clever: right, nix-build want's to know where $src is when I tell it to build the shell.foo
juhe has quit [Remote host closed the connection]
<clever>
o1lo01ol1o: you need to modify the derivation to add src = ./.; or similar
eljih has joined #nixos
ottidmes has joined #nixos
<o1lo01ol1o>
clever: well, shell.foo is not a set, it's a list, so I can't put a src attribute on there
<clever>
o1lo01ol1o: you need to add src to every item in the list then
<clever>
o1lo01ol1o: or make a new derivation, that has that list on its buildInputs
<o1lo01ol1o>
I'm leaning towards the latter
eljih has quit [Client Quit]
<o1lo01ol1o>
clever: I would just use mkDerivation with src = ./.; the builder as my two commands in a shell script and the list of build inputs?
hlolli has quit [Ping timeout: 252 seconds]
<clever>
o1lo01ol1o: you generally want to use buildPhase and installPhase, rather then builder
<clever>
builder is a lot more limited
<o1lo01ol1o>
k, Can I specify which build input to use during which phase? I'm not certain that wires won't get crossed if they're both active
<clever>
every derivation is isolated and can only access its own buildInputs
<o1lo01ol1o>
what if shell.foo has the binary foobar and shell.bar also has a different foobar, and my build command uses each?
<clever>
then you use ${shell.foo}/bin/foobar and ${shell.bar}/bin/foobar in the buildCommand
<clever>
or you rename things to be more sane
<o1lo01ol1o>
heh, it's haskell's ghc and ghcjs shells, so there's a lot of overlap
hlolli has joined #nixos
<o1lo01ol1o>
but ok, yes, I'll try that
<o1lo01ol1o>
thanks for the help!
<clever>
o1lo01ol1o: it would probably be easyer if you gist all of your nix files ane give a better example of what you want done
<clever>
yep
<o1lo01ol1o>
clever: it may come to that, but I'm also learning nix so struggling through has some of it's own benefits.
edwtjo has quit [Ping timeout: 272 seconds]
edwtjo has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever>
o1lo01ol1o: pkgs.runCommand "name" { buildInputs = [ foo ]; } "build script" is also of use
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<catern>
hmmm
<catern>
does anyone know of a good, standard way for a C library to expose helper binaries to programs using the library?
<catern>
I'd put the binaries into libexec, I guess, but it looks like the standard is to put them into a nested directory, not sure, anyone know?
<{^_^}>
[nixpkgs] @Mic92 merged pull request #49694 → alacritty: fix build on darwin → https://git.io/fxh3v
<WilliamHamilton[>
clever in the end, I used https://pastebin.com/4Qg7fub7 as my command, but I get a failure of the test suite even if I used dontCheck. Do you happen to know the reason?
<clever>
WilliamHamilton[: that is a list containing the function and a derivation
<clever>
not the result of applying the function to the derivation
<clever>
lists in nix are greedy and need () to force the order correctly
alex```` has joined #nixos
<WilliamHamilton[>
clever: :o let me try with parentheses. But then, why didn't it report an error? What's the meaning of the expression if `pkgs.haskell.lib.dontCheck` is seen as an element of the list?
<clever>
WilliamHamilton[: there is another function, that filters all haskell dependencies, to exclude non-haskell things
<clever>
it winds up excluding functions as well, causing it to not fail
<WilliamHamilton[>
and this function that removes functions from the list is called by ghcWithPackages?
<clever>
yep
<WilliamHamilton[>
clever: wow, I would never have guessed!
<clever>
same, i tracked it down a few months ago when somebody else made the same mistake, and i wanted to know how it didnt fail
o1lo01ol1o has quit [Remote host closed the connection]
<WilliamHamilton[>
clever: and is this a pattern that nixpkgs uses often (filtering what is not expected to take only the elements with the right type) in your experience?
<clever>
nschoe: you may need to disable bluetooth to make the serial work right
<clever>
thats done in config.txt with one of the dtb overlays
<nschoe>
clever, thanks, I'll try that.
<WilliamHamilton[>
clever, the build just finished without errors now, I'm very pleased by the power of nix. I have some other doubts regarding the final touches
<nschoe>
clever, quick question, though (because it's not clear in the tutorial), right now I have dd the *.img file. When I take a look at the configuration.nix on the sdcard, i'ts just very basic: just a single `import` and that's all. When they explain to use a given template for configuration.nix, they mean after we managed to log into it, right?
<clever>
nschoe: import or imports? and what path is it importing?
<WilliamHamilton[>
if I do `nix-build -i -p '...'` that `-i` option will install the package in my channel so that I can call just `agda` in the command line? And because cabal2nix has the post-installation patch for agda I will also have the emacs mode installed automatically?
<clever>
WilliamHamilton[: nix-build doesnt have -i or -p flags
joncfoo has quit [Ping timeout: 252 seconds]
<clever>
WilliamHamilton[: but you can do something like `nix-env -f default.nix -iA foobar` to install something into your profile, it will get merged into ~/.nix-profile/
<nschoe>
clever, yes. But https://nixos.wiki/wiki/NixOS_on_ARM#NixOS_installation_.26_configuration says "Note: the default configuration.nix will contain something like imports = [ <nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix> ]; do not include that in your final installation or you will experience interesting problems. It is only for building the installation image!"
v0|d has quit [Read error: Connection reset by peer]
<clever>
nschoe: ah, then the default config is likely wrong
<nschoe>
I'm not sure what they mean by "building the installation image"
<WilliamHamilton[>
clever: just to be sure, in the case of agda doing `nix-env -i` will install also the emacs mode?
<clever>
WilliamHamilton[: if emacs is searching the right areas of ~/.nix-profile/, and the package had those files in its $out, yes
<clever>
nschoe: you will need the right entries under boot.loader and fileSystems."/" and "/boot" to make sure it still boots, those will depend on how exactly the image is built
GiGa has quit [Quit: Leaving]
<nschoe>
clever, okay, so that means right now the image is not built, right?
hlolli_ has joined #nixos
<clever>
nschoe: if you found that inside a .img, then it is built, but not very well
<nschoe>
clever, it's the stock result of dd-ing the .img on the sd card
fendor_ has joined #nixos
<clever>
yeah, it sounds like its just poorly written
hlolli has quit [Ping timeout: 252 seconds]
fendor has quit [Ping timeout: 246 seconds]
<nschoe>
clever, okay. Well I have to go now, but thanks. I'll try tomorrow with my head cleared.
<nschoe>
I have been tryoing too hard for too long ^^
<ottidmes>
I am trying to use multiple srcs but I get the following error: cp: cannot create directory 'source/mrxfafc0z0g64zmzni1fgbidbb2109i5-source': Permission denied
<ottidmes>
do not know how to unpack source archive /nix/store/mrxfafc0z0g64zmzni1fgbidbb2109i5-source
vk3wtf has joined #nixos
{^_^} has quit [Ping timeout: 250 seconds]
{^_^} has joined #nixos
<ottidmes>
nvm, I have to approach this package differently anyway
cnidario has quit [Remote host closed the connection]
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
cnidario has joined #nixos
<{^_^}>
[nixpkgs] @plchldr opened pull request #49712 → expand nspawn unit file validation logic to allow all currently supported fields → https://git.io/fxhuD
jperras has joined #nixos
cnidario has quit [Remote host closed the connection]
<globin>
flokli, srhb: i updated our production instance without issues
<globin>
srhb: do you have a stacktrace?
ivegotasthma has quit [Ping timeout: 272 seconds]
ivegotasthma has joined #nixos
ivegotasthma has quit [Client Quit]
zack_moe has quit [Ping timeout: 246 seconds]
stepcut has joined #nixos
<stepcut>
Is there someway to override nixpkgs.lib.inNixShell? You can see what I am trying to do here -- but it is not working -- it seems to ignore my attempts to update it, https://pastebin.com/C3hbr1Xd
endformationage has quit [Ping timeout: 272 seconds]
<Zajcev_>
guys, I'd like to modify pg_hba.conf and I guess I can do that with services.postgresql.authentication and "lib.mkForce", but how? thanks
sigmundv has joined #nixos
Thra11 has quit [Ping timeout: 240 seconds]
sigmundv has quit [Ping timeout: 240 seconds]
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fresheyeball>
I am getting this running nix-build for a haskell project
<fresheyeball>
only it builds just fine with cabal build inside the nix-shell
alex```` has quit [Ping timeout: 252 seconds]
<roberth>
stepcut: stuff inside nixpkgs still references the old lib. I recommend against inNixShell. If A depends on B and B uses inNixShell for magic, what happens when you open a shell for A? You get the shell variation of B, but B is just a dependency for which you don't want the inNixShell == true variation
<roberth>
just put a shell.nix in A and B
__monty__ has quit [Quit: leaving]
<stepcut>
roberth: well - the inNixShell is not in my code -- or things would be a lot easier. And, indeed, I am running into a situation where I want the non-inNixShell variation -- hence my desire to find some way to trick it
<{^_^}>
#49552 (by matthewbauer, 3 days ago, open): setup.sh: avoid running the same hook twice
<clever>
fresheyeball: how many deps does this package have?
<fresheyeball>
clever: not many frankly
<ottidmes>
I am not sure how to packge the bitwarden frontend. I have npm setup in my NixOS, so I can use it the non-Nix way, then building is a matter of 'npm install; npm run dist' and the frontend is build, but how do I handle packinging something like that. Are there any advanced node packages examples that do things like patching and building webapps?
<clever>
ottidmes: yarn2nix is what you want, i think the recent terraform PR's have an example
<fresheyeball>
I feel like I should be able to hurt me. This karma system doesn't fill my use-case. Much anger
<ottidmes>
why so negative? :P Personally I think it matches this channel, people come here with problems and their frustrations, and (mostly) end up with their problems solved and frustrations gone ;)
thc202 has quit [Ping timeout: 240 seconds]
<ddellacosta>
so, I failed to get my wireless set up when I first installed NixOS on my laptop, so I'm only now trying to get my wireless network working, but I'm in a bit of a catch-22 situation where running `nixos-rebuild switch` requires network access so...not sure what to do. Any suggestions? Surely others have encountered this before?
<fresheyeball>
ottidmes: I was just curious and in a silly mood
<fresheyeball>
not serious
<clever>
ddellacosta: got an ethernet cord?
<Zajcev_>
guys, how to make pam to look another location for module?
<Zajcev_>
Nov 04 00:36:07 nixosV vsftpd[23936]: PAM unable to dlopen(/nix/store/4fzqlzw0dyzvn36q5vlkika2v8jrjnhh-linux-pam-1.3.0/lib/security/pam_pgsql.so): /nix/store/4fzqlzw0dyzvn36q5vlkika2v8jrjnhh-linux-pam-1.3.0/lib/security/pam_pgsql.so: cannot open shared object file: No such file or directory
<ddellacosta>
clever: this laptop requires an adapter which I don't have :-(
<clever>
ddellacosta: boot the install media again, mount the existing fs to /mnt (and /mnt/boot if you have it), edit the config, and nixos-install
<clever>
ddellacosta: nixos-install is just a helper that runs nixos-rebuild under a chroot for you
<Zajcev_>
pam_pgsql is simply not there ...
<ddellacosta>
clever: I was worried that was the only solution, kind of a pain. Seems like this could be better addressed. In any case, thanks! I do appreciate the help despite my complaining.,
<ddellacosta>
emily: yeah that would be helpful, or else maybe it should be more obviously highlighted in the installation instructions
* joepie91
tries `cargo build` again
<joepie91>
clever: thanks :P
<ddellacosta>
I'll make a PR or whatever I can to the NixOS docs after I'm done and suggest that
<emily>
ddellacosta: I also kinda wish the install media came with more usable wireless tools
<emily>
since messing with wpa_supplicant every install sucks a bit
orivej has joined #nixos
<ddellacosta>
emily: ugh yeah it's been a while since I've set up wireless on linux (years and years) and I'm not loving it
<Zajcev_>
clever: is there anything what can I do?
<clever>
Zajcev_: investigate how to configure it to look elsewhere for pam modules, and then fix either the package or nixos module
<ottidmes>
ddellacosta: agreed, I still have to set it up on my freshly installed NixOS laptop, for the time being I just use the ethernet port
<ddellacosta>
ottidmes: yeah, wish I'd thought of that. Live and learn for me I guess...
<joepie91>
No package 'freetype2' found
<joepie91>
eh...
<joepie91>
but I have freetype in my package list...
<joepie91>
buildInputs list*
<clever>
joepie91: and pkgconfig in the nativeBuildInputs?
<ottidmes>
fresheyeball: sorry, I have a tendancy to respond seriously to remarks, even if I know its not meant to be taken fully serious
<Zajcev_>
clever: thank you
<joepie91>
clever: ... I think I forgot to reinit my shell
jperras has joined #nixos
<clever>
joepie91: also, if you ever installed pkgconfig in nix-env or systemPackages, remove it asap
<joepie91>
yeah freetype works now lol
<clever>
joepie91: it doesnt work right, and only leads to more confusion when it half works due to not being in the nix-shell
<joepie91>
clever: ah, what's the specific issue with it?
<clever>
pkgconfig has a setuphook, that will scan all buildInputs, and add them to the pkgconfig search path
<clever>
so it magically finds all inputs
<clever>
that only works under nix-shell and nix-build
<ottidmes>
ddellacosta: just like the time I had to setup internet for my grandma, the offical instructions to do so were... online, long live mobile networks I guess...