pushqrdx has quit [Read error: Connection reset by peer]
mcdviii has joined #nixos
<mcdviii>
Hello, I am trying to set up qmk_firmware on my system. I've downloaded it through pip3.8. I'm trying to set it up via `qmk setup` but I need the dependency `avr-gcc`. Does anyone have an idea of where this dep is available?
teutat3s[m] has quit [Remote host closed the connection]
teutat3s[m] has joined #nixos
<dgpratt>
lukegb: have had a bit more time to look things over; still getting the hang of Nix (the PL); hoping you or someone else can clarify a couple things for me, such as here https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/monitoring/grafana/plugins/default.nix#L4 what defines "plugins" as used on line #4? as defined on line #5? but then line #5 references "callPackage" from line #4, so...mutually recursive?
pushqrdx has joined #nixos
teutat3s[m] has quit [Remote host closed the connection]
ddellacosta has quit [Remote host closed the connection]
ddellacosta has joined #nixos
ddellacosta has quit [Remote host closed the connection]
ddellacosta has joined #nixos
stree has quit [Ping timeout: 268 seconds]
Guest41032 has quit [Ping timeout: 240 seconds]
pushqrdx has joined #nixos
ddellacosta has quit [Ping timeout: 268 seconds]
pushqrdx has quit [Ping timeout: 252 seconds]
<Guest54397>
In NixOS 20.09 It looks like my journalctl logs are deleted after 24 hours, if that's right, how do I save them for longer?
Guest54397 is now known as shapr
shapr has quit [Changing host]
shapr has joined #nixos
ahmedelgabri has joined #nixos
pushqrdx has joined #nixos
<gchristensen>
shapr: I don't think there is a specific amount of time, but instead has to do with how much relative %disk space it is taking
stree has joined #nixos
<shapr>
gchristensen: I have 1.5 TB free, but only 24 hours of systemd logs
<shapr>
gchristensen: could you point me to how to set persistent logging for mpd only?
<shapr>
I want to collect stats on what music I'm listening to
<shapr>
or persistent logging at all, I have enough space
<_virkony_>
I kinda have fix for nix#2109 which should be enough most of the time. But overall canonPath is broken. It should never be called without symlink resolution since symlink followed by .. most likely will get wrong result
<contrun>
I want to put something like email address in my git repo, which I don't care if it is stored in plain text in the nix store. What's the best way to do that? To the best of my knowledge, sops-nix like solutions decrypt secrets at run time. I want secrets decrypted at compile time. Is there any easier solutions for my use case?
pushqrdx has quit [Remote host closed the connection]
<Shados>
Why does nix flake treat local git repositories differently to any other local path when used as a flake root...? Makes for very confusing behaviour
<ronthecookie>
so, ugh, I just deleted a bunch of important stuff from nix-store accidentally. how can i recover?
<ronthecookie>
i don't even have `ls`
<manveru[m]>
do you still have `nix-store`?
<ronthecookie>
nope
<manveru[m]>
even with `echo /nix/store/*/bin/nix-store`?
<ronthecookie>
oh i do like that
<manveru[m]>
poor mans ls :)
<manveru[m]>
you can try `nix-store --repair` in that case...
Dr8128 has quit [Ping timeout: 246 seconds]
<ronthecookie>
it appears to be very broken as that just acts like i gave no args
ddellacosta has quit [Ping timeout: 246 seconds]
<ronthecookie>
same with nixos-rebuild
<ronthecookie>
...actually it gets a bit further but then it breaks because it can't find git
<ronthecookie>
manveru[m]: here's what innocent little me ran: sudo nix-store --delete --ignore-liiveness /nix/store/p1187km87mbazgkclkiy5wglfsqr2gp5-ffmpeg-full-4.3.2
<manveru[m]>
well, then you probably have to boot with usb and do a nixos-rebuild from that
<ronthecookie>
this feels like a bit of a challenge to fix it without rebooting
jesystani has quit [Ping timeout: 245 seconds]
<manveru[m]>
well, you can maybe construct your own PATH if you can find all the dependencies
<ronthecookie>
there's nothing stopping me from rebooting but that's a boring solution :p
andreas303 has joined #nixos
<ronthecookie>
now I have ssl cert problems
<manveru[m]>
so... speaking of boring solutions, i'd love to have a boring solution for making a flake that has submodules :)
Guest41032 has quit [Ping timeout: 240 seconds]
<ronthecookie>
not having the tools i'd use to fix this is certainly a pickle
<cole-h>
manveru[m]: With a recent-ish nixUnstable, I believe you can add `submodules = true;` to the input? No idea how to specify that for `self`, though (if it's necessary)
sknebel_ is now known as sknebel
<manveru[m]>
cole-h: yeah, i'd need it for self...
<manveru[m]>
atm i use `builtins.fetchGit { rev = self.rev; }`, but that fails with non-master branches, so all PRs fail CI
<manveru[m]>
and although i could hardcode different refs, it's just silly that there is no `self.ref` i could use, or some annotation to make the flake be always cloned with submodules
<cole-h>
manveru[m]: What if you manually edit the flake.lock to add `submodule = true` (in json ofc) to the self input or something
<ronthecookie>
manveru[m]: i'm now in a bit of an infinite loop: pkexec is broken because /run/current-system is a dead symlink but i need root to replace that symlink
<supersandro2000>
hound is a great piece of software. It loads all repos on startup and your nixos container needs a higher start timeout or systemd thinks it timed out and kills the entire thing
nf has joined #nixos
<supersandro2000>
because hound does not notify systemd that it is done and so blocks multi-user.target for which the host systemd is waiting 30s
<Ke>
what you are stating is obviously an issue, but maybe that's semantically correct
<Ke>
anyone know how to enable wayland in nixos for chromium
<Ke>
like archwiki has command line options and nixos options has a way to set policy
<Ke>
hmm, then again I am starting chromium as hotkey anyway, so I could just add it to the command line
<o1lo01ol1o>
if I need a haskell executable "Foo" to be able to shell out to "nixpkgs.Bar" during runtime, which attributes need to include nixpkgs.Bar such that "Foo" has access to it when run as a systemd daemon?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
avaq has joined #nixos
zupo has joined #nixos
dbmikus has quit [Ping timeout: 260 seconds]
konubinix has quit [Quit: Coyote finally caught me]
konubinix has joined #nixos
konubinix has quit [Client Quit]
tmciver has quit [Ping timeout: 246 seconds]
tmciver has joined #nixos
philr has quit [Ping timeout: 246 seconds]
ddellacosta has joined #nixos
ddellacosta has quit [Ping timeout: 252 seconds]
hiro98 has joined #nixos
tejing has quit [Quit: WeeChat 2.9]
<sterni>
o1lo01ol1o: see systemd.services.<name>.path
<davidtwco>
Is anyone successfully using `services.nsd.keys`? I'm trying to it and think I've identified a fundamental issue with it, want to double check I'm not doing something wrong.
AkechiShiro has quit [Quit: WeeChat 2.9]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AkechiShiro has joined #nixos
alexherbo2 has joined #nixos
<alexherbo2>
hello
<alexherbo2>
how can I get the environment variables for NixOS?
<o1lo01ol1o>
sterni: ah, so I just need to add "nixpkgs.Bar" to systemd.services.Foo.path
<alexherbo2>
the variables are correctly set when in Bash, but using a custom shell (Nushel here) I have none of them
<alexherbo2>
I’m mainly interested with the PATH and LD things
<Baughn>
Does ayone know if package downloads are fully authenticated?
<Baughn>
As in, I'm dealing with a possible network compromise.
<gchristensen>
packages are signed, yeah
<gchristensen>
if you update a package to a new version, it is common to use ,tofu for establishing the hash -- this could be a point of local compromise, but the problem would be caught when PRing or building for other users
<gchristensen>
,tofu Baughn
<{^_^}>
Baughn: 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. For inserting 52 0's in vim: <esc>52i0<esc>
<Miyu-saki>
I guess I can remove the sentence about vim.
<gchristensen>
sure
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/JYgFA
<Miyu-saki>
,tofu = 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. The library function lib.fakeSha256 is available for this.
<{^_^}>
tofu redefined, was defined as 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. For inserting 52 0's in vim: <esc>52i0<esc>
<Miyu-saki>
,tofu = 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. The library functions lib.fakeSha256, lib.fakeSha512, lib.fakeHash are available for this.
<{^_^}>
tofu redefined, was defined as 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. The library function lib.fakeSha256 is available for this.
siers is now known as ij
<raghavgururajan>
Hello Folks!
<Baughn>
Instead of <esc>, use C-o
<raghavgururajan>
I heard you folks are planning to work on GNOME 40 upgrade.
<Miyu-saki>
Also, I tried changing that on PMs lol, and `{^_^} | Not allowed in PMs`
<raghavgururajan>
I am working on that with Guix. I would like to share this chart (https://calc.disroot.org/guix-gnome.html) I made, which I think would be useful for your folks too. :)
<raghavgururajan>
Oops, not a #nixos-gnome channel. xD
<gchristensen>
pretty cool, raghavgururajan! cc jtojnar
dandart has quit [Quit: dandart]
konobi has quit [Remote host closed the connection]
boredom101 has joined #nixos
konobi has joined #nixos
BenjiProd has joined #nixos
Dr8128 has joined #nixos
ddellac__ has joined #nixos
berberman has joined #nixos
berberman_ has quit [Ping timeout: 250 seconds]
<raghavgururajan>
gchristensen: Thanks! I pinged jtojnar in #nixos-gnome :)
helloitsme has joined #nixos
Jd007 has joined #nixos
Guest41032 has joined #nixos
ddellac__ has quit [Ping timeout: 268 seconds]
Guest41032 has quit [Ping timeout: 240 seconds]
gustavderdrache has joined #nixos
zakame has quit [Ping timeout: 252 seconds]
n-osborne has quit [Remote host closed the connection]
boredom101 has quit [Quit: Connection closed]
magnus2 has quit [Remote host closed the connection]
magnus has joined #nixos
orivej has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
livestradamus[m] has quit [Quit: Idle for 30+ days]
stuebinm[m] has quit [Quit: Idle for 30+ days]
phalrax has joined #nixos
dbmikus has joined #nixos
dev_mohe has joined #nixos
dev_mohe has quit [Client Quit]
<phalrax>
Hi, I'm trying to import an unstable module like so <unstable/nixos/modules/services/backup/zrepl.nix> which works, but when I enable the service it's complaining about "attribute 'zrepl' missing" the nix file which is where the zrepl package is specified. My guess is because it's trying to get it from my default channel (20.09) where the package
<phalrax>
doesn't exist. Can I somehow overwrite this to get it to fetch the unstable version?
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JY22o
growpotkin has joined #nixos
<supersandro2000>
phalrax: there is no option for it
<{^_^}>
[nixpkgs] @talyz opened pull request #118154 → nixos/pipewire-media-session: Use formats.json, stricter typing and break up extremely long lines. → https://github.com/NixOS/nixpkgs/pull/118154
<ambroisie>
Mmh... I don't have the issue if I use `builtins.getFlake` though
dev_mohe has joined #nixos
dev_mohe has quit [Client Quit]
domogled has quit [Ping timeout: 246 seconds]
<{^_^}>
[hydra] @grahamc merged pull request #899 → Projects, jobsets: order jobsets with disabled, hidden rows at the end → https://github.com/NixOS/hydra/pull/899
BlackMug has joined #nixos
wallacer has quit [Read error: Connection reset by peer]
<BlackMug>
hi there
dbmikus has joined #nixos
<BlackMug>
does nixos uses MAC/Namespaces for its packages?
<gchristensen>
the work involved of deeply integrating MAC or namespaces
ahmedelgabri has quit [Ping timeout: 246 seconds]
<dotdotok[m]>
<Guest8912 "dotdotok I am not sure which pac"> i usually put stuff like wifi-config, systemd stuff, and other barebones stuff that you need to run the OS in the system config, and I put text-editors, browers, window-manager-related configs in the HM
<gchristensen>
nix itself can't be super opinionated, since it builds for arbitrary targets not just linux or macos
ATROCK has quit [Read error: Connection reset by peer]
pinpox has quit [Quit: Ping timeout (120 seconds)]
<hexa->
c
zfnmxt has quit [Quit: Bye!]
<gchristensen>
d
zfnmxt_ has joined #nixos
chat2 has joined #nixos
Dr8128 has quit [Ping timeout: 260 seconds]
pinpox8 has joined #nixos
<BlackMug>
gchristensen yeah but this security flaw to leave everything to the package if its secure or not and when its not game over OS
dev_mohe has joined #nixos
<gchristensen>
if you'd like to see it happen, maybe you could do the work :)
wallacer has joined #nixos
<gchristensen>
for nixos a good approach would probably be tighteting down systemd service permissions
Guest8912 has quit [Ping timeout: 268 seconds]
<BlackMug>
i think if MAC do work in nixos and compatible with nix package manager the only thing need to be done is activate it and add profiles to it
<BlackMug>
profiles if im not mistaken can be forced by the package maintainer to add it for his package
Guest8969 has joined #nixos
<BlackMug>
but if it left optionally to the package maintainers it will be ignored no doubt about that
shibboleth has joined #nixos
<Guest8969>
dotdotok[m] thanks! makes sense, do you happen to have config online on github to look at?
__monty__ has joined #nixos
<gchristensen>
BlackMug: yeah, I guess I'm not sure we agree on what Nix is though
<Mindavi1>
Hey, I'm working on cross-compilation support (mainly for aarch64) and I've got a PR open. Looking for opinions on those changes. They're small but I'm not 100% sure if correct https://github.com/NixOS/nixpkgs/pull/117914
<__monty__>
MichaelRaskin: Did you have a specific way in mind of sorting dependency drvs for an expression?
rajivr has quit [Quit: Connection closed for inactivity]
pinpox8 is now known as pinpox
<lukegb>
dgpratt: sorry for the asynchronicity :P
<lukegb>
basically, yes, it's a bit recursive.
<MichaelRaskin>
__monty__: Either manual or maybe prying open the Nix database (details in -chat under the first version of the question)
<lukegb>
I want to be able to refer to things in the main pkgs attrset from inside the plugins, but also the plugins should be available to each other
<lukegb>
so the callPackage scope that's given to the plugins gives them access not only to the top-level packages, but also to the things defined... inside the plugins
<phalrax>
is there a way to switch my whole system to unstable without deleting my current nixos channel that's pointing to 20.09?
Dr8128 has joined #nixos
<MichaelRaskin>
I guess you could rename it?
rick has joined #nixos
rick is now known as mindavi
<MichaelRaskin>
Or probably use -I to select which channel is interpreted as nixpkgs / nixos / whatever
<bpye>
Hey - I was wondering, is there a specific bar for packages? For example I have a very small tool that allows you to use launchd socket activation for things that support systemd socket activation, for example gpg-agent - https://github.com/benpye/launchd_shim I wouldn’t otherwise care too much but I would like to try and get the launchd support
<bpye>
into home-manager - would that be a reasonable package to introduce?
<cole-h>
you can package whatever you want, really
Thra11 has joined #nixos
<bpye>
Alright, well that works for me
kenran has joined #nixos
<drozdziak1>
Are there any good libraries for interacting with the Nix store programmatically? Can be a Nix wrapper. On a high level I wanna write something that will help me understand the most storage-hundry derivations in my system
<mindavi>
I'm trying to move my nixos store / installation to a different SSD, what's the right way to go about that? Would I nixos-install it to the other SSD? Or is there a different way that's recommended? I don't really care if the current ssd (not the new one) will be the boot SSD, but I'd like it if I could copy over the store somehow
<mindavi>
Because otherwise I'll have to rebuild a lot of stuff
<jdelStrother>
Heya - is it expected that `nixpkgs-review rev HEAD` builds the entire planet's worth of software? I was under the impression that it just looked at the package changed in HEAD, figured out other packages that might depend on _that_, and build those
kenran_ has joined #nixos
<jdelStrother>
but this thing has been running for 10 hours or so and still looks pretty busy
<mindavi>
jdelStrother: Depends -- if something 'core' just landed in the branch you're working in and is not yet in the cache, you'll have to build everything that depends on that
<mindavi>
jdelStrother: But typically I'd expect most stuff to be in the cache. Note that working in the staging branch pretty much guarantees that you'll have to rebuild a lot
EmoSpice has joined #nixos
meh` has quit [Ping timeout: 268 seconds]
<mindavi>
And firefox and chrome etc take a long time to build, but I'd assume you're not trying to do that
<jdelStrother>
Mindavi: hm, I'm building a single commit on the top of origin/master (779ef0a43dca70763e23187b476db5e1c1326c54). Is there a more suitable branch to base it off of?
<jdelStrother>
The only thing I tweaked was libtheora, which doesn't seem like it ought to have that many dependencies...
meh` has joined #nixos
<jdelStrother>
though now you mention it, maybe firefox & chrome pull in libtheora via ffmpeg :/
<nextloop>
hello. my PWD is a checkout of nixpkgs where i upgraded the version of a specific package. in order to test it I do: `nix-env -f . -i package`. it tells my installing package-2.0, however afterwards in the same shell when i run package --version i still get version 1.0 back (the one from my system global installation)
<mindavi>
jdelStrother: master should be fine
nbren12 is now known as Guest47525
Guest47525 has quit [Killed (weber.freenode.net (Nickname regained by services))]
nbren12_ is now known as nbren12
<EmoSpice>
Hey all. I'm trying to get a build of ocamlPackages.bap built properly on macOS, but I'm having trouble with gnome2.gtksourceview missing gtkdocize during build. I think this was fixed and merged in a commit about 2 weeks ago, but I'm not seeing any symptoms of the fix having been merged at all, despite having updated my channel (and tracking
<EmoSpice>
nixpkgs-unstable).
nbren12_ has joined #nixos
<mindavi>
jdelStrother: But indeed, libtheora might be used in a lot of packages, meaning they'll al be rebuilt if you do nixpkgs-review
<mindavi>
(or ffmpeg indeed)
<jdelStrother>
I guess I'll leave it running overnight & see what happens
<veleiro>
what's the right way to tell if the system is NixOS or not? within nix
<mindavi>
jdelStrother: Yeah, also no worries if not everything is built, you can cherry-pick some packages to verify if the changes work (if it's for a PR). Rebuilding the world is not very handy, esp when you need to build those giant packages like browsers (assume 10h for each of them or so...)
<jdelStrother>
Where it says [8/68/7474 built, 837 copied (2161.4/2161.8 MiB), 383.7/462.9 MiB DL] - what's the 8/68/7474 ? There's a total of 7474 packages to built, 70 are done so far?
<jdelStrother>
"assume 10h for each of them or so..." - ouch, ok. Going go leave it running overnight, might have to kill it after that.
kenran has quit [Quit: Lost terminal]
<EmoSpice>
I feel like I'm missing something on understanding channels and how to update/manage them. I've read the Nix Channels page on the wiki and it all makes sense, but I've had multiple occasions whereby the channel clone I have does not match with what I see available (both in github or on channels.nixos.org). Can someone point me at some documentation
<EmoSpice>
or best practices around this?
<mindavi>
jdelStrother: Yeah, 7474 means that that much packages are still pending, so that'll take a while
<ipv6[m]>
Hello. Have anyone here configured disk encryption on Raspberry Pi? I'm trying to setup plain password luks on home partition on my rpi3 and every time I specify boot.initrd.luks.devices the system hangs on starting kernel while booting. Am I missing some kernel modules or something?
<mindavi>
nextloop: try `nix-build -A package`, it'll put the result in a folder called `result`, where you can try it out
FRidh has quit [Quit: Konversation terminated!]
<nextloop>
okay. this one worked. but spawning a shell where the new package is in the path is not possible somehow?
<{^_^}>
[nixos-common-styles] @garbas pushed to update « update the dependencies »: https://git.io/JYaOM
<mindavi>
nextloop: I'm not sure how to do this, however, the man page mentions this: nix-env -i /nix/store/<path>
supercoven has quit [Ping timeout: 260 seconds]
<mindavi>
nextloop: So you could build it using nix-build -A <package>, then install the path
<jdelStrother>
nextloop: there might be a shorter/better way, but I do something like this for that: `nix-shell -I nixpkgs=. -p PACKAGE`
<mindavi>
Oh yeah, that also works :)
<mindavi>
And removes it on garbage collection
kenran_ has quit [Quit: leaving]
<veleiro>
is it /etc/NIXOS to know if the system is NixOS, or is there some better determination?
<EmoSpice>
Is there something unique in `uname` output? I'm not on my NixOS box at the moment, or I'd test it out myself.
<nextloop>
thanks jdelStrother currently it is somehow rebuilding, no clue why. but i guess it works. already tried that one but failed while using `nix-shell -I . -p PACKAGE`
<nextloop>
there is even a example in the manpage, overlooked that one
<gchristensen>
veleiro: I think NixOS uses -f /etc/NIXOS to see if it is a NixOS machine
<mindavi>
veleiro: on my system the command `nixos-version` exists
<EmoSpice>
One last ask before I have to head out for the day: Any scenarios under which `nix-channel --update` would *not* update channels (other than hydra failures)? OR where `{darwin,nixos}-rebuild switch` AFTER a `nix-channel --update` would not, in fact, get me to the latest channel?
<{^_^}>
[nixos-common-styles] @garbas pushed to update « stories are now in stories/ folder »: https://git.io/JYa3S
<mindavi>
EmoSpice: a `sudo nix-channel --update` might be required, depending on which user has the channels defined. Also, `nixos-rebuild` accepts an --upgrade argument
<mindavi>
But otherwise I don't see why it wouldn't get you to the latest channel
<EmoSpice>
Maybe I don't understand how nix-darwin works well enough to know if I need sudo or not
<{^_^}>
[nixos-common-styles] @garbas pushed 2 commits to update: https://git.io/JYasI
<mindavi>
EmoSpice: I guess running `nix-channel --list` and `sudo nix-channel --list` will show you if sudo is required. For me one of them (the first) doesn't return anything
<mindavi>
So updating the channel for my user doesn't do anything
<EmoSpice>
Both users have the same channel set so I'm not sure which is important here (this is a nix-shell, specifically)
stree has quit [Quit: Caught exception]
venue has joined #nixos
<EmoSpice>
This distinction is much clearer on nixos itself, but using nix-darwin has made it fuzzy for me.
stree has joined #nixos
domogled has joined #nixos
venue has quit [Client Quit]
<mindavi>
Mm, yeah I'm not sure either then
<EmoSpice>
Success, I think! I think the `sudo` was necessary to link it into the root user's `~/.nixpkgs/defexpr/...` and *then* nix-shell worked okay?
<jasom>
hmm, even after freeing up space and running "nix-collect-garbage --delete-older-than 60d; sudo nixos-rebuild boot" I have almost no free space. I'm guessing e.g. by0fvy3z1yqz9qs9x92c4y98f82apmx1-linux-5.4.50-bzImage.efi is pretty old, right?
VideoGameEnjoyer has quit [Remote host closed the connection]
<tpw_rules>
did you run nix-collect-garbage as sudo too?
<tpw_rules>
otherwise it won't do anything to the system profiles
lsix has quit [Ping timeout: 245 seconds]
<jasom>
tpw_rules: derp. that's the problem, thanks
<drozdziak1>
do I do it from input.nixpkgs, or in a let/in? I'm trying to use flake-utils, but `pkgs = import nixpkgs { inherit system; overlays = [ rust-overlay ]; };` doesn't seem to cut it, I get missing "currentSystem"
<colemickens>
drozdziak1: sounds like it could be an issue with whatever you're pulling in.
<colemickens>
drozdziak1: "currentSystem" is impure and thus not accessible in flakes mode.
<colemickens>
Often times when you're importing something external you can do something like `import inputs.foobar { system = pkgs.system; };` to tell it to import with system set to the same system as your pkg set.
aaabbbbbbbbbb has quit [Ping timeout: 252 seconds]
<colemickens>
does anyone do declarative hydra jobs from a flake rather than spec.json?
<colemickens>
I'm looking to steal inspiration.
<drozdziak1>
colemickens: Okay, do you happen to know how to use flake-utils with overlays? I'd like to narrow down which dep may be causing trouble
Mindavi1 has quit [Read error: Connection reset by peer]
<drozdziak1>
Like, what's the right way to use aan overlay?
<drozdziak1>
coming from a flake or not
Mindavi1 has joined #nixos
<colemickens>
flakes are not magic, they're almost exclusively just syntax around nix imports
<colemickens>
The syntax you showed above should be roughly fine for utilizing a flake input that provides an overlay.
<colemickens>
I'm not sure what flake-utils has to do with anything though. flake-util just provides some nix functions that are helpful for authoring a flake.nix. AFAIK there's no reason or way to use flake-utils "as an overlay".
<colemickens>
Does that help drozdziak1 ?
<drozdziak1>
colemickens flake-utils provides me with declaring stuff for all systems
<colemickens>
forAllSystems or something like that, sure.
<colemickens>
But still, that's just a nix function, not something you need to apply as an overlay.
<gchristensen>
I really need to try these flakes out :)
<drozdziak1>
colemickens: That's not exactly what I want to do. I wish to use an overlay like rust-overlay or cargo2nix.overlay in my flake that uses flake-utils. Now flake-utils asks that I instantiate a nixpkgs with `import nixpkgs.legacyPackages.${system}`
<drozdziak1>
and I don't know how to fit the needed overlays into that
<colemickens>
drozdziak1: can we back up a tiny bit so I can make sure I understand the final goal?
<colemickens>
if those other flakes are using flake-util internally, you shouldn't need to worry about them
<drozdziak1>
colemickens: cargo2nix exposes build tools for Rust packages which I need at flake build time
Mindavi1 has quit [Read error: Connection reset by peer]
Mindavi1 has joined #nixos
<drozdziak1>
colemickens: flake-utils exposes the QoL eachSystem etc.
<colemickens>
drozdziak1: I used to use rust-overlay for example, and I didn't need to use flake-utils at all.
<colemickens>
I just imported it and used it.
<drozdziak1>
colemickens: But my top-level derivations might need thyat right? So that I don't have to specify packages.*.my_thing for every system
<drozdziak1>
My top-level flake needs to expose at least defaultPackage for each supported system, no?
<colemickens>
drozdziak1: okay, those are just two separate imports then, right?
<drozdziak1>
I think my paste explains pretty clearly what I want to do
<colemickens>
sorry, let me just actually load the flake you pasted...
ahmedelgabri has quit [Ping timeout: 258 seconds]
<colemickens>
drozdziak1: notice how eachDefaultSystem takes a `system` arg... you need to pass that along when importing nixpkgs.
<colemickens>
that will get you to the next error anyway, looking at it now.
<drozdziak1>
That's probably gonna be lack of `rustBuilder` :P cargo2nix provides it
<colemickens>
also, you'd just want to use the usage instructions as given in the README for rust-overlay..
<drozdziak1>
(Realized it after I posted)
<colemickens>
your import is wrong
dhess has joined #nixos
<colemickens>
oh cool, okay
<colemickens>
you can probably take it from here then :)
<colemickens>
drozdziak1: not sure if you saw, it looks like there's a flake PR for cargo2nix and someone actively using it successfully.
Guest41032 has joined #nixos
__monty__ has quit [Quit: leaving]
<colemickens>
drozdziak1: you might want to consider it. Otherwise cargo2nix itself imports its own self-pinned rust-overlay as well, and the joy of flakes really starts to shine through.
<dhess>
gchristensen: With Hydra, I think I know how to build a project as a flake (type = "flake" and then define the flake reference), but what about GitHub PRs for those projects? Those appear to need the old input = { ...} format with a URL and therefore those won't be built as flakes... I think? Any idea?
* colemickens
is also trying to figure out how hydra+flakes actually works
<dhess>
colemickens: I think you set inputs = {}, type = "flake" and flake = "github:NixOS/nixpkgs" (for example)
<gchristensen>
dhess: hmm....
<dhess>
in a declarative project, anyway.
<gchristensen>
I don't really know much about the hydra codepaths for github PRs as hydra jobs....
<dhess>
ok no worries :)
venue has quit [Quit: venue]
arguil has joined #nixos
arguil has left #nixos [#nixos]
venue has joined #nixos
<gchristensen>
the way plugins hook in is interesting :)