<muzzy>
worldofpeace, well it seems to install fine, but it installs the wrong version, and asks me to download a deb to update
<muzzy>
basically the package isnt updated
ericsagnes has joined #nixos
blonkhart has joined #nixos
<worldofpeace>
https://github.com/NixOS/nixpkgs/issues/40564 <--- It seems any time there's an update it does this. I'll pr the update and backport it to 18.03. hopefully the channel will advance quick enough for you to get it soon.
<bgamari>
Does anyone have a nix expression for postgrest?
<ajmccluskey>
Is this the right place for a nixops question? #nixops doesn't seem like it's thriving.
blankhart has joined #nixos
<muzzy>
worldofpeace: thanks, I wish I could figure out how to make a diy package for nix. I need to spend more time with this OS.
<worldofpeace>
muzzy: https://hastebin.com/tasoceroqe.bash <-- You should add this to your config. It will make it so upgrades run(weekly) without you attending to them.
obadz has quit [Ping timeout: 245 seconds]
obadz has joined #nixos
<muzzy>
oh my gosh I completely forgot about that
<muzzy>
thanks for the script
<worldofpeace>
it's not a script. It should be in your `configuration.nix`. Make sure to run the rebuild with it or the changes won't actually be made.
asuryawanshi has joined #nixos
mahalel_ has joined #nixos
<muzzy>
I was confused, since it was a .bash (but not really). Thanks so much, this would have confused me for the longest time
silver_ has quit [Read error: Connection reset by peer]
dnovosel has joined #nixos
tertle||eltret has joined #nixos
<worldofpeace>
muzzy: You`re welcome
chessai has quit [Ping timeout: 276 seconds]
newhoggy_ has quit [Remote host closed the connection]
newhoggy has joined #nixos
newhoggy has quit [Remote host closed the connection]
newhoggy has joined #nixos
<ldlework>
What does it mean when nixops says "resource ‘wharf-keypair’ is obsolete" ?
<pingu_>
hyper_ch: That would have been my guess if other USB devices work, yes.
<hyper_ch>
drive does spin up though :(
<pingu_>
Power is seperate to data with USB IIRC, you could try cleaning the pins.
<samueldr>
hyper_ch: on other distros, updating the kernel and not rebooting could lead to not being able to load the appropriate drivers for new usb devices
<hyper_ch>
will try cleaning the pins, thx
war has joined #nixos
<war>
IRC SERVER ====> /server -m irc.heckmann.top
sk8forether has quit [Quit: Connection closed for inactivity]
reinzelmann has joined #nixos
mariatsji has joined #nixos
dje4321_ has joined #nixos
<dje4321_>
Is there a way to query nix about what package provides a library? program foo requires library foo.so.6 and i need to point the rpath/runpath to that library.
fragamus has joined #nixos
vasiliy_san has joined #nixos
<fragamus>
argh I have a SYSV 80386 executable and I need to patchelf it to run on my 64 bit nixos intel machine... can anyone tell me if I have to inhale much of UNIX System V or can nixos run it with some loader it has
<oldandwise>
today my fluxbox 'alt f1' no longer works.. i'm not doing any fluxbox-related changes lately...
asuryawanshi has quit [Ping timeout: 245 seconds]
<oldandwise>
.. then, i booted to last week's in boot grub menu.. still the same problem
<oldandwise>
i thought, that i could back to a complete system settings in nixos?
<vasiliy_san>
@LnL: great, thanks!
<vasiliy_san>
One more question. I am not sure if I understand the difference between derivation and environment. AFAIU build of a derivation will create some outputs (files). What about environments? When I execute `nix-shell` it can set some variables, but can it create files as well? Is there a way to explore the current environment? I can execute `nix-shell --pure --run env` to see set environment variable. Can I use something else
<vasiliy_san>
to explore current environemnt I am in?
<colemickens>
I'm going to have to flee nixos again if I can't even patchelf static go binaries. :(
<oldandwise>
why is my 'fluxbox' 'alt f1' suddenly not working?
<LnL>
colemickens: you can use a custom patchelf until it's merged, not sure who has merge writes for that
<colemickens>
Yeah, that's what I'm doing now
<colemickens>
lol
<colemickens>
there's not even a shell.nix for it
<colemickens>
and you have to bootstrap it
<oldandwise>
the only change i did, 'nixos-rebuild switch' wherein i added in configuration.nix one line boot.kernel.sysctl."vm.max_map_count" = 262144;
<Orbstheorem>
Hi, how does nixos-rebuild prepares the bootloader?
agander_ has joined #nixos
<Orbstheorem>
I'm looking for a way to given the partitioning scheme, automatically create the partitions and the filesystem inner layout (ie. btrfs's subvolumes)
oldandwise has quit [Quit: leaving]
<colemickens>
looks like I just needed to use the build target in the release.nix
<colemickens>
works for me. hooray!
agander has quit [Ping timeout: 256 seconds]
dje4321_ has quit [Ping timeout: 260 seconds]
pingu_ has quit [Remote host closed the connection]
wchresta has quit [Remote host closed the connection]
Mr_Keyser_Soze has quit [Remote host closed the connection]
mmercier has joined #nixos
Wharncliffe has joined #nixos
agander_ has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
hyper_ch2 has joined #nixos
newhoggy_ has joined #nixos
newhoggy has quit [Ping timeout: 265 seconds]
mmercier has quit [Ping timeout: 264 seconds]
kiloreux has joined #nixos
<cocreature>
how do I handle pinning of nixpkgs if I want to import nixpkgs/nixos? I tried https://gist.github.com/cocreature/be02d17401cfe0a3c4fdfc7a5504bf78 but that gives me "error: The option `system.nixos.stateVersion' defined in `<unknown-file>' does not exist." so I’m probably doing something wrong
newhoggy_ has quit [Ping timeout: 276 seconds]
thc202 has joined #nixos
ckauhaus has joined #nixos
palo has quit [Ping timeout: 276 seconds]
reinzelmann has joined #nixos
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
jackdk has quit [Ping timeout: 240 seconds]
knupfer has quit [Ping timeout: 260 seconds]
cdepillabout has joined #nixos
myshoe has joined #nixos
agander_ has quit [Remote host closed the connection]
<cdepillabout>
A few days ago I remember reading something that explained how to get NixOS to boot to the terminal without starting X. After booting to a terminal you could start the window manager like normal with `startx`.
<cdepillabout>
However, I can't find what it was that I was reading.
<cdepillabout>
Does anyone have any hints on how to do this?
<pie_>
though id try to do something about needing to run the script after every rebuild...
<pie_>
does nix provide somehing like post-rebuild hooks or something? i suppose you could alias the command or something
andymandias has quit [Ping timeout: 276 seconds]
asuryawanshi has joined #nixos
<cdepillabout>
pie_, Thanks for the link. I don't think it was that post. Although I guess I could do something like that.
<cocreature>
oh I think my approach was actually correct, I just need to remove system.nixos.stateVersion since that’s unnecessary when fetching from the channels repo
<cdepillabout>
To be honest I just wanted something super easy, like a NixOS configuration option I could switch that would just do everything for me.
andymandias has joined #nixos
<LnL>
cocreature: it's not unnecessary, it's there to keep things like databases or ssh host keys compatible with your initial installed release
<cocreature>
LnL: hm, so why do I get the error when I try to use the import shown in the gist I pasted above but not when I just use import <nixpkgs/nixos>?
<pie_>
cdepillabout, not everything is always that easy xD would be nice though i guess
ThatDocsLady has joined #nixos
newhoggy has joined #nixos
<cdepillabout>
pie_, :-p
<pie_>
cdepillabout, maybe check if theres any open issues for it, it would be convenient if you could do that imo
<pie_>
i havent tried to figure out how i can run startx yet while having the service enabled. idk a lot about how x11 works and its annoying that i cant just run startx like on other OS to start another x session
<cdepillabout>
To be completely honest, it doesn't really bother me that much. I used to use Arch Linux that way (that is to say, just login like normal and run `startx`). It is not a huge deal-breaker that NixOS can't do it. But if that option existed, I would want to enable it.
<pyvpx>
how can I explore available paths? I understand there is nixos.haskellPackages and now I'm stuck needing some python packages (flask, namely) and even after reading the nixpkgs python section I'm unsure of how to proceed (I don't need anything fancy -- just to install flask ;)
<Plato[m]>
A local nix-build with a haskell project tells me ghc: can't find a package database at /home/philipp/.cabal/store/ghc-8.2.2/package.db, so I guess the build wrongly uses some files in the source directory?
__Sander__ has joined #nixos
<adisbladis>
pie_: You can't really use startx on other distros nowadays, no?
<pie_>
adisbladis, you might have a point, ever since "everybody" geniusly took a lightning switch to systemd
* pie_
salty :p
bobblehead has quit [K-Lined]
<pie_>
pyvpx, theres a couple options for finding pachages, im probably not doing it the best way but there's https://nixos.org/nixos/packages.html i think this tracks stable, not sure. there's also the nix search command in nix 2.x i think
<cdepillabout>
@adisbladis, I'm using startx on Arch Linux, although I don't know if have done something to make it work with systemd. Or maybe I set it up to work with systemd and I just completely forgot I did it.
<pie_>
you can also use nix-repl with tab completion
<pyvpx>
pie_: I found it. I even installed flask. however when I run the interpreter, it does not find flask when importing
<pyvpx>
I'm hoping for a hand-holding level of example. the default docs make sense but I still don't quite get it -- how do I install libaries to an existing python installation?
<pie_>
pyvpx, i think using python with nix-env -i is fucky
<pie_>
not sure
<Yaniel>
you don't
<adisbladis>
cdepillabout: Iirc arch provides patches to accomplish that
<adisbladis>
It's not supported by upstream
<Yaniel>
you either use virtualenv or make custom packages for whatever you need
<pie_>
either i remember wrong or sometimes it works sometimes it doesnt
<Yaniel>
in the latter case you can use nix-shell if you need interactive sessions I think
<pie_>
Yaniel, iirc it does work if you use nix-shell right?
<pie_>
ok
<pie_>
pyvpx, probably look into py2nix
<Yaniel>
virtualenv would work even without nix-shell
<pie_>
i wish i could help more but i havent properly figured out half of this stuff :P
<pie_>
ah yeah virtualenv probably is the easiest
<FRidh>
pyvpx: you don't. Use `python.withPackages`
<pie_>
Yaniel, you might still need to use nix-shell if theres library deps you need?
<pie_>
i forgot about withpackages
<Yaniel>
unless you want to install *those* system-wide yeah
<adisbladis>
pie_: It has nothing to do with systemd. Startx was full of fugly hacks.
<pie_>
adisbladis, oh. well all i experienced was at some point i couldnt easily start another x session thing
<pie_>
on one hand i understand technical issues, on the other hand as a power _user_ its annoying
<pyvpx>
FRidh: what does that mean, exactly? if I have installed python36 from nix-env who do I add flask to that python instance?
<pie_>
if i run a full screen app that messes up my resolution id rather run it in another x instance and keep working with things in my other instance just fine without having to fix my resolution when i alt-tab
<pyvpx>
sorry for being obtuse. I've read the docs. it kind of makes sense but I dont know how to put it together to get what I want :)
<Yaniel>
pyvpx: you uninstall it with nix-env, then add python.withpackages to your configuration.nix
<pie_>
pyvpx, i dont think you're obtuse, there's a lot to learn in nix (i hope over time the learning experience can be consolidated a bit or something)
<Yaniel>
or install virtualenv, create a virtualenv and install whatever you want there in the same way you would do on other distros
<pie_>
but you have to fight with it a bit. i started learning the most when i set up nix on a second machine (you could probably just use a VM) so i could feel like im not messing anything up (Even though nix provides a relatively large amount of foot shooting protection) and started trying to set up as much as i could just with my configuration.nix
<pie_>
i think its been around for at least a couple months now?
<pie_>
i might even guess a year? idl
<pie_>
idk
<Yaniel>
well better than the one that was officially closed over a year ago
<Yaniel>
and still was more useful than the manual that was touted as *the* documentation
<pie_>
ive actually been neglecting browsing the wiki...i need to get around to it sometime
<pie_>
ive definitely gotten some use out of it before
newhoggy has quit [Read error: Connection reset by peer]
<Yaniel>
I better close that tab right now
<pie_>
hahahaha
<Yaniel>
before I suddenly notice that it's time to go home
<pyvpx>
pie_: I am using a VM. I tried NixOS becauseI could not get pandoc+dependencies working on anything else. I stick to OpenBSD. I really like NixOS so far -- great documentation. I personally need a few more concrete examples to really appreciate the concepts, though.
vasiliy_san has quit [Quit: Connection closed for inactivity]
<pyvpx>
Yaniel: okay. uninstall -- no problem. two questions -- what good is that route of installation then, if I can't add any libraries to it? like, why even be able to install python that way? (not trying to be argumentative)
<pie_>
i guess the docs are great when you can find what you need xD , or at least i think thats what i tend to have trouble with. also if you need docs for stuff in nixpkgs, i think docstrings still arent a thing but you can usually find documentation in the comments in the relevant .nix file
<pie_>
(there *is* also a nixpkgs manual but it doesnt cover everything iirc)
<Yaniel>
pyvpx: no reason to explicitly prevent it
<pie_>
pyvpx, the community is nice too, do stick aroun :D and get more people wanting nix on openbsd :PPP
<Yaniel>
and AFAIK it's not even possible to prevent it on a package level
<pie_>
(i actually want to get more openbsd experience sometime)
<Yaniel>
for playing around you can install python36Packages.virtualenv with nix-env I think
<pyvpx>
pie_: I want it *bad* already
<pie_>
pyvpx, i bet openbsd people would say its too complicated eh :P
<pie_>
dont fix what aint broken
<pyvpx>
I mean, it'd never be in base
<pyvpx>
but I also cant find a reason why it couldn't be layerd on top
<pie_>
is ports in base?
<FRidh>
pyvpx: with python.withPackages you define an environment consisting of your interpreter, along with packages you want and their dependencies.
<FRidh>
the libraries you speak of would be part of that environment
<pie_>
cant really remember. i think theres bound to be a lot of issues due to linux specific features nix depends on though i think
<FRidh>
also, at any time, you could also use `nix-shell` with `python.withPackages` to create another, temporary, environment
<pyvpx>
FRidh: so it's all in one go? my ultimate question is how do I *add* libraries to an existing environment/installation?
<FRidh>
like virtualenv, but with the advantage it picks up the non-python dependencies
<pie_>
also the deep systemd integration. but just for packages i guess you at least wouldnt have to deal with that part.
<FRidh>
pyvpx: with nix we don't install libraries
<Yaniel>
pyvpx: it's a slightly more involved question
__monty__ has joined #nixos
<FRidh>
libraries are only added as build inputs to a nix expression. Installing that result will also "install" libraries when needed
<Yaniel>
you have to think about what kind of library it is, who and how should be able to access it etc
<pyvpx>
now I openly wonder if someone has already smoothed out the python 'requirements.txt' to nixpkgs configuration.nix pipeline?
<pyvpx>
well, I guess requirements.txt is just pkg == ver
<pyvpx>
hm
ciil has joined #nixos
* pyvpx
would rather not think too hard
<FRidh>
pyvpx: if only it was so simple. A requirement is a package at a certain version. A package has dependencies, so they need to be discovered, and the whole set needs to be compatible. pypi2nix does this, however, in case of extension modules it typically requires manual steps.
<pyvpx>
pypi2nix! wonderful
<FRidh>
actually, pypi2nix uses pip for dependency resolution
<pyvpx>
ok. I was entirely clear on how pip worked in a nixpkg world
rardiol1 has quit [Remote host closed the connection]
agander has joined #nixos
<pyvpx>
__monty__: I just want this nice static blog generator to work! and I've lost two days to it -- because I'm stubborn. now I'm at the home stretch and...python in nixpkgs is holding me back haha
rardiol1 has joined #nixos
<__monty__>
pyvpx: You can always just use pip in a virtualenv.
b7r has joined #nixos
<pyvpx>
I don't fully grok how that works in a nixpkg setup, I guess
<pie_>
Myrl-saki, the sysadmin-est have lewd catgirl backgrounds though right
<tazjin>
I never see my wallpapers
<tazjin>
but it's good to know that _technically_ there is a wallpaper
<pie_>
tazjin, yup
<MasseR>
I have some issues with PATH over ssh, how can I fix this? For example if I do `ssh <domain> ls` I get back a response `zsh:1: command not found: ls`
<pie_>
inb4 should display an image permanently on one of the ttys for someone that only uses the cli
<Myrl-saki>
pie_: Oh cool. Seems like your wallpaper is vertical. Link?
<{^_^}>
[nixpkgs] @thefloweringash opened pull request #42722 → bison2: Fix Darwin runtime crash → https://git.io/f4F46
<pie_>
Myrl-saki, well it wasnt the right resolution so i just tried to pick a color in kde that fit well enough for the background fill
<pie_>
Myrl-saki, to the pic you mean?
<MasseR>
LnL: I have it enabled for that specific user, shouldn't that be enough? `users.extraUsers.masse.shell = pkgs.zsh`
<Myrl-saki>
pie_: Yep. :P
<pie_>
im probbaly going to have to reverse search it xd
<Myrl-saki>
pie_: Also, you picked a good enough color that I actually didn't realize it until my third viewing.
<LnL>
MasseR: no, that only configures the login shell of that user
<MasseR>
ah right, I'm rebuilding right now
<MasseR>
I can test soon
simukis has joined #nixos
<MasseR>
LnL: I have some users using bash on the server, does this field conflict with them?
<LnL>
no, it configures /etc/zshrc and friends
<MasseR>
+1
logzet has joined #nixos
<clefru>
Is there something like a good index of contributed nix package overlays? I'd like to start one for cryptocurrency projects, and share my .nix files for certain obscure projects out there.
<LnL>
so without that there's no zshrc and stuff like PATH and other environment veriables won't be configured
<MasseR>
I see
<{^_^}>
[nixpkgs] @Mic92 merged pull request #41846 → nixos/zfs: load encryption keys for all pools → https://git.io/vhV25
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @woffs to master « nixos/zfs: load encryption keys for all pools (#41846) »: https://git.io/f4FBU
<pie_>
clefru, i think i saw one on the wiki but im not sure
agander_ has joined #nixos
<__monty__>
Myrl-saki: Dat nicklist, why? And all the wasted space after the timestamps, why? And seconds in your timestamps, why? Need to be more economical with your screen real-estate. Oh, right, what's with the wasted space around those windows? Is this SM, sysadmasochism?
agander has quit [Ping timeout: 240 seconds]
rprije has joined #nixos
MercurialAlchemi has quit [Ping timeout: 276 seconds]
agander_ is now known as agander
newhoggy has joined #nixos
periklis` has quit [Read error: Connection reset by peer]
<infinisil>
clefru: there is <nixpkgs/pkgs/applications/altcoins>
<{^_^}>
[nixpkgs] @xeji pushed commit from @dtzWill to staging « brotli: 1.0.4 -> 1.0.5 (#42702) »: https://git.io/f4FzM
<samueldr>
Myrl-saki: booted debian or debian through something like linux deploy?
<Myrl-saki>
samueldr: Linux Deploy. :(
<samueldr>
gui through VNC then?
<Myrl-saki>
samueldr: Nope. XSDL.
<samueldr>
ah, at least
<Myrl-saki>
I'm actually sufficently surprised that everything I have here is FOSS.
<Myrl-saki>
Except for these damn firmware.
<Myrl-saki>
samueldr: Hacker's Keyboard + Linux Deploy + XSDL.
<samueldr>
I started gathering the necessary things for the nexus 7 2013 port of my project yesterday, hopefully during the week-end it boots up to stage-2, then I'll have 2 devices to verify stuff works right
rprije has joined #nixos
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
<{^_^}>
[nixpkgs] @xeji pushed commit from @jD91mZM2 to master « cargo-tree: 0.18.0 -> 0.19.0 (#42720) »: https://git.io/f4FgS
init_6 has joined #nixos
knupfer has quit [Ping timeout: 260 seconds]
sigmundv has joined #nixos
fragamus has joined #nixos
newhoggy has joined #nixos
FRidh has joined #nixos
sigmundv has quit [Ping timeout: 260 seconds]
knupfer has joined #nixos
ericsagnes has quit [Ping timeout: 240 seconds]
newhoggy has quit [Remote host closed the connection]
<fragamus>
argh I have a SYSV 80386 executable and I need to patchelf it to run on my 64 bit nixos intel machine... can anyone tell me if I have to inhale much of UNIX System V or can nixos run it with some loader it has
mariatsji has quit [Remote host closed the connection]
<MasseR>
I have a script that I want to 'make work' in nixos. It starts with a `#!/usr/bin/env python` bang line. I can make a `let script = "wrapProgram asd"; in derivation { name = "foo"; builder = "${pkgs.bash}/bin/bash"; args = [ script ], ... }` style of solution, but this seems really verbose. Basically I Just want to take a source file and call wrapProgram on it, what's the preferred way? Or is my approach wrong
<MasseR>
on a fundamental level
ajs124 has joined #nixos
ihar has joined #nixos
<srhb>
MasseR: The usual approach is to patchShebangs
<MasseR>
let's see
<srhb>
MasseR: I think you should barely need to do anything but have python (with packages, if needed) in your buildInputs and just copy the script to $out, and the default fixup should do that automatically.
<MasseR>
a basic 'stdenv.mkDerivation'?
<srhb>
That's the most obvious way I guess.
andymandias has quit [Ping timeout: 256 seconds]
MercurialAlchemi has quit [Ping timeout: 260 seconds]
<Mic92>
basically a multiuser nix for non-nixos, where nix manages the nix binary.
alter-schjetne has quit [Ping timeout: 240 seconds]
<cyso>
Hi! I'm trying to do some C++ development in NixOs using a nix-env. Now for some reason, I can't even compile a simple hello world application, because g++ always returns the error "Unknown command line option -stdlib=libstdc++; did you mean -static-libstdc++?". And I'm not even using that option, just "g++ main.cpp -o test". Any Ideas what could be the reason for this problem?
mariatsji has joined #nixos
andymandias has joined #nixos
<hodapp>
cyso: how do you mean 'using a nix-env'?
mariatsji has quit [Remote host closed the connection]
<MasseR>
srhb: If I'm not mistaken, /usr/bin/env is the interpreter and it is kept as is. However python is not in scope after adding it to buildInputs: `/usr/bin/env: 'python': No such file or directory`
<cyso>
hodapp: I created a default.nix inside the folder of my project to manage the libraries I want to include
<srhb>
MasseR: I don't know what you're doing, but the default fixupPhase will correct that interpreter.
drewr has quit [Remote host closed the connection]
<Orbstheorem>
So, I made a mr on nixpkgs 4 days ago, but still hasn't been addressed, it has tags *rebuild-*: 11-100. Does it mean my request is waiting a massive nixpkgs rebuild and test (that happens every ...?)?
<dtz>
teehee it tickles whenever a channel updates to a commit I was part of
cyso has quit [Quit: Page closed]
<mkaito>
Orbstheorem: no, it's just waiting for an actual review. ofborg just flags it for context.
<agander>
Please can someone advise - can I recover from "nix-collect-garbage -d"? Now I have no 'nix-' commands
newhoggy has joined #nixos
<andi->
Orbstheorem: looks not to bad and I can see where the need for that change comes from. Is that something we should be doing for all the lua variant?
<infinisil>
pushcx: Oh and I just recently experimented with building an xmonad config derivation. xmonad was the only thing on NixOS for me that couldn't be set up declaratively, because it needs the xmonad --recompile thing
<infinisil>
But it's surprisingly easy to get it to be declarative
<srk>
cool :)
<srk>
would love to migrate my dotfiles to home-manager when time permits
<slabity[m]>
I cannot seem to figure out how to use those tracing functions. 😕
<infinisil>
slabity[m]: `builtins.trace "foo" 10` prints foo and returns 10
<srk>
recently moved to xmobar instead of dzen and it's now mostly clone dotfiles, run script be done
<infinisil>
slabity[m]: `lib.traceVal 10` prints 10 and returns 10
<infinisil>
When evaluated only though
<pushcx>
infinisil: I haven't tried xmonad yet, so I appreciate the warning of a speedbump.
<infinisil>
pushcx: It will be easy once I get this into nixpkgs though. Or it's possible to use it without nixpkgs too
<infinisil>
I can't gist it though, it's on my other machine which I can't access right now
endformationage has joined #nixos
<slabity[m]>
`{ lib, ... }: let val = builtins.trace "Test" "test"; in { environment = val; }`
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/f4Fdg
<pushcx>
irc
<pushcx>
infinisil: No rush, I need to learn to make packages first. I'm reading through pills this morning.
<slabity[m]>
Oh yea, that works
<slabity[m]>
Thanks infinisil
<infinisil>
:)
<infinisil>
There's more debug functions in <nixpkgs/lib/debug.nix>
<pushcx>
So, I'm following the nix pills documentation and it says to install nix-repl to play in with 'nix-env -i nix-repl'. I did so as a regular user on my nixos box, but when I run nix-repl I get "error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied" Any suggestions?
mmlb37 has joined #nixos
<ldlework>
pushcx: cool, I've worked with it too
Twey has joined #nixos
mmlb37 has quit [Read error: Connection reset by peer]
<ldlework>
infinisil: is it possible to shell out to a command and store it's output as a value in something like that? I have my passwords in a password manager. I don't really want my passwords even in a private git repo.
<infinisil>
And gen.nix looks like { foo = "passwordforfoo"; bar = "passwordforbar"; }
<ldlework>
right
earldouglas is now known as punktional
<infinisil>
Yeah
<infinisil>
Something like `import (pkgs.runCommand "password" {} "<command to produce password> > $out")`
<ldlework>
infinisil: do I need to create a derivation?
<ldlework>
I see.
<infinisil>
It does use IFD though
<ldlework>
IFD?
<infinisil>
,IFD
<{^_^}>
import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2
* ldlework
looks back and forth
<infinisil>
But that's not a problem usually
<ldlework>
IFD?
<ldlework>
oh
<ldlework>
I ignored the bot
<ldlework>
,IFD
<{^_^}>
import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2
<infinisil>
(And your passwords will still end up in the nix store)
<ldlework>
hmm
<ldlework>
,IFD
<{^_^}>
import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2
<ldlework>
there we go
<infinisil>
Ahh
<ldlework>
that makes my head swirl a bit conceptually
<infinisil>
IFD is special because it needs to build a derivation at evaluation time
<infinisil>
Without IFD, evaluation and build time would be strictly sequential
<catern>
ldlework: I assume your password manager is not available in the sandbox
<catern>
in which case you can't use IFD for this
<ldlework>
I am very unclear about the nature of derivations and how they actually work so I'll take your word.
<infinisil>
Well, you just need to import the data source into it and it might just work
<ldlework>
Couldn't I just install lastpass-cli into the derivation?
<catern>
yes, if you put your password manager database into the store, then it would work I guess ¯\_(ツ)_/¯
fresheyeball has joined #nixos
<ldlework>
It gets the passwords from the internet
<fresheyeball>
hey out there
tenten8401_ has joined #nixos
<fresheyeball>
I want to do a mildly evil thing
<infinisil>
ldlework: Well what I'm doing is just running a small bash script statefully (not in Nix), to produce the gen.nix file with the passwords
<fresheyeball>
I want to use CI to deploy nixops things when my nix expression changes
<ldlework>
I see.
<ldlework>
fresheyeball: that doesn't sound very evil
reinzelmann has joined #nixos
<fresheyeball>
ldlework: I want to leverage nix's ability to memoize builds to do it
<infinisil>
fresheyeball: Memoize expressions or builds?
<fresheyeball>
builds, check out my paste
<tenten8401_>
Anyone know how I'd make NixOps use a specific channel again? I know it's something along the lines of NIX_PATH="nixpkgs=https://nixos.org/channels/nixos-18.03/" but I'm unsure what to put after the nixos-18.03 part
<fresheyeball>
its a BS derivation with an effectful builder
<sphalerite>
tenten8401_: nixexprs.tar.xz
<fresheyeball>
so I think I should be able to have CI run `nix-build` when PRs are merged
<fresheyeball>
and it will cause a deployment
<sphalerite>
tenten8401_: although with nix 2.0 you can shorten that to NIX_PATH="nixpkgs=channel:nixos-18.03"
<infinisil>
fresheyeball: Oh yeah that is evil and I wouldn't do it like that
<tenten8401_>
ooh fancy
<fresheyeball>
infinisil: how would you do it
<fresheyeball>
?
<tenten8401_>
so it'd basically be NIX_PATH="nixpkgs=channel:nixos-18.03" nixops deploy -d name?
<infinisil>
fresheyeball: I mean, you can give the CI a script to run, why not put the deploy there?
steell has quit [Quit: Lost terminal]
<fresheyeball>
because I dont want it to deploy each time there is a PR merged. I only want to deploy if the nix expression changes
<fresheyeball>
the alternative is to store hash state myself with MUTATION
<sphalerite>
tenten8401_: yep
<fresheyeball>
have like an ENV var on the box with an md5 of the nix expressions
<tenten8401_>
seems to be working, thanks!
walter1 has joined #nixos
<fresheyeball>
and then check if the new ones match in a CI script manually
<tenten8401_>
sphalerite++
<{^_^}>
sphalerite's karma got increased to 8
<fresheyeball>
I don't think I should have to do that, given that nix has it for free
<ldlework>
fresheyeball: shouldn't nix itself figure out that you're deploying what results in the same output as last time, and it wont do the deploy?
<infinisil>
fresheyeball: Oh, nixops supports not doing the deployment when nothing changed already
<fresheyeball>
infinisil: oh! what command does that?
<ldlework>
it still has to evaluate...
<infinisil>
fresheyeball: Hold on, checking
<fresheyeball>
I don't see it in the --help
<ldlework>
I feel like this is the default behavior of `deploy`
<fresheyeball>
also in a bash script with writeShellScriptBin
<fresheyeball>
I don't want it to shutdown when nixops redeploys it
<fresheyeball>
because it could kill a running build
<infinisil>
steell: Can you gist the output of `strace xmonad --recompile`?
page_ has joined #nixos
<fresheyeball>
a safe shutdown will wait for all builds to finish, then continue
<infinisil>
Ohhh you want nixops to shut down, I thought you wanted jenkins to shut down
<fresheyeball>
here is the sequence I want
<fresheyeball>
1. I merge a PR to the repo with nixops expressions in it
<fresheyeball>
2. Jenkins picks up the change and runs a job to redeploy and deployments effected by the change
<jluttine>
a python package needs to have in its PATH a binary that is installed by the package when running its tests in checkPhase. how to achieve this?
<fresheyeball>
3. If the change is to the jenkins deployment, it redeploys itself by
<fresheyeball>
4. doing a safe shutdown of jenkins
<fresheyeball>
5. then redeploying with nixops (which will bring jenkins back up reflecting the changes in git)
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
page has quit [Ping timeout: 240 seconds]
<ldlework>
if jenkins is the ci that does the deploy, and you're trying to detect a change to jenkin's own nixops expressions, who is doing the redeploy of jenkins if it shuts itself down?
<steell>
infinisil: i actually "fixed" it by installing ghc with nix-env, but now have a new issue where none of the xmonad haskell libraries are found when compiling xmonad.hs
<infinisil>
steell: It's supposed to be wrapped with a GHC that has the correct libraries, again, can you share the gist of strace?
hxrts has quit [Remote host closed the connection]
<infinisil>
fresheyeball: Try if you can do something with --build-only or --dry-run
<infinisil>
I'm not really in favor of trying to hammer Nix, meant for pure builds, into something that statefull does stuff, just so you can avoid using anything other than nix-* commands
<infinisil>
State has it's place
<infinisil>
its*
acarrico has joined #nixos
<infinisil>
And if the above idea doesn't work, then the 'correct' solution would be to extend nixops so it can do it
<infinisil>
steell: Not when you have ghc installed to "fix" it..
<infinisil>
This way the original error isn't there anymore of course
alex`` has quit [Ping timeout: 260 seconds]
<steell>
sorry, on it
chessai has joined #nixos
<steell>
infinisil: gist updated
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
andymandias has quit [Ping timeout: 240 seconds]
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nixos
<jluttine>
well, this is weird.. ould not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/nix/store/nwsww2h72aa6040sg3yzprl9qrhkgymx-python-2.7.15/lib/python2.7/site-packages/salmon-mail.egg-link'
<jluttine>
s/ould not/Could not/
<fresheyeball>
infinisil: looks like build-only and dry-run return exit code 0, even if no changes happened
<infinisil>
fresheyeball: Maybe something to get with stdout/stderr
<jluttine>
do i need to manually set permissions to files that go to store?
<infinisil>
steell: Can you add the output of `cat $(which xmonad)` to the gist?
<infinisil>
jluttine: I'm pretty sure Nix is supposed to set all files readable by everyone
<fresheyeball>
infinisil: what do you mean?
<infinisil>
fresheyeball: grep stdout/stderr or so, maybe extract the .drv from the output if it displays it
<jluttine>
-rw-r----- 1 root root 33 Jun 28 21:24 /nix/store/nwsww2h72aa6040sg3yzprl9qrhkgymx-python-2.7.15/lib/python2.7/site-packages/salmon-mail.egg-link
<fresheyeball>
infinisil: why do I need to do that?
andymandias has joined #nixos
<fresheyeball>
oh, I see, just see if it outputs any drv?
<infinisil>
jtojnar: That file doesn't exist
<infinisil>
Wait
<infinisil>
jluttine: Why does that file exist for you?
<infinisil>
I just checked and it doesn't for me
<infinisil>
fresheyeball: Yeah, you could save the drv path, and detect if it changed by comparing it to the last deploy run
<fresheyeball>
I am trying to avoid maintaining that mutable state
spear3 has joined #nixos
spear2 has quit [Read error: Connection reset by peer]
<infinisil>
Deployments have state though.. you can't avoid that
<jluttine>
infinisil: i'm trying to upgrade pythonPackage.salmon-mail. testing my setup with `nix-shell -p pythonPackage.salmon-mail` and i get the permission error :/
<steell>
infinisil: to confirm, you want the contents of the binary?
<infinisil>
steell: Does running `$(nix-build --no-out-link '<nixpkgs>' -A xmonad-with-packages)/bin/xmonad --recompile` give an error too? (Might take a while)
<jluttine>
my computer was acting a bit strangely about 15mins ago. everything was really slow. i had some nixos-rebuild running on the background so i thought it was that, but still it was really really slow, and it wasn't compiling anything. i'm wondering if there was some hard drive malfunction..? but how could that result in wrong permissions. i'd expect it to produce some nonsense
<infinisil>
That might as well be the case
<infinisil>
disk malfunctions aren't unheard of
<steell>
infinisil: that appears to work, but doesn't include xmonad-contrib and xmonad-extras
<steell>
according to the compilation errors, at least
<infinisil>
steell: Yeah, you seem to not have installed xmonad-with-packages actually
<fresheyeball>
infinisil++
<{^_^}>
infinisil's karma got increased to 10
<steell>
hmm i will rollback the generation and try again
<infinisil>
Then check again if `cat $(which xmonad)` is still a binary (it shouldn't be)
<steell>
infinisil: error: packages '/nix/store/qgz00795zjdmvd62lawp8n0cp5h82iw5-xmonad-with-packages/bin/xmonad' and '/nix/store/gwsyv09kp1rwjpllcq3gi0rsn4higwy4-xmonad-0.13/bin/xmonad' have the same priority 5; use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' to change the priority of one of the conflicting packages (0 being the highest priority)
nschoe has quit [Read error: Connection reset by peer]
<infinisil>
Ah yes, uninstall the other one
<infinisil>
steell: And then, to actually get your contrib & extras packages, you'll have to do something else too
<infinisil>
(putting together an expression to run)
MichaelRaskin has joined #nixos
phreedom has quit [Remote host closed the connection]
<infinisil>
Should probably work, alternatively, use a nix file to declaratively install packages
<infinisil>
steell: Oh, and if you want an easy way to uninstall something, use `nix-env -q | fzf | xargs -I{} nix-env -e {}` (needs fzf installed)
dbmikus_ has quit [Ping timeout: 260 seconds]
dbmikus_ has joined #nixos
phdoerfler has joined #nixos
freeman42x]NixOS has joined #nixos
pikajude has joined #nixos
jtojnar has quit [Quit: jtojnar]
<pikajude>
hello
<pikajude>
my hydra isn't actually running any builds
<pikajude>
they've been stuck in queue for a long time
<pikajude>
what am i doing wrong
reinzelmann has quit [Quit: Leaving]
jtojnar has joined #nixos
<jluttine>
there were indeed a few nix store paths that were mutated. :o anyone else have similar issues? for instance, /nix/store/s7jlb60pgwp308gp85han2p31vz0n792-python3.6-pyOpenSSL-17.5.0 and /nix/store/x9yd5nwcqndjmqzpysfhl426wwpzbqz9-python2.7-bootstrapped-pip-10.0.1 were mutated
<jluttine>
i'm a bit worried now
mariatsji has quit [Remote host closed the connection]
heyho has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 pushed to master « lxd: also needs ebtables »: https://git.io/f4bz7
<steell>
infinisil: error: attribute 'xmonad-with-packages' missing, at (string):1:7
<heyho>
is there some easy way to setup plasma to use wayland? (sddm)
<infinisil>
steell: ah, use 'pkgs: pkgs.nixpkgs.xmonad-with...' instead
<steell>
infinisil: error: value is a function while a set was expected, at (string):1:7
<infinisil>
damnit, umm
colonel_john_by has joined #nixos
<pikajude>
this has historically been an issue with hydra, hasn't it
<pikajude>
it doesn't say why a job isn't buildable
<infinisil>
steell: Just write a nix file with the contents `with import <nixpkgs> {}; xmonad-with-packages.override { packages = self: with self; [ xmonad-contrib xmonad-extras ]; }` and install that with `nix-env -if file.nix`
<{^_^}>
[nixpkgs] @matthewbauer pushed 7 commits to master: https://git.io/f4bgo
chessai has quit [Ping timeout: 268 seconds]
blankhart has quit [Ping timeout: 264 seconds]
<infinisil>
This nix-env -E thing is weird
sir_guy_carleton has quit [Ping timeout: 268 seconds]
blankhart has joined #nixos
fragamus has joined #nixos
<steell>
infinisil: cool that seems to work! if i need to pull in other packages, i can just add them to the package list next to xmonad-contrib and xmonad-extras?
<infinisil>
yeah
<infinisil>
and reinstall
<steell>
is there an easy to reinstall besides uninstalling then installing?
<infinisil>
just install it again
<infinisil>
It will uninstall the old one automatically
<infinisil>
(it didn't work before because it can't replace xmonad with xmonad-with-packages, different name)
blankhart has quit [Remote host closed the connection]
blankhart has joined #nixos
<tenten8401_>
Anyone know if there's a way to have NixOps build the configuration on the server rather than my local computer? I'm on a painfully slow connection and it's trying to build around 100 packages
<tenten8401_>
I've been waiting for gcc to download for a good 20 minutes and it's failed several times already
<hodapp>
https://github.com/NixOS/nixpkgs/issues/24315 uhm, my eyes are glazing over trying to make sense of the issue or its solution. can anyone lend some clarity? I am running into this in nix-shell on one of my own derivations
<hodapp>
the usual 'qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""'
<infinisil>
endformationage: ^^. Use toString if you don't want it to copy stuff to the nix store in any case
<endformationage>
Hmm. I don't think using a path will work for what I wish to do, seen a rel path will expand to abs.
shabius_ has joined #nixos
<infinisil>
Well what do you need it for?
<infinisil>
If you do need to have it relative at runtime somewhere, then it's just a types.str that you want
<endformationage>
In my case, I want to allow the naming of a key file, which will be either placed manually, of generated by this name. OR if the string is an abs path, describes the path to the keyfile.
shabius_ has quit [Client Quit]
<endformationage>
s/of generated/or generated
work_ has joined #nixos
<infinisil>
Oh, well then you just need types.str and have some ifs that change the behaviour depending on the value
shabius has quit [Ping timeout: 240 seconds]
<endformationage>
ok, as is matching agaist the str I assume
<tenten8401_>
Are modules able to write to installation directories of packages? For instance, if I needed to write a configuration file for a webapp to wherever that webapp is installed
<tenten8401_>
And is there a way I can give a webapp write access to it's install location (for caching), how would that work?
heyhp has quit [Quit: Page closed]
<Mic92>
tenten8401_: usually services prepare a directory, where the webapp can write to. what application do you work on?
<Mic92>
sometimes symlinking application files from the nix store to a directory in /var/lib works fine
<tenten8401_>
Thinking about writing a module for Pterodactyl, which is based on Laravel in PHP
<Mic92>
and the remaining stuff is writable
<tenten8401_>
It needs to have write access to some directory inside of it's install
<tenten8401_>
so maybe just symlink the file that needs write access to somewhere in /var/lib?
<Mic92>
no the other way around.
<Mic92>
but this could also work,
__Sander__ has joined #nixos
<infinisil>
nix checks all symlinks, they can't point outside the store afaik
<tenten8401_>
so there really wouldn't be a good way to have a webapp as a package?
<infinisil>
Or not! It does work!
<Mic92>
we even support gitlab kind of, which is a nightmare in this regard.
<tenten8401_>
might try linking the cache directory to /tmp or something
<tenten8401_>
because, it is a cache
<tenten8401_>
but at the same time idk
<tenten8401_>
I wish NixOS had a system in place for writable application storage
worldofpeace has joined #nixos
<infinisil>
Patch it to not do that
<tenten8401_>
caching speeds it up though
szicari has quit [Quit: Leaving.]
<infinisil>
No, patch it to use something else for caching, not its installation directory, but maybe the directory its being run from
<{^_^}>
[nixpkgs] @xeji pushed commit from @dtzWill to staging « bison: 2.7 -> 2.7.1 (#42726) »: https://git.io/f4b1l
travankor has quit [Read error: Connection reset by peer]
<tenten8401_>
Looks like setting APP_STORAGE definently works just fine in /tmp
<ottidmes>
I really would like to use Live Share within Visual Studio Code on NixOS, but I ran into this issue: https://github.com/NixOS/nixpkgs/issues/41189. I tried to fix that by adding the missing library and got ldd to report it can be found, but when I run the executable I still get: no such file or directory. Any idea?
__monty__ has quit [Quit: leaving]
<ottidmes>
The executable itself obviously does exist, but how do I figure out what is still misconfigured. I tried running strace to get more insights, but that just reported: execve("/home/user/.vscode/extensions/ms-vsliveshare.vsliveshare-0.3.335/dotnet_modules/vsls-agent", ["/home/user/.vscode/extension"...], 0x7ffd6bb4a570 /* 83 vars */) = -1 ENOENT (No such file or directory)
npmccallum has quit [Ping timeout: 256 seconds]
nschoe has quit [Ping timeout: 276 seconds]
<Mic92>
ottidmes: run ldd on the same file
<Mic92>
it probably needs some love from patchelf
<Mic92>
you will get ENOENT when the link-loader cannot be found
asymmetric_ has quit [Ping timeout: 256 seconds]
<dgpratt>
setting up a fresh NixOS install in VBox, is there any reason to try to set it up as UEFI? any good resources for explaining considerations for partition configuration?
<Mic92>
tenten8401_: no modules can't, they can only create override derivations to create new packages.
<tenten8401_>
Last time I tried setting up VBox and UEFI I wasn't able to get a bootable system
<tenten8401_>
so if I needed to configure .env with a module I'd basically be screwed?
<srk>
looks like setting WorkingDirectory to $baseDir while also trying to create it in preStart is a bad idea, right?
<infinisil>
Mic92: He did put the ldd output in the issue
<tenten8401_>
would we need a new entry for the .env file in the nix store or something?
<ottidmes>
Mic92: ldd on that file just works, it reports me the libraries used, when I run file on the file I get: /home/user/.vscode/extensions/ms-vsliveshare.vsliveshare-0.3.335/dotnet_modules/vsls-agent: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=51dab8bca0432777b85954f4705cc50111f39950, stripped
<Mic92>
ottidmes: here we go: /lib64/ld-linux-x86-64.so.2 does not exists on macOS
<Mic92>
*nixos
<tenten8401_>
and that'd overwrite it and make a new package?
<Mic92>
you need patchelf
asuryawanshi has quit [Read error: Connection reset by peer]
<tenten8401_>
I'm so confused
<Mic92>
tenten8401_: it overrides the expression which in turn builds a package with overriden postInstall
<Mic92>
this can be then installed in a module
<Mic92>
if you only use the package in the module, you will only build & install the package once
<ottidmes>
Mic92: Ah, thanks :) (I am not used to this stuff), the annoying thing is that it is installed as an extension, but hopefully I can still patch them the improper way
<Mic92>
ottidmes: we have some visual code packages in nixpkgs as well for reference
<dgpratt>
assuming no UEFI, I further assume I can just use one big partition, any obvious reason not to do that?
nschoe has joined #nixos
Drakonis has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ottidmes>
Mic92: We do? Awesome, I will check them out then, was just Googling for a way to do something like that
aanderse_ has quit [Remote host closed the connection]
<infinisil>
It sure it rather tedious to have to patch everything for Nix all the time..
<infinisil>
is*
<infinisil>
It does pay off by being reproducible and stuff, but still
asuryawanshi has quit [Ping timeout: 264 seconds]
<ottidmes>
infinisil: Agreed, was thinking the same, its annoying that I have to do this patching now, but then I thought about a hard drive fuckup a few months ago that could be solved by a simple rebuild and backup
chessai has quit [Remote host closed the connection]
newhoggy_ has joined #nixos
<infinisil>
rardiol1: What do you mean by "for a user"?
jmsb has joined #nixos
asuryawanshi has joined #nixos
newhoggy has quit [Ping timeout: 248 seconds]
<rardiol1>
infinisil: that commands roughly replaces nixos-rebuild with something a little more informative, I want a command that replaces "nix-env -u"
<jmsb>
hey everybody--i am trying to run a glfw application and am seeing libGL errors about loading drivers. i.e., 'libGL error: unable to load driver: i965_dri.so'
<infinisil>
rardiol1: What do you mean by "replaces "nix-env -u""? nix-env -u uninstalls a program
ajs124 has left #nixos ["Machine going to sleep"]
<infinisil>
rardiol1: Do you want a declarative user configuration via a nix file, instead of the stateful nix-env -i?
<rardiol1>
infinisil: I'm quite sure that updates every program you have on your user profile?
<infinisil>
Oh
<infinisil>
Sorry right, -e is uninstall
<rardiol1>
so I do nixos-rebuild switch for a system upgrade, and nix-env -u (--leq) for updates, but can I do user profile update with the more informative nix command?
roconnor has quit [Ping timeout: 260 seconds]
<infinisil>
You mean the single fancy terminal line?
goibhniu has quit [Ping timeout: 256 seconds]
<infinisil>
A direct equivalent to nix-env doesn't exist
asuryawanshi has quit [Ping timeout: 240 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knupfer has quit [Ping timeout: 260 seconds]
<rardiol1>
yes, but there is that fancy terminal line that builds the system wide nix configuration, I assumed maybe there is a user equivalent
phdoerfler1 has quit [Quit: Leaving.]
asuryawanshi has joined #nixos
<infinisil>
rardiol1: You could use the normal nix commands (and therefore have this build status), if you were to use a declarative user configuration instead
newhoggy_ has quit [Remote host closed the connection]
newhoggy has joined #nixos
<ottidmes>
Hmm, vscode-with-extensions works as intended, I do see live share preinstalled, but it did not compile, so the binaries are not present. And I do not know how to make it compile those executables
<infinisil>
When you use import <nixpkgs> it doesn't use the current path
<catern>
oops sorry
RealUnix28200 has joined #nixos
<srk>
does it make sense to introduce types.float? looks like floats and isFloat are available now
ldesgoui[m] has joined #nixos
<catern>
yeah, when I do that it works
<catern>
awkward
<catern>
thanks!
<catern>
wait actually
camsbury has quit [Remote host closed the connection]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
camsbury has joined #nixos
<infinisil>
If it still doesn't work, try adding --arg config {} --arg overlays '[]'
nonfreeblob has joined #nixos
<RealUnix28200>
Hello
<catern>
no it still works just fine
<catern>
I was just confused why there are two different 'idris' packages
<RealUnix28200>
cc
<samueldr>
hi!
<infinisil>
catern: Nice to see more people interested in Idris :D
rprije has joined #nixos
camsbury has quit [Ping timeout: 260 seconds]
<catern>
there's an idris study group at my job and they're using Nix to install Idris :)
<srk>
speaking about types.. what about longtitude and latitude? :D
<tenten8401_>
related to my issue earlier with Laravel and write permissions, turns out there's a hardcoded cache directory in Laravel and that's what's causing issues
<tenten8401_>
friend of mine is working on something that should override it
Judson has joined #nixos
<nonfreeblob>
Hey, guys! I want to create a new package based on an existing nix expression, but with different parameters. Should I consider this as an init of a new package or an upgrade of an existing one?
<Judson>
I'm trying to update the Gemfile of an existing project. When I run bundix, I get a bunch of errors to the effect that the Nix DB is write only.
<Judson>
I know I've seen this problem before, but I can't remember the fix.
<srk>
bundix -l ?
<Judson>
Generally it's that I'm already in a nix-shell, and killing that fixes it...
<Judson>
Rebundles, but then I get errors again.
btbytes has joined #nixos
<catern>
nonfreeblob: is it the same project? what's the concrete software you're working with? I think it's kind of a case-by-case thing
<catern>
Judson: do you have NIX_REMOTE set?
<Judson>
catern: no
<Judson>
nix-instantiate --eval -E builtins.toJSON(import /home/judson/dev/mezzo/gemset.nix) => error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied
<Judson>
Weirdly, I can run that nix-instantiate myself without problem.
<Judson>
Does that look familiar, manveru?
<nonfreeblob>
catern: I'm working on x11 version of nethack. Is it ok if I name the package and the new binary "nethack-x11"?
<catern>
Judson: and are you using a daemon-based Nix?
<catern>
(if you're on NixOS, you are)
<catern>
if so, NIX_REMOTE should be set to daemon
<{^_^}>
[nixpkgs] @patternspandemic opened pull request #42748 → nixos/neo4j: Update module, make compatible with neo4j 3.4 → https://git.io/f4b5I
<catern>
nonfreeblob: yes, that seems fine - it will probably have a whole different set of dependencies right? it's not just the same piece of software built differently
<catern>
well, different dependencies is often a consequence of building differently... but what I meant to say is that the source code is different - right?
<Judson>
catern, yes, daemon based, NixOS
npmccallum has joined #nixos
<catern>
Judson: try export NIX_REMOTE=daemon and see if that fixes it
<catern>
I think Nix 2.0 is supposed to autodetect this though
<catern>
(so maybe the real problem is you accidentally downgraded?)
<Judson>
It does. Huh.
<Judson>
Nah, I've been using `nix search` to try to debug this...
ericsagnes has quit [Ping timeout: 256 seconds]
<catern>
Sure, but what does nix-instantiate --version output?
<nonfreeblob>
catern: In fact, the changes are not very big, although there are additional inputs and changes compared to the regular version.
<Judson>
nix-instantiate (Nix) 2.0
<catern>
odd, maybe I misremember then
<Judson>
Hrm
<catern>
anyway, I admit I'm not quite sure how that environment variable is supposed to be set by NixOS, but probably it's set by profile.d and there's something in your user environment that's unsetting it
<Judson>
Could be.
<catern>
nonfreeblob: but is it actually forked code?
<Judson>
I have a couple of weird irritations along those lines.
<Judson>
My xdg-open stuff continues to be borked.
<catern>
nonfreeblob: let me rephrase: it's actually a different set of source code, right? so there are a lot of packages where the same source code is built in different ways - that's fine and a really powerful strong point of Nix
<catern>
it's a little unusual to have the same package definition building different source code, though, so probably it's best to copy and paste if the source code is different/coming from a different location
<catern>
(usually the same package building different source code happens for things where there are multiple versions of a single project in Nixpkgs)
<catern>
(as in version numbers)
nschoe has quit [Quit: Program. Terminated.]
<{^_^}>
[nixpkgs] @LnL7 opened pull request #42749 → nixos: add system.nixos.stateVersion alias → https://git.io/f4b52
<nonfreeblob>
catern: Source is the same. This is most similar to crawl and crawl-tiles with one default.nix but two packages in all-packages.nix. I also added a binary input to switch between the two packages.