worldofpeace_ changed the topic of #nixos to: NixOS stable: 20.03 ✨ https://discourse.nixos.org/t/nixos-20-03-release/6785 || 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
<bqv> i get the feeling he's not even plugged in 1/1, but who knows
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/9642f121eb1 (from 17 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
<cole-h> He shows up every once in a while.
lord| has quit [Read error: Connection reset by peer]
<niso> cole-h: the package did indeed build fine: #85896
<{^_^}> https://github.com/NixOS/nixpkgs/pull/85896 (by paumr, 51 minutes ago, open): marked stem as not-broken
<cole-h> Would be great if you could amend your commit to follow the style in the above document
lord| has joined #nixos
peelz has quit [Remote host closed the connection]
<niso> cole-h: will do, thx!
reallymemorable has joined #nixos
cantstanya has quit [Remote host closed the connection]
<cole-h> niso: Also got one more thing (posted a review on your PR)
cantstanya has joined #nixos
<niso> cole-h: just commented on it (was already chaned in master -thus didn't want to change it to not mess with the git history)
<niso> *changed
<cole-h> niso: Good catch, I thought you were targeting master x)
mrCyborg has quit [Ping timeout: 272 seconds]
tertl3 has joined #nixos
<niso> cole-h: nope, 20.03 - fyi: this caused qutebrowser to break during the update
<cole-h> Nice
<niso> not so nice, alacritty is acting up too - i'm currently bisceting that
<cole-h> stem shouldn't affect alacritty
<niso> yes, different bug
<cole-h> What's the problem?
<cole-h> (with alacritty)
<niso> it closes each time the window-manager is restarted (i assume it might be fixed with 0.4.2) - currently trying to check that
<{^_^}> [nixpkgs] @zowoq opened pull request #85901 → libslirp: 4.2.0 -> 4.3.0, slirp4netns: 1.0.0 -> 1.0.1 → https://git.io/JfIj7
<cole-h> niso: Do you mean it crashes? Or what. Unclear on what "closes each time the window-manager is restarted" means
<niso> cole-h: i couldn't find any logs about crashes (running it in verbose / checking my WM-logs / journalctl / etc) - it just quits
<niso> cole-h: if running in verbose it prints "Goodby"
<cole-h> What keys are you pressing to restart your wm?
<niso> Win+Q
<cole-h> X11 or Wayland?
<niso> cole-h: X11
<niso> cole-h: fixed the commit message
<cole-h> niso: Have you tried 0.4.2 yet?
<cole-h> Because your problem sounds similar to alacritty#3188
<niso> cole-h: i'm on it (i wanted to build it withint a nix-shell before - however i ditched that and started updating the package instead)
pjan has quit [Remote host closed the connection]
<cole-h> alacritty is already 0.4.2 on master, so you might have a better time backporting it
<niso> i'll submit a PR once sucessfull
<cole-h> (updated by yours truly)
<cole-h> If you still have the problem, you might want to file an issue against Alacritty's tracker, or even ask in #alacritty
<niso> btw, another question: locally i refactored godot into: godot.godot-server godot.godot-client godot.godot-headless
<niso> i assume this would be discuraged for breaking backwards compatibility?
<cole-h> ¯\_(ツ)_/¯
<cole-h> Sorry
<cole-h> You could always open a PR for it and see what others say.
<niso> i'm kinda wondering in general if there are conventions for restructuring the repos in place (e.g. i find it confusing that often there is: some_tool aswell as some-tool)
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfLel
Wulfsta has joined #nixos
<niso> alright - will do once sufficiently tested. just wanted to ask incase you are aware of anything
corpix has joined #nixos
<gchristensen> nice
<gchristensen> oops
<cole-h> ;^)
proofofkeags has quit [Remote host closed the connection]
<Wulfsta> Can someone give me a hand packaging Elmer FEM? Here is my current attempt: https://github.com/Wulfsta/nixpkgs/blob/master/pkgs/applications/science/physics/elmerfem/default.nix
<Wulfsta> Currently I'm failing 58% of the way through the build
<Wulfsta> I see a `make: *** [Makefile:180: all] Error 2`
<cole-h> niso: Yeah, go ahead and resolve that
<niso> cole-h: alright, thx!
<niso> cole-h: another question: if i version-bump alacritty, should i create a PR towards the master and ask for it to be backported? or is there a better flow?
<cole-h> (I can't resolve my own comments, or else I would have lol)
<cole-h> niso: Master already has Alacritty 0.4.2, because of me lol
codygman has quit [Read error: Connection reset by peer]
<cole-h> And I don't know if we accept version-bumping backports
codygman has joined #nixos
<Wulfsta> For anyone who is able to lend a hand, a few more lines of error can be found here: https://github.com/Wulfsta/nixpkgs/commit/c7c9885ae780bb1253f021e83e7a4faf043e74a7
<niso> cole-h: oh nice, guess i should have checked the master first :P
codygman has quit [Read error: Connection reset by peer]
<niso> well let's see if it fixes the bug, if it does it would IMO make sense
codygman has joined #nixos
<cole-h> niso: If it still happens, it would be nice to see your alacritty.yml
* niso is still building the thing
<{^_^}> [nixpkgs] @hlolli opened pull request #85902 → (WIP)[help-wanted] openjdk8 compile statically → https://git.io/JfLvO
<pingveno> Is there a way to remotely restart a nixos computer that has full disk encryption? I have a NixOS desktop at work that I'm remoting into and I just upgraded it, but I can't restart it because a normal restart would be stopped at the LUKS passphrase stage.
<energizer> pingveno: sometimes people leave /boot unencrypted for that reason and initrd.network.ssh.enable
lunik1 has quit [Read error: Connection reset by peer]
lunik1 has joined #nixos
drakonis has quit [Quit: WeeChat 2.8]
dooygoy has joined #nixos
<rotaerk> in configuration.nix, the imports attribute lets you import other configuration.nix files ... if both the importing file and the imported file set a list attribute, such as the systemPackages, does it merge the lists or does the importing file override the list from the imported file?
<gchristensen> it does merge
<cole-h> I believe lists get merged
<rotaerk> hmm cool; thanks
<niso> cole-h: 0.4.2 works, i'll submit a PR to backport it
<{^_^}> [nixpkgs] @worldofpeace merged pull request #76082 → ungoogled-chromium: init at 81.0.4044.92-2 → https://git.io/Je5A5
<niso> cole-h: want me to mention/assign you?
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JfLv2
<cole-h> niso: I'll get tagged anyways, since that commit made me a maintainer ;)
<cole-h> niso: Make sure to follow the instructions in CONTRIBUTING.md
<niso> hehe alright :)
<cole-h> (and also don't be surprised if it's rejected; I truly don't know if we allow backports of version bumps)
<niso> we'll see - as is alacritty would be unusable for me (and probably others)
<cole-h> Well, it's related to keybindings. An easy way to not run into that issue is to change your restart bind to not-Super+Q
proofofkeags has joined #nixos
sigmundv_ has quit [Read error: Connection reset by peer]
sigmundv_ has joined #nixos
<{^_^}> [nixpkgs] @kini opened pull request #85903 → acl2: build standard library as well → https://git.io/JfLv6
infandum has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @aanderse opened pull request #85904 → nixos/gitea: add settings option → https://git.io/JfLvi
proofofkeags has quit [Ping timeout: 256 seconds]
sigmundv__ has joined #nixos
sigmundv_ has quit [Ping timeout: 265 seconds]
<evanjs> is `modify` all I need to update a nixops virtualbox deployment? trying to update virtualbox.vmFlags
<evanjs> ** <deployment-name>.deployment.virtualbox.vmFlags
jluttine has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @jtojnar merged pull request #84771 → fmt: 6.1.2 -> 6.2.0 → https://git.io/JvxAr
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/JfLvh
<{^_^}> [nixpkgs] @marsam opened pull request #85905 → sd: 0.7.2 -> 0.7.4 → https://git.io/JfLvj
rogue_koder_ has quit [Ping timeout: 250 seconds]
<kini> Does grahamcofborg have ulimits / time limits / etc.? I just opened a draft PR and thought ofborg wouldn't try to test it... given enough nix-build workers the build can take 100+ GB of RAM and a fair amount of time
gustavderdrache has quit [Quit: Leaving.]
m0rphism has quit [Ping timeout: 265 seconds]
<cole-h> Time limits, yes. Ulimits, I dunno. Exact figures, I also dunno.
jjakob has quit [Ping timeout: 272 seconds]
<niso> cole-h: uhm, cargo's hash changed (i'm trying to build the cherry-picked version) - this is not normal, right?
jjakob has joined #nixos
<cole-h> There were some Rust packaging changes. I don't know if they made it into 20.03. If so, the backport becomes less simple.
<evanjs> wait what about rust :O
<cole-h> s/If so/If not/
<evanjs> also, think I got the nixops thing... had to modify the _network_. derp
jluttine has joined #nixos
<cole-h> evanjs: niso is trying to backport Alacritty 0.4.2, but the cargo hash is different between the branches because of *waves hands* packaging changes
<evanjs> e.g. nixops modify -d <network-uuid> ./network-expression path
<evanjs> yeah I figured as soon as I saw hash
<evanjs> those changes should have made it in IIRC
<evanjs> but yeah the hash will have changed
sarcasticadmin has quit [Ping timeout: 256 seconds]
proofofkeags has joined #nixos
<niso> evanjs: if the changes made it in, why would the hash change?
<evanjs> I think this is the relevant issue? https://github.com/NixOS/nixpkgs/issues/79975
<{^_^}> #79975 (by bhipple, 10 weeks ago, closed): Rust Application Migration to fetchCargoTarball Implementation
<evanjs> I get what you mean now lol
dooygoy1 has joined #nixos
<evanjs> The change indeed is master only atm
<evanjs> :D
<{^_^}> [nixpkgs] @xrelkd opened pull request #85906 → cargo-expand: 0.5.0 -> 0.6.0 → https://git.io/JfLf3
rogue_koder_ has joined #nixos
dooygoy has quit [Ping timeout: 265 seconds]
jjakob has quit [Ping timeout: 272 seconds]
<evanjs> jk that nixops command didn't work either :D
marsh has quit [Remote host closed the connection]
marsh has joined #nixos
jjakob has joined #nixos
sigmundv__ has quit [Ping timeout: 265 seconds]
<niso> evanjs: got it, thanks!
rogue_koder_ has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @bhipple closed pull request #74894 → pythonPackages.numpy: consistent mklSupport attribute → https://git.io/JeMSD
proofofkeags has quit [Remote host closed the connection]
dooygoy1 has quit [Ping timeout: 258 seconds]
proofofkeags has joined #nixos
shibboleth has quit [Quit: shibboleth]
h0m1 has quit [Ping timeout: 272 seconds]
drakonis has joined #nixos
h0m1 has joined #nixos
proofofkeags has quit [Ping timeout: 256 seconds]
morgrimm has quit [Ping timeout: 256 seconds]
<craige> Loved your blog post on erasing the darlings gchristensen++ - worked well at both as a high level conceptual piece and instructional. I've shared it widdely for both reasons.
<{^_^}> gchristensen's karma got increased to 278
proofofkeags has joined #nixos
<gchristensen> wonderful, thanks, craige!
jkachmar has quit [Quit: Connection closed for inactivity]
rogue_koder_ has joined #nixos
<Wulfsta> How do I get the path of the package I'm building in default.nix to set cmakeFlags?
<craige> and I expect to be re-using most if not all of your examples. It was a road I was travelling down myself. It's nice to have someone light the way, gchristensen
<cole-h> Wulfsta: You might be looking for `placeholder "out"` (replace "out" with whatever output you're using)
<Wulfsta> I need to do: -DELMER_INSTALL_LIB_DIR=/nix/store/${hash}-elmerfem-8.4/lib
<Wulfsta> cole-h: I'll search it up and see if it is, thanks!
orivej has quit [Ping timeout: 265 seconds]
morgrimm has joined #nixos
<{^_^}> [nixpkgs] @savannidgerinel opened pull request #85907 → ZenStates: init at 0.1.0 → https://git.io/JfLJU
<{^_^}> [nixpkgs] @paumr opened pull request #85908 → alacritty: backport 0.4.2 → https://git.io/JfLJk
mrpi has quit [Quit: killed]
Scriptkiddi has quit [Quit: killed]
ajs124 has quit [Quit: killed]
das_j has quit [Quit: killed]
Scriptkiddi has joined #nixos
das_j has joined #nixos
ajs124 has joined #nixos
mrpi has joined #nixos
justanotheruser has quit [Ping timeout: 265 seconds]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
justanotheruser has joined #nixos
<Wulfsta> cole-h: Thanks, that did the trick! I suspect it isn't enough to get this compiling, but that's one step closer
<niso> cole-h: alright, submitted the PR - borg doesn't find you as a maintainer
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 265 seconds]
felixfoertsch23 is now known as felixfoertsch
<rotaerk> hmm apparently lists aren't the only things that get merged
<rotaerk> two files are setting xkbOptions and they got combined
<clever> strings concatenated with ","
<clever> rotaerk: thats a special type, that will seperate every value with a ,
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
<{^_^}> [nixpkgs] @iblech opened pull request #85909 → websocat: fix wrapping → https://git.io/JfLJd
<lovesegfault> Can anyone give me a hand with this PR: https://github.com/NixOS/nixpkgs/pull/78204
<{^_^}> #78204 (by guibou, 13 weeks ago, open): binutils: 2.31.1 -> 2.33.1
aw has joined #nixos
<lovesegfault> I'm trying to understand what could cause those fails in the coreutils tests
<lovesegfault> But I don't know enough about how Nix sets up the env for builds to have any ideas
Fare has joined #nixos
spacefrogg has joined #nixos
<rotaerk> clever, is there a way to mess with that, such as if I want a file to *replace* what another file set
<rotaerk> if not, that's fine I guess; I'll just have to change where I specify this setting
gentauro has quit [Read error: Connection reset by peer]
<clever> rotaerk: mkForce can replace all other values, as with any other option
<rotaerk> ah thanks
<rotaerk> I have a configuration.nix in which I flip caps-lock and lctrl keys
gentauro has joined #nixos
<rotaerk> and I have a configuration.vbox.nix where I don't want it to do that, because I have them flipped in Windows, and they cancel out
<clever> rotaerk: for that, i would just use lib.mkIf
<clever> rotaerk: make the value of xkbOptions depend on virtualization.virtualbox.guest.enable
<rotaerk> hmm interesting
<Fare> Hi. What's the official way to invoke nix-env? If I do `nix-env -f $NIXPKG -iA gerbil-unstable` it works, but even though I have export NIX_PATH="nixpkgs=$NIXPKGS" it doesn't work if I omit the -f argument.
<Fare> I would like to be able to skip the constant -f argument and/or to tell my users how not to have to use it.
<clever> Fare: nix-env -iA nixpkgs.foo looks in ~/.nix-defexpr/ not NIX_PATH
<clever> Fare: nix-env -f '<nixpkgs>' -iA foo, will look in NIX_PATH
andi- has quit [Remote host closed the connection]
<clever> [clever@amd-nixos:~]$ cat ~/.nix-defexpr/test/foo/default.nix
<clever> import /home/clever/apps/nixpkgs
<clever> Fare: but this will add a custom foo, so you can nix-env -iA foo.hello
<clever> and that custom one could import <nixpkgs>
andi- has joined #nixos
<cole-h> niso: Hah, guess I was too slow on becoming a maintainer. Feel free to drop me from the maintainer's list in alacritty. It'll be fixed for next time.
<{^_^}> [nixpkgs] @danielfullmer opened pull request #85910 → snes9x-gtk: 1.57 -> 1.60 → https://git.io/JfLUf
<rotaerk> clever, actually, it's not just one option for normal, and no option for vbox ... I need an if-else
<rotaerk> but don't see a mkIfElse
<clever> rotaerk: you can also use plain `if cond then val else val`
<clever> mkIf just helps deal with infinite recursion when your getting into sticky areas
<rotaerk> ah
jlv has joined #nixos
<jlv> Are there any color conversion libraries for Nix? In particular, I'm looking to convert hsl to hex.
<abathur> like, *in* Nix, or an external command or?
<jlv> abathur: In Nix. I want to define colors in my configuration with hsl, but most application configurations expect hex.
<Fare> what is the official way to configure ~/.nix-defexpr so the default is, say, channels/nixpkgs-unstable ? Or my own checkout?
<cole-h> https://nixos.wiki/wiki/Nix_channels If you want to use an actual channel
<clever> Fare: by default, ~/.nix-defexpr/ will contain all of your channels
<Fare> right now, I see two symlinks channels and channels_root in it.
<clever> Fare: and the channels for your user and root, are within those 2 symlinks
turona has quit [Ping timeout: 272 seconds]
<cole-h> If you want to use a checkout, I believe you'll probably want to set NIX_PATH manually
<Fare> I want to keep using my own repo, but I want to be able to explain to newbies how to point to mine or to channels
<clever> Fare: i would make your default.nix always load a specific nixpkgs rev, and ignore <nixpkgs> entirely
<clever> Fare: so the user cant break things by running 17.03
<rotaerk> clever, thanks; it worked
<abathur> jiv: I don't recall seeing one, but I don't think I've ever looked
<Fare> I want to be able to tell my users "just nix-env -i gerbil-unstable"
<Fare> but apparently, that's not that easy.
<Fare> especially since they need a *recent* version of gerbil-unstable.
<clever> Fare: that would only work if your already in nixpkgs, and they have updated to that ver
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<Fare> so I can't let them rely on 20.03
<clever> Fare: you could do `nix-env -f http://github.com/owner/repo/archive/rev.tar.gz -iA foo`
<clever> to build whatever is in the default.nix of that repo
<Fare> so I want to be able to tell them "do these things, and nix-env will use github.com/fare-patches/nixpkgs"
jlv38 has joined #nixos
turona has joined #nixos
<jlv38> abathur: I couldn't find one with grep on nixpkgs, but I hoped something might exist elsewhere. In general, I'm not sure where I'd look for Nix libraries outside of nixpkgs lib.
jlv has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @zowoq opened pull request #85911 → dnscontrol: use subPackages, upstream vendor → https://git.io/JfLUn
<abathur> jiv38: not aware of many util functions outside of the nixpkgs lib dir, within nixpkgs--doesn't mean someone hasn't written one
<Fare> clever: whoa, I didn't know that would work!
drakonis has quit [Read error: Connection reset by peer]
<abathur> if you're trying to use it in some obvious places, like a standard config file for some program that uses lots of colors
peelz has joined #nixos
<Fare> unrelated question, does nix work on WSL ? On some other Windows setup?
<peelz> is this a bad idea? mkEnableOption "" // { default = true; }
<abathur> it may help to fish around for nix dotfiles that configure it as well to see if someone has written a color converter, or if everyone is just hardcoding them
<jlv38> Fare: It didn't when I last tried, about a year ago or so.
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/60fe3a12352 (from 17 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
iuunno has joined #nixos
<abathur> I don't know enough about the math involved in HSL/HEX to know if the translator would be fairly trivial to write or not
<iuunno> anyone have suggestions for getting flash to work in firefox?
<jlv38> abathur: I actually started writing one. I got to the point where I have to convert the 0-1 rgb values to hex values, but I realized that there could be all kinds of edge cases with rounding, and I don't think there is even a decimal to hex converter in Nix.
<iuunno> https://nixos.wiki/wiki/Chromium this is all i could find related to it, but neither suggestion seemed to cause flash to show up in my firefox plugins
<cole-h> Anybody have a PDF editor they recommend?
<abathur> yeah...
drakonis has joined #nixos
<jlv38> iuunno: `programs.firefox.enableAdobeFlash` with home-manager. Last I checked, it breaks often because Adobe takes down the download links, but that may be fixed now.
<jlv38> If nothing else, you can check how they do it.
<iuunno> ok so home manager is the way then? i havent set that up yet
<iuunno> is that doc i posted outdated?
<iuunno> i was having problems with the build not being able to source the adobe link but i think that is fixed now
<jlv38> iuunno: home-manager is one of the best things about NixOS, in my experience. The wiki is usually outdated.
<iuunno> with the method they mention for doing it in configuration.nix
<iuunno> ok, im coming from arch so used to reading wikis to learn what im supposed to be doing
<iuunno> is the irc generally where its at to figure out what im doing wrong?
<cole-h> There's also a Discourse
<iuunno> ah i see
<iuunno> ok thanks
<jlv38> iuunno: IRC is usually very good. The official manuals, and the `man configuration.nix` and `man home-configuration.nix` pages are very useful.
zeta_0 has joined #nixos
zeta_0 has left #nixos [#nixos]
<jlv38> Often, I can figure something out by just searching the man page for an option.
<jared-w> Basically the git repos are the source of truth. The irc is the explanation for why. And the wiki is proof that documentation is always outdated :p
<abathur> documentation is still a bit of a construction project :)
<iuunno> ok ill stop trying to use the wiki lol
KindOne has joined #nixos
<iuunno> alright im gonna go see if i can get home manager setup
<jared-w> There's a few pages on it that are pretty good, but the rest need work in some way or another.
<iuunno> and maybe set up my old weechat config again
<iuunno> farewell
iuunno has quit [Remote host closed the connection]
<Ashy> Fare: yeah i have nix running on WSL ubuntu
<energizer> what is the magic that causes arch wiki to be so consistently helpful?
<drakonis> the arch wiki covers basic use cases
<cole-h> The magic is commonly referred to as "human beings"
<energizer> but like, there are way more people who use ubuntu, but the arch wiki is way more helpful than the ubuntu docs
<drakonis> because of arch's fame
<drakonis> ubuntu has a utter lack of docs
<cole-h> Because Ubuntu is easy mode Linux, and Arch is for tinkerers
<drakonis> debian docs should be what you reference for ubuntu
<drakonis> arch's wiki exists to compensate for the lack of setup
morgrimm has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @chkno opened pull request #85912 → allegro4: 4.4.2 -> 4.4.3.1 (fixes atanks & racer) → https://git.io/JfLUF
<drakonis> hmm, i'm curious about how to properly create a emacs environment
<drakonis> i really need to start using org-mode but i'm not sure how to properly handle packages
<energizer> emacsWithPackages
shafox has joined #nixos
<jlv38> Does Nix have a floor or round function?
<cole-h> I don't think Nix even has floats...
<Ashy> energizer: the secret of the arch wiki is probably the top 20-40 contributors by total edit count: https://wiki.archlinux.org/index.php/ArchWiki:Statistics
<cole-h> > 1.000010000001
<{^_^}> 1.00001
<cole-h> Huh
<abathur> yhehe
<Ashy> arch wiki is amazing though
<cole-h> My repl doesn't do that
<energizer> nix-repl> builtins.typeOf 1.2 -> "float"
<drakonis> > builtins.typeOf 1.2 -> "float"
<{^_^}> value is a string while a Boolean was expected, at (string):306:1
<drakonis> zzz
<drakonis> > builtins.typeOf 1.2
<{^_^}> "float"
<dmj`> does anybody have a docker image with ubuntu that also has nix installed
<dmj`> willing to trade 4 camels, DM for more details
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<drakonis> neat
rogue_koder_ has quit [Ping timeout: 240 seconds]
rogue_koder_ has joined #nixos
<jlv38> Ok. I really can't figure out how to convert a float to an integer. There's no `ceil`, `floor`, `round`, `toInteger`, anything.
<energizer> have you tried a recursive function that counts up until the greatest integer that's less than your float
<energizer> or, first splitString "." toString
<energizer> sorry, not helping :D
<jlv38> energizer: does Nix really not support, you know.... math?
<energizer> idk
<jlv38> energizer: I'm writing the recursive function...
<energizer> jlv38: just checking, you realize i was joking right?
<jlv38> energizer: I literally cannot find any way to convert a float to an integer. I don't think Nix can do it.
<jlv38> I've searched the Nix manual. The builtins. The lib.
<energizer> float -> string -> list of string -> string -> int is probably a better way
<energizer> as in int(str(1.2).split('.')[0])
<energizer> or however you write that in nix
morgrimm has joined #nixos
<abathur> hmm
<jlv38> energizer: ok, but if I get an error, I'm doing the recursion...
<energizer> lmao
<abathur> I mean, Nix supports math, but it's a packaging language
<abathur> it's surprisingly focused in some ways
<clever> abathur: builtins.importNative
<clever> ,importNative
<{^_^}> clever: Did you mean imperative?
<{^_^}> nix-env has multiple drawbacks as an imperative package manager. nix-env -u will sometimes upgrade to the wrong thing; the outputs to install are very finicky to override; and packages that have been removed or are otherwise unavailable will remain in your profile without any warnings. Consider using a ,declarative setup instead.
<clever> {^_^}: no :P
<abathur> lol
<evils> how would one change which version of virtualboxGuestAdditions 'virtualisation.virtualbox.guest.enable` uses?
<jlv38> energizer: wait. Can Nix even convert a string to an integer?
<clever> abathur: this lets you run c++ code from a nix expr
<abathur> jlv38 may need that more than I :)
<hyper_ch> I don't think my notebook is currently bored https://images.sjau.ch/img/810effbc.png --> this happens if you nixos-rebuild from git master ;)
<energizer> > lib.strings.toInt "5"
<{^_^}> 5
<{^_^}> [nixpkgs] @veprbl merged pull request #85364 → stig: use pytestCheckHook framework → https://git.io/JffYo
<{^_^}> [nixpkgs] @veprbl pushed commit from @ju1m to master « stig: use pytestCheckHook (#85364) »: https://git.io/JfLT0
morgrimm has quit [Ping timeout: 256 seconds]
iuunno has joined #nixos
<iuunno> so uh heres a question
<iuunno> when i installed nix i had to subscribe to the unstable channel because i needed a newer version of cwm than was in 19.xx
<iuunno> but now the newer version is in 20.xx
<clever> abathur: internally, importNative runs a c++ function, which can return any nix type, including a custom primop that accepts N args, and runs another c++ func
<jlv38> I'm slowly going mad trying to do basic math in Nix.
<iuunno> and the unstable channel has a problem with firefox and flash not getting updated to the correct source
<clever> abathur: it could also return a set containing multiple primops, to do diff things
<jlv38> I just wanted to define color values in a human friendly manner.
<abathur> clever: you may be able to help jvl38 better; he's trying to convert HSL -> HEx
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
<abathur> *jlv48
<iuunno> under root i now have "nixos" channel which points to 20.03, and under my user i have "nixpkgs" which points to unstable
<clever> jlv38: ^
<abathur> jesus
<iuunno> is that a normal setup?
<abathur> sorry, trying to play CS and type :P
<clever> abathur: most irc clients have tab completion
<clever> iuunno: fairly normal, you could also have both channels on root
<iuunno> how do i get home manager to use a specific channel?
<iuunno> because its using the one i dont want
<clever> iuunno: you would need to modify something to use <unstable> instead of <nixpkgs>
<iuunno> for firefox and flash i need the 20.03 channel
<clever> not sure what part has to be modified
<clever> ,unstable iuunno
<clever> iuunno: but you could also make just part of it use unstable, not all of it
<iuunno> my nixpkgs for my user IS unstable
<iuunno> but i dont think i nececarrily need it to be anymore cuz the one package i needed from unstable is now in 20.03
<clever> iuunno: then you could just undo that
<iuunno> sounds good
<iuunno> this faq looks helpful tho also
<clever> yeah, that lets you pull one thing from unstable, without changing the default
<iuunno> another thing im not entirely sure i get is the destinction between a nixpkgs channel and nixos channel
<clever> the only real difference is what tests have to pass before it updates
<jlv38> clever: would that c++ trick work from a `nixos-rebuild`?
<iuunno> they dont have a different set of packages usually then? at most they would have different versions of the same packages if one hasnt passed tests to be in sync with the other?
<clever> jlv38: yeah, it would work from any nix expr
<clever> jlv38: but IFD is probably a more sane option
<clever> ,ifd jlv38
<{^_^}> jlv38: 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."
<clever> iuunno: the nixos-20.03 channel is also a fork, based on what master had in march of 2020
<clever> iuunno: so it wont have anything that got added after march
waleee-cl has quit [Quit: Connection closed for inactivity]
<iuunno> mhm so the firefox and flash build/wrapper will break next time adobe changes the url for flashplayer
<iuunno> ?
<clever> iuunno: things like firefox and flash still get fixed in the release branches
<iuunno> so packages get updates to keep them working but not updated to new versions?
<jlv38> clever: so, theoretically, I could write a Python script to convert hsl to hex, and use `import-from-derivation` to use it to convert hsl to hex in Nix?
<clever> jlv38: yep
<clever> jlv38: builtins.readFile (runCommand "name" { buildInputs = [ python ]; } "python ${./foo.py} ${toString 1234} > $out")
<clever> that will run python on a thing, generate some output, then read the output into nix
iuunno has quit [Remote host closed the connection]
<abathur> or use an existing command, since there's inevitably something?
<abathur> can pastel do that? IIRC that's in nix
iqubic has quit [Read error: Connection reset by peer]
iqubic has joined #nixos
<jlv38> I think Python even has a built in function to convert hsl to hex, but I'm almost done writing it in Nix. Definitly something to keep in mind for the future though.
<abathur> maybe; so many batteries...
<abathur> but the startup time for full python can be a bit
<abathur> pastel's in rust, maybe it's quicker :D
proofofkeags has quit [Remote host closed the connection]
<abathur> reliably takes me like 100+ms to run `python -c "print(1+1)"`
<abathur> not sure how many colors you've got, but could add up if you've got a lot
<rotaerk> bothers me that not all applications pay attention to the Xcursor settings in .Xresources
<rotaerk> so my cursor changes depending on what window it's over
<Wulfsta> rotaerk: Can't you set that in .xinit?
proofofkeags has joined #nixos
iuunno has joined #nixos
<iuunno> alright so
<iuunno> home manager set up
<iuunno> removed anything firefox related that might be causing some sort of conflict(?) from other places
<iuunno> configured with enableAdobeFlash in home.nix
<abathur> fireworks?
<iuunno> still no flash? built fine, i saw it mentioning it downloading flash from adobe
<iuunno> but no flash in firefox ~_~
wolfshappen has quit [Ping timeout: 250 seconds]
morgrimm has joined #nixos
<rotaerk> Wulfsta, don't have a .xinit; I don't use xinit afaik
proofofkeags has quit [Ping timeout: 250 seconds]
wolfshappen has joined #nixos
<jlv38> iuunno: the `enableAdoveFlash` option has worked for me in the past. Are you sure you're running the Firefox configured by home-manager? I'm not sure what would happen if you have it installed in your system packages and home-manager.
<iuunno> i uninstalled it from nix-env first, and also removed it from configuration.nix and did a rebuild switch and reboot
<iuunno> is there any other place i might b forgetting?
morgrimm has quit [Ping timeout: 256 seconds]
<cole-h> I will be soooo happy when unstable gets unblocked
<iuunno> it actually looks like when i run nix-env -qas firefox that there are a bunch with S flag, but none installed at all
<jlv38> iuunno: Hmm. If you remove Firefox from your home-manager configuration, do you still have Firefox?
<iuunno> idk how that is possible when i am typing this in firefox rn?
<drakonis> hmm, what do you mean?
<iuunno> hmm ill try it
<drakonis> you can remove it but it remains in the store until you collect its garbage
<iuunno> maybe i need to collect garbage then
<drakonis> uh
<drakonis> have you tried reloading?
<iuunno> i rebuilt and then rebooted
<jlv38> iuunno: You shouldn't need to collect garbage. I meant, can you still open Firefox. As in, is it available to you as a user.
<iuunno> is that what you mean?
jbox has quit [Quit: WeeChat 2.8]
<drakonis> no
<drakonis> i mean, reload firefox
<iuunno> reload firefox? like kill and restart it? or that thing that makes you a new firefox profile or something like that?
<drakonis> yes, kill and restart
<iuunno> yeah i killed and restarted
<iuunno> im gonna try the thing that sets it to default settings tho
<clever> iuunno: what does `type firefox` return when ran in a shell?
xO1 has joined #nixos
<iuunno> irefox is /home/otis/.nix-profile/bin/firefox
<iuunno> missed the f
<iuunno> but you get the point
<clever> then its installed into nix-env, either with -i or home-manager
<iuunno> its gotta be home-manager cuz i just uninstalled it with nix-env -e firefox
<iuunno> and also nix-env -e firefox-bin
<rotaerk> huh. didn't know about the type command. more useful than `which`
<contrun[m]> I am trying to build a vm with local kernel source. Basically I replaced `linuxPackages_latest` with my `cleanSource ./.`. I encountered an error while trying to boot the created vm. This is because the modules are not built into my initrd. The error message is `modprobe: FATAL: Module ide_generic not found in directory /nix/store/w0h84jcr6wnajzycx8p6c69mf7npd2ap-kernel-modules/lib/modules/4.8.0
<contrun[m]> root module: mmc_block`. This is the same error as https://github.com/NixOS/nixpkgs/issues/19213. What should I do to solve this problem?
<{^_^}> #19213 (by the-kenny, 3 years ago, closed): Using linuxPackages_latest (4.8) results in unbootable system (nixpkgs/master)
<contrun[m]> My nix expressions to create the vm is https://contrun.github.io/wiki/kernel-development-with-nix/.
iuunno has left #nixos [#nixos]
iuunno has joined #nixos
<clever> iuunno: does `nix-env -q` list firefox?
<iuunno> Nope
<clever> iuunno: what about `ls -l /home/otis/.nix-profile/bin/firefox` ?
<iuunno> Links to a bin in home manager
<clever> iuunno: definitely home-manager then
<contrun[m]> How does `modprobe` works anyway? I surely have `virtio_console` in my directory.
<iuunno> Something just happened when I did the restore to default settings thing inside of Firefox
<iuunno> Before I had set enable Google talk plugin
<iuunno> In configuration.nix
<iuunno> But I removed every Firefox related thing
<drakonis> contrun[m]: it invokes a kernel call for loading modules?
<iuunno> And for some reason widevine was still showing up in Firefox pugins
<iuunno> But now it's gone
<iuunno> Still no flash tho
<clever> iuunno: if home-manager is installing firefox, then it needs to configure all of the plugins
<iuunno> Yeah that makes sense, but what doesn't make sense is that I believe I should have flash player then
<contrun[m]> drakonis: My current kernel version is `5.6`. If I change my `boot.kernelPackages` to `5.5`, I will not be able to build a working initrd any more? Because I can not find modules path for `5.5`.
<clever> iuunno: and after you kill firefox, youve confirmed there is no firefox in `ps aux | grep fire` ?
ddellacosta has quit [Ping timeout: 250 seconds]
<iuunno> Mmmm yea
<contrun[m]> drakonis: In reality, I have changed kernel version for multiple times. I will try to build a vm with older version of kernel to see if `modprobe` works in that case.
<clever> iuunno: and how did you enable flash in home-manager?
<iuunno> All that shows up is a nix search I did for ff
<iuunno> programs.firefox = { enable = true; enableAdobeFlash = true; }
<iuunno> ;
<clever> iuunno: can you pastebin your entire home-manager config?
<iuunno> Eh sure why not
<iuunno> Hol up
iuunno27 has joined #nixos
<iuunno27> is my home.nix
<iuunno27> that line i sent before is basically all i put in
<clever> iuunno: i would expect that to just work
<iuunno27> same?
<iuunno27> lol
<iuunno27> i do have flashplayer installed with nix-env, it shows up under nix-env -q, i didnt uninstall it from when i was trying to get it set up before, could that be causing some conflict?
<clever> iuunno: firefox will only use the plugins that the wrapper shellscript exposes to it
<clever> iuunno: ~/.nix-profile/bin/firefox will be a shell script that exposes plugins to firefox
<iuunno27> well its the one in home-manager/bin/firefox no?
<iuunno27> im reading that right now
<iuunno27> a bunch of exports and then exec
<iuunno27> flashplayer is in there :/
<iuunno27> export MOZ_PLUGIN_PATH=$MOZ_PLUGIN_PATH${MOZ_PLUGIN_PATH:+:}'/nix/store/6dn1hzx29l1xlcfbz51w9i3brifmyz57-flashplayer-32.0.0.363/lib/mozilla/plugins'
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
iuunno has quit [Remote host closed the connection]
<iuunno27> there is a libflashplayer.so in that directory
<clever> iuunno27: if you fully quit firefox, then start it with that shell script?
<iuunno27> hmmm ok ill try
<iuunno27> brb since im in irc in firefox
iuunno27 has quit [Remote host closed the connection]
iuunno has joined #nixos
<iuunno> same thing
<iuunno> nope
<iuunno> no different
<clever> just let flash die already? :P
<iuunno> i need to play habbo hotel
chagra_ has joined #nixos
chagra has quit [Ping timeout: 256 seconds]
iuunno has quit [Remote host closed the connection]
endformationage has quit [Quit: WeeChat 2.6]
chagra_ has quit [Ping timeout: 260 seconds]
<dmj`> macromedia flash?
<srhb> dmj`: There's a name I haven't heard in a while..
<dmj`> srhb: legends never die
iuunno has joined #nixos
<iuunno> i dunno man
<contrun[m]> My problem is due to the kernel built by me does not have the necessary files for `modprobe` to find modules. Those files can be generated with `depmod`. I didn't see `linuxPackage_latest` run `depmod` also. What is the right way to do that?
<clever> contrun[m]: nixos runs depmod later on, when its combining all module packages
<clever> contrun[m]: /run/current-system/kernel-modules has the combined results and depmod caches
zupo has joined #nixos
<jlv38> Huh, the `mod` function has incorrect documentation and argument names.
<srhb> jlv38: Oh?
<qy[m]> Macromedia, what a company
<srhb> jlv38: It looks right to me
<jlv38> srhb: The documentation says it is used like `mod base num`, but the actual code is for `mod num base`.
<srhb> Or maybe you're taking issue with base specifically
<srhb> Yeah, okay, I can see that.
pbb has quit [Ping timeout: 265 seconds]
pbb_ has joined #nixos
<{^_^}> [nixpkgs] @renatoGarcia opened pull request #85913 → snakemake: 5.13.0 -> 5.15.0 → https://git.io/JfLkM
<iuunno> hmmmm idk whats going on but chromeium has flash already installed but it doesnt work either
<contrun[m]> clever: The building process of linuxPackage_latest must have ran `depmod`. I can confirm this as`/nix/store/r7lph3h97w4nc4aqy2ygfb2p3slmzffj-linux-5.6.3-modules` has the files generated by `depmod`. But when I use `linuxPackages_custom`, my kernel does not have the files generated by `depmod`.
<iuunno> i just checked on my arch install to see if the new version of flash wasnt just completely broken or something but it works fine there
<{^_^}> [nixpkgs] @zowoq opened pull request #85914 → nixos/containers: move libpod to nixos/podman → https://git.io/JfLIL
antpic01[m] has joined #nixos
<drakonis> hm, neat, podman's improving
slack1256 has joined #nixos
<clever> contrun[m]: how did you build the custom packages? it shouldnt be this complicated
<contrun[m]> clever: I see the build script for custom kernel has `/nix/store/7a74523c3gkx9gwk4prasg71xf064bnd-kmod-26/bin/depmod -b $out -C $out/etc/depmod.d -a $kernelVersion`. But it didn't run somehow.
<clever> contrun[m]: what are you trying to make custom on the kernel?
justanotheruser has quit [Ping timeout: 272 seconds]
<contrun[m]> clever: I want to build a nixos with the kernel in the master, so that I can hopefully fix some kernel bugs.
<iuunno> it doesnt work in vivaldi either, adobes check page says its disabled even when its set to allow
<clever> contrun[m]: try just boot.kernelPackages = pkgs.linuxPackages_latest.extend (self: super: { kernel = super.kernel.overrideAttrs (old: { src = /path/to/source; }); });
<srhb> kalbasit: ping :) I had a weird experience with buildGoModule yesterday that I don't know whether you've seen. GitHub was acting up, and using a TOFU sha, I got different modshas with a rerun, which is scary. Re-reading the logs it turned out that several deps errored out with 504 from github. It seems like this should fail much earlier.
<contrun[m]> clever: Thanks I will try it now.
hoijui has joined #nixos
palo1 has joined #nixos
astrofog has joined #nixos
asheshambasta has joined #nixos
palo has quit [Ping timeout: 256 seconds]
palo1 is now known as palo
<contrun[m]> clever: Unfortunately, I still have a lot of Kconfig to modify.
* contrun[m] uploaded an image: screenshot-2020-04-24-13-57-01.png (1339KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/hQRcvLexronNOyLfpiBAOEgw >
<clever> contrun[m]: try adding configfile = /path/to/config;
hoijui has quit [Quit: Leaving]
opthomasprime has joined #nixos
drakonis has quit [Quit: WeeChat 2.8]
* contrun[m] uploaded an image: screenshot-2020-04-24-14-03-54.png (205KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/jeXuRBtAGXDIUKvUWrnjsJtn >
<contrun[m]> clever: Strange. It does not read the configfile at all.
<clever> yeah, like that
<contrun[m]> Still the same error.
<clever> contrun[m]: id just do what i did on the rpi then, compile a kernel with everything you need baked in, zero modules
<clever> contrun[m]: then just dont tell nixos about it at all, tell grub to run the new kernel
<clever> contrun[m]: line 22&23 will copy a kernel and initrd to /boot, you would want to ditch 23, and modify 22 to use your special kernel
<{^_^}> [nixpkgs] @zowoq opened pull request #85916 → nixos/cri-o: share registries with nixos/containers → https://git.io/JfLIu
<clever> contrun[m]: ah wait, keep 23 too, but change it some
<clever> contrun[m]: then on line 17, change it to config. instead of netboot.config
<clever> contrun[m]: and change 23 to config.system.build.initialRamdisk
<hyper_ch> hi gchristensen
hio has joined #nixos
<clever> contrun[m]: and if you build everything into the kernel, the module problem wont exist
kenran has joined #nixos
<contrun[m]> clever: Thanks. I actually tried to replace all `=m` with `=y`. It didn't work out.
* contrun[m] uploaded an image: screenshot-2020-04-24-14-10-05.png (12KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/CVSVZPRzedEMpzIzmxPlbSpy >
<clever> contrun[m]: that would make the kernel huge, you want to figure out what is actually needed, and turn them on
<clever> contrun[m]: and if this is a VM, you have much simpler options
<clever> contrun[m]: that error looks weird, like maybe you turned on something you shouldnt have
<clever> it was a module, so it silently didnt even get loaded
<contrun[m]> clever: Yeah. I did turn on `nokaslr`. I will try rebuild it.
<clever> contrun[m]: and is this a VM?
justanotheruser has joined #nixos
<contrun[m]> clever: Yeah, I am running it on qemu.
<clever> contrun[m]: then using qemu directly would be much simpler, one min
<contrun[m]> clever: I read some article on debug kernel. It says `nokaslr` is helpful. Am I doing it wrong?
<clever> contrun[m]: nokaslr only helps if your using gdb and looking at addresses a lot
<contrun[m]> clever: How?
<clever> contrun[m]: when you use nixos-rebuild build-vm, and the -A vm attr, it expects a file called kernel in top-level
<clever> and extraSystemBuilderCmds is the very last thing to be ran in toplevel
<clever> contrun[m]: so you can use something like this, to just `rm $out/kernel ; cp ${./bzImage} $out/kernel`
opthomasprime has quit [Remote host closed the connection]
<clever> then when you try to run nixos thru its vm system, it uses your kernel instead
<clever> nix-build '<nixpkgs/nixos>' -A vm -I nixos-config=./configuration.nix
opthomasprime has joined #nixos
opthomasprime has left #nixos [#nixos]
<contrun[m]> clever: But I still need to build my own initrd, if I build some kernel modules with `=m`.
<clever> contrun[m]: figure out which modules matter, and bake those into the kernel
<contrun[m]> clever: Ok. I will try it. Thanks a lot.
<clever> contrun[m]: ive been doing similar when running nixos on an rpi with a custom set of firmware
<clever> i dont know why yet, but the kernel nix builds wont boot
<contrun[m]> clever: Do you have your firmware built into initrd?
<clever> contrun[m]: the reverse, the firmware is what loads the initrd into memory
<clever> contrun[m]: the ram doesnt even work until the firmware has ran
FRidh has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Fare has quit [Ping timeout: 256 seconds]
gnidorah has joined #nixos
<contrun[m]> clever: Ok, thanks for the explanation.
zupo has joined #nixos
<gnidorah> worldofpeace: hi. what do you think? https://github.com/NixOS/nixpkgs/pull/84242
<{^_^}> #84242 (by gnidorah, 2 weeks ago, open): nixos/qt5: support adwaita-dark theme
cole-h has quit [Quit: Goodbye]
morgrimm has joined #nixos
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
karantan has joined #nixos
zupo has quit [Client Quit]
zupo has joined #nixos
mallox has joined #nixos
rauno has joined #nixos
ok2` has quit [Ping timeout: 250 seconds]
morgrimm has quit [Ping timeout: 265 seconds]
FRidh has quit [Ping timeout: 250 seconds]
FRidh has joined #nixos
zupo has quit [Ping timeout: 250 seconds]
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mallox has quit [Quit: WeeChat 2.8]
mallox has joined #nixos
slack1256 has quit [Remote host closed the connection]
dingenskirchen has quit [Quit: dingenskirchen]
<bdju> recently my gtk file picker for firefox gets larger as I save more files. I have to keep shrinking it, it goes off-screen / on to the second monitor. very strange
ok2` has joined #nixos
dingenskirchen has joined #nixos
dingenskirchen has quit [Client Quit]
dingenskirchen has joined #nixos
iuunno has quit [Ping timeout: 240 seconds]
karantan has joined #nixos
domogled has joined #nixos
shreyansh_k has joined #nixos
<{^_^}> [nixpkgs] @AXDOOMER opened pull request #85917 → chocolate-doom: 2.3.0 -> 3.0.0 → https://git.io/JfLLL
zupo has joined #nixos
lsix has joined #nixos
Fare has joined #nixos
<{^_^}> [nixpkgs] @saschagrunert closed pull request #85682 → cri-o: Make $BUILDTAGS overwriteable → https://git.io/JfTja
karantan has quit [Ping timeout: 258 seconds]
emptyflask has quit [Ping timeout: 256 seconds]
zupo has quit [Client Quit]
dermetfan has joined #nixos
<{^_^}> [nixpkgs] @vbgl opened pull request #85918 → ocamlPackages.uri: remove at 1.9.{1,2} → https://git.io/JfLLC
<{^_^}> [nixpkgs] @jtojnar merged pull request #85889 → twitter-color-emoji: 12.1.2 -> 12.1.5 → https://git.io/JfIdm
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/JfLLB
astrofog has quit [Quit: Quite]
<typetetris> Good Morning everybody from germany!
<typetetris> On nix on Darwin/MacOS, where is nix.conf located?
morgrimm has joined #nixos
<clever> typetetris: /etc/nix/ just like linux
choward has quit [Quit: Ping timeout (120 seconds)]
choward has joined #nixos
<typetetris> clever, thanks and for a single user installation?
lordcirth has quit [Read error: Connection reset by peer]
judson has quit [Quit: ZNC 1.7.4 - https://znc.in]
lordcirth__ has joined #nixos
judson has joined #nixos
<clever> typetetris: still /etc/nix/
justanotheruser has quit [Ping timeout: 265 seconds]
turbo_MaCk has joined #nixos
morgrimm has quit [Ping timeout: 256 seconds]
<typetetris> I have a colleague with a single user nix install on a mac and that file simply doesn't exist.
<clever> typetetris: then create it
<turbo_MaCk> Hi everyone! I just want to ask, in case there is someone one who has that experience already, how can I define a build for a program that links to OpenCV lib (using pkgconfig)
<clever> typetetris: add pkgconfig and opencv to buildInputs
nschoe has joined #nixos
smatting has joined #nixos
vidbina_ has joined #nixos
<nschoe> Hi everyone, quick question: I used nix-store --add /path/to/lightdm-wallpaper.png to ass my wallpaper for lightdm in the store, so that lightdm has access to it. It worked until I nix-collect-garbage-ed it. How come? I have the /nix/store/<hash>-lightdm-wallpaper.png in my configuration.nix.
<nschoe> So I reckong my system profile should somewhere, point to it nad it should not be garbagde-collected, right?
<{^_^}> [nixpkgs] @xfix opened pull request #85919 → mosh: fix build with bash-completion 2.10 → https://git.io/JfLL7
<typetetris> clever, okay will try that.
<clever> nschoe: instead do something.wallpaper = /path/to/lightdm-wallpaper.png; directly in configuration.nix
<clever> nschoe: then nix will add it to the store for you automatically, and copy it any time its missing
<typetetris> clever, are there build caches for the darwin port, or should cache.nixos.org suffice?
<clever> nschoe: the path must not be quoted
<clever> typetetris: cache.nixos.org has darwin as well
slack1256 has joined #nixos
noudle has joined #nixos
<nschoe> clever: thanks for answering. The thing is: I had started by doing this, but ligthdm doesn't have permission to read files in my home directory.
<nschoe> So it had a black screen. This is why I thought "let's add it to the store"
<clever> nschoe: then you quoted it when you shouldnt have
<clever> nschoe: what is the exact line you put into configuration.nix?
<nschoe> clever: right now I have: background = "/nix/store/jsmwsijh8nrnpcnjp6ks76qbbic2d8g1-red_planet_craters.jpg"; # Added with nix-store -add 9under services.xserver.displayManager.lightdm
<nschoe> You're right, it's quoted. Good catch.
smatting has quit [Ping timeout: 264 seconds]
<clever> nschoe: if you quote the path, nix wont know its a path, and none of the GC stuff will work
<clever> nschoe: and if its unquoted, it can be outside the store, nix will copy it for you
<clever> just background = ./background.jpg; and your done
negaduck has joined #nixos
<nschoe> clever: I see that now. So just to make sure I understand: if I do background = /home/nschoe/wallpaper.pgn, then when runnig nixos-rebuild, nix will detect this file, and will copy it to the nix-store and *that*'s the one that will be used by lightdm, and lightdm will, in fact, *not* need to go read anything in my home dir. Am I correct?
<clever> nschoe: correct
<clever> nschoe: the process doing `nixos-rebuild` must have permission to read the file though
turion has joined #nixos
<nschoe> it's run as root, so...
<clever> yeah
<nschoe> clever: I'm confused, though: https://nixos.org/nixos/options.html#lightdm.background seems to indicate the type is string?
<clever> nschoe: paths can be cast to a string automatically
<clever> nschoe: when you try to cast a path to a string, nix will copy it to the store
<clever> and you then wind up with the path to the copy instead
<nschoe> Oh!
<nschoe> Okay I see, so it _works_, but I reckon the lightdm.nix _should_ have this type as filepath instead, no?
<clever> either works
xelxebar_ has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
<nschoe> clever: hum... when I try to rebuild, I get "error: The option value `services.xserver.displayManager.lightdm.background' in `/etc/nixos/configuration.nix' is not of type `string'."
xelxebar has joined #nixos
<clever> nschoe: then you want background = "${/home/nschoe/wallpaper.png}";
<nschoe> That's the lin eI have in configuration.nix: background = /home/nschoe/Pictures/Wallpapers/red_planet_craters.jpg;
<clever> which will cast it to a string
<nschoe> Okay, trying this, thanks.
zupo has joined #nixos
<nschoe> Testing, brb.
nschoe has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
glines has quit [Ping timeout: 250 seconds]
rauno has quit [Remote host closed the connection]
glines has joined #nixos
nschoe has joined #nixos
* nschoe is back
<nschoe> clever: is works perfectly. Thanks for that :)
noudle has quit []
justanotheruser has joined #nixos
<{^_^}> [nixpkgs] @dywedir merged pull request #85906 → cargo-expand: 0.5.0 -> 0.6.0 → https://git.io/JfLf3
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/JfLtP
incognito9999 has quit [Quit: ZNC 1.7.2+deb3~bpo9+1 - https://znc.in]
incognito9999 has joined #nixos
knupfer has joined #nixos
smatting has joined #nixos
<{^_^}> [nixpkgs] @bzizou opened pull request #85920 → opa-psm2: init at 10_10_1_0_36 → https://git.io/JfLqk
maddo has joined #nixos
civodul has joined #nixos
noudle has joined #nixos
nschoe has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
witchof0x20 has quit [Quit: WeeChat 2.7.1]
fendor has joined #nixos
witchof0x20 has joined #nixos
cr4y1_ has joined #nixos
<{^_^}> [nixpkgs] @doronbehar opened pull request #85922 → [WIP] nheko: 0.6.4 -> 0.7.1 → https://git.io/JfLqd
<FireFly> is there a good reason for nixos-generate-config to prefer by-uuid over by-label? my perl-fu isn't super strong, but looking at nixos-generate-label.pl it seems to me that preferring labels should work fine (and is a bit nicerto read/less error-prone to visually compare)
<lassulus> not all partitions have labels?
<hyper_ch> uuid is unique... a label not necessarily
<hyper_ch> partitions don't require to have labels
<FireFly> lassulus: sure, but as it is findStableDevPath already tries to find both /dev/disk/by-uuid/... and /dev/disk/by-label/...
<FireFly> just, checking for the former before the latter
<hyper_ch> FireFly: I asked myself that question lately with regard to zfs and was pointed to: https://github.com/openzfs/zfs/wiki/FAQ#selecting-dev-names-when-creating-a-pool
<FireFly> hyper_ch: hmm huh, I figured the labels would have to be unique..
<hyper_ch> FireFly: labels don't have to be unique.... make two usb sticks and give them the same label and put them in at boot and see what happens
<FireFly> *nod* fair
<hyper_ch> while uuid should be by definition unique and you shouldn't be able to generate same uuid twice...
<hyper_ch> (but I think you can manually alter the uuid and give the same to two devices)
<ashkitten> or copy the disk image to another disk!
<hyper_ch> :)
<hyper_ch> right, forgot about that
<etu> But if you clone a disk image you should scramble the uuid of the partition after that
<ashkitten> unless you know what you're doing
turbo_MaCk has quit [Quit: WeeChat 2.8]
<hyper_ch> btw, why don't I get an entry in the /etc/passwd file for root after rebuilding and rebooting? (notice: /etc is volatile and gets reset to nothing upon reboot)
<the_pumpkin_man[> Hello, I would like to know how you know when a pull request will be merged ?
<etu> the_pumpkin_man[: Is it reviewed?
<hyper_ch> the_pumpkin_man[: if you're subscribed to the PR you should get email from github
<the_pumpkin_man[> etu: yes it is
<hyper_ch> sorry, missunderstood
<the_pumpkin_man[> It was opened Jan 24, 2020
<the_pumpkin_man[> Im talking about https://github.com/NixOS/nixpkgs/pull/78439
<{^_^}> #78439 (by samlich, 12 weeks ago, open): lutris: fix gog integration
<the_pumpkin_man[> I tried to look at recently merged pull request, and these were opened and closed very recently
<the_pumpkin_man[> So I was thinking some pull requests are just forgotten ?
<lassulus> yes
<lassulus> sadly they are
<etu> the_pumpkin_man[: That happens, yes
<hyper_ch> feel free to *ping* the reviewer :)
<the_pumpkin_man[> Oh, but if this happens, were can I mention it ?
<etu> the_pumpkin_man[: Helping out to review yourself helps people with commit access a lot :)
thc202 has joined #nixos
<hyper_ch> just write a small message "any news on this?"
<etu> the_pumpkin_man[: That way we can reduce this problem
<the_pumpkin_man[> etu: It already got reviewed
<the_pumpkin_man[> And I don't really understand how to do that
<etu> the_pumpkin_man[: Yeah, I know. But I'm speaking more in general. If it gets lost by the amount of other PR's... It would help if more people reviewed so it would be easier to merge/close more things so things don't get lost as easily.
<the_pumpkin_man[> I tried to copy my local nixpkgs from the nixos-unstable ( copied `/nix/store/jljmx6v0kd2iwwswz6nbnw04x6d6rlnn-nixos-20.09pre222244.22a3bf9fb9e/nixos` to my home), modified the lutris nix file and tried to nix-build
<the_pumpkin_man[> But it was building a LOT of dependencies
o1lo01ol1o has joined #nixos
<the_pumpkin_man[> And I thought "Was it rebuilding every little dependency of lutris ?"
<the_pumpkin_man[> Do you really need to rebuild everything or does it use your cache ?
<etu> It uses the cache and your local cache
<the_pumpkin_man[> That's strange then
<etu> If those aren't matching what you're trying to build, then it will build it.
<{^_^}> [nixos-hardware] @delan opened pull request #156 → README: fix nix-channel --update command → https://git.io/JfLYv
<the_pumpkin_man[> Because my system is up-to-date, and this only added one new dependency
<etu> I would say that coping your nixpkgs from the store is strange, I would make a git clone of the github repo
cfricke has joined #nixos
<etu> And then pull in the changed file on top of that
karantan has joined #nixos
<the_pumpkin_man[> etu: I did that so I didn't had to redownload many packages from nixpkgs
<the_pumpkin_man[> At least I hoped that
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<etu> I would say that it's always best to test on latest master or wherever it's planned to merge the changeset to know the actual result of the merge.
<the_pumpkin_man[> Well I thought that nixos-unstable was up-to-date because it also has the 0.5.5 version of lutris
<the_pumpkin_man[> And redownloading + building everything takes a LOT of time
<etu> nixos-unstable is based on master, but is always behind master since it's built on master being tested
karantan has quit [Ping timeout: 265 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
chagra_ has joined #nixos
orivej has joined #nixos
__monty__ has joined #nixos
o1lo01ol1o has joined #nixos
<the_pumpkin_man[> Well I just wrote a little message, I hope this will be merged
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
karantan has joined #nixos
o1lo01ol1o has quit [Ping timeout: 250 seconds]
rardiol has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @7c6f434c merged pull request #85907 → ZenStates: init at 0.1.0 → https://git.io/JfLJU
<{^_^}> [nixpkgs] @7c6f434c pushed 3 commits to master: https://git.io/JfLYR
<{^_^}> [nixpkgs] @7c6f434c merged pull request #85912 → allegro4: 4.4.2 -> 4.4.3.1 (fixes atanks & racer) → https://git.io/JfLUF
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/JfLYz
o1lo01ol1o has joined #nixos
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stree has quit [Read error: Connection reset by peer]
stree has joined #nixos
mrte has joined #nixos
peanutbutter144 has joined #nixos
mrte has quit [Max SendQ exceeded]
mrte has joined #nixos
domogled has quit [Ping timeout: 250 seconds]
rgrau has joined #nixos
domogled has joined #nixos
gnidorah has quit [Quit: Connection closed for inactivity]
domogled has quit [Ping timeout: 264 seconds]
benkolera has left #nixos ["User left"]
<{^_^}> [nixpkgs] @andir opened pull request #85925 → llvm_10: link to the llvm compiler-rt share directory from the wrapper → https://git.io/JfLOy
<CRTified[m]> ,tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected. See: tofu-vim
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
WhatisRT has joined #nixos
<{^_^}> [nixpkgs] @adisbladis merged pull request #85914 → nixos/containers: move libpod to nixos/podman → https://git.io/JfLIL
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/JfLOA
vidbina_ has quit [Ping timeout: 272 seconds]
gsals[m] has joined #nixos
<{^_^}> [nixpkgs] @adisbladis merged pull request #85894 → podman team: add cri-o packages/module → https://git.io/JfIxO
<{^_^}> [nixpkgs] @adisbladis pushed 6 commits to master: https://git.io/JfL3t
<{^_^}> [nixpkgs] @FRidh pushed 3 commits to master: https://git.io/JfL3Y
cfricke has quit [Quit: WeeChat 2.8]
<{^_^}> [nixos-hardware] @Mic92 merged pull request #156 → README: fix nix-channel --update command → https://git.io/JfLYv
<{^_^}> [nixos-hardware] @Mic92 pushed 2 commits to master: https://git.io/JfL33
<{^_^}> [nixpkgs] @adisbladis merged pull request #85901 → libslirp: 4.2.0 -> 4.3.0, slirp4netns: 1.0.0 -> 1.0.1 → https://git.io/JfIj7
<{^_^}> [nixpkgs] @adisbladis pushed 3 commits to master: https://git.io/JfL3n
domogled has joined #nixos
<obadz> $ mkdir -p a b c
<obadz> $ sudo mount -t overlay overlay -olowerdir=$PWD/a,upperdir=$PWD/b,work=$PWD/c /mnt
<obadz> mount: /mnt: wrong fs type, bad option, bad superblock on overlay, missing codepage or helper program, or other error.
<obadz> any idaes?
<obadz> (Linux 5.4.32 on NixOS unstable)
zakkor has joined #nixos
<obadz> Grrrrr nevermind, work → workdir
<NickHu> Hi, is anyone available to merge a very small pull request that has stalled?
<{^_^}> [nixpkgs] @obadz merged pull request #76998 → profile-sync-daemon: fix psd-overlay-helper paths → https://git.io/JejYy
<{^_^}> [nixpkgs] @obadz pushed 2 commits to master: https://git.io/JfL3K
waleee-cl has joined #nixos
<NickHu> Thank you obadz!
<obadz> np
gnidorah has joined #nixos
<{^_^}> [nixpkgs] @adisbladis pushed to master « nixos/podman: Add rootless containers to test »: https://git.io/JfL3d
<hyper_ch> gchristensen: with you're erase-your-darlings approch, why do I end up with root not having a password when using https://paste.simplylinux.ch/view/raw/185c48de ?
<hyper_ch> wow, matrix looks annoying when it even can't properly post a message
<{^_^}> [nixpkgs] @flokli merged pull request #85556 → virtualbox: 6.1.4 -> 6.1.6 → https://git.io/JfU84
<{^_^}> [nixpkgs] @flokli pushed 3 commits to master: https://git.io/JfLsq
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/JfLsZ
<b42> hyper_ch: are you using users.mutableUsers = false?
sigmundv__ has joined #nixos
<hyper_ch> b42: it's unset
<hyper_ch> so it's true
<hyper_ch> but that would only affect manually running useradd etc but not users generated by the users.users options
slack1256 has quit [Ping timeout: 240 seconds]
m0rphism has joined #nixos
domogled has quit [Remote host closed the connection]
domogled has joined #nixos
vidbina_ has joined #nixos
inkbottle has quit [Ping timeout: 256 seconds]
zebrag has joined #nixos
fusion809 has quit [Quit: Leaving]
maddo has quit [Read error: Connection reset by peer]
noudle has quit []
maddo has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed to master « python3Packages.panel: 0.7.0 -> 0.8.3 »: https://git.io/JfLsM
karantan has joined #nixos
karantan has quit [Ping timeout: 250 seconds]
noudle has joined #nixos
<{^_^}> [nixpkgs] @adisbladis pushed 16 commits to master: https://git.io/JfLGe
<{^_^}> [nixpkgs] @Mic92 merged pull request #85864 → powerline-go: 1.15.0 -> 1.17.0 → https://git.io/JfIK4
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JfLGI
mrCyborg has joined #nixos
mrCyborg has quit [Client Quit]
<{^_^}> [nixpkgs] @peti opened pull request #85926 → Update Haskell package set to LTS 15.9 (plus other fixes) → https://git.io/JfLGl
<{^_^}> [nixpkgs] @garbas merged pull request #85811 → Fix khal → https://git.io/JfIUd
<{^_^}> [nixpkgs] @garbas pushed to master « khal: fix test (#85811) »: https://git.io/JfLG8
rgrau has left #nixos ["ERC (IRC client for Emacs 26.3)"]
<{^_^}> [nixpkgs] @adisbladis pushed 4 commits to master: https://git.io/JfLGz
Wulfsta has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @peti pushed 376 commits to haskell-updates: https://git.io/JfLGX
lunik1 has quit [Quit: :x]
gulplante has joined #nixos
lunik1 has joined #nixos
Th4tGuy has quit [Remote host closed the connection]
iyzsong has joined #nixos
lsix has quit [Quit: WeeChat 2.8]
chagra_ has quit [Ping timeout: 250 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/5e6adf78e96 (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
chagra_ has joined #nixos
bryanhonof has joined #nixos
<bryanhonof> Hello, I have a question about dynamic libraries in nixos. Is there a way to expose them to the system so that dlopen(3) can find them? I currently have a library in my nix store (vulkan-loader's libvulkan.so) but since it is in the store dlopen is unable to find it.
justanotheruser has quit [Ping timeout: 272 seconds]
Baughn has quit [Ping timeout: 265 seconds]
Baughn has joined #nixos
<{^_^}> [nixpkgs] @aanderse merged pull request #85614 → perlPackages.MojoliciousPluginTextExceptions: init at 0.01 → https://git.io/JfTmU
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/JfLZO
corpix has quit [Quit: corpix]
vidbina_ has quit [Ping timeout: 265 seconds]
cr4y1_ has quit [Read error: Connection reset by peer]
<srhb> bryanhonof: This sounds like the sort of driver stuff that's already sort of impure and implemented through a common location in /run/opengl-driver and co
<srhb> bryanhonof: I know very little about it, but perhaps that gives you a pointer to persue, eg. by looking at the codebase and commit history dealing with that path
vidbina_ has joined #nixos
cr4y1 has joined #nixos
<srhb> pursue* even
zupo has joined #nixos
morgrimm has joined #nixos
<bryanhonof> srhb: Ok, I will check out /run/opengl-driver. Thanks for the pointer!
noudle has quit []
morgrimm has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @adisbladis merged pull request #85916 → nixos/cri-o: share registries with nixos/containers → https://git.io/JfLIu
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/JfLZy
<{^_^}> [nixpkgs] @Mic92 merged pull request #85919 → mosh: fix build with bash-completion 2.10 → https://git.io/JfLL7
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JfLZS
knupfer has quit [Quit: knupfer]
knupfer1 has joined #nixos
knupfer1 is now known as knupfer
<{^_^}> [nixpkgs] @marsam merged pull request #85905 → sd: 0.7.2 -> 0.7.4 → https://git.io/JfLvj
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfLZ7
<{^_^}> [nixpkgs] @marsam merged pull request #85911 → dnscontrol: use subPackages, upstream vendor → https://git.io/JfLUn
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JfLZF
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen has joined #nixos
<{^_^}> [nixpkgs] @DamienCassou opened pull request #85928 → cypress: 4.3.0 -> 4.4.1 → https://git.io/JfLnq
fusion809 has joined #nixos
<hyper_ch> is there a way to build all the packages myself automagically instead of downloading the compiled versions from hydra? I'd like to stresstest the computer a bit
justanotheruser has joined #nixos
<b42> hyper_ch: nix-build --option substitute false
<b42> or put the same into nix.conf
<hyper_ch> b42: talking about nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #85868 → Update go tools/linters/language servers → https://git.io/JfIie
<{^_^}> [nixpkgs] @Mic92 pushed 11 commits to master: https://git.io/JfLnW
<{^_^}> [nixpkgs] @Mic92 merged pull request #85880 → linux_*_hardened: index patches by major kernel version → https://git.io/JfISX
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JfLn8
<hyper_ch> Valodim: thx
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
wfranzini has quit [Client Quit]
turion has quit [Quit: Leaving.]
<{^_^}> [nixpkgs] @adisbladis closed pull request #68343 → nixos/podman: support configuring registries and policy [WIP] → https://git.io/JeURU
<{^_^}> [nixpkgs] @marsam opened pull request #85929 → python37Packages.scapy: 2.0.1 -> 2.1.0 → https://git.io/JfLnV
<sphalerite> hyper_ch: drvs=$(nix-store -qR $(nix-store -q --deriver /run/current-system)) && nix-store -r $drvs && nix-store -r $drvs --check
<hyper_ch> sphalerite: what does that wizzardry do?
domogled has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @thomasjm opened pull request #85930 → Package Microsoft's Python Language Server → https://git.io/JfLno
domogled has joined #nixos
<sphalerite> hyper_ch: that will first get everything from the binary cache, then rebuild the whole closure and check that the outputs are the same
<hyper_ch> and that will keep my ram and cpus busy?
<sphalerite> should do, yeah :)
<hyper_ch> thx
fusion809 has quit [Quit: Connection closed]
bryanhonof is now known as [AFK]
domogled has quit [Ping timeout: 256 seconds]
domogled has joined #nixos
<arianvp> did mkDerivation behaviour change in 20.03 ?
<arianvp> I have buildEpends = [ pkgs.pkgconfig ]; buildPhase = "pkg-config"; and it says "command not found: pkg-config";
<arianvp> but it is in path when I nix-shell into the derivation
<arianvp> :/
<arianvp> what am I missing here?
cr4y1 has quit [Remote host closed the connection]
cr4y1 has joined #nixos
<arianvp> oh it's buildInputs. lol not buildDepends
<arianvp> nix needs types today
knupfer has quit [Quit: knupfer]
<sphalerite> arianvp: you should use nativeBuildInputs for pkgconfig though
ArdaXi has quit [Ping timeout: 246 seconds]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<sphalerite> arianvp: firstly because cross compilation won't work otherwise, but also because strictDeps will default to true Soon™ so it won't even end up in PATH when building natively
knupfer has quit [Client Quit]
ArdaXi has joined #nixos
knupfer has joined #nixos
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
<{^_^}> [nixpkgs] @adisbladis opened pull request #85933 → nixos/docker-containers: Use podman for declarative "docker" containers → https://git.io/JfLcH
chrismatheson has joined #nixos
[AFK] has quit [Remote host closed the connection]
lsix has joined #nixos
lunik1 has quit [Quit: :x]
lunik1 has joined #nixos
<{^_^}> [nixpkgs] @falsifian opened pull request #85934 → dump: init at 0.4b46 → https://git.io/JfLCf
nschoe has joined #nixos
cfricke has joined #nixos
domogled has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « haskell-microlens-th: drop obsolete override »: https://git.io/JfLCC
domogled has joined #nixos
<{^_^}> [nixos-weekly] @domenkozar pushed to master « Add 2020/04 »: https://git.io/JfLCl
seku has joined #nixos
<{^_^}> [nixpkgs] @arianvp opened pull request #85935 → libcbor: Fix pkgconfig being placed correctly → https://git.io/JfLCQ
c0c0 has quit [Ping timeout: 256 seconds]
graphLoom has quit [Quit: WeeChat 1.9.1]
<Xe> what's a decent way to handle secret data (like passwords) in nixos machines?
shreyansh_k has quit [Quit: Konversation terminated!]
<Xe> mostly so i can set them up without having to ssh into them manually
<chrismatheson> hi all .....
<chrismatheson> relative newbiw to nix, and currently just using it as a package manger for OSX (not a fan of homebrew)
<chrismatheson> i wonder if anyone could help me out with a (hopefully) simple question ....
<immae> Xe: you might want to look at infinisil’s work: https://github.com/Infinisil/nixoses/blob/master/modules/secrets.nix
<siers> how could I do list complements?
jakobrs has joined #nixos
<chrismatheson> i can install packages on my machine with nix-env .... is there a way to define the set of packages that should be installed? like a package.json in nodejs ...
<jakobrs> Do packages/etc need to be backported into nixos-unstable when applicable?
<siers> lists.nix / subtractLists
<immae> chrismatheson: yes you can write a derivation listing what you want and give it to nix-env
<immae> For instance if you put that in foo.nix `{ pkgs ? import <nixpkgs> {} }: [ pkgs.bc ]` you can run `nix-env -i -f foo.nix` and it will install bc
<chrismatheson> awesome thanks!!! :D
lorimer has joined #nixos
<chrismatheson> my goal is to keep "my setup" under source control.
<chrismatheson> so hopefully i can build up a derivation representing my dev env and have a simple backup for all the tweeks
dermetfan has quit [Ping timeout: 252 seconds]
<immae> if you’re new to nix you can start there, but you’ll find other ways later when you get used to it
<chrismatheson> thanks again @imm
<chrismatheson> * thanks again @immae
<jakobrs> chrismatheson: If you use -r with nix-env -i you can
<jakobrs> It will remove the already installed packages
<Xe> immae: do you know of an example of using that secrets module?
<jakobrs> So then, when you do nix-env -ir -f ./foo.nix, it will set what packages you have installed to exactly those in foo.nix
<immae> Xe: It’s in my open tabs because I want to try it some day, so no :)
<{^_^}> [nixpkgs] @aanderse merged pull request #84348 → musikcube: init at 0.90.1 → https://git.io/JvNGT
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/JfLWn
<immae> (I have another implementation for secrets but it results in secrets writen in the local store, so not ideal, I think infinisil one is better )
morgrimm has joined #nixos
c0c0 has joined #nixos
domogled has quit [Remote host closed the connection]
domogled1 has joined #nixos
CMCDragonkai1 has joined #nixos
iqubic` has joined #nixos
domogled1 is now known as domogled
Fare has quit [Ping timeout: 240 seconds]
domogled has quit [Remote host closed the connection]
domogled has joined #nixos
<{^_^}> [nix] @edolstra pushed 52 commits to flakes: https://git.io/JfLWD
shreyansh_k has joined #nixos
iqubic has quit [Ping timeout: 240 seconds]
reallymemorable has quit [Quit: reallymemorable]
<hyper_ch> gchristensen: how did you set root password and stuff in your erase-your-darlings? I can't get it to properly set the password
reallymemorable has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
betawaffle has joined #nixos
<jakobrs> Whenever I'm packaging a program, should I by default worry about exactly specifying dependencies as described in the Cross-compiling chapter of the nixpkgs manual?
<adisbladis> hyper_ch: Do you have mutableUsers disabled?
<hyper_ch> adisbladis: no, I have not
chagra_ has quit [Ping timeout: 265 seconds]
chagra_ has joined #nixos
<adisbladis> hyper_ch: You're gonna want that for those kinds of setups
<adisbladis> I believe there was some differences in how initialHashedPassword is handled in regards to mutableUsers
zupo_ has joined #nixos
<hyper_ch> adisbladis: I use hashedPassword and not initialHashedPassword
<hyper_ch> to my understanding, the hashedPassword should be applied upon every rebuild
zupo has quit [Ping timeout: 258 seconds]
markus1199 has quit [Ping timeout: 256 seconds]
<hyper_ch> adisbladis: iiieeks.... "If the option users.mutableUsers is true, the password defined in one of the three options will only be set when the user is created for the first time."
markus1189 has joined #nixos
<worldofpeace> gnidorah: looks good
<{^_^}> [nixpkgs] @worldofpeace merged pull request #84242 → nixos/qt5: support adwaita-dark theme → https://git.io/Jvbaa
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JfLlR
<worldofpeace> gnidorah: merged
<{^_^}> [nixpkgs] @rnhmjoj pushed to release-20.03 « haskellPackages.breve: unbreak »: https://git.io/JfLlE
<hyper_ch> adisbladis: he, who can read, has an advantage over others
TheSirC[m] has joined #nixos
jlv38 has quit [Remote host closed the connection]
<hyper_ch> adisbladis: still no luck..... the shadow file for root still has no password
<hyper_ch> root:!:1::::::
zupo_ has quit [Ping timeout: 264 seconds]
dermetfan has joined #nixos
<{^_^}> [nixops] @manveru opened pull request #1319 → add nixops eval subcommand → https://git.io/JfLlQ
cfricke has quit [Quit: WeeChat 2.8]
<TheSirC[m]> I have the annoying error while packaging [this simple app](https://github.com/mirkobrombin/Bottles) import gi
<TheSirC[m]> ModuleNotFoundError: No module named 'gi'
<TheSirC[m]> Here is the file I am using : https://paste.rs/uU1
Fare has joined #nixos
<nschoe> TheSirC[m]: (I suck at python and am a newbie at NixOS) shot in the dark: shouldn't you add 'gi' in your propagatedBuildInputs, in the list where "pygobject3 gst-python" are present?
<{^_^}> [nixpkgs] @Mic92 merged pull request #85888 → [20.03] openvpn: 2.4.7 -> 2.4.9 → https://git.io/JfI5J
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to release-20.03: https://git.io/JfL8O
<TheSirC[m]> @nschoe: The thing is `gi` is supossed to be `pygobject3`
<nschoe> TheSirC[m]: ah. Well sorry then. Not good at python ^^
<{^_^}> [nixpkgs] @Mic92 merged pull request #78439 → lutris: fix gog integration → https://git.io/JvqUk
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JfL8n
<TheSirC[m]> Me neither, don't worry I had the same raction as you
<TheSirC[m]> I must say that I am really surprised how hard it is to package such a simple app...
<{^_^}> [nixpkgs] @bhipple merged pull request #84943 → python3Packages.qiskit: 0.17.0 -> 0.18.2 → https://git.io/Jvhcu
<{^_^}> [nixpkgs] @bhipple pushed 10 commits to master: https://git.io/JfL8r
WhatisRT has quit [Ping timeout: 256 seconds]
zupo has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « signal-desktop: 1.33.1 -> 1.33.3 »: https://git.io/JfL8S
nschoe has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<{^_^}> [nixpkgs] @primeos opened pull request #85937 → signal-desktop: 1.33.1 -> 1.33.3 → https://git.io/JfL8F
<{^_^}> [nixpkgs] @Ma27 pushed to master « cargo-make: 0.30.5 -> 0.30.6 »: https://git.io/JfL4Z
<{^_^}> [nixpkgs] @primeos pushed to master « tdesktop: 2.0.1 -> 2.1.0 »: https://git.io/JfL4B
teto has joined #nixos
<hyper_ch> sphalerite: starting your command now
gustavderdrache has joined #nixos
<{^_^}> [nixos-weekly] @domenkozar pushed to master « Add 2020/04 »: https://git.io/JfL4d
<jakobrs> How can I combine multiStdenv and libsForQt5.callPackage?
<jakobrs> If I use multiStdenv.mkDerivation instead of just mkDerivation, I get errors about missing qt libraries.
<{^_^}> [nixpkgs] @oxalica opened pull request #85938 → tdesktop: 2.0.1 -> 2.1.0 → https://git.io/JfL4h
hio has quit [Quit: Connection closed for inactivity]
<jakobrs> mkDerivationWith multiStdenv.mkDerivation seems to work
dckc has quit [Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in]
<{^_^}> [nixpkgs] @sjau opened pull request #85939 → easysnap: changing format for samba shadow_copy2 to work → https://git.io/JfLBU
itorres has joined #nixos
infandum has joined #nixos
<infandum> If I'm using sandboxing, why would the resulting executable from the nix-env on a default.nix have links to shared objects on the system outside of /nix/store?
dckc has joined #nixos
<jakobrs> When using multistdenv, do I specify 32-bit dependencies using pkgsCross?
sigmundv__ has quit [Ping timeout: 256 seconds]
dckc has quit [Ping timeout: 264 seconds]
dckc has joined #nixos
CMCDragonkai1 has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @primeos merged pull request #85937 → [20.03] signal-desktop: 1.33.1 -> 1.33.3 (backport) → https://git.io/JfL8F
<{^_^}> [nixpkgs] @primeos pushed 2 commits to release-20.03: https://git.io/JfLB9
<{^_^}> [nixos-weekly] @domenkozar merged pull request #115 → Call for Content: 2020/04 → https://git.io/JvXx3
<{^_^}> [nixos-weekly] @domenkozar pushed 5 commits to production: https://git.io/JfLBd
<{^_^}> [nixos-weekly] @domenkozar pushed to master « Call for Content: 2020/05 »: https://git.io/JfLBN
jakobrs has quit [Quit: WeeChat 2.8]
<{^_^}> [nixos-weekly] @domenkozar opened pull request #117 → Call for Content: 2020/05 → https://git.io/JfLBh
<{^_^}> [nixos-weekly] @domenkozar pushed 26 commits to master: https://git.io/JfLRe
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
sigmundv_ has joined #nixos
dada3 has joined #nixos
dada3 has left #nixos [#nixos]
<{^_^}> [nixpkgs] @ceedubs opened pull request #85940 → unison-ucm: 1.0.M1h-alpha -> 1.0.M1j-alpha → https://git.io/JfLRt
<{^_^}> [nixpkgs] @Ma27 pushed to release-20.03 « cargo-make: 0.30.5 -> 0.30.6 »: https://git.io/JfLRZ
vidbina_ has quit [Ping timeout: 246 seconds]
<infandum> immae: Thank you for all of your help yesterday, it works perfectly on my computer. However, when I try the same default.nix on another computer (ubuntu), it links to system libraries instead of the /nix/store libraries. Any idea why this would be?
<{^_^}> [nixpkgs] @7c6f434c merged pull request #85938 → tdesktop: 2.0.1 -> 2.1.0 → https://git.io/JfL4h
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/JfLRM
corpix has joined #nixos
<immae> infandum: Ah again... what is "it", is it your too-much-cells binary?
<infandum> yeah
<infandum> It works on my computer (arch) but not on another (ubuntu)
<infandum> I tried enabling sandboxing but that did not work
<immae> what nix version is there on ubuntu ? (not that it should make a difference, but...)
<infandum> on my arch setup everything is linking correctly (/nix/store for all shared objects) but for the ubuntu one it has some /nix/store and some /usr/lib or /lib, like blas.so
<immae> (I’m trying it locally to see if I see anything)
<infandum> immae: 2.3.4
<immae> so sandbox should be enabled by default no?
WhatisRT has joined #nixos
<infandum> immae: I thought so, but the website says it isn't
<infandum> either way, I tried with a default nix.conf and with the sandboxing nix.conf
<infandum> I thought that if a default.nix worked on one computer, it would work on all based on the reproducibility (and that it references only /nix/store in my primary computer)
<infinisil> infandum: Well I suggested yesterday that you try to run the binary in a derivation, but you didn't seem to try that
<infandum> infinisil: I couldn't get it to work
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
M-Gregoire495 has quit [Quit: The Lounge - https://thelounge.chat]
M-Gregoire495 has joined #nixos
shreyansh_k has quit [Quit: Konversation terminated!]
<immae> (it’s still building on my system)
<infandum> immae: It will take a while
<immae> I can see that
<infandum> I'm trying on a third computer
justanotheruser has quit [Ping timeout: 265 seconds]
<negaduck> it seems I have a nvidia driver in nix store. Can I actually use it instead of one installed by ubuntu?
<negaduck> in the end I'd like to use cuda from nix store, but I have to update the system-wide nvidia driver for this, and I'm afraid of ruining the set-up built by other people
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
chagra_ has quit [Ping timeout: 264 seconds]
domogled has quit [Remote host closed the connection]
domogled1 has joined #nixos
<bdju> anyone else getting some vids that aren't working with youtube-dl recently? I hit two different ones today, but it's not all of them
<bdju> oh maybe it's related to them rolling out AV1. I heard that was happening
domogled1 is now known as domogled
<hyper_ch> sphalerite: it failed :(
fenedor has joined #nixos
<{^_^}> [nixpkgs] @prusnak opened pull request #85941 → sd-image: use parallel pbzip2 implementation → https://git.io/JfLEj
zupo_ has joined #nixos
kaliumxyz has joined #nixos
ckoparkar has joined #nixos
fendor has quit [Ping timeout: 256 seconds]
kenran has quit [Quit: leaving]
<arianvp> how to handel setcap binaries in nix?
<gchristensen> no nixos?
<arianvp> ah thanks; through nixos it is
<ckoparkar> I wanted to ask for help with nix-2.3.4. Around 2 days ago, I accidentally deleted the ~/.cache/nix directory. Ever since then I'm running into all sorts of problems with nix. If I run "nix-env -i hello", it tries to install a LOT of packages, including things like bootstrap-tools, which should be install already. And it's never able to install all
<ckoparkar> the derivations, and all nix commands eventually fail. Also, I get this warning every time: SQL logic error (in '/u/ckoparka/.cache/nix/binary
<ckoparkar> -cache-v6.sqlite'
<hyper_ch> gchristensen: my root entry in /etc/shadow is refusing to be filled with a password :(
gnidorah has quit [Quit: Connection closed for inactivity]
<gchristensen> arianvp: security.wrappers
<gchristensen> hyper_ch: that is odd
<ckoparkar> But 'sqlite3 .cache/nix/binary-cache-v6.sqlite-journal 'pragma integrity_check' prints 'ok'
vidbina_ has joined #nixos
<gchristensen> are you setting a root password with users.users.root.hashedPassword?
nschoe has joined #nixos
<ckoparkar> I've tried re-installing nix from scratch, but it didn't help
<ckoparkar> Has this happened to anyone before?
chagra_ has joined #nixos
<nschoe> Hi, anyone uses LaTeX with NixOS? Or rather Org-mode and exports to PDF? I'm trying to export org docs to PDFs but it complains abotu missign 'wrapfig.py'. I do have 'textlive.combined.scheme-medium' though. Wodnering if I absolutely have to go to 'scheme-full' just for PDF conversion ;/
<gchristensen> hyper_ch: your config for the root user is a lot more than you probably need. like, you should probably delete all that root config there and just set users.users.root.hashedPassword = "..."
<hyper_ch> gchristensen: let's try
<gchristensen> hyper_ch: and your root password is the result generated by mkpasswd -m sha-512 ?
<hyper_ch> gchristensen: btw, I told you I can setup /home with zfs mount
<hyper_ch> when I added a new user it didn't work anymore because isNormalUser makes sure home is created etc. and this happenes before zfs mount takes place... however using createHome = false; solves that issue
<hyper_ch> so you can use zfs mount, add a new dataset for a user, generate teh user and then you have to chown it manually... but still less hassle than adding all new user homes as legacy mount in hardware-configuration
<hyper_ch> gchristensen: yep, it was created by that and I also tried to copy the hash from other nixos systems
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
<hyper_ch> now I'm a total fan also of samba's Shadow_Copy2 and the way it works with file properties in windows... I wish same could be made for dolphin or other file managers
<nschoe> No idea for org-to-pdf?
<immae> infandum: what do you mean by "the website says it isn't"? (still building on my laptop)
<immae> (I just reached the too-many-cells step so I’m close I think)
<{^_^}> [nixpkgs] @kevinastock opened pull request #85942 → Replace ftp with https for ftp.gnu.org → https://git.io/JfLuM
<immae> hmm
<immae> I think it is outdated
<hyper_ch> gchristensen: root:!:1:::::: --> only left hasedPassword in there for root
<immae> If I remember correctly, sandbox is the default as of 2.3.X
justanotheruser has joined #nixos
ckoparkar has quit [Quit: Connection closed]
<immae> infandum: building just finished for me and it correctly targets /nix/store only...
<immae> Do you have a list of the libraries that go outside the store?
<infandum> immae: YES!! As long as it works for others...
<infandum> immae: For the ubuntu on my side, it's:
horek has joined #nixos
<hyper_ch> gchristensen: can't get a password for root... otoh, maybe it's not so bad not having a root password as long as ssh-keybased login still works and login as different user with sudo right
<immae> infandum: note that I only built it, I don’t know what to run from there
horek has quit [Client Quit]
reallymemorable has quit [Quit: reallymemorable]
<infandum> immae: To test, nix-env -f default.nix -i too-many-cells
<infandum> then `too-many-cells -h`
<infandum> I got a blas library error on the ubuntu computer
<gchristensen> hyper_ch: I don't know what is going on, since my system does it just fine -- I wonder if it has to do with the mount order from your fancy zfsmounts
reallymemorable has joined #nixos
<hyper_ch> gchristensen: it did create the entry for the other user and /root and /etc are legacy mounts
<infandum> immae: On the third computer it works and links correctly (another arch linux) so it just failed on the ubuntu
<infandum> what system are you running?
<immae> arch
<infandum> ah
jgeerds_ has joined #nixos
<infandum> so it's either an ubuntu issue, just works on arch issue, or this particular ubuntu installation is wonky for some reason
o1lo01ol1o has quit [Remote host closed the connection]
<immae> I see some possibilities: (1) either that the nix daemon is not properly sandboxed and has a leak from libraries (via environment variables for instance?), which would make it a build-time issue (2) or the build is okay but there are overrides at runtime for some reason
<immae> I’m not at ease with those mecanisms so I don’t know how to test it
justanotheruser has quit [Ping timeout: 265 seconds]
<hyper_ch> gchristensen: that's the current full setup https://paste.simplylinux.ch/view/raw/f5b4a2e1
<infandum> immae: Okay, as long as it's just one messed up os install, not that it won't worked for everyone else
<infandum> I'm glad I got some peace of mind haha
ozychhi has quit [Quit: #cpp]
ebopp has joined #nixos
<immae> Well so far you only had it working on archlinux actually :p
<infandum> immae: Thanks again, hopefully the last for a very long time (I'm finished with this program default.nix for a while)
<immae> ok good :)
<infandum> immae: Yeah, that's a bit worrying, but I don't have any other option haha
<immae> you can wait until someone complains
<gchristensen> hyper_ch: I bet it has to do with the initrd {ssh,zfs} stuff
<infandum> Actually, there is one other ubuntu machine I can test, but it probably has the same setup as the one I tried
<hyper_ch> gchristensen: hmmm.... maybe
<hyper_ch> as said, it's not actually a big deal
<hyper_ch> having no root password :)
<hyper_ch> so, time for weekend - grocery shopping
<simukis_> is there a way to keep the system-wide nix available within a pure nix-shell?
ebopp has quit [Ping timeout: 256 seconds]
<numkem> does anyone has experience running an external GPU on nixos?
<{^_^}> [nixpkgs] @xfix opened pull request #85943 → Update homepage links to use HTTPS → https://git.io/JfLgb
reallymemorable has quit [Quit: reallymemorable]
<{^_^}> [nix] @domenkozar opened pull request #3532 → darwin installer: remove the file before installing new one → https://git.io/JfL2f
justanotheruser has joined #nixos
ebopp has joined #nixos
o1lo01ol1o has joined #nixos
numkem has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @7c6f434c merged pull request #85460 → k3d: Fix build: Use the same GCC version for boost dependency → https://git.io/JfJgr
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/JfL2O
acarrico has quit [Ping timeout: 256 seconds]
ozychhi has joined #nixos
<{^_^}> [nixpkgs] @xfix opened pull request #85944 → slimrat: remove → https://git.io/JfL2R
numkem has joined #nixos
ddellacosta has joined #nixos
reallymemorable has joined #nixos
numkem has quit [Remote host closed the connection]
Kyndig has joined #nixos
rardiol has joined #nixos
proofofkeags has joined #nixos
erasmas has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
rogue_koder_ has quit [Ping timeout: 240 seconds]
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/89273a29d3b (from 27 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
betawaffle is now known as otherwaffle
o1lo01ol1o has joined #nixos
<{^_^}> [nixops] @adisbladis opened pull request #1323 → Use rsync instead of scp for file copying → https://git.io/JfLau
betawaffle has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer opened pull request #85945 → llvm/compiler-rt.nix: add i{4,5,6}86 to X86 architecture → https://git.io/JfLa1
otherwaffle has left #nixos [#nixos]
o1lo01ol1o has quit [Remote host closed the connection]
rogue_koder_ has joined #nixos
o1lo01ol1o has joined #nixos
jgeerds_ has quit [Ping timeout: 256 seconds]
PlasmaStrike has joined #nixos
htperry has joined #nixos
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<htperry> trying to import appliance into VM and first time starting fails with this msg
<htperry> Failed to open a session for the virtual machine NixOS 20.03.1445.95b9c99f6d0 (x86_64-linux).
<htperry> {872da645-4a9b-1727-bee2-5585105b9eed}
<htperry> any suggestions?
<htperry> machine is a Dell Precision 5530 i9, SSD, 32g mem
waleee-cl has quit [Quit: Connection closed for inactivity]
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Ekleog merged pull request #85884 → matrix-synapse: 1.12.1 -> 1.12.4 → https://git.io/JfIHH
<{^_^}> [nixpkgs] @Ekleog pushed 2 commits to master: https://git.io/JfLa5
AluisioASG has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
chloekek has joined #nixos
o1lo01ol1o has joined #nixos
vyorkin has joined #nixos
rgrau has joined #nixos
AluisioASG has joined #nixos
vyorkin has quit [Remote host closed the connection]
vyorkin has joined #nixos
sarcasticadmin has joined #nixos
jgeerds_ has joined #nixos
rogue_koder_ has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @primeos pushed to master « nvme-cli: 1.10.1 -> 1.11.1 »: https://git.io/JfLVO
htperry has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @thoughtpolice pushed to master « linux_testing: 5.6-rc7 -> 5.7-rc2 »: https://git.io/JfLVW
numkem has joined #nixos
c0c0 has quit [Quit: WeeChat 2.6]
o1lo01ol1o has quit [Remote host closed the connection]
<infandum> immae: It also didn't work on the other ubuntu computer
o1lo01ol1o has joined #nixos
<infandum> But I give up
<{^_^}> [nixpkgs] @thoughtpolice opened pull request #85946 → ispc: 1.10.0 -> 1.13.0, cleanup, (co)maintain → https://git.io/JfLVw
<{^_^}> [nixpkgs] @7c6f434c merged pull request #85825 → acl2: 8.2 -> 8.3 → https://git.io/JfIqw
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/JfLVr
koleesch has joined #nixos
rogue_koder_ has joined #nixos
<{^_^}> [nixpkgs] @Ekleog pushed commit from @Ma27 to release-20.03 « matrix-synapse: 1.12.1 -> 1.12.4 »: https://git.io/JfLVK
drakonis has joined #nixos
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #85909 → websocat: fix wrapping → https://git.io/JfLJd
<{^_^}> [nixpkgs] @thoughtpolice pushed commit from @iblech to master « websocat: fix wrapping »: https://git.io/JfLVA
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #84966 → ttyd: 1.5.2 -> 1.6.0 → https://git.io/JvhR6
<{^_^}> [nixpkgs] @thoughtpolice pushed commit from @iblech to master « ttyd: 1.5.2 -> 1.6.0 »: https://git.io/JfLVh
<pikajude> hey, so, can someone explain the purpose of content addressable derivations to me?
<pikajude> don't you have to build the derivation in order to know the hash?
<{^_^}> [nixpkgs] @athas closed pull request #79746 → ispc: 1.10.0 -> 1.12.0 → https://git.io/Jvcd3
<numkem> I get `sudo: /nix/store/bbx5vym6kndsfwwlghrhzdw8civfnq7h-sudo-1.8.31/bin/sudo must be owned by uid 0 and have the setuid bit set` when trying to execute sudo through a Go program... Anything I should do for NixOS? It used to work just fine on Arch
<infinisil> pikajude: Do you mean fixed-output derivations?
<MichaelRaskin> pikajude: yes, but if a rebuild ends up not changing the output, you do not need to rebuild rev-deps
<pikajude> infinisil: no
<pikajude> MichaelRaskin: oh, i see, so it's about multiple build steps then
<infinisil> Content addressable derivations currently at least aren't a thing in nix
<MichaelRaskin> Yes. The way rebuilds propagate in Nix are a tradeoff, and now that we have more data it would be nice to improve it
<pikajude> yeah i misspoke, content addressable store paths
knupfer has quit [Remote host closed the connection]
<MichaelRaskin> infinisil: I think there are some pre-alpha branches with CA derivations?
knupfer has joined #nixos
<infinisil> rfcs#17 rfcs#62 exist
<{^_^}> https://github.com/NixOS/rfcs/pull/17 (by wmertens, 2 years ago, open): [RFC 0017] Intensional Store
<{^_^}> https://github.com/NixOS/rfcs/pull/62 (by regnat, 19 weeks ago, open): [RFC 0062] Content-addressed paths
<numkem> nvm I got it I think, it's because I had sudo in my shell.nix... Sudo is an option so I'm assuming there are more than just pulling the package
<MichaelRaskin> I think for 62 there was some PoC work
<gchristensen> and regnat continues to work on it
<pikajude> i see, so if, say, someone adds a comment to a line of bash source code, and you rebuild bash, it has the same output hash so it doesn't end up rebuilding the entire stdenv
<MichaelRaskin> Yes
<MichaelRaskin> That's the goal
<pikajude> but even so, right now, the path that you query a substituter for is based on the hash of the derivation, right?
<MichaelRaskin> Hard to achieve, of course…
tertl3 has quit [Quit: Connection closed for inactivity]
<pikajude> ah i see, the rfc suggests having a well-known mapping of $out to $cas
<pikajude> i guess the idea is not to get rid of the notion of $out entirely
lordcirth__ has quit [Remote host closed the connection]
<MichaelRaskin> You kind of cannot
lordcirth__ has joined #nixos
<pikajude> yeah, that's what i was wondering
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
drakonis has quit [Quit: WeeChat 2.8]
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
cole-h has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<simukis_> is there an easy way to `nix-shell --pure` but so that it just reset `PATH`-like things and didn’t touch most of the other variables.
<simukis_> (I’m aware of --keep, but it sounds very menial to list variables I care about)
asheshambasta has quit [Ping timeout: 272 seconds]
<srhb> simukis_: You're probably better off not doing --pure and manually murdering variables you don't care about in a shellHook then.
<simukis_> Does `shellHook` run before nix-shell sets up the $PATH? it would be great indeed if I could just `export PATH=` in a shellHook, but I suspect it won’t work that way
nschoe has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<srhb> Good point. You would probably have to reconstruct PATH from buildInputs or the like.
<srhb> (Which is entirely doable)
<{^_^}> [nixpkgs] @prusnak opened pull request #85947 → Use zstd for ISO and SD images → https://git.io/JfLrt
<{^_^}> [nixpkgs] @prusnak closed pull request #85941 → sd-image: use parallel pbzip2 implementation → https://git.io/JfLEj
domogled has quit [Quit: domogled]
domogled has joined #nixos
acarrico has joined #nixos
abathur has quit [Quit: abathur]
fenedor is now known as fendor
drakonis has joined #nixos
Th4tGuy has joined #nixos
lordcirth__ has quit [Read error: Connection reset by peer]
<Th4tGuy> has anyone recently use aws s3 as a binary cache? I'm trying to use it and keep getting aws error '' (unable to connect to endpoint). If i use the aws commandline everything works fine...
lordcirth has joined #nixos
braunse_ has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
emilis has joined #nixos
codygman has quit [Read error: Connection reset by peer]
ATuin has joined #nixos
Th4tGuy has quit [Remote host closed the connection]
knupfer has quit [Client Quit]
codygman has joined #nixos
knupfer has joined #nixos
rendeko[m] has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
acarrico has quit [Ping timeout: 256 seconds]
ebopp has quit [Quit: leaving]
ebopp has joined #nixos
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #85946 → ispc: 1.10.0 -> 1.13.0, cleanup, (co)maintain → https://git.io/JfLVw
<{^_^}> [nixpkgs] @thoughtpolice pushed to master « ispc: 1.10.0 -> 1.13.0, cleanup, (co)maintain »: https://git.io/JfLor
zeta_0 has joined #nixos
abathur has joined #nixos
zeta_0 has left #nixos [#nixos]
<asymmetric> has anyone successfully used `nixos-rebuild build-vm-with-bootloader`?
<asymmetric> i get a "no bootable device" error
rendeko has joined #nixos
philr_ has quit [Ping timeout: 250 seconds]
<infandum> immae: I got it. Turns out the custom environment on Ubuntu had LD_LIBRARY_PATH set. Unsetting that, everything works.
<infandum> IM DONE
<infandum> YAY
rendeko has quit [Remote host closed the connection]
acarrico has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
emptyflask has joined #nixos
<pingveno> I keep getting this error message when I try to remote into my NixOS box using mosh: https://pastebin.com/Nv321kEz
domogled has quit [Ping timeout: 264 seconds]
<srhb> pingveno: The last one? That sounds like a path was not patched correctly.
inkbottle has joined #nixos
<srhb> ( as in: /usr/local/bin is surely not a thing on your system)
<{^_^}> [nixos-homepage] @davidak pushed to contribution « Add Contributing page »: https://git.io/JfLKU
<pingveno> That's definitely correct (it's the path to mosh on my local machine)
<pingveno> Mac
<srhb> Ah
drakonis has joined #nixos
<pingveno> This was occurring for 19.10 as well (not sure about 19.03)
zebrag has quit [Ping timeout: 264 seconds]
<srhb> Er, mosh 19.10?
<pingveno> Er... NixOS 19.09
<pingveno> I can never remember everyone's release schedules. :P
<{^_^}> [nixos-homepage] @davidak opened pull request #411 → Add Contributing page → https://git.io/JfLKq
lsix has quit [Quit: WeeChat 2.8]
<pingveno> Now the viruses even have release schedules.
<srhb> So the guess is that it can't figure out where locales live?
gulplante has quit [Quit: WeeChat 2.7.1]
<pingveno> maaaaybe? I tried running `locale` and it was spitting out the expected locales.
<pingveno> I have i18n.defaultLocale = "en_US.UTF-8"; in my configuration.nix.
kwannoel has joined #nixos
jakobrs has joined #nixos
<jakobrs> Is it possible to make `nix-shell -p` also make man pages available?
o1lo01ol1o has quit [Remote host closed the connection]
<lassulus> It normally does
<lassulus> At least for me
<jakobrs> If I run nix-shell -p man-pages, for example,
<jakobrs> It won't add make the man pages available
<Yaniel> I'd expect application-specific manpages to be part of the application's derivation
<jakobrs> The man pages _are_ part of the derivation
<jakobrs> nix-shell -p just doesn't make them available
<Yaniel> not sure which pages would be included in the man-pages package
<jakobrs> nix-env -iA does
<jakobrs> It's not specific to that package
<immae> infandum: great :D
<jakobrs> This time I was trying to use squashfsTools
<Yaniel> ah
<lassulus> hmm /nix/store/bxi6n7aw03h2hfbpqsb095xy31bb70vv-squashfs-4.4 doesn't show manpages for me
ebopp has quit [Remote host closed the connection]
<lassulus> so I don't see how they could be exported with nix-env
Desetude has joined #nixos
lordcirth has quit [Read error: Connection reset by peer]
lordcirth has joined #nixos
<{^_^}> [nixpkgs] @mkg20001 opened pull request #85948 → tartube: init at 2.0.016 → https://git.io/JfLKP
fadenb has quit [Remote host closed the connection]
<lassulus> but, for example, man r2 doesn't work normally for me, but inside nix-shell -p radare2 it works for me
morgrimm has quit [Remote host closed the connection]
glittershark has quit [Ping timeout: 250 seconds]
<lassulus> so maybe its just squashfsTools missing manpages?
laika___ has joined #nixos
acarrico1 has joined #nixos
<laika___> any scalaists around? i have an open PR for upgrading the dotty compiler expression to the latest RC
<laika___> not sure if i need to track down someone with scala experience AND merge powers...
acarrico has quit [Ping timeout: 260 seconds]
zeta_0 has joined #nixos
o1lo01ol1o has joined #nixos
<pingveno> Oh wow, I finally figured out what was happening with mosh. I had previous used `nix-env -iA nixpkgs.mosh` to install mosh, which is incorrect.
<pingveno> I uninstalled that in favor of the system package and it all works correctly.
<lassulus> laika___: you could just post the PR, maybe someone will pick it up
aveltras has joined #nixos
sarcasticadmin has quit [Quit: WeeChat 2.3]
<{^_^}> #85192 (by matthewess, 1 week ago, open): dotty: 0.20.0-RC1 -> 0.23.0-RC1
<zeta_0> hello there, i am trying to setup elm-language-server in emacs but it's throwing this error? http://dpaste.com/3PQYX4V https://dpaste.org/4aQR
<jakobrs> pingveno: Why is `nix-env -iA nixpkgs.mosh` incorrect?
<Izorkin> How to need to merge #85856?
<pingveno> I'm not exactly sure why, but the proper way to install it is apparently in configuration.nix.
<zeta_0> the people in #emacs said that this is more related to linux, so i came to ask it here since i'm using nixos, i'm not sure how to troubleshoot this
<jakobrs> Oh right you need to open ports in the firewall
<{^_^}> https://github.com/NixOS/nixpkgs/pull/85856 (by Izorkin, 1 day ago, open): nginx: update to 1.18.0
ebopp has joined #nixos
<pingveno> `programs.mosh.enable = true;`
<jakobrs> yes
<jakobrs> that line
<jakobrs> Is what's missing if you just do nix-env -iA
<zeta_0> i already asked this same question in #elm, but that channel is dead(no one is there)
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @equirosa opened pull request #85949 → tut: 0.0.2 -> 0.0.7 → https://git.io/JfLKb
<{^_^}> [nixpkgs] @Lassulus merged pull request #85192 → dotty: 0.20.0-RC1 -> 0.23.0-RC1 → https://git.io/JfLKA
<{^_^}> [nixpkgs] @Lassulus pushed commit from @matthewess to master « dotty: 0.20.0-RC1 -> 0.23.0-RC1 »: https://git.io/JfLKx
rogue_koder_ has quit [Ping timeout: 240 seconds]
<lassulus> maybe there should be channel/discourse thread for stalled PRs where people can raise awareness, and there should be a mention in the template
xe4 has quit [Quit: leaving]
rogue_koder_ has joined #nixos
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/85e5cc38f8a (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<cole-h> I think it's better to have someone take over (by opening a new PR) and closing the stalled one(s) after it gets merged
<{^_^}> [nixos-homepage] @davidak pushed to contribution « Add Contributing page »: https://git.io/JfL6I
<lassulus> yes, if the opener doesn't respond thats the right way, but if the opener can't get maintainer awareness to merge something is another problem
<cole-h> In that case, you get somebody else to review, and then post it in the "PRs already reviewed" Discourse thread
<cole-h> Most times somebody asks for a review on here, somebody (even if not just me) is usually happy to oblige
<laika___> lassulus: thanks :)
<Desetude> I'm trying to setup a derivation where I need to cross compile for a generic i686-elf target with no libc. I have set crossSystem.config = "i686-elf", but how do I set it up to get the toolchain without libc?
kwannoel has quit [Quit: -a- IRC for Android 2.1.55]
sarcasticadmin has joined #nixos
<{^_^}> [nixpkgs] @peti pushed 56 commits to haskell-updates: https://git.io/JfL6W
cirno999 has joined #nixos
o1lo01ol1o has joined #nixos
ravndal has quit [Quit: WeeChat 2.8]
laika___ has quit [Remote host closed the connection]
vidbina_ has quit [Ping timeout: 265 seconds]
<cirno999> hello, I seem to be affected by https://github.com/NixOS/nixpkgs/issues/61718 . does anyone know how to switch to grub 2.02? I'm on 20.03
<{^_^}> #61718 (by gnidorah, 48 weeks ago, open): grub efi fails on latest nixos-unstable
rogue_koder_ has quit [Ping timeout: 265 seconds]
o1lo01ol1o has quit [Ping timeout: 265 seconds]
growpotkin has joined #nixos
rogue_koder_ has joined #nixos
vyorkin has quit [Remote host closed the connection]
mchasard has joined #nixos
<mchasard> hi
iqubic` has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
iqubic has joined #nixos
<mchasard> how to upgrade system regularly its allways under console theres no graphic interface ?
<mchasard> how to upgrade system
<benny> I have to say re: PRs I feel sort of silly with my pull request trying to get the attention of a committer. I know everyone does it on their own spare time and now I'm also adding to their leisure workload with my silly merge request
o1lo01ol1o has joined #nixos
rogue_koder_ has quit [Ping timeout: 265 seconds]
<zeta_0> hello there, i need to set: `export NODE_OPTIONS="--max-old-space-size=8192"` in order to fix an error that elm-ls is throwing: http://dpaste.com/3A03DN8 , i'm using lorri+direnv+direnv-emacs, so should i set this in the `.envrc` file or should i set it in a `shellHook` inside in the shell.nix file?
chagra_ has quit [Ping timeout: 240 seconds]
zupo has joined #nixos
Desetude has quit [Quit: WeeChat 2.7.1]
<{^_^}> [nixpkgs] @Mindavi opened pull request #85950 → aflplusplus: 2.59c -> 2.64c → https://git.io/JfLiC
<mchasard> i have install nixos with mate, how to change desktop simply ?
<{^_^}> [nix] @matthewbauer closed pull request #3506 → Add --include-ifd option to nix-instantiate → https://git.io/JffPD
jakobrs has quit [Quit: WeeChat 2.8]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage2nix: update list of broken builds to fix evaluation »: https://git.io/JfLiR
fragamus has joined #nixos
<{^_^}> [nixpkgs] @Lassulus merged pull request #70401 → Quast: init at 5.0.2 → https://git.io/Jec5M
mchasard has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @Lassulus pushed 2 commits to master: https://git.io/JfLiE
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfLiu
ravndal has joined #nixos
<{^_^}> [nixpkgs] @lovesegfault opened pull request #85951 → binutils: 2.31.1 -> 2.34 → https://git.io/JfLio
FRidh has quit [Ping timeout: 264 seconds]
FRidh has joined #nixos
fragamus has quit [Ping timeout: 265 seconds]
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
o1lo01ol1o has joined #nixos
knupfer has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<cole-h> lovesegfault++ Nice sleuthing.
<{^_^}> lovesegfault's karma got increased to 25
rogue_koder_ has joined #nixos
chagra_ has joined #nixos
Fulgen- has quit [Quit: ZNC 1.7.5 - https://znc.in]
<{^_^}> [nixpkgs] @LnL7 opened pull request #85952 → lapack: fix darwin library identifiers → https://git.io/JfLPO
syd has joined #nixos
<syd> Have the nixops docs dissappeared?
Fulgen has joined #nixos
<{^_^}> [nixpkgs] @lovesegfault opened pull request #85953 → coreutils: 8.31 -> 8.32 → https://git.io/JfLP3
<cole-h> LnL++
<{^_^}> LnL's karma got increased to 36
Zer000 has joined #nixos
<lovesegfault> cole-h: :)
<cole-h> LnL++ Once more, for good measure
<{^_^}> LnL's karma got increased to 37
<cole-h> lovesegfault: Man, staging is gonna be popping after your 2 recent PRs...
<cole-h> We're already rebuilding stdenv because of the openssl bump
<cole-h> Only 120k builds to go......
<lovesegfault> REBUILD ALL THE THINGS
vidbina_ has joined #nixos
<zeta_0> placing export NODE_OPTIONS="--max-old-space-size=16384" in a shellHook inside shell.nix fixed the elm-ls error in emacs
jchia_ has joined #nixos
waleee-cl has joined #nixos
jchia_ has left #nixos [#nixos]
khumba has joined #nixos
<Zer000> I need help! I ran this script https://github.com/Zer0-/mainline/blob/master/shell.nix (which worked fine yesterday) and it ran out of memory: http://dpaste.com/0Y6VQZR.txt No idea what to do
<cole-h> Whatever is in that directory gets added to the store
<cole-h> So you'll want to do something with it, likely `lib.cleanSource`
eof has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @ggreif closed pull request #85583 → wasmtime: 0.12.0 -> 0.15.0 → https://git.io/JfUXI
<Zer000> cole-h, thank you!!!
eof has joined #nixos
zeta_0 has left #nixos ["rcirc on GNU Emacs 26.3"]
<{^_^}> [nixpkgs] @Trundle opened pull request #85954 → skaffold: 1.6.0 -> 1.8.0 → https://git.io/JfLXT
syd has quit [Quit: Connection closed]
<qy[m]> > pkgs.nheko.version
<{^_^}> "0.6.4"
Guest36 has joined #nixos
<qy[m]> patience is a virtue...
sarcasticadmin has quit [Ping timeout: 258 seconds]
doyougnu has joined #nixos
Ilya_G has joined #nixos
shibboleth has joined #nixos
rogue_koder_ has quit [Remote host closed the connection]
rogue_koder_ has joined #nixos
<Ilya_G> I am installing nixpkgs.python37Packages.pystemd and it requires libsystemd-dev in order to work. That package does not exist, how should I go about adding it?
<infinisil> Ilya_G: You mean you get an error when you're trying to use it?
<Ilya_G> correct when I build it it says: pystemd/daemon.c:608:10: fatal error: systemd/sd-daemon.h: No such file or directory
<Ilya_G> infinisil: this is caused by absence of libsystemd-dev library
<cole-h> ,locate systemd/sd-daemon.h
<{^_^}> Found in packages: elogind, libudev.dev, systemd_with_lvm2.dev
<lordcirth> handy command
<infinisil> Ilya_G: Can't replicate on latest nixpkgs-unstable, this builds for me: nix-build channel:nixpkgs-unstable -A python3.pkgs.pystemd
sarcasticadmin has joined #nixos
<energizer> benny: torvalds on small patches https://lkml.org/lkml/2004/12/20/255
<Ilya_G> Hm. I ran that and I just got this : tar (child): xz: Cannot exec: No such file or directory
<infinisil> Huh, what's your nix version?
<{^_^}> [nixos-weekly] @Drakonis opened pull request #118 → Rename mailing list link to discourse → https://git.io/JfLXM
<drakonis> aha
<drakonis> there we go
<Ilya_G> 2.3.2
<energizer> Xe: https://github.com/DBCDK/morph has an upload-secrets command
<Ilya_G> infinisil 2.3.2
<infinisil> Ilya_G: Hm, not sure what's up with that, maybe you're missing the `tar` binary in your PATH?
<infinisil> Could find out with `which tar`
<infinisil> But anyways, that package builds on nixpkgs-unstable, you could verify with a nixpkgs clone
<Ilya_G> infinisil: /nix/var/nix/profiles/default/bin/tar
<{^_^}> [nixos-homepage] @davidak pushed to contribution « Add Contributing guide »: https://git.io/JfLXN
<Ilya_G> infinisil: its trying to get unpacking 'https://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz'... and if I curl it I get redirected
<Ilya_G> is that an issue
<infinisil> Nah
<{^_^}> [nixos-homepage] @davidak pushed to contribution « Add Contributing guide »: https://git.io/JfLXp
zeta_0 has joined #nixos
zeta_0 has left #nixos [#nixos]
<{^_^}> [nixos-weekly] @domenkozar pushed 2 commits to master: https://git.io/JfL1f
<{^_^}> [nixos-weekly] @domenkozar merged pull request #118 → Rename mailing list link to discourse → https://git.io/JfLXM
peelz has quit [Remote host closed the connection]
peelz has joined #nixos
<{^_^}> [nixos-homepage] @garbas merged pull request #411 → Add Contributing page → https://git.io/JfLKq
<{^_^}> [nixos-homepage] @garbas pushed 2 commits to master: https://git.io/JfL1q
choward has quit [Quit: Ping timeout (120 seconds)]
<{^_^}> [nixos-homepage] @garbas pushed 0 commits to contribution: https://git.io/JfL1m
dongcarl has quit [Quit: Ping timeout (120 seconds)]
choward has joined #nixos
judson has quit [Quit: ZNC 1.7.4 - https://znc.in]
vesper has quit [Quit: ZNC 1.7.5 - https://znc.in]
dongcarl has joined #nixos
khumba has quit [Quit: Leaving]
vesper11 has joined #nixos
seku has quit [Quit: Ping timeout (120 seconds)]
stree has quit [Excess Flood]
stree has joined #nixos
zeta_0 has joined #nixos
judson has joined #nixos
<zeta_0> in nixpkgs is elm packaged together with nodejs , or will i need to install it separately?
proofofkeags has quit [Remote host closed the connection]
<energizer> are elm and node related?
fendor has quit [Read error: Connection reset by peer]
<zeta_0> energizer: elm is used with node, so i was just wondering if they are packaged together, here's the shell.nix file that i have setup: https://dpaste.org/gSUy
fendor has joined #nixos
<zeta_0> energizer: earlier i was having some problems with elm-language-server, so i was just trying to troubleshoot to see what was wrong
<zeta_0> well i got elm-ls working on emacs, so nevermind
<zeta_0> i got 2 other errors thrown, but they are more related to emacs: https://dpaste.org/8tCp
Guest36 has left #nixos ["Textual IRC Client: www.textualapp.com"]
koleesch has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @Ma27 pushed to master « gitAndTools.diff-so-fancy: 1.2.7 -> 1.3.0 »: https://git.io/JfL1S
<{^_^}> [nixpkgs] @luc65r opened pull request #85955 → mate-tweak: init at 20.04.0 → https://git.io/JfLMe
<{^_^}> [nixpkgs] @luc65r closed pull request #85091 → deezloader-remix: init at 4.3.0 → https://git.io/JvjWK
<{^_^}> [nixpkgs] @Ma27 pushed to release-20.03 « gitAndTools.diff-so-fancy: 1.2.7 -> 1.3.0 »: https://git.io/JfLMO
koleesch has joined #nixos
<{^_^}> [nixpkgs] @peti pushed 27 commits to haskell-updates: https://git.io/JfLMc
<{^_^}> [nixpkgs] @worldofpeace merged pull request #85892 → ibus: fix dconf db installation → https://git.io/JfIbw
<{^_^}> [nixpkgs] @worldofpeace pushed 4 commits to master: https://git.io/JfLMC
cr4y1 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfLM8
cr4y1 has joined #nixos
<zeta_0> i got (lorri+direnv+emacs-direnv) setup pretty good, but i just to need to figure out a couple of edge cases with regards to environment variables, so i need to do some research on direnv, to understand the .envrc file better
ddellacosta has quit [Quit: WeeChat 2.2]
<cole-h> worldofpeace: What's happening with #85417? IIRC, you were thinking of closing it. (I ask because it came up on peti's stream earlier, due to him requesting changes and the conversation being marked as resolved without changes applied)
<{^_^}> https://github.com/NixOS/nixpkgs/pull/85417 (by worldofpeace, 1 week ago, open): Mark broken master
<{^_^}> [nixpkgs] @ryneeverett opened pull request #85958 → ycmd: typescript completion support → https://git.io/JfLMa
<worldofpeace> cole-h: yeah, I'm going to close it.
koleesch has quit [Remote host closed the connection]
<cole-h> OK, cool, thanks for the update :)
<{^_^}> [nixpkgs] @worldofpeace closed pull request #85417 → Mark broken master → https://git.io/JffQO
<cole-h> worldofpeace++
<{^_^}> worldofpeace's karma got increased to 153
<worldofpeace> yeah, just way too difficult with the time it would take currently
ddellacosta has joined #nixos
chloekek has quit [Ping timeout: 256 seconds]
<cole-h> Automated mark as broken is the future!
<{^_^}> [nixpkgs] @peti pushed 15 commits to haskell-updates: https://git.io/JfLMo
<gchristensen> worldofpeace++ for taking care of yourself :)
<{^_^}> worldofpeace's karma got increased to 154
fadenb has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfLMK
<worldofpeace> yeah, I'm just chilling applying serums, feeling well 🤣
<gchristensen> sounds great
<freeman42x[m]> I have connected my bluetooth headset to NixOS machine. How do I switch the audio output to be sent to them?
<cole-h> See you in 6 months, when we do this again... :P
<freeman42x[m]> using NixOS with KDE
<makefu> freeman42x[m]: pavucontrol normally
FRidh has quit [Quit: Konversation terminated!]
<freeman42x[m]> ugh, now I keep getting connection to the device failed when trying to pair it... so buggy
<{^_^}> [nixpkgs] @peti pushed 14 commits to haskell-updates: https://git.io/JfLM1
<worldofpeace> freeman42x: I feel like plasma5 would have something in systemsettings for sure
<makefu> bluetooth under linux always was not the best experience for me
<evelyn> bluetooth has got really a lot better recently
proofofkeags has joined #nixos
<evelyn> pulseaudio-modules-bluetooth adds aptX, AAC and LDAC codec support
<{^_^}> [nixpkgs] @flokli merged pull request #85856 → nginx: update to 1.18.0 → https://git.io/JfIaV
<{^_^}> [nixpkgs] @flokli pushed 3 commits to master: https://git.io/JfLMy
<worldofpeace> nixos got a big bluez update
<evelyn> so you're not stuck with SBC which sounds like a steaming pile of crap
<colemickens> I've had way more issues with usb hubs than BT recently. :(
<makefu> evelyn: if your bluetooth does not disconnect the whole damn time
<evelyn> bluetooth is a nightmare on windows and macOS too... my sony headphones keep disconnecting on macOS until i re-pair them
<evelyn> I thoughht it was because I had it paired with a few devices, but it happened to a new pair too
<energizer> has anyone figured out a nice way to gitignore result/ without globally ignoring all directories with that name?
<energizer> or maybe nix would consider making the default name something more unique like nix-result/ ?
proofofkeags has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @peti pushed 0 commits to haskell-updates: https://git.io/JfLDv
Desetude has joined #nixos
<{^_^}> [nixpkgs] @peti merged pull request #85926 → Update Haskell package set to LTS 15.9 (plus other fixes) → https://git.io/JfLGl
<{^_^}> [nixpkgs] @peti pushed 18 commits to master: https://git.io/JfLDf
chagra_ has quit [Ping timeout: 256 seconds]
<djahandarie> Has anyone used nix to build a "vendored build environment" that can be shipped to another system (that doesn't have nix) to run the build?
<djahandarie> It seems like it should be possible
fadenb has quit [Quit: killed]
<ornxka> nix-build -kK --argstr system x86_64-linux --argstr crossSystem i686-linux -A chromiumDev
<thequux[m]> energizer: I drop a .gitignore file next to shell.nix containing `/result`
<ornxka> i run this and it builds firefox???
<lordcirth> djahandarie, you mean run natively? Because it would be easy to build a vm image
<freeman42x[m]> makefu: got it with pavcontrol, cheers makefu++
<{^_^}> makefu's karma got increased to 5
<djahandarie> lordcirth, yeah, natively. Though if you have a link for the VM image method that'd be cool to read about
<djahandarie> (The basic constraint is the remote system has no internet access and doesn't have nix on it)
fadenb has joined #nixos
<{^_^}> [nixpkgs] @Ma27 opened pull request #85959 → neomutt: 20200417 -> 20200424 → https://git.io/JfLDO
chagra_ has joined #nixos
knupfer has quit [Quit: knupfer]
<{^_^}> [nixpkgs] @garbas merged pull request #75117 → phoronix-test-suite: add tests → https://git.io/Jey2n
<{^_^}> [nixpkgs] @garbas pushed 2 commits to master: https://git.io/JfLD8
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
gxt has quit [Remote host closed the connection]
gxt has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
noudle has joined #nixos
<freeman42x[m]> evelyn: `bluetooth is a nightmare on windows` totally not true, it just works in an overwhelmingly amount of use-cases
<evelyn> that sort of statement is really hard to say whether it's true or not.. in case it wasn't obvious it's a nightmare for /me/
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/b79ee84c29f (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<zeta_0> hello everyone, i'm a self taught junior developer currently looking for a coding job, anyways, are there any nix related jobs that you'd recommend i apply to as a junior developer? https://discourse.nixos.org/c/jobs/23
o1lo01ol1o has quit [Read error: Connection reset by peer]
o1lo01ol_ has joined #nixos
<zeta_0> i'm searching all over the internet for remote jobs, so i figured i'd ask here, to see if anyone has some tips
doyougnu has quit [Ping timeout: 250 seconds]
justanotheruser has quit [Quit: WeeChat 2.7.1]
aveltras has quit [Quit: Connection closed for inactivity]
dermetfan has quit [Ping timeout: 265 seconds]
<zeta_0> well, nevermind, i guess i'm better off asking this on reddit
xeron832 has joined #nixos
<{^_^}> [nixpkgs] @lopsided98 opened pull request #85960 → pythonPackages.pymavlink, mavproxy: update → https://git.io/JfLDS
<energizer> thequux[m]: then i have to do it in every project, which is a pain
infandum has quit [Remote host closed the connection]
thonkpod has quit [Quit: WeeChat 2.6]
<{^_^}> [nixpkgs] @flokli closed pull request #78204 → binutils: 2.31.1 -> 2.33.1 → https://git.io/JvLOW
noudle has quit []
thonkpod has joined #nixos
<peelz> how are overlays applied? I can't find where the `overlays` parameter goes past the "booter" point
cosimone has joined #nixos
gxt has quit [Remote host closed the connection]
zeta_0 has left #nixos ["rcirc on GNU Emacs 26.3"]
xeron832 has quit [Quit: ERC (IRC client for Emacs 26.3)]
glittershark has joined #nixos
alex57 has joined #nixos
<alex57> Hi there. I'm trying to get NixOS working on Raspberry pi 4 with this guide - https://nixos.wiki/wiki/NixOS_on_ARM. Unfortunately Installation and Configuration steps are a bit obscure for me. I've downloaded latest aarm64 unstable image and flashed it on my sd card with `dd`, what are my next steps?
aaabbbbbbbbbb has joined #nixos
<aaabbbbbbbbbb> Hi, does sombody have a working Samba share config; I want public share no username, no password when connecting from Windows machine?
<aaabbbbbbbbbb> I've been going insane about this, tried a lot of options in samba, but nothing seems to work.
knupfer has quit [Quit: knupfer]
<evils> alex57: put the sd card into your pi and connect power to your pi
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<alex57> evils unfortunately, rpi4 doesn't seem to boot at all -- I get "rainbow screen"
<alex57> should I tweak some configs before trying to boot?
reallymemorable has joined #nixos
iqubic` has joined #nixos
<evils> alex57: going by my experience with the pi 3, no; you did use an sd_image right?
iqubic` has quit [Remote host closed the connection]
iqubic has quit [Ping timeout: 256 seconds]
<alex57> evils, yes, as the guide suggested, tried both unstable and 19.09
<alex57> evils, yes, as the guide suggested. I tried both unstable and 19.09
ATuin has quit [Ping timeout: 240 seconds]
noudle has joined #nixos
<evils> alex57: i'm not seeing the pi4 image linked on that page, https://hydra.nixos.org/build/117585582
<energizer> how do i wrap a subcommand? for example, i want `nix build` to be replaced with `nix build -o nix-result`
<alex57> evelyn as well as pi3 ;-) Didnt I suppose to download and use generic nixos-sd-image-*-aarch64-linux.img
noudle has quit [Client Quit]
<{^_^}> [nixpkgs] @worldofpeace opened pull request #85961 → nixos/qemu-vm: don't set -vga std → https://git.io/JfLyB
<energizer> is there a config file for providing options to the `nix` cli commands?
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<{^_^}> [nixos-homepage] @davidak pushed to commercial « Add Commercial support page »: https://git.io/JfLyE
<drakonis> :o commercial support
<drakonis> energizer: hmm, what do you mean with that?
<drakonis> oh yes well
<{^_^}> [nixos-homepage] @davidak opened pull request #412 → Add Commercial support page → https://git.io/JfLya
<energizer> drakonis: like the git config file provides options so you dont have to add them on the cli, i want the same for nix
<drakonis> you can't extend the current setup
thonkpod has quit [Quit: WeeChat 2.6]
<{^_^}> [nixpkgs] @Wulfsta opened pull request #85962 → elmerfem: init at release-8.4 → https://git.io/JfLyK
thonkpod has joined #nixos
mupf has quit [Quit: WeeChat 2.7]
mupf has joined #nixos
srid has joined #nixos
aaabbbbbbbbbb has quit [Ping timeout: 265 seconds]
<energizer> i just want `nix build` to always take `-o nix-result` by default
cosimone has quit [Quit: Quit.]
<ornxka> nix-build /mnt/kagami/src/nixpkgs/master/default.nix -A pkgsi686Linux.chromium i run this (on x86_64) and it complains "error: unsupported CPU i686" because adoptopenjdk doesnt provide 32-bit binary packages
cosimone has joined #nixos
<ornxka> is there a way i can just build it myself though?
iqubic has joined #nixos
<symphorien> I don't think chromium can link at all on x86_32
mupf_ has joined #nixos
<ornxka> ah, does that command run the toolchain as 32 bit?
<ornxka> i can confirm that it doesnt
mupf has quit [Read error: Connection reset by peer]
<symphorien> yes, everything is 32 bits with this command
<ornxka> ahhh
<ornxka> nix-build -kK --argstr system x86_64-linux --argstr crossSystem i686-linux -A chromium i tried this but a lot of packages fail with gcc: command not found
<ornxka> also it tries to build firefox?
mallox has quit [Quit: WeeChat 2.8]
eof has quit [Ping timeout: 256 seconds]
vidbina_ has quit [Ping timeout: 260 seconds]
eof has joined #nixos
emacsomancer has quit [Ping timeout: 250 seconds]
cosimone has quit [Quit: Quit.]
cosimone_ has joined #nixos
mupf_ has quit [Quit: WeeChat 2.7]
aaabbbbbbbbbb has joined #nixos
mupf has joined #nixos
<{^_^}> [nixpkgs] @seqizz opened pull request #85963 → physlock: add optional lock message → https://git.io/JfLSf
aaabbbbbbbbbb has quit [Client Quit]
<alex57> evils sorry, I misunderstood you a bit. You provided rpi4 specific image, but how it differs from combined aarch64 image? I why is it preffered. also https://github.com/NixOS/nixpkgs/issues/73828
<{^_^}> #73828 (by samueldr, 22 weeks ago, closed): [20.03] Remove `sd_image_raspberrypi4` from branch
<alex57> evils and why is it preferred?*
RosieRoff has joined #nixos
cosimone_ has quit [Client Quit]
Darkmatter66_ has joined #nixos
Darkmatter66 has quit [Ping timeout: 256 seconds]
RosieRoff has quit [Client Quit]
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
<evils> alex57: i'm not familiar with the pi 4 specifically, maybe try #nixos-aarch64; why that image is preferred seems to be explained in that issue; how it differs, can be ascertained by comparing nixpkgs/nixos/modules/installer/cd-dvd/sd-image-raspberrypi4.nix to sd-image-aarch64.nix; did you try the rpi4 specific image?
<alex57> evils gonna try, but it looks to be actually the same as aarch64 -- it has the same name
knupfer has quit [Ping timeout: 240 seconds]
<evils> alex57: the different sd-image products do all have the same name, but have different hashes
jlv has joined #nixos
rgrau has quit [Remote host closed the connection]
reallymemorable has quit [Quit: reallymemorable]
reallymemorable has joined #nixos
<mupf> 6hls8gx0c7prqf6gc2s1q9kp5w57jnb4-unit-script-nixos-activation-start[11330]: /nix/store/6hls8gx0c7prqf6gc2s1q9kp5w57jnb4-unit-script-nixos-activation-start: line 22: XDG_CONFIG_HOME: parameter null or not set
<mupf> Anyone able to help me with this?
shafox has quit [Remote host closed the connection]
<mupf> exporting XDG_CONFIG_HOME doesn't seem to be enough
<mupf> I can't upgrade my system anymore
__monty__ has quit [Quit: leaving]
<{^_^}> [nixpkgs] @lilyball opened pull request #85964 → jazzy: 0.13.1 -> 0.13.3 → https://git.io/JfLSR
proofofkeags has joined #nixos
<visl> I'm messing around with nix-shell and default.nix -- how do i create an alias or a small script to put on PATH? i tried adding `alias blah=path/to/script.sh` in shellHook but that doesn't seem to do anything
<iqubic> How do I enable flash in firefox?
<cole-h> add `firefox.enableAdobeFlash = true;` to your nixpkgs config
<cole-h> Or `programs.firefox.enableAdobeFlash = true;` if you want to set it with home-manager
<iqubic> Can I set this in my configuration.nix?
<cole-h> `nixpkgs.config.firefox.enableAdobeFlash = true;`
<iqubic> Hopefully this works.
<numkem> visl: maybe the easiest approach would be to change it in your `.bashrc` as nix-shell will open new bash shell
dermetfan has joined #nixos
emacsomancer has joined #nixos
<alex57> evils thank you, I managed to boot my rpi with that image
<visl> numkem: it actually might be the fact that i'm using direnv's `use_nix` in the directory that's causing the issue.. it looks like it works with nix-shell default.nix
<numkem> visl: interesting, I do the same (using direnv). From I've learned there are some more magic nix-shell does
<evils> alex57: :D
<cole-h> lovesegfault: ping
<alex57> evils it looks strange for me that wiki doesn't provide any clue about proper image for rpi4
<{^_^}> [nixpkgs] @flokli opened pull request #85965 → make libusb1 dependencies explicit → https://git.io/JfL9v
<{^_^}> [nixpkgs] @worldofpeace opened pull request #85966 → 20.03 mutter backports → https://git.io/JfL9U
<{^_^}> [nixpkgs] @worldofpeace opened pull request #85967 → gnome3.mutter334: 3.34.4 -> 3.34.5, backports → https://git.io/JfL9I
<{^_^}> [nixos-homepage] @davidak pushed to nixcon « Make call more visible on NixCon Team page »: https://git.io/JfL9t
<lovesegfault> cole-h: pong
<evils> alex57: that's because the wiki is community maintained
<visl> numkem: yeah seems like it: https://github.com/direnv/direnv/issues/73 "direnvs design [targets environment variables]"
<{^_^}> direnv/direnv#73 (by pwaller, 6 years ago, open): Picking up aliases and functions
<cole-h> lovesegfault: binutils finally eval'd. Something's up with busybox
bqv has quit [Quit: WeeChat 2.8]
<lovesegfault> yeah, lots of things are broken
<cole-h> :D
tgamblin53 has joined #nixos
<lovesegfault> we're doing something illegal in Nix
<lovesegfault> apparently exploiting some binutils bug
<gchristensen> wat
<cole-h> oof, is there more in that ML thread? Haven't checked it since you posted the PR originally
<lovesegfault> gchristensen: any binutils >=2.32 explodes everything
<{^_^}> #85951 (by lovesegfault, 3 hours ago, open): binutils: 2.31.1 -> 2.34
<lovesegfault> cole-h: I don't think there's any news on the ML
* lovesegfault checks email
<cole-h> Yeah, just checked. Nothing, at least on the web archive
<lovesegfault> yeah, nope
<numkem> visl: would be super slick to be able to export functions as well and be portable while using your "own" shell (mostly going to be zsh these days I'd assume)
<cole-h> Is this the same error that was on the old PR lovesegfault?
tgamblin53 has quit [Remote host closed the connection]
<cole-h> Or is the "cannot find section .dynamic" stuff new
<lovesegfault> cole-h: yes, but on different pkgs
<lovesegfault> you can repro with rhash
<lovesegfault> > cp: setting permissions for 'source': Function not implemented
<{^_^}> error: syntax error, unexpected $undefined, expecting ')', at (string):306:29
<visl> numkem: agreed.
numkem has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
gxt has joined #nixos
dermetfan has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @jtojnar opened pull request #85968 → gnome3.updateScript: Add freeze functionality → https://git.io/JfL98
reallymemorable has quit [Quit: reallymemorable]
<iqubic> How do I check if flash is actually enabled in firefox?
<visl> numkem: ah pkgs.writeShellScriptBin might be good enough for my use case.
<{^_^}> [nixpkgs] @falsifian merged pull request #85897 → remarkable-toolchain: init at 1.8-23.9.2019 → https://git.io/JfIhg
xO1 has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @falsifian pushed 2 commits to master: https://git.io/JfL9g
bqv has joined #nixos
<{^_^}> [nixos-homepage] @davidak opened pull request #413 → Make call more visible on NixCon Team page → https://git.io/JfL9V
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/JfL9K
<{^_^}> [nixpkgs] @Infinisil merged pull request #85255 → trivial-builders: Sanitize derivation name → https://git.io/Jfvvq
maddo has quit [Quit: See ya]
fendor has quit [Read error: Connection reset by peer]
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
reallymemorable has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #85969 → 19.09 mutter backports → https://git.io/JfL9N
maddo has joined #nixos
proofofkeags has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @worldofpeace pushed to revert-85892-ibus-db « Revert "ibus: fix dconf db installation" »: https://git.io/JfLHI
<{^_^}> [nixpkgs] @worldofpeace opened pull request #85970 → Revert "ibus: fix dconf db installation" → https://git.io/JfLHt
<{^_^}> [nixpkgs] @worldofpeace merged pull request #85970 → Revert "ibus: fix dconf db installation" → https://git.io/JfLHt
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JfLHq
<{^_^}> [nixpkgs] @worldofpeace pushed 0 commits to revert-85892-ibus-db: https://git.io/JfLHm
<cirno999> how can I chroot into nixos from another distro?
Bunogi1 has joined #nixos
Bunogi has quit [Ping timeout: 256 seconds]
Bunogi1 is now known as Bunogi
jlv has quit [Remote host closed the connection]
<simpson> cirno999: https://nixos.org/nixos/manual/index.html#sec-installation-additional-notes 2.5.4 covers installation from a non-NixOS distro, and gets you the nixos-enter command, which is a single command for setting up and entering a chroot.
maddo has quit [Quit: See ya]
virus_dave has joined #nixos
<{^_^}> [nixpkgs] @m-scr opened pull request #85971 → [20.03] virtualbox: 6.1.4 -> 6.1.6 → https://git.io/JfLHP
<cirno999> so you can't do it w/o nix?
<simpson> Probably you can; I imagine that you'd set up /sys, /proc, and networking, and then chroot.
<simpson> Oh, indeed, the wiki has a recipe: https://nixos.wiki/wiki/Change_root
<cirno999> that is exactly what i wanted simpson
<cirno999> simpson++
<{^_^}> simpson's karma got increased to 19
<cirno999> ;D
Bunogi has quit [Ping timeout: 240 seconds]
justanotheruser has joined #nixos
<virus_dave> Noob question on nix-shell shebangs. Why does NIX_PATH work the way i'm observing?
<virus_dave> `$ nix-shell --pure -A my-der ./. --command 'echo $NIX_PATH'` outputs
<simpson> wiki++ for random recipes that look reasonable
<virus_dave> nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixpkgs
<virus_dave> ... but a script that looks like this:
<virus_dave> `#!/usr/bin/env nix-shell`
<virus_dave> `#!nix-shell -i bash --pure -A my-der ./. `
<virus_dave> `echo NIX_PATH=$NIX_PATH`
<virus_dave> ...shows the env variable empty?
bqv has quit [Remote host closed the connection]
<simpson> That's a good question! I was going to guess --pure, but you've got it in both spots. The man page doesn't say directly, but maybe the parenting of the invoked shells is slightly different when nix-shell is used as a shebang interpreter. pstree or similar may be able to show you that structure.
witchof0x20 has quit [Ping timeout: 250 seconds]
jb55 has quit [Remote host closed the connection]
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/0657426ad90 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<iqubic> How do I check if flash is enabled on Firefox?
<visl> probably about:plugins -- or adobe's flash test page
<visl> there's a check button here https://helpx.adobe.com/flash-player.html
<evanjs> Is there a way to do failable ExecStartPre commands with systemd in nixos? Not sure how to grep for "-" :P
<iqubic> Well, I set nixpkgs.config.firefox.enableAdobeFlash = true; in my configuration.nix, and rebuilt my system. It's still not working. :(
jb55 has joined #nixos
<cole-h> iqubic: #76943
<{^_^}> https://github.com/NixOS/nixpkgs/issues/76943 (by petercommand, 15 weeks ago, open): Firefox plugins don't work anymore
<evanjs> was going to say
<evanjs> could've sworn that was removed and ^ yup
<iqubic> Oh dear. How do I fix this?
<virus_dave> @simpson pstree isn't so helpful. Looks like this:
<virus_dave> | | |-+= 16974 davenicponski bash --rcfile /private/var/folders/j9/jl2kybmd20b639j0lzxdjyjh0000gn/T/nix-shell-16974-0/rc
<virus_dave> | | | \--- 17066 davenicponski sleep 180
<virus_dave> (above for the nix-shell --command, below for the script with nix-shell shebang)
<virus_dave> | | |-+= 19233 davenicponski bash ./test.sh
<virus_dave> | | | \--- 19356 davenicponski sleep 180
<cole-h> Ouch
<cole-h> ,paste virus_dave
<{^_^}> virus_dave: Use a website such as [ https://gist.github.com/ http://ix.io/ https://hastebin.com/ http://sprunge.us/ https://paste.ee/ ] or similar services to share anything that's longer than a couple lines.
<peelz> gchristensen: what would you think of adding stepping commands to nix-repl? `:si <expr>` to step in, `:so` to step out, etc. that way you could debug complex `let ... in ...` expressions
o1lo01ol_ has quit [Remote host closed the connection]
<gchristensen> sounds cool!
o1lo01ol1o has joined #nixos
tmp has joined #nixos
<evanjs> nix repl eval lol
<peelz> gchristensen: I'll open an issue then if you think it's a good idea. It's not a fully fleshed-out idea yet but I think it's a good starting point
<cole-h> ndb
<cole-h> Nix debugger
<peelz> that's a thing?
<cole-h> No, I was just bikeshedding a name :P
<peelz> ah haha
<{^_^}> #81727 (by brano543, 7 weeks ago, open): Systemd ignoring special prefixes
<peelz> what should I make the issue about? `nix debugger` or is that too generic?
<iqubic> So, is there anything I can do to get flash working in Firefox?
<evanjs> peelz: I think the initial description you had worked
<peelz> alright
<evanjs> "add ability to evaluate/step through expressions in nix repl" or etc
remirol has joined #nixos
o1lo01ol1o has quit [Ping timeout: 260 seconds]
jb55 has quit [Quit: jb55]
lorimer has quit [Ping timeout: 258 seconds]
<peelz> evanjs gchristensen: https://github.com/NixOS/nix/issues/3535
<{^_^}> nix#3535 (by LouisTakePILLz, 22 seconds ago, open): add debugging/stepping commands to nix repl
proofofkeags has joined #nixos
<iqubic> evanjs: Is there anything I can do to get flash working in firefox?
<{^_^}> [nixpkgs] @flokli merged pull request #85971 → [20.03] virtualbox: 6.1.4 -> 6.1.6 → https://git.io/JfLHP
<{^_^}> [nixpkgs] @flokli pushed 3 commits to release-20.03: https://git.io/JfL7J
<evanjs> iqubic: I honestly don't know. I haven't used flash in forever, but you could always pin an older version of nixpkgs and use firefox from there
<evanjs> not sure what the best route for current firefox versions is, though
<iqubic> I'm able to make it work by just using Google-Chrome for now.
erasmas has quit [Quit: leaving]
Bunogi has joined #nixos
<evanjs> iqubic: "All plugin related options, except for the adobe flash player, have been removed, since Firefox from version 52 onwards no longer supports npapi plugins "
<cole-h> evanjs: Curious: does putting the hyphen in the ExecStartPre's contents work?
<cole-h> (re your comment on that systemd issue)
<evanjs> cole-h: I've tried, but -- wait lemme cat it to be certain
<evanjs> iqubic: and wait it looks like enableAdobeFlash is still in tree IIUC?
proofofkeags has quit [Ping timeout: 260 seconds]
<cole-h> It is, but because of the issue I linked earlier, it seems to be broken (or at least, not fixed)
Desetude has quit [Quit: WeeChat 2.7.1]
<evanjs> oh okay I missed that
<evanjs> cole-h: I'm assigning a multiline script to ExecStartPre. Prefixing each line with - doesn'
alex57 has quit [Remote host closed the connection]
<evanjs> doesn't work, and shows each line, well, just like that, starting with a -
<iqubic> evanjs: I'm able to set the value of enableAdobeFlash to true, but that doesn't make flash work for me.
<evanjs> iqubic: yeah, as col-h mentioned earlier, none of them seem to work atm --> #76943
<{^_^}> https://github.com/NixOS/nixpkgs/issues/76943 (by petercommand, 15 weeks ago, open): Firefox plugins don't work anymore
<evanjs> cole-h* lol
<virus_dave> ok so, if i cannot rely on nix-shell shebangs, my next thought is to have a wrapper script which just does something like `nix-shell --pure ./. -A my-der --command "my-command $@". What's the appropriate way to pass arbitrary positional parameters to `my-command` this way? $@ seems to not work quite right
cr4y1_ has joined #nixos
cjpbirkbeck has joined #nixos
cr4y1 has quit [Ping timeout: 240 seconds]
reallymemorable has quit [Quit: reallymemorable]
Aishawhite has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #85337 → common-updater-scripts: add mark-broken script → https://git.io/JfvNz
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JfL7o
Aishawhite has quit [Client Quit]
emilis has quit [Quit: Leaving]
<abathur> virus_dave: may help to better understand what you're trying to accomplish? I don't recall a condition where NIX_PATH still mattered once inside nix-shell
justanotheruser has quit [Ping timeout: 256 seconds]
reallymemorable has joined #nixos
<abathur> or why you're trying to override it?
teto has quit [Ping timeout: 272 seconds]
mzan has quit [Ping timeout: 256 seconds]
mbrgm has quit [Ping timeout: 265 seconds]
mbrgm_ has joined #nixos
mbrgm_ is now known as mbrgm
<virus_dave> OK, so the difference between the two is that the non-shebang case is executing /etc/bashrc, which is what's setting this, whereas the shbang version is not (unless i change that `-i bash` to `-i "bash -i"`)
<virus_dave> for context, i'm trying to convert a use of Bazel on mac to be only used from within a minimal nix pure environment. This allows bazel to see the same minimal, deterministic environment from different machines, which makes shared build and test result caching highly effective.
<virus_dave> some of those things done via bazel (in particular, some tests) require spawning their own nix-shell with particular packages, which tests then make use of
dansho has joined #nixos
jb55 has joined #nixos
ixxie has quit [Quit: Lost terminal]
dingenskirchen has quit [Quit: dingenskirchen]
cjpbirkbeck has quit [Quit: cjpbirkbeck]
dingenskirchen has joined #nixos
<abathur> on the basic behavior, --command runs in an interactive shell
<abathur> and -i "bash -i" is of course also setting up an interactive shell
justanotheruser has joined #nixos
jb55 has quit [Client Quit]
cjpbirkbeck has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #85929 → python37Packages.scrapy: 2.0.1 -> 2.1.0 → https://git.io/JfLnV
<{^_^}> [nixpkgs] @jonringer pushed commit from @marsam to master « python37Packages.scrapy: 2.0.1 -> 2.1.0 »: https://git.io/JfL5U
<abathur> I don't recall if NIX_PATH is supposed to be defined in a shell or not; I guess you might want to pass it in with --keep
teto has joined #nixos
proofofkeags has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/0dfdfc263d1 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<abathur> but it's worth realizing that nix-shell is already a little bit of a hack for dev/isolation environments (i.e., it's *for* experimenting with packing stuff), so there are some rough edges relative to what you'd design precisely for the purpose
dansho has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #85968 → gnome3.updateScript: Add freeze functionality → https://git.io/JfL98
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/JfL5I
srid has quit [Quit: Connection closed for inactivity]
gustavderdrache has quit [Quit: Leaving.]
<abathur> it may also be helpful to use something like `env -i` to genuinely clear the environment and assert more explicit control over it
proofofkeags has quit [Ping timeout: 265 seconds]
<abathur> depending on exactly what you're doing, it may also make more sense to build a .nix file and run it with nix-build, where it'll run in a more-isolated build environment
<{^_^}> [nixpkgs] @worldofpeace opened pull request #85973 → [20.03] gnome3.updateScript: Add freeze functionality → https://git.io/JfL5O
<peelz> evanjs: sorry for pinging you directly but do you think you could help me out with something? trying to figure out how to use `lib.composeExtensions`
<cole-h> Or you could post your question here and whoever can help, will help :)
<peelz> sure
<peelz> cole-h: https://0x0.st/ijyd.txt I'm trying to create an overlay system for my kernelPackages
<peelz> but I can't get this to eval
<peelz> (I've asked a couple times but couldn't seem to get anybody intestered :P)
chagra_ has quit [Ping timeout: 260 seconds]
<cole-h> Well, first I would wrap the composeExtensions stuff in a paren
<cole-h> s
<peelz> well I'm just passing that function to foldl
ebopp has quit [Remote host closed the connection]
<peelz> (fold takes 3 params)
<Miyu-saki> To be even more interesting, `nix-shell` is actually a wrapper to a derivation build which then enters the (build) environment. Makes me think that a flag like --extract to extract said derivation would be cool. :)
<virus_dave> @abathur can you expand on this slightly? What do you mean?
<cole-h> peelz: May or may not help, but here's what I do to be able to use my various overlays like nixpkgs-wayland, etc, using composeExtensions: https://gist.github.com/cole-h/fe793b8cb224107146485826451e95dc
<cole-h> (so I don't need a separate file/`overlay = import ...` for each)
sophiag has joined #nixos
<peelz> cole-h: uhh I'm even more confused now
<cole-h> Perfect :D
rogue_koder_ has quit [Ping timeout: 240 seconds]
<peelz> cole-h: I'm trying to compose overlays together in `createPkgs`, then pass that to `linuxPackages.extend`
<abathur> virus_dave: any specific part? :)
WhatisRT has quit [Ping timeout: 260 seconds]
<cole-h> peelz: tbh I don't even know why this worked. I was being hand-held by infinisil -- when they show up, might get some more help out of them
<peelz> cole-h: although this seems to work but Idk why I get errors in my nix config: pkgs.linuxPackages_latest.extend (lib.foldl lib.composeExtensions (final: super: {}) [])
<energizer> Miyu-saki: is that different from nix-build?
<peelz> cole-h: hmm alright, thanks anyhow :)
<virus_dave> i'm trying to understand what the "create a nix file and run it with nix-build" would do or how it would work / help
<infinisil> o/
<cole-h> Oh hi
<peelz> infinisil is here!
<cole-h> infinisil: Maybe you can help peelz do the thing then :)
<peelz> lol
<Miyu-saki> energizer: What I mean to say is that you have a dry-run output which exports a Nix file.
<Miyu-saki> Which you can then run with `nix-shell ./foo` or whatvere.
<virus_dave> i want THING to invoke $PATH/bazel, such that when bazel queries its environment, it always sees only a small number of things that are the same on every machine (that's at the same commit hash for the repo in question)
rogue_koder_ has joined #nixos
<Miyu-saki> A limitation of this is that it'd only populate `buildInputs`
chagra_ has joined #nixos
<infinisil> peelz: What's the code and error? (always a good thing to post those upfront btw)
<energizer> Miyu-saki: i see
<virus_dave> currently i'm trying to use a shell script shebang'd for nix-shell to act as THING.
<Miyu-saki> Because nix-shell isn't exactly cross-compile aware.
<peelz> infinisil: well it keeps changing depending on what I try >_<
<peelz> infinisil: I'll make a test case hold on