andi- changed the topic of #nixos to: NixOS stable: 19.09 \o/ https://discourse.nixos.org/t/nixos-19-09-release/4306/2 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || use ,channels for a list of Nix* related channels || nixcon videos: https://tinyurl.com/nixcon2019 || Link to the output of nix-info
smolck has joined #nixos
<infinisil> mudri: Nope
<mudri> 😅
felixfoertsch has quit [Quit: ZNC 1.7.4 - https://znc.in]
<smolck> Has anyone built a golang application that uses https://github.com/therecipe/qt ? I'd like to use https://github.com/akiyosi/goneovim but I'd need to build a nix package for it, and I'm not sure how to go about doing that with that qt library
<infinisil> mudri: You could use something like `Agda = super.Agda.overrideScope (self: super: { some-dep = callHackage "some-dep" "0.1" {}; ...; })` to fix dependencies
sigmundv_ has quit [Ping timeout: 250 seconds]
cosimone has quit [Ping timeout: 246 seconds]
<mudri> Ah cheers, this might be the right thing to do. I'm too reliant on (globally) editing my copy of nixpkgs.
felixfoertsch has joined #nixos
wildtrees has quit [Quit: Leaving]
<mudri> Also, some of these incompatibilities I can kinda believe, but missing base, with pretty permissive version bounds? What's that about? https://www.irccloud.com/pastebin/FiI7RTvd/
<mudri> (This is when I try to install the older Agda.)
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 246 seconds]
mbrgm_ is now known as mbrgm
o1lo01ol1o has quit [Remote host closed the connection]
liminal18 has quit [Quit: Leaving]
m0rphism has quit [Ping timeout: 250 seconds]
zeta_0 has joined #nixos
plutes has quit [Remote host closed the connection]
plutes has joined #nixos
smolck has quit [Remote host closed the connection]
<mudri> Before I forget,
<mudri> infinisil++
<{^_^}> infinisil's karma got increased to 239
<gchristensen> good point. infinisil++
<{^_^}> infinisil's karma got increased to 240
hmpffff has quit [Quit: nchrrrr…]
captjakk_ has joined #nixos
gila has joined #nixos
captjakk_ has quit [Remote host closed the connection]
enuiarte has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
gila has quit [Ping timeout: 256 seconds]
<mudri> https://www.irccloud.com/pastebin/ER8Ilc0s/Okay%2C%20yeah%2C%20I%20really%20don't%20understand%20this%20missing%20%60base%60%20thing.
<mudri> Okay, yeah, I really don't understand this missing `base` thing.
thc202 has quit [Ping timeout: 256 seconds]
<infinisil> mudri: Oh, base is a GHC builtin package, you can use doJailbreak to make it ignore version bounds
<infinisil> Did the default GHC version change since the change?
<infinisil> Maybe that's what makes it slow
<infinisil> Well or something related to it
wavirc22 has quit [Ping timeout: 250 seconds]
<mudri> infinisil: How do I get `doJailbreak` into scope?
wavirc22 has joined #nixos
<infinisil> It's at pkgs.haskell.lib.doJailbreak
<mudri> Cheers.
<mudri> But I don't think GHC changed in the time. It's been a matter of months since a release, according to nixpkgs (AFAICT).
<mudri> Oh, and where should I put `doJailbreak`? I've tried `regex-base = haskell.lib.doJailbreak (self.callHackage "regex-base" "0.93.2" {});`, but get the same error.
ottidmes has quit [Ping timeout: 250 seconds]
<infinisil> mudri: What's the full error? (without any cut off output at the end)
<infinisil> Phew, no idea
<infinisil> You sure that's related to adga?
<infinisil> What's 'everything'?
<infinisil> I'd just do `nix-build -A haskellPackages.Adga` in your copy of nixpkgs
<cole-h> infinisil: Do you know where the default `configurePhase`s and `buildPhase`s are defined?
<{^_^}> Channel nixos-20.03 advanced to https://github.com/NixOS/nixpkgs/commit/16dd1df0817 (from 2 days ago, history: https://channels.nix.gsc.io/nixos-20.03)
<mudri> `everything` is all my user packages, including one which is a `ghcWithPackages`, which contains Agda.
<infinisil> cole-h: pkgs/stdenv/generic/setup.sh
absoluutely_ has joined #nixos
<cole-h> infinisil++ Thanks.
<{^_^}> infinisil's karma got increased to 241
lonewolf has joined #nixos
gila has joined #nixos
blaggacao has quit [Ping timeout: 240 seconds]
bvdw has quit [Read error: Connection reset by peer]
<infinisil> mudri: And what's the code/diff?
bvdw has joined #nixos
blaggacao has joined #nixos
absoluutely_ has quit [Ping timeout: 246 seconds]
blaggacao has quit [Read error: Connection reset by peer]
<infinisil> Maybe you assigned `regex-base` *outside* the .overrideScope, it should be inside for it to work
blaggacao has joined #nixos
gila has quit [Ping timeout: 240 seconds]
<mudri> infinisil: In ~/.nixpkgs/config.nix https://www.irccloud.com/pastebin/6QLRVITW/
<infinisil> mudri: And what's the nixpkgs version so I can reproduce?
<mudri> Getting an okay version of `regex-tdfa` had the knock-on that `regex-base` also had to be different.
<mudri> Just a sec...
<mudri> infinisil: ddf87fb1baf8f5022281dad13fb318fa5c17a7c6 (which should be channels/nixos-unstable)
gustavderdrache has quit [Quit: Leaving.]
<lonewolf> Is there to query all the packages in a nix store, nix-env -q just gives me ones from the current user environment
<niso> lonewolf: nix-env -qa
smolck has joined #nixos
smolck has left #nixos [#nixos]
<infinisil> mudri: Hm, and what's the nixpkgs version for which Agda is fast?
<lonewolf> @niso but isn't -qa gonna give all available packages that can be installed?
<niso> lonewolf: oh yes, misread the question sry
<infinisil> lonewolf: `ls /nix/store` I guess
<infinisil> But "package" is a very loose term in Nix
<lonewolf> Hmm.. Thank you
<infinisil> lonewolf: I feel like this is an X-Y problem though, doing `ls /nix/store` should never be needed
<cole-h> Why is it that when I make a custom `buildPhase` that does `mkdir build && cd build; cmake ..; make doc`, it can't find the doc target, but when I do it on a local clone of the packages
<infinisil> Unless it's to check stats on the store I guess
<cole-h> source, it succeeds
<lonewolf> I was trying out some shell.nix files, and I installed curl into the store, so now I wanted to see if I could find it using nix-env, so that I could delete it. Also If you running out of space, how would you actually clean the store?
<infinisil> cole-h: Is the clone clean? If `git clean -n -x -d` outputs anything then it's not (use `git clean -f -x -d` to clean it)
<infinisil> Well, and git diff should be empty too I think
<mudri> infinisil: Hmm, this is a good question. Probably whenever it was when Agda 2.6.0.1 last built, so maybe a nixos-unstable version from about two weeks ago.
<cole-h> infinisil: Yep. It still succeeds like that.
<cole-h> If I set the breakpointHook and do the steps manually, it still fails
<cole-h> :(
<infinisil> latest successful one -> then click on inputs, gives 23f265cdf5133209984a511af9b39f61538121f6
<infinisil> And indeed, doing `nix-build -A haskellPackages.Agda` in that nixpkgs version fetches it from cache.nixos.org
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/6c90920c939 (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<mudri> Ah, I'll try to remember how to look up things like that. Anyway, that date seems believable.
<infinisil> mudri: The default GHC on that nixpkgs is 8.6.5, while the default on the latest nixos-unstable version is 8.8.3
<infinisil> But 2.6.0.1 doesn't support that version yet
<infinisil> So instead you could try to build Agda on latest nixos-unstable with 8.6.5
<infinisil> With `nix-build -A haskell.packages.ghc865.Agda` (without anything in config.nix preferably)
<mudri> Hmm, yeah, worth an experiment. Thanks!
<mudri> I guess I'll try to leave this building overnight.
<infinisil> Seems like it fails rather quickly though..
<mudri> I guess I can also try building the new version like this, as long as it still supports that GHC version.
<infinisil> Yeah
jumper149 has quit [Quit: WeeChat 2.7.1]
Shouou has quit [Ping timeout: 246 seconds]
<infinisil> mudri: https://paste.infinisil.com/msSGoE_PCw.diff fixes the first failure
lonewolf has quit [Remote host closed the connection]
<mudri> (I'm still waiting to see the error on my machine...)
<cole-h> infinisil: Issue was a missing dep :D
<cole-h> I wish CMake stuff was actually readable
<mudri> Oop, there we are.
Diogo9 has joined #nixos
Diogo has quit [Ping timeout: 256 seconds]
mjrosenb has joined #nixos
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
archfeh has joined #nixos
captjakk has quit [Ping timeout: 256 seconds]
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<bqv[m]> ,locate mail
<{^_^}> Found in packages: go, h2, gimp, solr, byobu, emacs, epic5, jetty, nexus, quilt, gwt240, jmeter, librep, solr_7, tt-rss, emacs25, funambol, cytoscape, gogs.data, mailutils, mediawiki, plan9port, roundcube, gitea.data, i3pystatus, emacs25-nox, emacs26-nox, go_bootstrap, konversation, logstash6-oss, logstash7-oss, tlaplusToolbox, vimPlugins.ale, vimPlugins.caw, gnome3.evolution, gimp-with-plugins, rubyPackages_2_4.mail, and 11 more
blaggacao has quit [Ping timeout: 240 seconds]
archfeh has quit [Quit: archfeh]
blaggacao has joined #nixos
archfeh has joined #nixos
captjakk has joined #nixos
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/25d81402877 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
aswanson has quit [Quit: WeeChat 2.7.1]
<mudri> Okay, I'm going to leave new Agda on old GHC going overnight. See you in the morning!
<infinisil> o/
archfeh has quit [Quit: archfeh]
archfeh has joined #nixos
archfeh is now known as ArchFeh
<nek0> To whom it may concern: https://howoldis.herokuapp.com/ is broken.
<evils> ,howoldis
<nek0> the first link works, but the second throws me on a bare page with no information.
<drakonis> yes we're aware
blaggacao has quit [Read error: Connection reset by peer]
<nek0> ok.
blaggacao has joined #nixos
<nek0> thanks
<drakonis> https://status.nixos.org/ use this one instead
<gchristensen> nek0: I don't know if howoldis will be repaired. it has been maintained by a community member for a long time to supplement the fact that status.nixos.org didn't exist
<nek0> ok. thanks or the info.
ArchFeh has quit [Remote host closed the connection]
ArchFeh has joined #nixos
orivej has quit [Ping timeout: 264 seconds]
h0m1 has quit [Ping timeout: 246 seconds]
h0m1 has joined #nixos
ArchFeh has quit [Remote host closed the connection]
ArchFeh has joined #nixos
<cole-h> Is there any way to enable opengl on the ISO, or do I have to have a working system setup for that?
gila has joined #nixos
gila has quit [Ping timeout: 250 seconds]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
wavirc22 has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
wavirc22 has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
davidak has quit [Ping timeout: 265 seconds]
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
captjakk has quit [Remote host closed the connection]
ArchFeh has quit [Remote host closed the connection]
captjakk has joined #nixos
ArchFeh has joined #nixos
ArchFeh has quit [Remote host closed the connection]
captjakk has quit [Ping timeout: 240 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/1161c96a203 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
aw has joined #nixos
spacefrogg has joined #nixos
dingenskirchen has quit [Ping timeout: 246 seconds]
lovesegfault has joined #nixos
blibberblob has joined #nixos
bgamari has quit [Remote host closed the connection]
bgamari has joined #nixos
blaggacao has quit [Ping timeout: 264 seconds]
blaggacao has joined #nixos
ddellacosta has quit [Ping timeout: 250 seconds]
<blibberblob> Hi all, what's the systemd unit I should restart to bounce my network? My wireless died (couldn't connect to anything, couldn't resolve DNS) and I got it to work by restarting, but presumably I could've just bounced something with systemd
<nek0> sometimes you need to reload your wifi kernel module. Happens to me regularly whe waking up from hibernate. rmmod <kernelmodule(s)> && modprobe <kernelmodule(s)>
<danderson> How are you configuring your wifi?
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<danderson> If you're using NetworkManager, `systemctl restart NetworkManager` will do the trick
waleee-cl has quit [Quit: Connection closed for inactivity]
nekroze has joined #nixos
<blibberblob> danderson: I have `networking.wireless.enable = true`
<nekroze> I am trying to use crossLists from nixpkgs lib but it seems to always fail, even the example in the source code fails: `nix-repl> (import <nixpkgs>).lib.crossLists (x: y: "${toString x}${toString y}") [[1 2] [3 4]]
<blibberblob> also a custom wireless driver which you helped me set up a few days ago hahaha
<nekroze> error: value is a function while a set was expected, at (string):1:1
<blibberblob> I don't have a NetworkManager systemd unit
<nekroze> Is this function known to be broken or am I just using it wrong
<danderson> oh right, the custom wireless driver
<danderson> well, I've forgotten how non-networkmanager networking works in nixos
jb55 has quit [Ping timeout: 240 seconds]
<danderson> so I'm afraid I can't help much ;(
<blibberblob> how does the networkmanager portion work?
<blibberblob> maybe I should be using that...
<danderson> er, search the nixos options for "networkmanager"
<danderson> it's basically one switch that turns off nixos's builtin network management logic, and lets NetworkManager handle it instead
<danderson> it's generally preferable if you're running a GUI and want to connect to random wifi networks easily
LysergicDreams has quit [Ping timeout: 250 seconds]
nekroze has quit [Quit: Lost terminal]
LysergicDreams has joined #nixos
<energizer`> `nix-env -iA nixpkgs.python3Packages.marshmallow` but then python -c 'import marshmallow' -> `no module named marshmallow`. what am I doing wrong?
chagra_ has joined #nixos
jmatrix1 has joined #nixos
chagra has quit [Ping timeout: 250 seconds]
nek0 has quit [Quit: ZNC 1.7.5 - https://znc.in]
nek0 has joined #nixos
iyzsong has joined #nixos
<evils> > python.version
<{^_^}> "2.7.17"
<drakonis> > python3.version
<{^_^}> "3.7.6"
<simpson> energizer`: Gonna chalk this one up to nix-env and environments. $(nix-shell -p python3Packages.marshmallow) leads, for me, to <module 'marshmallow' from '/nix/store/n1dbc4amyfigdvvpbw7n7zv1a578sb8b-python3.7-marshmallow-2.16.3/lib/python3.7/site-packages/marshmallow/__init__.py'>
drakonis has quit [Quit: WeeChat 2.7.1]
* lovesegfault pokes colemickens
<energizer`> simpson: that's what i figure too
<colemickens> <lovesegfault "pokes Cole Mickens"> What's up
<lovesegfault> colemickens: I did more vaapi testing
<lovesegfault> I get a bunch of symbol errors, and it never even tries to use vaapi
<lovesegfault> not sure if you managed to go any further
* lovesegfault is tempted to try firefox-nightly
<colemickens> it just doesn't work
* lovesegfault cries
<colemickens> In what release?
<colemickens> What version are you testing with?
<lovesegfault> 75.0b2
<colemickens> It still hasn't landed in stable right?
abathur has quit [Ping timeout: 250 seconds]
<colemickens> If it's a beta, then it's wrapped the same as a nightly and I don't think the mozilla provided builds are ... working out with NixOS's GL.
<lovesegfault> correct
<lovesegfault> it's a bit sad that I'll have to choose the Nix-built ff :P
<colemickens> Like, I can't get WR to enable fully in Nightly no matter what I do, glxtest fails.
<lovesegfault> it's built with no LTO or PGO
<colemickens> But it works fine on Stable where we build it from source
<lovesegfault> and when I tried to get that working it was a big ole mess
<lovesegfault> do we have a non-bin ff beta?
<colemickens> I'm also not remotely qualified to speak about any of this. This is anecdotal data and some educated inferences, mostly.
<colemickens> I don't think so, maintaining the one Firefox build seems to be enough of a task.
<lovesegfault> alright, I'll build the ff beta on my server and see what happens
* lovesegfault goes experimenting
jmatrix1 has quit [Quit: Leaving]
butterthebuddha has joined #nixos
blibberblob has quit [Ping timeout: 272 seconds]
shafox has joined #nixos
endformationage has quit [Quit: WeeChat 2.6]
KeiraT has quit [Remote host closed the connection]
rardiol has quit [Ping timeout: 264 seconds]
KeiraT has joined #nixos
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
iyzsong has joined #nixos
nek0 has quit [Quit: ZNC 1.7.5 - https://znc.in]
nek0 has joined #nixos
kolbycrouch has joined #nixos
<kolbycrouch> If anyone gets a chance, could they help me figure out these check failures on my PR #82633
<{^_^}> https://github.com/NixOS/nixpkgs/pull/82633 (by kolbycrouch, 4 days ago, open): retroarch: 1.8.1 -> 1.8.4
gila has joined #nixos
gila has quit [Ping timeout: 250 seconds]
aa586 has joined #nixos
jtcs has quit [Ping timeout: 256 seconds]
jojojojojo has quit [Remote host closed the connection]
reallymemorable has quit [Quit: reallymemorable]
jojojojojo has joined #nixos
drakonis has joined #nixos
dingenskirchen has joined #nixos
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
cyphase has quit [Ping timeout: 256 seconds]
srxl has joined #nixos
<srxl> When creating a derivation, what are the correct attributes to use to define dependencies for build-time, and for runtime?
<srxl> I think it's nativeBuildInputs for build-time and buildInputs for runtime?
<evils> jup
<srxl> Cool, just wanted to make sure :)
jojojojojo has quit [Remote host closed the connection]
kloenk has quit [Ping timeout: 246 seconds]
jojojojojo has joined #nixos
pbb has quit [Ping timeout: 272 seconds]
kloenk has joined #nixos
linarcx has joined #nixos
pjt_0141 has joined #nixos
pjt_0141 has quit [Remote host closed the connection]
pjt_014 has quit [Ping timeout: 256 seconds]
pjt_014 has joined #nixos
matthiaskrgr has joined #nixos
nikivi has joined #nixos
pjt_014 has quit [Ping timeout: 250 seconds]
chimay has joined #nixos
domogled has joined #nixos
blibberblob has joined #nixos
alexherbo275 has joined #nixos
pbb has joined #nixos
mojjoo has joined #nixos
mojjoo has quit [Remote host closed the connection]
mojjo has joined #nixos
palo1 has joined #nixos
<mojjo> how can I make an nixos config independent from 'nixpkgs' from NIX_PATH. I'm using `niv` to pin nixpkgs. after setting `nixpkgs.pkgs = (import ../sources.nix).nixpkgs { };` I'm getting 'file 'nixpkgs/nixos/lib/eval-config.nix' was not found in the Nix search path' when I set `NIX_PATH=""`
bahamas has joined #nixos
abathur has joined #nixos
palo has quit [Ping timeout: 264 seconds]
palo1 is now known as palo
Swante has joined #nixos
<Swante> 404 Not Found
<Swante> i do something wrong?
<Swante> Code: NoSuchKey Message: The specified key does not exist. Key: nixos-19.09/latest-nixos-x86_64-linux.ova RequestId: 958A848E6AD6B5D1 HostId: bI4uDTBTIqlzXwhANloHGb3dlUvkgk2j30GXVZjXrb8enSkObWaJshGRG/LVFEjWXWGrKNeXMJk=
zupo has joined #nixos
abathur has quit [Ping timeout: 256 seconds]
<NobbZ[m]> Swante: No, you don't do anything wrong, but some links are broken after nixos.org moved their hoster.
never_released_ has joined #nixos
never_released has quit [Ping timeout: 250 seconds]
<NobbZ[m]> You can download a unstable appliance from here: https://releases.nixos.org/nixos/unstable/nixos-20.09pre217261.a2e06fc3423
<Swante> thanks!
Swante has left #nixos [#nixos]
noj has quit [Ping timeout: 246 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cole-h> Does ofborg automatically build based on commit titles, or only PR titles?
noj has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
bvdw has joined #nixos
<bqv[m]> hi
<bqv[m]> `nix-shell -p 'python37.withPackages (ps: [ ps.libfdt ])' --run "python3 -m libfdt"`
<bqv[m]> can someone explain this
lovesegfault has quit [Ping timeout: 246 seconds]
gila has joined #nixos
<NobbZ[m]> Evaluate the nixexpression `python37.withPackages (ps: [ ps.libfdt ])` and make it result available, then run `python3 -m libfdt` in that environment.
chagra_ has quit [Ping timeout: 264 seconds]
<srxl> This starts up a new shell, containing python 3.7, and includes the libfdt python package
<bqv[m]> ```~/var/depot/pdgen $ nix-env -i 'python37.withPackages (ps: [ ps.libfdt ])'
<bqv[m]> error: selector 'python37.withPackages (ps: [ ps.libfdt ])' matches no derivations
justanotheruser has quit [Ping timeout: 272 seconds]
<bqv[m]> is what i see now
<srxl> Then in that shell, it runs `python3 -m libfdt`
doyougnu has joined #nixos
petersjt014[m] has quit [Ping timeout: 260 seconds]
cab404[m] has quit [Ping timeout: 260 seconds]
Leira[m] has quit [Ping timeout: 260 seconds]
tek[m] has quit [Ping timeout: 260 seconds]
l_inus[m] has quit [Ping timeout: 260 seconds]
chris| has quit [Ping timeout: 260 seconds]
pingveno[m] has quit [Ping timeout: 260 seconds]
f0i[m] has quit [Ping timeout: 260 seconds]
fgaz has quit [Ping timeout: 260 seconds]
domenkozar[m] has quit [Ping timeout: 260 seconds]
chagra_ has joined #nixos
<srxl> Oh, right, -p only treats it's inputs as nixpkgs attributes, not nix expressions
<srxl> You might be able to get away with `-p python37Packages.libfdt` then
gila has quit [Ping timeout: 250 seconds]
<srxl> if there's no python in that, try `-p python37 python37Packages.libfdt`
alexherbo2754 has joined #nixos
<bqv[m]> that makes a shell, but the python in there still doesn't have libfdt
alexherbo275 has quit [Ping timeout: 250 seconds]
lovesegfault has joined #nixos
<bqv[m]> i've been trying to run this one script for two goddamn hours
<NobbZ[m]> For me in fact the original `nix-shell` works… Except for the fact, that it doesn't find the `libfdt` module…
justanotheruser has joined #nixos
<bqv[m]> yes, exactly
<bqv[m]> that's my point
<bqv[m]> why does that just not work
<bqv[m]> i can't seem to create a shell where python sees libfdt
cab404[m] has joined #nixos
Leira[m] has joined #nixos
l_inus[m] has joined #nixos
fgaz has joined #nixos
<srxl> the derivation in nixpkgs seems wrong to me :/
petersjt014[m] has joined #nixos
pingveno[m] has joined #nixos
domenkozar[m] has joined #nixos
tek[m] has joined #nixos
chris| has joined #nixos
f0i[m] has joined #nixos
<srxl> i think it might just be broken
<bqv[m]> broken in what way
<srxl> the libfdt package is built from the dtc package. to enable python support, you need to pass a `pythonSupport = true` to dtc when you're building it, but I don't see the libfdt package's definiton doing that
<srxl> give me a moment, and i can clone a local nixpkgs tree and test that theory
malSet has joined #nixos
<bqv[m]> oh my god i got it
<bqv[m]> ` nix-shell -p 'python37.withPackages(ps: [ (ps.toPythonModule (dtc.override { inherit (ps) python; pythonSupport = true; })) ])' --run "python3 -m libfdt" `
<bqv[m]> this particular incantation works
malSet has quit [Read error: Connection reset by peer]
<srxl> ok so my theory is true
<srxl> that's a more direct way of doing what i thought above
sgrunert has joined #nixos
<bqv[m]> yeah
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<srxl> alright so that's broken in nixpkgs
ATuin has joined #nixos
<srxl> it's an easy fix, i can try make a pr for it later
<bqv[m]> christ, now i need to remember what i even needed to do with libfdt, it's been hours
malSet has joined #nixos
<bqv[m]> ty
leomar has joined #nixos
<srxl> np
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
<cole-h> Answering my question from earlier: ofborg is smart enough to build the commits based off of commit titles
malSet has joined #nixos
baronleonardo has joined #nixos
<baronleonardo> can anyone help me with the `dynamic-linker` path ?
malSet has quit [Read error: Connection reset by peer]
<baronleonardo> I created and fhs env
<baronleonardo> and I want to compile a library using gcc-7
<baronleonardo> but I want the output to use `/lib/ld-linux-x86-64.so.2` linker path
malSet has joined #nixos
gila has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
lovesegfault has quit [Quit: WeeChat 2.7.1]
kreyren has quit [Remote host closed the connection]
cole-h has quit [Ping timeout: 264 seconds]
zarel has quit [Ping timeout: 250 seconds]
malSet has quit [Read error: Connection reset by peer]
zarel has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
energizer` has quit [Remote host closed the connection]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
karantan has joined #nixos
opthomasprime has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f56a759f139 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<s1341> good morning
<s1341> how can i execute a derivation and see what the 'out' directory looks like ?
drakonis_ has joined #nixos
leotaku has quit [Quit: ZNC 1.7.4 - https://znc.in]
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
maddo has joined #nixos
leotaku has joined #nixos
domogled has quit [Quit: domogled]
zupo has joined #nixos
domogled has joined #nixos
drakonis_ has quit [Ping timeout: 260 seconds]
baronleonardo has quit [Ping timeout: 240 seconds]
<arianvp[m]> nix-store --realise
hmpffff has joined #nixos
turion has joined #nixos
kreyren has joined #nixos
<s1341> arianvp[m]: what i'm looking for is the temporary source directory....
<arianvp[m]> Oh
<s1341> ok. managed with nix-build --keep-failed
<s1341> how can I run a shell command (specifically a 'find' command) from within the postInstall hook?
mounty has quit [Remote host closed the connection]
mounty has joined #nixos
turion has quit [Quit: Leaving.]
domogled has quit [Quit: domogled]
kolby_ has joined #nixos
kolbycrouch has quit [Ping timeout: 246 seconds]
sigmundv_ has joined #nixos
<wedens[m]> postInstall = "find ..."; ?
cyphase has joined #nixos
bahamas has quit [Ping timeout: 250 seconds]
<s1341> wedens[m]: i tried something like that... how can i see a log of the execution of postInstall?
<s1341> can i echo something to stdout?
<manveru> s1341: yes you can! :)
<wedens[m]> it doesn't suppress any output
civodul has joined #nixos
<s1341> manveru: and can I use subshells (``, or $())?
<manveru> sure
<manveru> it's just a normal bash script...
opthomasprime has quit [Remote host closed the connection]
sigmundv_ has quit [Remote host closed the connection]
<s1341> oh.. ok...
opthomasprime has joined #nixos
<s1341> hrm. my echo didn't work...
<s1341> how can i make sure that postInstall is even running....
<s1341> ?
<wedens[m]> is it your own derivation or something from nixpkgs?
<s1341> my own.
<manveru> does it fail earlier?
<s1341> no i don't think so...
<wedens[m]> do you override installPhase?
<manveru> mind sharing the code? :)
<s1341> wedens[m]: no i don't override installPhase... it's a rust package.
<s1341> hang on
sigmundv_ has joined #nixos
linarcx has quit [Ping timeout: 246 seconds]
<s1341> and thats the output....
<s1341> wedens[m], manveru ^^
linarcx has joined #nixos
opthomasprime has quit [Remote host closed the connection]
opthomasprime has joined #nixos
<immae> s1341: when I want to make sure that a bunch of code runs, I add a "false" in it. If the derivation doesn’t fail then there’s a problem :)
<s1341> immae: ok.
<immae> (easier to spot than a "here here here")
<s1341> maybe i'm failing earlier with this 'may not be deterministic' issue?
linarcx has quit [Ping timeout: 256 seconds]
butterthebuddha has quit [Quit: Textual IRC Client: www.textualapp.com]
abathur has joined #nixos
linarcx has joined #nixos
<immae> s1341: it’s possible, but I don’t understand where this determinist check happens...
<jluttine> i'm trying to upgrade some packages and i'm not able to build one. any help? https://github.com/NixOS/nixpkgs/pull/82939#issuecomment-601588114
nikivi has quit [Ping timeout: 246 seconds]
abathur has quit [Ping timeout: 264 seconds]
matthiaskrgr has quit [Ping timeout: 272 seconds]
Jackneill has joined #nixos
tilpner_ has joined #nixos
<s1341> hrm. i commented out the postinstall and it still fails.
opthomasprime has left #nixos [#nixos]
bahamas has joined #nixos
tilpner has quit [Ping timeout: 246 seconds]
tilpner_ is now known as tilpner
o1lo01ol1o has joined #nixos
nikivi has joined #nixos
<immae> s1341: can you also comment out your nativeBuildInput ? I cannot find where the error happens...
<s1341> ok. i wasn't actually building the right file.
<s1341> doh!
<immae> hmm?
nschoe has joined #nixos
o1lo01ol1o has quit [Ping timeout: 264 seconds]
kreyren has quit [Remote host closed the connection]
hmpffff_ has joined #nixos
chloekek has joined #nixos
<s1341> i was doing `nix-build '.' -A page` from the root of my nixpkgs clone
<s1341> but that wasn't actually running the derivation, i don't think...
<s1341> now i'm doing `nix-build -E 'with import <nixpkgs> { }; callPackage ./pkgs/tools/misc/page { }'`
<s1341> and i see the postInstall output
hmpffff has quit [Ping timeout: 246 seconds]
matthiaskrgr has joined #nixos
<immae> ah right
<immae> good
kreyren has joined #nixos
peelz has joined #nixos
jtojnar_ has joined #nixos
lucus16 has left #nixos ["-"]
<s1341> hrm.
<s1341> how can i force a rebuild when doing `nix-build '.' -A page`
<s1341> ?
kai_w has quit [Quit: Konversation terminated!]
leotaku has quit [Ping timeout: 256 seconds]
kai_w has joined #nixos
veske has joined #nixos
veske2 has joined #nixos
zdm has joined #nixos
leotaku has joined #nixos
<immae> s1341: there is probably a better way but I would use `nix-store --delete /nix/store/...-page`. Or add a new line in one of the scripts to trigger a rebuild
<Leira[m]> nixos-unstable, trying to switch --upgade, got this error:
bnj has joined #nixos
<Leira[m]> I found https://github.com/NixOS/nixpkgs/pull/80165, it seems this issue supposed to be fixed~
<{^_^}> #80165 (by Frostman, 4 weeks ago, merged): go_1_13: 1.13.7 -> 1.13.8, go_1_12: 1.12.16 -> 1.12.17
<Leira[m]> Why am I still seeing it?
bnj has quit [Remote host closed the connection]
<wedens[m]> you use nixpkgs without the fix?
bnj has joined #nixos
<Leira[m]> wedens: you again~ thanks for answering my questions. how do I find out~
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wedens[m]> nix-instantiate --eval --expr 'builtins.readFile <nixpkgs/.git-revision>'
Tucky has joined #nixos
<bnj> Hello all ! Just a little question about nix. I'm pretty new with Nix. I'm on macOs and I'm wondering where can I put my .nix files to let nix automatically load these files ? like a default.nix for example
<wedens[m]> that's your "default" nixpkgs revision
<Leira[m]> ddf87fb1baf8f5022281dad13fb318fa5c17a7c6
<Leira[m]> It seems quite new
<Leira[m]> it should contain that change already~
<Leira[m]> But, did that chanage really fixed the issue? Or it was my mis-understanding?
jfroche has joined #nixos
karantan has joined #nixos
<wedens[m]> yeah, it should have this PR. it didn't fix the issue apparently
kreyren has quit [Remote host closed the connection]
<manveru> s1341: --check
<manveru> sorry, was having breakfast :)
<Leira[m]> wedens: Now it blocked my switch, is there any way to work around it?
__monty__ has joined #nixos
<s1341> manveru: --check causes a 'not deterministic' error.
orcus has quit [Ping timeout: 272 seconds]
<Leira[m]> remove grv is one of the solutions
<manveru> s1341: yeah, it'll build the thing twice and check that it outputs the same hash everytime
<__monty__> #82664 is ready for a merge, worldofpeace maybe?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/82664 (by toonn, 4 days ago, open): wire-desktop: linux 3.12.2916 -> 3.15.2922, mac 3.12.3490 -> 3.15.3621
kreyren has joined #nixos
<manveru> s1341: and i'm pretty sure rust builds are almost never deterministic...
<wedens[m]> Leira: what do you mean "blocked switch"?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Leira[m]> blocked my `sudo nixos-rebuild switch --upgrade`
kreyren has quit [Remote host closed the connection]
<Leira[m]> I removed `grv`, it is not essential anyway~
knupfer has joined #nixos
<s1341> manveru but it gets stuck there...
<wedens[m]> Leira: ctrl+c it? :)
o1lo01ol1o has joined #nixos
<s1341> hrm. manveru when i change the derivation, it should rebuild, right?
<manveru> yep
jdelStrother has joined #nixos
jtojnar_ has quit [Quit: jtojnar_]
<s1341> i modifed my .nix, and then ran `❯ nix-env -f ~/src/nixpkgs -iA page`, and it just says 'installing 'page-v2.3.2''
<s1341> manveru: it's not rebuilding :(
peelz has quit [Remote host closed the connection]
<manveru> wrong file?
o1lo01ol1o has quit [Ping timeout: 256 seconds]
leotaku has quit [Ping timeout: 250 seconds]
<manveru> :)
<s1341> manveru: i don't think so...
<s1341> the file is at ~/src/nixpkgs/pkgs/tools/misc/page/default.nix
linarcx has quit [Ping timeout: 250 seconds]
thc202 has joined #nixos
<srxl> How can I get a python package (ie. python37Packages.pygobject3) to be included and usable at runtime in a non-Python derivation?
<srxl> Putting it in buildInputs doesn't seem to work
<niso> srxl: you mean to access it in the python repl?
<NobbZ[m]> And if you go into your clone and do `nix-build -f ./. page`?
<NobbZ[m]> This is how I usually test changes before trying to actually get them into my system.
<NobbZ[m]> I wouldn't use `nix-env` anyway…
<srxl> I have a package that uses some python scripts, and it needs pygobject
<s1341> NobbZ[m]: nix-build doesn't accept -f
kreyren has joined #nixos
<Taneb> s1341: either "nix-build -f ./. page" or "nix build -f ./. page"
<NobbZ[m]> O, sorry, its `nix build` (without hyphen)
<Taneb> ...*"nix-build./. -A page" for the first one of my suggestions
waleee-cl has joined #nixos
jfroche has quit [Ping timeout: 240 seconds]
drakonis has quit [Ping timeout: 240 seconds]
<s1341> NobbZ[m]: ❯ nix build -f ./. page
<s1341> error: cannot auto-call a function that has an argument without a default value ('lib')
<NobbZ[m]> Then you are not in your nixpkgs clone root…
ottidmes has joined #nixos
linarcx has joined #nixos
<s1341> NobbZ[m]: ok. from root it works, but it doesn't rebuild :*(
<NobbZ[m]> Any output? And especially, in the `src` atribute, did you change the hash of the input?
bahamas has quit [Ping timeout: 250 seconds]
<s1341> NobbZ[m]: no output... i didn't change teh src attribute... i changed meta.
<s1341> the input didn't change, just my postInstall
jfroche has joined #nixos
bnj has quit [Remote host closed the connection]
drakonis has joined #nixos
<ottidmes> s1341: ah, know that one myself, you can remove it from the store with the nix-store command, it does not trigger a rebuild otherwise
<ottidmes> s1341: nix-store --delete /nix/store/<hash of src>...
jtojnar_ has joined #nixos
<NobbZ[m]> But shouldn't changing the `postInstall` change the output hash?
<s1341> NobbZ[m]: what you said...
<ottidmes> NobbZ[m]: I don't believe it does, because the only thing considered unsafe is the remote thing, which is therefore hashed
<s1341> ottidmes: :(
<ottidmes> I remember having the same issue with openra mods and their postInstall
<kenshinCH> sorry, stupid question. I'm using `python.buildEnv.env` to get a shell for development, and I use `extraLibs` successfully to add python packages. But I want also, say, `node` to be accessible in the shell, and that doesn't work from `extraLibs`. How can I get that?
<s1341> ottidmes: that works.
orcus has joined #nixos
kreyren has quit [Remote host closed the connection]
<ottidmes> s1341: just remember, never touch /nix/store unless you go through the tooling, a lesson I learned the hard way when I started learning about Nix
<__monty__> Also, never force remove anything even with the tooling unless you know what you're doing.
m0rphism has joined #nixos
<s1341> __monty__: hrm. i had to add --ignore-liveness in order to delete the files...
<s1341> is that considered 'force removing'?
jtojnar_ has quit [Quit: jtojnar_]
<__monty__> Yes.
<ottidmes> s1341: It is, but in this case it probably is safe cause the root that prevented you from removing it, is probably your local root (created with nix-build)
<ottidmes> s1341: Although, I would recommend to always try and remove the root properly instead
o1lo01ol1o has joined #nixos
<s1341> ottidmes: how do i do that?
never_released_ is now known as never_released
<ottidmes> s1341: nix-store --gc --print-roots | grep -v /proc/ (that shows you all relevant roots that exist AFAIK)
kreyren has joined #nixos
<s1341> sorry to be a total noob, but what are 'roots'?
<s1341> damnit. running the way NobbZ[m] suggested, it looks like my postInstall hook is not running.
<s1341> not sure what is going on :(
<ottidmes> In the context of the garbage collector, they ensure certain things, like your running system and all it in turn depends on (hence root) are not garbage collected
<NobbZ[m]> The hooks are only run, if they are called by the actual phase. Many custom builders though don't call them due to implementation "bugs"
<__monty__> s1341: The path of least resistance is usually to read the nix pills and most of the three manuals.
<tilpner> --ignore-liveness can and does eat systems
<ottidmes> and the manpages are quite informative
<NobbZ[m]> Or, if you actually have an `installPhase`, then it needs to `runHook postInstall` or something like that
<s1341> NobbZ[m]: this is buildRustPackage
<s1341> i don
<s1341> 't have installPhase.
<musicmatze> Please STOP inviting me to the nixos github organization!!!!!
<__monty__> musicmatze: No one's doing that manually. Github had some database outages recently which is why statuses have been lost.
<s1341> NobbZ[m]: it looks like buildRustPackage respects the postInstall hook.
<s1341> so why is mine not being called.
KeiraT has quit [Remote host closed the connection]
KeiraT has joined #nixos
<tilpner> musicmatze: You are a maintainer, it's probably a script inviting every maintainer into the nixpkgs-maintainers team
<NobbZ[m]> s1341: Yeah, it looks like it respects the hooks. Can you share your nix-expression?
<s1341> sure...
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<musicmatze> __monty__: tilpner ah okay... I still would like to not join the organization. Is there anything I can do?
<__monty__> tilpner: Joining the maintainer team isn't a requirement, at least not yet, though. So people should be free to decide whether they want to join or not and if they don't want to they shouldn't get spammed. This is the second instance of this problem I've seen. gchristensen is aware afaik.
<tilpner> __monty__: I agree. I'm not justifying, just explaining
<musicmatze> ok, so I guess as long as someone is aware there's a chance that the problem might vanish anytime sooner or later
<__monty__> musicmatze: The options are 1) wait until the kinks are ironed out, 2) set up your spam filter, 3) remove yourself from the maintainer list altogether.
<tilpner> musicmatze: First, why is joining a problem? Yes, you can remove yourself as a maintainer, but don't do that if you still want to maintain those packages, of course
<__monty__> What's your reason for not wanting to join the org, btw? 2FA?
<musicmatze> 1 it is for me...
<tilpner> There will hopefully be a blacklist eventually
<musicmatze> I really want to maintain and contribute, just not join the org (yet, that might change in the future)
<tilpner> Can you explain why? It does not give you any extra responsibility, and does not have to be displayed publicly
<__monty__> musicmatze: Joining the org doesn't come with any extra responsibilities btw. It just allows ofborg to ping you for review of packages you maintain for example.
<tilpner> Actually, not sure about that last part
kolaente_ has joined #nixos
<musicmatze> Yes, but for me it creates a mental responsibly and feeling of inclusion that I don't want because of how certain things are done in the community that I don't like and thus I don't want to be part of that community "officially" yet
<musicmatze> As said, that might change in the future
kreyren has quit [Ping timeout: 240 seconds]
phreedom has quit [Ping timeout: 240 seconds]
<tilpner> Well, that just makes me more curious, but I can accept that :)
<tilpner> It's probably graham controlling that process, reach out to him if you want to land a blacklist quickly
<tilpner> *on a
phreedom has joined #nixos
karantan has joined #nixos
kreyren has joined #nixos
<musicmatze> If you want, I'd be happy to elaborate.
<musicmatze> In fact, that might be a good chance for a blog post on my site...
<musicmatze> I guess I'll just do that, so the blog does not look like its abandoned
cosimone has joined #nixos
<kolaente_> Has anyone got this usb-c docking station (https://i-tec.cz/en/produkt/catriple4kdockpd-2/) working with nix? I've tried the drivers as descibed on https://nixos.wiki/wiki/Displaylink and counldn't get the screens to work. However, in ubuntu I got it working with the drivers from i-tec, which seem to be version 5.2 whereas those in nix are 4.4. And now I'm not sure if I can somehow port those to nix
<kolaente_> (The drivers are a .run file with embedded tar from https://i-tec.cz/wp-content/uploads/man_dri/DisplayLink_Ubuntu.zip)
kaliumxyz has quit [Remote host closed the connection]
<s1341> NobbZ[m]: now i am seeing that the postInstall runs, but the installShellCompletion isn't installing the completions :(
<tilpner> musicmatze: Sounds good, ping me when it's up?
<musicmatze> sure
bahamas has joined #nixos
<NobbZ[m]> s1341: Not installed or not installed where you would expect them? I'm not confident with shell install
<s1341> NobbZ[m]: no idea. They're not in .nix-profile
<NobbZ[m]> Are they in your output?
abathur has joined #nixos
<s1341> yes.
<NobbZ[m]> Are they in the output when you don't have that hook?
cartwright has quit [Remote host closed the connection]
<NobbZ[m]> At the same location?
cartwright has joined #nixos
abathur has quit [Ping timeout: 250 seconds]
zdm has quit [Quit: WeeChat 2.7.1]
<s1341> NobbZ[m]: no.
<NobbZ[m]> Then the installer works.
<s1341> so it is installing them, but i think i had a bad copy of the derivation in the nix store... it wasn't installing my newly built version.
orivej has joined #nixos
<jluttine> is it ok to build both static and dynamic versions of a library or should we only build dynamic ones in nixpkgs?
<Yaniel> static ones are only useful for people who build stuff using the library
rsoeldner has joined #nixos
<Yaniel> they *are* nice in that you don't need that dependency at runtime then
<jluttine> is there any convention if they are typically built in nixpkgs derivations?
<Yaniel> oh, there are some options for static libraries apparently
<LnL> jluttine: I think some packages have static libraries, but generally only when those are in a separate output to avoid them when dynamic linking
Boomerang has joined #nixos
<Yaniel> some packages also seem to have a parameter for building static binaries which defaults to false
<Boomerang> Hi! Is there any way I can get the meta/license information of a derivation from the CLI? I know there's a way via nix-env, but I don't think that works for me since I don't install these derivations to my user env
<tilpner> nix eval -f '<nixpkgs>' hello.meta
<tilpner> Add --json if you need to interpret the entire result
<s1341> NobbZ[m]: thanks for the help.
<tilpner> Or select hello.meta.license.spdxId if you need just that
<tilpner> You can add --raw to get rid of the quotes
<Boomerang> Maybe I should have specified I get the derivations from `nix-store -qR /nix/store/some-path`, so I don't know which nix expression they correspond to
<tilpner> nix-instantiate is the stable alternative to nix eval
<Boomerang> Is that information lost once a derivation is instantiated?
<Boomerang> (it doesn't show up in nix show-derivation)
bahamas has quit [Ping timeout: 250 seconds]
<tilpner> Uh oh, that's not going to be easy
<Boomerang> That's what I feared ^^ I don't mind scripting something complicated as long as there's a way to get that data somewhere
cosimone_ has joined #nixos
<tilpner> AFAIK meta is not stored alongside derivations anywhere
<tilpner> So if you really need this, you'll probably need some drv->attrpath mapping
chagra_ has quit [Ping timeout: 250 seconds]
<tilpner> That is not always possible though, e.g. with overrides
aveltras has joined #nixos
<Boomerang> Isn't it weird to just drop metadata? I've heard of nix-locate which seems to do something like drv->attrpath, maybe I can try with that
<tilpner> Why do you need this, maybe there's a better solution?
<tilpner> nix-locate can get you part of the way, but it can't provide that mapping for all derivations
cosimone has quit [Ping timeout: 246 seconds]
<Boomerang> I want to have an automated way to generate a document with all the licenses used by my software. I think the nix-store -qR approach will give me too many things, but I can blacklist some of them
chagra_ has joined #nixos
<tilpner> That sounds much easier to do from Nix
<Boomerang> Possibly!
<Boomerang> In that case, how can I recursively get all the buildInputs that go into making a derivation?
<tilpner> The problem is derivations that don't end up in buildInputs
<tilpner> getContext doesn't give you attrsets
chagra has joined #nixos
<tilpner> (Well, it does, but you know what I mean)
<Boomerang> Yes I see, like all the dependencies that are used in a script/phase without being added to the buildInputs :(
chagra_ has quit [Ping timeout: 265 seconds]
<ottidmes> There is no way to add a module to a config from a script than something like this, right?
<ottidmes> import <nixpkgs/nixos> { configuration = { imports = [ (<nixpkgs/lib/from-env.nix> "NIXOS_CONFIG" <nixos-config>) { fileSystems."/" = mkDefault { device = "/dev/null"; }; } ]; }; }
<tilpner> ottidmes: See NIXOS_EXTRA_MODULE_PATH
<ottidmes> I thought it was removed, guess I will be using that then, cause both are impure anyways
chagra has quit [Ping timeout: 264 seconds]
<gchristensen> hmmm would prefer it not be a blog post personally
chagra has joined #nixos
<gchristensen> musicmatze: I have disabled the thing which was sending you invitations. if you could get me exact dates that your invitations were coming in, I would really appreciate that
zupo has joined #nixos
<musicmatze> gchristensen: thanks! the dates are 2020-02-24, 2020-02-25, 2020-2020-02-25 and today
<musicmatze> maybe more, but I deleted the mails... maybe not more...
<gchristensen> hrm
<gchristensen> okay so 02-25 was definitely when github was having an outage. check this out: https://twitter.com/grhmc/status/1232348367461679105
<Boomerang> tilpner: Would it be reasonable for me to override mkDerivation to keep meta around? (That's going to be a lot to rebuild!)
ArchFeh has joined #nixos
<tilpner> Boomerang: Note that you don't need to build anything, if you only want meta
<tilpner> Boomerang: But not everything needs to use mkDerivation
chagra_ has joined #nixos
<Boomerang> That's a good point! Most things do use mkDerivation even is it's indirectly, no? I might have a go at that and see how slow it is
<Boomerang> Thanks for your help! :)
chagra has quit [Ping timeout: 250 seconds]
kolaente_ has quit [Ping timeout: 246 seconds]
zupo has quit [Ping timeout: 250 seconds]
cosimone_ has quit [Remote host closed the connection]
rail has quit [Remote host closed the connection]
cosimone_ has joined #nixos
zupo has joined #nixos
kolaente_ has joined #nixos
matthiaskrgr has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net - currently broken?]
rsoeldner has quit [Remote host closed the connection]
nikivi has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
<LeshaInc> Hello. Is there any way to continue an interrupted build from where it stopped?
matthiaskrgr has joined #nixos
<tilpner> No, not really
<LeshaInc> That's unfortunate
kolaente_ has quit [Ping timeout: 256 seconds]
nikivi has joined #nixos
<Boomerang> If it's a long build with many phases, you can split it up into several derivations
morr has quit [Ping timeout: 272 seconds]
<Boomerang> But if it's deterministic, it's not going to help much
morr has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
rardiol has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
veske has quit [Quit: This computer has gone to sleep]
veske2 has quit [Quit: This computer has gone to sleep]
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/4362edf3c3c (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
zischknall has joined #nixos
xkapastel has joined #nixos
<zischknall> Hey, I am trying to setup a dev environment with eclipse and openjdk11 but everytime i execute nix-shell it says attribute missing. But if i use the exact same package name with nix-env it works. Can someone help me out with that?
<zischknall> And its only for the eclipse derivation
<NobbZ[m]> How does your `shell.nix` look like? Or your invocation of `nix-shell`?
<infinisil> zischknall: nix-env without -A uses derivation names, not attributes, to find packages
<zischknall> my shell.nix only imports pkgs from nixpkgs and then hast the pkgs.mkshell block
<zischknall> oh Okay and buildInputs is looking for Attributes?
<gchristensen> musicmatze: note our month-over-month PR growth is pretty good https://status.nixos.org/grafana/d/nUq1ufyZz/github-issues-and-prs-offset-diff?orgId=1&refresh=30s&from=now-30d&to=now and we have actually merged way more than the numbers you quote -- merging 2,000 in the last 30 days
srxl has quit [Remote host closed the connection]
<NobbZ[m]> zischknall: it doesn't "search" anything. It takes a list of derivations. And those derivations are used.
<zischknall> OKay, got it
<zischknall> looked up the attribute name on the package list
<zischknall> thank you very much
gila has quit [Ping timeout: 250 seconds]
<musicmatze> gchristensen These are Numbers I researched while writing the article
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
lsix has joined #nixos
<gchristensen> I see that, but your method isn't correct
<musicmatze> Why is that?
kai_w has quit [Ping timeout: 246 seconds]
kai_w has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<gchristensen> musicmatze: I can trivially prove to you that it isn't getting the right numbers, https://github.com/nixos/nixpkgs/pulls?q=is%3Apr+created%3A%3E%3D2020-03-01+ this shows 1,066 PRs merged in the last 20 days and 4,708 since 2020-01-01 : https://github.com/nixos/nixpkgs/pulls?q=is%3Apr+created%3A%3E%3D2020-01-01
<LnL> also I'm pretty sure your "push to master" numbers include squash and merge
<gchristensen> exactly
<musicmatze> That is enabled ?
<musicmatze> Well, that's another point on my list then...
<gchristensen> okay :)
<LnL> don't get me wrong it happens, but it's not that common AFAIK
<gchristensen> I just thought you would like to know your numbers are much lower than reality, and we do better than you're thinking. if you update it to include perils of squash-and-merge, let me know and I'll read again
<infinisil> Yeah I rarely see somebody push to master without a PR
<gchristensen> it is quite uncommon
<gchristensen> maybe a handful of times a week
alexherbo2754 has quit [Ping timeout: 250 seconds]
<hyper_ch> gchristensen: why that ban?
<ottidmes> constant join/quit messages
<hyper_ch> people still display those?
<gchristensen> hyper_ch: it is often enough to disrupt conversations actually, and as far as my and other's searching goes, they've not interacted at all in here
<DigitalKiwi> what's a quit message
<hyper_ch> gchristensen: well, was just curious because I didn't notice anything... but then I discard join/part anyway
<ottidmes> DigitalKiwi: malSet (~malSet@cpe-173-89-212-155.columbus.res.rr.com) has quit (Read error: Connection reset by peer)
<gchristensen> no worries :)
<mudri> infinisil: Did you try reproducing that problem I was having with Agda? I've written up some of what I've found here: https://github.com/agda/agda/issues/4526
<{^_^}> agda/agda#4526 (by laMudri, 1 minute ago, open): Agda 2.6.1 bad performance, even on trivial files
<gchristensen> grep -a malSet .weechat/logs/irc.freenode.#nix* | nc termbin.com 9999 -> https://termbin.com/cc8t
<ottidmes> hyper_ch: I disabled them in the past, but it has happened too many times that I wanted to help someone, only to find out that they left after responding, so now I at least sometimes know to stop earlier XD
<hyper_ch> no tab-auto completion?
zischknall has quit [Ping timeout: 264 seconds]
<gchristensen> usually the tab completion happens at the start of the message
<musicmatze> <gchristensen "I just thought you would like to"> I'll certainly include the feedback in the article! After making lunch though :-D
<gchristensen> sure
rgrau has joined #nixos
<infinisil> mudri: I haven't no
<infinisil> I'll subscribe to that issue though
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ariakenom has joined #nixos
<mudri> Cheers
srxl has joined #nixos
<LnL> musicmatze: the github ui shows the pr a squashed/rebased commit was part in the branch list of but seems like that's not available in the api
karantan has joined #nixos
abathur has joined #nixos
nschoe has quit [Ping timeout: 250 seconds]
<ottidmes> hyper_ch: I do, but I often already typed the first bit of my response
abathur has quit [Ping timeout: 240 seconds]
o1lo01ol1o has joined #nixos
srxl has quit [Remote host closed the connection]
zupo has joined #nixos
SyrupThinker has quit [Quit: Gateway shutdown]
Guest83260 has joined #nixos
Guest83260 has quit [Changing host]
Guest83260 is now known as Miyu-saki
phreedom has quit [Ping timeout: 240 seconds]
gila has joined #nixos
veske has joined #nixos
veske2 has joined #nixos
morgrimm has joined #nixos
<morgrimm> Hey all - I have a bit of a dumb question
gila has quit [Ping timeout: 256 seconds]
<morgrimm> I have a base nix install with no channels - is it keeping up with nixpkgs on it's own, be default?
<morgrimm> by*
<morgrimm> I added the nixpkgs channel myself, but when I upgrade it just says it's ignoring the one I added, so I assume it's builtin
<morgrimm> But there hasn't been any packages updates for like a week, which is odd to me coming from brew
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/d96bd3394b7 (from 22 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
phreedom has joined #nixos
<tilpner> musicmatze: Thank you. I feel the same about some points, but I have no intuition about how much a transition like you described would help
<gchristensen> morgrimm: you'll need to update your channel, with nix-channel --update
<musicmatze> gchristensen: I added some errata to the article. Thanks again for providing feedback!
<musicmatze> tilpner: thanks!
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexherbo2754 has joined #nixos
zupo has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
Ariakenom has quit [Ping timeout: 265 seconds]
Ariakenom has joined #nixos
doyougnu has quit [Ping timeout: 246 seconds]
aswanson has joined #nixos
morgrimm has quit [Remote host closed the connection]
morgrimm has joined #nixos
<morgrimm> gchristensen: I get `unpacking channels...` when I run it, but still no updates
<morgrimm> If I add the unstable nixpkgs as an option, it still tells me that it's ignoring one, since they have the same packages
ArchFeh has quit [Quit: archfeh]
<morgrimm> Maybe I should be adding the darwin channels, since I'm on a mac? :/
is_null has quit [Remote host closed the connection]
<NobbZ[m]> How do you install and update?
gustavderdrache has joined #nixos
<morgrimm> I just do `nix-channel --update` to get the latest packages, and then `nix-env -u` to upgrade what I have installed
<morgrimm> But I installed nix like a week ago, and there's been no updates since then - so I feel like I'm definitely missing a channel or something I'm supposed to have
<morgrimm> I'm used to Homebrew's update cadence
<NobbZ[m]> `nix-env -u` will only update if software versions have actually changed. Have you checked if there have been real updates in the channel you use?
doyougnu has joined #nixos
<morgrimm> That's where I'm confused - I haven't added any channels, I just assumed that it came with `nixpkgs` already as a default channel - is that correct?
<NobbZ[m]> You won't see some intermediate library updating when using `nix-env` only the main application
gila has joined #nixos
<NobbZ[m]> You get a snapshot of a channel when you install, though you need to add an actual channel to get updates.
<NobbZ[m]> Anyway, if your software hasn't been updated, then updates wont appear from thin air.
leotaku has joined #nixos
<morgrimm> Right, I get that - so I guess I should be adding the base nixpkgs channel in that case, since I haven't added anything past the snapshot
<NobbZ[m]> You said above that you added channels…
<morgrimm> I've also tried adding cachix as a binary cache option for some things - and I've added my user as a trusted user, but nix won't use them (untrusted substitutor error)
<NobbZ[m]> What is the output of `nix-channels --list`?
<morgrimm> Nothing - I removed the unstable channel because it said it was ignoring that on update
<morgrimm> So I have no channels right now
<NobbZ[m]> Cachix is just a cache, you won't gain nothing from it unless you build derivations locally of which you want the outputs cached.
<domenkozar[m]> @morgrimm: what command did you use?
endocrimes_ has quit [Ping timeout: 268 seconds]
gila has quit [Ping timeout: 256 seconds]
<morgrimm> NobbZ[m] I know that, but isn't the point of using a cachix cache to avoid building locally and pull binaries? Like for example, I added the `neovim-nightly` cachix cache, and then built the neovim-nightly derivation - but it built entirely locally instead of trying to pull from that cache
endocrimes has joined #nixos
<NobbZ[m]> Perhaps there was no cache hit.
<domenkozar[m]> morgrimm: there are a couple of reasons why that happens
<NobbZ[m]> I don't know how often that cache is refreshed, nor do I know which buildInputs there are used to populate, but its possible, that their buildInputs don't match what you have and therefore you get a cache miss.
<domenkozar[m]> morgrimm: what cache did you configure and what is the derivation you're trying to build?
<morgrimm> domenkozar[m] I followed the instructions here, for neovim-nightly: https://github.com/gilligan/nix-neovim-nightly
<morgrimm> I added the cachix cache, and then ran the build from the tarball
<morgrimm> But it gives me the same message for all my caches, `cache.nixos.org` included: `ignoring untrusted substitutor`
<NobbZ[m]> But does your current snapshot equal that one used to populate the cache? At least in the relevant paths?
<NobbZ[m]> And if cachix is untrusted, well, you won't get something from there anyway.
<domenkozar[m]> morgrimm: can you paste the full line?
<morgrimm> `warning: ignoring untrusted substituter 'https://cache.nixos.org'`, then `warning: ignoring untrusted substituter 'https://neovim-nightly.cachix.org'`
<morgrimm> then `warning: ignoring the user-specified setting 'trusted-public-keys', because it is a restricted setting and you are not a trusted user`, which makes no sense since I've added myself as a trusted user in the conf
<domenkozar[m]> that's weird, cachix should assert if you're a trusted user
reallymemorable has joined #nixos
<morgrimm> I had to add myself as a trusted user for Cachix to work at all
<morgrimm> for me to run `cachix use`
<NobbZ[m]> I didn't need to manually trust it…
<domenkozar[m]> what OS?
<NobbZ[m]> Have you restarted the nix demaon since?
<morgrimm> I'm running a multi-user install, if that makes a difference, but
<LnL> yeah you'll need to restart the daemon after making yourself trusted
AluisioASG has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<morgrimm> Shouldn't cachix have not picked up the change unless the daemon was restarted too then?
<domenkozar[m]> ah!
<domenkozar[m]> sudo pkill nix-daemon
<domenkozar[m]> is nix-daemon running?
<domenkozar[m]> morgrimm: yes, but that's real tricky
<ottidmes> domenkozar[m]: what OS? He said: "Maybe I should be adding the darwin channels, since I'm on a mac? :/"
<domenkozar[m]> I think Nix should monitor those files by itself
<morgrimm> ^ Yes, I'm on macOS Catalina (the actual install went smoothly with the volume mounting, so no issue there)
<LnL> it would be _really_ nice if nix show-config printed the actually used values instead reading out nix.conf from disk
<LnL> not sure how you'd check this currently
AluisioASG has joined #nixos
<NobbZ[m]> Well, nixOS and probably nix-darwin as well, manage `nix.conf` through a nix expression and restart the demon as necessary
<morgrimm> domenkozar[m]Yup, the nix daemon is still running. Am I supposed to pkill and run it, or am I supposed to reload the plist for MacOS?
<NobbZ[m]> Therefore watching doesn't make much sense
<morgrimm> NobbZ[m] is right - all the conf files are in the default profile, not system folders for me
<LnL> morgrimm: no, that should be enough
<domenkozar[m]> killing it should be enough
veske has quit [Quit: This computer has gone to sleep]
veske2 has quit [Quit: This computer has gone to sleep]
<LnL> morgrimm: btw did you use my pr for the volume creation?
<LnL> or something else
alexherbo27548 has joined #nixos
<morgrimm> I just followed the manual steps at the end of the giant macOS issue lol
alexherbo2754 has quit [Ping timeout: 260 seconds]
veske has joined #nixos
veske2 has joined #nixos
<morgrimm> synthetic -> volume creation -> permissions enable
<morgrimm> and encrypted them until I boot, which is nice
<morgrimm> Which pr are you talking about/
veske has quit [Client Quit]
veske2 has quit [Client Quit]
<morgrimm> So I restarted the daemon again and added `nixpkgs-unstable`, and this is what I get running `nix-env -u`: `warning: name collision in input Nix expressions, skipping '~/.nix-defexpr/channels_root/nixpkgs'`
<morgrimm> Does this mean that it's skipping potential packages, or just that it's preferring derivations from the unstable channel?
<LnL> sudo -i nix-channel --list
<morgrimm> Only the unstable channel
<morgrimm> Does that mean I added the unstable to my user when the root already had it installed?
<morgrimm> So it's just ignoring one, or
<NobbZ[m]> Dpends. Did you use `sudo` sometimes and sometimes not?
<LnL> probably, but yeah you have (a version) of unstable for both root and your user
<LnL> so only one will be used
<morgrimm> I only used sudo for the install as needed
<morgrimm> Nothing beyond that, everything else was from my user
<LnL> yeah, but by default the channel is setup for root
<morgrimm> Ahh
<morgrimm> So no wonder I'm not getting anything updated - I'm running the channel update form my user
<morgrimm> from*
<LnL> so that also takes priority and is probably older since you didn't update that one
<LnL> indeed :)
<morgrimm> So I either remove the root channel and leave it for my user, or just `sudo nix-channel --update` to update unstable
<morgrimm> idk which is the better decision
abathur has joined #nixos
<morgrimm> Not that it matters beyond semantics I guess
<LnL> yeah not really, but don't forget to both remove and update if you change it
<LnL> remove only changes the list, update actually applies it
<morgrimm> Ahhh
<morgrimm> so I should `nix-channel --remove nixpkgs && nix-channel --update` on my user
<morgrimm> and then go from there updating the root one
<LnL> for example
<morgrimm> I just removed it from my user... and now it's gone from the root channel list too
<LnL> did you use sudo instead of sudo -i?
<morgrimm> I did, yeah
<LnL> yeah sudo is weird on darwin :/
<morgrimm> Yeah, wtf, -i works correctly
<morgrimm> I didn't realize sudo was different on macos
<LnL> sudo sh -c 'echo $HOME'; sudo -i sh -c 'echo $HOME'
<morgrimm> ....
<LnL> I have no idea why somebody added keep_env HOME to the sudoers file
<morgrimm> it just elevates the current user's perms and keeps the environment?
<morgrimm> or does it just keep the current user's HOME for the root shell
<LnL> Defaults env_keep += "HOME MAIL"
<morgrimm> That's so weird
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> morgrimm: it means programs you run with sudo, will use the current users ~/.config, not roots config
<clever> morgrimm: it also means, root will wind up owning half your config files, so certain programs never work without sudo again
<morgrimm> ._.
<morgrimm> well that's a stupid design decision
<clever> blame apple :P
<morgrimm> Oh I do lol
<morgrimm> If I could switch to arch I would
<clever> morgrimm: dual-boot nixos + darwin?
<morgrimm> Work MBP :( IT encrypted the boot disk so I can't do much
<clever> morgrimm: external boot disk?
<morgrimm> At some point getting a s76 darter is on my list, and putting linux on that for my personal use. I haven't looked into NixOS much
<morgrimm> External could work, yeah
glittershark has quit [Ping timeout: 256 seconds]
<morgrimm> I'm sure there's some fast TB3 external drives I could use
<LnL> no locked bios?
<morgrimm> ^ Now that I don't know lol
<morgrimm> If I had to guess, if IT can lock it down, they probably have
<ottidmes> This is configurable, on MacOS, right? If so, maybe the Nix install script could provide a message for this for Darwin users?
<morgrimm> ^ Not a bad idea. I had no idea that was a quirk.
<morgrimm> The install script doesn't mention anything out of the ordinary
<LnL> yeah, alltho I'd rather just move the channels out of root by default
<LnL> gets nuked with a sw upgrade anyway
<ottidmes> ^ This, the biggest issue I have seen with nix-channel here
glittershark has joined #nixos
<LnL> nix could also check ownership and refuse if it doesn't match
<morgrimm> clever Is NixOS worth considering as an option over something like arch, for example? Like, is there an alternative package repo for things that aren't in nix yet?
<morgrimm> With arch at least I can be kinda confident that if there's no derivation for it, it'll probably be in the AUR
veske2 has joined #nixos
veske has joined #nixos
<ottidmes> morgrimm: Friend of mine uses NixOS and has a chroot with Arch for that use case
<morgrimm> That's not a bad idea actually
<morgrimm> Any issues with it that they found came up?
<morgrimm> with that setup, I mean
fusion809 has joined #nixos
<ottidmes> fusion809: Are there any problems you found with your chroot Arch within NixOS approach?
<fusion809> I understand someone wants to know about running NixOS with an Arch chroot
<fusion809> No, at first I did but that was lack of knowledge realy.
<ottidmes> morgrimm: ^
<fusion809> morgrimm: it's essentially like a pair of safety wheels on a bike -- they're there to catch you if you lose your balance and find NixOS is too challenging for you, or you just have some teething trouble with it.
<ottidmes> I haven't tried that approach myself, but that way, can you just run Arch programs next to NixOS, or is it more like live switching between the two?
<morgrimm> ^ wondering that myself. I'm not too worried about challenging, I can figure whatever out - I'm just worried about needing something that isn't available as a nix package (without going to the trouble of writing derivations myself for all those things)
<morgrimm> Or managing GUI apps (browsers, etc.)
<morgrimm> ^ albeit that I'm used to the shitty brew/brew cask separation for managing, so I don't know how nix handles those
<fusion809> Yep, you can run Arch programs next to NixOS. So, say you have an app you want to run that is not in the nixpkgs repo, or that isn't working properly from nixpkgs. What you do is chroot into your Arch install and launch the program within it. If it's a graphical application you have to run `xhost +` outside the chroot (i.e. in your NixOS terminal) and then run `export DISPLAY=":0"` within the chroot and type the command that
<fusion809> will launch that app. If you need audio in the program you want to run there's a way to get that too.
sgrunert has quit [Remote host closed the connection]
<simpson> morgrimm: What would you do on other distros? At some point, picking a distro means picking its package manager and accepting that occasionally one will have to write custom package descriptions.
<ottidmes> fusion809: I assume Arch's services won't be working though, right?
veske has quit [Quit: This computer has gone to sleep]
veske2 has quit [Quit: This computer has gone to sleep]
<ottidmes> Yep, I started out with Arch on my laptop as fallback, and NixOS on my desktop, and now I haven't used Arch in years, no longer found the need
<fusion809> No, but that's never served as a barrier before for me. I've run quite a few apps in the chroot. I've run games, I've run web browsers, I've run maths software, jpdfbookmarks (an app for editing bookmarks in PDF files), etc.
<morgrimm> simpson You're totally right - I do the same with writing custom brew formulae on darwin, I'm not averse to it. A small part of me is still worried just that nixpkgs just flat out doesn't have the variety of AUR - but then again, the more people write packages for it after not finding what they need, they faster that gets better
<morgrimm> And I far prefer nix's package management model to anything else
<fusion809> Running the apps natively is preferable, one aspect of using a chroot is that desktop config files can't be used to launch apps from chroots, at least not to my knowledge.
reallymemorable has quit [Quit: reallymemorable]
<symphorien> morgrimm: https://repology.org/repositories/graphs nixpkgs has a lot of packages, and nearly as many as AUR
<simpson> morgrimm: AUR and nixpkgs aren't apples-to-apples; a more reasonable comparison might be nixpkgs with Gentoo's Portage trees or other ports trees. AUR is able to have a large selection precisely because they do not vet or integrate.
<symphorien> (it's a bit biased because nixpkgs contains a lot of haskell packages)
zupo has quit [Ping timeout: 250 seconds]
ATuin has quit [Quit: WeeChat 2.7.1]
<morgrimm> That makes sense though - at least with nix you have more assurances than a random packages from AUR
<morgrimm> package*
<fusion809> Well, morgrimm if you decide to go the chroot route, here's the shell script function I use to set up chroots, https://raw.githubusercontent.com/fusion809/common-scripts/master/chroot/genroot-basic.sh. I run genbasic /arch, where /arch is the mount point for my Arch petition. That function uses Zsh as the default shell in the chroot. You may wish to adapt it according to your purposes. It also tries to mount my /data
<fusion809> petition, so you may wish to delete that line too.
<fusion809> I always check AUR packages before installing.
zupo has joined #nixos
reallymemorable has joined #nixos
<fusion809> data petition to /data within the chroot^
lsix has quit [Ping timeout: 246 seconds]
<fusion809> This is what I have in my Arch's system's ~/.zshrc file to ensure chroots work for starting apps: https://github.com/fusion809/arch-scripts/blob/master/.zshrc#L124-L130.
<morgrimm> Oh sweet, thank you
<morgrimm> If I use it I'll have to adapt it for fish - shouldn't be too hard
<morgrimm> But that really helps
<morgrimm> Maybe I'll stick NixOS on an external drive and play around with installing and using it
gila has joined #nixos
organixpear has joined #nixos
<cransom> even better, stick it on your internal drive and never look back!
<morgrimm> ^ Work Macbook, IT's got it locked up pretty tight
<morgrimm> Eventually I'll by a personal machine and do just that
<morgrimm> buy*
davidak has joined #nixos
mojjo has quit [Ping timeout: 240 seconds]
fusion809 has quit [Remote host closed the connection]
hlavaty has joined #nixos
jdelStrother has quit [Remote host closed the connection]
srl295 has joined #nixos
xelxebar has quit [Ping timeout: 240 seconds]
fendor has joined #nixos
rogue_koder has quit [Ping timeout: 256 seconds]
rogue_koder has joined #nixos
ddellacosta has joined #nixos
veske has joined #nixos
veske2 has joined #nixos
rogue_koder has quit [Ping timeout: 256 seconds]
SyrupThinker has joined #nixos
lsix has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rogue_koder has joined #nixos
ij has left #nixos ["WeeChat 2.6"]
veske has quit [Quit: This computer has gone to sleep]
veske2 has quit [Quit: This computer has gone to sleep]
rogue_koder has quit [Ping timeout: 250 seconds]
AluisioASG has quit [Read error: Connection reset by peer]
AluisioASG has joined #nixos
rogue_koder has joined #nixos
kreyren has quit [Remote host closed the connection]
<ottidmes> nixos-enter hangs for me on setting up /etc, any idea?
<lordcirth__> strace it?
wildtrees has joined #nixos
wildtrees has quit [Max SendQ exceeded]
<ottidmes> lordcirth__: I will try that, maybe it gives me some insight, it probably is related to it being run from a script rather than interactively, so will first experiment with that
wildtrees has joined #nixos
sigmundv__ has joined #nixos
<ottidmes> Well sorry for the noise, it was what I just mentioned, could not be run from a script like I did
SyrupThinker has quit [Quit: ZNC 1.7.5 - https://znc.in]
s1341 has quit [Quit: Connection closed for inactivity]
erasmas has joined #nixos
sigmundv_ has quit [Ping timeout: 256 seconds]
<ottidmes> ssh -t nixos-install 'nixos-enter' was the fix
SyrupThinker has joined #nixos
zupo has joined #nixos
jumper149 has joined #nixos
cole-h has joined #nixos
jakobrs has joined #nixos
rogue_koder has quit [Ping timeout: 256 seconds]
rogue_koder has joined #nixos
wildtrees has quit [Quit: Leaving]
wildtrees has joined #nixos
doyougnu has quit [Quit: WeeChat 2.7.1]
<alexherbo27548> Hi
<alexherbo27548> What is the default display manager of NixOS?
<alexherbo27548> I have commented `# services.xserver.displayManager.sddm.enable = true;` but it display another manager than SDDM
cjpbirkbeck has joined #nixos
<ottidmes> alexherbo27548: it is lightdm
<jumper149> I think it's lightdm but not sure
<eyJhb> Anyone who might take care of #82723 for me?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/82723 (by eyJhb, 4 days ago, open): coc-go: use npm module
Ariakenom has quit [Quit: WeeChat 2.7]
horek has joined #nixos
<jakobrs> Apparently the Nix channel system is being changed? why?
<ottidmes> jakobrs: could you eleborate?
organixpear has quit [Ping timeout: 260 seconds]
<jakobrs> I've been looking around in the Nixos/nix issue tracker and have seen comments about channels being "basically deprecated" or something like that. I
<jakobrs> couldn't find any of them right now
<b42> there's plan to replace them with Flakes: https://gist.github.com/edolstra/40da6e3a4d4ee8fd019395365e0772e7
<ottidmes> Ah, I guess they mean flakes
<jakobrs> ty
<ottidmes> jakobrs: this is also relevant: https://gist.github.com/edolstra/efcadfd240c2d8906348
<ottidmes> "nix-channel and ~/.nix-defexpr are gone"
<ottidmes> which is how I have been using NixOS since 2015
reallymemorable has quit [Quit: reallymemorable]
<lordcirth__> What have you done instead? set NIX_PATH?
<ottidmes> yep
captjakk has joined #nixos
morgrimm has quit [Ping timeout: 240 seconds]
<jakobrs> ottidmes: So you set NIX_PATH to point to the urls of the channels directly?
hmpffff_ has quit [Quit: nchrrrr…]
<jakobrs> like NIX_PATH=nixpkgs=https://nixos.org/channels/nixos-19.09
<ottidmes> jakobrs: no, I have it point to a path to a pinned version
<jakobrs> Which you update using git pull?
<ottidmes> nope, I have a file in my custom nixpkgs lib that lists all channels I might use with a commit/sha256 and then I use fetchTarball
reallymemorable has joined #nixos
rogue_koder has quit [Ping timeout: 250 seconds]
<ottidmes> but to work around the chicken and egg problem (of defining which channel to use in my config, but needing the channel to build the config), I have a small script I run whenever I update my channel, and so my path in NIX_PATH is a symlink, not pointing to a fixed version
rogue_koder has joined #nixos
karantan has joined #nixos
jakobrs has quit [Quit: WeeChat 2.7.1]
<linarcx> Guys, i want to get actuall path of clangd and set it to an environment variable. So: `#export PATH_CLANGD=${pkgs.clang}/bin/clangd` doesn't work and actuall clangd is here: `/nix/store/m45hvw04vh0qcls5rnhg1q8y5jh62pwz-clang-7.1.0/bin/clangd`
orivej has joined #nixos
EffSquared has joined #nixos
turion has joined #nixos
<EffSquared> Hi guys. I am puzzled by an issue I am having with cmake inside a nix-shell
<EffSquared> The setup hook of cmake normally generates the CMAKE_PREFIX_PATH to contain all dependencies.
zebrag has quit [Ping timeout: 250 seconds]
inkbottle has joined #nixos
<turion> I want to continuously deploy from gitlab to my nixos server. Basically, every time my pipeline runs through, I want my nixos server to git pull && nixos-rebuild switch. Any idea how I'd do that sensibly? I could give gitlab access to my server via SSH, but that feel unsafe.
drakonis1 has joined #nixos
<clever> EffSquared: what args did you run nix-shell with?
<EffSquared> Somehow however they are separated by colons (:) instead of semicolons (;) all the sudden and CMake no longer recognizes them.
<turion> Is there some kind of simple light-weight service I can run on my server that I can call with wget that will trigger a rebuild?
drakonis has quit [Quit: WeeChat 2.7]
<misuzu> turion: you could build your system(s) using gitlab-ci runner and then deploying it to your server(s) via ssh
drakonis1 is now known as drakonis
<turion> misuzu: So that means handing gitlab SSH access to my server, right?
<misuzu> turion: yes
<EffSquared> @clever: I have a shell.nix that brings in all kind of dependencies. I use lorri to run the actual shell.
chloekek has quit [Quit: WeeChat 2.7]
<EffSquared> I tested it out of nix-shell directly and it made no difference.
rogue_koder has quit [Ping timeout: 250 seconds]
<EffSquared> The main reason I am almost certain I hit some kind of bug is, that adding ```string(REPLACE ":" ";" CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH}")``` to my CMakeLists.txt fixes all issues.
felix59 has joined #nixos
rogue_koder has joined #nixos
blibberblob has quit [Ping timeout: 256 seconds]
blibberblob has joined #nixos
<clever> EffSquared: the code in nix will always use : to seperate the list
<turion> Hmmm, I could maybe push to the repo on my server and set up a git hook there that rebuilds
jgeerds has joined #nixos
<EffSquared> Hmm, I will try an older CMake version then.
chagra_ has quit [Ping timeout: 264 seconds]
chagra_ has joined #nixos
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Boomerang has quit [Ping timeout: 264 seconds]
karantan has joined #nixos
rogue_koder has quit [Ping timeout: 250 seconds]
rogue_koder_ has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
reallymemorable has quit [Quit: reallymemorable]
o1lo01ol1o has joined #nixos
rogue_koder_ has quit [Ping timeout: 240 seconds]
<linarcx> Guys, this env return nothing: `export CMAKE=${pkgs.cmake}/bin/cmake`. why?
o1lo01ol1o has quit [Ping timeout: 256 seconds]
<cole-h> Where do you have it?
<linarcx> cole-h: Inside a shell.nix file
<cole-h> Mind posting a paste of it in its entirety?
<felix59> Hey guys, I am trying to use nix-shell to get a reproducible development environment for a iOS app. I managed to get all packages I need but my problem is that some build tool I use executes "clang" which now points to the version in the nix store. So I think I want a way to get a nix-shell without a depdenccy to clang. I think this depdency comes
<felix59> from mkDerivation? what would be the easiest way to remove that depdency?
<cole-h> felix59: Why is executing the clang from the nix store undesirable?
<linarcx> All other envs are fine. just cmake is empty.
<symphorien> felix59: use stdenvNoCC instead of stdenv
<felix59> Good question. Seems like the nix clang doesn't understand all apple targets, e.g. "clang -x objective-c -target arm64_32-apple-watchos4.0" yields an error "unknown target triple"
jb55 has joined #nixos
<felix59> Oh cool, I am trying stdenvNoCC
<cole-h> linarcx: It works fine for me, but I had to change `export CLANGD` to be `pkgs.clang-tools` instead of `pkgs.clang.clangd`
<linarcx> Hmmm... weird
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/ecce3a7bc9a (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<linarcx> cole-h: Thanks.
<cole-h> But that gives 9.0.1. Change it to `llvmPackages.libclang` for 7.1.0 clangd
<linarcx> clang isn't the issue. i want cmake :)
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<felix59> Cool, thanks symphorien, stdenvNoCC works :)
<cole-h> linarcx: Right, just trying to narrow down differences.
<cole-h> linarcx: Does it work if you add `-I nixpkgs-overlays=/var/empty` to your `nix-shell` invocation?
rogue_koder_ has joined #nixos
felix59 has quit [Remote host closed the connection]
is_null has joined #nixos
Naptra has joined #nixos
linarcx has quit [Ping timeout: 250 seconds]
eacameron has joined #nixos
chagra_ has quit [Read error: Connection reset by peer]
magnetophon has joined #nixos
davidak[m] has joined #nixos
chagra has joined #nixos
karantan has joined #nixos
o1lo01ol1o has joined #nixos
linarcx has joined #nixos
chagra has quit [Ping timeout: 250 seconds]
organixpear has joined #nixos
<EffSquared> @clever: I am beyond confused. I have a CMake project that ignores all environment variables.
chagra has joined #nixos
<EffSquared> All my minimal test cases do not have this issue.
<EffSquared> @clever: Thank you for your help anyway.
<EffSquared> \quit Stay safe, wash your hands. =D
zeta_0 has joined #nixos
EffSquared has quit [Quit: Stay safe, wash your hands. =D]
organixpear has quit [Client Quit]
maddo has quit [Quit: See ya]
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hmpffff has joined #nixos
philr has quit [Ping timeout: 256 seconds]
drakonis has quit [Ping timeout: 246 seconds]
szicari has quit [Ping timeout: 250 seconds]
maddo has joined #nixos
szicari has joined #nixos
zupo has joined #nixos
hmpffff has quit [Read error: Connection reset by peer]
hmpffff has joined #nixos
karantan has joined #nixos
growpotkin has joined #nixos
rogue_koder_ has quit [Ping timeout: 250 seconds]
gila has quit [Read error: No route to host]
<pepesza> Is there a way to "pin" packages that I use in my shell.nix file? I'm on a slow internet connection ATM, and I don't want system to re-download stuff
<Shell> does anyone have a config I could borrow from for an authoritative-only DNS server in NixOS?
drakonis has joined #nixos
<NobbZ[m]> What do you mean by "pin"?
hmpffff has quit [Ping timeout: 246 seconds]
rogue_koder_ has joined #nixos
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pepesza> NobbZ: I want it to just apply the environment when I execute `nix-shell`, without downloading stuff again and again
hmpffff has joined #nixos
chloekek has joined #nixos
<NobbZ[m]> If "stuff" is already on your system it won't be downloaded again. Though if you collected garbage or updated a channel, then it might cause rebuild/download
<NobbZ[m]> Because both actiona either delete stuff or outdate it.
<pepesza> NobbZ: hmm, I'm using nixos-19.09 channel. So it should be stable. And I haven't run explicit request to GC packages from the store..
<NobbZ[m]> You can pin the nixpkgs of the shell.nix to a certain commit via importing a certain commit of it directly from GitHub, but this still won't save you from GC
<pepesza> NobbZ: could it run GC automatically for any other reason (e.g. me running low on disk space)?
<NobbZ[m]> Stable, yes. Though due to how nix works, a change in a library causes tools that link to this library to get updated as well,
karantan has joined #nixos
<NobbZ[m]> If you have activated automatic GC, then yes, automatic GC will happen
hmpffff__ has joined #nixos
hmpffff has quit [Ping timeout: 264 seconds]
<NobbZ[m]> So to avoid your problem, you need to pin the shell to a commit, and also make your shell a GC root. Though as I'm on a mobile I have a hard time to provide you with some links.
<Shell> ottidmes: thanks!
hlavaty has quit [Remote host closed the connection]
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
o1lo01ol1o has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
captjakk has quit [Ping timeout: 264 seconds]
vandenoever has joined #nixos
linarcx has quit [Quit: WeeChat 2.7.1]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4738b1f89f7 (from 84 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
remirol has joined #nixos
captjakk has joined #nixos
lorimer has quit [Ping timeout: 240 seconds]
jfroche has quit [Remote host closed the connection]
lordcirth__ has quit [Remote host closed the connection]
lordcirth_ has joined #nixos
remirol is now known as lorimer
o1lo01ol1o has quit [Remote host closed the connection]
linarcx has joined #nixos
<linarcx> Hi. if i installed a package like this in linux distro: `nix-env -if <pkg-address>`
<linarcx> How can i update it?
<srk> nix-env --upgrade
<evanjs> -u if you're feeling lazy
<evanjs> nix-env -u will upgrade all `nix-env` packages
<evanjs> (if no package arguments are provided)
<linarcx> thank you so much
<linarcx> And if i want to upgrade a specific package?
o1lo01ol1o has joined #nixos
karantan has joined #nixos
<evanjs> just `nix-env --upgrade <package>`
<linarcx> thank you so much.
<evanjs> I find tldr quite helpful for examples such as this. Here's the nix-env entry on the tldr web client -- https://tldr.ostera.io/nix-env
karantan has quit [Client Quit]
karantan has joined #nixos
drakonis has quit [Quit: WeeChat 2.7.1]
linarcx has quit [Read error: Connection reset by peer]
o1lo01ol1o has quit [Ping timeout: 256 seconds]
linarcx has joined #nixos
azdle has joined #nixos
chagra has quit [Ping timeout: 250 seconds]
leotaku has quit [Ping timeout: 240 seconds]
<linarcx> Guys, what's the proper way to set environment variables inside shell.nix file?
chagra has joined #nixos
<exarkun> You can set env vars with mkDerivation just by passing extra attributes
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
<evanjs> Do you really need to load those env-vars like that?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<linarcx> Yes
<linarcx> i use them inside .nvimrc, .envrc and some other parts of my project.
<linarcx> But the behavior of it is strange..
<ottidmes> linarcx: did you look at direnv?
<evanjs> I think I see it now lol
GodZalo has joined #nixos
<evanjs> yup
<evanjs> ,locate clangd
<evanjs> ugh is it still dead
<{^_^}> Found in packages: clang-tools, jetbrains.clion, llvmPackages.libclang, llvmPackages.clang-polly-unwrapped
<evanjs> there we go
<evanjs> clang.clangd won't do what you might expect. Clang only has one output, and you will want to use e.g. clang-tools to get clangd
<evanjs> e.g. `export CLANGD=${pkgs.clang-tools}/bin/clangd`
<evanjs> I'll post on the reddit thread, too
<GodZalo> Hi everyone, I'm building an image for the raspberry pi 3, but I
<GodZalo> *Im stuck at an build error about cant find kernel version, im new to nix, and cant find it, can someone help me ?
magnetophon has quit [Remote host closed the connection]
jojojojojo has quit [Remote host closed the connection]
jojojojojo has joined #nixos
<linarcx> ottidmes: Yes. Actually i'm using it with lorri and nix.
<evanjs> linarcx: that makes it easier to debug in situations like this. I usually use journalctl --user -efu lorri
<evanjs> Anyway, you just needed CLANGD=${pkgs.clang-tools}/bin/clangd instead of CLANGD=${pkgs.clang.clangd}/bin/clangd
<evanjs> posting a better explanation now
<linarcx> evanjs: Fixed.
<linarcx> evanjs: I don't have journalctl :/
<linarcx> i'm on void linux
<evanjs> ohh gotcha
<evanjs> is lorri running as a service still?
<mdash> anybody used make-disk-image to create a qcow2 nixos image for openstack?
<linarcx> Not as a service. I put it inside my i3.config. But yeah. It' running in background..
<mdash> i'm hitting a fun little error:
<evanjs> Yeah, however you can check the logs. It's typically pretty helpful with its errors
ZoomZoomZoom has joined #nixos
<ZoomZoomZoom> Hi. I had a local cache in my config that's no longer available. I'm trying to rebuild-switch the system, but it still tries to fetch narinfo from this local address, which is already removed from the config. What to do?
<lewo> mdash: there is an attribute to build an openstack image
cosimone_ has quit [Quit: Quit.]
<mdash> lewo: cool, maybe i'm doing it wrong
<mdash> lewo: what should i be using
<mdash> oh hey, it's right in there. Very nice
<mdash> OK I'll try that and see if it fixes things
<ottidmes> ZoomZoomZoom: sudo cp /etc/nix/nix.conf{,~} && nix_conf=$(nix-build --no-out-link --expr 'with import <nixpkgs/nixos> { }; config.environment.etc."nix/nix.conf"') && sudo cp "$nix_conf" /etc/nix/nix.conf
<ottidmes> ZoomZoomZoom: wait
<evanjs> bennofs: does nix-index require nixos?
<ottidmes> ZoomZoomZoom: probably more like: nix_conf=$(nix-build --no-out-link --expr 'with import <nixpkgs/nixos> { }; config.environment.etc."nix/nix.conf"') && sudo mv /etc/nix/nix.conf{,~} && sudo cp "$nix_conf" /etc/nix/nix.conf
<evanjs> linarcx: nix-locate doesn't work? you should be able to install it with nix-env
<evanjs> via `nix-env -iA nixpkgs.nix-index`
<ottidmes> ZoomZoomZoom: it basically comes down to the annoying chicken and egg problem where you need part of your config that dictates how your config should be build, the same issue is with NIX_PATH
<evanjs> nixos -> nixpkgs on non nixos systems
<ZoomZoomZoom> ottidmes, ok, will try that. Thanks a lot.
<evanjs> oh. or not. thought it was derp
cjpbirkbeck has quit [Quit: cjpbirkbeck]
cjpbirkbeck has joined #nixos
horek has quit [Quit: Leaving]
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
leotaku has joined #nixos
<cole-h> lewo++
<{^_^}> lewo's karma got increased to 1
<gchristensen> lewo++
<{^_^}> lewo's karma got increased to 2
reallymemorable has joined #nixos
<ZoomZoomZoom> ottidmes, no luck
<evanjs> linarcx: yeah, nix-index works fine on non-nixos systems
zupo has joined #nixos
<timokau[m]> Is anyone here successfully using pre-commit in nixos? I'm having issues getting it to work.
aveltras has quit [Quit: Connection closed for inactivity]
<linarcx> evanjs: there's no nix-index either :)
nerdmaxx has joined #nixos
turion has quit [Ping timeout: 246 seconds]
<cole-h> `nix-shell -p nix-index` should give you a shell with it.
<linarcx> Ok it installed.
turion has joined #nixos
<linarcx> How query files that belong to specific packages?
<cole-h> First you need to generate an index with `nix-index`, then you can run `nix-locate -w '-file/path you want-'`
<evanjs> linarcx: as I mentioned in my first post, `nix-locate clangd -w1` should be enough for that, after running `nix-index`
<linarcx> thanks.
<ottidmes> ZoomZoomZoom: I probably should have started out with this, but is the local cache still mentioned in your /etc/nix/nix.conf?
<jonreeve[m]> Anyone know how to disable tests for a haskell package? I'm using `developPackage`—is there an option for that already?
witchof0x20 has quit [Quit: WeeChat 2.7.1]
<emily> is anyone running a nixos-unstable system with flakes? is there any reference material for how to switch your system over to using a flakes Nix and referencing nixpkgs as a flake, etc.?
<emily> I'm interested in trying it out
witchof0x20 has joined #nixos
<ZoomZoomZoom> ottidmes, Oh, yep, it's still there
chloekek has quit [Quit: WeeChat 2.6]
chloekek has joined #nixos
glittershark has quit [Ping timeout: 264 seconds]
morgrimm has joined #nixos
glittershark has joined #nixos
<morgrimm> Hey folks, I have a nixos question :P I'm looking into use it, potentially - how does nixos manage configs? Like, do I have to use `home-manager` or nix config files? Or can I use my standard dotfiles?
<notgne2> morgrimm: NixOS won't touch anything user related, that's the purpose of home-manager, but it's completely optional
<notgne2> think of it as NixOS managing /etc/ for you, and home-manager managing $HOME (good naming convention), you can use home-manager without NixOS, or NixOS without home-manager
<Athas> morgrimm: I use the exact same dotfiles that I've used on every other distribution.
<Athas> No home-manager or everything. NixOS doesn't affect my home directory at all.
<morgrimm> Beauty - all my dots are built for chezmoi and templating, so it would definitely suck to have to migrate them
<morgrimm> Thanks :D
<zeta_0> i'm trying to enter into a nix-shell, this error is being thrown, could you guys help me out, thanks: https://gist.github.com/zeta-00/2d806c4d2720e4200a0add034994fd60
<jonreeve[m]> But I'm getting this error: `cabal2nix: user error (Failed to fetch source. Does this source exist? Source {sourceUrl = "/nix/store/
<jonreeve[m]> w3pcvlj7b0k44v629k00kw2b0k86fcyj-numhask-space-0.3.0", sourceRevision = "", sourceHash = Guess "", sour
<jonreeve[m]> ceCabalDir = ""})`
cosimone has joined #nixos
jojojojojo has quit [Remote host closed the connection]
jojojojojo has joined #nixos
rardiol has quit [Quit: No Ping reply in 180 seconds.]
chimay has quit [Ping timeout: 240 seconds]
phreedom has quit [Quit: No Ping reply in 180 seconds.]
phreedom has joined #nixos
vandenoever has quit [Read error: Connection reset by peer]
rardiol has joined #nixos
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
<ottidmes> ZoomZoomZoom: if you are still working on it, you seem to still have it in your config somewhere if the nix-build result still has it
<ottidmes> ZoomZoomZoom: So you should probably fix that, or else something went wrong with copying over the config file
<zeta_0> also curl is one of the dependencies that i need to build darcs, is this the correct way to install it in this default.nix file? https://gist.github.com/zeta-00/5c445f688410e6de7336eeac6009d41b
<ottidmes> ZoomZoomZoom: Failing that, just run: sudo cp /etc/nix/nix.conf{,~} && sudo mv /etc/nix/nix.conf{~,} && sudo nano /etc/nix/nix.conf, and edit it yourself, but if your config is still wrong, you will have the problem again later, so please make sure your config is correct
<ottidmes> zeta_0: Not sure it helps, but saw this, with lots of Haskell and Darcs related config: https://github.com/hackworthltd/hacknix/blob/dd07cb3611addbf8545ca5dc8d0fe94649fec6f3/overlays/haskell-packages.nix#L328
<ZoomZoomZoom> ottidmes, isn't nix store read-only?
<ottidmes> ZoomZoomZoom: it sure is, but /etc/nix/nix.conf the location is not, so by copying over the contents, we make it a regular file with the same contents rather than a symlink, and then we move it back, and then edit like you do normally
<ZoomZoomZoom> Ah, yep
<ZoomZoomZoom> Thanks a lot
asbachb has joined #nixos
<asbachb> Hi. I wonder if there's a cache provider which caches unfree packages like VirtualBox?
<xfix> I would doubt that (VirtualBox is unfree?)
<asbachb> xfix: Mhh maybe it's guest additions.
<xfix> in most cases, proprietary programs are binary only, so building them takes pretty much no time
<asbachb> But it seems that entire VirtualBox is beeing built.
<xfix> Extension Pack is non-free, yes
<zeta_0> ottidmes: thanks for the link, but i don't think that has to do with what i'm trying to do, i'm trying to build darcs with cabal in a nix-shell in order to contribute to the darcs open source project
<asbachb> Or do I have some configuration problem: https://gist.github.com/asbachb/24b44cf50116d517b38fa37c79554ea2
<asbachb> When I do `nix-shell -p virtualbox` it seems there's no need for building virtualbox.
leotaku has quit [Ping timeout: 250 seconds]
<jonreeve[m]> Can anyone else manage to install this Haskell package? I can't figure out how https://github.com/tonyday567/numhask-space/commits/master
<xfix> yeah, because virtualbox doesn't have Extension Pack
glittershark has quit [Ping timeout: 256 seconds]
glittershark has joined #nixos
<zeta_0> i think darcs.cabal needs to be changed to darcs.2.14.2.drv(same name as the directory name), damn it, i forgot about that
drakonis_ has joined #nixos
CptCaptain has joined #nixos
drakonis has joined #nixos
<zeta_0> typo: changed to darcs.2.14.2.cabal
Tucky has quit [Ping timeout: 246 seconds]
<xfix> Hydra doesn't build non-free packages (with exception for firmware), and I don't think there is any unofficial cache that does do so
<xfix> your choices are to either not use the Extension Pack or compile VirtualBox with Extension Pack yourself (should be about 20 minutes)
leotaku has joined #nixos
<xfix> alternatively, you can consider using libvirt
<asbachb> I see.
<jonreeve[m]> Well if anyone thinks of anything, I just posted a StackOverflow question about it here:: https://stackoverflow.com/questions/60781481/how-can-i-disable-testing-for-a-haskell-package-in-nix
Jackneill has quit [Ping timeout: 264 seconds]
<jonreeve[m]> Any thoughts on this would be much appreciated
chloekek has quit [Ping timeout: 256 seconds]
nerdmaxx has quit [Ping timeout: 260 seconds]
<CptCaptain> How do I make this work as a nixos-container? https://pastebin.com/9MRqBUHY
xelxebar has joined #nixos
nerdmaxx has joined #nixos
<cole-h> jonreeve[m]: (haven't really looked) If the package is `mkDerivation`'d, you can probably `doCheck = false;`
<xfix> you can wrap a Haskell package with `haskell.lib.dontCheck`
<cole-h> Ah, I missed it was Haskell... ^ That's probably the better way
turion has quit [Quit: Leaving.]
<xfix> you may also consider contributing a fix to nixpkgs
<asbachb> Maybe the same thing. But what's about vlc?
<Valodim[m]> So I'm trying to do remote builds, but I can't get it to work
<Valodim[m]> I have nix.distributedBuilds = true and a builder under nix.buildMachines, that I can reach with ping-store
<zeta_0> it's probably something that i missed
<Valodim[m]> but a nix-build -j 0 complains to "increase max jobs, or enable remote buids"
<Valodim[m]> running out of ideas on where to look :(
<asbachb> Any reason why it's not available as prebuilt package?
<zeta_0> clever: hello again, i was wondering if maybe you help me troubleshoot this nix-shell darcs error that i'm getting? it should only take 1 or 2 minutes, i probably messed up on something simple: https://gist.github.com/zeta-00/2d806c4d2720e4200a0add034994fd60 https://gist.github.com/zeta-00/5c445f688410e6de7336eeac6009d41b
hmpffff has joined #nixos
hmpffff__ has quit [Ping timeout: 250 seconds]
erasmas has quit [Quit: leaving]
<cole-h> asbachb: What do you mean vlc is not available as a prebuild package?
<cole-h> asbachb: Maybe you have an overlay that changes one of its transitive dependencies, causing a rebuild...
<xfix> huh, this is weird
<asbachb> cole-h: mhhhh when I do `nix-shell -p vlc` it should not use any overlays of my config or?
<xfix> As of last channel update, libbluray, a dependency of vlc failed to build
<xfix> which is why it's not in cache
<cole-h> Ohhh, that'll do it too.
<cole-h> xfix++ Good looking out.
<{^_^}> xfix's karma got increased to 2
<xfix> that being said, vlc will build if you compile it, it just happens to not be in cache due to flaky build
<asbachb> xfix: Can you link the failed build?
drakonis has quit [Quit: Leaving]
<xfix> that being said, it's likely a random failure, I wouldn't be concerned
<xfix> perhaps OOM killer, I don't know
<asbachb> Shouldn't the vlc build itself be red when an input cannot be build? https://hydra.nixos.org/build/115132202
morgrimm has quit [Ping timeout: 240 seconds]
o1lo01ol1o has joined #nixos
<xfix> the last build did fail due to failing to build "tested"
<xfix> as such, the last successful evaluation is 1576280
<xfix> channel updates can only progress if basic tests pass (stuff like checking whether NixOS can be installed, firewall works, user can log in)
<asbachb> So basically the changed packages are only cached when the basic test pass?
<xfix> in short https://nixos.org/channels/nixos-19.09 points to last build where basic tests passed
<asbachb> So the fact that hydra is able to build is not directly connected that the package is cached.
<xfix> package is cached, but you aren't using the newest newest nixpkgs
<xfix> but rather the 2020-03-18 release of NixOS
<xfix> in the newest release-19.09, OpenSSL is different, so package is different
ixxie has joined #nixos
<xfix> this is how it should work, the newest release is broken, so no channel update occured
<pistache> ah that maybe why pyopenssl broke as well
lsix has quit [Ping timeout: 246 seconds]
<xfix> yeah, pretty much, don't worry, I've already debugged that
<{^_^}> #82928 (by xfix, 1 day ago, open): [19.09] Revert 1.1.1e update and apply CVE-2019-1551 patch
<xfix> it needs to be merged, pretty much, and this will unblock 19.09 channel
<asbachb> So basically I'm not using the latest version of 19.09 channel?
<xfix> you are using the latest working version of 19.09 channel
<xfix> you aren't using the latest version of 19.09 channel, but honestly you probably don't want to use something that doesn't work
lsix has joined #nixos
<asbachb> So latest version of 19.09 is only published when the tests are working?
<xfix> yes
<asbachb> Otherwise channel 19.09 and head 19.09 differ.
<xfix> also all packages need to build, but it doesn't matter whether they do it successfully or not
<xfix> this is to avoid the need to compile packages manually on each update
benedikt93 has quit [Ping timeout: 256 seconds]
<asbachb> And what is required so that a package is cached?
<xfix> once it successfully builds, it will be cached
amfl_ is now known as amfl
<asbachb> xfix: I think I got it now. So the latest releas 19.09 is building vlc but it's not published because of a testing failure of the entire release. And the channel I'm using faild to build vlc so no cache version is available.
<xfix> pretty much
<asbachb> xfix: Thanks!
Naptra has quit [Remote host closed the connection]
<ottidmes> Still seeing a lot of: substituteStream(): WARNING: pattern '/nix/store/828g2nqfgivscv79xykkmgjk0znll08l-bash-4.4-p23/bin/sh' doesn't match anything in file '/nix/store/f97y7621xwhsw1nfhbg0maa6cx5q8m3p-udev-rules/95-dm-notify.rules'
gustavderdrache has quit [Quit: Leaving.]
<ottidmes> if this is harmless, why is not supressed/fixed yet, it is scary to see a screen full of them when building
<cole-h> What package does it come from?
<cole-h> Sounds like something that was changed upstream.
energizer` has joined #nixos
benedikt93 has joined #nixos
mehlon has joined #nixos
<ottidmes> cole-h: not sure, I am just building my system as a whole after changing something unrelated
<cole-h> It's not inherently harmful that it doesn't match.
* cole-h goes looking
codygman has joined #nixos
hmpffff_ has joined #nixos
<ottidmes> cole-h: Thanks!
<cole-h> Assuming you use devicemapper, correct?
<ottidmes> cole-h: This config of mine might be relevant: boot.initrd.extraUdevRulesCommands = ''cp -v ${extraUdevRules}/*.rules $out/'';
benedikt93 has quit [Ping timeout: 250 seconds]
hmpffff has quit [Ping timeout: 246 seconds]
<cole-h> Then I assume you have a custom `95-dm-notify.rules` file
<ottidmes> cole-h: I know the words "device" "mapper", but it does not ring a bell, sounds like something I ought to know though
<cole-h> (devicemapper is part of lvm2)
asbachb has quit [Remote host closed the connection]
<ottidmes> Ah, yeah on this machine I use LVM
mexisme has joined #nixos
<ottidmes> cole-h: extraUdevRules = pkgs.writeTextDir "10-mac-network.rules" (concatStrings (mapAttrsToList (name: interface: '' ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="${interface.macAddress}", NAME="${name}" '') macInterfaces));
ixxie has quit [Ping timeout: 250 seconds]
<cole-h> Yeah, that message is harmless.
<cole-h> It's because it tries to replace all potential binary references with the actual binary in-store
<cole-h> If it doesn't match, it's a no-op. If it matches, yay!
<cole-h> TL;DR: That message can be safely ignored.
<ottidmes> It really should have an option to do this quietly, cause it makes sense to warn for your builds, but not when just trying
<cole-h> Err, it replaces store references with that of `extraUtils`
<ottidmes> Ah, with that one I am familiar, I am working on my initrd at the moment, trying to fix why my secret files are missing in it :(
<energizer`> what's the recommended way to make a bootable usb nixos?
<energizer`> am i supposed to be using dd?
jojojojojo has quit [Ping timeout: 240 seconds]
<zeta_0> i was able to get into the nix-shell, changing the cabal file and the nix file used by cabal2nix to the same name as the directory name did fix the error, when i did cabal get darcs, it named the cabal file darcs.cabal, not, darcs-2.14.2.cabal
<samueldr> energizer`: yes, dd
<ottidmes> cole-h++ Thanks for reassuring me!
<{^_^}> cole-h's karma got increased to 10
<cole-h> :^)
benedikt93 has joined #nixos
jojojojojo has joined #nixos
ArchFeh has joined #nixos
<symphorien> any btrfs user would like to review https://github.com/NixOS/nixpkgs/pull/78046 ?
erictapen has joined #nixos
<{^_^}> #78046 (by symphorien, 8 weeks ago, open): nixos/snapper: automatically create the .snapshots subvolume with correct permissions
nerdmaxx has quit [Quit: WeeChat 2.7.1]
ArchFeh is now known as ArchFeh
_deepfire` has joined #nixos
ArchFeh has quit [Remote host closed the connection]
_deepfire has quit [Ping timeout: 272 seconds]
Bunogi has quit [Ping timeout: 272 seconds]
codygman has quit [Read error: Connection reset by peer]
c0c0 has quit [Ping timeout: 250 seconds]
jojojojojo has quit [Remote host closed the connection]
codygman has joined #nixos
Bunogi has joined #nixos
jojojojojo has joined #nixos
eoli3n__ has joined #nixos
c0c0 has joined #nixos
<Bunogi> ,channels
<{^_^}> Largest Nix-related channels: #nixos, #nixos-dev, #nix-darwin, #nixos-chat, #nixos-aarch64, #nixos-wiki, #nixos-borg, #nixos-security, #nix-core
ArchFeh has joined #nixos
alexherbo27548 has quit [Ping timeout: 264 seconds]
<ottidmes> I am a scared btrfs user :P So I don't dare to use any of its nicer features, so no snapshots for me
ArchFeh is now known as ArchFeh
<hpfr[m]> where can I find documentation on substituteInPlace?
rail_ has joined #nixos
jumper149 has quit [Quit: WeeChat 2.7.1]
<hpfr[m]> oh, thanks. I avoided the NixPkgs docs when I switched to NixOS because the NixOS manual was enough to take in, but I should probably read it now
rail_ is now known as rail
<energizer`> i dd'ed nixos.iso onto /dev/sdb and tried to boot but the boot didn't work
<Bunogi> Is there a builder specifically for packaging shell scripts? I'm using mkDerivation and I can install the script just fine, but the script needs certain commands to be available. I've tried putting the packages which contain them into buildInputs but that doesn't help, when I actually try running the script I just get command not found errors.
<ZoomZoomZoom> Is there a way to recover from malformed /nix/var/nix/db.sqlite if I have no sqlite installed?
<ottidmes> I am trying to use lsblk in my initrd, but when I copy it over to extraUtils, I get: lsblk: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
<hpfr[m]> Bunogi: these might be of use https://nixos.org/nixpkgs/manual/#chap-trivial-builders
jojojojojo has quit [Ping timeout: 240 seconds]
<ottidmes> energizer`: what is /dev/sdb? an USB stick? did it work for other liveCDs in the past? I have some old USBs that won't work when I dd an iso on them
<energizer`> ottidmes i havent tried it before
<energizer`> it's new tho
jojojojojo has joined #nixos
<ZoomZoomZoom> energizer`, did you `sync` after dd'ing the image? What's the source of the iso?
<ottidmes> ZoomZoomZoom: maybe try what is suggested here: https://logs.nix.samueldr.com/nixos/2019-02-21#1978743
ArchFeh has quit [Quit: ArchFeh]
<ottidmes> energizer`: I always use this script: https://gist.github.com/msteen/b5c1730b19a8920a274ae8095bb9e3de
<Bunogi> hpfr[m]: symlinkJoin looks promising, gonna try that
growpotkin has joined #nixos
jojojojojo has quit [Ping timeout: 240 seconds]
<ottidmes> energizer`: bash-confirm does not exist for you though, but as you can see it comes down to: sudo dd bs=4M oflag=sync status=progress if="$src" of="$dst"
<hpfr[m]> what's an easy way to get the sha256 necessary for fetchFromGitHub?
<energizer`> hpfr[m]: use a wrong sha and it'll correct you
<hpfr[m]> hah, that just felt wrong :D
<energizer`> ottidmes /dev/rsdb didn't work but /dev/sdb did
jojojojojo has joined #nixos
<ZoomZoomZoom> ottidmes, Nah, rebuild won't work without a db, and fix I can't 'pragma integrity_check' without sqlite. Will try repairing or dumping from other machine
<energizer`> it says set a password for 'root' or 'nixos', which one should i use?
<ottidmes> energizer`: when does it ask that?
<energizer`> when booting from usb
lsix has quit [Ping timeout: 246 seconds]
<ottidmes> Hmm, I always use custom NixOS iso's but it is based on the default one, it just logs me in as nixos automatically
jojojojojo has quit [Ping timeout: 240 seconds]
<ottidmes> energizer`: if you really have to choose, just choose nixos, then most things will work better (like live GUI) and sudo should be configured for it, so you can still enter root
Heirlung- has joined #nixos
lsix has joined #nixos
Heirlung has quit [Ping timeout: 258 seconds]
Heirlung- is now known as Heirlung
joepie91 has joined #nixos
<joepie91> I'm trying to run https://github.com/kngenie/ias3upload/blob/master/ias3upload.pl, which is a Perl script, but it needs LWP::UserAgent and possibly other non-default stuff as well; how do I make this work in NixOS?
<joepie91> (LWP::UserAgent is packaged, I just have no idea how to glue the two together)
karantan has quit [Quit: Textual IRC Client: www.textualapp.com]
<das-g[m]> I'm working on packaging the command line Esperanto dictionary https://github.com/bpeel/prevodb/ , but am unsure where in the NixPkgs tree to place it.
<das-g[m]> tools/text ? (It certainly is about "text", but not really about "text processing". It's kinda like man, but for Esperanto words rather than Linux commands.)
<das-g[m]> tools/misc ? (That's where man-db lives, too.)
<das-g[m]> applications/misc ? (What's the difference between an application and a tool anyway?)
<mehlon> I guess tools are used to create applications while applications are what the end user tends to use
<mehlon> applications/misc seems reasonable because thats where goldendict is
ArchFeh has joined #nixos
jojojojojo has joined #nixos
lsix has quit [Quit: WeeChat 2.7.1]
ArchFeh has quit [Remote host closed the connection]
<energizer`> i can't parse this sentence "Mount the target file system on which NixOS should be installed on /mnt, e.g. `mount /dev/disk/by-label/nixos /mnt`"
<energizer`> what is the task being done here?
captjakk_ has joined #nixos
aidenholmes has joined #nixos
<aidenholmes> hello
<xfix> You should mount the partitions you want under /mnt
captjakk_ has quit [Remote host closed the connection]
<aidenholmes> how to completely remove nix package manager and home-manager from debian
<xfix> for instance, if you created two partitions, one root, and one home, then you want to mount root partition under /mnt, and home partition under /mnt/home
<das-g[m]> energizer`: The task is to make the file system of the device (probably a hard disk drive partition or SSD partition) onto which you wish to install NixOS available under /mnt of the live system.
<xfix> the installation script will recognize partition layout and create hardware-configuration.nix for the given partition layout
<mehlon> and of course boot partition under /mnt/boot if you're using systemd-boot!
<b42> joepie91: quick solution might be to run it from nix-shell, e.g. nix-shell -p "perl.withPackages (p: [ p.LWPUserAgent ])"
mounty has quit [Quit: Konversation terminated!]
<joepie91> das-g[m]: it doesn't really, no, that's about defining Perl packages [in nixpkgs], I'm just trying to spawn a shell with certain packages present
<aidenholmes> i solved my problem
<aidenholmes> but while i'm here
<joepie91> b42: hm, that seems simpler than my current hacked-together solution with PERL5LIB and makePerlPath
<das-g[m]> Ah, right. Then go for nix-shell, as b42 recommended.
<joepie91> will try that in a moment :)
<aidenholmes> the reason i still use guix system instead of nixos is because guix has a debian style installer
jojojojojo has quit [Ping timeout: 240 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mehlon> ah, it's true..
<mehlon> we are more of the Arch Linux installation style right now
<joepie91> b42: actually the whole question may be obsolete considering that the script itself doesn't seem to work anyway...
ayerhart has joined #nixos
<joepie91> going to debug that first :P
<b42> such is life
<b42> :D
<joepie91> and looking at it, "script" may have been a misnomer...
<aidenholmes> yeah in a weird way i'd expect nixos to be easier to install than guix, because nix supports proprietary wifi drivers and guix does not
jojojojojo has joined #nixos
<rycee> aidenholmes: For HM try `home-manager uninstall`.
ayerhart has quit [Client Quit]
<aidenholmes> rycee: too late i removed guix and deleted home-manager from where i git cloned it
eoli3n__ has quit [Ping timeout: 264 seconds]
<aidenholmes> nix*
<mehlon> well I guess Nix wanted to go for a real Ubuntu/Fedora style installer
<mehlon> which is harder to do than a text user interface installer
<aidenholmes> ~ » find . -name home-manager
<aidenholmes> ./.local/share/home-manager
<aidenholmes> ah one more thing to remove
<xfix> i think Arch Linux style installer is fine, Nix is harder to use than Ubuntu/Fedora
leomar has quit [Quit: leomar]
<xfix> you are kinda expected to know more about Linux
<mehlon> yeah once you know how to do it it's just much nicer and feels safer
<mehlon> because you know the installer won't accidentally fuck up your partitioning because you misunderstood something
<mehlon> ... because there is no installer
ayerhart has joined #nixos
<aidenholmes> i'm actually planning on making my own distro, TDLR debian with i3wm, a more user-friendly launcher, and an interactive tutorial
<aidenholmes> with the goal of making tiling window managers mainstream
<das-g[m]> With partitioning, there's always the option to fuck it up due to misunderstanding something, whether you do it through an installer or directly.
<rycee> aidenholmes: Cool. Note, if you still have `/nix` around then you need to remove the home-manager profile and gcroot links and also the `~/.local/share/home-manager` directory.
ayerhart has quit [Client Quit]
<simpson> aidenholmes: You might want to focus on apt/deb, then, since Nix doesn't have first-class for deb-style packages.
<aidenholmes> the /nix is no more
ayerhart has joined #nixos
<aidenholmes> lol i initially typed /nix and my irc client thought it was a command
<mehlon> but I think NixOS could become a very compelling system for all skill levels once they add a Guix-type installer, a graphical package manager and configuration app that can modify the /etc/nixos/configuration.nix directly
<xfix> probably
<xfix> but that's not what NixOS is currently
<mehlon> yeah, it's also discussed in some of the github issues
<xfix> there is more to it than installer
jojojojojo has quit [Ping timeout: 240 seconds]
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
blibberblob has quit [Quit: WeeChat 2.7.1]
mexisme_ has joined #nixos
mexisme has quit [Ping timeout: 246 seconds]
<das-g[m]> Could "gnome Software" be made to interface with `nix search` and `nix run`? Would be cool if it could list NixPkgs packages and have a button "run without permanently installing"
<xfix> probably
<das-g[m]> That'd probably be easier and safer than letting a GUI application edit a maybe convoluted /etc/nixos/configuration.nix
lord| has quit [Read error: Connection reset by peer]
<symphorien> das-g[m]: you would have to make a packagekit backend for nix
lord| has joined #nixos
shabius_ has joined #nixos
buckley3104 has joined #nixos
v88m has quit [Ping timeout: 246 seconds]
linarcx has quit [Ping timeout: 265 seconds]
<mehlon> well instead of having it edit the global configuration you can just have it edit an overlay
valwal_ has joined #nixos
vandenoever has quit [Ping timeout: 256 seconds]
szicari_ has joined #nixos
dpc1 has joined #nixos
le_jonge has joined #nixos
__monty__ has quit [Quit: leaving]
nwspk_ has joined #nixos
teozkr_ has joined #nixos
valwal has quit [Ping timeout: 246 seconds]
szicari has quit [Ping timeout: 246 seconds]
teozkr has quit [Ping timeout: 246 seconds]
dpc has quit [Ping timeout: 246 seconds]
drakonis_ has quit [Remote host closed the connection]
jonge has quit [Ping timeout: 246 seconds]
Miyu-saki has quit [Ping timeout: 246 seconds]
nwspk has quit [Ping timeout: 246 seconds]
buckley310 has quit [Ping timeout: 246 seconds]
shabius has quit [Ping timeout: 246 seconds]
jjakob has quit [Ping timeout: 246 seconds]
Miyu-saki has joined #nixos
kai_w has quit [Remote host closed the connection]
sebass[m] has quit [Ping timeout: 246 seconds]
hexagoxel has quit [Ping timeout: 246 seconds]
teozkr_ is now known as teozkr
Nikita has joined #nixos
kai_w has joined #nixos
jjakob has joined #nixos
hexagoxel has joined #nixos
nikivi has quit [Ping timeout: 246 seconds]
kloenk has quit [Ping timeout: 246 seconds]
Nikita is now known as nikivi
Miyu-saki is now known as Guest40207
sebass[m] has joined #nixos
kloenk has joined #nixos
ArchFeh has joined #nixos
GodZalo has quit [Ping timeout: 256 seconds]
shafox has quit [Remote host closed the connection]
<ottidmes> Although I could probably easily roll out my own, does there already exist something to layer directories on top of each other, but rather than completely recreating the tree structure and replacing files with symlinks like lndir, I like it to only create symlinks when necessary to layer the directories over each other
ArchFeh has quit [Client Quit]
ArchFeh has joined #nixos
<mehlon> well you can always use plan 9
<ottidmes> why?
<mehlon> otherwise there's unionfs
reallymemorable has quit [Quit: reallymemorable]
<mehlon> I was joking about plan 9, but that's an operating system where layering two directories would be very easy to do
<ottidmes> ah, wasn't aware, I know it had some novel ideas though
srl295_ has joined #nixos
dsg has quit [Ping timeout: 258 seconds]
<ottidmes> unionfs seems cool, but overkill what could be solved with a few symlinks
ArchFeh has quit [Client Quit]
ArchFeh has joined #nixos
nixy37179 has joined #nixos
<mehlon> I think such a tool doesn't exist yet
aria_ has joined #nixos
<aidenholmes> is it possible to host your own instance of irccloud?
chris|1 has joined #nixos
reallymemorable has joined #nixos
<ottidmes> guess I should try overlayfs, since it seems simpler than unionfs and basically fits my need (the other directory is from /nix/store so readonly anyways)
<ottidmes> mehlon++ thanks!
<{^_^}> mehlon's karma got increased to -1
root has joined #nixos
<ottidmes> what?
<ottidmes> mehlon++
srl295 has quit [Ping timeout: 246 seconds]
srl295_ is now known as srl295
<{^_^}> mehlon's karma got increased to 0
<mehlon> lol
<ottidmes> mehlon++
<{^_^}> mehlon's karma got increased to 1
<ottidmes> there we go
jjakob has quit [Ping timeout: 246 seconds]
aria has quit [Ping timeout: 246 seconds]
d1rewolf has quit [Ping timeout: 246 seconds]
Guest40207 has quit [Ping timeout: 246 seconds]
root is now known as Guest91724
chris| has quit [Ping timeout: 246 seconds]
dtz has quit [Ping timeout: 246 seconds]
nixy3717 has quit [Read error: Connection reset by peer]
aria_ is now known as aria
<mehlon> yeah I tried to give myself some karma
<ottidmes> well that is karma for ya :P
<mehlon> but {^_^}-- didn't like it
ArdaXi has quit [Ping timeout: 246 seconds]
ArchFeh is now known as ArchFeh
jjakob has joined #nixos
ArdaXi has joined #nixos
d1rewolf has joined #nixos
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<das-g[m]> mehlon++ also for the derivation placement advice before :-)
<{^_^}> mehlon's karma got increased to 2
<colemickens> I really need to upgrade my rpi4 setup. I didn't realize the SD cards died quite this quickly. Even at next to zero cost this is a maintenance burden. And if I'm spoiled with another computer in the house or gigabit bandwidth, I might as well have all of the storage be remote. Netboot and mount /var/lib over CIFS(?). This doesn't sound too silly, right?
<mehlon> thanks! with this karma I shall surely rule the world
<mehlon> colemickens: well, you might even consider running plan nine :)
dsg has joined #nixos
<mehlon> Advanced Distributed Computing! 5 or 6 hobbyist users can't be wrong!
dsg has quit [Client Quit]
dsg has joined #nixos
<mehlon> but that sounds like it could totally work. maybe.
khumba has joined #nixos
<mdash> colemickens: yeah last time i fooled with an rpi i did nfs root
<colemickens> Somehow, visions of Renee French's drawings popped in my head. And then I realized I have no idea why I know who that is.
<mehlon> she made the gopher from Go
<colemickens> yeah and the plan nine bunny :P
rogue_koder_ has quit [Ping timeout: 264 seconds]
<colemickens> mdash: were you running nixos on both sides? I'd be curious to see a nice starting point
<mehlon> I run alpine linux that has a kernel on the sd card but all the rest on a USB drive
<mehlon> can't run NixOS because I don't have arm64 ;(
<mehlon> I just need to download 32 more bits...
<colemickens> mehlon: you have a device that can boot from SD but not USB?
o1lo01ol1o has joined #nixos
<mehlon> the rpi can probably boot directly from USB as well, but I didnt bother to do that
<colemickens> I thought about that too, I've got a really nice SSD but it's supposed to be a designated backup-only device.
<energizer`> "Mount the boot file system on /mnt/boot, e.g. mount /dev/disk/by-label/boot /mnt/boot" i don't have a by-label/boot. can i skip this step?
<colemickens> energizer`: you probably just want to substitute the correct device path. if you don't mount /boot, the bootloader won't be installed properly (possibly).
<mehlon> energizer: do you have a relatively recent computer (post 2010 or so), if so you need to find the first partition
<mehlon> the first partition is a FAT32 partition that you install the bootloader on
<mehlon> if you're already running Windows it's probably called ESP or SYSTEM
hmpffff_ has quit [Ping timeout: 260 seconds]
GodZalo has joined #nixos
philr has joined #nixos
<energizer`> this might be older than that
<energizer`> how would i find out? i'm currently in the nixos boot ui
<mehlon> hmm, hold on
<energizer`> google tells me /sys/firmware/efi which does exist at least in this situation (but maybe that's fake?)
<mehlon> run `ls /sys/firmware/efi/efivars` and then `sudo fdisk --list`
<mehlon> if the efivars dir is not empty then you have UEFI, and then you have to mount the first partition (of type EFI System) to /mnt/boot
<energizer`> aha, /dev/sdc2 is of Type EFI
<mehlon> that must be it
cosimone has quit [Ping timeout: 246 seconds]
rogue_koder_ has joined #nixos
drakonis has joined #nixos
nwspk_ is now known as nwspk
nwspk has quit [Quit: nwspk]
nwspk has joined #nixos
* energizer` crosses fingers and runs nixos-install