<NemesisD>
i'm building a docker image with nix and it seems like some tool i'm using inside of it is calling something like `whoami` (I guess, it is throwing `getpwuid(): uid not found: 0`). it seems like the image is missing /etc/passwd? is there something i'm missing here?
jgt has joined #nixos
o1lo01ol1o has joined #nixos
<jackdk>
pastebin your nix expr that's building the image? I usually point my dockerTools.buildImage calls at an alpine base image
<jackdk>
I don't do much with containers though, so take with salt
selfsymmetric-mu has joined #nixos
<NemesisD>
jackdk: oh i guess that might be it. until now i've not even used a base image, i've just loaded my executables and a few packages into what i presume is a `scratch` base image
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fj2tE
mexisme has joined #nixos
ym555_ has joined #nixos
ym555 has quit [Ping timeout: 248 seconds]
selfsymmetric-mu has left #nixos ["gone to the land of dead hiccups and extinguished light bulbs"]
<jasongrossman>
Aha. That label option is interesting. I use named profiles in order to see what I'm doing on my boot menu ... but profiles have been giving me trouble when I want to gc my boot partition.
freeman42y has quit [Ping timeout: 258 seconds]
<cjpbirkbeck>
jasongrossman, the gc doesn't collect old profiles?
sb0 has quit [Quit: Leaving]
<li_matrix>
is the flakes feature ready for early usage
<gchristensen>
no
<gchristensen>
maybe for very advanced users
<gchristensen>
who are comfortable reading Nix's source code
xkapastel has quit [Quit: Connection closed for inactivity]
gagbo has quit [Ping timeout: 245 seconds]
<li_matrix>
iv been working on a similar behavior using dirty hacks, so Im fairly interested, looks like a lot of code landed recently and then things got more quiet, hence my question. I might give it a try today
<li_matrix>
it would help my flow a lot
<jasongrossman>
cjpbirkbeck: It doesn't. It collects old GENERATIONS of the main profile, but not (the boot files of) other profiles.
<jasongrossman>
cjpbirkbeck: I'm talking about the initrds on the boot partition, not the things in /nix/store.
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.2)]
gagbo has joined #nixos
<o1lo01ol1o>
'LD_LIBRARY_PATH=${pkgs.libspatialindex}:$LD_LIBRARY_PATH' <- I'm trying to set the location of libspatialindex_c.so in a derivation whose build step requires it be in LD_LIBRARY_PATH; does this look like the correct way to do so?
<cjpbirkbeck>
so how do you get rid of the initrds from the boot partition?
drakonis has joined #nixos
<jasongrossman>
cjpbirkbeck: I don't know. It's a problem.
<jasongrossman>
OK, weird. I'm trying 'export NIXOS_LABEL_VERSION="test"; nixos-rebuild switch', and nix is redownloading most of my packages, for no reason that I can see.
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cjpbirkbeck has quit [Quit: Leaving]
jgt has joined #nixos
<jasongrossman>
Maybe even all of my packages.
<gchristensen>
did you upgrade your channel?
cjpbirkbeck has joined #nixos
toppler has quit [Ping timeout: 245 seconds]
<jasongrossman>
gchristensen: No. And unstable (which I'm on) hasn't needed an update recently.
<gchristensen>
ah.
<jasongrossman>
gchristensen: I mean, I updated my channel last time I switched channels, if that's what you mean. I'm not sure why "ah"!
<jasongrossman>
It sure looks like nix thinks I've just switched channels.
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
jgt has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @marsam opened pull request #63050 → cloud-nuke: init at 0.1.7 → https://git.io/fj2tS
<jasongrossman>
I won't mind, as long as it doesn't do anything similarly strange every time I change NIXOS_LABEL_VERSION.
<gchristensen>
I would be surprised
toppler has joined #nixos
<gchristensen>
since the label is't used by much :)
rpg has joined #nixos
nD5Xjz has quit [Ping timeout: 246 seconds]
<jasongrossman>
gchristensen: Just out of intellectual curiosity though I wonder why it's downloading anything even once, on a channel where my nix store was already up to date. Don't need to know why. Just would like to.
nD5Xjz has joined #nixos
<{^_^}>
[nixpkgs] @marsam opened pull request #63051 → noah: init at 0.5.1 → https://git.io/fj2tH
<jasongrossman>
I see it's downloading slightly old versions of things. I guess it's using stable, i.e. not using the correct channel.
<jasongrossman>
This is slow to test properly on my main machine. If I have time later I'll use a VM or something to test it more thoroughly.
o1lo01ol1o has quit [Remote host closed the connection]
kim0 has quit [Quit: Connection closed for inactivity]
<jasongrossman>
Temporary conclusion in case anyone searches the logs for information on this: there seems to be SOME sort of bug when NIXOS_LABEL_VERSION is set to something other than the default.
rpg has quit [Ping timeout: 245 seconds]
gagbo has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
duoi has quit [Remote host closed the connection]
gagbo has joined #nixos
duoi has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
pinote has left #nixos ["Leaving"]
nD5Xjz_ has joined #nixos
InFlames has joined #nixos
nD5Xjz has quit [Ping timeout: 248 seconds]
jgt has joined #nixos
jb55 has joined #nixos
nD5Xjz has joined #nixos
cjpbirkbeck has quit [Quit: Leaving]
nD5Xjz_ has quit [Ping timeout: 248 seconds]
jgt has quit [Ping timeout: 252 seconds]
cjpbirkbeck has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
ericsagnes has quit [Quit: WeeChat 2.4]
cjpbirkbeck has quit [Quit: Leaving]
dansho has quit [Read error: Connection reset by peer]
dansho has joined #nixos
ericsagnes has joined #nixos
cjpbirkbeck has joined #nixos
jasongrossman has quit [Ping timeout: 246 seconds]
dbmikus has quit [Quit: WeeChat 2.4]
domogled has joined #nixos
cjpbirkbeck has quit [Quit: Leaving]
drakonis has quit [Read error: Connection reset by peer]
ericsagnes has quit [Ping timeout: 248 seconds]
<{^_^}>
[nixpkgs] @kalbasit opened pull request #63052 → bazel: fix nix-hacks.patch with the latest version of Bazel → https://git.io/fj2q0
alex`` has quit [Ping timeout: 245 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<PyroLagus>
the manuals really need to be cleaned up and updated. they're good, but there's quite a few typos, and some info seems very out of date
<PyroLagus>
nobody seems to have bothered to build either (vs)code or vscodium from source
<PyroLagus>
the vscode source is definitely MIT as well
cjpbirkbeck has joined #nixos
jgt has joined #nixos
jasongrossman has joined #nixos
<jasongrossman[m]>
mjrosenb: There are lots of Haskell people in this channel... only not at the moment, apparently.
<jasongrossman[m]>
mjrosenb: So ask again later.
<mjrosenb>
jasongrossman[m]: that's my plan.
jgt has quit [Ping timeout: 250 seconds]
<jasongrossman[m]>
:)
gagbo has quit [Ping timeout: 248 seconds]
gagbo has joined #nixos
fresheyeball has joined #nixos
<fresheyeball>
hey out there
<fresheyeball>
I got postgresT to build mostly
<fresheyeball>
but tests do not pass
<fresheyeball>
I could easily just use dontCheck to get past this
<fresheyeball>
but I would rather see the tests pass
<fresheyeball>
so I need to provide postgresql to this haskell package so its available durring it's testing
<cjpbirkbeck>
so NIXOS_LABEL is suppose to override system.nixos.label or am i mistaken?
<cjpbirkbeck>
NIXOS_LABEL_VERSION contains the version, right?
<Gopal[m]>
can anyone help me with this?
<Gopal[m]>
> so I'm running awesomewm with lightdm. Wire-Desktop crashes when I try to restore a backup with the error: no Glib schmas are installed on the system
<{^_^}>
error: syntax error, unexpected WITH, expecting ')', at (string):254:26
<Gopal[m]>
<jackdk "also: this is the fun stuff you "> it would be fun but I don't know any nix :(
reinhardt has quit [Quit: Leaving]
<jackdk>
that was more of a general PSA. It takes time, and you can pick up a lot by osmosis
<Gopal[m]>
one more thing, is there a binary version of libreoffice? `libreoffice-fresh` seems to build from source
o1lo01ol1o has joined #nixos
<Gopal[m]>
yeah I've been trying to learn but eveytime I start, nix just overwhelms me which is why I've been constantly moving between nixos and arch
jb55 has quit [Ping timeout: 256 seconds]
nikola_i has joined #nixos
o1lo01ol1o has quit [Ping timeout: 248 seconds]
fresheyeball has quit [Quit: WeeChat 2.4]
cjpbirkbeck has quit [Quit: Leaving]
Rusty1 has quit [Quit: Konversation terminated!]
<nikola_i>
hi, does any one use steam with nvidia prime as mentioned here https://nixos.wiki/wiki/Nvidia. How to use the script primerun.sh for launching on a pergame basis. It keeps asking for sudo password.
<Gopal[m]>
jackdk: can you point me the source of one nix file? like what something like services.xserver.libinput.enable = true actually does?
<jackdk>
I've also heard people recommend reading the nix/nixos/nixpkgs manuals in a circle as they all fill out bits of information. I think nix pills builds up some of the machinery nixpkgs uses, so following that series might help too, but I read it later
<Gopal[m]>
Is there a reference of all the options inside stdenv or lib?
nD5Xjz has quit [Ping timeout: 245 seconds]
<Ashy>
Gopal[m]: man configuration.nix
<Ashy>
also the manuals mebtioned above
<jackdk>
there might be some stuff in nixpkgs manual for that. I often find myself source-diving, and getting good at grep
gagbo has quit [Ping timeout: 248 seconds]
mexisme has quit [Ping timeout: 244 seconds]
<Ashy>
yeah check out the nixpkgs repo and use ripgrep too
nD5Xjz has joined #nixos
<Ashy>
Gopal[m]: I'm about 6 months in to using nixos on my main machines and consider myself intermediate at best
endformationage has quit [Ping timeout: 248 seconds]
<Gopal[m]>
<Ashy "Gopal: man configuration.nix"> `configuration.nix` contains all standard options no? I'm asking for options like lib.mkDefault or lib.mkForce and a reference of what they actually do?
<Ashy>
it's worth it though, nixos is onto something amazing that the whole industry is struggling with atm
gagbo has joined #nixos
<Ashy>
snap, Flatpak, kube and orchestration in general
<Ashy>
Gopal[m]: there's a function reference in one of the manuals
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to staging « libwebp: enable parallel building »: https://git.io/fj23Y
justanotheruser has quit [Ping timeout: 248 seconds]
hmpffff has joined #nixos
<MasseR>
has there been some changes to patchShebangs in 19.03 vs unstable? I have a build that works on unstable, but with 19.03 I get 'bad interpreter: No such file or directory'
Obscurity[m] has joined #nixos
<MasseR>
--build is a new thing as well as patchShebangsAuto
<MasseR>
so .. a different usage..?
ricekrispie has quit [Read error: Connection reset by peer]
ricekrispie has joined #nixos
<{^_^}>
[nixpkgs] @danbst merged pull request #62712 → NixOS module system: improve one of error messages → https://git.io/fju2F
<kraem>
im starting to use nix-shell and am running `nix-shell -p python37Packages.pip` however the version of pip in the nix-shell is 19.0.3 - since the nix-store is immutable i'm unable to upgrade pip when i'm inside the shell. Can I somehow update pip before entering the shell? Or should i just install pip to /tmp while inside of the shell?
mthst has joined #nixos
<etu>
kraem: Feel free to check if there's a PR to update pip and review it, or open a PR if nobody has submitted one.
<etu>
kraem: If you build it in your own checkout of nixpkgs, you can use it from there as a newer version as well if you update the package
zupo has quit [Ping timeout: 268 seconds]
reinhardt has joined #nixos
<arianvp>
Hey. Does nixos-install build the system derivation in the /mnt/nix path or does it first put it in /nix and then copy it over?
__monty__ has joined #nixos
asheshambasta_m has quit [Quit: Leaving.]
mthst has quit [Ping timeout: 248 seconds]
mexisme has quit [Ping timeout: 258 seconds]
Lears has joined #nixos
[Leary] has quit [Ping timeout: 248 seconds]
mthst- has joined #nixos
Soo_Slow has quit [Remote host closed the connection]
mthst- has quit [Ping timeout: 259 seconds]
<kraem>
etu: i'm trying to figure out where the `fetchPypi` function downloads the files from to check what sha256 i should insert in nixpkgs - but searching for the function on git gives me 2k+ results - can i search for it in a better way?
<etu>
,tofu kraem
<{^_^}>
kraem: 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.
<etu>
So bump the version, change the hash to something that is probably wrong (and not the one for the old version because the store willll remember that) and then build the package
Zer000 has quit [Ping timeout: 245 seconds]
<etu>
Then it will fail and tell you that the hash is wrong and what the downloaded file had as a hash
toppler has quit [Ping timeout: 244 seconds]
nikola_i has joined #nixos
ym555 has quit [Quit: leaving...]
<kraem>
etu: alright cool - i'm not getting `nix-build -A pip` to work - do i need to include <nixpkgs> when building from the cloned nixpkgs root directory? like so: `nix-build '<nixpkgs>' -A pip`
mexisme has joined #nixos
<nikola_i>
hi i wish to use the LTS kernel instead of latest one. how do i specify it in configuration.nix
<etu>
kraem: `nix-build -A python3Packages.pip`
<etu>
kraem: When standing in the root of the nixpkgs repo
pie__ has joined #nixos
<etu>
nikola_i: Not specifying a kernel will give you the latest LTS (the one we usually consider "stable")
<kraem>
etu: cool! it built :) Can i run the result within a nix-shell somehow?
<nikola_i>
so there's never a non lts kernel in the channel if understand correctly
sb0 has quit [Quit: Leaving]
<etu>
kraem: if you want to you can install it to your profile using: `nix-env -i result` but that will save it to your profile and you probably want to remove it later using nix-env commands
<etu>
kraem: But that way it should be available in your nix-shell's as well unless you run them with --pure
xkapastel has joined #nixos
<nikola_i>
etu: so no configuration needed
<etu>
nikola_i: Well, there's non-lts kernels as well. They are just never marked as the default kernel :)
<nikola_i>
etu: okay. cool
<nikola_i>
etu: is there a way to switch to the last lts kernel instead of the present one
toppler has joined #nixos
<etu>
nikola_i: Which one do you have and which one do you want?
<nikola_i>
i have 4.19. i want to try 4.14 the previous lts
iyzsong has joined #nixos
<nikola_i>
or even 4.9 as it is supported till 2023
Zer0xp has joined #nixos
<nikola_i>
:etu 4.9 or 4.14
<etu>
nikola_i: oh, 4.19 is the latest lts so I assumed that you wanted that. boot.kernelPackages = pkgs.linuxPackages_4_14;
dansho has quit [Quit: Leaving]
<etu>
nikola_i: pkgs.linuxPackages_4_9 and pkgs.linuxPackages_4_4 seems to exist as well (at least in my channel)
<nikola_i>
etu: how will using the non default kernel impact the system. will i need to downgrade other packages as well
andreabedini has joined #nixos
<etu>
nikola_i: Shouldn't have to. Linux tend to not break userspace. So "should be fine" but it's obviously less tested this much later.
<nikola_i>
etu: but shouldn't the lts kernel i.e. 4.9 supported till 2023 be more tested and against wider hardware specs by this time
<nikola_i>
it was released in dec 2016
mthst has joined #nixos
fendor has joined #nixos
<etu>
nikola_i: It's supported with patches from upstream yes. But in NixOS there's probably fewer users of 4.9 than 4.19, so less tested in NixOS with updated packages etc.
gagbo has quit [Ping timeout: 272 seconds]
<kraem>
nix-env -i results in "error: selector 'result' matches no derivations" - the manual states i should use "nix-env -f . -iA libfoo" - i haven't really learned the profiles yet as you probably can figure out
<kraem>
etu
<etu>
kraem: result/ then
<etu>
nikola_i: What's the reason for running the older kernel? Bugs with a newer one? Things that shoud be reported?
<kraem>
etu: thanks! just did my first PR to nixpkgs - would you have time to review to see if i've done something wrong? I don't know how to do the testing using sandboxing though
<kuznero[m]>
Hi All! Does anyone have any experience with tensorflow haskell package? Currently marked as broken :(
<Zer0xp>
kuznero[m]: Do I have to install any additional packages ?
<eyJhb>
etu: power. Are there any requirements to get added? :p
<etu>
eyJhb: That I don't know the answer to :)
<etu>
eyJhb: "If you need it and people see you doing stuff" I think is the answer at the moment
<kuznero[m]>
Zer0xp: nope, nothing else as far as I know.
<eyJhb>
etu fair, might start being a little more active, and hoping I can get some PRs closed. But, properly AFTER my exams would be a better time to start
Neo-- has joined #nixos
<etu>
eyJhb: More help on reviewing is always welcome, but putting exams first seems to be a good priority for your sake :)
<eyJhb>
Yeah, even though I am getting tired of these algortihms.. But, after monday, I am done with them all, hopefully
<Zer0xp>
kuznero[m]: Alright then, I'll try it out. Thanks a lot.
<kuznero[m]>
np
<pmiddend>
As of lately, nixos-rebuild switch doesn't create new boot loader entries anymore. What could be the reason?
<eyJhb>
pmiddend any errors?
<Zer0xp>
kuznero[m]: How do I find the bus ID of the Nvidia GPU ?
[Leary] has joined #nixos
<pmiddend>
eyJhb: Sadly no
Lears has quit [Read error: No route to host]
dwdr has joined #nixos
<etu>
kraem: Oh wow, yeah, your PR is almost fine. But it causes a lot of rebuilds because many things uses pip. Nothing wrong with that. But when that happens we usually target the branch named "staging" to let it brew there for a bit and rebuild things to warm up the binary cache.
<etu>
kraem: So if you could change that (maybe by closing and creating a new PR) that would be great :)
<Zer0xp>
kuznero[m]: Nevermind, I figured it out :)
orivej has joined #nixos
<kuznero[m]>
Zer0xp: nice, please share if it works/does not work
<kuznero[m]>
You might also want to enable: `hardware.opengl.enable = true; hardware.opengl.driSupport32Bit = true;` if you want your steam to work ;)
<kraem>
etu: alright! cool! give me a sec and i'll do that
neeasade has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @Profpatsch opened pull request #63077 → bazel: add update script to update srcDeps from WORKSPACE file → https://git.io/fj2ZV
<Zer0xp>
kuznero[m]: I just tried rebuilding the config but I'm getting the following error:
<Zer0xp>
When NVIDIA Optimus via PRIME is enabled, the GPU bus IDs must configured.
<Zer0xp>
Failed assertion
<Zer0xp>
And how did you know that I use Steam ? :D
<Zer0xp>
I'
drakonis has joined #nixos
<Zer0xp>
l'll enable those too.
fusion809 has quit [Remote host closed the connection]
<kuznero[m]>
Zer0xp: there are some comments in my original pastebin, try to follow recommendations on how to choose bus id
<Zer0xp>
I've chosen the bus ID
<Zer0xp>
I have a Dell too
<Zer0xp>
And the Nvidia bus ID was the same as yours
<kuznero[m]>
Basically, ` # Bus ID of the NVIDIA GPU. You can find it using lspci; # for example if lspci shows the NVIDIA GPU at "01:00.0", set this option to "PCI:1:0:0".`
veske2 has quit [Quit: This computer has gone to sleep]
<eyJhb>
Is there a way to open up the .nix file for a package?
<Zer0xp>
kuznero[m]: Yes, I've done exactly that
<srhb>
eyJhb: nix edit nixpkgs.hello
<srhb>
eyJhb: Works Most Of The Time^{tm}
<kraem>
kuznero[m]: Sorry didn't see your pastebin - i'll remove myself :)
Anton-Latukha has quit [Remote host closed the connection]
Jackneill has quit [Ping timeout: 245 seconds]
<__monty__>
eyJhb: I think I saw something the other day along the lines of flatpack support is good, appimage can be gotten to run but it's hackish and annoying and snaps are not at all supported. Don't take my word for it though.
<kuznero[m]>
Works?
Anton-Latukha has joined #nixos
<eyJhb>
:( I really want to get into Blender, and use Megascans....
<eyJhb>
Will look at it.. Later.. *keep getting sidetracked
<kraem>
etu: I don't now if you have to trigger the tests again manually - looks like the old tests were saved from the previous PR though
<eyJhb>
kraem why close/create a new?
<eyJhb>
Ahh, sorry, nvm
<eyJhb>
Didn't read etu message
<eyJhb>
But kraem you properly need to base it on staging to start with, currently there are like.. 60 extra commits
<Yaniel>
eyJhb: I have an overlay that replaces the package with 2.80
<Yaniel>
downside is that you have to wait for an hour as it builds
<eyJhb>
Yaniel I have been rebuilding NixOS for three days none-stop this week, that is fine by me!
<eyJhb>
Also.. Used to Vbox rebuilding each.. Time.. So hit me up with it :D
acarrico has quit [Ping timeout: 272 seconds]
<eyJhb>
Are you a Blender expert Yaniel ?
<Yaniel>
no
<Yaniel>
i can post the overlay when I get home
Jackneill has joined #nixos
<Yaniel>
sohopefully in half an hour
<Yaniel>
I'm pretty much a beginner wrt blender
<{^_^}>
[nixpkgs] @dmvianna opened pull request #63079 → inconsolata-nerdfont: init at 2.0.0 → https://git.io/fj2nG
<kraem>
eyJhb: tried googling but couldn't figure out what base on staging means - care to explain? is there something i can do?
<eyJhb>
kraem when you have cloned nixpkgs, you basically checkout `staging`, which is a branch in nixpkgs. After this you edit your file (pip in this case), and make the commit like you did before
<{^_^}>
[hydra] @edolstra merged pull request #654 → Allow to search builds by hash → https://git.io/fjuiQ
<eyJhb>
So instead of using master as your base branch, you end up using staging as your base branch => and then when you open your PR against staging, you only get your commit, and not all the other commits which are not in staging, but in master, etc.
<srhb>
eyJhb: staging should really only be used for mass rebuild-y things though
<eyJhb>
srhb yeah, but it is pip, lots of things are based on that :) also, etu said so pretty much :D
<srhb>
Oops, sorry
<srhb>
Still, I'd tend to do it on nixos-unstable and merge into staging afterwards anyway :-P
<eyJhb>
kraem did that make sense?
<eyJhb>
srhb: pst.. Git tricks! This seems easier :p
Zer0xp has quit [Ping timeout: 256 seconds]
<srhb>
eyJhb: Usually just grab nixos-unstable from the nixpkgs-channels repo (its head should be approximately master after hydra builds have gone through) then essentially just try to PR against staging if needed. If you have to, you can rebase onto it locally to fix conflicts, etc.
<eyJhb>
Hmm, yeah. I think first things first, I should remove some of my 5+ git clones og nixpkgs/channels :p
<kraem>
eyJhb: yeah - so i should close the PR and checkout staging locally - push changes to staging on my fork and open a new PR on staging?
<eyJhb>
kraem, yeah pretty much! That is at least, the easiet for my own hard to comprehend :) - or do as srhb said! Whatever you feel is the easiest way
<eyJhb>
But I don't think you need to , close it etc. but it might make it easier instead of having to force push etc.
<eyJhb>
And I can't remember if you can change branch of a active PR
<eyJhb>
So yeah, just close and reopen
<kraem>
cool. thanks!
numac has joined #nixos
<eyJhb>
np :D And then you can ping someone to rebuild it with the bot. :)
knupfer has quit [Remote host closed the connection]
kvaster_ has joined #nixos
knupfer has joined #nixos
<betaboon_>
is it possible to have a shell.nix for a default.nix which defines a python-package and define additional packages (in shell.nix) while keeping the python-package in development-mode ?
<kraem>
nice, were the tests triggered automatically?
aramiscd has joined #nixos
InFlames has quit [Ping timeout: 258 seconds]
<etu>
kraem: Nah, ones need to be whitelisted for that to happen, and the commit message would need to be "python3Packages: 19.0.3 -> 19.1.1" for it to detect the package name as well
veske3 has joined #nixos
<eyJhb>
Aka. I am not special enough to trigger them ^
<kraem>
etu: ah ok. Not python37Packages.pip?
hmpffff has quit [Quit: nchrrrr…]
<etu>
kraem: python3Packages point to the latest point-relelase of python, so at the moment it's the same as python37Packages :)
nikola_i has quit [Quit: Leaving]
<eyJhb>
PythonPackages points to... 2.7? Or is that none-exisistent?
<etu>
We still have python27Packages, but they should go away soon
drakonis has quit [Read error: Connection reset by peer]
hmpffff has joined #nixos
drakonis_ has joined #nixos
<eyJhb>
But do we have PythonPackages that just points to the latest Python release?
<etu>
eyJhb: Hmm, that seems to point at 2.7
<eyJhb>
That should properly be changed :/ Even though it will result in.. Chaos
drakonis has joined #nixos
<etu>
Indeed
<kraem>
alright but pip shouldn't be included in the commit message since it was the module that was updated?
<aveltras>
has anyone encountered this error "error: haskellPackages.multi-ghc-travis has been renamedto haskell-ci, which is now on hackage" ? i'm on a pretty barebone haskell package
<pie__>
joepie91[m], ok will take a look
PirBoazo has joined #nixos
drakonis1 has quit [Ping timeout: 268 seconds]
<PirBoazo>
Hi all
<{^_^}>
[nixpkgs] @Profpatsch merged pull request #63052 → bazel: fix nix-hacks.patch with the latest version of Bazel → https://git.io/fj2q0
<{^_^}>
[nixpkgs] @Profpatsch pushed commit from @kalbasit to master « bazel: fix nix-hacks.patch with the latest version of Bazel (#63052) »: https://git.io/fj2Cb
<PirBoazo>
I install an application in my user environnement. i don't see the icon wher i must declare this issue
<aveltras>
what's your desktop environment ?
<PirBoazo>
kde
<aveltras>
PirBoazo: and your problem is that after rebuilding your configuration.nix, the program doesn't show up in the menu ?
gagbo has quit [Ping timeout: 268 seconds]
gagbo has joined #nixos
<PirBoazo>
I dont rebuild my configuration , i reboot to see the app in menu
<pmiddend>
Quick question: Do you have your /boot mounted (via filesystems."blabla")?
<fluffynukeit>
Hi, all. Suppose I have a piece of software that requires Ubuntu 16.04 as its OS requirement. Is there any kind of Nix derivation or channel that will allow me to get dependencies matching UBuntu 16.04?
drakonis_ has quit [Ping timeout: 248 seconds]
jgt1 has joined #nixos
jgt has quit [Ping timeout: 252 seconds]
<simpson>
fluffynukeit: Not really. What happens if you run it under Nix instead?
Tucky has quit [Ping timeout: 245 seconds]
<simpson>
Are you worried about too-new packages?
ardumont has quit [Ping timeout: 252 seconds]
<lordcirth>
fluffynukeit, I would run it using normal nixpkgs and see if it works.
<fluffynukeit>
My concern is not getting support from the company because we are not using one of their supported OSes
<fluffynukeit>
I think I could get it to work on Nix, and have gotten pretty close with a decent amount of effort for a newbie
<{^_^}>
[nixpkgs] @vbgl opened pull request #63088 → gappa: update and add Coq support library → https://git.io/fj28q
codedmart has joined #nixos
rpg has joined #nixos
<marek>
when to use "propagatedBuildInputs = with python3Packages" and when "propagatedBuildInputs = with pythonPackages"?
<lordcirth>
fluffynukeit, I doubt that hacking together some 16.04-ish set of dependencies would get you any support either.
Neo-- has quit [Ping timeout: 252 seconds]
<fluffynukeit>
lordcirth, right, but it's easier for me to point my derivation at this "ubuntu-like" layer instead of hacking together something
<fluffynukeit>
my concern is that whatever I hack together will not match ubuntu as well as something that is hacked together for me and maintained
<lordcirth>
fluffynukeit, what software is it? I wouldn't be surprised if it just worked with the latest nixpkgs.
<fluffynukeit>
my concern is not that it works now. My concern is getting it to work and keeping it working. The software is Vivado from Xilinx
<fluffynukeit>
with "keeping it working" to mean that I can easier upgrade to new versions of vivado
<fluffynukeit>
*easily
<joepie91[m]>
fluffynukeit: my experience with these sort of requirements is that that kind of software falls into one of two categories: 1) works fine on every recent Linux system, or 2) falls over the moment anything is even remotely different from a fresh install of the specified OS
<joepie91[m]>
in the former case, you can just pretend that you are running Ubuntu and translate their instructions back to NixOS
<joepie91[m]>
in the latter case, no amount of "trying to make it like Ubuntu" will ever get you close enough to actually make the software work
<joepie91[m]>
oh man, FPGA stuff?
<fluffynukeit>
yes, among other things
<fluffynukeit>
ok all, thank you for helping me understand that there is not some kind of ready-made "ubuntu clone" channel or similar for Nix. If I want to get these things working, I need to put it together myself and test it out
<fluffynukeit>
just to clarify, I would not put together an ubuntu clone, but just hack away at Nix until I could get Vivado running
<fluffynukeit>
and I would be probably forfeiting vendor support by going that route
<fluffynukeit>
forfeiting vendor might be a non-starter from the management team, though
<fluffynukeit>
*forefeiting vendor support
hio has joined #nixos
veske3 has quit [Quit: This computer has gone to sleep]
ffdfdfdf has joined #nixos
<ffdfdfdf>
Hi I am trying to install nixos on an old laptop and when running nixos-install
<ffdfdfdf>
I get an error:
<ffdfdfdf>
error: The option networking.enableIntel2200BGFirmware defined in /mnt/etc/nixos/hardware-configuration.nix does not exist
nD5Xjz has joined #nixos
<marek>
or how do I make sure my package is build only within python3Packages, ingnoring python 2?
ardumont has joined #nixos
ilmu has joined #nixos
<srhb>
ffdfdfdf: That sounds like a bug in the installer. It should be enableRedistributableFirmware I think.
<srhb>
ffdfdfdf: hardware.enableRedistributableFirmware, that is
<srhb>
ffdfdfdf: (or rather, a bug in nixos-generate-config)
<ffdfdfdf>
srhb: when you say installer do you mean nixos-generate-config?
<srhb>
Yes.
<ffdfdfdf>
So should I change it manually even though I says to not change the hardware-configuration.nix file?
<srhb>
ffdfdfdf: Yes.
<ffdfdfdf>
Since it seems to be a bug, is there anything I should do?
<ffdfdfdf>
In terms of reporting it
<ffdfdfdf>
or smth
<srhb>
ffdfdfdf: How do you feel about pull requests? :-)
<ffdfdfdf>
I have never looked at the nixos source code
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
mmlb has quit [Ping timeout: 245 seconds]
veske3 has quit [Quit: This computer has gone to sleep]
nikola_ has joined #nixos
gratto has quit [Ping timeout: 258 seconds]
nikola_i has quit [Ping timeout: 248 seconds]
codedmart7 has joined #nixos
<codedmart7>
I am reading through the manual getting ready to install NixOS for the first time. Currently I have a triple boot. Macbook Pro with OSX, ArchLinux, and VoidLinux. I am replacing Void with NixOS. I use systemd-boot currently. Is the install going to mess with my boot loader?
fragamus_ has joined #nixos
<srhb>
codedmart7: Yes, essentially.
<srhb>
codedmart7: NixOS sort of needs to take over the boot loader because the system generation to boot is part of it.
<srhb>
I'm sure you could have multiple, but I find it's easier to let NixOS take over.
<joepie91[m]>
it does scan for other OSes though
<codedmart7>
Does that mean it will overwrite the current files I have in /boot?
<joepie91[m]>
at least, GRUB does
mmlb has joined #nixos
<tilpner>
And since you have backups and a live stick prepared, not a lot can go wrong
<srhb>
codedmart7: Frankly I'm not sure whether it will nuke things already in your efisys, but I would expect that it does at least if you have the generically named efi blobs there.
<{^_^}>
[nixpkgs] @mmahut opened pull request #63092 → pythonPackages.togglCli: init at 2.1.0 (and its dependencies) → https://git.io/fj24R
<codedmart7>
OK I do have backups so no worries just planning ahead.
<srhb>
codedmart7: I don't think systemd-boot will do well with OtherOS discovery either.
<pierreis>
I'm getting an error of the form: CMake Error: The source directory "/tmp/nix-build-fizz-2019.06.10.00.drv-0/source" does not appear to contain CMakeLists.txt.
<pierreis>
Problem is, this project has its CMakeLists.txt placed in a subdirectory, not at the root
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pierreis>
Any pointers on the proper way to handle this?
drakonis_ has quit [Read error: Connection reset by peer]
pankaj__ has joined #nixos
drakonis has joined #nixos
fragamus_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nikola_ has quit [Ping timeout: 248 seconds]
v88m has joined #nixos
travelion6 is now known as travelion
drakonis has quit [Ping timeout: 258 seconds]
<srhb>
pierreis: if the source root is really that subdir, you might just want to use that as the source.
travelion is now known as travelion_
<srhb>
pierreis: or cd into it before the phase that calls the cmake hook.
travelion_ is now known as travelion
<pierreis>
I did actually just found cmakeDir option that makes the trick
<srhb>
ah, even easier.
<pierreis>
find*
<pierreis>
thanks :)
imalison has quit [Ping timeout: 248 seconds]
psyanticy has joined #nixos
inad922 has joined #nixos
<inad922>
hi
<inad922>
Is there a way to branch off in the env history or is it only linear?
pankaj__ has quit [Ping timeout: 250 seconds]
<infinisil>
inad922: Yeah it's just linear
<infinisil>
But you can put your nix expressions under git
ilmu has quit [Ping timeout: 248 seconds]
<inad922>
infinisil: Ah, that's a good idea actually
lovesegfault has joined #nixos
<gchristensen>
(...could make differently named profiles, but tbh best to just use git...)
<srhb>
inad922: I tend to use git history more than rollback really.
<srhb>
inad922: Because I don't want my brain to manage nested branching models anyway :-P
gratto has joined #nixos
<inad922>
srhb, :)
inad922 has quit [Quit: Leaving]
inad922 has joined #nixos
inad922 has quit [Client Quit]
inad922 has joined #nixos
clacke_movim has left #nixos [#nixos]
<inad922>
Btw version control sounds good
<inad922>
But what exactly do you need to put under version control?
rpg has joined #nixos
<etu>
inad922: At least all the configs
drakonis has joined #nixos
Thra11 has joined #nixos
<{^_^}>
[nixpkgs] @gebner opened pull request #63095 → opencascade: build with vtk and freeimage, patch for fontconfig support → https://git.io/fj2BG
<Ericson2314>
what's the right way to install virtualbox in nixos?
<slabity>
error: The option value `services.phpfpm.poolConfigs.restya-board' in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/web-apps/restya-board.nix' is not of type `strings concatenated with "\n"'.
<srhb>
It will answer under which conditions overlays are used when you don't explicitly specify them in your expression
Thra11 has quit [Ping timeout: 258 seconds]
<srhb>
eyJhb: Search for overlays
<srhb>
eyJhb: If you're talking about configuration.nix (as in NixOS configuration) then no, those overlays are only* used within the NixOS version of nixpkgs -- that is, essentially something like `import <nixpkgs> { overlays = ...; }` -- an explicit setting
<eyJhb>
Yeah, I have basically included a overlay in configuration.nix, so yeah.. Rebuild for it to `work`.. :/
<srhb>
eyJhb: There's an argument to be had for avoiding impurities here too :)
<eyJhb>
In configuration.nix ?
<srhb>
I kind of dislike the various "magical" locations that pick up overlays, but having a completely homogenous nixpkgs within and without NixOS is a bit tricky.
<srhb>
eyJhb: No, like ~/.config/nixpkgs/overlays, ~/.config/nixpkgs/overlays.nix etc.
<srhb>
And <nixpkgs-overlays> sort of..
<eyJhb>
Ahh.. Magical locations are always, magical. I include them in my configuration.nix, with import. So, no magic there
<srhb>
eyJhb: So, in order to get the same behaviour within and without nixos, I use <nixpkgs-overlays>
<srhb>
That way my ad-hoc nix-shells pick them up too
<srhb>
On the other hand, I might get them out of sync of my NixOS config
<srhb>
So I guess your mileage may vary.
<eyJhb>
Out of sync in which way?
<srhb>
Say, i change my overlays to support some nix-shell workflow and accidentally break my NixOS config.
<srhb>
Because some overlay is now incompatible with it.
<eyJhb>
I think my trouble might be, that I have a hard time imgaining anything related to nix-shell, that might break NixOS config. But I get the idea!
<eyJhb>
*I still basically struggle with everything related to overlays.
noqqe has joined #nixos
<srhb>
eyJhb: I can easily write an overlay that breaks, say, firefox
<srhb>
eyJhb: Now my NixOS config cannot build
<srhb>
Because I changed/created the overlay out of band with my NixOS config, I only discovered it out-of-band too.
<srhb>
eyJhb: Sort of wishy washy argument, but...
* joepie91[m]
is not a fan of the bits of magic spread throughout the Nix ecosystem
rsoeldner has joined #nixos
<srhb>
Mostly impure.nix is called that for a reason :P
<joepie91[m]>
it's probably only a handful of things like this, but together it makes it really difficult to understand how and when the Nix tools decide to do something
<joepie91[m]>
I still have a lot of black boxes in my understanding of Nix
<joepie91[m]>
too many
<srhb>
It's not so bad, frankly.. Once you see it, you realize there's not so many, imo.
<rsoeldner>
Looking for a way to generate a derivation over all installed haskell packages with a generated ctag file, someone has done this ?
<joepie91[m]>
srhb: yes, but that is exactly my point :)
rfold has joined #nixos
<joepie91[m]>
it's only a few bits of magic, with significant impact
<joepie91[m]>
that's a bad thing, not a good thing :P
<srhb>
Hm, okay.
<joepie91[m]>
srhb: like, the fact that there is only a handful of magic-y bits but it obscures the workings of *so many* things for so many people (because I am certainly not the first with this complaint) suggests that they are either *very* magic bits, or they are *very* poorly documented/argumented
<{^_^}>
[nixpkgs] @pierreis opened pull request #63097 → fbthrift: init at v2019.06.10.00 → https://git.io/fj2Rb
<joepie91[m]>
I couldn't tell you which, because like I said, I don't understand it :)
yastero has joined #nixos
fendor has joined #nixos
<noqqe>
hi guys, in telegraf its possible to define a section twice i.e. [input.mqtt]. When i define this in services.telegraf.extraconfig, the parser fails (obviously)
<Netsu>
E.g. I have with import (import ./nix/channel.nix) { config.allowUnfree = true; }; (.....) for my nix shell development environment
<lordcirth>
hyper_ch, any particular difficulties with installing root on ZFS in NixOS?
<hyper_ch>
lordcirth: just read the wiki entry
<Netsu>
How can I replace e.g. dune.version for this channel for all packages that depend on dune?
<hyper_ch>
lordcirth: https://nixos.wiki/wiki/NixOS_on_ZFS you need to use legacy as mountpoint and define them in the hardware-configuration.nix and you can't use the zfs automount
<hyper_ch>
that's about it
<lordcirth>
hyper_ch, cool, thanks
<hyper_ch>
even encryption (incl. remote unlocking) is easy
<lordcirth>
Cool, I will tinker with that
<hyper_ch>
that's what vms are predestined for ;)
<emilsp>
can't wait for 0.8 to land in stable >_<
<hyper_ch>
emilsp: why not use zfs unstable?
<hyper_ch>
boot.zfs.enableUnstable = true;
<hyper_ch>
boot.supportedFilesystems = [ "zfs" ];
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-tasty-lua: disable test suite to fix the build »: https://git.io/fj20D
<lordcirth>
hyper_ch, is that what you are doing?
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-tasty-lua: disable test suite to fix the build »: https://git.io/fj205
domogled has quit [Remote host closed the connection]
<hyper_ch>
lordcirth: what am I doing?
<lordcirth>
hyper_ch, enableUnstable
<hyper_ch>
lordcirth: yes, I need encryption
<hyper_ch>
and ssd trim
<lordcirth>
Have you seen a notable difference when enabling trim?
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-hslua-module-system: re-enable the build; it succeeds fine now »: https://git.io/fj20b
<jb55>
does anyone know of a tool like diffoscope but for auditing dependency source code changes? I want something where I upgrade my deps and get a shortlog of all the changes across all of my dependencies.
<gchristensen>
nix-diff on the drv's?
<hyper_ch>
gchristensen: isn't zfs 0.8 now also in stable?
<gchristensen>
dunno
<hyper_ch>
lemme check
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-cryptol: update overrides for new sbv version »: https://git.io/fj20N
<garbas>
zimbatm: can you also give push permissions to seppeljordan?
<garbas>
and push permissions also to me
jgt has joined #nixos
<zimbatm>
sure
alp has quit [Remote host closed the connection]
<zimbatm>
invite sent
knupfer has quit [Ping timeout: 250 seconds]
alp has joined #nixos
<m1cr0man>
holy heck. I just discovered "Open in remote terminal"
jgt has quit [Ping timeout: 248 seconds]
veske2 has joined #nixos
<m1cr0man>
this is in nautilus, when you have an ssh remote folder mounted
veske has quit [Ping timeout: 268 seconds]
alp has quit [Remote host closed the connection]
mexisme has quit [Ping timeout: 244 seconds]
fenedor has joined #nixos
otulp has joined #nixos
fendor has quit [Ping timeout: 258 seconds]
<arianvp>
Hmm
<arianvp>
I can't switch to another tty on my ThinkPad with gdm
<arianvp>
Ctrl+alt+f2 doesn't work
<arianvp>
(fresh NixOS install)
<{^_^}>
[nixpkgs] @aanderse opened pull request #63100 → drop unmaintained phabricator package, service, and httpd subservice → https://git.io/fj2uU
<o1lo01ol1o>
I have a question about pypi2nix: I have a package that requires llvm: pypi2nix -V "3.6" -r requirements.txt -e setuptools_scm -e clang -e llvm -N 'LLVM_CONFIG=${pkgs.llvm}'. However, this leads to ERROR: Could not find a version that satisfies the requirement llvm. What am I doing wrong?
Jackneill has quit [Remote host closed the connection]
Soo_Slow has quit [Remote host closed the connection]
veske2 has quit [Read error: Connection reset by peer]
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
<infinisil>
This is probably too long and should go in the wiki, but:
<infinisil>
,mime = How to set default applications for file types using xdg-mime: Use `xdg-mime query filetype <file>` to figure out the mimetype of <file>, check for available .desktop files in /run/current-system/sw/share/applications (or other base dirs from $XDG_DATA_DIRS), then use `xdg-mime default <programname>.desktop <mimetype>` to change the default program for a file type. E.g. `xdg-mime default
<{^_^}>
mime defined
<infinisil>
firefox.desktop text/plain`. Mime type for HTTP and HTTPS is x-scheme-handler/http and x-scheme-handler/https
<infinisil>
It is too long darn!
<drakonis>
cut back the size a little bit
<drakonis>
or split it in two
<drakonis>
does the bot have ability to append instead of defining?
<drakonis>
or is it all functional :V?
<infinisil>
,mime = `xdg-mime query filetype <file>` to get the mimetype of <file>, see available .desktop files in /run/current-system/sw/share/applications (or others from $XDG_DATA_DIRS), use `xdg-mime default <programname>.desktop <mimetype>` to change the default program, e.g. `xdg-mime default firefox.desktop text/plain`. Mime type for HTTP and HTTPS is x-scheme-handler/http and x-scheme-handler/https
<{^_^}>
mime redefined, was defined as How to set default applications for file types using xdg-mime: Use `xdg-mime query filetype <file>` to figure out the mimetype of <file>, check for available .desktop files in /run/current-system/sw/share/applications (or other base dirs from $XDG_DATA_DIRS), then use `xdg-mime default <programname>.desktop <mimetype>` to change the default program for a file type. E.g. `xdg-mime default
<infinisil>
There
<infinisil>
drakonis: It does not
<drakonis>
fair enough
<infinisil>
But that's been suggested before, might be nice to have
<drakonis>
anyways, flakes is the dopest thing out there, not having to wrestle with channels in order to develop is a boon
<drakonis>
i am jumping up and down with hype now
<drakonis>
does it merit a post on discourse right now?
erasmas has joined #nixos
<infinisil>
nyanloutre[m]: Oh btw, this above there was for you