<clever>
fuzzypixelz: the unpackPhase copies $src to . so you always want to be modifying the source in . not $src
<fuzzypixelz>
clever: I see that now. One more thing: do I have to remove the source folder manually when running unpackPhase from nix-shell?
fuzzypixelz has quit [Quit: Connection closed]
fuzzypixelz has joined #nixos
acarrico has quit [Ping timeout: 265 seconds]
<fuzzypixelz>
all subsequent attempts to relaunch nix-shell tell me that the unpackPhase apparently didn't create any dirs so it exists ... just like that
<fuzzypixelz>
I'm not sure if my previous message got through because I got disconnected: so here it is :P
<fuzzypixelz>
clever: I see that now. One more thing: do I have to remove the source folder manually when running unpackPhase from nix-shell?
<fuzzypixelz>
I have no idea why but my postPatch/preConfigure phases don't seem to be executed: when add --debug I don't see any mention of them, plus they don't affect the build at all.
<fuzzypixelz>
I'm trying to run sed -i on a configure script
<jackdk>
I'm looking at CI to prime a nix cache for a dev shell. The big hammer is to `nix-shell --run ':'`, but this refetches a lot of stuff that's just cache hits. Is there a build command that I don't know about that I should be running instead? (Also, if it matters, there's a lot of IFD in this shell.nix because it uses haskell.nix and niv)
<justanotheruser>
evils: interesting. So I may just run the same build steps hydra does to generate packages.json.br and parse
<{^_^}>
[nixpkgs] @fortuneteller2k opened pull request #122410 → linuxPackages.anbox: 2019-11-15 -> 2020-06-14, mark broken for kernel not in between 4.14 and 5.4 → https://github.com/NixOS/nixpkgs/pull/122410
<jackdk>
Is there a nix command to "check that all the `buildInputs` of a derivation are fetchable from cache, and build the ones that aren't?" I'm trying to use non-hydra CI (github action) to keep a nix cache up to date, but it means I download a lot of unnecessary stuff in a `nix-shell --run :`
<jackdk>
cole-h++ looks exactly like what I need, thank you. Will probably have to refactor my code because `mkShell` derivations are not buildable, but that's way easier than reinventing this wheel.
<davidak[m]>
if that is correct, we could publish an article about that achievement and our efforts, add it to the reproducible builds newsletter and share it on social media, hacker news etc...
<{^_^}>
#112928 (by baloo, 12 weeks ago, merged): stdenv: provide a deterministically built gcc
<kerrnelpanic>
modinfo v4l2loopback says: not found
jgt_ has joined #nixos
<kerrnelpanic>
from config.nix: boot.extraModprobeConfig = ''
<kiwiberd>
I'm trying to use concatMapStringsSep in a repl. Since it's defined in nixpkgs rather than the library, it's not in "nix repl" prelude. How can I load "lib" in "nix repl"?
<kiwiberd>
I read `nix repl --help` but wasn't able to figure it out with that.
<kiwiberd>
Figured it out!
stree has quit [Ping timeout: 240 seconds]
hyper_ch has quit [Ping timeout: 268 seconds]
<kiwiberd>
In `nix repl`, execute `lib = import <nixpkgs/lib>`
<{^_^}>
[nix] @Ma27 opened pull request #4787 → Implement `builtins.floor` and `builtins.ceil` using the C library functions internally → https://github.com/NixOS/nix/pull/4787
fuiltilt has quit [Quit: WeeChat 2.9]
stree has joined #nixos
orivej has quit [Ping timeout: 265 seconds]
bennofs_ has quit [Read error: Connection reset by peer]
bennofs_ has joined #nixos
sss has quit [Read error: Connection reset by peer]
<yaymukund>
I install the Rust toolchain via the `rustup` package and I'm noticing I no longer have cargo installed. If I say `which cargo`, it's symlinked to `/run/current-system/sw/bin/cargo` -> `/nix/store/{sha}-rustup-1.24.1/bin/cargo` -> `rustup`, which seems bad
<yaymukund>
ok, nm, i did rustup update and that fixed it. odd.
<{^_^}>
[nixpkgs] @sternenseemann pushed 5 commits to haskell-updates: https://git.io/J3xh1
<Reventlov>
Can you execute some fetcher in an asynchronous manner ?
<Philonous>
I'm trying to write a derivation for an existing ruby gem, what's the simplest way to do that? I'm not having any luck googling it. I'm not developing the gem and I'd rather not modify the source, I essentially just want to wrap «gem install»
berberman has joined #nixos
berberman_ has quit [Ping timeout: 245 seconds]
<gchristensen>
Reventlov: what do you mean?
abstrn has quit [Remote host closed the connection]
<Reventlov>
gchristensen: I'm trying to create a custom fetcher, but to actually download the archives I need to make a call to an API before
<gchristensen>
ah
abstrn has joined #nixos
<Reventlov>
and between the call to the API and the archive availability, it might take a few seconds / minutes
<Reventlov>
so I'm wondering if I can have some kind of "async" way to do this to avoid taking too much time doing this for multiple packages
<gchristensen>
hmmm not exactly, though nix will run multiple fetchers (and builds) at the same time
oxalica1 has joined #nixos
avaq has joined #nixos
ahmedelgabri has quit [Ping timeout: 276 seconds]
oxalica has quit [Ping timeout: 250 seconds]
oxalica1 is now known as oxalica
ahmedelgabri has joined #nixos
<sterni>
as long as you don't have a bottleneck of fetchers depending on each other nix will parallelize it
<sterni>
as long as they are all different derivations
Lord_of_Life has quit [Ping timeout: 265 seconds]
<{^_^}>
[nixpkgs] @sternenseemann pushed to haskell-updates « haskellPackages.large-hashable: mark as broken on aarch64 »: https://git.io/J3pJn
sangoma has quit [Read error: Connection reset by peer]
sss has quit [Ping timeout: 246 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sss has joined #nixos
avaq has quit [Ping timeout: 246 seconds]
fendor has joined #nixos
CodeBitCookie[m] has joined #nixos
<CodeBitCookie[m]>
Hello
<CodeBitCookie[m]>
I have installed nixos before but the 32 bit version which required me to build basically every package from source
<CodeBitCookie[m]>
i switched to void for the wait
<CodeBitCookie[m]>
until i get my new pc
<gchristensen>
ah, yeah, that is hard. there are not a lot of 32 bit users these days
<CodeBitCookie[m]>
but then i realised my cpu is not true 64 bit but allows 64 bit if I install a 64 bit OS (64 bit nixos)
<gchristensen>
what CPU is this?
<CodeBitCookie[m]>
let me check
<CodeBitCookie[m]>
intel core 2 duo t6600
<gchristensen>
<gchristensen>
looks 64 bit to me!
<CodeBitCookie[m]>
yeah so before I even knew what linux was
<CodeBitCookie[m]>
I had windows
<CodeBitCookie[m]>
and it said that my cpu was 32 bit
<CodeBitCookie[m]>
I then went into the linux rabbit hole and realised how dumb i was
<M0x76[m]>
That was probably just because you installed a 32bit windows
<CodeBitCookie[m]>
Even opengl wasn't supported
alexherbo2 has quit [Ping timeout: 268 seconds]
avaq has joined #nixos
<CodeBitCookie[m]>
<M0x76[m] "That was probably just because y"> i didn't i was like litterally 10 y/o
<CodeBitCookie[m]>
> <@victor:xirion.net> That was probably just because you installed a 32bit windows
<CodeBitCookie[m]>
* i didn't i was like litterally 10 y/o; someone else did
<{^_^}>
error: syntax error, unexpected '<', at (string):494:1
<gchristensen>
that is okay :)
<CodeBitCookie[m]>
<CodeBitCookie[m] "Even opengl wasn't supported"> but guess what it was supported
<CodeBitCookie[m]>
anyways...
<CodeBitCookie[m]>
I love void but I am falling for nixOS, gentoo was too many problems for my hardware (not really but that is a differenet topic)
<CodeBitCookie[m]>
* I love void but I am falling for nixOS, gentoo was too many problems for my hardware (not really but that is a different topic)
<CodeBitCookie[m]>
Ok Because I am going to have to study and don't want my laptop in an unusable state
sss has quit [Read error: Connection reset by peer]
<CodeBitCookie[m]>
I am going to do this in another laptop inside a vm
<CodeBitCookie[m]>
last time I installed it with btrfs
<CodeBitCookie[m]>
I have a 256GB hdd on that laptop but it wasn't enough without anything installed
sss has joined #nixos
<CodeBitCookie[m]>
so I must have messed something up before
<CodeBitCookie[m]>
now I am going to do it the right way
<CodeBitCookie[m]>
Ok so this is a dumb question but I am running nixos minimal iso in qemu how should I connect the internet to my actual wireless internet?
<CodeBitCookie[m]>
I did all of this a while ago so I forget most of it
<Reventlov>
but I get « attempt to call something which is not a function but a set »
hmi has joined #nixos
vikanezrimaya has quit [Ping timeout: 240 seconds]
ddellacosta has joined #nixos
kolaente_ has joined #nixos
<__monty__>
qyliss: Picking up where we left off. I have the bootstrap-tools built now, with the removal of `allowedReferences = []`. But why-depends and various nix-store queries don't show any dependencies of the store path.
<kolaente_>
Is there a way to specify the go version to use with buildGoModule? Looks like it is using the one from the stable channel by default
<__monty__>
Does this mean there's no way to list all the store paths that were used to build the bootstrap-tools?
<qyliss>
__monty__: well, "used to build" probably isn't what you want here, is it?
<qyliss>
because AIUI you're talking about a runtime reference
<dminuoso>
I have a bunch of haskell dependencies I want to adjust for nix. Right now they have tight bounds, but with `nix-build -A ...` I get very unhelpful errors from
<thibm>
azazel: one easy way is to look for packages version in https://search.nixos.org/ (I don't know if the website is updated right after the channel advance). This is limited to version change though (and other displayed metadata)
<azazel>
thibm: yes, thanks, I do have an unstable nixpkgs in the flakes registry that updates when the channel advances, I was courious if hrnz had sove specific app/lib version to track...
<thibm>
hyperfekt: (thanks, I looked for this service but didn't find it!)
<ajshell1>
I just installed NixOS for the first time yesterday. I'm a bit overwhelmed by all the possibilities. Do you have any advice for a noob like me?
jonringer has joined #nixos
sss2 has quit [Ping timeout: 240 seconds]
<qyliss>
ajshell1: well, what do you want to do with your computer?
<qyliss>
you need to figure that out first
<simpson>
Another decent prompt: NixOS is a GNU/Linux distribution. What do you normally do when in front of such a computer?
alexherbo2 has joined #nixos
sss2 has joined #nixos
<thibm>
ajshell1: what was your previous system?
<simpson>
qyliss++
<{^_^}>
qyliss's karma got increased to 141
<ajshell1>
Ubuntu, then Manjaro, then Antergos (RIP), then Arch for year, then Void Linux.
Arahael has joined #nixos
<ajshell1>
Anyway, this is my main home desktop, for entertainment purposes. Gaming, video watching, hobby programming, etc.
<thibm>
ajshell1: so you may first try to get a system that looks like the one you used before. Get the same interface, use the same software… This way you get used to NixOS/Nix but you won't get lost in the possibilities ;)
<ajshell1>
I think I can figure out how to install my preferred desktop setup (Ly for display-manager, Sway as my compositor, Pipewire for audio, etc), but I'd appreciate any tips.
<ajshell1>
Oh. I see I still have a lot to learn. I suppose I can make do with SDDM for now.
<qyliss>
NixOS modules generate configuration files and stuff, packages just provide the software :)
griff_ has joined #nixos
rj has joined #nixos
sss2 has quit [Read error: Connection reset by peer]
<ajshell1>
Anyway, I've noticed that you can install packages globally with the configuration.nix file, or you can use nix-env, which is used for user environments. Does it really make a difference which gets used when your system only has a single normal user?
sss2 has joined #nixos
<qyliss>
ajshell1: environment.systemPackages is strongly preferred, because otherwise the packages you have installed aren't tracked in a config file
<qyliss>
(if you do want user environments down the line, look into home-manager instead of using nix-env)
<ajshell1>
I see. Thanks.
<__monty__>
qyliss: Hmm, I set `disallowedRequisites = [ llvmPackages_7.llvm ]` in make-bootstrap-tools.nix and it still built. Is there a way to go from a store path to an attribute name to make sure llvmPackages_7.llvm is the correct thing to specify?
<qyliss>
no, but you can easily go the other way to verify
cantstanya has quit [Remote host closed the connection]
<qyliss>
just not the output/runtime closure
<qyliss>
because Nix scans for references _after_ building
<qyliss>
AIUI
virkony has quit [Ping timeout: 276 seconds]
cantstanya has joined #nixos
sss2 has joined #nixos
<dminuoso>
What is the difference between the channels nixpkgs-unstable and nixos-unstable?
<qyliss>
what I don't understand is why you're not seeing a reference when you look at the requisites for the store path, though
<qyliss>
dminuoso: the biggest difference is that nixos-unstable is guaranteed to have passed the NixOS tests
<qyliss>
so you shouldn't end up with an unbootable system
acarrico has joined #nixos
virkony has joined #nixos
<qyliss>
but also, nixos-unstable only guarantees Linux packages are cached, whereas nixpkgs-unstable guarantees both Linux and Darwin binary packages are available
domogled has quit [Ping timeout: 260 seconds]
proofofkeags has quit [Ping timeout: 252 seconds]
stree has quit [Ping timeout: 240 seconds]
<dminuoso>
Mmm, so for linux development of Haskell, either channels hould be fine?
<qyliss>
yeah
<dminuoso>
Alright great
<qyliss>
but don't set your system nixpkgs channel to nixpkgs-unstable if you're using NixOS
<dminuoso>
Right, well my system is rather a mixture of nixos-unstable and 20.09
<dminuoso>
but the main channel is nixos-20.09
<dminuoso>
Presumably nixpkgs-unstable is dangerous because it might not even boot, then
exondation has quit [Ping timeout: 245 seconds]
<philipp>
Not booting isn't really a concern as much because you should always be able to boot up an old version. It's more that the unstable channel can get stuck and then you don't get any security updates for a while.
exondation has joined #nixos
<ajshell1>
Is mixing stable and unstable a recommended thing to do? Because I'm not quite sure which channel I should go with. Mixing the two sounds like either the perfect compromise or a recipe for disaster.
<qyliss>
ajshell1: it's usually pretty safe, although can cause problems with anything that uses OpenGL, for complicated reasons
zebrag has quit [Remote host closed the connection]
<ajshell1>
Given the fact that I like to play games, I probably shouldn't do anything that messes with OpenGL, then.
<philipp>
As long as your games opengl fits the system, it's no problem when you have something entirely different open in a dev shell.
<qyliss>
all I mean when I say it causes problems is that if your system is using one channel, and an application is using another, that application might have graphics problems
<qyliss>
it shouldn't cause any problems other than that
<qyliss>
so don't be scared of running programs from other channels in general
<dminuoso>
philipp: huh? so security fixes might land in the stable channels before the unstable channels?
ahmedelgabri has quit [Ping timeout: 260 seconds]
<ajshell1>
Well, now that I think about it, the Steam Linux Runtime exists for a reason. This probably won't affect me much.
<qyliss>
dminuoso: sometimes, because they'll get added to both channels at the same time, and stable might rebuild quicker
<dminuoso>
ajshell1: its very comfortable, because it lets me cherry pick newer versions on single programs I want - this is precisely the reason why I use nixos in the first place, so this is possible. :)
dev_mohe has joined #nixos
<qyliss>
dminuoso: especially since there might be other stuff happening on unstable, whereas stable should be relatively calm
<thibm>
dminuoso: yeah, unstable can get stuck because of a large change which should not happen in stable.
<thibm>
it's conterintuitive indeed
<philipp>
The steam linux runtime is there for binary compatibility, not really to stabilize anything opengl.
<dminuoso>
qyliss: ah fair enough. Right now my main concern is just haskell development, my dependencies are not quite covered by current stackage resolvers, so I kind of have to go unstable
<qyliss>
well, that doesn't mean you have to use unstable as your system channel
<qyliss>
just for your haskell environments
alexherbo2 has quit [Quit: Ping timeout (120 seconds)]
<ajshell1>
Here's just hoping that Nix has a package that can get my Epson V550 scanner to work properly. Void Linux supposedly did, but I could never get it to work.
proofofkeags has joined #nixos
<philipp>
Well, printers are just printers. Good luck.
<ajshell1>
Scanner, not printer. And based on the fact that your epkowa package is based on 2.30.4 (which has had their downloads removed, so you're getting the RPMs from the internet archive) instead of 6.6.2.3, I'm not holding out much hope.
Quick_Wango has joined #nixos
oxalica has quit [Ping timeout: 245 seconds]
<azazel>
ajshell1: It doesn't seem to be supported by sane project so... good luck with that!
oxalica has joined #nixos
<philipp>
But that just means that it's trouble on any distribution. There is very little special soup when it comes to desktop hardware support in any of them.
<ajshell1>
Yeah. It won't even work on Windows without a special download from Epson.
<ajshell1>
Also, I've noticed that both the Nix package and an AUR package for this are based around extracting Epson's RPM file. Is there some property of RPM files that makes this more easy to do than with DEB files?
andreas303 has quit [Ping timeout: 240 seconds]
philipp has quit [Remote host closed the connection]
philipp has joined #nixos
andreas303 has joined #nixos
rj has quit [Ping timeout: 240 seconds]
rj has joined #nixos
<{^_^}>
[nix] @regnat pushed 2 commits to locally_cache_the_remote_realisations: https://git.io/J3hvB
erasmas has joined #nixos
chaoflow has joined #nixos
ahmedelgabri has joined #nixos
<philipp>
I wouldn't know of any. Could be a case of one packager inspiring another.
<chaoflow>
After update to latest unstable nixos a python program using aiohttp returns application/x-javascript instead of application/javascript as mime type for a js file. Same aiohttp version on other systems works correct, so I assume it's related to mimetypes on nixos, Any ideas?
griff_ has quit [Quit: griff_]
ajshell1 has quit [Quit: Connection closed]
gh0st[m]1 has quit [Quit: Idle for 30+ days]
ajshell1 has joined #nixos
ajshell1 has quit [Client Quit]
<__monty__>
chaoflow: Looks like a correction. application/javascript isn't a correct MIME type, fwiw.
<qyliss>
but it doesn't mention application/x-javascript...
<chaoflow>
The link nf posted states that application/javascript is historically correct, text/javascript would be better. I wonder where application/x-javascript now comes from
<chaoflow>
qyliss: Should the mailcap file be available in /etc ? Are you aware of any changes in that area?
<bbigras>
the only time I delete generations is when I change a lot of things and I want to only keep 1 generation per day of the last week. (and I expect to save some space)
gentauro has quit [Read error: Connection reset by peer]
alexherbo24 has joined #nixos
<dminuoso>
Mmm, I have a package that depends on template-haskell, but nix cant pick it up unless I create an overlay with something like { template-haskell = superHS.template-haskell_2_17_0_0; ghc-boot-th = superHS.ghc-boot-th_9_0_1; }
mupf has joined #nixos
<dminuoso>
Is there something non-obvious one has to do to depend on template-haskell without this overlay?
troydm has joined #nixos
alexherbo2 has quit [Ping timeout: 246 seconds]
alexherbo24 is now known as alexherbo2
<CodeBitCookie[m]>
There is also this problem with nixos and xfce4 which I have tried over multiple machines, vms, even on hardware
<CodeBitCookie[m]>
where everything is very slow especially visible when moving windows
<CodeBitCookie[m]>
until you go to settings > window manager tweaks > Compositor > Enable window compositing
<CodeBitCookie[m]>
disable and enable that option
<CodeBitCookie[m]>
then the issue is fixed
<CodeBitCookie[m]>
maybe its just an issue with xfce4?
<dminuoso>
Ah mmm, that overlay breaks things too.
bn_work has quit [Quit: Connection closed for inactivity]
<dminuoso>
Ah.. I guess I figured out the problem. Presumably template-haskell comes with GHC, and I had an incorrect version constraint. And since it comes with GHC, it doesnt appear as a separate packge.
sss2 has quit [Read error: Connection reset by peer]
<ris>
is it considered "ok" for a module to introspect into `networking.interfaces` to discover which is the internet-bound interface? (by looking for a 0.0.0.0 route)
<pennae>
ris: wouldn't that be not-quite-effective because it misses routes from dhcp?
jjakob has quit [Ping timeout: 260 seconds]
<ris>
so... yes, it would indeed have a blind spot
<pennae>
(we don't know the answer to be clear, but that does feel like a problem)
<ris>
of course ideally i would do it at runtime, but it's actually for setting up `networking.nat`, so can't
<ris>
might try it
<ris>
this is still me working on the phoenixnap/netplan config conversion thing, the interfaces unpredictably use different vlans for the "public" interface
<ris>
could first look for a static 0.0.0.0 route, then fall back to a dhcp interface, then throw
<{^_^}>
[nix] @edolstra merged pull request #4787 → Implement `builtins.floor` and `builtins.ceil` using the C library functions internally → https://github.com/NixOS/nix/pull/4787
sss2 has quit [Read error: Connection reset by peer]
sss3 has joined #nixos
ahmedelgabri has joined #nixos
jgt_ has quit [Ping timeout: 246 seconds]
ahmedelgabri has quit [Ping timeout: 260 seconds]
rj has quit [Ping timeout: 240 seconds]
<CodeBitCookie[m]>
should I switch to nixos-unstable channel
<CodeBitCookie[m]>
more over is it fully bleeding edge i.e the latest of the latest or half bleeding edge i.e approximately latest version
<cole-h>
It's the latest of the latest that passes tests :)
meh` has joined #nixos
DerHorst_ is now known as DerHorst
<catern>
this is very basic, but: how is the acme nixos module supposed to work if I'm already running a webserver?
rj has joined #nixos
griff_ has quit [Quit: griff_]
<noonien>
CodeBitCookie[m]: that's a question only you can answer. some people do it, i don't see a reason to.
<noonien>
i just pick and choose packages from unstable, and, in some cases, i update them to a more latest version than unstable myself
<bbigras>
CodeBitCookie: Many of use are using unstable. I don't remember the last time I had a problem.
<hrnz>
I have problems all the time
<hrnz>
they're probably unrelated to using unstable though
<noonien>
i consider unstable a beta branch, you might not have many issues, but there are probably more than in stable
<hrnz>
do you consider software-rot an issue? :>
<noonien>
i'm not sure software-rot exists
<noonien>
i see no need to update software most of the time. only if i need a feature that's not available, or a bug is fixed, the only reason i update packages is just so i can ge the ocasional performance and security improvements
<noonien>
some packages i have to pin back because newer versions are bugged, and i'm sure most actually get slower with time
<bbigras>
unstable for me is like using Arch but with an undo button (rollbacks). I use stable on the servers at work since I want to maintain them at the minimum. While I don't care tweaking my desktop. And I use the same config (with variations) for my laptop, vps and phone.
sss3 has quit [Ping timeout: 268 seconds]
sss3 has joined #nixos
dev_mohe has joined #nixos
sss3 has quit [Read error: Connection reset by peer]
<phalrax>
Anybody using blackbox exporter? when I disable services.prometheus.exporters.blackbox.enableConfigCheck it apparently doesn't read the file from the configFile option at all so the exporter isn't working
<CodeBitCookie[m]>
<justanotheruser "CodeBitCookie: you might conside"> can I do it with a rolling realease style
jgt_ has joined #nixos
<phalrax>
but when it's enabled it shows an annoying message (telling me how to turn it off, but if I do it doesn't pass the config file...) every time I switch to a new config
<bbigras>
CodeBitCookie: wouldn't using unstable be like a rolling release?
<justanotheruser>
nixos-unstable seems less stable than the latest release on other major rolling release distros
rj has quit [Ping timeout: 240 seconds]
<justanotheruser>
try out unstable, if it works for you keep it, otherwise revert
riksteri has quit [Quit: riksteri]
<justanotheruser>
or figure out what's broken, and get that from 20.09
<bbigras>
I'm not sure everyone here agrees with that. I mean a lot of use are using unstable as a rolling release.
ddellaco_ has quit [Remote host closed the connection]
<Harry54>
i wanted to generate perl-bindungs for `graphicsmagick`.
<Harry54>
currently i am stuck with the error: `cycle detected in the references of '/nix/store/3w636dbw61wpzpx3h0724b3pr5vznb3h-graphicsmagick-1.3.36' from '/nix/store/j0dxaq1dcb12grm0lbv65hf6780v2ix9-graphicsmagick-1.3.36-dev'`
<Harry54>
can someone please explain what does this mean? and what do i have to do to fix it?
<Harry54>
my goal is to compile graphicsmagic and move the perl files to the `-dev` part. Then when compiling the perl-package i want to get these files and use the general `buildPerlPackage`
<Harry54>
thanks for any help in advance
rubm has joined #nixos
<cole-h>
yokwe: Go ahead and `source` it and try again. See if that helps things.
<yokwe>
nix search spotify -u
<yokwe>
warning: Nix search path entry '/root/.nix-defexpr/channels/nixpkgs' does not exist, ignoring
<yokwe>
error: no results for the given search term(s)!
<ajshell1>
I have a problem. I'm trying to run a simple bash script of my own creation, but it isn't running. ./scriptname: /bin/bash: bad interpreter: No such file or directory
<ajshell1>
I'm guessing this is because Nixos doesn't actually put bash at /bin/bas]h
<cole-h>
Have you tried `/usr/bin/env bash` as your shebang?
<ajshell1>
I'll try that, but only if that won't break my scripts on other Linux distros
<cole-h>
I'm fairly certain all FHS-conforming distros have /usr/bin/env
<cole-h>
And the only reason NixOS has /usr/bin/env is to slightly reduce pain when migrating from those
<yokwe>
cole-h: for sure, nix's pkg mgr is really great!
sss3 has joined #nixos
<cole-h>
(FWIW: NixOS also has /bin/bash, so I don't know why that wouldn't work.)
<ajshell1>
cole-h: should that shebang include an exclamation point or not?
<cole-h>
`#!` is the shebang ("hash bang")
<cole-h>
Both are required for expected functionality
<ajshell1>
Just making sure. thanks
andreas303 has quit [Ping timeout: 240 seconds]
andreas303 has joined #nixos
<ajshell1>
Switching over should be pretty painless with `sed -i 's|/bin/bash|/usr/bin/env bash|' *`
sss3 has quit [Read error: Connection reset by peer]
gustavderdrache has quit [Quit: Leaving.]
civodul has quit [Quit: ERC (IRC client for Emacs 27.2)]
gustavderdrache has joined #nixos
erasmas has quit [Quit: leaving]
beertoagunfight has quit [Ping timeout: 240 seconds]
johnnyfive has joined #nixos
<maralorn>
Anything known about qtwebkit-5.212.0-alpha4 being broken on master?
<CodeBitCookie[m]>
Hey, I got into understanding derivations and the such but I don't understand what packages I should install with nix-env and/or the user specific packages or system wide packages
<CodeBitCookie[m]>
meaning why can't I just put all the packages in configuration.nix
lsix1 has quit [Ping timeout: 276 seconds]
<CodeBitCookie[m]>
or with home manager put all the packages in home-manager config?
lsix1 has joined #nixos
ddellaco_ has quit [Remote host closed the connection]
<fuiltilt>
CodeBitCookie[m]: You can do that if that's what makes sense to you. Especially if you're using home-manager, it's likely better to use that for per-user packages instead of nix-env.
<winterqt>
I'm trying to use crystal2nix on a project, but it keeps throwing `Unsupported shard.lock. It was likely generated from a newer version of Shards.`
<winterqt>
However, this even occurs if I rollback to a version of the project from last year, so I'm not sure what's wrong...
<winterqt>
Anyone got any clue?
rubm has quit [Ping timeout: 260 seconds]
<winterqt>
hmm
<winterqt>
the dependencies used in crystal2nix are new enough to be supported it seems..
rubm has joined #nixos
<{^_^}>
[nixpkgs] @maralorn pushed to haskell-updates « haskellPackages: Deactivate build for packages broken by relying on webkitgtk »: https://git.io/J3jZD
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/J3j8X
ajshell1 has joined #nixos
monokrome has quit [Ping timeout: 252 seconds]
<ajshell1>
So I just ran into an issue. I tried nixos-rebuild switch and I'm getting this error: `error: file 'nixpkgs/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13`
<ajshell1>
I haven't tried switching channels or anything
monokrome has joined #nixos
<ajshell1>
This is my $NIX_PATH `nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels`