<jlv>
How can I clean a NixOps state? I have a deployment with some resources that no longer exist, but are still in the state file. I can't `nixops destory` them, becuase NixOps throws an error that they don't exist.
blaggacao has quit [Read error: Connection reset by peer]
blaggacao has joined #nixos
helozjisky has quit [Remote host closed the connection]
helozjisky has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
drakonis has joined #nixos
gustavderdrache has quit [Quit: Leaving.]
abathur has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
nwops has joined #nixos
<Irenes[m]>
so, I'm doing some low-level development and as part of my workflow, I am trying to write a derivation that builds a NixOS SD image
<Irenes[m]>
the recommended way to build an installer image is
<Irenes[m]>
nix-build nixos -I nixos=config=nixos/modules/installer/cd-dvd/sd-image-aarch64.nix -A config.system.build.sdImage
<Irenes[m]>
I know it's not really a supported thing, but I've been trying to build this as, like... (pkgs.nixos { config = nixos/modules/installer/cd-dvd/sd-image-aarch64.nix; }).config.system.build.sdImage
<Irenes[m]>
or something along those lines
<Irenes[m]>
it does not seem to be working, which I guess is not surprising because it's a bizarre thing to do
<Irenes[m]>
does anybody know whether there is some trick along these lines that actually works? I would prefer not to shell out to nix-build within my nix config...
<Irenes[m]>
hmm. it is possible that it will work if I can figure out everything it needs to be passed and how. the error messages are hard to interpret.
<Irenes[m]>
thank you for the suggestion to just use .sdImage
<Irenes[m]>
I didn't know that was there
<arcnmx>
there's the little catch in that pkgs.nixos differs slightly from import <nixpkgs/nixos> in the way you pass the config and access the results, but besides that... it should build the same output as nix-build would there
<Irenes[m]>
hm
<Irenes[m]>
that's what I was hoping for
<Irenes[m]>
are there docs on this or anything?
<arcnmx>
not sure :<
<Irenes[m]>
well, I think this is enough of a breadcrumb, I can read the source
<Irenes[m]>
thank you
boxscape has quit [Remote host closed the connection]
felixfoertsch23 has joined #nixos
h0m1 has quit [Ping timeout: 240 seconds]
CMCDragonkai1 has quit [Ping timeout: 256 seconds]
felixfoertsch has quit [Ping timeout: 240 seconds]
<colemickens>
so if you don't add/set the profile, then the system doesn't know about it, you basically switched to an "ephemeral" profile
<colemickens>
I hate the Nix CLI
<colemickens>
there I said it
<colemickens>
this nix-env is what actually makes the system build a generation, rather than just being another random store output
<cole-h>
Hot take 👀
<lovesegfault>
That's not a hot take :P
<lovesegfault>
it's a "we all agree" take
<colemickens>
Yeah, I wouldn't be so callous (well, maybe) if I didn't think it was a shared opinion.
helozjisky has quit [Remote host closed the connection]
<lovesegfault>
brb, rebooting to test
lovesegfault has quit [Quit: WeeChat 2.7.1]
helozjisky has joined #nixos
<kolbycrouch>
Hi all. I'm wondering if anyone knows the proper way to deduce the configured buildCores for use in buildPhase directly. Right now I'm usng "jobs = "$NIX_BUILD_CORES" and make -j$jobs during the buildPhase, but that's causing a lot more compiler jobs than I configured for.
lovesegfault has joined #nixos
<lovesegfault>
HAHAHAHAHA
<lovesegfault>
IT WORKS
* colemickens
is still surprised when people actually part rooms
<lovesegfault>
IT WORKS
<colemickens>
lovesegfault: btw ls /boot/loader/entries will tell you if it worked too ;)
<lovesegfault>
colemickens: I don't have a bouncy-bounce
<colemickens>
and then a bit longer to figure out that nix-env was the magical tool.
<colemickens>
PLUS, you can't use nix-env the same way you do for other named profiles, it seems like the system one is special-cased slightly, but I digress.
<lovesegfault>
and I got drop-in overlays and drop-in users working as well
zaeph has joined #nixos
<clever>
nice
<lovesegfault>
thanks for all the help :)
<clever>
yep
<lovesegfault>
brb, one last reboot
lovesegfault has quit [Quit: WeeChat 2.7.1]
orivej has joined #nixos
magnetophon has joined #nixos
kenran_ has joined #nixos
kenran has quit [Quit: leaving]
<kitemikaze>
Hello, I'm looking for slides I could take inspiration from for a short introduction to NixOS. Is there anything available endorsed by the community ?
philr has quit [Ping timeout: 240 seconds]
kenran__ has joined #nixos
zupo has joined #nixos
kenran__ has quit [Client Quit]
kenran has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lovesegfault>
clever: have you used morph before?
<lovesegfault>
flokli: mentioned it as a saner alternative to NixOps
<kitemikaze>
simpson: Thank you, but I'm more looking for slides who could help me to "sell" the magics ! I want to convince part of my company to start using nixos !
<lovesegfault>
kitemikaze: I helped convince my company to use NixOS
<lovesegfault>
unless you have a really strong Ops/SRE team who is willing to learn a _lot_ I would not recommend it
<lovesegfault>
it's definitely still a point of contention for us
<simpson>
kitemikaze: Ah. That is a lot harder. I don't know how to convince coworkers of technical merits.
<kitemikaze>
yep that's a bit the problem... but I'm so tired fixing prcedural ansible stuff all the time....
<lovesegfault>
Heh, we use ansible too
<lovesegfault>
If you manage to get an Ansible team to convert to Nix you might want to change careers and become a salesperson
<lovesegfault>
or maybe a messiah
<maddo>
I've never convinced a tech person to use something they're not already accustomed with
<maddo>
even if that meant keeping alive a SPARC server with Solaris 10
<kitemikaze>
:-)
<maddo>
(thankfully they moved on from that)
<simpson>
I had to shove Nix down my team's throats, sneaking it into Dockerfiles and checking in shell.nix files that nobody else used. I only was allowed to do it because I explicitly put in effort to maintain the existing workflows.
<lovesegfault>
maddo: SWEs love change... when they're the ones doing it
<lovesegfault>
We're generating docker with Nix now
<kitemikaze>
I think the transition should be very progressive... create simple vm with modules... and then we bring more complex stuff with nix language, pkgs
<lovesegfault>
for the people that use macOS
<maddo>
I'm getting started with nix, barely as my freetime is unfortunately lacking these times
<simpson>
kitemikaze: It needs to be *incremental*, and that might not mean starting at the bottom, but starting with something light and high-level, or something greenfield.
<kitemikaze>
lovesegfault: sounds very cool ! keep going !
<maddo>
my career has little to do with computers in general, so I can only spend my free time learning about such things
<kitemikaze>
simpson:
<kitemikaze>
simpson: yep agree
<kitemikaze>
I'm in a kind of r&d dep. so I've that kind of "liberty" to spread state of the art techno which we could keep on the radar.
kolbycrouch has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @ivan-timokhin opened pull request #82044 → Junicode: update to 1.002 and correct license → https://git.io/Jvr96
butterthebuddha has joined #nixos
lovesegfault has quit [Ping timeout: 272 seconds]
<coderobe>
argh wtf - nixops send-keys is not bringing up the -key.service for some reason
lovesegfault has joined #nixos
<Orbstheorem>
Hello, I'm trying to package an app that ships a bunch of shell scripts. I tried patching then with `find "$out/etc/schroot/setup.d/" -type f -exec patchShebangs --host '{}' \;` but they still don't have access to the packages in the buildInputs.
zebrag has joined #nixos
<Orbstheorem>
(don't have access to the buildInputs on runtime)
inkbottle has quit [Ping timeout: 265 seconds]
butterthebuddha has quit [Ping timeout: 240 seconds]
<symphorien>
patchShebangs only patches shebangs. To add something to the PATH at runtime, use wrapProgram
werner291 has joined #nixos
werner291 has quit [Remote host closed the connection]
<ottidmes>
I am trying to make an IP camera available on a website. I managed to get it working on my local NixOS server when streaming with VLC, but all web based solutions fail, so rather than using nginx as I am doing now, I plan to use restreamer. Restreamer is only available as a docker image, but I never used docker, let alone on NixOS. Is this still one of the easiest way to get started:
tokudan has quit [Remote host closed the connection]
tokudan has joined #nixos
opthomasprime1 has joined #nixos
noudle has joined #nixos
<ottidmes>
Alright, that was super easy, just following the wiki to enable Docker and running the command as-is worked. Only confusing thing was that I did add my user to the docker group, but still got a permission denied error, so just ran it as root
kenran has joined #nixos
kenran has quit [Client Quit]
Rusty1 has joined #nixos
Ariakenom has joined #nixos
v88m has quit [Ping timeout: 260 seconds]
<Ariakenom>
I got "cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': Connection refused" just now
opthomasprime1 has quit [Remote host closed the connection]
<Orbstheorem>
ottidmes: Did you log out + log in after adding yourself to the docker group ?
<Orbstheorem>
Linux groups are set at login time by PAM (in a nutshell)
<Orbstheorem>
If you don't want to log out, you can get a shell with a session with a new group using `newgrp`.
<Orbstheorem>
You can see `credentials(7)` if you want to understand how it works.
<ottidmes>
Orbstheorem: thought it was something like that or maybe having to restart Docker, will try restarting, thanks
helozjisky has quit [Remote host closed the connection]
helozjisky has joined #nixos
<ottidmes>
Orbstheorem: doesn't NixOS do something like that automatically if you change them in your config and nixos-rebuild switch, never really ran into this, but then again I don't add user groups that often to really notice
<RRedcroft>
Hi guys, can anyone help me update a package in nixos? Not sure how i go about modifying it for upstreaming
kvda has joined #nixos
<ottidmes>
Orbstheorem: the relogin worked, thanks!
<tokudan>
has anyone already dealt with nextclouds "Exception: Updates between multiple major versions and downgrades are unsupported." when updating nixos from 19.09 to 20.03?
<MarcWeber>
I have issues booting an SSD (efi). I /efi is lower case (which probbaly shouldn't matter) but I cannot find /efi/BOOT or such.
<MarcWeber>
The systems I have which work do have that.
<simpson>
RRedcroft: What have you tried so far?
<RRedcroft>
currently modifying a package using override, but the latest version requires more libraries
<ottidmes>
tokudan: maybe stateVersion related? maybe check the readme of 20.03 if available?
<MarcWeber>
In the systemd-boot (gummiboot) case, is there a copyKernels as well or can gummbioot luksOpen encrypted disks on it's own ?
<RRedcroft>
simpson: how do i pull a copy of default.nix into my configuration.nix while i debug to figure out what needs fixing? ive tried importing default.nix but that doesn't work
<tokudan>
otti0815, there's nothing regarding nextcloud yet. guess I'll have to write it.
<simpson>
RRedcroft: I would take an entirely different approach: Get a local copy of nixpkgs, and alter the local copy directly. After confirming that your changes work, send a pull request upstream.
<MarcWeber>
RRedcroft <nixpkgs>/default.nix has some options. Maybe pass them before accessing a package if you import it.
linarcx has joined #nixos
helozjisky has quit [Remote host closed the connection]
abathur has joined #nixos
helozjisky has joined #nixos
<Orbstheorem>
ottidmes: <doesn't NixOS do something like that automatically>: Yes and no, NixOS (or anything actually) can't do much about your current shell without being overcomplicated, extremely precise and mostly unusable in the general case. The standard linux security model enforces this.
<Orbstheorem>
Oh, he left :(
zupo has joined #nixos
nilsirl[m] has quit [Quit: authenticating]
nilsirl[m] has joined #nixos
blaggacao has quit [Ping timeout: 260 seconds]
blaggacao has joined #nixos
blaggacao has quit [Read error: Connection reset by peer]
<omnipotententit4>
I have a build that wants gcc8Stdenv if a particular option is set, and stdenv if it is not. What's the least stupid way to do that?
<omnipotententit4>
Would something like: `let env = if a then gcc8Stdenv else stdenv; in env.mkDerivation(...)` work?
rogue_koder has joined #nixos
blaggacao has quit [Ping timeout: 256 seconds]
blaggacao has joined #nixos
<evils>
Ariakenom: that probably depends on the age and make of GPU
<evils>
omnipotententit4: try it? :D
<omnipotententit4>
I think it will work, so I'm writing the rest of the derivation. Can't try it until I finish it, so I figured I'd ask while I'm writing the rest of it up, so I'll know.
<omnipotententit4>
I'll find out in like 10 minutes either way though
<{^_^}>
[nixpkgs] @grahamc pushed to arm-bootstrap « armv{5tel,6l,7l}: update bootstrap tools after #80497 »: https://git.io/JvrpH
<__monty__>
So, weird borgbackup issue. I'd originally configured the service to back up to a local repo. However, I never created the directory because I thought borg would create it. I then changed all the borg backups to use a remote repo. Now 1 of the jobs is trying to back up remotely and failing, will have to look into that more. But first, the other jobs are still trying to back up to the local repository,
<__monty__>
which still doesn't exist. Anyone run into this before? How could only *part* of the config have taken effect?
<evils>
turion: maybe look at pkgs/top-level/haxe-packages.nix?
<turion>
Yes, it's quite sparse unfortunately :/
ixxie has joined #nixos
<turion>
There is stuff like buildHaxeLib, but it seems more like these are packages supporting haxe than packages written in haxe
achw has joined #nixos
epl692 has quit [Ping timeout: 260 seconds]
epl692 has joined #nixos
blibberblob has joined #nixos
<blibberblob>
Hi all, is there a way do instantiate something without printing it? All I want to do is verify that an attribute exists before running subsequent commands
<blibberblob>
so I can e.g. run `nix-instantiate '<nixpkgs>' -A foobar` but that can potentially be a very expensive operation
<blibberblob>
er, add an `--eval` to the above command
<mrCyborg>
Hey, I have a default.nix which will create a binary. I wish to launch a shell with that binary installed (instead of just the dev dependencies). How would I go about doing that?
h0m1 has joined #nixos
drakonis has joined #nixos
rogue_koder has quit [Quit: Konversation terminated!]
lord| has quit [Read error: Connection reset by peer]
<fresheyeball>
I want to do something like this
<fresheyeball>
Hi ${name}
<fresheyeball>
in one file, lets say foo.html
<fresheyeball>
then in a nix file
<fresheyeball>
let name = "Jeff"; in writeText "foo.html" (readFile ./foo.html)
lord| has joined #nixos
<fresheyeball>
which evals, but doesn't do the interpolation
<fresheyeball>
if I replace `readFile ./foo.html` with an equivelant string literal
<fresheyeball>
it works
<samueldr>
readFile only reads the file to a string, while using interpolation ("${name}") first interpolates, then stores that string
<fresheyeball>
samueldr: can this work somehow? I really don't want giant string literal in this file
gila has joined #nixos
<samueldr>
generally it's done using substituteInPlace or substituteAll in a build
<samueldr>
though it's not 1:1
<rooke>
mrCyborg: I'm not sure its the right way to go about it but how I've done it is just named that default.nix to the name of the binary it's building. I then include that derivation in my default.nix using `callPackage`
<rooke>
in my new default.nix*
<fresheyeball>
samueldr: those functions look kinda dirty
chreekat has quit [Quit: quitting]
gila has quit [Ping timeout: 240 seconds]
<manveru>
fresheyeball: i'm using builtins.scopedImport in euphenix
<omnipotententit4>
`var = '' foo'' + lib.optionals bar ''baz''
<omnipotententit4>
* `var = '' foo'' + lib.optionals bar ''baz'';` gets upset, what's the proper way to do what I'm trying?
<omnipotententit4>
* `var = '' foo'' + lib.optionals bar ''baz'';` gets upset (error: cannot coerce a list to a string), what's the proper way to do what I'm trying?
<omnipotententit4>
* `var = ''foo'' + lib.optionals bar ''baz'';` gets upset (error: cannot coerce a list to a string), what's the proper way to do what I'm trying?
<omnipotententit4>
(ie, if bar then ''foobaz'' otherwise ''foo'')
<{^_^}>
[mobile-nixos] @samueldr opened pull request #90 → initrd: Add `initrd-meta` build output, with ncdu metadata → https://git.io/JvovG
ashkitten has joined #nixos
<mrCyborg>
Hey! I'm writing a program called cleanup and it opens a file with $EDITOR. This file is similar to the file git-rebase opens. I have written a custom vim syntax for this file which my package stores in $out/share/vim/vimfiles. Unfortually vim only reads the runtime files from /nix/store/...-vim, instead of /run/current-system/sw.
opthomasprime has quit [Remote host closed the connection]
<mrCyborg>
So running cleanup on nixos means that no syntax is highlighted, while running VIMRUNTIME=/run/current-system/sw/share/vim/vim82 cleanup makes everything work fine
opthomasprime has joined #nixos
opthomasprime has quit [Remote host closed the connection]
<mrCyborg>
So I guess the only way to add custom syntax on nix would be to modify the vim package to have a different VIMRUNTIME? Just like how man looks in /run/current-system/sw?
blaggacao has quit [Ping timeout: 240 seconds]
<mrCyborg>
Or is there a more nix solution I'm not seeing here?
orivej has joined #nixos
noudle has quit []
o1lo01ol1o has joined #nixos
vika_nezrimaya has joined #nixos
<nerdmaxx>
/quit
nerdmaxx has quit [Quit: Lost terminal]
jonten has quit [Ping timeout: 256 seconds]
<symphorien>
the usual solution is to install a vimWithCleanup instead of just vim
<symphorien>
a bit like there is (python.withPackage (ps: [ ps.foo ]))
clove837 has quit [Quit: Leaving]
M-Gregoire495 has quit [Ping timeout: 260 seconds]
mjrosenb has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mrCyborg>
symphorien: Thanks. I guess man was special-cased because it would be too anoying to manually specify which packages man would need to search?
kyren has joined #nixos
<{^_^}>
[mobile-nixos] @samueldr opened pull request #91 → rootfs handles cross-compilation with a dummy rootfs → https://git.io/Jvovx
cosimone has quit [Quit: Quit.]
<bqv[m]>
,locate libpq
<{^_^}>
Found in packages: postgresql95, postgresql96, postgresql_10, postgresql_11
<bqv[m]>
oh
<bqv[m]>
of course
<{^_^}>
[mobile-nixos] @samueldr opened pull request #92 → boot/gui: Fix console restoring on exit → https://git.io/Jvoft
<manveru>
srk: not all builtins are usable via __, haven't really looked into why yet, but it must be some quirk of the parser
zupo has joined #nixos
<manveru>
i first found it when i just tried <tab> in a nix repl :)
<manveru>
it really seems arbitrary that toString just works, but you have to write __toJSON
<{^_^}>
[nixpkgs] @veprbl pushed 2 commits to release-20.03: https://git.io/JvofS
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<{^_^}>
[mobile-nixos] @samueldr closed pull request #35 → initrd-network: Be more resilient in identifying interfaces → https://git.io/Jvofd
<{^_^}>
[mobile-nixos] @samueldr merged pull request #88 → Update lvgui for better pointer support → https://git.io/JvV3P
<{^_^}>
[mobile-nixos] @samueldr pushed 3 commits to master: https://git.io/Jvofp
<mrCyborg>
bqv[m]: Awesome! I wanted to try ripcord for a while now. I'll see if it works for me but I don't think i know nix enough to give feedback on the code.
johnw has joined #nixos
<bqv[m]>
:)
knupfer has quit [Remote host closed the connection]
<{^_^}>
#81735 (by JeffLabonte, 4 days ago, open): Protonvpn ng update 2.2.0 to 2.2.2
gila has joined #nixos
fendor has quit [Read error: Connection reset by peer]
blaggacao has quit [Ping timeout: 256 seconds]
blaggacao has joined #nixos
rardiol has quit [Ping timeout: 240 seconds]
gila has quit [Ping timeout: 258 seconds]
<ashkitten>
is there a way to step through a nix build manually for debugging?
rardiol has joined #nixos
zeta_0 has joined #nixos
<evils>
bqv[m]: since you asked for frustration, given that nix also runs on darwin (macos), is the distribution of the modified result your package creates still allowed by ripcord's conditions?
<{^_^}>
[nixpkgs] @domenkozar merged pull request #80921 → buildLayeredImage: Allow empty store, no paths to add → https://git.io/Jv0jE
<{^_^}>
[mobile-nixos] @samueldr pushed 3 commits to master: https://git.io/JvoJD
<MarcWeber>
ashkitten: you can always add find to the build script. Depending on systmed you might be able to drop privateTmp or such then you'll find /tmp/nix-build*
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
AFKRozy has joined #nixos
linarcx has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @aaronjanse opened pull request #82079 → flyctl: init at 0.0.102 → https://git.io/JvoUP
AFKRozy has quit [Ping timeout: 258 seconds]
never_released has quit [Ping timeout: 265 seconds]
never_released_ has joined #nixos
mjrosenb has quit [Ping timeout: 260 seconds]
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
philr has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
nerdmaxx has quit [Quit: WeeChat 2.7.1]
mrCyborg has quit [Quit: WeeChat 2.7.1]
vidbina has joined #nixos
koleesch has quit [Remote host closed the connection]
koleesch_ has joined #nixos
maddo has quit [Quit: See ya]
o1lo01ol1o has quit [Remote host closed the connection]
<omnipotententit4>
I'm having a bit of a bother with making a package. The following works: `nix-env -f ~/work/nixpkgs/ --install -E "p: (p {}).katago.override { useCUDA = true; }"` However this does not work: `nix-env -f ~/work/nixpkgs/ --install katagoWithCuda`, I do have that derivation specified in `all-packages.nix` and it looks like: `katagoWithCuda = callPackage ../games/katago { useCUDA = true; };`, what am I doing wrong?
o1lo01ol1o has joined #nixos
<omnipotententit4>
Error is: `error: selector 'katagoWithCuda' matches no derivations`
<{^_^}>
[nixpkgs] @veprbl pushed commit from @bhipple to master « gnvim: upgrade cargo fetcher and cargoSha256 (#82015) »: https://git.io/JvoTR
o1lo01ol1o has quit [Ping timeout: 265 seconds]
<cole-h>
omnipotententit4: Have you tried adding `-I nixpkgs=path/to/your/nixpkgs/with/katagoWithCuta`?
Rusty1 has quit [Remote host closed the connection]
<omnipotententit4>
No, what is that supposed to do exactly?
<omnipotententit4>
It should be noted that just plain katago works as well.
<cole-h>
Well, otherwise it uses your nixpkgs channel
<cole-h>
`nix-channel --list`
<omnipotententit4>
I'm using my local copy of nixpkgs to test.
<cole-h>
Whatever shows up as "nixpkgs" is used. Which means if your channel doesn't have this `katagoWithCuda` attribute, neither will any nix commands
<omnipotententit4>
katago doesn't exist yet in official nix-channel, so it must be reading the correct area.
<omnipotententit4>
* katago doesn't exist yet in official nix-channel, so it must be reading the correct local repository.
<cole-h>
So if your `nix-channel --list` doesn't show your local copy, you need to point to it with `-I nixpkgs=.......`
<omnipotententit4>
I don't understand, shouldn't the -f flag be sufficient? It's always worked for me in the past.
<{^_^}>
[nixpkgs] @veprbl pushed commit from @bhipple to master « cargo-make: remove unnecessary attribute (#82071) »: https://git.io/JvoTr
<cole-h>
I've never used the `-f` flag (and rarely use `nix-env`). You could try 1) pointing it to the `default.nix` (or `all-packages.nix`) or 2) try adding `-I nixpkgs=localpath/`
<omnipotententit4>
`nix-env -f ~/work/nixpkgs --install katago` works, and `nix-env -f ~/work/nixpkgs/ --install -E "p: (p {}).katago.override { useCUDA = true; }`, but `nix-env -f ~/work/nixpkgs --install katagoWithCuda` does not. katago as a derivation does not exist in any channel except for my computer locally.
<omnipotententit4>
`katago = callPackage ../games/katago { };` and `katagoWithCuda = katago.override { cudaSupport = true; };` currently
<omnipotententit4>
* `nix-env -f ~/work/nixpkgs --install katago` works, and `nix-env -f ~/work/nixpkgs/ --install -E "p: (p {}).katago.override { cudaSupport = true; }`, but `nix-env -f ~/work/nixpkgs --install katagoWithCuda` does not. katago as a derivation does not exist in any channel except for my computer locally.
<{^_^}>
[nixpkgs] @flokli pushed 2 commits to release-19.09: https://git.io/JvoTX
<cole-h>
Sorry, I don't know what else to say. If you don't want to try `-I nixpkgs=~/work/nixpkgs`, you'll have to wait for someone more knowledgable to come along.
<cole-h>
Something that might be helpful for others who want to assist is temporarily pushing your changes to a nixpkgs fork, or uploading a diff somewhere, so we can try to reproduce
<OmnipotentEntity>
cole-h, I'm sorry for giving you shit earlier. Thanks for helping, honestly.
<cole-h>
Nah, you weren't. All good.
abathur has quit [Ping timeout: 260 seconds]
drakonis has quit [Read error: Connection reset by peer]
<cole-h>
nix-env is weird. You're doing everything right because I can `nix-build -A katagoWithCuda` just fine
<cole-h>
But I get the same issue as you with `nix-env`
andi- has quit [Ping timeout: 272 seconds]
<NemesisD>
is there a way i could write a script shebang for say a bash script that worked in both nix and non-nix environment? e.g. not providing an exact path to bash? `#! bash` doesn't seem to work
<waleee-cl>
NemesisD: /usr/bin/env bash ?
jgeerds has quit [Ping timeout: 240 seconds]
<OmnipotentEntity>
cole-h, nix-shell likes it too
<OmnipotentEntity>
it seems to be just nix-env that is objecting
<NemesisD>
waleee-cl: oh yeah i forgot about that. thanks!
<cole-h>
Does /usr/bin/env exist on NixOS?
<NemesisD>
it does on mine
justanotheruser has quit [Ping timeout: 240 seconds]
<waleee-cl>
cole-h: it's one of the paths that actually exists I think
<cole-h>
omnipotententity: ...I think you might just have been missing a `-A` lol
<cole-h>
`nix-env -f nixkpgsdir -iA katagoWithCuda` should work