<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JvuZV
Flambe has joined #nixos
<colemickens>
clodeindustrie: cool.
<colemickens>
clodeindustrie: my usual attack plan when something is broken like that is to update. it usually works out.
<colemickens>
ironically the last time ti ddin't work was trying to get mongodb working on aarch64. it also just seg faults like that.
abathur has joined #nixos
<clodeindustrie>
yes looks like some versions were dodgy
<clodeindustrie>
PR submitted
<kini>
So it seems like `nix-copy-closure` worked (after adding myself to `trusted-users`), but `nix copy` still complains about the signature
<clever>
kini: when the destination has either root or a trusted user, nix-copy-closure disables signature checks automatically
<clever>
kini: nix copy doesnt disable sig checking automatically, so you must use `--option require-sigs false` to turn it off
<clever>
only a trusted user can do that however
<kini>
I see, thanks! It's too bad that there's no man page for `nix copy` and the `--option` flag isn't mentioned in the output of `nix copy --help` though...
<clever>
kini: all nix commands accept `--option`, which can just override things in nix.conf
abathur has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @worldofpeace pushed 5 commits to master: https://git.io/JvunE
<{^_^}>
[nixpkgs] @worldofpeace pushed 4 commits to release-20.03: https://git.io/Jvun2
<colemickens>
The wiki overlays page says to use overlays in nixos configuration.nix by modifying nix.nixPath.
vek_tor has joined #nixos
<colemickens>
Is that method of sharing the overlays worth the disadvantages that come with modifying nixPath?
<vek_tor>
i'm working on a program that uses GTK. if i package it for nixos, how do I specify 'this needs at least GTK version X.Y'?
<vek_tor>
or more generally: how does nixos make sure that all of the various gtk programs on a nixos system are going to have compatible gtk versions
malSet has joined #nixos
dansho has joined #nixos
griff_ has joined #nixos
simukis__ has joined #nixos
<simpson>
vek_tor: I'm checking, but in general, we ship nixpkgs as complete snapshots of holistic trees of packages that work together.
simukis_ has quit [Ping timeout: 272 seconds]
<vek_tor>
aha. so the answer is 'if it's in nixpkgs, it should work with whatever version of gtk is also in nixpkgs'?
<simpson>
It seems, looking at a few packages, that `gtk2` and `gtk3` are used to keep the major versions distinct. This is pretty typical. You can check the precise version with `gtk3.version`, I think.
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to release-19.09: https://git.io/Jvun9
<vek_tor>
yeah, i more meant: what would happen if some package was compatible with 3.16 but not 3.17?
<{^_^}>
cannot read '/nix/store/3np55m55bdbn0c8p1h8lf8wxgv2gijn0-tlp-1.2.2/etc/tlp.conf', since path '/nix/store/qzqd6wn3wb52igcnydqj6h023qn0a6pn-tlp-1.2.2.drv' is not valid, at (string):283:1
<samueldr>
if you try that in your repl, you'll (maybe) see it needs to build the package before being able to buil dit
<lovesegfault>
we can now just drop stuff into /etc/tlp.d/*.conf
Rusty1 has quit [Remote host closed the connection]
<lovesegfault>
just totally empty
<samueldr>
oh, so we don't even need it at all
<lovesegfault>
Might as well overwrite that and leaving the .d for user drop-in stuff
<samueldr>
GrimSleepless: final tip, when making a backports PR, always mention the PR number it comes from, that way GitHub makes a backlink in the original PR, so hopefully the committer that will merge it will see the existing backports PR and use them
<{^_^}>
[nixpkgs] @JeffLabonte opened pull request #81082 → nixos: Update brave from 1.3.118 to 1.4.95 → https://git.io/JvucE
<GrimSleepless>
samueldr: Where do I mention the PR number, exactly? Does it matter where?
<drakonis>
you mention the ticket in question with #<number>
<drakonis>
be it an issue or pr
<drakonis>
anywhere and it'll be referenced
<drakonis>
ie: #81078 on the issue's body or title
<GrimSleepless>
Thank you guys for your help! I am still learning the way to contribute to this awesome project!
jojojojojo has quit [Remote host closed the connection]
jojojojojo has joined #nixos
jerryaldrichiii_ is now known as jerryaldrichiii
<GrimSleepless>
samueldr: I took your tip! and I've added it to the commit title! Thanks!
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #81064 → [20.03] R: fix build on aarch64 by removing a failing test → https://git.io/JvusT
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to release-20.03: https://git.io/Jvucy
<samueldr>
GrimSleepless: in the body of the PR would have been fine too, e.g. something like "This PR backports #xxxxx"
<GrimSleepless>
samueldr: noted!
<samueldr>
ah, not in the commit themselves, but in the PR description
<samueldr>
the commits are already covered by the commit ID from cherry-pick -x
drakonis has quit [Ping timeout: 260 seconds]
<v0|d>
hello, how do I enable framebuffer on console to get more space?
Henson has joined #nixos
jojojojojo has quit [Remote host closed the connection]
jojojojojo has joined #nixos
<GrimSleepless>
samueldr: Ah yes! You are right. but this case I am backporting stuff from other PRs. so I should right This PR backports X, Y, Z ? correct?
<GrimSleepless>
in this case***
<lovesegfault>
How can I make a function foo = a: b: "${a} = ${b}" but make sure `b` is types.bool?
<Henson>
I notice on my laptop when it resumes from sleep that Firefox often is unable to load pages, giving me an "Unable to connect" error. However only firefox is affected, all other programs are able to access the network just fine. It doesn't always happen. Killing and restarting firefox fixes the problem. Does anybody have any suggestions as to why this could be happening?
orivej has joined #nixos
<samueldr>
were I to make this PR, "This backports #XXXX, with the required changes from #YYYY and #ZZZ", x being the version upgrade, y and z the two other PRs, but the most important one is the version upgrade, the other bits are incidental
<samueldr>
and it's not like there's really a rule, it's mainly to get the link in the other PR :)
<GrimSleepless>
samueldr: gotcha :D
<samueldr>
Henson: assuming networkmanager, substitute with the tool you use, disable networking/airplane mode, and then re-enable networking, see if it's whatever service firefox uses to check if it's online or not that's confusd
<samueldr>
confused*
<samueldr>
though I cannot say I have seen this issue
bhipple has quit [Ping timeout: 258 seconds]
shafox has quit [Remote host closed the connection]
bhipple has joined #nixos
<lovesegfault>
I'm editing a nixos module, how can I test it?
<Henson>
samueldr: that isn't it. I tried the airplane mode, and also tried restarting networkmanager, to no effect
<samueldr>
Henson: that was just a random idea, so :/
<Henson>
lovesegfault: do you just want to build it, or do some more rigorous testing?
<evanjs>
ah, that makes sense. just threw me off having it after the second vimPlugins update, but I suppose that makes sense. The more eyes, the better (and higher chance it gets reviewed soon)
<evanjs>
And I can blame ofborg for bothering them :P
<lovesegfault>
samueldr, worldofpeace: the tlp package already provides system units in $out/lib/systemd. Why does the nixos module _also_ define these units?
<lovesegfault>
Shouldn't the package just fixup the paths of those instead?
<worldofpeace>
lovesegfault: it's possible they are new
<lovesegfault>
Ah
<worldofpeace>
In general, It think it's good to use the upstream units. it's better to maintain
qubasa has quit [Ping timeout: 240 seconds]
<lovesegfault>
Nice, so all I do is correctly set wantedBy?
<genesis>
worldofpeace : i fix catia but now i've render to fix with jack_capture and cadence itself to fix with jackdbus.
<lovesegfault>
Is this actually needed? the package already puts that file in it's $out/etc/...
<evanjs>
hrm. wish there was a way to have cachix push <cache> -w but with any expressions processed by nix-build, added or not. But I should probably figure out why I can't resolve these deps in the first place
<evanjs>
Resolve/determine
<lovesegfault>
I'd imagine it gets installed correctly anyway
<lovesegfault>
(assuming enableRDW is enabled)
vek_tor has quit [Ping timeout: 260 seconds]
<worldofpeace>
lovesegfault: I think the tlp.conf is just a plain key value configuration? you should look at lib/generators.nix I think, I believe there's a key value config generator
<lovesegfault>
worldofpeace: Yeah, it's basically a file full of bash envvars
<lovesegfault>
Previously the author concatenated because the defaults were in the same file that was meant to be the user config (/etc/default)
<lovesegfault>
samueldr: Are those paths recursive?
rnhmjoj has quit [Changing host]
rnhmjoj has joined #nixos
rnhmjoj has joined #nixos
<worldofpeace>
Yeah, so I guess your plans here is to parameterize those configurations in tlp.conf so users can actually configure it with nix, instead of just an extraConfig?
<lovesegfault>
(if I have /bin/foo/bar.bin will it also be handled by default)
<samueldr>
wait, that's not even right
<samueldr>
since that goes under the generation dir
<worldofpeace>
samueldr: those paths are under current-system/sw/
<worldofpeace>
yep
<lovesegfault>
worldofpeace: In a separate PR, yes, with the snippet I sent you extraConfig continues to work just the same
<worldofpeace>
lovesegfault: if you have a package with a subdir in bin it still gets linked
<lovesegfault>
worldofpeace: Got it
<evanjs>
ah... had an extra arg... no wonder my cache didn't have the right stuff. Still weird how it won't push some of the deeper deps up, though
<worldofpeace>
lovesegfault: were you going to add the systemd.packages?
<lovesegfault>
did I not?
<lovesegfault>
Oh, I didn't
<lovesegfault>
nice
<lovesegfault>
Updated the gist, worldofpeace
<samueldr>
:/ I just don't have an actual source link, but I'm pretty sure nothing in /etc/ directly comes from packages, they all end up there because of environment.etc
<worldofpeace>
lovesegfault: umm, I think so? And tlp doesn't ship with anything in `tlp.d` right?
<lovesegfault>
worldofpeace: It ships with a helpful README
<lovesegfault>
Not sure whether or not it's worth linking it
<samueldr>
it would conflict
<lovesegfault>
Oh
<lovesegfault>
right
<lovesegfault>
I see
<samueldr>
well, I think, haven't actually verified
<samueldr>
it could be wise to move that README to share/doc/tlp or something
<{^_^}>
[nixpkgs] @bhipple opened pull request #81086 → boringtun: upgrade cargo fetcher and cargoSha256 → https://git.io/JvuWE
<worldofpeace>
I'm not sure if any other packages ship with a tlp.d/*, but eventually you'd need an option like a `tlp.confPackages` where you. 1. add a package attribute 2. create an env that collects just those files 3. link that at etc/tlp.d
Guest_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest_ has joined #nixos
<lovesegfault>
worldofpeace: I'll be honest looking at generators.nix gave my brain a purple nurple
<lovesegfault>
in particular toPretty and toPlis
<Fare>
in a nix recipe, what's the difference between ${openssl}/lib and ${openssl.out}/lib ?
<lovesegfault>
*toPlist
<worldofpeace>
lovesegfault: honestly, I had a similar moment a while ago 🤣
<samueldr>
Fare: this changes which output the derivation refers to
<samueldr>
Fare: some derivations have a different default output
<samueldr>
> openssl.outputs
<{^_^}>
[ "bin" "dev" "out" "man" "doc" "debug" ]
<samueldr>
the first output is the one used when you just
<lovesegfault>
1. Discoverability - it's hard to find the stuff you're looking for and I never know where to look
<lovesegfault>
2. Examples - the easiest way to learn is to see it done, and Nix docs usually spend a lot of time telling you what something does instead of just showing it
<lovesegfault>
3. Comments - Even when you do find examples they lack comments, so if I see some weird syntax like { foo = bar; }@foobar I have to stop and go see wtf that is instead of it just saying "c.f. docs.gov/this-weird-thing"
<worldofpeace>
lovesegfault++
<{^_^}>
lovesegfault's karma got increased to 11
Guest_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<worldofpeace>
TBH, if it were easier to write docs in the first place this would be better
<lovesegfault>
Absolutely
<lovesegfault>
I wish docs were inline like Rust
<worldofpeace>
Most of those issues I've worked around by having people help me/ be the docs mouthpiece 🙂
abathur has quit [Read error: Connection reset by peer]
<worldofpeace>
Ahhh, the beauty of the inline docs. simply the most convenient
<lovesegfault>
Yeah
abathur has joined #nixos
<lovesegfault>
Alright, looking at zedConf in the zfs module is also purple nurpling my brain
<abathur>
I mentioned this the other day, but: it's useful to clearly define what types of documentation should exist and what they should contain
<abathur>
when there are separate types with a clear purpose, it's easier to tell that something is out-of-scope in one place, or something isn't covered in another
<samueldr>
lovesegfault: might want to tone down on the tf after w :)
<lovesegfault>
samueldr: Does it count as cursing?
<iqubic>
So, how should I go about importing the obsidiansystems thing?
<samueldr>
I think it does
bhipple has quit [Ping timeout: 252 seconds]
<lovesegfault>
OT: Of all the peculiarities of Nix the no-curse IRC policy is the weirdest one IMO :P
<abathur>
when it's one big manual, it's less obvious when somethinig that is "covered" isn't covered at the right depth(s)
<samueldr>
lovesegfault: elevating the discourse by elevating the language used
<abathur>
(apologies for stray characters... unrepaired macbook keyboard)
<samueldr>
abathur: there is work currently soft-locked to split the manual
<samueldr>
it's in 68020
drakonis1 has quit [Read error: Connection reset by peer]
<samueldr>
oops
<samueldr>
it's in #68020
<{^_^}>
https://github.com/NixOS/nixpkgs/pull/68020 (by grahamc, 25 weeks ago, open): Vacation PR: multi-paged, styled, searchable docs with wrapper tooling and epubs for NixOS and Nixpkgs
bhipple has joined #nixos
Guest_ has joined #nixos
drakonis1 has joined #nixos
<drakonis>
sick.
<drakonis>
that is so nice.
<lovesegfault>
samueldr: I understand the theory, I just disagree that it works (I think curses _can_ be an effective part of communication, and their presence does not by itself set the level of discourse)
vidbina has joined #nixos
abathur has quit [Read error: Connection reset by peer]
<worldofpeace>
lovesegfault: lol, I was looking on mastodon's #nixos and someone was like "everybody: wtf! nixos irc: gchristensen can you please avoid using language like this"
felixfoertsch has quit [Ping timeout: 272 seconds]
felixfoertsch23 has joined #nixos
<lovesegfault>
Only a curse can convey the feeling of looking at the above link
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
<lovesegfault>
worldofpeace: lol
aw has joined #nixos
<samueldr>
sure, though its constant use does not :)
abathur has joined #nixos
Guest_ has quit [Client Quit]
spacefrogg has joined #nixos
<abathur>
(I don't have super-specific nix comments here; I've just got a long-suffering rewrite of documentation for an old MUD where I've shaken all kinds of weird documentation-scope issues
<abathur>
out of the tree just by coming up with a strong list of what types should exist, what they cover, and then sorting the existing docs into the types)
LysergicDreams has joined #nixos
<energizer`>
llvm, the linux kernel, and python all use reST/Sphinx for their docs, it works really well
<lovesegfault>
I want a badge for finding a link with technical material that samueldr implicitly agreed deserves a curseword :D
wiml has quit [Quit: wiml]
<abathur>
and splitting the manual into pages isn't quite the same :)
<samueldr>
there's already an RFC for bikeshedding a new documentation format, so any discussion about *changing* the documentation format should got here :)
<lovesegfault>
samueldr: bikeshedding is fun and free of commitment, it's the tinder date of technical discussions
<samueldr>
the other user was adamant at making their point in a discussion, but didn't seem to want to participate
<abathur>
Hehe. No worries. I've had exactly enough beer to have no hope of doing anything more productive than suggesting it. But I have to go grab some food real quick first.
<worldofpeace>
lovesegfault++
<{^_^}>
lovesegfault's karma got increased to 12
<abathur>
after that, to the RFC with me
<samueldr>
:)
<lovesegfault>
With enough effort I will soon surpass clever's karma with silly jokes alone!
<worldofpeace>
lovesegfault: I was literally channeling paris there
<lovesegfault>
worldofpeace: I felt it
<worldofpeace>
the tinder date of techincal discussions is going into my irc screencap archive
mexisme_ has quit [Ping timeout: 255 seconds]
<lovesegfault>
:D
<lovesegfault>
Alright, making that tlp PR as a draft
<lovesegfault>
What does my commit messae look like when touching a module? `nixos.services.tlp: revamp`?
<lovesegfault>
s/messae/message/
<worldofpeace>
gchristensen: 🤣 I'm sorry that the fedi might have sneak dissed you.
<worldofpeace>
lovesegfault: honestly, the option attr thing might be better. Usually nixos/tlp
<samueldr>
worldofpeace: how do you even look up a hashtag on the fediverse?
<gchristensen>
no dissed, just bummed
<lovesegfault>
got it
<cole-h>
Anybody familiar with cmake: Why does my imported target `PkgConfig::Exiv2` include an obviously non-existent path: "/nix/store/z93sizlqil2b3kiwk2b733n0g6kcklkc-exiv2-0.27.2-dev//nix/store/z93sizlqil2b3kiwk2b733n0g6kcklkc-exiv2-0.27.2-dev/include"?
<worldofpeace>
samueldr: I dunno, I just searched #nixos and selected hashtags #nixos
<cole-h>
Trying my hand at packaging qimgv at the moment, and this is the current blocker
<worldofpeace>
cole-h: I have a guess that I'm confirming
<iqubic>
So I have this nix-env command: `nix-env -f https://github.com/obsidiansystems/obelisk/archive/master.tar.gz -iA command` However, I really don't like installing things imperatively like this. Is there a way to add "let obelisk = ...;" to my configuration.nix, and then add "obelisk.command" to my system.environmentPackages? The thing is, I don't know what to put as the definition for obelisk.
<lovesegfault>
Can I specify in my NixOS config that I want to apply a patch to nixpkgs?
<lovesegfault>
namely: I'm looking for a way to easily test my PR
<bhipple>
iqubic: I believe you just need to `import` it from that URL and you should be good to go, e.g. let obelisk = (import <url>).command;
<iqubic>
energizer`: Looks like I'll need to use fetchFromGitHub.
mexisme_ has joined #nixos
<cole-h>
<3 worldofpeace
<{^_^}>
worldofpeace's karma got increased to 70
<lovesegfault>
worldofpeace: Maybe, but then I wouldn't know whether or not it works on my running system, which is what I care most about. I rather test on metal and revert/boot into previous generation than use vms
<worldofpeace>
lovesegfault: oohh, yeah the actual powerManagement bit would have to be done like that
<lovesegfault>
especially here where I want to see the power consumption before/after with powertop
<lovesegfault>
ye
<lovesegfault>
So I need something that: a. overrides the module with that from the PR b. overrides the package with that from the pr
butterthebuddha has joined #nixos
<butterthebuddha>
just installed nixos on my thinkpad x230, and the wifi interface is down
<butterthebuddha>
sudo ifconfig wlp3s0 up isn't doing anything :/
<butterthebuddha>
wifi was working OK in the installer
<iqubic>
Is there a way to specify that I always get the latest rev when using fetchFromGitHub?
<lovesegfault>
what on earth is `outRef` in mkDerivation?
<lovesegfault>
`outRef = placeholder "out";`
<lovesegfault>
and wth is this placeholder keyword?!
<iqubic>
error: anonymous function at /nix/store/43vf6pskvwl5pvhvs51yasv9p3zq3rv8-nixos-20.09pre214537.39892985b00/nixos/pkgs/build-support/fetchgithub/default.nix:3:1 called without required argument 'rev', at /etc/nixos/configuration.nix:4:13
<worldofpeace>
lovesegfault: at that point, I'd just patch nixpkgs inside nixos config 🤣
<iqubic>
So, yeah. I want to always get the latest version from master.
<lovesegfault>
worldofpeace: Can I do that?
<bhipple>
err, by import I meant the builtins.fetcher -> import
<energizer`>
iqubic: maybe that's what niv is for?
<iqubic>
niv?
<worldofpeace>
lovesegfault: the outRef thing I did, and it isn't something from mkDerivation. I just reused it for the makeFlags
<bhipple>
iqubic: you can just put 'master' for rev; there are some examples in the manual: https://nixos.org/nix/manual/
<bhipple>
See example 15.7: Fetching the latest version of a remote branch
<lovesegfault>
worldofpeace: But why not just writing `$out`?
<worldofpeace>
lovesegfault: placeholder is a bulitin from nix to get a path to an output (this is a greatly simplified explaination)
<lovesegfault>
oh my
<bhipple>
By default, it has a 5 minute TTL cache, but otherwise will go and re-check
<worldofpeace>
lovesegfault: there is no actual memoization, so it's just to look pretty
<lovesegfault>
Got it
xkapastel has joined #nixos
<iqubic>
This isn't working in the way I want it to.
<iqubic>
I have a different issue here.
<worldofpeace>
lovesegfault: $out maybe/won't get expanded in the makeFlags things. that's why things like cmakeFlagsArray exists
<lovesegfault>
I see
<worldofpeace>
lovesegfault: I've never actually tried patching nixpkgs then using it. you'd probably have to change your config a lot to actually do this I think. Do you use channels?
<lovesegfault>
worldofpeace: I do, I'm on nixos-unstable
<lovesegfault>
I've been meaning to move to pinning nixpkgs instead of using channels
<lovesegfault>
worldofpeace: Why do we even bother setting all those makeFlags? With the exception of TLP_NO_INIT they seem to do it themselves using DESTDIR
<lovesegfault>
instead of putting everything in $out/$out and then cp'ing it back
<lovesegfault>
I think it's saner
<worldofpeace>
lovesegfault: 🖖 (it sucks this is the closest emoji to salute)
<lovesegfault>
:D
vidbina has quit [Ping timeout: 260 seconds]
<thefloweringash>
shamelessly bumping my own PR here, but: what's the idiom for booting ec2 machines with their config in git? My answer is to make userdata a script that does `git clone ... && nixos-rebuild switch` (#67345), but maybe there's a nicer way?
<worldofpeace>
lovesegfault: Usually downstream patches can just be in the same directory. A `patches` directory would be a nice thing to do though, like a treewide thing.
<worldofpeace>
(by treewide, I mean each packages directory having a patches subdir)
<lovesegfault>
got it
<lovesegfault>
I am so close to perfection worldofpeace
<lovesegfault>
There is only one remaining issue
<worldofpeace>
genesis: How did you create the python env, or how is that env created.? (tbh, I can't remember the context to this particular issue)
griff_ has joined #nixos
<genesis>
worldofpeace $ nix-shell ~/devel/nixpkgs -A cadence
<worldofpeace>
lovesegfault: lol, the suspense. Always strive for a greater perfection than the last person left, or can be achieved.
<DigitalKiwi>
i don't think
ddellacosta has quit [Ping timeout: 255 seconds]
<DigitalKiwi>
thefloweringash: nixops?
<DigitalKiwi>
>.>
<lovesegfault>
worldofpeace: Alright, here's the last issue, inspect result/lib/systemd/system-sleep/tlp
<lovesegfault>
I _think_ `tlp` there needs to be a fully qualified path
<thefloweringash>
Does nixops have a way of configuring auto-scaling groups from a git repo? Like packing a bunch of config files together into a single giant `mkMerge` userdata ?
<worldofpeace>
lovesegfault: how does make substitute the paths in the other files? I would just copy that
<worldofpeace>
lovesegfault: yep, that should be absolute
zebrag has quit [Quit: Konversation terminated!]
<lovesegfault>
worldofpeace: it's just missing the right vars in the file, I'll have to patch it too
<DigitalKiwi>
i'm not sure about auto scaling but it can create ec2 and nothing's stopping you from storing the configs in git
<worldofpeace>
lovesegfault: no installation bin directory?
<lovesegfault>
worldofpeace: nope, they forgot to make it an infile with proper sedding
<genesis>
yes worldofpeace i think i find this one
xelxebar has quit [Remote host closed the connection]
<genesis>
one discover means another pb with cadence :')
<worldofpeace>
genesis: yeah, if you just look at the imports and docs you should be able to seem which python module' that are missing in propagatedBuildInputs
<genesis>
i added dbus-python , let's have a try, but this project is a bit dead btw
xelxebar has joined #nixos
<genesis>
after that some tool depends on dead ladish
<worldofpeace>
lovesegfault: no, I don't believe you can do that. you can do ^
<lovesegfault>
Can I point that to a branch?
rogue_koder_ has joined #nixos
* lovesegfault
doubts it
* lovesegfault
knows what to do
<colemickens>
git worktree ftw
<colemickens>
maybe?
<lovesegfault>
1. rollback my fork's master to the latest unstable release 2. apply patches 3. profit
* colemickens
has like 20 worktrees of nixpkgs
<worldofpeace>
colemickens: sammeeeeeeee
<worldofpeace>
colemickens: but I'm terrible at them, and my nixpkgs-master worktree is sometimes a release 🤣
<colemickens>
I think nixpkgs-master is the actual git clone, but I don't think I've ever moved that HEAD ever.
<colemickens>
I want a repomanager that I can declare my repos/trees in, maybe even tell it about linkage to PRs and have it help manage my life
<worldofpeace>
That sounds really cool actually
<colemickens>
also, so I can do "repoman status" and have it tell me if my all of my ~/code/ is safely pushed.
<colemickens>
I have the rest of $HOME under backup control that I can easily/quickly verify, but my git repos... sometimes I haven't pushed, etc.
<colemickens>
and then I could just copy a manifest, "repoman <some init-y verb>" and have it clone/worktree everything back to where it was
<lovesegfault>
if I have branch_1 based on commit FOO and branch_2 based on commit BAR, can I merge branch_1 on branch_2 without bringing in all the diffs between FOO and BAR?
<lovesegfault>
I think I want a rebase
<worldofpeace>
lovesegfault: git rebase --onto new_base old_base ?
kleisli has quit [Ping timeout: 265 seconds]
<worldofpeace>
colemickens: I would throw same 💸 at that project
<lovesegfault>
Alright, rebooting
<energizer`>
colemickens what would it do?
<energizer`>
just loop over all your local repos and do stuff to them?
<colemickens>
There used to be a ... haskell? project by a googler that would sit and watch git repos and try to keep remote-updating and fast-forwarding branches as often as possible...
griff_ has quit [Quit: griff_]
<colemickens>
I've thought about a daemon that watches an "active" repo and would auto add-commit-push your changes to a shadow branch, and if your branch is in an untouched state on the remote machine, the same daemon could watch the shadow branch and keep applying the changes to the local checkout.
<colemickens>
So you sort of would get auto-code-sync via a shadow branch. Might be of dubious value/reliability? Was just an idea I had for keeping my nixpkgs copies up-to-date on builder machines where I'm unlikely to ever make local changes.
xelxebar has quit [Remote host closed the connection]
<energizer`>
while 1; hub sync; sleep 30; done;
palo1 has joined #nixos
<energizer`>
magit-wip-mode is nice, if you're an emacser
<iqubic>
I've never heard of it, and I use EXWM. I'll look into that.
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to staging-20.03: https://git.io/JvuRo
<{^_^}>
[nixpkgs] @bignaux opened pull request #81098 → cadence: fix dbus,libjack and missing dependancies → https://git.io/JvuR6
<genesis>
ping worldofpeace
smatting has joined #nixos
<worldofpeace>
genesis: sorry, it's like 2:09 am. I probably shouldn't be doing what I'm doing at all right now 🤣
<worldofpeace>
I think I can look at it tomorrow hopefully.
<genesis>
it's 8" and i didnt sleep
<genesis>
:P
<genesis>
ho i've time, i never use this, and btw i've PR that waits for month ;)
<{^_^}>
[nixpkgs] @Frostman opened pull request #81099 → smartmontools: 7.0 -> 7.1 and devicedb updated to latest → https://git.io/JvuR1
<cole-h>
What's the difference between `qt5.callPackage` and `libsForQt5.callPackage`?
<worldofpeace>
I think I might have to enlist a nixpkgs PR troupe. funding needed though
<lovesegfault>
worldofpeace: Let's see if I can figure out how to make it work
<genesis>
cole-h : nixos mystery ...
<cole-h>
:D Just because I see plenty of packages using libsForQt5, and some using just qt5
<genesis>
i don't know why it has to be qt5 in this case to get the dbus pyqt mainloop
<worldofpeace>
lovesegfault: I left a diff on your pr
<lovesegfault>
worldofpeace: Saw it, am pushing in a second
<genesis>
cole-h : with my luck qt5 is deprecated in favor of libsForQt5, i bet on that :D
<lovesegfault>
worldofpeace: boom, fixed
<mjrosenb>
also, I'd like it if I could actually build one or both of these projects with nix-build, rather than always needing to run nix-shell, and building within the shell.
<lovesegfault>
worldofpeace: starting the following units: accounts-daemon.service, tlp.service
<kalbasit>
when I add any package built with `buildPythonApplication` to the `buildInputs` of a shell, I automatically get a `PYTHONPATH`. Where is that getting set? Can it be disabled?
xkapastel has quit [Quit: Connection closed for inactivity]
veske has joined #nixos
veske2 has joined #nixos
<sphalerite>
kalbasit: I think that's done by python's setup hook, not by the package itself. Not 100% sure though. You may be able to disable it by explicitly passing an empty PYTHONPATH
chimay has quit [Read error: Connection reset by peer]
<kalbasit>
sphalerite: somehow if I add `PYTHONPATH` to the shell, it gets added to the beginining of PYTHONPATH separated by a column
<{^_^}>
[nix] @domenkozar opened pull request #3375 → install-multi-user: allow overriding user count → https://git.io/JvuzS
gentauro has joined #nixos
cfricke has quit [Quit: WeeChat 2.7]
mexisme_ has quit [Ping timeout: 248 seconds]
tmaekawa has joined #nixos
<LnL>
kalbasit: yeah setting that should work
tmaekawa has quit [Client Quit]
dm9 has quit [Quit: WeeChat 2.7.1]
<LnL>
I'd like to move the hooks to mkPython* instead of python itself
<{^_^}>
[nixos-org-configurations] @edolstra pushed 5 commits to master: https://git.io/Jvuzp
<{^_^}>
[nixos-org-configurations] @edolstra merged pull request #104 → adding garbas home ip address to the list which can ssh to nixos.org → https://git.io/Jvuef
linarcx has quit [Read error: Connection reset by peer]
linarcx has joined #nixos
fendor has joined #nixos
cfricke has joined #nixos
zupo_ has quit [Ping timeout: 272 seconds]
cfricke has quit [Client Quit]
xkapastel has joined #nixos
veske2 has quit [Quit: This computer has gone to sleep]
veske has quit [Quit: This computer has gone to sleep]
cfricke has joined #nixos
sigmundv has joined #nixos
__monty__ has joined #nixos
zupo has joined #nixos
NoctisLabs has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @FRidh merged pull request #81105 → pythonPackages.isort: Add explicit setuptools dep and bin test → https://git.io/Jvugp
<{^_^}>
[nixpkgs] @FRidh pushed commit from @Shados to release-19.09 « pythonPackages.isort: Add explicit setuptools dep and bin test »: https://git.io/Jvu2r
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cinimod>
I have `reverseDepsList1 = lib.attrValues reverseDepsAttrs;` which I think gives me a list of package names (how can I check?) and I want to `jailBreak` them all so I try `reverseDepsList = map (x: "(jailBreak " + x + ")") reverseDepsList1;` but this gives `error: value is a string with context while a set was expected`
Fare has quit [Ping timeout: 272 seconds]
`mrleaW_ is now known as mrleaW
smatting has quit [Ping timeout: 258 seconds]
drakonis has quit [Read error: Connection reset by peer]
<tilpner>
mlatus_: Are you asking because you want to do that (in which case there may be a better solution), or because you want to hear it's not possible?
drakonis1 has quit [Read error: Connection reset by peer]
drakonis1 has joined #nixos
<mlatus_>
tilpner: I will never want to do that, but I also want to know if it is possible to do it by accident
<tilpner>
mlatus_: No, it should not be possible by accident
<mlatus_>
tilpner: that sounds great :)
<tilpner>
mlatus_: findmnt /nix/store
<tilpner>
mlatus_: That should say your store is mounted ro, read only
<tilpner>
I guess it is possible, but it requires a rather large accident
<{^_^}>
[nixpkgs] @rnhmjoj pushed 2 commits to release-20.03: https://git.io/JvuKX
<cinimod`>
tilpner: I am too used to Haskell apparently
cinimod` has quit [Read error: Connection reset by peer]
cinimod` has joined #nixos
<tilpner>
cinimod`: I hit the other direction recently, wondering why ghc wouldn't accept space-separated lists
chagra has quit [Quit: WeeChat 2.7.1]
aswanson has joined #nixos
chagra has joined #nixos
<o1lo01ol1o>
I'm running into a problem getting a pair of haskell overlays to work together. Effectively the first does all the work but creates a number of attributes under haskellPackages; the second needs to take one of those attributes and alias such that cabal recognizes the name. This should work, however, when I combine both overlays, `ld` tries to create a symlink twice during the build.
<o1lo01ol1o>
if anyone cares to glace at it, I'm not sure what's going wrong.
<cinimod`>
I have an expression containing `paths = [ nixpkgs.haskellPackages.splitmix ];` which fails to build `Setup: Encountered missing dependencies: random >=1.0 && <1.2` so I replace it with `paths = [ (nixpkgs.haskell.lib.doJailbreak nixpkgs.haskellPackages.splitmix) ];` but it still fails to build but now with the extra message `Run jailbreak-cabal to lift version restrictions on build inputs.`
rootatarch has joined #nixos
smatting has joined #nixos
tomberek has quit [Ping timeout: 272 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
smatting has quit [Ping timeout: 260 seconds]
sgrunert has quit [Remote host closed the connection]
<cinimod`>
So my question is: why isn't my `doJailbreak` actually doing any jailbreaking?
<evanjs>
any vim/ycm peoples are welcome to test this if needed -- fixes youcompleteme on nixpkgs-unstable -- #81034
<blackriversoftwa>
Hello all, is it not possible to cross-compile nix presently?
gustavderdrache has joined #nixos
<blackriversoftwa>
I'm trying to generate an installer for armv7l-hf (pi) and doing just fine until I run the single-user install script
<blackriversoftwa>
then I get `while setting up the build environment: executing '/nix/store/1iaxkm0941nj1m4m5g4fxgg4cq5jckf0-bash-4.4-p23/bin/bash': Exec format error`
<Cadey>
blackriversoftwa: terrible idea, but have you set up qemu-user with binfmt-misc?
<blackriversoftwa>
It seems that the cross-compiled build of nix somehow pulls in bash for the build system (x86-64) instead of the host (armv7l-hf)
<blackriversoftwa>
Cadey: on the pi...?
<Cadey>
oh wait what
<blackriversoftwa>
Cadey: I've done nix builds for ARM on x86-64 with binfmt-user before
<blackriversoftwa>
cadey: I lifted the installer-tarball generation stuff from the nix repo and used it to try to make a tarball from a cross-compiled nix
<blackriversoftwa>
evanjs: yes and all those caches for armv7l are broken
<simpson>
blackriversoftwa: #nixos-aarch64 may know more. Nix itself should cross-compile using pkgsCross.
pjan has joined #nixos
<evanjs>
blackriversoftwa: ah, broken? Been a while since I used them
<blackriversoftwa>
simpson: yes nix itself cross-compiles fine
<blackriversoftwa>
evanjs: or just non-existent
<simpson>
Caches are usually not available for ARM; such is life.
<{^_^}>
[nixpkgs] @vcunat opened pull request #81122 → nixos/kresd: never force `extraFeatures = false` → https://git.io/Jvui4
<evanjs>
dangit clever :P
<evanjs>
(one of the two arm caches listed there)
<simpson>
Oh, I mean in the sense of having the desired packages, not uptime.
<blackriversoftwa>
simpson: I can cross-compile nix from nixpkgs just fine. I lifted the tarball generation stuff from release.nix in the nix repo into an overlay to make a release tarball I could drop onto a pi
<evanjs>
yeah the one on cachix seems to be up (cant speak for the contents) but clever's hydra instance doesn't seem to have that project now
<blackriversoftwa>
when I run the single-user installer on the pi is when I get the binfmt error about bash
<evanjs>
I've just been using pkgsCross for a while now, anyway.
<blackriversoftwa>
Is there a way to bootstrap a non-nixos system to have a nix store without using the installer tarball?
<evanjs>
Actually, clever has a bunch of stuff specifically for nixos on rpi if that's what you're doing, though it might be too specific/not fit for your use case *shrugs*
<evanjs>
blackriversoftwa: that's actually what I have right now
<blackriversoftwa>
nixos is out of the question for now, sorry :\
<simpson>
Sure. There's probably also a way to cook the installer script correctly.
<blackriversoftwa>
evanjs: I can't actually see your overlays, github won't let me click through to the submodule for overlays
<evanjs>
oh don't worry about the overlays
<evanjs>
sorry, misspoke again :P
<blackriversoftwa>
I'm not trying to make nixos run on armv7l
<evanjs>
I meant repos :P
<evanjs>
right right
<evanjs>
I don't have nixos on mine either
<evanjs>
it's just a barebones linux system that has programs linked from a nix store :D
<blackriversoftwa>
evanjs: does it actually run nix though?
<evanjs>
to build it, sure, but it doesn't use nix/nixos at all when running.
mrleaW has quit [Quit: mrleaW]
dingenskirchen has quit [Read error: Connection reset by peer]
dingenskirchen1 has joined #nixos
<blackriversoftwa>
evanjs: not helpful in my case: I need nix running on the pis so I can copy nix closures to them and set up environments
<evanjs>
Sooo nix on rpi without nixos?
<blackriversoftwa>
correct
<blackriversoftwa>
they all have existing firmware, can't be helped
<blackriversoftwa>
I need to be able to airdrop nix onto them and use it to copy closures and set up custom environments
<evanjs>
Ah alright that makes sense. Mine just bake them into the initrd and can't be added after the fact
<evanjs>
Though I wonder if all that's needed to change that is including "nix" in the initrd-tools :P or something similar
<evanjs>
haven't tried yet
dingenskirchen1 is now known as dingenskirchen
<evanjs>
blackriversoftwa: how would you be copying closures over? Like `nix copy` or similar?
<simpson>
blackriversoftwa: Uh, are you using the right pkgsCross? Double-check; I think that you're picking up your build host.
<simpson>
Other than that, I don't know what's wrong. Best of luck.
<blackriversoftwa>
simpson: yes
<blackriversoftwa>
hostPlatform is the what things will run on (confusing terminology from LLVM, nix just lifted LLVMs terms for different platforms in a build)
detran has joined #nixos
sigmundv has quit [Ping timeout: 260 seconds]
veske2 has quit [Quit: This computer has gone to sleep]
veske has quit [Quit: This computer has gone to sleep]
<{^_^}>
[nixpkgs] @worldofpeace pushed 5 commits to master: https://git.io/JvuMB
rootatarch has quit [Quit: WeeChat 2.7.1]
<dvn>
colemickens: i see you updated the readme. i'm still not able to understand how to make this work from the linked manual/wiki page.
linarcx has quit [Ping timeout: 255 seconds]
mexisme_ has quit [Ping timeout: 246 seconds]
<dvn>
i've tried making the overlay work, but there seems to be an iceberg of nix configuration to understand in order to get it working
<colemickens>
I got frustrated updating the wiki page. I'm sorry. I'll try again today.
Guest22244 has joined #nixos
<blackriversoftwa>
simpson: evanjs: I figured it out. I had run into this before: nix-2.3 and earlier have a config.nix in their `corepkgs` which gets improperly substituted when compiling. That config.nix is gutted in the 2.4pre builds so it no longer gets the shell from there. So I need to cross-compile nixUnstable instead of nix
<Guest22244>
Hi everyone! Sorry to disturb since I am new to NixOS. I wanted to setup a private repository for keeping offline machines updated.
<infinisil>
adisbladis: What's the correct fix for this? Remove that dependency with an override? Or was poetry supposed to make this a dependency in the lock file?
<infinisil>
Oh sorry, fancycompleter, not pytest
<Guest22244>
Anyone can suggest anything tested ? Seem git has all the packages, is this right ?
<blackriversoftwa>
`crossPkgs.armv7l-hf-multiplatform.nixUnstable` I think will work without the binfmt error
<simpson>
blackriversoftwa: Interesting. Glad it works.
drakonis has quit [Read error: Connection reset by peer]
<blackriversoftwa>
simpson: well not sure it works yet but it explains the issue so I am hoping it does
<blackriversoftwa>
had to,uh, cross-compile all of LLVM so it will still be a bit
<cinimod`>
Is there a way of stopping all testing?
drakonis has joined #nixos
<blackriversoftwa>
cinimod`: it's going to be a bit harder than that, because each of those reverse deps is going to pull its dependencies from the package set, not from the list
maddo has quit [Quit: See ya]
<blackriversoftwa>
so even if quickcheck built from that list isn't tested, if anything in there depends on QuickCheck, nix will build another quickcheck that will be
rail has quit [Ping timeout: 255 seconds]
maddo has joined #nixos
vidbina has joined #nixos
<cinimod`>
blackriversoftwa: what we'd like to do is just compile all the (Haskell) packages that depend on the new version of a base package to see what breaks - is there another way of doing this?
<blackriversoftwa>
cinimod`: probably though I don't know what it is
<blackriversoftwa>
cinimod`: what you probably want to do to use that but without testing is to explicitly pass haskellPackages to the nix function you linked
<blackriversoftwa>
but overridden so that haddocking and checking are turned off
<cinimod`>
blackriversoftwa: Ah ok - thanks
<blackriversoftwa>
the way nix package sets work makes this a bit tricky to do globally
<{^_^}>
[nixpkgs] @Mic92 merged pull request #81122 → nixos/kresd: never force `extraFeatures = false` → https://git.io/Jvui4
<cinimod`>
blackriversoftwa: hmmm - I had hoped it would just be a map over haskellPackages
<tilpner>
romildo: That would be fetchFromGitLab then
<blackriversoftwa>
cinimod`: It's been a while since I used the nixpkgs haskell infrastructure, but you probably need to apply an overlay to the package set and override the haskell stdenv to set dontCheck and dontHaddock true
<blackriversoftwa>
trying to do it per package and also for dependencies would be very tricky
bvdw has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<cinimod`>
blackriversoftwa: agreed but I somehow thought nix would find the fixed point for me
<blackriversoftwa>
cinimod`: yes if you made an overlay for the haskellPackages set (not an overlay for nixpkgs, you need to apply an overlay to haskellPackages specifically) that overrode every package
<blackriversoftwa>
cinimod`: but easier to just do an overlay that overwrites the build options all of them start with
ghasshee has joined #nixos
<clever>
you can use a haskell overlay to mutate the mkDerivation function
<clever>
cinimod`: the example i linked shows how to apply many at once
<blackriversoftwa>
the .extend is the bit I was missing
<clever>
pkgs.extend and pkgs.linuxPackages.extend also exist
<cinimod`>
:thumbsup:
<{^_^}>
[nixpkgs] @vcunat pushed commit from @Mic92 to release-20.03 « Merge #81122 nixos/kresd: never force `extraFeatures = false` »: https://git.io/JvuD6
o1lo01ol1o has quit [Remote host closed the connection]
kleisli has quit [Ping timeout: 258 seconds]
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
rail has joined #nixos
vidbina has quit [Read error: Connection reset by peer]
<evanjs>
blackriversoftwa: ohhhhh. glad you figured it out!
<blackriversoftwa>
evanjs: well now nix has decided to be grumpy about cross-compiling rust...it wasn't before...
<blackriversoftwa>
stupid linker errors with 1000 lines of linker flags
o1lo01ol1o has joined #nixos
vidbina has joined #nixos
<blackriversoftwa>
but yeah I think cross-compiling nix and making an installer will be much easier from here forward
<lovesegfault>
worldofpeace: Wait, don't merge it yet because I just borked it trying to get the restartTrigger to work :P
ixxie has joined #nixos
<lovesegfault>
worldofpeace: Ok, now it's ready, I promise I won't touch it :P
<lovesegfault>
I've been running it since yesterday
vidbina has quit [Ping timeout: 258 seconds]
opthomasprime has quit [Remote host closed the connection]
erictapen has quit [Ping timeout: 272 seconds]
<michaelpj>
uh oh, `nix-collect-garbage` is failing because I'm out of disk, and my `/nix` is on its own filesystem so it's hard to enlarge. What's the recovery path here? can I manually kill stuff in `/nix`
drakonis1 has quit [Read error: Connection reset by peer]
<lovesegfault>
michaelpj: Can you `nix optimise-store`?
<michaelpj>
error: cannot open connection to remote store 'daemon': could not set permissions on '/nix/var/nix/profiles/per-user' to 755: Disk quota exceeded
<michaelpj>
eek
* lovesegfault
sets michaelpj on fire
drakonis1 has joined #nixos
<tilpner>
michaelpj: There is a small reserve in /nix/var/nix/db
opthomasprime has joined #nixos
<michaelpj>
yeah, that seems to have gone already
<tilpner>
Oh
<michaelpj>
I don't really understand why that didn't help
malSet has quit [Read error: Connection reset by peer]
<michaelpj>
there's a bunch of stuff in /nix/var/log/nix/drvs
<michaelpj>
maybe some of that can go
malSet has joined #nixos
<michaelpj>
haha
<michaelpj>
it's a zfs dataset, so I can actually just increase the disk quota
<michaelpj>
phew
<tilpner>
:|
<michaelpj>
zfs saves the day again
genesis has quit [Remote host closed the connection]
<lovesegfault>
the hook script doesn't work because it get's placed in /run/current-system/sw/lib/systemd/system-sleep
<lovesegfault>
but systemd is looking for hook scripts in /usr/lib/systemd/system-sleep
genesis has quit [Remote host closed the connection]
<worldofpeace>
lovesegfault: I believe with nixos it's going to be /etc
<lovesegfault>
the manpage says this:
<lovesegfault>
> Note that scripts or binaries dropped in /usr/lib/systemd/system-sleep/ are intended for local use only and should be considered hacks. If applications want to react to system suspend/hibernation and resume, they should
<{^_^}>
error: syntax error, unexpected IN, expecting ')', at (string):283:39
<lovesegfault>
rather use the Inhibitor interface[1].
genesis has joined #nixos
<coderobe>
hmm, i'm trying to figure out how one is supposed to use security.pam.oath, there doesn't seem to be a way to actually configure the oath seeds etc via nix, is there?
<lovesegfault>
So tlp is _wrong_ in making that it's interface
<worldofpeace>
lovesegfault: lol
<peelz>
does anybody know if there's a Unicode control character to disable the right-to-left behavior of arabic script?
<worldofpeace>
I glance entirely over "complete hack"
<lovesegfault>
worldofpeace: :D
<worldofpeace>
I guess bash was more appealing
* lovesegfault
rolls eyes
<worldofpeace>
lovesegfault: Yeah, you should add the unit back. But let's PR upstream to revert that since it sucks.
<lovesegfault>
I will, I've been doing all this in commits on a branch and just exporting as patches
<mmatthieu>
maybe there's options to do what you need
vykook has quit [Ping timeout: 255 seconds]
<mmatthieu>
I don't know how to open a nix interpreter
<Boarders>
Hi I am trying to make a cabal project buildable with nix, we make use of the multiple packages cabal feature, does anyone here know a possible way to do this?
<fresheyeball>
nix repl
<fresheyeball>
Boarders: callCabal2nix
drakonis1 has joined #nixos
<Boarders>
I also have to use allow-newer in a cabal.project file,will callCabal2Nix work?
<fresheyeball>
yes
<mmatthieu>
fresheyeball: do you know how i could import nix-hash in repl ?
psyanticy has quit [Quit: Connection closed for inactivity]
<fresheyeball>
mmatthieu: that's a cli tool, not a nix function
<fresheyeball>
so I don't think you can
mexisme_ has joined #nixos
<mmatthieu>
well then : nix-hash --type sha1 --to-base16 "your number here"
<mmatthieu>
that should do the trick, I think.
<fresheyeball>
except I need nix code
<Boarders>
fresheyeball: do you know a resource for using cabal2nix? I tried cabal2nix --shell . > default.nix but then nix-build gives me an error
o1lo01ol_ has quit [Remote host closed the connection]
<Boarders>
fresheyeball: Package ‘clustering-0.4.1’ in /nix/store/szrzskl18ncpjvq3r9pmp0yv16aqhraj-nixpkgs-20.09pre214776.ca353185084/nixpkgs/pkgs/development/haskell-modules/hackage-packages.nix:53754 is marked as broken, refusing to evaluate.
chloekek has quit [Ping timeout: 255 seconds]
<fresheyeball>
Boarders: well that is your problem them
<fresheyeball>
then*
o1lo01ol1o has joined #nixos
<fresheyeball>
your dependency is broken
<fresheyeball>
cabal2nix is working just fine
<Boarders>
ah ok, do you know what I can do to start trying to fix this problem
<{^_^}>
[nixpkgs] @jonringer pushed commit from @christianpoveda to master « pythonPackages.msgpack: 0.6.2 -> 1.0.0 »: https://git.io/Jvu5w
vykook has quit [Ping timeout: 258 seconds]
<rune3055>
I'm trying to setup the vscode-with-extensions package and idk where to find the already available extensions list (instead of using vscode-utils.extensionsFromVscodeMarketplace)
<boxscape>
If I have an executable that needs some libraries installed and on the LD_LIBRARY_PATH to run, what's the canonical way to do that with nix?
malSet has joined #nixos
dingenskirchen has quit [Quit: dingenskirchen]
<fresheyeball>
mmatthieu: error: cannot compare an integer with a set
dingenskirchen1 has joined #nixos
drakonis_ has joined #nixos
<fresheyeball>
nix-repl> import ./decToHex.nix { mod = p.lib.mod; } 12
vykook has joined #nixos
<mdash>
boxscape: two basic choices for pre-existing executables: patchelf to wire it up to paths/libraries or makeFHSUserEnv to create an environment where things are in expected places
<boxscape>
ok, thanks
<gustavderdrache>
you can also use autoPatchelfHook
<boxscape>
okay
<fresheyeball>
I am baffled
dingenskirchen1 is now known as dingenskirchen
<fresheyeball>
how is q in that function ever a set?
<ShaRose>
Anyone know a way I could make a nix function or something so that during nixos deployment it can run an executable with arguments and get the results to a variable via stdout?
rune3055 has quit [Remote host closed the connection]
risson has quit [Quit: pouet]
risson has joined #nixos
<Boarders>
fresheyeball: am I allowed to manually override something being marked as broken e.g. can I point directly at hackage or git for a particular package?
<mdash>
ShaRose: that's a good way to get non-reproducible builds
<mdash>
what are you trying to accomplish by going that route?
<mdash>
there is probably something you can do.
malSet has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<boxscape>
is there some easy way to jump to the derivation of a package in the nixpkgs github repo? I have no idea where in the folder structure I have to look to find what I'm looking for
<colemickens>
boxscape: generally I will grep through pkgs/top-level for "pkgname =" and then that = callPackage path/to/derivation
<Boarders>
if I use cabal2Nix to create a project and someone on a machine without ghc or cabal tries to build my project will it automatically grab those or do I need to somehow specify it?
<fresheyeball>
yes
<Boarders>
yes, it will grab them?
<fresheyeball>
yes
<Boarders>
cool, thanks for your help
cosimone has joined #nixos
zupo has joined #nixos
opthomasprime has quit [Remote host closed the connection]
risson has quit [Remote host closed the connection]
<fresheyeball>
Boarders: so those are just part of the nix expression
risson has joined #nixos
<fresheyeball>
so if they run nix-build, it's self contained, and environment independent
jgeerds has quit [Ping timeout: 272 seconds]
stree has quit [Remote host closed the connection]
vykook has joined #nixos
risson has quit [Remote host closed the connection]
risson has joined #nixos
chagra has quit [Ping timeout: 260 seconds]
xs has left #nixos [#nixos]
smatting has quit [Ping timeout: 258 seconds]
stree has joined #nixos
vandenoever has quit [Read error: Connection reset by peer]
<Boarders>
during the course of trying to build my haskell project it fails to build the test-suite of algebraic-graphs and so exits
<Boarders>
is this normal? does it run the test suite of all dependencies?
<Boarders>
that seems pretty strange to me
<jamiemagee>
Hi, I'm a new NixOS use and currently trying to script my setup after playing around in a VM. I'm having trouble with `nix-build` in my build script. I get the error
<jamiemagee>
error: getting attributes of path '/nix/store/...-default-builder.sh': No such file or directory
<jamiemagee>
Ah yeah, still working in a VM, but that should contain the `hardware-configuration.nix`
vykook has quit [Ping timeout: 272 seconds]
Jackneill has joined #nixos
<tilpner>
jamiemagee: Can't reproduce, ./build works fine
<cole-h>
Boarders: I think you might be able to get around that by setting `doCheck = false;`
malSet has quit [Quit: Quit.]
<tilpner>
jamiemagee: Is there more to your error than that one line?
pnobre has quit [Ping timeout: 255 seconds]
kristian__ has joined #nixos
Flambe has quit [Ping timeout: 258 seconds]
<jamiemagee>
tilpner: Not really. Just listing of derivations. Previous line is just `/nix/store/...-nixos-system-nixos-20.03pre-git.drv`
mexisme_ has joined #nixos
orivej has joined #nixos
malSet has joined #nixos
<tilpner>
jamiemagee: I can only leave you with general debugging tips: Reproduce from a clean checkout, comment out as much as possible, then comment back in until it breaks again, pass -vvvvv to nix-build to see why it's trying to access that builder
malSet has quit [Client Quit]
<jared-w>
tilpner: how many v's can a nix-build v until a nix-build -v stops -v'ing?
vykook has joined #nixos
<jamiemagee>
tilpner: Okay. Thanks for taking the time to look at this 🙂
malSet has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
<tilpner>
jared-w: 6, I think
drakonis has joined #nixos
malSet has quit [Client Quit]
fresheyeball has quit [Quit: WeeChat 2.6]
drakonis_ has joined #nixos
malSet has joined #nixos
Thra11 has joined #nixos
vykook has quit [Ping timeout: 255 seconds]
drakonis has quit [Read error: Connection reset by peer]
drakonis2 has joined #nixos
philr has joined #nixos
noobly has joined #nixos
Jackneill has quit [Remote host closed the connection]
<blackriversoftwa>
How do I make a single-user nix installation have the nix* binaries available on the PATH when using non-interactive ssh, e.g. so I can nix-copy to it?
bougyman has left #nixos [#nixos]
drakonis_ has quit [Ping timeout: 252 seconds]
<blackriversoftwa>
ssh doesn't want to source the user's .profile
vykook has joined #nixos
<manveru>
blackriversoftwa: that depends on the shell the user has set
<blackriversoftwa>
manveru: it's bash, but ssh doesn't like to let users set environment variables in non-interactive logins i.e. what `nix copy` uses when operating over ssh
<blackriversoftwa>
if I log into an interactive session with ssh I can use the nix commands just fine
<manveru>
that again depends on the ssh server config, but yeah
<blackriversoftwa>
I changed the ssh server config to allow user environment variables, tried setting BASH_ENV to `~/.bashrc` and setting it to source the local profile on a non-interactive shell
<blackriversoftwa>
still no dice
<blackriversoftwa>
I thought about doing a multi-user install but can't because the kernel for this device doesn't support user namespaces
<Boarders>
cole-h: do you know where I am supposed to put doCheck = false
<cole-h>
Boarders: In the derivation
<Thra11>
(If it's just a one off, you can do nix-store --export, pipe/copy over ssh, then start an interactive ssh session and nix-store --import. That's almost certainly not what you want though)
<cole-h>
Same place you would put `buildInputs`, `src`, etc
<Boarders>
I tried just adding it to mkDerivation but it didn't do anything
<cole-h>
Sorry, no idea then.
<Boarders>
gosh
drakonis1 has quit [Quit: WeeChat 2.6]
<blackriversoftwa>
Thra11: I might wind up doing that actually, since I'm going to want to compress stuff in transit
vykook has quit [Ping timeout: 240 seconds]
vykook has joined #nixos
Neo-- has quit [Ping timeout: 248 seconds]
nerdmaxx has joined #nixos
vykook has quit [Ping timeout: 260 seconds]
<jared-w>
nix copy is nicely magical
risson has quit [Quit: pouet]
<jared-w>
on an unrelated note, does anyone have a nice way to incrementally `nix copy` to a local folder in a way that I don't end up accumulating extra files if I add then remove a package? (eg I'd like the same end result as 'rm -rf my_closure && nix copy --to 'local?root=my_closure'` but ideally without having to actually remove the folder every time)
cinimod` has quit [Ping timeout: 260 seconds]
<jared-w>
and, out of curiosity, does anyone have any nice methods they use for writing slightly longer shell files in nix without losing their mind? I have a pretty solid shell setup with shellcheck, linting, etc. syntax highlighting, auto formatting, etc., and lose all of that if I write the file inline in nix but otoh, really like being able to use nix interpolation for certain things in said script
<jackdk>
I use this to generate a big .el file in my emacs config
dingenskirchen has quit [Remote host closed the connection]
<jared-w>
it's only defined in the standard environment, so I'd have to use it inside something like mkDerivation right?
dingenskirchen has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
ashgillman has joined #nixos
bvdw has joined #nixos
vykook has quit [Ping timeout: 265 seconds]
<colemickens>
I don't understand your first question jared-w but I keep reading it thinking it sounds like something I threw together around nix copy once when I was doing some sort of caching "workaround"
<colemickens>
I'm going to see if I can find it in git somewhere.
<{^_^}>
[nixpkgs] @aanderse merged pull request #80849 → nixos/nextcloud: avoid loading imagick extension more than once → https://git.io/Jv0zk
wildtrees has quit [Remote host closed the connection]
gustavderdrache has quit [Quit: Leaving.]
wildtrees has joined #nixos
vykook has quit [Ping timeout: 255 seconds]
<ShaRose>
mdash sorry, got distracted by something. I was hoping to use it to encrypt private data by using system information that requires root access as the seed for the key.
fendor has quit [Read error: Connection reset by peer]
<Boarders>
does anyone know with a haskell package how I can overrride to allow broken?
<Boarders>
but just for that single package
<Shouou>
How do I specify non-standard dependencies with autoPatchelf? As in, it doesn't exist under ${pkg}/lib, but some other deeper lib directory. It's the case with libjawt.so and openjdk
<jared-w>
colemickens: that would be neat if you could find it
chloekek has quit [Ping timeout: 258 seconds]
<colemickens>
jared-w: I was thinking about it more, and it's not really applicable. It was more about removing files that were already pushed to a cache so I could use a sorta-dumb CLI tool to blanket push them to my bucket.
<Raito_Bezarius>
does nixops enable openssh service by default?
<Raito_Bezarius>
i killed for the N-th time a machine
<Raito_Bezarius>
I see SSH open because I ensured openssh.enable = true
<jared-w>
hmm... sounds so close yet not quite there :
<jared-w>
:p
<Raito_Bezarius>
but at the same time, the keypair of nixops does not work when I do nixops ssh
<Raito_Bezarius>
I have no idea what's going on
<jared-w>
colemickens: If you ever found it by chance I'd still be interested in seeing it
o1lo01ol1o has quit [Remote host closed the connection]