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
sigmundv__ has joined #nixos
justsomeguy has left #nixos [#nixos]
rogue_koder has joined #nixos
<{^_^}> [nixpkgs] @zowoq opened pull request #85041 → shellcheck: don't build locally → https://git.io/Jvhhe
AluisioASG has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/99a27f4cafa (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
<jlv> Is there something like `replaceStrings` to act on files?
<energizer> jlv: substituteInPlace?
AluisioASG has joined #nixos
<jlv> energizer: close. I'm looking to change `hardware.pulseaudio.configFile`, not a writable file, so I don't think that will work.
<cole-h> ottidmes: I did indeed mean a review, thanks :) I use r+ for a positive review (approval) because it's short and it's what Rust does for its PRs with `bors`
morgrimm has joined #nixos
init_6 has joined #nixos
codygman__ has joined #nixos
<codygman__> Hello all. I'm attempting to run a preConfigure hook before entering nix-shell and it's apparently not working. Can anyone help? Here is the default.nix: https://discourse.nixos.org/t/run-hpack-before-entering-nix-shell/6641/5
orivej has quit [Ping timeout: 240 seconds]
dermetfan has quit [Ping timeout: 260 seconds]
evanjs has quit [Quit: ZNC 1.7.5 - https://znc.in]
evanjs has joined #nixos
<{^_^}> [nixpkgs] @7c6f434c merged pull request #84991 → liblinphone: fix missing vcard_grammar → https://git.io/JvhiB
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/JvhhE
<codygman__> Oh... I just wanted `shellHook` :)
WilliamHamilton has quit [Remote host closed the connection]
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
numkem has quit [Ping timeout: 256 seconds]
captjakk has quit [Remote host closed the connection]
captjakk_ has joined #nixos
<bqv[m]> ugh, i've just realised why almost every package i build is a cache miss now. i've been building almost every package in my system's dependencies across channels
r0bby is now known as robbyoconnor
robbyoconnor is now known as r0bby
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jvhhw
zeta_0 has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/aae0cc8a6e9 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<zeta_0> does this option: https://rycee.gitlab.io/home-manager/options.html#opt-programs.direnv.enableBashIntegration and this command: eval "$(direnv hook bash)" ,do the same thing?
captjakk_ has quit [Remote host closed the connection]
captjakk has joined #nixos
chagra has quit [Ping timeout: 260 seconds]
gustavderdrache has left #nixos [#nixos]
shibboleth has quit [Quit: shibboleth]
jrddunbr has left #nixos ["The Lounge - https://thelounge.chat"]
<zeta_0> cole-h: oh ok, so that option does do that, i set the option in home.nix and removed the command from displayManager.sessionCommands in configuration.nix
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
<zeta_0> oh and it uses mkAfter to make sure it goes last, so it does not mess up the shell, that's nice
<{^_^}> [nixpkgs] @gnprice opened pull request #85042 → stdenv: support __structuredAttrs, opt-in per package → https://git.io/Jvhhd
<zeta_0> cole-h: thanks for pasting the link
<zeta_0> cole-h++
<{^_^}> cole-h's karma got increased to 22
<cole-h> :P All I did was click on the "Declared by" link and scroll down to where `enableBashIntegration` was actually used
<zeta_0> oh, i need to get better at searching through the documentation, sometimes i just ask here to save some time
KindOne has joined #nixos
<zeta_0> cole-h: i'm setting up lorri+direnv+emacs, everything works good so far, all i have left to setup is emacs
<zeta_0> nix frustrates me sometimes, but for the most part it's a very good tool
<neeasade> zeta_0: the direnv package works well enough in my experience (same combination of tools)
<zeta_0> neeasade: nice, energizer recommended this setup to me, i like it so far, it's automation is nice
<neeasade> yes pleasant surprise :)
<energizer> https://github.com/wbolster/emacs-direnv is the last piece
<neeasade> yepperino
pbogdan has quit [Remote host closed the connection]
cjpbirkbeck has quit [Quit: cjpbirkbeck]
<zeta_0> cool, i'm setting up emacs-direnv right now
jlv has quit [Remote host closed the connection]
<zeta_0> quick question, does anyone here know when the new nixos stable/unstable versions are going to be officially released?
rogue_koder has quit [Ping timeout: 260 seconds]
<zeta_0> i looked at the main nixos website, and it still shows the older versions
<neeasade> zeta_0: new meaning 20.03?
<zeta_0> neeasade: yes
<ottidmes> zeta_0: when its ready, I don't think they have a fixed date planned, and there is no "new" unstable, those are updated always
rogue_koder has joined #nixos
<neeasade> i've been peeking here, but am not sure if that's necessarily the best place to be peepin:
Darkmatter66 has quit [Ping timeout: 258 seconds]
Darkmatter66 has joined #nixos
cjpbirkbeck has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « oh-my-zsh: 2020-03-12 -> 2020-04-10 »: https://git.io/Jvhjk
rogue_koder has quit [Ping timeout: 256 seconds]
<zeta_0> ok, i'll check in a a couple of days to see if the new nixos stable version has been released
<ottidmes> zeta_0: there is nothing stopping you from already using it, its just not officially released
bqv has quit [Ping timeout: 260 seconds]
jgeerds has quit [Ping timeout: 256 seconds]
h0m1 has quit [Ping timeout: 246 seconds]
opticnerve has quit [Ping timeout: 264 seconds]
<keithy[m]> I thought nix packages supported El Capitan!
<keithy[m]> btw the Old Releases page is broken for me. https://nixos.org/releases/nix
h0m1 has joined #nixos
<ottidmes> keithy[m]: maybe also try #nix-darwin
<keithy[m]> ok... will do!
rogue_koder has joined #nixos
xO1 has joined #nixos
<zeta_0> ottidmes: ya, but i'm guessing it's not officially released because there's probably some critical bugs that they still need to fix
<{^_^}> [nixpkgs] @aanderse opened pull request #85043 → Httpd 2020 → https://git.io/JvhjC
pjt_014 has joined #nixos
<ottidmes> zeta_0: I have been on it for a month or so, have had no problems, but it might vary between setups
<ottidmes> on multiple machines actually
<keithy[m]> I need to attempt to upgrade since i just bought a usb-c card for my mac pro and there is a bug so it doesnt work for some reason
<zeta_0> ottidmes: ok, i'll take a look
rogue_koder_ has joined #nixos
rogue_koder has quit [Remote host closed the connection]
markus1199 has joined #nixos
zeta_0 has quit [Quit: rebuilding]
bhipple has quit [Ping timeout: 265 seconds]
markus1189 has quit [Ping timeout: 256 seconds]
bhipple has joined #nixos
captjakk has quit [Remote host closed the connection]
codygman__ has quit [Ping timeout: 240 seconds]
boothead has quit [Ping timeout: 240 seconds]
bqv has joined #nixos
<{^_^}> [nixpkgs] @bhipple merged pull request #85031 → hcloud: 1.16.1 -> 1.16.2 → https://git.io/Jvhbu
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JvhjH
<{^_^}> [nixpkgs] @gnprice opened pull request #85044 → gbsplay: fix configure flags → https://git.io/Jvhjd
Henson has joined #nixos
codygman__ has joined #nixos
ngortheone has joined #nixos
<codygman__> I'm posting a blog post soon that is just a draft right now titled `From `stack new myapp` to a fully nix powered Haskell app`. Before I do I'm trying to get some feedback on it either on discord (https://discourse.nixos.org/t/request-feedback-on-draft-post-on-migrating-from-haskell-stack-to-nix/6665) or here in IRC. Thanks :)
<pjt_014> be sure to ask in #haskell too
<ngortheone> Hello everyone
<pjt_014> since not erryone here speaks haskell
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85045 → pulsemixer: 1.5.0 -> 1.5.1 → https://git.io/JvjeT
<pjt_014> hi/
<ngortheone> I am new to nixos, is there a way to download all derivation sources (from github, tarballs etc) to be able to build everything offline?
captjakk has joined #nixos
<pjt_014> wait--absolutely everything? like all 20,000+ libraries/packages?
bhipple has quit [Ping timeout: 260 seconds]
<pjt_014> correction all 26,514 things?
captjakk has quit [Remote host closed the connection]
<infinisil> ngortheone: There's been some discussion for this kind of thing here: https://discourse.nixos.org/t/using-nixos-in-an-isolated-environment/3369
<bqv> compiling with -j32 when you only have 4 cores is ...suboptimal, right?
captjakk has joined #nixos
<gchristensen> generally so, bqv :)
<ngortheone> yes, say I am building a machine for doomsday
<bqv> hmm
<codygman__> pjt_014: Good idea. I was hoping a smaller group nix focused might see it first and recommend nix specific improvements if applicable.
<ngortheone> and I want not to depend on Internet to build things
maxdeviant[m] has joined #nixos
<ngortheone> in FreeBSD there is a way to download all sources for ports in a tree
<bqv> why do people keep wanting to do this
<bqv> it's bizarre and extremely unnecessary
<gchristensen> ngortheone: cool, check the script maintainers/scripts/copy-tarballs.pl in the repo?
iyzsong has joined #nixos
<pjt_014> I *think* `nix-env -i` might do it, but I refuse to try because I greatly fear death
<gchristensen> bqv: corporate networks sometimes like to do the building themselves, and on machines without network access ... is the best I can imagine
<bqv> heh
<gchristensen> but also there is good reason to be able to identify and mirror all the sources.
<gchristensen> we try to do that and sync it ot tarballs.nixos.org, for example
cr4y1_ has quit [Ping timeout: 264 seconds]
<codygman__> bqv Is it that bizarre to want all of nix derivations stored on a hard drive? It's extreme, but also kind of cool to think about in a way :)
m0rphism has quit [Ping timeout: 256 seconds]
cr4y1 has joined #nixos
<pjt_014> Have a set of things you know you might need in the event of the big boom-boom: nwtworking tools, a decent terminal multiplexer, backup tools, a browser that handles offline shit well, prob some other things
<bqv> it makes sense on a distribution repository level, but on an individual level i can't imagine why anyone would want every source tarball in existence on their hard drive when they're only likely to use less than 1% of them, and the disk space required would really not be worth the price
<gchristensen> you should take a gander at #datahoarder :P
<pjt_014> It's cool in the same way that killing a fruitfly with an asteroid is
<bqv> i'll pass :p
cjpbirkbeck has quit [Quit: cjpbirkbeck]
<pjt_014> I mean we *can* recommend you offline-friendly stuff, there's major overlap there
<gchristensen> people go looking for "interesting" data to ... just have? :)
<pjt_014> ep
<pjt_014> yep
<pjt_014> source: me
<pjt_014> I mean to a degree
<pjt_014> people on the datahoarder subreddit have flairs for their storage amounts used
cjpbirkbeck has joined #nixos
<pjt_014> some of them have 50TB+
<pjt_014> I'm not on *that* level
<codygman__> Well /r/datahoarder is a pretty good real world quality test to answer "what hard drives are reliable" I think. Then again... they have 50+ TB so would they notice stuff is corrupted/missing.
<pjt_014> but if you need a preemo vintage copy of iczerone I got that I guess
<bqv> meanwhile i think there's a grand total of 1GB worth of data on my drives not backed up somewhere online, that i actually care about
<pjt_014> codygman__: they're well aware of the possibility
<pjt_014> heavy duty filesystems like x/zfs or btrfs have measures to preven that
pie_[bnc] is now known as pie
<codygman__> pjt_014: Makes sense, I only skimmed there for ideas for my duplicati based backup system.
<pjt_014> and tools like git-annex are good for automatic redundancy managment
pie is now known as pie_
<pjt_014> ideas? duplicati's pretty simple
<ngortheone> gchristensen is right. Internet is unstable. Things that you can download today - tomorrow might be unavailable. One of the most recent things that I encountered - some derivation was having sources on russian resources. Russia was blocking a bunch of IPs and I couldn't download sources
<codygman__> Well, I was looking for cheap online storage mostly pjt_014 since duplicati makes it super easy to encrypt before backup.
<pjt_014> many tools do--restic, borg, bup...
<pjt_014> that's without googling too
<pjt_014> it's a common need
dongcarl has joined #nixos
<codygman__> pjt_014 Well, you seem more experienced than I with those things. I was also learning about each of those and trying to choose before arriving at duplicati.
<pjt_014> tarsnap's a fun one--you can legit backup onbe byte oneline for like $0.00000001/month
<pjt_014> yeah dcati's def easier to start with
<pjt_014> though once you get enough experience with the command line most of the ones I mentioned because roughly the same level of difficult
<pjt_014> except git-annex.
<gchristensen> pjt_014: I think you're off by at least one order of magnitude, since it is $0.25/gb/mo :)
<pjt_014> I just jabbed 0s yeah
<codygman__> I've actually used git-annex before. Yeah duplicati was super easy to setup, though when helping others use it a few UX quirks seemed to really hang people up.
<gchristensen> ah okay. (you were pretty close though)
<simpson> git-annex is really nice, but isn't a complete solution.
sigmundv_ has joined #nixos
<pjt_014> it's a toolset for building your own backup system really
<pjt_014> some assembly required
<pjt_014> no joke my first package i PR'd for for an alternative to GA because I couldn't get it ti do what I wanted
<pjt_014> * was for
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/5709214f80f (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<peelz> nix-index seems to always want to regenerate its cache from 0, is that normal?
sigmundv__ has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #85035 → hugo: 0.68.3 -> 0.69.0 → https://git.io/Jvhb1
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvjeM
<cole-h> I don't think nix-index does incremental updates of the cache
<peelz> shucks
<peelz> should I make a systemd timer for it?
<cole-h> Would be nice if I could force nix-index to generate a cache for every single attribute ever
<cole-h> Sometimes things are hiding
<peelz> what do you mean? like when derivations are split into multiple outputs?
<pjt_014> peelz: you could just put an fcron entry in configuration.nix
<peelz> pjt_014: I'd rather use a user systemd timer since I have nix-index installed as a user package
OrangeTetra has joined #nixos
<cole-h> peelz: No, I mean when looking for things in haskellPackages.* or python38Packages.*, etc
<cole-h> Those subgroups aren't searchable with nix-index AFAICT
<peelz> cole-h: oh damn, that sucks
<Pwnna> why is it that when i have matplotlib with enableQt = false, I still get a qt.qpa.plugin: Could not find the Qt platform plugin error when I try to do plt.figure() ?
<Pwnna> Now my current environment _does_ have QT, but it's not imported by this standalone script
<OrangeTetra> I've been testing the nixpkgs a bit and am not wondering: What else do the maintainers check other than a "nix-review" and binaries check?
<Pwnna> when I unload my package that depends on qt, matplotlib starts to work
<pjt_014> OrangeTetra: I maintain one package, and that's honsetly all I did
<pjt_014> It came with tests that automatically executed too, so tere is extra coverage often
<pjt_014> but I guess it depends on the comnplexity
aleph- has quit [Quit: WeeChat info:version]
aleph- has joined #nixos
<cole-h> OrangeTetra: That's all, really. As long as ofborg gives you a green checkmark, binary runs (try in a `--pure` shell as well), and nix-review comes back positive, you should be good to go
<Pwnna> ah nice i have to manually do a matplotlib.use
cr4y1 has quit [Ping timeout: 256 seconds]
<pjt_014> they also check that your git commits are tidy
<peelz> cole-h: do you put nix-index on a timer?
<OrangeTetra> So is that why they like people contributing by just reporting if they could build it? Knowing how long it takes, I can't imagine them wanting to also do it for them al.
<cole-h> Oh yeah, making sure your commits are properly formatted is good, too
<OrangeTetra> pjt_014: Couldn't they just squash the commit if it isn't?
bhipple has joined #nixos
<cole-h> They can, but some committers don't. If anything, you should `git commit --fixup` any changes -- I usually force-push though
<pjt_014> Yes. and that's the hard part if you (hypothetically) already pushed it
<cole-h> I believe GH should autosquash fixup commits on merge
<pjt_014> git doesn't know what you want to do--it just kinda does exactly what you tell it
<pjt_014> do `man git` and look under the 'name' field
Darkmatter66 has quit [Ping timeout: 258 seconds]
<OrangeTetra> It looks like fixup autosquashes it
Darkmatter66 has joined #nixos
<{^_^}> [nixpkgs] @cdepillabout merged pull request #85041 → shellcheck: don't build locally → https://git.io/Jvhhe
<{^_^}> [nixpkgs] @cdepillabout pushed 3 commits to master: https://git.io/JvjeF
<peelz> is there really no `writeShellScriptBin` builder that allows passing dependencies?
ngortheone has left #nixos ["https://quassel-irc.org - Chat comfortably. Anywhere."]
morgrimm has quit [Ping timeout: 265 seconds]
<cole-h> `runCommand`?
ottidmes has quit [Ping timeout: 260 seconds]
<cole-h> `script = runCommand "script-name" { buildInputs = [ which ]; } ''${which}/bin/which which'';`
<{^_^}> [nixpkgs] @bhipple merged pull request #85030 → rtkit: 0.11 -> 0.13 → https://git.io/JvhFy
<{^_^}> [nixpkgs] @bhipple pushed 3 commits to master: https://git.io/Jvjvf
<clever> cole-h: lol
<cole-h> Hehe
<bqv> cole-h: which?
<cole-h> which which
<peelz> cole-h: uhh https://0x0.st/iSkd.png
kaliumxyz has quit [Remote host closed the connection]
<bqv> does hydra not cache linuxPackages_unstable, by the way
<bqv> why does my system REALLY want to build it locally
<cole-h> peelz: "${which}/bin/which"
<bqv> > pkgs.linuxPackages.kernel
<peelz> cole-h: which isn't in scope though?
<{^_^}> "<derivation /nix/store/qrc522vlqkh5mqn29x1vsh20xh0wcdaz-linux-5.4.31.drv>"
<bqv> > pkgs.linuxPackages_latest.kernel
<{^_^}> "<derivation /nix/store/y5xxmr7kpr9y2wf93mqp1sz8g27wl2nl-linux-5.6.3.drv>"
<cole-h> It's in the buildInputs, so yes it is?
<peelz> cole-h: well yeah, but then why have it in buildInput if it's interpolated into the script?
<bqv> he's right you know...
morgrimm has joined #nixos
<peelz> bqv: who's right?
<codygman__> Does anyone use Haskell, developPackage in their default.nix, and direnv? direnv appears to work for me but then cabal can't find my package dependencies :S
<bqv> you
<peelz> oh :p
<codygman__> Well I found 1000 people on github.. time to see if any are close enough to my format to fix my issue: https://github.com/search?utf8=%E2%9C%93&q=filename%3A.envrc%20nix
felixfoertsch has quit [Ping timeout: 246 seconds]
felixfoertsch has joined #nixos
<cole-h> peelz: btw that was just an example that probably doesn't work -- think of it as a derivation. Here's a working example: it overlays discord to change the binary name to lowercase: https://gist.github.com/cole-h/24dc497c8ff8254bf6d6803b7018f39c
zeta_0 has joined #nixos
<clever> cole-h: oh, maybe that will fix the file browser loosing its config constantly
<zeta_0> energizer: i finished setting up lorri+direnv+emacs-direnv , thanks for the recommendation
<zeta_0> energizer++
<{^_^}> energizer's karma got increased to 4
<energizer> :-)
<cole-h> clever: What will? My Discord overlay? :P
<clever> cole-h: the gdk backend fix you have in there
<cole-h> Oh
<cole-h> Hehe
<clever> cole-h: every time i open the file picker in discord, it forgets the sort order and last dir
<zeta_0> energizer: quick question, will i need to execute: M-x direnv-mode and M-x direnv-allow , manually all the time? or do these commands get automated as well?
<cole-h> At least until Discord uses electron that comes with ozone
<gchristensen> is ozone the one that supports wayland?
<codygman__> zeta_0: Can you link what helped you finish setting up direnv?
<energizer> zeta_0: you can turn on direnv mode in .emacs if you want. you'll have to do `M-x direnv-allow` in emacs or `direnv allow` in your system shell once per project directory, for security reasons
<peelz> cole-h: hmm, I'm aware of how runCommand works but it's not as concise as writeShellScriptBin; I just wish there was a middle ground /shrug
<cole-h> Fair enough
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85047 → slop: 7.4 -> 7.5 → https://git.io/JvjvM
<zeta_0> energizer: cool, so this automatically activate direnv-mode on startup? https://dpaste.org/vqOR
<codygman__> zeta_0: Thank you. Sadly looks like I have a different issue since I've installed each of those and followed lorri's page on setting up direnv.
<energizer> zeta_0: i think so
bhipple_ has joined #nixos
bhipple has quit [Ping timeout: 240 seconds]
<energizer> in my display manager, when i go to enter my password after boot, the first character that i type into the password field doesn't get entered. is this a known issue? i've experienced it with a couple different display maangers
<energizer> sddm and whatever the kde one is called
<codygman__> Ah, when using only a default.nix with developPackage you need to specify default.nix should be loaded by direnv like `use_nix default.nix`
<zeta_0> energizer: cool, i was just double checking, thanks again, i'll give you some more karma
<zeta_0> energizer++
<{^_^}> energizer's karma got increased to 5
<bqv> > nixos-unstable.linuxPackages_latest.kernel
<{^_^}> "<derivation /nix/store/hbf3ls4p86v546qw4cw7gzbi4mpk7ivy-linux-5.6.2.drv>"
piezoid has quit [Quit: leaving...]
<bqv> why is mine different
<bqv> `/nix/store/hlxjqrrgfga05pp2magvgqdpm4ndhz94-linux-5.6.2.drv`
<bqv> has someone got the {^_^} version so i can compare the drv
<zeta_0> energizer: uhh, i was having problems with my display managers as well(because it overrided my custom keyboard layout), so i just use xmonad by itself, without any desktop environment and it works fine with xmonad's default password login
<clever> > nixos-unstable.lib.version
<{^_^}> "20.09pre-git"
<clever> ack, the .git is missing
<energizer> yeah i'm not using a desktop environment either. curious.
<clever> bqv: which channel are you on?
<bqv> all of them
<bqv> but linux should be building from nixos-unstable
Darkmatter66 has quit [Ping timeout: 265 seconds]
<pjt_014> what greeter?
<bqv> clever: do you have that drv around?
<bqv> or anyone else?
<clever> $ nix-instantiate channel:nixos-unstable -A linuxPackages_latest.kernel
<bqv> alternatively is there a command i can issue to fetch a store path from cache.nixos.org?
<clever> /nix/store/hbf3ls4p86v546qw4cw7gzbi4mpk7ivy-linux-5.6.2.drv
<bqv> yes, that
<clever> bqv: just run nix-build on a storepath
<bqv> oh, ok
drakonis has quit [Quit: WeeChat 2.8]
<bqv> clever: error: path '/nix/store/hbf3ls4p86v546qw4cw7gzbi4mpk7ivy-linux-5.6.2.drv' does not exist and cannot be created
Darkmatter66 has joined #nixos
<zeta_0> codygman__: also make sure and use the home-manager options for direnv, the options for the shells run some other nix code underneath like mkAfter(insures that the direnv hook executes last so it does not mess up the shell): https://github.com/rycee/home-manager/blob/master/modules/programs/direnv.nix#blob-path
<clever> bqv: you have to run it on an output, not the drv file
<bqv> right, what i want is the drv
<clever> > "${nixos-unstable.linuxPackages_latest.kernel}"
<bqv> i don't care about the output
<{^_^}> "/nix/store/5d71ng4vv80hxh1v1j0c8q9wyifiyi94-linux-5.6.2"
<bqv> i want to know what is in that drv
<clever> bqv: you can only get the drv by evaling the expr, try the nix-instantiate i gave above?
<clever> bqv: what does it give for you?
<bqv> clever: ah, that worked. thanks
<bqv> sorry, didn't think of that
<codygman__> zeta_0: Thank you, will do
<clever> bqv: try using nix-diff to compare the drv to the one from nixos-rebuild
<bqv> it's marked as broken :p
<zeta_0> codygman__: your welcome
<clever> bqv: what says what is broken?
<bqv> nix-diff is marked as broken
<clever> ah
<clever> bqv: nix-build /nix/store/2vwic9njn2i3zzgk3dhv080vvs95a50a-nix-diff-1.0.9
<clever> bqv: it also appears to be working fully on nixos-unstable
maxdeviant[m] has quit [Quit: authenticating]
maxdeviant[m] has joined #nixos
<bqv> huh. odd
<bqv> i tried nix-shell -p nix-diff and it said it was marked as broken
maxdeviant[m] has quit [Client Quit]
maxdeviant[m] has joined #nixos
<bqv> ooh this is a nice tool
<clever> bqv: nix-shell -p uses whatever <nixpkgs> is mapped to
<bqv> oh, no wonder. i havent updated that for weeks
<bqv> most frustrating. so linux is being recompiled because it depends on util-linux, which depends on systemd, which depends on iptables, which i've modified
<bqv> along with half my system
zaeph1 has joined #nixos
<clever> bqv: ah, that will do it
<clever> bqv: you can use an override to force util-linux to depend on the old systemd
<clever> and then it wont cascade up too far
maxdeviant[m] has quit [Client Quit]
<bqv> yeah, i think i might
<clever> you could maybe also do that to systemd
<clever> depends on what your goal was
<zeta_0> when i execute: `nixos-rebuild --upgrade switch`, does this keep the nix channels up to date? or do i still need to run the: `nix-channel --update` command?
<bqv> probably better in systemd. my goal was to make sure anything using iptables by accident got redirected to nftables by the compat wrapper
<clever> zeta_0: it updates the channel called nixos, but not any other channel
<bqv> since stuff like libvirtd uses it module-internally
<codygman__> Given default.nix `(pkgs.haskell.packages.ghc883.developPackage { root = ./.; })` and `pkgs.haskellPackages.shellFor { packages = p: [myapp];}` and then trying to call `nix-shell` I get `attribute 'getCabalDeps' missing`
zaeph has quit [Ping timeout: 265 seconds]
<zeta_0> clever: that's good to know, i haven't ran `nix-channel --update` in a long time, but i do have an unstable nix channel as well, so i guess i do need to run it for that
<pjt_014> Any way I can do `nix search -u` with limited ram?
sigmundv_ has quit [Ping timeout: 258 seconds]
<cole-h> With ulimit, maybe?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85048 → tendermint: 0.32.3 -> 0.32.10 → https://git.io/Jvjf3
<bqv> ha! nice. overriding systemd reduced the number of packages i have to build locally by an order of magnitude
<zeta_0> yesterday i asked a couple of questions on the nixos reddit website, if any of you are interested helping me fix that stuff: https://www.reddit.com/r/NixOS/
<pjt_014> Hm. Maybe. I might end up doing it on a machine that can handle it and just yoink it over via sftp
<pjt_014> We *really* need to memoize nix search -u sometime
<zeta_0> i don't want to ask to many questions on this channel, so i'll ask a lot of my bigger questions there
<cole-h> I think discourse and stackoverflow (or whatever) would be better places than reddit, tbh
<pjt_014> zeta_0: I'll answer anything I know
<zeta_0> cole-h: ya, but i like reddit, it just feels better to me
<zeta_0> pjt_014: thanks for taking a look
<cole-h> I meant better in terms of response speed/volume, but you do you.
fusion809 has quit [Remote host closed the connection]
<zeta_0> cole-h: in reddit, i got responses almost immediately after i posted
<zeta_0> cole-h: but ya, i get what your saying
<infinisil> For Nix things I'd order Discourse > Reddit > StackOverflow
<infinisil> There really aren't a lot of people answering Nix questions on SO
waleee-cl has quit [Quit: Connection closed for inactivity]
<cole-h> Oh, really? I'll keep that in mind then.
<cole-h> I retract (that part of) my statement :P
<infinisil> Discourse seems to get the most activity
<cole-h> Yeah, agreed
<evils> second to IRC?
<infinisil> Hehe yeah
<zeta_0> i've never tried discourse before, so i'll need to take a look, i use an emacs pkg that integrates stack exchange with emacs, so being able to ask stackoverflow questions directly from emacs is very convenient
<DigitalKiwi> emacs is truly a great operating system
<neeasade> yes indeed
<evils> even has a fairly good editor that looks like my username?
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
<DigitalKiwi> doom does not look anything like evils
<DigitalKiwi> fight me spacemacs users
<zeta_0> emacs is amazing, it's a trip how many things you can do with it
<DigitalKiwi> why's nix use /nix and not /opt #haskell is mad
<zeta_0> sorry for being off topic, i go off on a tangent sometimes
orivej has joined #nixos
<bqv> DigitalKiwi: lol, what would be the point of using /opt, nix is anything but FHS compatible
<DigitalKiwi> the presumption is that the macos catalina issue wouldn't be an issue and that people wouldn't need root so shared computers on different os would be easier
<DigitalKiwi> since not everyone can write to /nix
<DigitalKiwi> (hey this is their argument not mine i'm with you on this lol)
codygman__ has quit [Ping timeout: 240 seconds]
<DigitalKiwi> i even mentioned the FHS thing
Henson has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
<Ashy> the catalina issue is pretty disappointing
<{^_^}> [nixpkgs] @orivej opened pull request #85049 → libgit2: unbundle pcre → https://git.io/Jvjfy
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
jmcasey has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
jmcasey has joined #nixos
InvisibleRasta has quit [Quit: WeeChat 2.3]
InvisibleRasta has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85050 → waybar: 0.9.1 -> 0.9.2 → https://git.io/JvjJU
evertedsphere has joined #nixos
LysergicDreams has quit [Ping timeout: 250 seconds]
xO1 has quit [Ping timeout: 265 seconds]
bhipple_ has quit [Ping timeout: 258 seconds]
<jonreeve[m]> Anyone know how to get libstdc++.so.6?
<evils> ,locate libs-tdc++.so.6
<evils> that, but without the typo :P
<{^_^}> Couldn't find in any packages
<evils> ,locate libstdc++.so.6
<{^_^}> Found in packages: robo3t, gcc-unwrapped.lib
<jonreeve[m]> Hm every time I try to run this python program I get: `ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory`
<jonreeve[m]> But I have GCC installed
<pjt_014> what program?
<jonreeve[m]> Prodigy
<jonreeve[m]> It's a propritary NLP program distributed in a `.whl` file
<jonreeve[m]> Installation instructions are here: https://prodi.gy/docs/install
<pjt_014> yeah I was about to say it ain't in nixpkgs. How are you trying to install it?
<jonreeve[m]> Just following the installation instructions above
<pjt_014> Oh I see. Just like in the link?
<jonreeve[m]> Yep
<pjt_014> well there's the lag for ya :|
<jonreeve[m]> It installs fine, but then I get that error every time I try to run it
<pjt_014> Yeah, nix doesn't use paths the same way. Can make things challenging.
LysergicDreams has joined #nixos
<pjt_014> Is tere an actual dl link? I don't see one
<jonreeve[m]> No, it's proprietary, they charge a lot of money for it
<pjt_014> That makes debugging...a lot harder.
<pjt_014> So when you've paid up, what do they send you exactly?
<jonreeve[m]> They send you a download link for a .whl file
<jonreeve[m]> The file that you install according to those instructions
<energizer> iirc thats the error you get when you install pandas without linking the binary deps
freeman42x has quit [Ping timeout: 246 seconds]
<jonreeve[m]> How should I do that?
<energizer> yeah. python3 -m venv venv && venv/bin/pip install pandas && venv/bin/python3 -c'import pandas' ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory
<energizer> nixos 19.09
<jonreeve[m]> How do you link the binaries?
noonien has quit [Quit: Connection closed for inactivity]
<energizer> lemme try
LysergicDreams has quit [Ping timeout: 256 seconds]
jmeredith has quit [Quit: Connection closed for inactivity]
<energizer> poetry2nix works. poetry init, then poetry add pandas. then https://bpaste.net/FKHQ
<energizer> jonreeve[m]: you can probably do it without poetry/poetry2nix but that's my preferred workflow in python these days
zebrag has joined #nixos
inkbottle has quit [Ping timeout: 256 seconds]
<jonreeve[m]> I can't seem to find poetry2nix, is it in nixpkgs?
<jonreeve[m]> Ok I got it
<jonreeve[m]> I don't see how Poetry can install a .whl file, though
<{^_^}> [nixpkgs] @jonringer merged pull request #84953 → python37Packages.pyhomematic: 0.1.62 -> 0.1.65 → https://git.io/Jvh8U
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.pyhomematic: 0.1.62 -> 0.1.65 »: https://git.io/JvjJ2
slack1256 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jonringer merged pull request #84958 → python27Packages.smart_open: 1.9.0 -> 1.11.0 → https://git.io/Jvh4u
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.smart_open: 1.9.0 -> 1.11.0 »: https://git.io/JvjJa
<energizer> i forget the syntax but it'll be something like `poetry add file://foo.whl`
<energizer> i haven't actually tried installing local filesystem packages with poetry2nix. if it doesn't work automatically, you can just add an override for it (documented on the poetry2nix readme)
<energizer> looks like `[tool.poetry.dependencies] foo = { file = "path/to/wheel.whl" }`
dsal has joined #nixos
<dsal> I just built a new machine and forgot to try nixos. It's fresh enough that I'm considering destroying it. I can't seem to get started, though. Downloads are failing. I thought it was my local network, so I tried another one. That's also failing.
<pjt_014> you try hydra?
<pjt_014> here one sec
<dsal> I'm just trying to download the virtualbox image and live install thing. I want to see if I can reasonably get my desktop/dev env setup before wiping this machine I just made. :)
<evils> that's the latest build of 20.03 which is very near release, which i think is down to some formalities
<dsal> I'm not sure I care about version numbers that much. This machine is debian, so my expectations are around there.
<pjt_014> If bandwidth is a concern, versions without KDE are available too
jmcasey has quit [Ping timeout: 260 seconds]
<pjt_014> we got like a dozen desktop envs / window managers to choose from
<dsal> Heh. That's telling me it's going to be somewhere between 10 hours and 6 days. I"ll see if it doesn't just hang up like the others have.
<dsal> I just want xmonad and emacs. and tmux. and stack/ghc
<pjt_014> dsal: which iso is it?
<dsal> The one just linked above.
<energizer> it's your local network
<dsal> I can try on my other network.
<dsal> Oh yeah. It's working better.
<pjt_014> A download manager like aria2 will let you easily resume after a timeout
<pjt_014> nvm I guess
<dsal> I'll just let it go to my other network and rsync it or whatever.
<pjt_014> oh hey evils: my package PR got accepted (wooooooooooo)
<{^_^}> [nixpkgs] @cgevans opened pull request #85051 → libwacom: 1.1 -> 1.4 → https://git.io/JvjJ7
<pjt_014> question tho
<evils> pjt_014++ grats
<{^_^}> pjt_014's karma got increased to 2
<pjt_014> thx
<pjt_014> but question: will it show up in 19.09?
<evils> i seem to recall hearing new packages are usually not backported, so this will show up in 20.09
<pjt_014> I can't find an explanation for how/when master gets merged into numbered releases
<pjt_014> hmm
OrangeTetra has quit [Quit: Leaving]
<pjt_014> Wait .09?
<pjt_014> not .03?
<evils> it's already in nixos-unstable-small
<evils> pjt_014: 20.03 split off from master on 2020-02-10
<evils> each numbered release has its own branch
<pjt_014> I know that much
<pjt_014> I just thought my PR would show up in 19.09 since that was the latest stable at the time
<energizer> does nixpkgs merge package derivations that fail to build?
<energizer> like, why are there build failures in nixpkgs at all?
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<evils> merging non-building packages could be done by a merger, but probably very rare; failures are probably due to a dependency being updated and in not being spotted (which can be done with nixpkgs-review)
<evils> pjt_014: i'm not sure if there are exact rules for backporting, but i think that's limited to bug and security fixes
pjt_0141 has joined #nixos
<energizer> evils: a dependency of A gets updated, A doesn't get automatically rebuilt?
* DigitalKiwi cries about haskell-packages
bqv has quit [Ping timeout: 265 seconds]
<evils> energizer: it does get rebuilt, but i think that's not done by the PR bot
pjt_014 has quit [Ping timeout: 240 seconds]
morgrimm has quit [Ping timeout: 264 seconds]
bqv has joined #nixos
<energizer> evils: has there been discussion about whether that's a problem in the workflow? it'd be cool to have an always-green nixpkgs
pjt_0141 has quit [Remote host closed the connection]
zeta_0 has joined #nixos
palo1 has joined #nixos
pjt_014 has joined #nixos
LysergicDreams has joined #nixos
<evils> maybe some of the newer comments have addressed this, but i'm still wondering if it's possible to have a channel that has the most recent successfully built version of every package
<evils> basically, "F closure size, give me something that works"
<pjt_014> what is unstable if not that?
<evils> unstable is the latest version of git master that passed a set of tests
<pjt_014> oh. also did you answer my last question while I was disconnected?
<evils> pjt_014: i didn't see you disconnect, maybe check here? https://logs.nix.samueldr.com/nixos/2020-04-12
palo has quit [Ping timeout: 265 seconds]
palo1 is now known as palo
<zeta_0> when using direnv with shell.nix(lorri), do i need that mkShell function for direnv to work or can i go without it? https://dpaste.org/CAGt
<zeta_0> energizer: ^
<energizer> evils: there was a thread about that recently https://github.com/NixOS/nixpkgs/issues/9682
<{^_^}> #9682 (by mayhewluke, 4 years ago, closed): No way to install/use a specific package version?
<energizer> zeta_0: just mkShell {buildInputs = [mypackage];}
<energizer> evils: er that wasnt recent
<energizer> evils: yeah that's the one i meant
<zeta_0> energizer: so if i remove mkShell, direnv will stop working, if that's the case then i'll need to add mkshell to the other shell.nix files that i want to paste in that file
<energizer> zeta_0: yes
<zeta_0> energizer: thanks of clearing that up, it makes more sense now
<zeta_0> cool, well i'm going to get off now, i'll test out the lorri tool more tomorrow, thanks everyone for the help
<zeta_0> later
<energizer> evils: idk what's involved in making a channel, it can't be very hard to query hydra for the latest successful version of a package and turn that into a channel/flake/whatever
init_6 has quit []
<energizer> s/a package/all packages/
<iqubic> What the difference between the lean package, and lean2?
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<evils> energizer: i think a channel ultimately comes down to a tarball of a git repo at a specific point, merging all working points together would most definitely result in some conflicts...
<energizer> iqubic: lean is lean3, lean2 is old
<iqubic> Ah. I see. I'll install lean3, and hopefully be able to install the emacs package too, both through nix.
<iqubic> Is there a way to see which melpa packages have been ported to nix?
<energizer> iqubic: melpa is all available
<iqubic> Specifically I want to patch my emacs installation so that I may have this package available: https://github.com/leanprover/lean-mode
<energizer> use emacs.withPackages
<iqubic> I know how to do that. My main question about how to find the package name.
<energizer> it's lean-mode
<iqubic> And that's the name nix uses?
<iqubic> Got it.
<energizer> iiuc nix doesn't use special names, it's just directly using melpa
<iqubic> I'll try that.
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
<peelz> does anybody know why `self.libPath` gives me an infinite recursion here? https://0x0.st/iSdv.txt
rogue_koder_ has quit [Quit: Konversation terminated!]
<energizer> peelz: looks like libPath is a list including itself?
<energizer> on line 3
<peelz> energizer: the attrset is not recursive, so it should reference the parent `libPath`
captjakk has quit [Ping timeout: 265 seconds]
<energizer> hmm
morgrimm has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JvjUD
<{^_^}> [nixpkgs] @Mic92 merged pull request #85045 → pulsemixer: 1.5.0 -> 1.5.1 → https://git.io/JvjeT
morgrimm has quit [Ping timeout: 250 seconds]
OrangeTetra has joined #nixos
<OrangeTetra> We have a pi version of nixos?
<evils> OrangeTetra: we support aarch64 (raspberry pi 3 and later i believe)
<OrangeTetra> Works for me, but... where is the img?
<OrangeTetra> Oh. How did you know it was here?
<evils> because someone sent me a link to it once :P
<OrangeTetra> Haha, guess you use nixos for pis?
<evils> no, i use a toilet for that
<leonardp> lol
<OrangeTetra> They might be crap, but don't have a computer with less power consumption, yet.
<energizer> are there any people getting paid to maintain nixpkgs?
<evils> not directly i think
<energizer> i wonder if the community could just hire some people to do it
<OrangeTetra> evils: you are here surprisingly often. I was expecting you might be.
<evils> OrangeTetra: using a nixos on an RPi, or get payed to maintain nixpkgs?
<OrangeTetra> evils: paid.
<evils> nah, i just have a spare monitor and spare time
<OrangeTetra> haha, certainly have let me use it to help maintain pkgs too, then.
<OrangeTetra> learn how, that is.
zaeph1 is now known as zaeph
LysergicDreams has quit [Ping timeout: 256 seconds]
<leonardp> OrangeTetra: take a look at: https://github.com/matthewbauer/nixiosk this might be a good start to get your feet wet with nixos on RPis
LysergicDreams has joined #nixos
hyper_ch has quit [Read error: Connection reset by peer]
hyper_ch has joined #nixos
<peelz> is this an anti-pattern? lib.readFile (pkgs.runCommand ...)
marsh has quit [Remote host closed the connection]
marsh has joined #nixos
<energizer> is there a manpage version of the nixpkgs manual?
<OrangeTetra> leonardp: yeah, this could be good for a start with the pi.
snicket has joined #nixos
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/807ca93fadd (from 2 days ago, history: https://channels.nix.gsc.io/nixos-unstable)
morgrimm has joined #nixos
cjpbirkbeck has quit [Quit: cjpbirkbeck]
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/99a27f4cafa (from 13 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
morgrimm has quit [Ping timeout: 258 seconds]
xO1 has joined #nixos
maddo has joined #nixos
magnetophon has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85052 → bslizr: 1.2.4 -> 1.2.6 → https://git.io/JvjTi
cole-h has quit [Quit: Goodbye]
nschoe has joined #nixos
<sphalerite> peelz: it's called import-from-derivation. I wouldn't consider it an antipattern as such, but it does come with some pitfalls
<sphalerite> peelz: for instance, it prevents evaluation without access to the local store (so you can't do `nix build --store ssh://some-remote-machine` on an expression using it
<sphalerite> peelz: it breaks the clean split that non-IFD derivations have between evaluation and building
<sphalerite> peelz: it's also not allowed in nixpkgs, because hydra can't deal with it
<sphalerite> oh wait, I forgot we have a factoid about it.
<sphalerite> ,ifd
<{^_^}> import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2. This is sometimes problematic because it requires evaluating some, building some, and then evaluating the build result. It has been described as "such a nice footgun."
mallox has joined #nixos
<peelz> sphalerite: oh thanks for the explanation! <3
<peelz> <3 sphalerite
<{^_^}> sphalerite's karma got increased to 82
OrangeTetra has quit [Ping timeout: 256 seconds]
<evertedsphere> TIL you can do that, a heart is much nicer than rudely incrementing someone
<peelz> haha
jakobrs has joined #nixos
<jakobrs> Is it possible to set the niceness on individual nix builds?
<jakobrs> *of
<peelz> sphalerite: can you explain what you meant by "hydra can't deal with it"?
jerryaldrichiii has quit [Ping timeout: 256 seconds]
Heirlung- has joined #nixos
Heirlung has quit [Ping timeout: 264 seconds]
Heirlung- is now known as Heirlung
naominitel has quit [Ping timeout: 268 seconds]
logand has joined #nixos
<{^_^}> [nixpkgs] @zowoq opened pull request #85054 → go-md2man: 1.0.6 -> 2.0.0 → https://git.io/Jvjki
jakobrs has quit [Quit: WeeChat 2.7.1]
<{^_^}> [nixpkgs] @nschoe opened pull request #85055 → st: copy config file in 'prePatch' instead of 'preBuild' → https://git.io/JvjkD
ATuin has joined #nixos
s1341 has joined #nixos
<s1341> morning all.
jerryaldrichiii has joined #nixos
<pjt_014> is that what they're calling it now?
<s1341> @Mic92 hi, i'd like to bump the frida-tools version to a more recent release... I see it's in your NUR repo... Should I open a PR against your repo?
<s1341> pjt_014: it's morning here at least ;)
<pjt_014> well technically here too I guess
<s1341> pjt_014: i'm in .il... where you at?
jerryaldrichiii_ has joined #nixos
<pjt_014> What is .il...?
<s1341> israel.
linarcx has joined #nixos
<pjt_014> For a second I thought that was a regex
<linarcx> Hi. i want to run a vala application, but i get this error: https://gist.github.com/LinArcX/1adf2c8563d69f4aac5abc13a020a03b
jerryaldrichiii has quit [Ping timeout: 256 seconds]
<linarcx> I can't even see the icons(close, minimize, maximize buttons) on application.
<s1341> pjt_014: :)
<pjt_014> I am now more confused :q
<pjt_014> linarcx: what are you trying to run?
<linarcx> a vala applications.
<linarcx> It's uses gtk.
<evils> linarcx: maybe this is relevant? https://nixos.org/nixpkgs/manual/#ssec-gnome-hooks
<linarcx> Oh. no. again.. hooks.
<linarcx> lemme check.
PlasmaStrike has joined #nixos
<linarcx> evils: Put `preFixup` inside my `shell.nix`?
<evils> linarcx: i'm not sure how you got to that conclusion from that link...
<linarcx> I'm developing a vala application.
<linarcx> So. how your solution related to my problem?
<linarcx> It's my concern.
<evils> i think you want to add wrapGAppsHook to nativeBuildInputs, and probably hicolor-icon-theme to buildInputs
revtintin has joined #nixos
<linarcx> evils: No. it's not working.
<{^_^}> [nix] @LnL7 opened pull request #3488 → never use /var/folders for TMPDIR on darwin → https://git.io/JvjIW
<linarcx> Oh. actually i'm using zsh and seems hooks don't work within zsh. Isn't it?
<evils> then it may be vala specific (i'm not familiar with that), have you tried to look for other vala applications in nixpkgs that use hicolor-icon-theme?
<logand> nixos manual: 41.5. Network Problems: nixos-rebuild switch --option use-binary-caches false: doesnt work: warning: unknown setting 'use-binary-caches'
<{^_^}> [nixpkgs] @Ma27 pushed to master « feh: 3.3 -> 3.4 »: https://git.io/JvjIE
<linarcx> evils: Actually i'm not on nixos. and not using bash. I think these are the problems.
<{^_^}> [nixpkgs] @Ma27 pushed to release-20.03 « feh: 3.3 -> 3.4 »: https://git.io/JvjIK
morgrimm has joined #nixos
revtintin has quit [Ping timeout: 264 seconds]
<evils> linarcx: i don't think that would cause wrapGAppsHook to not work as expected
morgrimm has quit [Ping timeout: 258 seconds]
revtintin has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 3 commits to master: https://git.io/JvjId
opthomasprime has joined #nixos
<linarcx> I have same problem with qt applications.
<linarcx> and wrapQtApp saved me.
<{^_^}> [nixpkgs] @vcunat merged pull request #83022 → simutrans: 120.2.2 -> 120.4.1 → https://git.io/JvjIF
opthomasprime has left #nixos [#nixos]
LysergicDreams has quit [Ping timeout: 258 seconds]
tA_ has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @vcunat pushed to release-20.03 « Merge #83022: simutrans: 120.2.2 -> 120.4.1 (unbreak) »: https://git.io/JvjIA
LysergicDreams has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed to release-19.09 « Merge #83022: simutrans: 120.2.2 -> 120.4.1 (unbreak) »: https://git.io/JvjLJ
revtintin has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #84942 → zeek: 3.0.3 -> 3.1.1 → https://git.io/JvhcZ
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvjLI
ixxie has joined #nixos
sb0_ has joined #nixos
jorge-jbs[m] has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85056 → cvs_fast_export: 1.51 -> 1.53 → https://git.io/JvjLY
<{^_^}> [nixpkgs] @marsam merged pull request #85054 → go-md2man: 1.0.6 -> 2.0.0 → https://git.io/Jvjki
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvjLs
opthomasprime has joined #nixos
opthomasprime has quit [Remote host closed the connection]
opthomasprime has joined #nixos
pbogdan has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #84970 → python27Packages.shodan: 1.22.0 -> 1.23.0 → https://git.io/Jvh0s
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvjLW
kreetx has joined #nixos
o1lo01ol1o has joined #nixos
<nschoe> Hi everyone. I have a quick question: I have a nix-channel on 20.03 (so https://nixos.org/channels/nixos-20.03) Am I correct in thinking that it points to github´s NixOS/nixpkgs on branch nixos-20.03?
<Mic92> s1341: I can update it.
<symphorien> release-20.03 rather
<s1341> thanks @Mic92
<nschoe> i.e. instead of running nix-channel --update it should be the same to git pull on that branch and specify it with nixos-rebuild -I nixpkgs=/path/to/my/nixpks ?
<symphorien> Mmh suddenly I have a doubt
<nschoe> symphorien, ah that was my question indeed :)
jeromelanteri has joined #nixos
<jeromelanteri> hey guys, i break something in my user logged. I did "nix-env -S 8"
<jeromelanteri> nox ls -la /home/jerome show me ~/.nix-profile linked to .nix-profile
<jeromelanteri> and when i try to fix that by nix-env -S /home/jerome//.nix-profile, it failed with error too many level of symbolic links
<jeromelanteri> hoh to fix my error please ?
<jeromelanteri> how
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85057 → eagle: 9.6.0 -> 9.6.1 → https://git.io/JvjLE
<nschoe> symphorien, from what I can see on the github, branch ´nixos-20.03´ ś last commit is April, 7th while ´release-20.03´ is on April 12th.
<jeromelanteri> inside your user directory, where do you have this .nix-profile linked with ?
<ixxie> For the third time in a couple of years, my boot sector is refusing to mount https://imgur.com/a/wO1pGZk
<evils> nschoe: the channel is the latest commit on that branch that has passed a set of tests
<jeromelanteri> is it linked usualy to /nix/var/nix/profiles/per-user/<your_user_name> ?
opthomasprime has quit [Remote host closed the connection]
revtintin has joined #nixos
opthomasprime has joined #nixos
<leonardp> ixxie: do you have another bootable medium in your machine?
o1lo01ol1o has quit [Ping timeout: 264 seconds]
<ixxie> leonardp - setting up a bootable nixos usb as we speak
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @ehmry opened pull request #85058 → [19.09] Yggdrasil backport → https://git.io/JvjLr
opthomasprime has quit [Remote host closed the connection]
<nschoe> evils, ok for the tests, but on which branch? ´release-20.03´ or ´nixos-20.03´?
<nschoe> (Also I´m having only channels as root)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85059 → earlyoom: 1.5 -> 1.6 → https://git.io/JvjL6
pjt_014 has quit [Ping timeout: 265 seconds]
<pbogdan> nschoe: IIRC release-20.03 is what Hydra continually evaluates and where the changes go; if it passes then that bumps nixos-20.03
<{^_^}> [nixpkgs] @Moredread opened pull request #85060 → chiaki: 1.0.3 -> 1.1.3 → https://git.io/JvjLX
<nschoe> pbogdan, okay, it would explain why release-20.03 has more recent commits than nixos-20.03.
<nschoe> So most likely, channels are on nixos-20.03.
zupo has joined #nixos
<nschoe> I´m asking because I submitted a PR and while I´m waiting for it to be accepted, I wanted to use it internally, but still wanted to be up-to-date with the channels. So insteado fupdating channels, Iĺl git pull on the branch.
<nschoe> But maybe this is too much work and I should make an override instead. Don´t know
thc202 has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @marsam merged pull request #84650 → teamspeak_server: 3.11.0 -> 3.12.1 → https://git.io/JvANq
<{^_^}> [nixpkgs] @marsam pushed 3 commits to master: https://git.io/JvjLQ
opthomasprime has joined #nixos
opthomasprime has quit [Remote host closed the connection]
opthomasprime has joined #nixos
zupo has joined #nixos
dermetfan has joined #nixos
opthomasprime has quit [Remote host closed the connection]
arstneio has joined #nixos
opthomasprime has joined #nixos
opthomasprime has left #nixos [#nixos]
<maddo> is this channel the correct place to report an issue with a package?
misuzu has quit [Quit: leaving]
misuzu has joined #nixos
arstneio has quit [Remote host closed the connection]
<maddo> ty
<maddo> I'll write the issue this evening, basically have to report that Vapoursynth ( https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/vapoursynth/default.nix ) no longer needs nasm and really should be upgraded to R49
<maddo> since R48 randomly hangs or crashes in certain scenarios
<symphorien> jeromelanteri: /nix/var/nix/profiles/per-user/<username>/profile
<symphorien> alternatively, if you just remove the profile, iirc /etc/profile recreates it on login
<maddo> rnhmjoj is the mantainer if I assumed correctly
__monty__ has joined #nixos
<rnhmjoj> maddo: yes, please open an issue and i'll look into it as soon as i have some spare time
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85061 → etesync-dav: 0.15.0 -> 0.16.0 → https://git.io/JvjtT
<{^_^}> [nixpkgs] @marsam merged pull request #84536 → brave: 1.5.115 -> 1.5.123 → https://git.io/JvAGP
revtintin has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @marsam pushed 2 commits to release-19.09: https://git.io/Jvjtk
<{^_^}> [nixpkgs] @marsam merged pull request #84537 → brave: 1.5.115 -> 1.5.123 → https://git.io/JvAGM
<{^_^}> [nixpkgs] @marsam pushed 2 commits to release-20.03: https://git.io/JvjtL
m0rphism has joined #nixos
misuzu has quit [Quit: leaving]
misuzu has joined #nixos
misuzu has quit [Client Quit]
misuzu has joined #nixos
<sphalerite> maddo: you can also open a PR to fix it yourself :)
<ixxie> uurgh, the stupid usb stick wont boot :/ its always tricky to get it working
revtintin has joined #nixos
<maddo> sphalerite I'm not really familiar with nix yet unfortunately XD
<maddo> otherwise I would
<{^_^}> [nixpkgs] @marsam merged pull request #84574 → meilisearch: init at 0.9.0 → https://git.io/JvABr
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvjtG
<{^_^}> [nixpkgs] @symphorien opened pull request #85062 → agedu: 20180918 -> 20200206 → https://git.io/JvjtB
misuzu has quit [Quit: leaving]
revtintin has quit [Ping timeout: 256 seconds]
misuzu has joined #nixos
bqv has quit [Ping timeout: 260 seconds]
bqv has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85063 → fasm: 1.73.22 -> 1.73.23 → https://git.io/JvjtX
revtintin has joined #nixos
ixxie has quit [Quit: Connection closed]
ottidmes has joined #nixos
evertedsphere has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #84971 → nixos/relrease-notes/rl-2003.xml: remove section on intel GPU workaround → https://git.io/Jvhuv
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to release-20.03: https://git.io/Jvjty
<jeromelanteri> symphorien, thank you man. remove file was the solution
ottidmes_ has joined #nixos
<symphorien> glad to hear this :)
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @Emantor to master « rl-2003: remove section on intel GPU workaround »: https://git.io/JvjtH
ottidmes_ has quit [Client Quit]
<{^_^}> [nixpkgs] @kraem opened pull request #85064 → exa: include patch to group dir symlinks with dirs → https://git.io/JvjtQ
<buggymcbugfix> Playing with the config given [here](https://www.reddit.com/r/NixOS/comments/4nnfc9/mimicking_the_touchpad_settings_of_macos_on_my/) gives me syntax errors. Has the Nix grammar changed?
morgrimm has joined #nixos
linarcx has quit [Ping timeout: 260 seconds]
<immae> ah far as I see it only lacks a ; at the end of the last line?
<immae> (for syntax I mean, the content I don’t know)
morgrimm has quit [Ping timeout: 250 seconds]
maddo` has joined #nixos
maddo` has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Ma27 merged pull request #85050 → waybar: 0.9.1 -> 0.9.2 → https://git.io/JvjJU
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/Jvjqa
noonien has joined #nixos
<noonien> hello folks!
<noonien> how can one get all the available channels that are available to be imported?
<buggymcbugfix> immae: d'oh, yes that was it. I'm getting `Synaptics and libinput are incompatible` now...
<noonien> `nix-channels --list` shows nothing, but if i run it as a user i get the `nixos` and `nixos-unstable` channels
<noonien> i know there is also the `nixpkgs` channel
<noonien> (channel?)
<immae> buggymcbugfix: that’s not more a syntax error, now it may be because modules now are incompatible with modules at the time of writing :)
<buggymcbugfix> yep
<hyperfekt> noonien: https://channels.nixos.org/
<noonien> sorry, i meant channels that are available to the system
st3r4g[m] has left #nixos ["User left"]
<hyperfekt> noonien: (sudo) nix-channel --list
<noonien> and what does `nixpkgs` point to?
<noonien> the first one?
vidbina has joined #nixos
<hyperfekt> noonien: check your $NIX_PATH to be sure
<hyperfekt> usually i think yes, but some people have it modified
<noonien> ah, so it points to NIX_PATH
<hyperfekt> sorry, not to the first one, but to the nixos channel iirc
<hyperfekt> anything in angle brackets will be resolved according to $NIX_PATH
<noonien> hmm, is there a way to list all of them?
<hyperfekt> all of what?
<noonien> i'm trying to do this in python, so if there'a library, or an easier way of doing it, it would be super
<noonien> list all the channels, or, atleast all the values that i can put in `<>`
<hyperfekt> noonien: i think parsing $NIX_PATH would be your best bet
<hyperfekt> for the latter
<noonien> i see :(
<hyperfekt> there is a default location for the channels on disk, so if you want to list those you could do that by reading that directory (see your $NIX_PATH for which one it actually is, i don't remember)
<{^_^}> [nixpkgs] @worldofpeace opened pull request #85065 → nixos/displayManager: make autoLogin options independent of DM type → https://git.io/JvjqQ
<hyperfekt> i'll allow myself to raise the question of how much work you want to put in channels considering that flakes, which should make channels obsolete, are incoming
chloekek has joined #nixos
<noonien> oh, i didn't know about flakes
<Mic92> s1341: New frida tools should be available once the channel is updated.
<hyperfekt> whenever i try to look up how another distro has solved something i am very grateful that our source is a git repo
maddo has quit [Quit: See ya]
maddo has joined #nixos
nschoe_ has joined #nixos
maddo2 has joined #nixos
nschoe has quit [Ping timeout: 250 seconds]
maddo has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @worldofpeace opened pull request #85067 → setup.sh: add dontPatch → https://git.io/JvjmZ
CRTified has joined #nixos
sb0_ has quit [Ping timeout: 250 seconds]
zeorin53 has joined #nixos
Thra11 has joined #nixos
chloekek has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85068 → dump1090: 3.7.2 -> 3.8.0 → https://git.io/JvjmR
<zeorin53> Hello all! I'm a new NixOS user. I'm trying to install `st` with patches. I'm currently using only system-level declarative package management (`/etc/nixos/configuration.nix`). However there are quite a few patches I'd like to apply and I'd like to try building this package in isolation from the rest of the system and get the config right, before
<zeorin53> adding it to the system config file. How can I do this?
VulNix has joined #nixos
runforestrun has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/d121a3992cc (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<runforestrun> any idea why I cannot see the list of generations when I boot my nixos anymore? I recently did a `nix-collect-garbage -d` but I've done `nixos-config switch` quite a few times since then
<runforestrun> `nixos-rebuild switch` is what I meant
fusion809 has joined #nixos
captn3m0 has quit [Read error: Connection reset by peer]
captn3m0 has joined #nixos
<sshow> I've been deploying to my machine with nixops, and the morning after it's back the the state before I deployed. How can I see, and edit, the list of rollbacks and deployments?
<hyperfekt> zeorin53: you'll want to create a separate nix file with just the st derivation. you can access pkgs by assigning 'import <nixpkgs> {}' to it
<hyperfekt> sshow: any chance you have a configuration in EC2 user data? NixOS will apply that on any restart
<sshow> hyperfekt: no, this is my own metal
<sshow> I think I want to edit the rollback history, or permanently switch to the current settings, like you would with `nixos-rebuild switch`, but I don't know how to do it
<zeorin53> hyperfekt: Thanks. Could you point me to an example? I'm afraid I don't have enough context with NixOS yet to fill in the blanks
runforestrun has quit [Remote host closed the connection]
<hyperfekt> zeorin53: also, you can use .overrideAttrs (old: { patches = ... }) to apply patches to nixpkgs' version of st
<michaelpj> sshow: have you by any chance set `autoUpgrade` on the machine configuration?
<zeorin53> hyperfekt: something like this: https://pastebin.com/dgSXiK9d?
runforestrun has joined #nixos
evertedsphere has joined #nixos
<hyperfekt> zeorin53: almost. you're not making this a NixOS module though, so you can leave off the top level attrset, assignment to environment.systemPackages and the singleton list
<hyperfekt> zeorin53: that way, when you do nix build st.nix you'll get the directory with your built st back.
<zeorin53> More like this: https://pastebin.com/9gsVuZgx?
<hyperfekt> zeorin53: you're really close now. try evaluating it
<zeorin53> `error: undefined variable 'fetchurl' at /home/zeorin/code/st/st.nix:3:46`
tsrt^ has quit []
<hyperfekt> the top level namespace is empty but for 'pkgs'. you'll have to specify where that function is coming from. also fetchurl can only download one thing at a time, so you may want to map it over your list of patches
symphorien has quit [Quit: WeeChat 2.7.1]
LysergicDreams has quit [Ping timeout: 260 seconds]
chagra has joined #nixos
<zeorin53> Getting there: https://pastebin.com/0dEZnLg0
<{^_^}> [nixpkgs] @rasendubi merged pull request #82883 → kotatogram-desktop: 1.1.5 -> 1.2 → https://git.io/Jv13o
<{^_^}> [nixpkgs] @rasendubi pushed 3 commits to master: https://git.io/JvjYQ
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85069 → ginac: 1.7.8 -> 1.7.9 → https://git.io/JvjYb
symphorien has joined #nixos
LysergicDreams has joined #nixos
fusion809 has quit [Quit: Leaving]
fusion809 has joined #nixos
<zeorin53> Lol I was getting a 404 error from fetchurl. Couldn't figure out why it was failing (I'd just downloaded the patches manually to get the hashes). The patch list was just updated. Had to clear the browser cache to pick it up.
philr has quit [Ping timeout: 240 seconds]
runforestrun has quit [Remote host closed the connection]
symphorien has quit [Client Quit]
iyzsong- has joined #nixos
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/5fa2612ca27 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
iyzsong has quit [Ping timeout: 256 seconds]
Izorkin has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @teto merged pull request #85009 → pdfarranger: 1.3.1 -> 1.4.2 → https://git.io/Jvhya
<{^_^}> [nixpkgs] @teto pushed commit from @symphorien to master « pdfarranger: 1.3.1 -> 1.4.2 »: https://git.io/JvjOk
symphorien has joined #nixos
morgrimm has joined #nixos
fendor has joined #nixos
symphorien has quit [Quit: WeeChat 2.8]
<{^_^}> [nixpkgs] @minijackson opened pull request #85070 → kodiPlugins.vfs-sftp: 1.0.5 -> 1.0.6 → https://git.io/JvjOY
revtintin has quit [Ping timeout: 264 seconds]
morgrimm has quit [Ping timeout: 240 seconds]
tsrt^ has joined #nixos
<{^_^}> [nixpkgs] @karolchmist closed pull request #83361 → bloop: add blp linking to bloop → https://git.io/JvS2u
<bqv> i get a segfault when i try and build emacs...
<{^_^}> [nixpkgs] @zowoq opened pull request #85071 → runc: fix manpages → https://git.io/JvjOZ
<noonien> how can i get the system's nix-compatible arch?
<noonien> for example, my current system is i686-linux
<gchristensen> > builtins.currentSystem
<{^_^}> "x86_64-linux"
<noonien> x8_64-linux, oops
<noonien> great, thanks!
<noonien> is it stored in a file by any chance?
<gchristensen> I don'tthink so, what's up?
<noonien> i'm trying to get it within a script
philr has joined #nixos
logand has quit [Remote host closed the connection]
symphorien has joined #nixos
<noonien> i'm working on improving my nix-run script, i'm translating it to python, and i'm reading `/nix/var/nix/profiles/per-user/root/channels/{channel}/programs.sqlite` to find a package that provides my program
<{^_^}> [nixpkgs] @minijackson opened pull request #85072 → kodiPlugins.vfs-libarchive: 1.0.6 -> 1.0.7 → https://git.io/JvjO8
logand has joined #nixos
dwagenk[m] has joined #nixos
adrielus has joined #nixos
revtintin has joined #nixos
<adrielus> anyone knows why do I get this error saying the option `home-manager.users.adrielus.programs.fish.plugins` does not exist?
<awatanabe[m]> i started using NixOS 2 or 3 days ago, coming from Gentoo. Have been reading though Nix, NixOS and nixpkgs manuals and having fun. Right now, for work I need to work on a python project which is calling dlib with CUDA, I'm wondering what the best way to go about this is. From what I can tell, I should set up a shell with dlib, dlip python, and pass a custom CMAKE override to dlib? ("cmake -D DLIB_USE_CUDA=1 -D
<awatanabe[m]> USE_AVX_INSTRUCTIONS=1 ../" is what I need to pass specifically). Could anyone point me to the right documentation to accomplish what I'm trying to do?
<{^_^}> [nixpkgs] @worldofpeace closed pull request #84381 → Revert "k3s: fix https://hydra.nixos.org/build/116132269" → https://git.io/JvNER
bkv has joined #nixos
<awatanabe[m]> I think I could override the cmakeFlags in this file somehow to have the appropriate CUDA flag? https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/dlib/default.nix
bqv has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @hyperfekt opened pull request #85073 → nixos/systemd: enable systemd-pstore service → https://git.io/JvjOV
adrielus has quit [Remote host closed the connection]
InvisibleRasta has quit [Quit: WeeChat 2.3]
kai_w has quit [Quit: Konversation terminated!]
<gchristensen> jeromelanteri: btw based on your comment on #66859, it looks like you're still looking at nix-env. yesterday when I told you I didn't really know how nix-env worked, maybe you got the impression I'm not much of a NixOS user. but I am :). nix-env isn't very common on NixOS
<{^_^}> https://github.com/NixOS/nixpkgs/pull/66859 (by worldofpeace, 33 weeks ago, merged): nixos/xfce4-14: init
logand has quit [Remote host closed the connection]
<gchristensen> I worry a bit about the videos and what they will show, because we (the nixos community) would probably not want people using nix-env for their system
invra has joined #nixos
jmeredith has joined #nixos
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/839cd8d03aa (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
<{^_^}> [nixpkgs] @grahamc merged pull request #81848 → specialisation: replace nesting with named configurations → https://git.io/JvVNd
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/JvjO9
cr4y1 has joined #nixos
civodul has joined #nixos
invra has quit [Quit: WeeChat 2.3]
iyzsong- has quit [Read error: Connection reset by peer]
invra has joined #nixos
<jeromelanteri> gchristensen, oh sorry. As you can see, i did post a lot of questions. And i'm pretty new user and pretty new connected to this channel. i was asking for some links who clarify the situation with the exhaustive list of all nixos commands to manage nixos. I get some links i did had already when i serached on duckduckgo.... these links seems toi me usefull, but not really clear and exhautives.
morgrimm has joined #nixos
dsg has quit [Remote host closed the connection]
<jeromelanteri> gchristensen, ok, i'm pretty ready to publish a video on YT but it target on use to nix-env command...
<gchristensen> almost the only command to manage nixos is `nixos-rebuild`
<gchristensen> nixos-option is useful too, but those are really the only two
<jeromelanteri> i'm still ok, to not publish this one and read a link who can make me felling to understand better what you mean.
revtintin has quit [Ping timeout: 256 seconds]
<jeromelanteri> gchristensen, ok, so from user connected (not root), i can use nixos-rebuild to install a new package ?
<jeromelanteri> i then will have a new generation added to my default user profile ?
<gchristensen> no, for that people would usually use nix-shell to get a thing they want to use, sometimes they would use nix-env. but that is more about Nix, less about NixOS
<jeromelanteri> i was thinking that nixos-rebuild is only for the use case where the configuration.nix general config file was updated and ready to apply...
<bkv> question: is there *any* mechanism in nixos currently to handle hotplugged network devices?
<gchristensen> jeromelanteri: right, most changes people make to their system (adding packages permanently, etc.) are done with configuration.nix
<the_pumpkin_man[> jeromelanteri: you know that you can also put packages in the configuration.nix ?
<jeromelanteri> gchristensen, ok, i should focus on nix-shell script for user manage its own profile of packages to install
<the_pumpkin_man[> So when you change that file to add a package, you just nixos-rebuild and its done
<the_pumpkin_man[> There's actually no way to manage packages per-user with a config file, except by using home-manager
<jeromelanteri> the_pumpkin_man[, yes, i did it for vim... for example. but i'm thinking (maybe wrong) that these one are system wide access by all users... isn't it ?
<jeromelanteri> nixos-rebuild... and what is "switch" string target about exactly ?
<the_pumpkin_man[> Yes, configuration.nix is system-wide
<jeromelanteri> good
joepie91 has quit [Quit: killed]
f0x has quit [Quit: killed]
<{^_^}> [nixpkgs] @Emantor opened pull request #85074 → boot.initrd.luks: remove x86_64/i586 AES modules →
<gchristensen> the_pumpkin_man[: if I want to install some package forever, I put it in environment.systemPackages. if I want some programs for a project I'm working on, I put them in a shell.nix and run `nix-shell`. for example: https://github.com/grahamc/mayday/blob/master/shell.nix
f0x has joined #nixos
<gchristensen> samueldr: I see the "github is sending invalid events" bug is striking {^_^} ... :/
<jeromelanteri> shell.nix ? where is it located ?
linarcx has joined #nixos
morgrimm has quit [Ping timeout: 250 seconds]
<gchristensen> in your roject directory
<jeromelanteri> so it can be everywhere inside $HOME dir
<the_pumpkin_man[> For understanding nixos-rebuild
Guest40360 has joined #nixos
<gchristensen> jeromelanteri: open two terminals. in one, run this command: nix-shell -p python38 in another, run this command: nix-shell -p python37
<jeromelanteri> ok. i see many good manual pages around each command... but i failed to get a wise view of all of them and the "best practice" to learn with.
<awatanabe[m]> a shell.nix is like a virtualenv/conda environment/etc but instead of handling just python libraries you can put anything in it
philr has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @Emantor opened pull request #85075 → [20.03] boot.initrd.luks: remove x86_64/i586 AES modules → https://git.io/Jvj3k
<jeromelanteri> awatanabe[m], ok... i understand better.
<awatanabe[m]> i'm also learning the same stuff right now and yes, it is hard jumping around back and forth between nix nixos nixpkgs :D
<jeromelanteri> concept is between docker contaziner and virtualenv from Python way to do things...
<gchristensen> jeromelanteri: if you clone this project: https://github.com/grahamc/mayday/ and go in to the git checkout, and run `nix-shell`, you will be in a shell with all of thes eprograms: https://github.com/grahamc/mayday/blob/master/shell.nix#L8-L17
<jeromelanteri> wow
<the_pumpkin_man[> jeromelanteri: nix is the package manager, NixOS the operating system and nixpkgs a nix expression collection, think of it as the packages you can install with nix
pbogdan has quit [Ping timeout: 256 seconds]
<jeromelanteri> ok, down to all the tree... there is nix (the only one package manager). This is for me, a great start point.
<awatanabe[m]> nix <-> nixpkgs now makes sense to me... thanks!
<the_pumpkin_man[> And if you read my link above for nixos-rebuild, it expalins you.
<the_pumpkin_man[> For example adding "switch" do >build the new configuration, make it the default configuration for booting, and try to realise the configuration in the running system (e.g., by restarting system services).
<the_pumpkin_man[> * And if you read my link above for nixos-rebuild, it expalins you.
<the_pumpkin_man[> For example adding "switch" do `build the new configuration, make it the default configuration for booting, and try to realise the configuration in the running system (e.g., by restarting system services)`
revtintin has joined #nixos
<jeromelanteri> so nixpkgs is a kind of function call to get metadata around env like variables used by nix
<jeromelanteri> or collection, yes
<gchristensen> nixpkgs is a collection of Nix expressions to build many thousands of programs
<the_pumpkin_man[> Um
<the_pumpkin_man[> That's nixpkgs
<the_pumpkin_man[> Just a directory with lots of nix expressions
<jeromelanteri> switch is then to put rebuild result as default one on next boot (and any other as long as no new switch from nixos-rebuild)
<the_pumpkin_man[> and a nix expression tells Nix how to get the package's binary or how to get the source and build it
<jeromelanteri> ok, fine, i think i get it nice now.
<gchristensen> switch makes that configuration active, right now.
Izorkin has joined #nixos
<the_pumpkin_man[> switch is also to make your changes apply now
<gchristensen> switch also makes it the configuration you will load after you reboot
<the_pumpkin_man[> So for example, if you added some packages and run `nixos-rebuild switch, it will add it
<jeromelanteri> i would ilke, guys, to be sure to not propagate fakes, to redact a text to talk about this who will be my ref for my video to build on that. Would you like to read it when finish and correct what will be wrong ?
<the_pumpkin_man[> But if you `nixos-rebuild build`, then you will not see the package
<jeromelanteri> switch ==> now and by default
<the_pumpkin_man[> Yes
<the_pumpkin_man[> Build => just building it
<the_pumpkin_man[> Test => now but not by default
<gchristensen> jeromelanteri: if you post a link to your video before it is published, I am sure people will review it and give feedback
<jeromelanteri> so without switch ? nixos-rebuild just make change (but not now), after reboot then ?
<the_pumpkin_man[> Boot => not now but by default
<jeromelanteri> gchristensen, video in french language ? i'm not so sure...
<the_pumpkin_man[> I think just `nixos-rebuild` does nothing
o1lo01ol1o has quit [Remote host closed the connection]
Guest40360 has quit [Changing host]
Guest40360 has joined #nixos
Guest40360 has joined #nixos
<gchristensen> jeromelanteri: sure. it won't be me, but there are plenty of french speakers. #nixos-fr has them all in one place :)
<jeromelanteri> i can try to make it as english language, but i scare someone next would like to kill me for my soouth's french accent and bad english knowledges level...
Guest40360 is now known as joepie91
<the_pumpkin_man[> Like me, Im a frecn speaker :)
<the_pumpkin_man[> * Like me, Im a french speaker :)
o1lo01ol1o has joined #nixos
<jeromelanteri> the_pumpkin_man[, ho Jesus !
<gchristensen> perfect!
<dwagenk[m]> comparing builtins.currentSystem to i686-linux vs x86_64-linux?
revtintin has quit [Ping timeout: 258 seconds]
<jeromelanteri> the_pumpkin_man[, ok, so if you can accept, i will PM you when i get this readaction ready (in english first), then i will show you my poor video before to publish.
<gchristensen> the_pumpkin_man[ thanks!
<gchristensen> thanks, jeromelanteri!
<jeromelanteri> thank you guys... very good.
<the_pumpkin_man[> Ok, I will try my best
<gchristensen> we want to help make sure your video is really good, and shows NixOS's unique features well :)
<the_pumpkin_man[> I'm still a newcomer on NixOS, I don't know all the details but the basics
<jeromelanteri> yes, that is the idea.
<jeromelanteri> the_pumpkin_man[, you know much more than me.
<the_pumpkin_man[> Ok good :)
magnetophon has quit [Ping timeout: 240 seconds]
mounty has quit [Ping timeout: 240 seconds]
mounty has joined #nixos
<MichaelRaskin> NixOS is Europe-originated project, and at least a third of Europe can understand French, after all.
<gchristensen> I am the odd one out :(
<the_pumpkin_man[> Oh didn't know that
<gchristensen> also I didn't expect getting in to NixOS would create so much pressure in my life to move to Europe
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/81a6a80436e (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<the_pumpkin_man[> gchristensen: don't worry, there are many non-european contributors to NixOS :p
<gchristensen> :)
<the_pumpkin_man[> That's the good thing with community-based project, it's not for a country, but for all the entire world
<jeromelanteri> MichaelRaskin, wow... i'm not sure. I'm thinking NixOs concept to be so special and in advance that it can also be great for universal users.
<MichaelRaskin> jeromelanteri: I mean just that you can easily get some comments from whoever French-understanding who has time whenever you post a link
magnetophon has joined #nixos
revtintin has joined #nixos
<jeromelanteri> MichaelRaskin, yes, i hope to. I should increase my english speaking also. but i speak in Thai-nglish in Thailand where i stay half of the year, every year. I was thinking to increase my english... but it is more bad to speak English in Thailand than in Frnech country (funny...).
<MichaelRaskin> I am not saying we don't have a lot of people from outside Europe, only that we do have a lot of people from inside Europe. (I, personally, do a ton of silly mistakes in my French, as it is my third language)
<jeromelanteri> yes, i think i get the idea now.
<evertedsphere> it's more like "nix/nixos is far less american-dominated than one unconsciously comes to expect for open-source software projects"
<jeromelanteri> third language... wow... my third language is C++.
<jeromelanteri> English is my... i don't know in fact.
<{^_^}> [nixpkgs] @ryantm merged pull request #85068 → dump1090: 3.7.2 -> 3.8.0 → https://git.io/JvjmR
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/Jvj31
<evertedsphere> i don't even know what my first language is... best way to describe it is some silly 85% english 15% bengali mixture
<evertedsphere> echo !! > #nixos-chat
<evertedsphere> crap it doesnt work that way
<{^_^}> [nixpkgs] @ryantm merged pull request #85061 → etesync-dav: 0.15.0 -> 0.16.0 → https://git.io/JvjtT
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/Jvj3H
<jeromelanteri> :)
<evertedsphere> gchristensen: really enjoyed the zfs post, waiting for the next one
<gchristensen> cool :) posting Monday.
<evertedsphere> is elevator=noop not the default?
magnetophon has quit [Ping timeout: 256 seconds]
<ottidmes> I had to learn English, German, and French, aside from my native Dutch, but I never really used German and French so now I don't even claim to be at beginner level, I just remember bits and pieces. I remember when on vacation in France nobody in the village we were staying could speak English, so they had to get someone's niece that spoke some XD
<{^_^}> [nixpkgs] @ElXreno opened pull request #85076 → chromium: provide chromiumVaapi with VA-API support → https://git.io/Jvj3d
<gchristensen> evertedsphere: it is for nvme drives. the elevator=noop bit is maybe not quite right, I guess I don't know the right way to set it
<bkv> can i once again point out that this is a one line change that doesn't affect any outputs and just fixes an example: https://github.com/NixOS/nixpkgs/pull/84946
<{^_^}> #84946 (by bqv, 1 day ago, open): nixos/nftables: fix typo in ruleset example
morgrimm has joined #nixos
<{^_^}> [nixpkgs] @grahamc merged pull request #84946 → nixos/nftables: fix typo in ruleset example → https://git.io/JvhWr
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/Jvj3A
joepie91 has quit [Quit: killed]
f0x has quit [Quit: killed]
<{^_^}> [nixpkgs] @ryantm merged pull request #85048 → tendermint: 0.32.3 -> 0.32.10 → https://git.io/Jvjf3
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/Jvj3x
<{^_^}> [nixpkgs] @IvarWithoutBones opened pull request #85077 → 1password: 0.7.0 -> 0.9.4 → https://git.io/Jvjse
<{^_^}> [nixpkgs] @ryantm pushed to revert-84876-auto-update/ocaml4.09.1-ctypes « Revert "ocamlPackages.ctypes: 0.15.1 -> 0.17.1" »: https://git.io/JvjsJ
<MichaelRaskin> evertedsphere: we probably still have an Easter-hemisphere majority among the active committers.
<gchristensen> strong agree
<MichaelRaskin> Eastern
bkv has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @eonpatapon opened pull request #85078 → cue: 0.1.0 -> 0.1.1 → https://git.io/JvjsL
f0x has joined #nixos
chagra has quit [Ping timeout: 264 seconds]
bkv has joined #nixos
<bkv> gchristensen: ty!
<bkv> (internet crashed at the best moment)
<gchristensen> :)
<gchristensen> bkv: are you also bqv?
<bkv> ah, yes, this is my alt nick
Guest68792 has joined #nixos
<bkv> apparently
<gchristensen> cool
Guest68792 has joined #nixos
Guest68792 has quit [Changing host]
Guest68792 has joined #nixos
Guest68792 is now known as joepie91
chagra has joined #nixos
ixxie has joined #nixos
<hyper_ch> hi gchristensen
<gchristensen> heyhey
asbachb has joined #nixos
maddo2 is now known as maddo
nicktest has joined #nixos
knupfer has joined #nixos
nicktest has left #nixos [#nixos]
magnetophon has joined #nixos
<siraben> jeromelanteri: are you from Thailand as well?
<{^_^}> [nixpkgs] @marsam opened pull request #85079 → nodejs-10_x: 10.20.0 -> 10.20.1 → https://git.io/JvjGq
<jeromelanteri> siraben, no, i'm french guy. But i love Thailand and be married there and have a life in the wide north country side of Thailand where people are so good mind thinking.
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/5fa2612ca27 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
<jeromelanteri> siraben, are you from Thailand ?
linarcx has quit [Ping timeout: 240 seconds]
<siraben> Ah, I see. Chiang Mai?
<siraben> Yeah, I am.
maxdeviant_test has joined #nixos
<siraben> Heh, definitely not a lot of Thai Nix users, from what I know.
morgrimm has quit [Ping timeout: 256 seconds]
<{^_^}> [nixops-aws] @edolstra pushed to flake « lastModified -> lastModifiedDate »: https://git.io/JvjGl
<dwagenk[m]> it was quite busy here, while I wrote my last question, so here's another try:
<dwagenk[m]> I'm trying to package something, that consists of source code and some prebuild libraries, that it links against. I get it to compile and link against all the dependencies, but it won't find the prebuild libraries. How do I do something like that?
revtintin has quit [Ping timeout: 256 seconds]
<{^_^}> [nixops-hetzner] @edolstra pushed to zfs « lastModified -> lastModifiedDate »: https://git.io/JvjGR
pbogdan has joined #nixos
captjakk has joined #nixos
<dwagenk[m]> and the library I'm trying to add to nixpkgs is here: https://github.com/Ordissimo/scangearmp2
<zfnmxt> My terminal currently looks like this: https://i.imgur.com/fxJ5ao3.png and the issue extends to multiple other applications (e.g. my status bar and dunst). Any idea what's wrong? I've tried a nubmer of different fonts (Terminus, GohuFont, etc) and it happens with all of them...except if I try TTF fonts! Then there's no issue.
<evertedsphere> going off on a limb here: locale issue?
<AmandaC__> fontconfig removed support for bitmap fonts, I believe, if either of those fonts are such.
<{^_^}> [nix] @edolstra merged pull request #3488 → never use /var/folders for TMPDIR on darwin → https://git.io/JvjIW
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/JvjG2
AmandaC__ is now known as AmandaC
<{^_^}> [nixops] @edolstra pushed 2 commits to flake-support: https://git.io/JvjGV
<zfnmxt> AmandaC: I believe they both are!
morgrimm has joined #nixos
superbaloo has quit [Quit: WeeChat 1.6]
<zfnmxt> Oh, looks like fonts.fontconfig.allowBitmaps will fix the issue.
<AmandaC> oh nice
<zfnmxt> Why is it set to 'false' by default? Are bitmap fonts now seen as no-nos?
<monokrome> Does there need to be a specific extra package installed for cstdlib to exist in clagStdenv when using clang++?..
<zfnmxt> The TTF variation of Terminus looks like crap =/
<AmandaC> GNOME removed support for them a year or so ago, then everyone else kinda followed their lead
qrnteen has joined #nixos
<zfnmxt> I see. Well, thanks for solving my issue so quickly. :)
<monokrome> seems like not... wat
<monokrome> makefile was using CC instead of CXX
* monokrome facepalms
<zeorin53> Hi, I'm trying to apply patches to a package and I'm getting the following error: `cannot coerce a set to a string` when trying to apply some patches to libXft: https://pastebin.com/wk5msnM9
<zeorin53> Context: I'm trying to build a version of suckless's `st` that has support for colored emoji and some other patches. The color emoji support requires a bugfix in libXft that hasn't been merged yet.
fenedor has joined #nixos
vidbina has quit [Ping timeout: 256 seconds]
fendor has quit [Ping timeout: 240 seconds]
linarcx has joined #nixos
<b42> zeorin53: try wrapping fetchurl { ... } in parentheses
Maxdaman1us has joined #nixos
reallymemorable has joined #nixos
Maxdamantus has quit [Ping timeout: 256 seconds]
<immae> there is the fetchpatch function too which does a bit of smart things instead of fetchurl
<zeorin53> That works well
<zeorin53> N00b gotcha
sigmundv_ has joined #nixos
shweta has joined #nixos
<shweta> is there a way to install nix on yosemite 10.10.5. nix installation says this old mac version is not supported.
<{^_^}> [nixops] @edolstra pushed to flake-support « Nixpkgs overlay: Don't use 'pkgs' »: https://git.io/JvjZo
<{^_^}> [nixpkgs] @primeos pushed to master « androidStudioPackages.{dev,canary}: 4.1.0.4 -> 4.1.0.5 »: https://git.io/JvjZi
<srxl[m]> I have a derivation for elixir-ls that I've got going in an overlay. Since it's a BEAM development tool, one would think it shoud go in `beam-modules`, however it uses none of the existing BEAM tooling since I wasn't able to build it using it. If I wanted to upstream this into nixpkgs, where would it go?
abathur has joined #nixos
<{^_^}> [nixos-org-configurations] @edolstra pushed 6 commits to master: https://git.io/JvjZM
ATuin has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @primeos merged pull request #85047 → slop: 7.4 -> 7.5 → https://git.io/JvjvM
<{^_^}> [nixpkgs] @primeos pushed commit from @r-ryantm to master « slop: 7.4 -> 7.5 (#85047) »: https://git.io/JvjZS
magnetophon has quit [Ping timeout: 250 seconds]
maxdeviant_test has quit [Remote host closed the connection]
zaeph1 has joined #nixos
zaeph has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @primeos pushed to master « maim: 5.5.3 -> 5.6.3 »: https://git.io/JvjZj
magnetophon has joined #nixos
<{^_^}> [nixpkgs] @bhipple merged pull request #85078 → cue: 0.1.0 -> 0.1.1 → https://git.io/JvjsL
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/Jvjnf
dadada[m] has joined #nixos
<{^_^}> [nixpkgs] @bhipple merged pull request #85077 → 1password: 0.7.0 -> 0.9.4 → https://git.io/Jvjse
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JvjnJ
<{^_^}> [nixpkgs] @marsam merged pull request #85079 → nodejs-10_x: 10.20.0 -> 10.20.1 → https://git.io/JvjGq
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvjnT
<{^_^}> [nixpkgs] @bhipple merged pull request #85060 → chiaki: 1.0.3 -> 1.1.3 → https://git.io/JvjLX
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/Jvjnt
bhipple has joined #nixos
shweta has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @bhipple merged pull request #85069 → ginac: 1.7.8 -> 1.7.9 → https://git.io/JvjYb
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/Jvjn3
chloekek has joined #nixos
<ixxie> clever - are you around?
jorge-jbs[m] is now known as jorge-jbs
<monokrome> Shouldn't `nix-shell --run make` run my Makefile? https://builds.sr.ht/~monokrome/job/186067#task-compile-2
* monokrome scratches her head
zaeph1 is now known as zaeph
<monokrome> Seems like it just installs dependencies and exists
morgrimm has quit [Ping timeout: 240 seconds]
<zeorin53> Nix n00b here, is there a way to run a quick `sed` on a file or string in Nix?
morgrimm has joined #nixos
<clever> ixxie: yep
<{^_^}> [nixpkgs] @erictapen opened pull request #85083 → lightworks: fix meta → https://git.io/Jvjnu
<monokrome> I would just use nix-build but it runs scons because a dependency requires it, so I thought `nix-shell --run make` would work >.<
zupo has quit [Quit: Textual IRC Client: www.textualapp.com]
ixxie has quit [Quit: Lost terminal]
ixxie has joined #nixos
<ixxie> clever: tried out the virtualbox; here are the kexec attempt logs: https://pastebin.com/WeF4mLXj (recall the config I used https://pastebin.com/QbTuLHeV and modified kexec.nix https://pastebin.com/Bfh0gMhC)
<jared-w> what about nix-shell --command make? monokrome
zupo has joined #nixos
<{^_^}> [nixpkgs] @primeos opened pull request #85084 → android-studio: Fix the license (unfree) → https://git.io/Jvjna
<clever> ixxie: kexec_load failed: Invalid argument
<clever> ixxie: how much ram does the machine have, how big was the initrd?
<monokrome> jared-w: I tried that as well, but same result as `--run`. I think that `--command` and `--run` do the same thing if not in an interactive console, I guess?
<monokrome> The repository has a makefile, though. It just never runs: https://git.sr.ht/~monokrome/IMPACT/tree
<monokrome> Ooh, `--run` runs an attribute
<monokrome> but --command didn't work either
<clever> monokrome: what happens if you just `nix-shell` and then `make` seperately?
<ixxie> clever: donno how big initrd was, but the VM had only a gig of memory so I quadrupled it and tried again; now it seems that error isn't appearing but the kexec isn't working somehow
<ixxie> clever: holdon, ill paste you the logs
<monokrome> if I do it on my local machine then it works, but I don't know how to do that via this build script
never_released_ has joined #nixos
<monokrome> nix-build may be ideal, but it runs scons
<clever> monokrome: scons should work in nix-build too
never_released has quit [Ping timeout: 256 seconds]
bhipple has quit [Ping timeout: 264 seconds]
<monokrome> the problem w/ nix-build is that a dependency needs scons and my parent project uses Makefile, but installing scons in `buildInputs` has caused nix-build to try to run scons which fails
<clever> monokrome: one minute
<clever> > scons.meta.position
<{^_^}> "/var/lib/nixbot/nixpkgs/master/repo/pkgs/development/tools/build-managers/scons/common.nix:19"
<monokrome> so then I tried `nix-shell --command make` which doesn't run make, just instapps deps
<monokrome> ok sure - thank you =^.^=
bhipple has joined #nixos
fusion809 has quit [Quit: Leaving]
<clever> monokrome: when you add scons to the buildInputs, this shell code gets ran, which will overwrite the buildPhase and installPhase variables
<clever> and there is no off switch for the buildPhase one...
<clever> monokrome: try `buildPhase = "buildPhase"; dontUseSconsInstall = true;` ?
<monokrome> Is there another option than `buildInputs` I should use that won't change that?
<clever> monokrome: not really
<monokrome> hmm ok
chloekek has quit [Ping timeout: 256 seconds]
magnetophon has quit [Ping timeout: 258 seconds]
<monokrome> This is meant to be a tree?
<monokrome> s/tree/string/ lol
<monokrome> was reading the URL while typing and mixed up /tree/ and string rofl
<monokrome> brains are weird =^.^=
zeta_0 has joined #nixos
<clever> monokrome: make is part of the stdenv, dont need it on line 13
<monokrome> clever: Weird, that one definitely skipped scons but says "attribute 'make' missing"
<clever> > pkgs.make
<{^_^}> attribute 'make' missing, at (string):296:1
<clever> monokrome: because make isnt called make!
<clever> > pkgs.gnumake
<monokrome> that package doesn't exist, I tried to install it
<{^_^}> "<derivation /nix/store/ybsrm0flpl5ahkh9spkp4ybhyc8rbx5x-gnumake-4.2.1.drv>"
<monokrome> I never wrote "make" anywhere afaik
<clever> but make is part of the stdenv, so you dont need it in the inputs
<monokrome> maybe a bug in nix-build?
<clever> monokrome: what is line 13 of the default.nix?
<monokrome> oooh I accidentally just commited that
<monokrome> sorry >.,
<monokrome> I was testing
abathur has quit [Ping timeout: 256 seconds]
lordcirth has quit [Remote host closed the connection]
<monokrome> claudiii: It worked =^.^=
<monokrome> thankk you
<monokrome> How did you figure that out? I feel like I'd have never figured out "buildStep = 'buildStep';"
zupo has quit [Quit: Textual IRC Client: www.textualapp.com]
<clever> the setup hook for scons will set buildPhase (the bash variable) to sconsBuildPhase (the bash function) if it isnt set
abathur has joined #nixos
<clever> buildPhase = "buildPhase"; pre-sets the variable to contain the name of a function
chloekek has joined #nixos
<ixxie> clever: I found an alternative command for initiating the systemd reboot is systemctl start kexec.target but this also fails with this error in the logs: https://pastebin.com/sdHdD97B
zupo has joined #nixos
<clever> ixxie: are there any interesting logs on the display in virtualbox?
<monokrome> clever: ah, makes sense... >.<
<monokrome> omg I built it and it's failing locally but worked on the build server
<monokrome> lol
<clever> monokrome: any files leftover in the bin dir?
<monokrome> oooh I didn't commit the cxx file yet, that's why it didn't fail =^.^=
<monokrome> clever: there is no bin dir any more :D
<ixxie> clever: nothing too exciting, it said 'Failed to start Reboot via kexec` `See systemctl status systemd-kexec.service` and `Dependency failed for Reboot via kexec`
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #85085 → nixos/doc: Document breaking change to Haskell dev shells → https://git.io/JvjnN
<hyper_ch> you broke clever's kexec? oO
<clever> ixxie: anything in the journals after it boots back up?
<{^_^}> [nixpkgs] @bhipple opened pull request #85086 → discord-{ptb,canary}: update to latest versions and fixup updateScript → https://git.io/JvjnA
<clever> hyper_ch: trying to make it work with `systemctl kexec`
<hyper_ch> :)
chloekek has quit [Ping timeout: 256 seconds]
<ixxie> clever: only the ESP partition thingy I shared before
<clever> ixxie: not sure then
asbachb has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @bhipple merged pull request #85072 → kodiPlugins.vfs-libarchive: 1.0.6 -> 1.0.7 → https://git.io/JvjO8
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/Jvjce
<clever> ixxie: i believe systemd will run that script when its done shutting down, and wants to "kexec" the machine, and this part will actually load the kernel, but line 21 will detect one already loaded and skip
work_ has joined #nixos
<clever> Applications wanting to reboot the system should not start this unit directly, but should instead execute systemctl kexec (possibly with the --no-block option) or call systemd(1)'s org.freedesktop.systemd1.Manager.KExec D-Bus method directly.
<clever> ixxie: from `systemd.special`
<ixxie> clever: so it should have been systemctl kexec... hmm... but running that effective seemed to do nothing
<{^_^}> [nixpkgs] @hedning merged pull request #84792 → Gnome shell 3.36.1 → https://git.io/JvpTj
<{^_^}> [nixpkgs] @hedning pushed 5 commits to master: https://git.io/Jvjcf
<{^_^}> [nixpkgs] @bhipple merged pull request #85071 → runc: fix manpages → https://git.io/JvjOZ
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JvjcJ
<ixxie> clever: except complain about the ESP partition
<clever> ixxie: what does the kexec-prepare.service look like on ubuntu?
<jeromelanteri> Do you have in mind a list of words which can be designed by a "NixOS specific lexical words concepts" to know about ? (like: [generation, store, profile ])
<jeromelanteri> if you get some, feel free to post thess words as part of the answer
jgeerds has joined #nixos
<jeromelanteri> simpson, perfect, thank you !
<ixxie> clever: how do I show it?
<clever> ixxie: `systemctl cat kexec.target` and related cmds
zupo has quit [Quit: Textual IRC Client: www.textualapp.com]
<jeromelanteri> simpson, good, but not perfect in fact. There is some leakage. (the one i include in a list as "generation", "profile", and maybe some other.
<{^_^}> [nixpkgs] @Ma27 merged pull request #84975 → polyphone: init at 2.2.0 → https://git.io/Jvhz7
<{^_^}> [nixpkgs] @Ma27 pushed 3 commits to master: https://git.io/Jvjct
<Orbstheorem> Hi! I think I remember something about a special string that nix replaces with a unique string during build and will scan for that string after building the derivation and replace it with the derivation path/
<ixxie> clever: not sure what are the related commands I should search for..
<clever> ixxie: its prepare-kexec
zupo has joined #nixos
<Orbstheorem> Does it exist and if so, what's its name?
<ixxie> clever: doesn't find that...
<clever> ixxie: prepare-kexec.service?
<clever> Orbstheorem: builtins.placeholder
<ixxie> clever: tried that too, no luck
<clever> ixxie: what about the /lib/systemd/system/ dir, anything in there?
<Orbstheorem> clever: Yep, that's it, thanks ^^
<{^_^}> [nixpkgs] @maxeaubrey opened pull request #85087 → worldofgoo: 1.41 -> 1.53 → https://git.io/JvjcZ
morgrimm has quit [Ping timeout: 240 seconds]
<ixxie> clever: kexec.target, kexec.target.wants, plymouth-kexec.service. systemd-kexec.service
<clever> ixxie: and what are the contents of each?
Darkmatter66_ has joined #nixos
evertedsphere has quit [Ping timeout: 265 seconds]
<clever> ixxie: not sure then
<ixxie> clever: this thread may be relevant https://github.com/systemd/systemd/issues/7730 but I don't know what to make of it exactly
<{^_^}> systemd/systemd#7730 (by enihcam, 2 years ago, closed): MBR kexec failed due to "Cannot find the ESP partition mount point"
Darkmatter66 has quit [Ping timeout: 256 seconds]
<hyper_ch> clever: why use systemctl and not the "old" way?
evertedsphere has joined #nixos
ddellacosta has joined #nixos
<clever> hyper_ch: because ssh hangs when you `kexec -e` and there is no easy way to script around it
<hyper_ch> I see
<ixxie> hyper_ch: trying to make a script spin up NixOS VMs in Hetzner
<clever> ixxie: this does accurately describe your problem
<ixxie> clever: yes, systemd complains about a missing ESP partition
<clever> ixxie: an older version of systemd didnt
<hyper_ch> ixxie: although I have 2 server at hetzner, neither runs nixos... only tried kexec on kimsufi and ohv vps as well as online.net
freeman42x has joined #nixos
<clever> ixxie: but it doesnt look like they really found a solution
<clever> ixxie: systemd fails once more, lol
<ixxie> hyper_ch: kexec as such isn't the problem; scripting is the hard part
<hyper_ch> :)
<clever> ixxie: the best i can think of is to have a program reading the stdout of ssh, and killing the process after a short delay
knupfer1 has joined #nixos
morgrimm has joined #nixos
knupfer has quit [Ping timeout: 260 seconds]
knupfer1 is now known as knupfer
<ixxie> clever: the ssh process in the deployment machine you mean?
<clever> ixxie: yeah
<ixxie> clever: I'll give that a go :)
<{^_^}> [nixpkgs] @Ma27 merged pull request #84988 → samba: 4.12.0 -> 4.12.1 → https://git.io/Jvh67
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to staging: https://git.io/JvjcD
knupfer has quit [Quit: knupfer]
knupfer1 has joined #nixos
knupfer1 is now known as knupfer
<ornxka> hey
<ornxka> whats that boot flag that lets you break into a shell when the boot init reaches a certain stage
<nschoe_> Hey, how can I browse the nixos-options for version 20.03? https://nixos.org/nixos/options.html# shows options for 19.09 only
<nschoe_> I found this: https://releases.nixos.org/nixos/20.03/nixos-20.03beta1155.29eddfc36d7/options.json.br but it doesn´t look like it´s meanst to be browsed ^^
<clever> nschoe_: its compressed
<s1341> Mic92: thanks!
<clever> nschoe_: i think with brottli
<nschoe_> clever, yes indeed. Is there another place where I can browser options available in 2-.03?
<nschoe_> clever, nah it´s fine: Firefox seems to decompress it fine. It´s just not as convenient at the normal page
<clever> nschoe_: i think the simplest is to just boot 20.03 and run `man configuration.nix`
<ornxka> ah debug1devices i think it is
jgeerds has quit [Ping timeout: 260 seconds]
cole-h has joined #nixos
<nschoe_> clever, I´m running 20.03 now. Did not know the options were in the man, but okay thanks!
rogue_koder has joined #nixos
<nschoe_> Oh I´ve just tested it, it´s very convenient. Perfect, thanks
<nschoe_> (This must be one hell of a big man page :D)
shibboleth has joined #nixos
<morgrimm> What would be the best way to apply an override that sets args for a package? For example, the st derivation takes patches/extraLibs as args. Right now I'm overriding patches with an overlay, but that's the attr and not the arg
<clever> nschoe_: 97434 lines long
justanotheruser has quit [Ping timeout: 246 seconds]
<nschoe_> That... must be a record :D
<clever> morgrimm: .override is for the args on the 1st line of the file, .overrideAttrs is for the stuff passed to stdenv.mkDerivation
cole-h has quit [Client Quit]
cole-h has joined #nixos
<morgrimm> Ah, perfect, gotcha. Thanks clever
<__monty__> clever: Do you know if the nix installer should just work in fish?
<clever> __monty__: i believe it has a #!/bin/bash at the top, so it will force itself to run under bash
<__monty__> Yeah but the PATH setup and stuff isn't done, right?
rogue_koder has quit [Ping timeout: 260 seconds]
<clever> __monty__: i think it has most of the needed deps baked into it
magnetophon has joined #nixos
<__monty__> Yeah but nix-env doesn't end up on the user's PATH.
<__monty__> That's the only problem.
codygman has joined #nixos
<clever> __monty__: oh, that, it modifies the .bash_profile or something, and you need to copy it to the .fishrc
<clever> __monty__: check `ls -ltrha`
<ornxka> is there some way to limit max tries in luks via grub kernel flags
<ornxka> i am trying to debug why i cant decrypt my disk so im trying to get a shell, but debug1 gives me a shell before my usb keyboard is vailable and debug1devices wont give me a shell until after i attempt to enter my luks password, which keeps asking me indefinitely and doesnt give up and give me the shell
<ashkitten> clever: my configuration.nix manpage is 127702 lines :)
<bkv> ashkitten: are you kidding
<bkv> how
<clever> ornxka: you need line ~200 to get the drivers for the usb keyboard
<ashkitten> not a bit
<bkv> oh, i neglected to read 'manpage'
<srk> ornxka: full disk encryption?
<{^_^}> [nixpkgs] @alexanderwatanabe opened pull request #85089 → CUDA support → https://git.io/JvjCw
<bkv> now it makes a lot more sense
<ashkitten> lol
<ornxka> srk: yes
<srk> ornxka: possibly luks (v1/v2) header incompatibility https://github.com/NixOS/nixpkgs/issues/65375
<{^_^}> #65375 (by deliciouslytyped, 37 weeks ago, open): GRUB silently generates wrong config (cryptsetup default is now LUKS2)
<clever> ornxka: and the preLVMCommands is where luks gets inserted
<clever> ornxka: if your luks is bare on a partition, your basically screwed, but if the luks is inside an lvm array, then debug1devices will work
codygman has quit [Ping timeout: 256 seconds]
<ornxka> yeah i dont use lvm
<ornxka> shoot
<clever> ornxka: but you can always clone nixpkgs at the same rev your currently using, edit stage-1-init.sh to make things simpler (add fail in a few places) and build from that
<ornxka> srk: ah ill have a look at that
domogled has quit [Quit: domogled]
<srk> if you installed recently it's quite possible
codygman has joined #nixos
domogled has joined #nixos
<ornxka> i did, and i do use luks2
<srk> yeah, thats exactly it ^^
<ashkitten> i don't think i've really used `man configuration.nix` tbh, only `nixos-config`
<ornxka> thats kind of strange though, because i didnt know grub knew about luks
<ornxka> i thought that grub simply ran the initramfs, which has cryptsetup in it that nixos copies over from the host
<clever> ornxka: the grub stuff is only for when /boot is encrypted
<ornxka> ah yeah
<ornxka> i dont have encrypted /boot
<bkv> hey, can i make nix-shell use fish?
justanotheruser has joined #nixos
<cole-h> `nix-shell -p package --run fish`?
<clever> bkv: but youll loose all of the phase functions
erictapen has joined #nixos
<cole-h> clever: Did the GDK_BACKEND stuff fix your issue with the file browser?
<etu> bkv: I have a fish abbrev defined like this: abbr -a -U -- nsh 'nix-shell --run fish -p'
<clever> cole-h: havent tried it yet
<bkv> hmm
<etu> bkv: Then I type "nsh " and can type package names
<clever> cole-h: let me see...
<bkv> yeah, i might do similar
<bkv> doesn't fish inherit functions, on some level?
<clever> [clever@amd-nixos:~]$ GDK_BACKEND=x11 Discord
<clever> bkv: i dont think functions can be inherited like that, for security reasons, and fish has a different syntax
<bkv> hmm, ok
<cole-h> The latter is the main reason
<bkv> well, there's fenv
<bkv> which basically makes fish completely compatible
<clever> cole-h: nope, didnt help, it resets back to recent every time i open the dialog
<cole-h> clever: RIP.
<cole-h> It was too easy...
chpatrick has joined #nixos
<clever> (Discord:6354): dconf-WARNING **: 14:03:40.905: failed to commit changes to dconf: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.dconf was not provided by any .service files
codygman has quit [Ping timeout: 265 seconds]
codygman has joined #nixos
<clever> bkv: thats for system wide env vars, not nix-shell
<bkv> that's not my point
<bkv> look at the lines around it
<bkv> it imports them using fenv
<bkv> i.e. with full bash compatibility
morgrimm has quit [Ping timeout: 240 seconds]
<bkv> so similar can be done for shell env stuff
<bkv> i mean look at line 132
morgrimm has joined #nixos
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<ornxka> can anyone think of a reason why cryptsetup would ask for a password and then fail even if you had given it the correct password
<atemu12[m]> Wrong device path?
<ornxka> the header in question works on other machines, and on this machine when not booting
<immae> ornxka: are your sure you gave the right password? could it be a keyboard layout problem? (if you type it on boot for instance)
<ornxka> hm, thats a good question
<ornxka> i guess i can try another keyboard
knupfer has quit [Client Quit]
morgrimm has quit [Ping timeout: 240 seconds]
knupfer has joined #nixos
<immae> another keyboard would not be the solutoin, I was more thinking of a special layout
<linarcx> Hi. i'm developing a vala-gtk based app on void-linux using nix pacakge manager. But can't see the icons on the created window.
<immae> (like azerty instead of qwerty of things like that)
<ornxka> ah, i only use qwerty
<immae> ok
<immae> you may try another keyboard, but I suspect it won’t solve anything
<ornxka> one thing is, my setup is that i run boot.initrd.preLVMCommands = pkgs.lib.mkBefore "cat ${cfg.header} > /dev/ram0 ; cat ${cfg.image} > /dev/ram1;"; and then i set luks.devices to ram0 and ram1 for header and image respectively
<ornxka> since for reasons beyond my comprehension, cryptsetup during boot only operates on block devices and not regular files
<ornxka> (or it did when i initially set up that script)
<{^_^}> [nixpkgs] @tobim closed pull request #76644 → nixUnstable, nixFlakes: update to current → https://git.io/JeN9B
<immae> that’s outside of my competences sorry
<ornxka> i thought that maybe ramdisk_size was too small but i set it to well over the size of both the header and the image
<ornxka> the only thing i can think of is that my code is somehow not being run at the right time (but then, youd get an error when cryptsetup didnt find a proper header in ram0...)
<atemu12[m]> ornxka: Make sure you set the LUKS devices to /dev/ram0, not ram0
<atemu12[m]> ornxka: Happened to me once
<ornxka> :p
<ornxka> this exact script runs on the machine i am currently using
<ornxka> which is of course working
<cole-h> linarcx: You might be missing a path in XDG_DATA_DIRS.
<cole-h> `XDG_DATA_DIRS=$XDG_DATA_DIRS${XDG_DATA_DIRS:+:}$HOME/.nix-profile/share` might clear that up.
<linarcx> cole-h: Let me try it.
morgrimm has joined #nixos
cosimone has joined #nixos
<vika_nezrimaya> Time for another dumb Nix question! How to make runCommand a fixed-output derivation that is able to access a network? :3
cjpbirkbeck has joined #nixos
<bkv> that sounds like an astonishingly impure idea
<clever> vika_nezrimaya: just add an outputHash to it
<bkv> what are you up to :D
morr_ is now known as morr
chloekek has joined #nixos
<cole-h> linarcx: I can't do anything with just a log, and none of the files you're trying to use/build.
<vika_nezrimaya> clever: do I need to set outputHashAlgo or Nix will automatically determine the hash type?
<vika_nezrimaya> I'm using sha256
<linarcx> cole-h: My repo is in reddit post. there is shell.nix at root of project.
<clever> vika_nezrimaya: it will only auto-detect the hash if you have a hash name at the start of the hash, like "sha256-something"
<peelz> can I do regex string substitution in nix?
knupfer has quit [Quit: knupfer]
<clever> vika_nezrimaya: and you also need a outputHashMode
<cole-h> linarcx: But it's not updated with whatever changes you just made
knupfer has joined #nixos
<vika_nezrimaya> it will be "flat" since I'm downloading an image
<clever> bkv: and its still pure, if you dont meet the hash you claimed you where going to produce, the build fails
<Cadey> i'm trying to add the nur to my system and i can't figure out where `config.nixpkgs.config` goes to
<bkv> clever: that ignores the state created by network access
<{^_^}> [nixpkgs] @jonringer merged pull request #84928 → fluidasserts: mark broken → https://git.io/JvhO7
<{^_^}> [nixpkgs] @jonringer pushed to master « fluidasserts: mark broken »: https://git.io/JvjWq
<bkv> "RealWorld", as haskell would put it
<immae> bkv: is the hash corresponds, then you don’t care that you needed network access to generate it
knupfer has quit [Client Quit]
<immae> it’s not equivalent to IO in haskell :)
<{^_^}> [nixpkgs] @Ma27 merged pull request #85089 → CUDA support → https://git.io/JvjCw
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JvjWY
knupfer has joined #nixos
<bkv> it could introduce e.g. non reproducibility, though
<bkv> i could build something, then build it again and it fails
<bkv> can't guarantee idempotency anymore
<clever> bkv: yeah, you cant control the side-effects, only that $out has a given hash when its done
<immae> it could, but when it succeeds you know it’s the correct one
<bkv> :p
<clever> bkv: and the sandbox restricts where you can write to, so state can only persist on the network
<bkv> ya
<cole-h> linarcx: You should really read the Nix pills...
<bkv> clever: by the way, if i did want to change the shell nix-shell uses, how would i?
<linarcx> cole-h: Fixed!
<linarcx> thanks.
<bkv> wanna look into making it work properly if it doesn't already
bkv is now known as bqv
<cole-h> btw, I meant to put that in front of your `nix-shell` invocation, not in your `shell.nix`.
<clever> bkv: you would have to modify the nix-shell source, and possibly rewrite every single nix expression in nixpkgs
<atemu12[m]> Is it possible to update an attrset with the attrset returned by a function? Nix says "value is a function while a set was expected" when I try to do `let func = _: {}; in {} // func`
<linarcx> Hmm..
<clever> atemu12[m]: you need to run the function first, and get the return value
<linarcx> I put `export XDG_DATA_DIRS=$HOME/.nix-profile/share:/usr/local/share:/usr/share` inside shell.nix(shellHook). and now it's working like a charm.
<atemu12[m]> clever: How do I do that?
<clever> atemu12[m]: you could do `foo: {} // (func foo)`
<clever> atemu12[m]: so you return a function, that will then run func, and then merge
<Cadey> the NUR is broken for me, i have this in one of my configuration nix files: https://clbin.com/NtmgW but it's not letting me `nix-env -iA nur.repos.xe.ii`
<bqv> oh hey, someone already did it for zsh
<bqv> > pkgs.zsh-nix-shell
<{^_^}> "<derivation /nix/store/y8q14mc52y79lharkkz72zy31n0xdb6j-zsh-nix-shell-unstable-2019-12-20.drv>"
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> > pkgs.zsh-nix-shell.meta.position
<{^_^}> "/var/lib/nixbot/nixpkgs/master/repo/pkgs/shells/zsh/zsh-nix-shell/default.nix:23"
<clever> 10 src = fetchFromGitHub {
<pikajude> wtf, there's a zsh nix shell?
<clever> 11 owner = "chisui";
<clever> 12 repo = "zsh-nix-shell";
<bqv> > pkgs.any-nix-shell
<{^_^}> "<derivation /nix/store/017hdh8zc49w39xqnlmg1ia5ss1c3rvf-any-nix-shell-1.1.0.drv>"
<bqv> this too
<pikajude> wow, amazing
jorge-jbs has quit [Quit: authenticating]
<pikajude> oh it's a ohmyzsh plugin, nvm
<clever> > pkgs.any-nix-shell.src.urls
jorge-jbs has joined #nixos
<bqv> yeah, it seems bizarre to me that you wouldn't be able to make them compatible
<peelz> the zsh parameters differ from bash, that's why
<bqv> obviously, but zsh/fish can know about that
<vika_nezrimaya> great, now I have a Nix-based Reddit wallpaper downloader that outputs the image based on Reddit post URL...
Darkmatter66 has joined #nixos
<peelz> can I do regex string substitution in nix?
<srk> peelz: yes, builtins.match for example
Darkmatter66_ has quit [Ping timeout: 264 seconds]
bukkitgerman8608 has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @luc65r opened pull request #85091 → deezloader-remix: init at 4.3.0 → https://git.io/JvjWK
<peelz> srk: ahh! no PCRE? I'm not too familiar with POSIX ERE
<{^_^}> [nixpkgs] @ryantm merged pull request #85086 → discord-{ptb,canary}: update to latest versions and fixup updateScript → https://git.io/JvjnA
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JvjW1
<ornxka> how do i extract nixos initrd
<ornxka> cpio --extract --make-directories --no-absolute-filenames --unconditional this gives me a tree of files substantially smaller than the original initrd
<srk> peelz: no :(
<clever> ornxka: [clever@amd-nixos:/tmp/t2]$ cat /run/current-system/initrd | gunzip | cpio -i
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<ornxka> hm, it says its not a gzip
klntsky has quit [Remote host closed the connection]
<clever> ornxka: what does file say?
<ornxka> ASCII cpio archive (SVR4 with no CRC)
<clever> ornxka: where did the file come from?
<ornxka> its in /boot
<ornxka> or, the /boot of the system i just installed nixos to
klntsky has joined #nixos
<clever> ornxka: what is the filename?
<ornxka> /mnt/boot/kernels/vcvl19lq7lw0y81d7m44vp549ak39y1c-initrd-linux-5.5.9-initrd
<ornxka> where /mnt/boot is the mounted /boot filesystem
<Cadey> how do i fix error: NUR import call didn't receive a pkgs argument, but the evaluation of NUR's xe repository requires it.?
<atemu12[m]> clever: That evaluates to a lambda but I can't do anything with it. As soon as I try to evaluate a attribute of the merged attrset, I get the same error (though at a different position).
<clever> ornxka: it might be that you have 2 initrd's concated together, one uncompressed, one compressed
<ornxka> in grub.cfg it has as well initrd ($drive1)//kernels/vcvl19lq7lw0y81d7m44vp549ak39y1c-initrd-linux-5.5.9-initrd
<ornxka> ahhh
<ornxka> i guess i do need binwalk for this
<clever> ornxka: linux can deal with the concating, but its tricky, since you have to parse it, and then re-parse with gunzip at an offset
<clever> ornxka: yeah, binwalk is one good solution
pbogdan has quit [Ping timeout: 240 seconds]
<ornxka> lol i try to install python3.pkgs.binwalk and it pulls in freaking wayland
<bqv> lol
zupo has joined #nixos
<bqv> Cadey: have you tried providing a pkgs argument? :p
<Cadey> bqv: here is my ~/.config/nixpkgs/config.nix where I provide that pkgs argument: https://clbin.com/K6rye
<Cadey> the weird part is that it works with `nix-shell -p` but not `nix-env -iA`
<bqv> is that the right syntax for packageOverrides?
<Cadey> i'm assuming it is given https://github.com/nix-community/NUR has that
<bqv> huh, yeah.
<bqv> does it work for nix-env -i
<bqv> without the A
<Cadey> for `nix-env -i nur.repos.xe.ii`: `error: selector 'nur.repos.xe.ii' matches no derivations`
<nschoe_> Hey, quick question: I´ve added an image (wallpaper for lightdm greeter) to the nix store with `nix-store --add image.jpg`. It gave me the path. Perfect. But then I ran nix-collect-garbage --dry-run and it returned nothing: why doesn it list my newly-added file since it´s not used anywhere?
jb55 has quit [Remote host closed the connection]
jb55 has joined #nixos
nikita` has left #nixos [#nixos]
<{^_^}> [nixpkgs] @bhipple merged pull request #85005 → hdapsgl: 0.5.0 -> 0.7.0 → https://git.io/JvhDK
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JvjlJ
<{^_^}> [nixpkgs] @bhipple merged pull request #85025 → libinsane: 1.0.3 -> 1.0.4 → https://git.io/JvhdT
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JvjlI
<Cadey> bqv: no idea?
bukkitgerman8608 has joined #nixos
est31 has quit [Remote host closed the connection]
est31 has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #80910 → rainloop: 1.13.0 -> 1.14.0 → https://git.io/Jv0bE
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JvjlY
morgrimm has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @bhipple merged pull request #85063 → fasm: 1.73.22 -> 1.73.23 → https://git.io/JvjtX
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JvjlG
linarcx has quit [Quit: WeeChat 2.8]
<atemu12[m]> clever: I found out what's wrong, if you call a function without arguments it evaluates to a lambda, not an attrset. I wonder why Nix cares about the missing argument though because it isn't used and Nix is lazy
alexherbo2 has joined #nixos
drakonis has joined #nixos
<atemu12[m]> `let func = x: {}; in {} // func ""` works as expected
<{^_^}> [nixpkgs] @bhipple merged pull request #85052 → bslizr: 1.2.4 -> 1.2.6 → https://git.io/JvjTi
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/Jvjll
waleee-cl has joined #nixos
<{^_^}> [nixpkgs] @bhipple merged pull request #85083 → lightworks: fix meta → https://git.io/Jvjnu
<{^_^}> [nixpkgs] @bhipple pushed commit from @erictapen to master « lightworks: fix meta »: https://git.io/Jvjl8
oida has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @bhipple merged pull request #85056 → cvs_fast_export: 1.51 -> 1.53 → https://git.io/JvjLY
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/Jvjla
<{^_^}> [nixpkgs] @andir merged pull request #84591 → [20.03] firefox: 74.0.1 -> 75.0 and releated updates → https://git.io/JvArI
<{^_^}> [nixpkgs] @andir pushed 8 commits to release-20.03: https://git.io/Jvjlw
dsg has joined #nixos
cjpbirkbeck has quit [Quit: cjpbirkbeck]
cjpbirkbeck has joined #nixos
dingenskirchen has quit [Read error: Connection reset by peer]
dingenskirchen1 has joined #nixos
<pie_> joepie91: for your consideration https://bpaste.net/BVSA
Reisen has joined #nixos
dingenskirchen1 is now known as dingenskirchen
<{^_^}> [nixpkgs] @globin opened pull request #85092 → prometheus: use runCommandNoCCLocal for config gen → https://git.io/JvjlM
<Reisen> Quick question, I'm not sure I fully understand expressions or how nix-env works with them. I managed to install Agda with `nixpkgs -iA nixpkgs.haskellPackages.Agda`, but not `haskellPackages.Agda` or even `Agda`, if I query with `nix-env -qa '.*Agda.*`, i can't find it there either, but `nix-env -q` lists it installed as `Agda-2.6.1`
<Reisen> I've been running into this a lot lately, where project instructions don't have a specific enough expression to install until I hunt down the full path
<Reisen> What am I misunderstanding?
<pie_> example invocation: https://bpaste.net/YHHA
morgrimm has joined #nixos
pkmxtw[m] has joined #nixos
oida has joined #nixos
magnetophon has quit [Remote host closed the connection]
ATuin has joined #nixos
<Reisen> Not sure if this helps: https://bpaste.net/V5NQ -- am I wrong to be confused?
morgrimm has quit [Ping timeout: 256 seconds]
<joepie91> pie_: saved for later perusal :)
<joepie91> (not much mental bandwidth atm)
dsg has quit [Quit: leaving]
dsg has joined #nixos
noudle has joined #nixos
<pie_> ah hell stuff gets screwy when you start passing target
<bqv> Cadey: sorry, had a call
<bqv> but yes, no idea
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
dsg has quit [Client Quit]
dsg has joined #nixos
scheming_around has joined #nixos
<{^_^}> [nixpkgs] @tadfisher opened pull request #85093 → plata-theme: 0.9.3 -> 0.9.7 → https://git.io/Jvj8L
<scheming_around> It looks like gcc on macos doesn't have access to the AppKit.h library
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cjpbirkbeck has quit [Quit: cjpbirkbeck]
zeorin53 has quit [Remote host closed the connection]
tarruda1 has quit [Quit: WeeChat 1.6]
o1lo01ol1o has quit [Remote host closed the connection]
meck has quit [Quit: ZNC 1.7.5 - https://znc.in]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
meck has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @ajs124 opened pull request #85094 → syslinux: add uefi support → https://git.io/Jvj8V
<{^_^}> [nixpkgs] @worldofpeace merged pull request #85067 → setup.sh: add dontPatch → https://git.io/JvjmZ
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to staging: https://git.io/Jvj8o
morgrimm has joined #nixos
jgeerds has joined #nixos
knupfer1 has joined #nixos
cjpbirkbeck has joined #nixos
knupfer has quit [Ping timeout: 260 seconds]
knupfer1 is now known as knupfer
<{^_^}> [nixpkgs] @ryantm merged pull request #84851 → intel-media-sdk: 19.4.0 -> 20.1.0 → https://git.io/Jvpg6
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/Jvj8j
<{^_^}> [nixpkgs] @sifmelcara opened pull request #85095 → opencc: 1.0.5 -> 1.0.6 → https://git.io/Jvj4e
<pie_> how can i get a path relative to the build root so it still works in nix shell? i need something that wont change during multiple invocations in a build
<pie_> so either i write scripts ro keep a state file, or theres something simpler i can do?
<morgrimm> are there any good resources for good practice for system-specific derivations? for example, separate derivations, or just changing the build script per system, or?
<clever> pie_: if you do ${toString ./.} youll get the absolute path of the dir the nix file is in
<pie_> clever: not immediately clear to me that thats gonna work here but im thinking
<pie_> clever: yeah no? this is for build time
zupo has joined #nixos
<pie_> i need to set a home directory for xargo
<clever> pie_: $NIX_BUILD_TOP ?
sonercirit[m] has joined #nixos
<pie_> that might work i guess, what is that exactly?
<clever> pie_: $NIX_BUILD_TOP is the temp dir nix made in /tmp for you
<clever> pie_: and the build will begin with you cd'd into it
<sonercirit[m]> hello, I was wondering if there was any other distro/os that you guys know with similar approach to nixOS's configuration based approach? Basically I should be able to regenerate the system from config. I already know about Guix.
<pie_> in nix shell it gives me /run/user/1000 >_>
<clever> pie_: NIX_BUILD_TOP is only set for nix-build, not nix-shell
<qyliss> sonercirit[m]: NixOS and Guix are currently really the only two distributions in this category
<sonercirit[m]> I was looking for something new to try, maybe I'll give Guix a go.
<pie_> ok that make sense, i was hoping for something nice but thisis a start
<sonercirit[m]> thx @qy
<sonercirit[m]> * thx qyliss
ATuin has quit [Ping timeout: 260 seconds]
<qyliss> yw :)
<pie_> clever: though actually that fixes the temporary problem i just needed the shell for debugging
<deni> anyone using gatttool or hcitool? it's my understanding this things got deprecated in favor of bluetoothctl and dbus api
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85096 → libvdpau: 1.3 -> 1.4 → https://git.io/Jvj4g
<AmandaC> If I've got a default.nix I'm building with `nix-build -E 'with import <nixos> { }; callPackage ./default.nix { }'` can I somehow get that imported into a nix-shell along with a normal "in-tree" nixpkgs package, such as asciinema?
<clever> AmandaC: nix-shell -E 'with import <nixos> { }; (callPackage ./default.nix { }).overrideAttrs (old: { buildInputs = old.buildInputs ++ []; })'
<{^_^}> [nixpkgs] @worldofpeace merged pull request #84846 → vscode vscodium backports [20.03] → https://git.io/JvpzP
<{^_^}> [nixpkgs] @worldofpeace pushed 11 commits to release-20.03: https://git.io/Jvj4V
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85097 → libyaml: 0.2.2 -> 0.2.3 → https://git.io/Jvj46
<AmandaC> clever: ... I feel like I'm missing something. I'm still getting the version of this package I have installed in `nix-env -i` of this program, not the newly-built one
<clever> AmandaC: do you want the compiled default.nix or the env for building default.nix?
<AmandaC> compiled
<clever> AmandaC: ah, thats the reverse of what i gave
<AmandaC> ah
<clever> AmandaC: nix-shell -p '(callPackage ./. {})' asciinema
<AmandaC> ah
anirrudh has joined #nixos
<AmandaC> That sems to be doing what I wanted. Wanted to make a recording of a change I'm making to something, to share and get feedback on. :P
<pie_> what was the fancy tui disk usage tool again?
<clever> pie_: ncdu
reallymemorable has quit [Quit: reallymemorable]
<pie_> clever: ah right
<dsal> I tried installing nixos onto an external SSD and it seemed to wreck my old debian boot, so I guess I'm committed.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85098 → libtirpc: 1.2.5 -> 1.2.6 → https://git.io/Jvj4H
knupfer has quit [Quit: knupfer]
knupfer1 has joined #nixos
knupfer1 is now known as knupfer
Thra11 has quit [Quit: WeeChat 2.7.1]
bqv has quit [Quit: WeeChat 2.8]
numkem has joined #nixos
scheming_around has quit [Remote host closed the connection]
bqv has joined #nixos
shibboleth has quit [Quit: shibboleth]
reallymemorable has joined #nixos
ATuin has joined #nixos
jeromelanteri has quit [Quit: Leaving]
foldingcookie has joined #nixos
Thra11 has joined #nixos
<sshow> michaelpj: yes, I had set autoUpgrade. Should that make it go back to its initial configuration?
bhipple has quit [Ping timeout: 240 seconds]
tarruda has joined #nixos
zeta_0 has joined #nixos
opthomasprime has joined #nixos
opthomasprime has quit [Remote host closed the connection]
zeta_0 has quit [Client Quit]
o1lo01ol1o has quit [Remote host closed the connection]
bhipple has joined #nixos
o1lo01ol1o has joined #nixos
<djanatyn> i'm getting some issues with the terraform NixOS package - some modules i download are trying to call /bin/bash: Output: /bin/sh: .terraform/modules/org-terraform.project-factory/terraform-google-modules-terraform-google-project-factory-19ea6fe/modules/core_project_factory/scripts/modify-service-account.sh: /bin/bash: bad interpreter: No such file or directory
zeta_0 has joined #nixos
<djanatyn> what would i need to do to allow the terraform package access to /bin/bash (is this similar to adding NixOS dependencies to ~/.stack/config.yaml?)
<djanatyn> or is this an upstream module assuming that /bin/bash is on the path, which I'd need to fix?
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<gchristensen> djanatyn: NixOS doesn't have a /bin/bash, probably should patch the provider to use an absolute path to bash
growpotkin has joined #nixos
<djanatyn> gchristensen: thanks!
<numkem> djanatyn: usually /usr/bin/env bash does the trick. /usr/bin/env is a useful friend with NixOS
inkbottle has joined #nixos
zebrag has quit [Ping timeout: 265 seconds]
<zeta_0> i'm writing a shell.nix file, and this haskell-env attribute is not being recognized by the buildInputs function? https://dpaste.org/3eC4
<gchristensen> yeah but in this case better to make it absolute, as the system may not have bash in the PATH
<bqv[m]> well that was astonishingly dumb. i was trying to use emacs-26 packages with emacs-27
<bqv[m]> no wonder nothing worked
<zeta_0> looking at an example online, i appended: ++ buildInputs in the haskell-env implementation, but that did not work either?
<{^_^}> [nixpkgs] @orivej-nixos merged pull request #85012 → zita-ajbridge: 0.8.2 -> 0.8.4 → https://git.io/JvhHT
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @r-ryantm to master « zita-ajbridge: 0.8.2 -> 0.8.4 (#85012) »: https://git.io/JvjBl
<numkem> bqv[m]: best solution I've found is to use the emacs overlay, the only downside is you end up building emacs from source once a day if you do a nix-build daily
<{^_^}> [nixpkgs] @orivej-nixos merged pull request #85049 → libgit2: unbundle pcre → https://git.io/Jvjfy
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « libgit2: unbundle pcre (#85049) »: https://git.io/JvjB4
<bqv[m]> numkem: i am, that was the problem :D
<bqv[m]> i was using emacsUnstable, with emacsPackages from nixpkgs
vidbina has joined #nixos
<bqv[m]> then wondering why vterm refused to load
<numkem> bqv[m]: is there a binary package somewhere of that overlay? While this works for me I don't really know if there is a "better" way
<bqv[m]> not that i know of? adisbladis might have a cachix repo
<bqv[m]> but i don't care enough, it's a short compile
pbogdan has joined #nixos
<bqv[m]> hmm. that hasn't helped either.
<dsal> System is strange and foreign to me, and I'm on a weird computer. How do I get to xmodmap?
<zeta_0> i posted the error on reddit, if anyone wants to help fix it: https://www.reddit.com/r/NixOS/comments/g03pge/generic_haskell_shellnix_setup_error_attribute/
<energizer> dsal: you want to change your keyboard layout?
<clever> zeta_0: are you using a recent nixpkgs?
<dsal> energizer: yeah, I'm running xmonad on an old chromebook. Default keys are not very useful.
<{^_^}> [nixpkgs] @Frostman opened pull request #85099 → docker-compose: 1.25.4 -> 1.25.5 → https://git.io/JvjBV
<energizer> dsal: there are a few options, depending on how custom you want to get. https://nixos.wiki/wiki/Keyboard_Layout_Customization
<dsal> Yeah, I'm looking at that. I've already got a working xmodmap so I'm trying to figure out how to fit that in here.
<zeta_0> clever: i think so, i'm using nixos/nixpkgs 19.09, and did a nix-channel --update yesterday
stevenxl has joined #nixos
<clever> zeta_0: the change likely isnt in 19.09, try unstable
<energizer> dsal: do the instructions at the bottom make sense?
<zeta_0> dsal: i have similar setup to what you are trying to do, i can help you after i finish fixing my shell.nix error, note: i'd recommend setting up home-manager 1st, if you haven't already
<bqv[m]> numkem: nevermind, this was my issue https://github.com/nix-community/emacs-overlay/issues/23
<{^_^}> nix-community/emacs-overlay#23 (by andrea96, 1 day ago, open): `vterm` doesn't work
<dsal> energizer: mostly. I'm still new enough that I didn't understand where the let went.
invra has quit [Quit: WeeChat 2.3]
<stevenxl> Hi folks. I am running. I am running macOS Catalina 10.15.4, and trying to install nix. I run this from the shell "curl https://nixos.org/nix/install | sh".
<stevenxl> However, I get the following error:
<dsal> zeta_0: Thanks. Everything is super foreign to me at the moment.
<dsal> I mainly want to just get back to the point where I can write code again.
invra has joined #nixos
<energizer> stevenxl: see the instructions in the error?
<manveru> energizer: that won't work on catalina anymore...
<stevenxl> energizer: Yea, i see it, but when I try to run `su` in order to change to a root shell, the operating system just says "sorry".
<stevenxl> I can run sudo but that is not enough to create the directory
<stevenxl> manveru: thanks - I will take a look.
<manveru> like 300 comments now :P
<dsal> Requiring /nix as a directory is a weird design mistake.
<zeta_0> clever: i changed to the unstable channel, but it's still throwing the same error: https://dpaste.org/hUYo
<manveru> dsal: so you'd rather want /Applications?
<dsal> I can install Applications in my home directory. There's nothing special about /Applications other than the OS chose that for its purposes.
<dsal> To that effect, /nix is fine for nixos, but it's a design mistake for other operating systems.
<simpson> dsal: Okay, we'll change it.
<manveru> i dunno how eelco could've known that 15 years after he decided on /nix, apple would turn macs into iphones :)
Maxdaman1us is now known as Maxdamantus
<zeta_0> dsal: follow step 2, to setup nix home-manager as a module, it's pretty simple to setup: https://rycee.gitlab.io/home-manager/index.html#ch-installation
<dsal> *shrug* 15 years ago, /nix was weird on most systems I ran, many of which had read only root filesystems such that even root couldn't write there.
<manveru> well, it can still be changed, you just have to give up on the existing binary cache
<gchristensen> interesting, what OS's had a read-only / 15 years ago?
<manveru> maybe netbooted ones?
<dsal> manveru: I'm just barely trying nixos for the first time. I gave up on it on the mac a while before catalina made it a no-go just because requiring root access to try building was anon-starter.
<gchristensen> aye
<clever> manveru: if you move /nix on darwin, you also break the ability to deploy with nixops
<gchristensen> well, here we are
<dsal> gchristensen: Any that wanted them. I would typically make my root fileysstems read only and revoke root's ability to remount them as read-write without physical access.
<gchristensen> interesting, cool
<energizer> there are some people who put /nix elsewhere apparently https://yann.hodique.info/blog/nix-in-custom-location/
<manveru> energizer: that's fine, if you essentially want gentoo-like build times... or run your own hydra
<gchristensen> worse than gentoo hehe
<bqv[m]> huh, amazing. a bug in openssh means i can't push to github
captjakk has quit [Remote host closed the connection]
<energizer> i wonder if you could do some LD_PRELOAD magic to trick everything into thinking it's loading from /nix
captjakk has joined #nixos
<energizer> and therefore avoid rebuilding
<manveru> proot exists
<manveru> not sure about darwin though
<dsal> plan9's bind mechanism would make this model *so* nice.
<clever> dsal: namespaces and user chroot give the same thing
<simpson> Sure, for consenting software, we can have nice things. Annoyingly, most software isn't okay with being turned inside-out.
<energizer> manveru: does the proot way avoid rebuilding everything?
captjakk has quit [Remote host closed the connection]
<manveru> energizer: yes, but you essentially have to live in a chroot (that just doesn't require root)
captjakk has joined #nixos
<manveru> i used it for a bit when i built a nix buildfarm on VMs that i didn't get root on :P
<energizer> manveru: that sounds great, and would avoid a lot of the issues around data privacy on multi-user machines
vidbina has quit [Ping timeout: 256 seconds]
LysergicDreams has quit [Ping timeout: 256 seconds]
<manveru> not sure if it gives you proper sandboxing though
<energizer> but `nix run --store ~/my-nix` does require rebuilding?
<clever> and proot has a performance cost
<zeta_0> clever: i need to fix the missing attribute error before i can focus on anything else: https://dpaste.org/EAeW https://dpaste.org/8QEZ
<zeta_0> clever: i'm using this other defaul.nix as a reference: https://github.com/ysndr/blog/blob/a62763de64a127ba861b88a981a2416c3b9a5b77/default.nix#L56-L74
<clever> energizer: that lets you write to ~/my-nix/nix/store, but the binaryes in there assume the libs are at /nix/store and will fail to execute
vidbina has joined #nixos
<clever> energizer: you must chroot to make them work (or proot)
<dsal> clever: I don't quite see how chroot is similar. I suppose I don't know namespaces well enough.
<stevenxl> I understand that this is a problem with macOS, but instead of messing around with the system I'm just going to boot into linux.
<clever> dsal: namespaces let you have a different set of mounted fs's, and root point
<dsal> in plan9, you could just effectively tell the OS that for the given process and its children, anything wanting /nix really means ~/nix
<clever> dsal: docker is the most common thing using namespaces on linux
<zeta_0> that shell.nix uses ++ buildInputs inside of haskell-env, but that does not fix the error
<dsal> Sure, but that's all fairly heavy when all you want to do is have some per-process path virtualization.
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #85085 → nixos/doc: Document breaking change to Haskell dev shells → https://git.io/JvjnN
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/JvjR3
LysergicDreams has joined #nixos
<clever> dsal: namespacing is very flexible, and you can change only the root and nothing else
<clever> dsal: the FHS envs in nix do that, for things like steam
<dsal> Ooh, I think I've almost got a useful nixos machine.
<energizer> dsal: you're quick! took me hours the first time
<dsal> My needs are tiny. heh
<dsal> (and it's been a couple hours, yeah)
kreetx has quit [Ping timeout: 264 seconds]
<dsal> Oh, I can just nix-install this from the external flash to the internal flash, right? Is there a faster way to effectively clone this system?
bqv has quit [Ping timeout: 265 seconds]
<clever> dsal: if they use the same nixpkgs and config, it will just copy everything over
<dsal> Oh nice. The test install wrecked my internal flash booting, so I could've just assumed it'd work out the first time.
bhipple has quit [Ping timeout: 240 seconds]
bqv has joined #nixos
<bqv[m]> clever: heh, nice
<bqv[m]> got nix-shell working well with any-nix-shell
morgrimm has quit [Ping timeout: 256 seconds]
<bqv[m]> nothing is impossible
bhipple has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #85101 → nixos/doc: Document breaking change to Haskell dev shells for 20.03 → https://git.io/JvjRc
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #85101 → nixos/doc: Document breaking change to Haskell dev shells for 20.03 → https://git.io/JvjRc
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to release-20.03: https://git.io/JvjRC
<zeta_0> well, if i can't get that error fixed, then i'll just wrap the entire haskell configuration with parenthesis and place it in buildInputs, that sucks, because then i'll have to change the environment variables in the shellHook as well
invra has quit [Quit: WeeChat 2.3]
vidbina has quit [Ping timeout: 240 seconds]
<zeta_0> clever: i don't understand, what does this link you sent me have to do with the shell.nix that i'm trying to setup? that comment and code is confusing me: https://github.com/NixOS/nixpkgs/commit/7d67db39199130aa75bb3315e991830e2a988258
<clever> brb
<zeta_0> ok
<michaelpj> sshow: it's a bit unexpected with nixops, in that nixops doesn't copy the configuration *files* to the machine, so autoUpgrade upgrades on the basis of the configuration files on the machine, which isn't what you want
<michaelpj> It would be great if there was an asset for that or something
<{^_^}> [nixpkgs] @garbas opened pull request #85102 → vimPlugins: added branch support for update.py script → https://git.io/JvjRu
cosimone has quit [Quit: Quit.]
<bqv[m]> hey, can someone try `ssh -vv git@github.com -o HostKeyAlgorithms=ssh-rsa`
<bqv[m]> on my nixos systems, that seems to reliably fail
<bqv[m]> oh, hang on, that doesn't do what i want
<bqv[m]> nope, no idea how to reproduce this. figured out how to prevent it though
<{^_^}> [nixpkgs] @doronbehar opened pull request #85103 → [RFC] Declarative wrappers → https://git.io/JvjRV
evertedsphere has quit [Ping timeout: 265 seconds]
<Taneb> Decided to try and switch my desktop to 20.03
<drakonis> its all fine at this point
<drakonis> despite not being out yet
<drakonis> i always track the latest release because eh why not
<sshow> michaelpj: I see. So I should just turn autoUpdate off, then, and set up auto updating using nixops instead I guess
<sshow> michaelpj++
<{^_^}> michaelpj's karma got increased to 1
<Taneb> Yeah, my desktop's not doing anything too weird
ggpeti[m] is now known as ggpeti[m]1
reallymemorable has quit [Quit: reallymemorable]
<michaelpj> sshow: yeah, it's annoying and it would be nice if there was a way to do what you're trying to do there, i.e. have deployed, auto-updating systems, but I don't think there is currently. Arguably it's a bit at odds with the idea that nixops controls the state completely
<michaelpj> and the current behaviour is a massive footgun obviously
<srk> massive footgun!!! lol
<drakonis> a foot cannon you mean?
<gchristensen> ehhh yeah I keep meaning to PR my expression which breaks nixos-rebuild on nixops managed hosts
<gchristensen> mmyesss:)
<clever> gchristensen: i also got an expr for that in nixos-configs/nixops-managed.nix
<gchristensen> clever: I know :) I think you got it from me :P
<clever> sounds likely
<drakonis> energizer: nothing to see here, just nixpkgs having a giant lead
<drakonis> turns out the language package sets make a world of difference here
ddellacosta has quit [Quit: WeeChat 2.2]
ddellacosta has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
vidbina has joined #nixos
virtusviri7321[m has joined #nixos
<{^_^}> [nixpkgs] @garbas merged pull request #85102 → vimPlugins: added branch support for update.py script → https://git.io/JvjRu
<{^_^}> [nixpkgs] @garbas pushed to master « vimPlugins: added branch support for update.py script (#85102) »: https://git.io/JvjRd
chloekek has quit [Ping timeout: 250 seconds]
<gchristensen> drakonis: as well as other things, like the low friction to contribute, and our ability to test and understand the impact of updates :)
<{^_^}> [nixpkgs] @marsam opened pull request #85104 → heroku: 7.39.0 -> 7.39.2 → https://git.io/JvjRN
LysergicDreams has quit [Ping timeout: 256 seconds]
<drakonis> oh yes
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<drakonis> having tried to send packages to debian then quickly giving up, nixpkgs is certainly refreshing
philr has joined #nixos
<drakonis> imagine having to send in podman and requiring either vendoring all the things or package every dependency on the tree
<Taneb> I am now on NixOS 20.03 !
<srk> 20.09.git.77a062fe479 (Nightingale)
<srk> too old Taneb
<Taneb> :(
<srk> you won't get all the new awesomness
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Taneb> I do like new awesomeness...
<drakonis> goals for nightingale, actually push a podman module into nixpkgs
morgrimm has joined #nixos
<energizer> nixpkgs will have even more understanding of the state of its packages if something like https://discourse.nixos.org/t/please-fix-all-packages-which-were-broken-by-the-qt-wrapping-changes/6444/20 goes through
<srk> best thing is that it doesn't even feel like runnig bleeding edge distro :D
LysergicDreams has joined #nixos
neeasade has quit [Remote host closed the connection]
<virtusviri7321[m> Hi guys, current using Arch. I consider to test and switch to NixOS. What have been your reasons switching or using Nix?
<energizer> got fed up with things breaking
<srk> this
reallymemorable has joined #nixos
<virtusviri7321[m> Oh yes sometimes even on Debian it happened to me. On Arch...yep...it can happen.:/
zupo has joined #nixos
<drakonis> ah, have we reached the "cool new thing" status yet
<drakonis> we bring all the arch boys to the barn
vidbina_ has joined #nixos
Thra11 has quit [Quit: WeeChat 2.7.1]
morgrimm has quit [Ping timeout: 265 seconds]
vidbina has quit [Ping timeout: 265 seconds]
<gchristensen> virtusviri7321[m: give it a go, in a VM if you'd prefer :)
<Taneb> srk: you've tempted me to switch to targetting unstable
<{^_^}> [nixpkgs] @Profpatsch opened pull request #85105 → skalibs: 2.9.2.0 -> 2.9.2.1 → https://git.io/Jvj0O
ATuin has quit [Ping timeout: 264 seconds]
<cjpbirkbeck> virtusviri7321[m: i was using ubuntu mate and i felt like i reached everything where was to learn there, so i was looking to switch and one guy in forum i was in was praising and recommending it, so i tried in a vm and liked, so i switched.
<srk> Taneb: hehe :)) I'm pulling from master from time to time but unstable is better :)
vidbina_ has quit [Ping timeout: 250 seconds]
<cjpbirkbeck> in any case, it's always good to test a distro in a vm before installing it on bare metal, as practice
noudle has quit []
morgrimm has joined #nixos
<virtusviri7321[m> > virtusviri7321: give it a go, in a VM if you'd prefer :)
<virtusviri7321[m> :) I do or on one of my spare laps
<{^_^}> error: syntax error, unexpected ',', expecting ')', at (string):296:29
<virtusviri7321[m> > in any case, it's always good to test a distro in a vm before installing it on bare metal, as practice
<virtusviri7321[m> Cool thx for the tip
<{^_^}> error: syntax error, unexpected IN, at (string):296:1
<bqv[m]> unstable isn't even that unstable
<bqv[m]> stable is too stable, if anything :p
<virtusviri7321[m> Good to know your way. :)
<virtusviri7321[m> > virtusviri7321: i was using ubuntu mate and i felt like i reached everything where was to learn there, so i was looking to switch and one guy in forum i was in was praising and recommending it, so i tried in a vm and liked, so i switched.
<{^_^}> error: syntax error, unexpected ',', expecting ')', at (string):296:102
morgrimm has quit [Ping timeout: 250 seconds]
<zeta_0> for this shell.nix file, i wrapped my haskell setup and placed it directly in buildInputs, and now it seems to work(it's still building in nix-shell): https://dpaste.org/TQ8c
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jvj0B
<{^_^}> [nixpkgs] @marsam merged pull request #85070 → kodiPlugins.vfs-sftp: 1.0.5 -> 1.0.6 → https://git.io/JvjOY
<zeta_0> but i'm going to have to change the environment variables as well
<sshow> How can I inject the `config` variable to `nix repl` ?
<zeta_0> i think i'm going to have to do a garbage collection soon, this nix-shell setup is dumping a lot
<energizer> sshow: `nix repl '<nixpkgs>' ` has config in it
<bqv[m]> sshow: `nix repl '<nixpkgs/nixos>'` should have the config you're expecting, i think
<sshow> energizer++ bqv[m]++
<{^_^}> bqv[m]'s karma got increased to 5, energizer's karma got increased to 6
<sshow> What about `services`?
<clever> sshow: config.services
hoplaahei has joined #nixos
<sshow> orly! clever++
<{^_^}> clever's karma got increased to 389
<hoplaahei> hi again. Is it safe to purge zfs snapshots made by the autosnapshot service I don't need anymore because they take up too much? Or will that break the script?
<clever> hoplaahei: totally safe
nschoe_ has quit [Ping timeout: 256 seconds]
evsph has quit [Quit: Connection closed for inactivity]
<gchristensen> hoplaahei: are you sendig those snapshots anywhere?
orivej has quit [Ping timeout: 265 seconds]
<hoplaahei> clever: thanks.
<hoplaahei> gchristensen: I haven't thought that far ahead, but no, I don't think so.
bhipple has quit [Ping timeout: 240 seconds]
ratsclub has joined #nixos
<ratsclub> Hello, guys
<ratsclub> How are you doing?
<bqv[m]> the activation scripts don't happen to have a verbose switch do they?
<bqv[m]> they take so long to run on one of my systems, i want to know why
bhipple has joined #nixos
<ratsclub> Guys, I'm having a small trouble with venvShellHook: error: attribute 'venvShellHook' missing
<dsal> Following installation instructions, I get complaints about swap being not properly aligned. Is there an easy way to DWIM this?
<ratsclub> My default.nix looks like this: https://dpaste.org/souC/raw
<hoplaahei> Also, I created a dataset for my .steam directory in home because the files are too large for it to get snapshotted. I intend to move the files back with rsync -aAX to preserve attrs and ACLs. I assume/hope it won't get snapshotted unless I explicitly make it a child of the home dataset I am already snapshotting or give it an autosnaphot flag? Also, can I just run nixos-generate-config before reboot, or are there any other steps to get the volume to
<hoplaahei> mount next boot?
<ratsclub> But I can't get venvShellHook to work
orivej has joined #nixos
<energizer> dsal: gdisk is easier if you specify the size instead of the endpoints
<dsal> I just used GB instead of GiB. *shrug* I'll just lose a bit of space.
<philipp[m]> How do I get the behaviour of `home.file` (in home manager), but with the file being interpreted by nix?
<ratsclub> I got it working, it's only on unstable
__init__ has joined #nixos
invra has joined #nixos
<__init__> hello, have any of you set up a wireguard vpn lately? perhaps ideally/specifically with mullvad?
ratsclub has left #nixos ["ERC (IRC client for Emacs 26.3)"]
<bqv[m]> i'm using wireguard now
<bqv[m]> not mullvad
<zeta_0> please tell me nix-shell will cache this: https://dpaste.org/TQ8c
pbb has joined #nixos
<zeta_0> i don't want to stay stuck waiting hours for nix to build this environment over and over again
<__init__> I'm having trouble figuring out how to debug wireguard when I don't control the server, like with hosted VPNs. when I enable the interface in systemd te connection just stops working. :)
knupfer has quit [Ping timeout: 260 seconds]
<__init__> how should I figure out what's going wrong? like isolate it to the keys, IPs, or routes?
<bqv[m]> that's above my pay grade
<bqv[m]> zeta_0: it can't cache anything if you don't give fetchtarball a hash
<__init__> they supply some premade configuration but I can't make it work with the one generated by nixos :(
<sshow> Is there some sort of spread operator to do something like this: `allowedPorts = [ 80 ...config.services.openssh.ports ]`
<monokrome> yo
<monokrome> Does anyone know if there's a way to recover the latest configuration.nix? My swap file was apparently full, so `sudo -e` apparently overwrite it with an empty file...
<monokrome> TIL that can happen
<bqv[m]> :D
<zeta_0> oh, and does nix-shell use cachix? if not, i will be waiting for days
<bqv[m]> this is why i make my configuration part of the system
<monokrome> isn't it already?
Desetude has joined #nixos
<bqv[m]> nope!
vidbina_ has joined #nixos
<bqv[m]> there is a system.copyNixConfiguration option
<bqv[m]> or something like that
<energizer> sshow: [80] + ports
<bqv[m]> it's off by default (and doesn't work with flakes anyway)
<energizer> sshow: maybe there's fancy syntax idk
densecomet has joined #nixos
<energizer> sshow: er, ++
<zeta_0> evils: thanks for the link, i'll try that out
<sshow> energizer: okay. makes sense. so I could do like this: `mylist = mylist ++ [ 80 ]`
<energizer> sshow: yes
<sshow> energizer: and this is the only syntax that you're aware of?
<monokrome> well crap
<monokrome> this is not gr8
<clever> sshow: nixos options append lists automatically for you
aditsachde has joined #nixos
<monokrome> sudo is broken AF
<sshow> clever: okay, so I could go full on `networking.firewall.allowedTCPPorts = services.openssh.ports` ?
<sshow> and it will simply be appended?
<clever> sshow: ssh opens its own ports for you, so thats the one thing you dont need
<sshow> clever: lol. okay. but apart from that
<gchristensen> bqv[m], monokrome: that option doesn't really work anyway
<sshow> energizer++ clever++
<{^_^}> clever's karma got increased to 390, energizer's karma got increased to 7
<clever> sshow: yeah
<gchristensen> monokrome: ouch :(
captjakk has quit [Remote host closed the connection]
ggpeti[m]1 is now known as ggpeti[m]2
<Desetude> Are commits selectively moved into unstable from master or is a full catch-up done from master to unstable every couple of days?
captjakk has joined #nixos
<Desetude> (in nixpkgs)
<gchristensen> Desetude: unstable points to a commit in master
<Desetude> ah ok
<gchristensen> ,howoldis
<gchristensen> ^ these two links have information on how / when unstable updates
<virtusviri7321[m> Btw is their a Nix community repo like AUR?
<virtusviri7321[m> Or is it better building from source on your own
densecomet has quit [Remote host closed the connection]
<Desetude> gchristensen: great, thanks
<evils> virtusviri7321[m: https://github.com/nix-community/NUR
<philipp[m]> monokrome: Your files might not be completely lost. Iirc, sudoedit should first create a temporary backup file somewhere. Have you checked that?
<dsal> I can't do a rebuild on my new system. :( Says it can't find nixpkgs
<dsal> nixpkgs/nixos was not found in the Nix search path. Can I recover this?
<virtusviri7321[m> > virtusviri7321: https://github.com/nix-community/NUR
<virtusviri7321[m> Thx
<{^_^}> <LAMBDA>
captjakk has quit [Ping timeout: 265 seconds]
<gchristensen> nice, managed to make a valid Nix function
<zeta_0> does nix-shell use cachix? i'm just trying to figure out why my build is taking such a long time
<gchristensen> > let x = virtusviri7321: https://github.com/nix-community/NUR; in x 1
<MichaelRaskin> Using deprecated URL syntax!
<monokrome> hmm
captjakk has joined #nixos
<monokrome> So, I can just copy over my laptop's config and update the passwdHash, but is there a way to get the systemVersion so that I don't mess it up?
<dsal> `nix-channel --update` fixed my problem.
<dsal> So I guess two things went wrong when I moved my installation to another disk. The other thing is that it kept my old (external) swap.
dsiypl4 has joined #nixos
bhipple has quit [Ping timeout: 240 seconds]
<energizer> monokrome: you just want to find out what the current stateVersion is?
<energizer> in your running system
duck_ has quit [Ping timeout: 264 seconds]
<clever> energizer: nixos-option
<energizer> clever: not me
<monokrome> energizer: Yeah, system.stateVersion
<energizer> monokrome: nixos-option system.stateVersion
<energizer> > system.stateVersion
<{^_^}> value is a string while a set was expected, at (string):296:1
<monokrome> energizer: that reads it from configuration.nix
<cole-h> > config.system.stateVersion
<{^_^}> attribute 'system' missing, at (string):296:1
<clever> and uses the default if configuration.nix didnt set it
<cole-h> rip
<monokrome> since configuration.nix is empty, it fails
<{^_^}> [nixpkgs] @teto merged pull request #85087 → worldofgoo: 1.41 -> 1.53 → https://git.io/JvjcZ
<{^_^}> [nixpkgs] @teto pushed 3 commits to master: https://git.io/JvjEK
<monokrome> An error occurred while looking for attribute names. Are you sure that 'system.stateVersion' exists?
<clever> > (import <nixpkgs/nixos> { configuration = {}; }).config.system.stateVersion
<{^_^}> "20.09"
<clever> cole-h: ^
<cole-h> (thanks)
<monokrome> here's hoping my guess is right
<clever> > (import <nixpkgs/nixos> { configuration = { system.stateVersion = "19.03"; }; }).config.system.stateVersion
<{^_^}> "19.03"
fenedor has quit [Quit: Leaving]
adyatlov has joined #nixos
<adyatlov> Hi. Is avr-gcc available in NixOS? I found some references to it online, but I can't find it with nox
chpatrick has quit [Quit: Connection closed for inactivity]
<energizer> is nox replaced by nix new cli?
duckfullstop has joined #nixos
mallox has quit [Quit: WeeChat 2.8]
<lukegb> hmm, howoldis.herokuapp.com seems a bit dead, ha
bhipple has joined #nixos
<dsal> This thing where the prompt starts with a newline is pretty distracting.
<waleee-cl> lukegb: I think status.nixos.org is the new one
<virtusviri7321[m> Off topic: Anybody gaming with steam on NixOS
<lukegb> yeah, that one actually works
<lukegb> virtusviri7321[m: I've been, err, trying to get that working
<clever> virtusviri7321[m: and proton works fine too
<aanderse> virtusviri7321: yes, definitely
<monokrome> What happens if system.stateVersion is wrong?
<clever> monokrome: various things, like postgresql not starting, or your ssh hostkeys changing
<virtusviri7321[m> Cool. Can steam be found on NUR?
<monokrome> ah
<monokrome> so nothing I can't fix
<clever> monokrome: the idea, is that you manually fix those things, before you upgrade the stateVersion
<clever> monokrome: and if your not prepared for those changes, you just leave it as-is
<monokrome> maybe this is a good excuse to set up nixops
<monokrome> clever: Oh, so it's okay to change it if you fix them?
justanotheruser has quit [Ping timeout: 264 seconds]
<clever> monokrome: yeah, the nixos release notes tell you what exactly you need to change
<lukegb> steam is actually in nixpkgs...
invra has quit [Quit: WeeChat 2.3]
<monokrome> clever: good to knon... thanks =^.^=
<aanderse> yeah no need for NUR for steam
<lukegb> (but valve have a habit of just updating the runtime and pulling the old debs off their CDN, so then the derivation breaks _SIGH_)
<monokrome> I think it's because they mostly designed it for their OS
<{^_^}> [nixpkgs] @bhipple merged pull request #85095 → opencc: 1.0.5 -> 1.0.6 → https://git.io/Jvj4e
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JvjuG
<monokrome> which I don't think is still maintained?
<{^_^}> [nixpkgs] @garbas opened pull request #85106 → Vim plugins coc nvim → https://git.io/JvjuZ
<clever> monokrome: the steam in nixpkgs, is trying to simulate a debian system in a chroot
<virtusviri7321[m> > monokrome: the steam in nixpkgs, is trying to simulate a debian system in a chroot
<virtusviri7321[m> Ah cool
<{^_^}> error: syntax error, unexpected IN, expecting ')', at (string):296:22
<monokrome> lol wild
<lukegb> steamos is... still being updated, ish. It got an update 8 months ago, at least
<lukegb> iirc steamos 3 was supposed to be stretch-based, but it's not out yet
<monokrome> I copied the config on my laptop, got the error "You must set the option ‘boot.loader.grub.devices’ or 'boot.loader.grub.mirroredBoots' to make the system bootablet" and now it seems that after I set that value, I get that error anyway =^.^=
<monokrome> whoa how did that copy so bad
<clever> monokrome: which file did you set that in?
<monokrome> /etc/nixos/configuration.nix
<virtusviri7321[m> Thx for your help up to now :)
<monokrome> the hardware-configuration.nix is still in tact from where it was before
<clever> monokrome: is it already installed, or running from the installer iso?
<monokrome> not even sure why I need to set this
<monokrome> clever: Already installed, but a bug in sudo led me to erase my configuration.nix so I had to pull the configuration.nix from my laptop
<clever> monokrome: ah, and you now have boot.loader.grub.device(s) set in the new configuration.nix?
<monokrome> yeah, but it's not there on my laptop
<monokrome> so I'm surprised to see the error
<monokrome> maybe it's safer to just redo my system :/
<clever> monokrome: there are other options
<clever> monokrome: first, do you know if it boots with efi or legacy?
<monokrome> EFI
<monokrome> w/ cryptodisk
<clever> monokrome: then you want boot.loader.grub.device = [ "nodev" ];
<clever> monokrome: next, what does `nix-store -q --deriver /run/current-system` say?
<monokrome> points to a nix-store
<clever> monokrome: what path does it give?
<monokrome> /nix/store/5ywfdxcg4arbxc7fb32gfxwv02bg76ip-nixos-system-peru.home.monokro.me-19.09.2395.02f2241354a.drv
<clever> monokrome: now try `nix-diff /nix/store/5ywfdxcg4arbxc7fb32gfxwv02bg76ip-nixos-system-peru.home.monokro.me-19.09.2395.02f2241354a.drv $(nix-instantiate '<nixpkgs/nixos>' -A system)`
<monokrome> seems to be a bash script
<clever> monokrome: that will show you the difference between your currently running os, and the current configuration.nix
<clever> then you just edit configuration.nix to remove differences, and repeat the nix-diff
<{^_^}> [nixpkgs] @bhipple merged pull request #85093 → plata-theme: 0.9.3 -> 0.9.7 → https://git.io/Jvj8L
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JvjuV
<monokrome> weird output from that
<monokrome> warning: you did not specify '--add-root'; the result might be removed by the garbage collector
vidbina_ has quit [Ping timeout: 258 seconds]
<monokrome> sudo: nix-diff: command not found
<monokrome> maybe I should su into root
<clever> monokrome: you need to install nix-diff first
codygman has quit [Ping timeout: 256 seconds]
<clever> the command also doesnt need root
<monokrome> hmm
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<monokrome> ok
<clever> nix-env -iA nixos.nix-diff
<monokrome> hopefully I can make a derivation w/out configuration.nix
<monokrome> ah
<monokrome> forgot about that
adyatlov has quit [Ping timeout: 240 seconds]
<monokrome> weird it says that the file doesn't exist
<monokrome> but I just looked at it and it's a bash script
<monokrome> and sure enough it's gone now
<clever> monokrome: the .drv file is not a bash script
<dsal> I just ran into nix-env ... how can I think about this?
<dsal> e.g., I just keep shoving junk in the global config for my current user.
<clever> monokrome: try `nix-store -q --deriver /run/current-system` say?
<clever> 2020-04-12 19:37:13 < monokrome> points to a nix-store
<monokrome> ah, maybe it was just a json/map of some sort
<clever> monokrome: again
<monokrome> Ah, the nix-env -iA changed it?
<clever> monokrome: it shouldnt have
<monokrome> says: /nix/store/y6dq2b7pxs03ibqbzj5hddclpayh19ag-nixos-system-thailand.home.monokro.me-19.09.2395.02f2241354a.drv
<monokrome> changed somehow
justanotheruser has joined #nixos
<clever> monokrome: weird, try updating the nix-diff cmd
<monokrome> tried, now it ran but I got the same error: warning: you did not specify '--add-root'; the result might be removed by the garbage collector
<clever> monokrome: thats normal, does it actually show a diff?
<monokrome> nope
__monty__ has quit [Quit: leaving]
<monokrome> that warning is all I get
<bqv[m]> that's a warning, not an error, btw
<clever> monokrome: did you do nixos-rebuild at any point?
<bqv[m]> it says it on the tin
<monokrome> thanks bqv[m]
<monokrome> clever: not since you started giving me nix-diff commands, but I did do it after setting device = [ "nodev" ]
<monokrome> which would explain why there's no diff, they're maybe the same now
<clever> monokrome: ah, that would be why then
codygman has joined #nixos
<clever> monokrome: try `nix-store -q --deriver /run/booted-system` instead
<monokrome> cool I'll try the diff w that
<monokrome> giant diff there
<clever> monokrome: now you can look thru for important things your missing, and adjust the config to make the diff smaller
<{^_^}> [nixpkgs] @garbas merged pull request #85106 → Vim plugins coc nvim → https://git.io/JvjuZ
<{^_^}> [nixpkgs] @garbas pushed to master « vimPlugins: coc-nvim update (#85106) »: https://git.io/JvjuS
<monokrome> makes sense
<monokrome> those are cool tricks, thanks for walking me through the diff process
<monokrome> super helpful to know :D
<{^_^}> [nixpkgs] @garbas closed pull request #84225 → Vim node packages → https://git.io/Jvbl7
pbb has quit [Read error: Connection reset by peer]
<zeta_0> could someone help me set the HIE_HOOGLE_DATABASE environment variable for this shellHook(line 35): https://dpaste.org/VDRr
pbb has joined #nixos
<zeta_0> i have no idea what to set it to, if you guys have some nix documentation that you can link for this, paste it, thanks
<zeta_0> at least the nix-shell works now without any errors, so that's progress
codygman has quit [Read error: Connection reset by peer]
<monokrome> My system rebooted
<monokrome> so I think we're safe =^.^=
devalot has quit [Quit: ZNC - http://znc.in]
codygman has joined #nixos
<Desetude> In my path there is an objdump from binutils and one from go tools, is there a nice way to have the binutils binary have precedence?
<zeta_0> is: export HIE_HOOGLE_DATABASE="$(which hoogle)" correct for a shellHook?
maddo has quit [Quit: See ya]
<clever> zeta_0: try running it inside nix-shell and see if it makes any difference
<zeta_0> i may need swap () with {}
<zeta_0> clever: ok, i'll test it out in a nix-shell
<zeta_0> clever: this: `HIE_HOOGLE_DATABASE = "$(cat $(which hoogle) | sed -n -e 's|.*--database \\(.*\\.hoo\\).*|\\1|p')";` , is the env var that you helped me set a long time ago in home.nix, and this: export HIE_HOOGLE_DATABASE="${haskell-env}/share/doc/hoogle/default.hoo" , is the env var shown in the instructions that i'm following: https://github.com/ysndr/blog/blob/a62763de64a127ba861b88a981a2416c3b9a5b77/default.nix
<zeta_0> #L56-L74
<zeta_0> clever: i've made some progress with this shell-nix, it doesn't throw anymore errors when i run it in a nix-shell(though i canceled the build because it was taking too long): https://dpaste.org/Mwvy
dermetfan has quit [Ping timeout: 260 seconds]
<zeta_0> i commented out the shellHook while building in the nix-shell, so i'm fixing them now
erictapen has quit [Ping timeout: 240 seconds]
snicket has quit [Ping timeout: 240 seconds]
<zeta_0> the other env vars look fine, it's this HIE_HOOGLE_DATABASE env var that's holding me back
erictapen has joined #nixos
<hoplaahei> Lutris is saying it can't detect Vulkan support. I have tried to configure it in configuration.nix: https://pastebin.com/pe25CRK8
<hoplaahei> Do I need amdgpu-pro driver? I have open amdgpu only at the moment.
Desetude has quit [Quit: WeeChat 2.8]
<hoplaahei> Vega 11 onboard graphics of the Ryzen 5 3400G.
<monokrome> this is wild
<monokrome> now it rebuilds but when I reboot it retains my old config instead of using the new one
<monokrome> I think it maybe installed a separate grub
<monokrome> but also apps are disappearing because my root disk is full somehow
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85107 → mdcat: 0.15.1 -> 0.16.0 → https://git.io/JvjzL
pbogdan has quit [Ping timeout: 258 seconds]
endformationage has joined #nixos
mbrgm has quit [Quit: ZNC 1.7.5 - https://znc.in]
codygman__ has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #85059 → earlyoom: 1.5 -> 1.6 → https://git.io/JvjL6
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jvjzc
<{^_^}> [nixpkgs] @marsam merged pull request #85104 → heroku: 7.39.0 -> 7.39.2 → https://git.io/JvjRN
<{^_^}> [nixpkgs] @marsam pushed 3 commits to master: https://git.io/Jvjz4
mbrgm has joined #nixos
<dsal> Hmm... My stack project won't build because it's using a package that requires zlib, and can't find zlib.h
ZaraChimera has joined #nixos
<bqv[m]> iirc, there's a difference between zlib and ZLIB
reallymemorable has quit [Quit: reallymemorable]
hoplaahei has quit [Quit: Konversation terminated!]
<codygman__> dsal: What does your nix block of your stack.yaml look like? Do you have zlib listed?
<dsal> My stack.yaml doesn't know anything about nix. I'm just trying to build an existing project.
<energizer> dsal: you might wanna check out snack or some of the other tools
xO1 has quit [Ping timeout: 256 seconds]
<dsal> snack? I just want to develop software on this machine. :)
<codygman__> dsal: If you are building on nixos stack uses nix integration by default and you'll need to add zlib or maybe disabling nix integration will work... not sure. See here: https://docs.haskellstack.org/en/stable/nix_integration/
hoplaahei has joined #nixos
<dsal> adding the little nix bit to stack.yaml helped.
dsiypl4_ has joined #nixos
<zeta_0> dsal: this works great in translating cabal and stack to nix, in a nix-shell: https://github.com/Gabriel439/haskell-nix
<dsal> I definitely don't want to translate this project to nix. If it requires nix to build then I can't use it.
<zeta_0> oh, just thought i'd throw that out there
<dsal> nixos seems decent and useful on its own, but it's not going to be usable as a build system.
<simpson> dsal: Okay, we'll change it.
<codygman__> Do check out snack when you get a chance though and all other recommendations for pure nix since it is more reproducible than stack.
<dsal> simpson: super not helpful.
dsiypl4 has quit [Ping timeout: 265 seconds]
<dsal> Thanks. I think nixos suits me well as a system, but I need to build this on other systems as well.
<codygman__> "it's not going to be usable as a build system." Do you mean like cabal is a build system, stack is a package set + some other stuff over cabal build system, and nix alone isn't a build system? Most people use cabal+nix to for the case you mean I think.
<zeta_0> i posted something that i'm stuck on in reddit, if anyone wants to help(thanks in advance): https://www.reddit.com/r/NixOS/comments/g078pf/ghcide_nixshell_setup_fixing_shellhooks_ghcides/
<dsal> codygman__: I mean if nix is required to build my software, then I've failed myself, since I can't use nix everywhere I use the software I work on.
<codygman__> dsal: Oh, so it's just a political thing where only stack is guaranteed on your systems then.
<codygman__> Anyway, your project's working now and I don't want to monopolize your time :D
<dsal> It's also a technical thing where nix can't work on some of the systems I use and I guess semi-political to demand a random contributor to do stuff that requires root access to build my thing.
<dsal> But yeah. So far I like nixos. :)
mbrgm_ has joined #nixos
<codygman__> If you can when you have time, please detail the technical parts that keep you from using nix everywhere as they would be of great interest to many of us I think.
<simpson> codygman__: It's a simple case of why we can't have nice things: Because not everybody is able to receive the nice things.
<dsal> You can't write a new directory to the root filesystem without both root access and a writable root filesystem. These things aren't always reasonable requests.
mbrgm has quit [Ping timeout: 256 seconds]
mbrgm_ is now known as mbrgm
<simpson> dsal: You may find that you don't need to change any of your build process, but merely add a default.nix and shell.nix to your project root.
<dsal> I still don't know what those two files do. :(
<simpson> Do not think that, merely because you and your contributors type different commands, that you therefore are using distinct build processes. It is reasonable and common for Nix-driven builds to be on top of, and not replacing, existing build tools.
<dsal> I tried that home-manager recommendation which is neat so far.
<dsal> I'm not opposed to using nix as part of my build process as long as my build process still works without nix. My main machine can't even run nix and I can't do anything about that.
jgeerds has quit [Ping timeout: 265 seconds]
<codygman__> I empathize with you if you simply can't install nix package manager on those systems because you don't have root access and can't get it approved at $work.
<dsal> Yeah, I *technically* could on my work machine, but the security people would be asking me questions before the build finished.
<energizer> codygman__: most people don't have nix installed, forcing everyone to use nix is implausible
invra has joined #nixos
<energizer> dsal: there are answers to the security questions
<simpson> codygman__: We will not support every proprietary kernel and userland; we can't. I gather that the problem here is one of a proprietary OS.
<codygman__> simpson Right, I wasn't expecting that of anyone. I didn't conclude it was a proprietary OS, just that there was a security team who wouldn't like `/nix` getting populated.
<MichaelRaskin> We don't even support all BSDs, and those that kind of work have limited coverage.
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/88661bfb644 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<dsal> Proprietary OS is just one of the problems.
<energizer> dsal: anyway, the idea is default.nix describes how nix should build a package. often it can be quite short, inferring the relevant information from the language-specific lockfiles in the directory. shell.nix imports default.nix and creates a system shell that provides access to the built package
<{^_^}> [nixpkgs] @ericdallo opened pull request #85108 → clojure-lsp: 20200314T202821 -> 20200412T033138 → https://git.io/Jvjz5
<dsal> Different things, though. I like nixos so far. It'd be kind of neat if I could use this stuff elsewhere, but I'm OK when in Rome.
m0rphism has quit [Ping timeout: 256 seconds]
<codygman__> energizer Everyone didn't have python or perl on their systems at one time. If something provides enough value and gains enough adoption, you can expect everyone your software targets to reasonably have nix. I think you get there by showing developers how they can develop more reliably with nix while not breaking their current distribution method
<codygman__> (stack here), then over time they might recommend nix over stack for instance because it's more reliable.
<dsal> energizer: I'm still in massive absorption phase. Is there a good overview?
<dsal> codygman__: when I didn't have python or perl, I installed them as my own user in my home directory.
<MichaelRaskin> You actually can have Nix with the store in your ~ (but then you rebuild the world)
<dsal> I have homebrew installed as my own user in my home directory on my mac, because I don't own /usr/local
<simpson> codygman__: That is too much work. Instead, make things which work for you, and design the things that you make to be generic.
<energizer> dsal: unfortunately the documentation is spread out across three manuals (nix, nixos, nixpkgs) and various third party repositories
<simpson> codygman__: "We do not influence the course of events by persuading people that we are right when we make what they regard as radical proposals. Rather, we exert influence by keeping options available when something has to be done at a time of crisis." http://www.erights.org/
<zeta_0> does anyone know a good link to shellHook nix documentation, the nix manual only shows one example of it, it's syntax is different then the sessionVariables option in home.nix, so that's confusing me
<cole-h> Isn't shellHook just bash script?
<dsal> There's kind of a baby/bathwater thing here, though. You built a system that has a lot of amazing properties, and then hardcoded a value into that causes it to not be universally applicable. I don't think "value must be hardcoded" is really that critical to such a system.
<MichaelRaskin> dsal: if you want to have shared binary cache, you have to hardcode _some_ value
<energizer> dsal: but basically: when working on a project, make a default.nix and a shell.nix that imports default.nix (https://nixos.wiki/wiki/Development_environment_with_nix-shell) and then run nix-shell or use lorri to activate an environment that has the package set up
<MichaelRaskin> If you don't, you can run Nix with non-default store path
<dsal> energizer: thanks. I'll look into that some.
<simpson> dsal: The hardcoded value being "/nix"? What else would you set it to?
erictapen has quit [Ping timeout: 256 seconds]
<codygman__> dsal: re: overview. I bet you'll get recommended the manual for Haskell packages and there is value there, but it alone didn't get me where I needed to be since I had many custom packages that required various workarounds for work. Try this reading this https://discourse.nixos.org/t/nix-haskell-development-2020/6170 and then try using this template
<codygman__> to play around with something immediately working: https://github.com/utdemir/hs-nix-template/
<dsal> codygman__: thanks
freeman42xx has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #85109 → victoriametrics: 1.34.5 -> 1.34.7 → https://git.io/JvjzA
<dsal> simpson: Well, $NIX ? Something with a slightly later binding that could be runtime relocated.
<lukegb> So, out of interest and for my own curiosity: the latest build for nixos:trunk-combined:tested failed https://hydra.nixos.org/build/116575957 but it's not obvious why - is it just a cached build flake?
<energizer> dsal: various languages have tools that can be used in default.nix to get dependencies etc. naersk (rust) poetry2nix (python) , snack (haskell),
<MichaelRaskin> dsal: relocations do not work
<simpson> dsal: Sure, for consenting software. But not for the typical pile of C that folks seem to rely upon.
<MichaelRaskin> You _can_ set a few environment variables listed in the bottom of man nix-store and _build_ for a relocated path
LysergicDreams has quit [Ping timeout: 265 seconds]
<simpson> Nix is transitional. In a world with better languages, better modularity, and better understanding of structures, we wouldn't need it; *all* software already would be far past this point. But that is another timeline, not ours.
<dsal> :)
<dsal> In the meantime, I'm going to enjoy nixos on my new build. It does seem mostly right.
<energizer> simpson: that said, does it really need to be built out of duct tape and bash
LysergicDreams has joined #nixos
<MichaelRaskin> dsal: I have at some point run a non-standard Nix store path for cross-compiling to a e-Book and this worked
<{^_^}> [nixpkgs] @marsam opened pull request #85110 → rsstail: enable on darwin → https://git.io/Jvjzj
<MichaelRaskin> After a lot of building stuff from scratch…
<codygman__> simpson: re: erights... Big caveat that's my first time hearing that or thinking about it. My kneejerk reaction is that sounds good and I'd like it to be true, but per my mental model of the world that's not actually going to result in adoption of nix or any other solution that much. It very much sounds like "if you build it they will come".
<simpson> codygman__: No, "if you build it, and make cool stuff, and make them jealous, then they will come"
<simpson> "and be upset because they don't understand, and so forth"
<MichaelRaskin> Not really that.
bdju has quit [Read error: Connection reset by peer]
bdju has joined #nixos
<MichaelRaskin> You convince enough people that someone uses the fitting hobby tool in a «you want me to hit the deadline — then shut up» situation…
<MichaelRaskin> (afterwards nobody ever has time to replace that part and …)
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<codygman__> simpson: I find in that situation you'll get some people to join you, but many others rationalize their current solution is better or it's otherwise not worth even trying to adopt $betterSolutionForTheirUseCase". I have to head off for now though, will check back for any responses later though. Thanks for the discussion.