<{^_^}>
[nixpkgs] @bhipple opened pull request #55868 → mirrorx.nix: add https and http mirrors for gcc → https://git.io/fh5mX
<gchristensen>
yl[m]: yay! :0
<gchristensen>
:)
rcshm has quit []
ottidmes has quit [Ping timeout: 268 seconds]
jluttine has quit [Ping timeout: 258 seconds]
jluttine has joined #nixos
thc202 has quit [Ping timeout: 268 seconds]
<mek42_laptop>
If I wanted to learn to write Nix package scripts (please correct my terminology), would starting from an existing package and updating it to a newer version from upstream be a place to start?
<clever>
mek42_laptop: the nixpkgs docs also explain how to make new packages
<elvishjerricco>
Yea the pills provide great coverage of the fundamentals.
<mek42_laptop>
ty for the link - I'm in the process of installing Nix package manager onto a Ubuntu WSL to start getting used to things before my new machine arrives
Supersonic has quit [Ping timeout: 264 seconds]
<iqubic>
Why is Mono a pain in the butt?
<clever>
iqubic: because M$ touched it
<mek42_laptop>
lol
<iqubic>
See, the majority of the Steam games I play use Mono.
<clever>
none of the .net based games ive previously played work under proton
<iqubic>
And the only way I was able to get any of them to run on nixos is by installing steam through flatpak.
<iqubic>
Which solves my issues, but I'm sure there's a better way to do this.
Supersonic has joined #nixos
i1nfusion has quit [Remote host closed the connection]
i1nfusion has joined #nixos
<iqubic>
I really wish there was a way to run these games without using flatpak.
<mek42_laptop>
by chance have you had success with Path of Exile, or Skyrim?
<iqubic>
I don't own either of those games.
<c_wraith>
PoE is free, at least for the base content
<clever>
skyrim will take 7mins to DL
<iqubic>
I feel like this should be simple to solve.
<iqubic>
If it works in flatpak, then it should work if I just put steam into system.environmentPackages. But it doesn't.
canisius has joined #nixos
ddellacosta has quit [Ping timeout: 246 seconds]
<clever>
iqubic: if you run steam from a terminal, and then try to start the game, what does it show in the terminal?
<iqubic>
It tells me that I don't have the right version of mono.
<iqubic>
But IDK how to fix that.
rcshm_ has quit [Remote host closed the connection]
<iqubic>
I solved this. The first few sites timed out, and a later mirror worked.
<Church->
gchristensen, manveru as well: So I figured you'd get a laugh out of this. After the horrors of packaging stuff and writings services around it, I've been writing a series of blog posts that I've been compiling into a short ebook. Mainly centered around writing services for NixOS to wrap around the packages you'll be building. So NixPills++ kinda.
<Church->
Curious to see how bad this fails.
<gchristensen>
yay!
<Church->
Yeah the the docs hurt me. Badly.
xkapastel has quit [Quit: Connection closed for inactivity]
<Church->
I've got a pull request I'm working on to update docs as well for a number of sections as well.
<Church->
gchristensen: Actually quick question, is there a grammar specification for Nix anywhere?
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #55870 → zoneminder: add some of the missing ONVIF dependencies → https://git.io/fh5Yy
<samueldr>
init_6: what's the issue?
<init_6>
no any errors but not build at all. need only run "ccmake"
<Ashy>
hmm, why is wayland not mentioned in the nixos manual yet?
canisius has quit [Read error: Connection reset by peer]
<samueldr>
Ashy: unhelpful answer: because no one wrote anything about wayland for the manual yet
<init_6>
samueldr: If I understand correctly need only "nativeBuildInputs = [ cmakeCurses ];"
<samueldr>
more useful answer: from memory, I think it's not ready for primetime within nixos, but I'm not sure what's the status exactly I think some users are using it as a daily driver though
shpx has joined #nixos
<Ashy>
samueldr: ok, i tested sway briefly the other day and was wondering if gnome/plasma also work on wayland
<aleph->
Anybody gotten bridges running with matrix at all?
<samueldr>
Ashy: it might also be "more right" that it's mostly because no one wrote anything yet :/
<disasm>
sway-beta works great :) Been using it on my laptop for about a month now.
<samueldr>
(since you used it)
<samueldr>
init_6: "no any errors, but not build at all" -> how are you getting "no build at all"?
<samueldr>
what command are you running to build that thinkfan?
Ralith_ has joined #nixos
<samueldr>
(I got a build building, but I'm thinking something's not right if you don't get a failure with your pastebin'd code)
<init_6>
samueldr: nix-build --check -A thinkfan
drakonis has quit [Quit: WeeChat 2.3]
<samueldr>
init_6: I believe you won't be able to use `--check` before having had a successful build, try without --check
<Ashy>
disasm: do you have a wayland displaymanager with it for a graphical login screen?
<samueldr>
--check is used to verify an existing build, so it'd kinda make sense to not --check an output it cannot check against
<disasm>
Ashy: nope, just login on CLI and run sway
<aanderse>
jtojnar: ok i did a nix-prefetch-url and that is the hash it gave me...
<jtojnar>
which looks like an issue with their build script (sdl_image not referenced)
<aanderse>
well, it gave me what i put in the PR
<aanderse>
why are you putting a different hash on the patch file?
<jtojnar>
aanderse: yeah, fetchpatch does some post-processing before calculating the hash
mek42 has joined #nixos
<aanderse>
and yes, thats the exact error i'm getting
<aanderse>
so how did you get your hash then?
<jtojnar>
if you supply an non-existing hash (which your was on my system), Nix will tell you the correct one
<jtojnar>
,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.
<aanderse>
except for that hash you provided, doesn't accept that
iqubic has quit [Remote host closed the connection]
shpx has quit [Ping timeout: 268 seconds]
<jtojnar>
yeah, fetchurl will want the one you provided
<aanderse>
well you said to use fetchurl... so your 2 changes are at odds then
joehh has joined #nixos
<jtojnar>
aanderse: yeah, I deleted the hash once I realized that but GitHub does not have deletion notifications
<aanderse>
ah ok
<aanderse>
thx
<jtojnar>
aanderse: could you also open a MR against the upstream repo with the configure.ac changes and add a comment with a link next to the changes?
<jtojnar>
otherwise, it looks good
<aanderse>
i should have just spent $10 on steam for a typing game -_-
<aanderse>
but sure :)
<aanderse>
ha ha ha
<aanderse>
thanks again for the help
<{^_^}>
[nixpkgs] @aanderse opened pull request #55872 → WIP: kdevelop: added ability to include kdevelop plugins, kdev-php: init at 5.3.1, kdev-python: init at 5.3.1 → https://git.io/fh5Oz
ym555_ is now known as ym555
dramforever has quit [Remote host closed the connection]
<jomik>
Morning guys! It seems that attribute sets are automatically ordered by their attribute names. I am trying to make an attribute set that should represent a menu, so it kind of sucks that it reorders the entries.. Is it possible to make it not reorder them? Or will I have to use lists?
<wedens>
I'd use a list. I don't see a reson not to :)
<{^_^}>
[nixpkgs] @FRidh pushed 3 commits to python-unstable: https://git.io/fh5sV
<jomik>
I guess I just prefer the look of `{ button="action" }` over `[ ["button" "action"] ]` :O
<jomik>
But thanks! :)
<wedens>
it's probably morel ike `[ { name = "button name"; action = "..." }; ]`
<hyper_ch>
I need to enable dhcp at boot but can't enable useDCHP = "yes";
yastero has quit [Ping timeout: 258 seconds]
<callahad>
When I run nixos-rebuild, does that generation's configuration.nix get saved anywhere in the store? If not, is there an easy way to ensure it does?
<hyper_ch>
system.network bridge just fails :(
orivej has joined #nixos
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to staging-next: https://git.io/fh5ZZ
<srhb->
(At least, I think it's caused by lib.warn...)
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
<srhb->
Oh, I guess it's because it only exists as an alias now.. So maybe my PR will actually fix it.
<srhb->
If so, sorry for the noise.
init_6 has quit []
<ma27>
Ouch, sorry! I didn't know that this breaks evaluations. You're right I guess, your PR will be sufficient to fix nixpkgs, the rest should get a deprecation warning, right?
<srhb->
I think so. I'll check whether gcofborg says it fixes it, and report back :)
lawlesseel has joined #nixos
grumble has quit [Quit: bring black roses for the wicked one]
srhb- is now known as srhb
estrom has quit [Remote host closed the connection]
estrom has joined #nixos
estrom has quit [Remote host closed the connection]
grumble has joined #nixos
<{^_^}>
[nixpkgs] @srhb merged pull request #55896 → x2goclient: Use nx-libs instead of nxproxy → https://git.io/fh5nc
<romildo>
local target_package=$(basename $(dirname $target))
<romildo>
''
<romildo>
Any clues on how to write it?
<xourt>
Question: I use nixpkgs for a project with a few overlays. The overlays are passed to the pkgs=import ./nixpkgs.nix {overlays=} statement. How can I add another overlay to pkgs _after_ nixpkgs was imported?
<rembo10>
Did something happen with building python applications? For some reason sickgear can no longer find cheetah. It's passed like this: pythonEnv = python2.withPackages(ps: with ps; [ cheetah ]);
<rembo10>
in python2.pkgs.buildPythonApplication rec
<ottidmes>
romildo: what error?
<rembo10>
And then called with `buildInputs = [ pythonEnv ];`
zupo has joined #nixos
<FRidh>
rembo10: cheetah is likely an *application*, and those are not included with withPackages
<FRidh>
only buildPythonPackage libraries
<FRidh>
see toPythonModule
yastero has quit [Ping timeout: 258 seconds]
<rembo10>
Is this a recent change?
<rembo10>
It's weird because it seems like it works in sabnzbd
<rembo10>
Which also depends on cheetah
<FRidh>
happened in the last year or so
<rembo10>
So weird. So this just stopped working in the last few days
orivej has joined #nixos
<rembo10>
Just sickgear.... it says it can't find cheetah anymore
<{^_^}>
[nixpkgs] @vcunat pushed 3 commits to release-18.09: https://git.io/fh5cE
<ottidmes>
romildo: from the naming you seem to want to run Nix code with shell values, you cannot just mix those worlds, although you might be able to run Nix as a script, i.e. via nix-instantiate --eval --strict --expr '{ shellVariable }: import ./nix-function.nix shellVariable' --argstr shellVariable "$shellVariable"
<wedens>
ahh, you want to use shell variable as a nix function argument. no it's not possible
yastero has quit [Ping timeout: 264 seconds]
oldandwise has joined #nixos
<romildo>
yes, I want to use a shell variable as a nix function argument.
orivej has joined #nixos
<oldandwise>
So i can test older versions gcc by `nix-shell -p gcc49`. But where do I get the list of supported gcc versions?
<tilpner>
romildo: If I understand your question correctly, you can't do that
<ottidmes>
romildo: then my example above ought to work, as long as nixFunction is standalone
<tilpner>
romildo: Nix functions only exist at the time of building your script, they are not accessible when running it
oldandwise has quit [Client Quit]
oldandwise has joined #nixos
<tilpner>
So you can't pass data back and forth between bash and Nix, just one way
zupo has joined #nixos
sigmundv has joined #nixos
<wedens>
oldandwise: you can use gcc<TAB> in nix repl '<nixpkgs>'
<wedens>
or `nix search "nixpkgs.gcc"`
<wedens>
note that it'll just match by name
<ottidmes>
oldandwise: or something like: nix eval --json '(let pkgs = import <nixpkgs> { }; in with pkgs.lib; filter (hasPrefix "gcc") (attrNames pkgs))'
<oldandwise>
Tried, `nix-shell -p gcc49` no errors. Yet, `gcc --version` gave 7.4.0 in the /nix/store/bzx... path. Shouldn't it be version 4.9 instead?
<ottidmes>
no, nix-shell is based on stdenv, which defaults to gcc7
<ottidmes>
oldandwise: the buildInputs are just examples, mind you
bgamari has quit [Ping timeout: 250 seconds]
<oldandwise>
ottidmes: tanx. It works. How do you further specify the version for sqlite from that example?
eadwu has joined #nixos
oldandwise has quit [Remote host closed the connection]
rycwo has quit [Quit: WeeChat 2.2]
bgamari has joined #nixos
rycwo has joined #nixos
babic has quit [Remote host closed the connection]
babic has joined #nixos
<ottidmes>
obadz: you generally don't, those packages that have a fixed version is only because a lot of packages still require the old version, but those are exceptions. If you want the older version of a lot of packages, it might be better to just point your nixpkgs to an older commit (although this will have security implications of course), other than that there is always the possibility of overriding packages to use
<ottidmes>
the older versions
<ottidmes>
whoops
<ottidmes>
ah, they went offline
dem is now known as demize
init_6 has quit []
<delroth>
/nix/var/nix/profiles/system/bin/switch-to-configuration: line 3: use: command not found
<delroth>
any idea what's causing this?
<delroth>
(nixpkgs master)
<delroth>
seems like something is ignoring the shebang and running the perl script in bash instead
<symphorien>
it's a bug in newer kernels
<symphorien>
the fix in not yet release
<delroth>
ok :/
<symphorien>
rollback to a previous kernel version
<delroth>
I'm just running the script manually for now, easier
<jomik>
Hey, I have a bit of an issue with nix-shell. I can't seem to get it to actually install/load any packages. I run `nix-shell -p zsh`, and a new fish (my shell) starts, with an error about something with fzf keybindings, and zsh is not installed in the environment.
<jomik>
Have I just misunderstood something? I don't recall having this issue when I didn't have my .bashrc start fish up..
<tilpner>
That might be fish related. What's the value of your $PATH?
Xal has joined #nixos
<tilpner>
How did you install fish?
<noonien>
is there a way of including packages in shell.nix from both a crossBuild and a normal build?
<jomik>
Fish is installed in home-manager, and I have a `exec ${pkgs.fish}` in my bashrc
<jomik>
Eh, I disabled fzf, so now I don't get that error regarding fzf. But I still don't get the package when I do `nix-shell -p package`. That is, `nix-shell -p libnotify` just results in an error when calling `notify-send`.
<gchristensen>
does linux require some special driver to read bluray disks? I have bluray/dvd reader which works fine for DVDs and CDs but not Blurays, erroring with cannot open '/dev/sr0' for reading: No medium found
<symphorien>
vlc can read bluray discs I think
<noonien>
yeah, you need some special libs, maybe even a licensed player
<symphorien>
but the drm of bluray is designed to only allow playback on computer XOR living room appliances
<gchristensen>
hrm, I'm just trying to read bytes off the disk
<infinisil>
I purchased a license of a bluray ripper to be able to read them
o1lo01ol1o has quit [Remote host closed the connection]
<gchristensen>
like not even access video (at this point)
<gchristensen>
seems I'm a few stages before being concerned about DRM, no?
yastero has joined #nixos
<{^_^}>
[nixpkgs] @vcunat pushed to master « nxproxy: drop the warning introduced by #55723 »: https://git.io/fh5lT
<gchristensen>
yeah, I can't mount it because linux is reporting no media
<gchristensen>
head -c1 /dev/sr0
<gchristensen>
head: cannot open '/dev/sr0' for reading: No medium found
<wedens>
it probably can only be read if it can be decrypted
<gchristensen>
wat
<gchristensen>
no way
<noonien>
did you burn it yourself?
<gchristensen>
no
<infinisil>
Ah, the program I was using to extract data from blurays was makemkv. There's a free trial version you can use for a month if you want to give it a go
<wedens>
`bd_info /dev/sr0` does it work?
xourt has quit [Quit: WeeChat 1.4]
<wedens>
also, are you in cdrom group?
<gchristensen>
I'm root :)
mmlb has joined #nixos
<gchristensen>
yeah, so, /dev/sr0 can't even be opened -- it isn't a read failure, but an open failure: openat(AT_FDCWD, "/dev/sr0", O_RDONLY) = -1 ENOMEDIUM (No medium found)
<gchristensen>
hmmm...
<samueldr>
I wouldn't be surprised the hardware refuses to read "protected" media except in a way it can attest some trust :/
<gchristensen>
not sure it can attest trust without being opened
<samueldr>
I'd guess back channels, where software says "open sesame" to the hardware?
<MichaelRaskin>
Maybe via something akin to firmware load
<samueldr>
couldn't the firmware look at the disk, see it's DRM'd, and not even try to open?
<samueldr>
I mean, that's how I'd handle such a situation in a naïve approach
<gchristensen>
I suppose so
johanot has quit [Ping timeout: 250 seconds]
Makaveli7 has quit [Ping timeout: 246 seconds]
Makaveli7 has joined #nixos
Izorkin has joined #nixos
<gchristensen>
sorted it
<gchristensen>
its a 3d bluray, but the place on the disk and the place on the box which said so was covered up
<gchristensen>
and indeed, non-3d-bluray players can't play 3d bluray disks.
<symphorien>
monotux: it does not. Installing a package with nix only ever impact your $PATH. If you want more (a systemd service, a file in /etc) you need a nixos module.
<symphorien>
so you may need to patch paths in the application: separating code (in /nix/store) and data (in /var/lib or so)
<symphorien>
the usual escape hatch is "make a service which first copies /nix/store/fdfdfd to /var/lib and then serve /var/lig
<symphorien>
"
<symphorien>
but this may explode when upgrading
<monotux>
I might as well just host this in a smaller docker container and let it use my db
<MichaelRaskin>
Well, if something assumes writeable installation directory, it already can in any case
Makaveli7 has quit [Quit: Leaving]
<clever>
MichaelRaskin: it may also try to use that write status to upgrade itself
<MichaelRaskin>
If just copying new sources is enough — that's what such service will do
<clever>
if your pre-start copies the src from the store, it will undo the update at every restart
<MichaelRaskin>
Well, self-update code indeed has to be pre-broken for safety in such case
sondr3 has joined #nixos
grenade has quit [Ping timeout: 252 seconds]
<monotux>
MichaelRaskin, the use case for self-updating php applications is easy to understand, imagine how many more bot sites would exist if wordpress couldn't self-update
<sondr3>
I'm trying to update the current version of Hugo to the latest in nixpkgs, but I cannot figure out how to update the deps.nix file
<sondr3>
I've tried vgo2nix and go2nix, but the first crashes and the latter one I cannot figure out how to use
<sondr3>
is there a dummies guide on how to contribute to NixOS with go packages?
<bhipple>
Does anyone know how to control screensaver/hibernate/auto-lock with physlock in nixos?
<bhipple>
I've found the physlock systemd service, but I don't see where to configure it to do something like "lock after 10 idle minutes"
Ariakenom has joined #nixos
rcshm has quit [Ping timeout: 255 seconds]
<ottidmes>
bhipple: I am using physlock and with suspend/hibernate it has been working fine, I looked and I don't do anything special
<ottidmes>
bhipple: maybe the setuid wrappers bit, but I dont believe that is still required, I believe I just had it for when I wanted to create my own lock button
<ottidmes>
bhipple: this is what I have: environment.systemPackages = with pkgs; [ physlock ]; security.wrappers.physlock.source = "${pkgs.physlock}/bin/physlock"; services.physlock.enable = true;
<manveru>
just switched to nixos-unstable and the only thing looking broken is the "D2Coding for Powerline" font :)
<bhipple>
ottidmes: indeed, physlock works fine; the issue appears to be the laptop never hibernates when plugged in
<bhipple>
ottidmes: I'd like to make it hybernate when idle even when connected to a power source
ddellacosta has quit [Ping timeout: 245 seconds]
<bhipple>
ottidmes: (or at least lock the screen if not hibernating)
ddellacosta has joined #nixos
slyfox has quit [Quit: :)]
<Ariakenom>
im about to install nixos but I dont have a good understanding of how os installation works. please wish me luck :)
<MichaelRaskin>
Do you have backups of your data?
grenade has joined #nixos
zupo has joined #nixos
<Ariakenom>
there's nothing important on this drive. and i did put /home on a separate logical volume
bhipple has quit [Ping timeout: 257 seconds]
Matix[m] has joined #nixos
<MichaelRaskin>
Some argue that OS installation is when people do most errors of the mixing up partitions kind
Matix[m] is now known as matix[m]
<Ariakenom>
well it'
slyfox has joined #nixos
<Ariakenom>
it's the only time most people touch partitions?
bhipple has joined #nixos
<MichaelRaskin>
Also, quality of consumer data storage technology is a myth, so you should have a backup regardless of OS installation
<Ariakenom>
eh "unshare: unrecognized option '--fork'" when running nixos-install
<tilpner>
Are you using the live ISO?
<ottidmes>
bhipple: seems more like a systemd configuration issue than anything related to physlock really
<tilpner>
Or are you trying to install from an existing Linux installation?
<Ariakenom>
the latter
mobile_c_ has quit [Ping timeout: 272 seconds]
<tilpner>
I guess you could try it again in nix-shell -p utillinux
kenshinCH has quit [Quit: WeeChat 2.2]
kisonecat has joined #nixos
mobile_c_ has joined #nixos
Soo_Slow has joined #nixos
<bhipple>
ottidmes: yeah, I'm trying to figure out where the power management utilities are. I see the systemd "turn on hibernate", but I don't see how to configure it more precisely?
Soo_Slow has quit [Remote host closed the connection]
kisonecat has quit [Ping timeout: 255 seconds]
aleph- has joined #nixos
iqubic has joined #nixos
mobile_c_ has quit [Read error: Connection reset by peer]
Ariakenom has quit [Quit: Leaving]
<iqubic>
So I took my local fork of nixpkgs and changed games/steam/chrootenv.nix to use Mono4 instead of Mono. I'm having trouble getting Steam to build now.
<iqubic>
Alright... I just tried again, and I'm no longer getting 404 errors.
<iqubic>
Wait... Nope. Still erroring out.
<iqubic>
error: cannot download gcc-4.6-base.deb from any mirror
gagbo has quit [Quit: I'm out !]
<mek42>
isn't 4.6 rather old?
<iqubic>
Yes.
<iqubic>
But my game requires Mono4.
<mek42>
ah, gotcha
<iqubic>
And I'm getting 404 errors from curl.
<iqubic>
error: cannot download dconf-gsettings-backend.deb from any mirror
dermetfan has joined #nixos
<clever>
iqubic: did you do a `git pull` ?
<iqubic>
From what?
<clever>
in the nixpkgs checkout
dermetfan has quit [Client Quit]
<iqubic>
I haven't updated my local nixpkgs checkout in about a month
<clever>
the 404's may already be fixed, and you just need to pull the fix
<mek42>
having a month go by without updating my gentoo box is the root cause of me deciding to give NixOS a try with my new laptop (that may have shipped! :) )
<iqubic>
How do I update it?
dermetfan has joined #nixos
<iqubic>
clever: I'm forgetting the proper git commands to update my repo. Can you help me?
<clever>
iqubic: `git pull`
jasongrossman has quit [Ping timeout: 252 seconds]
jasongrossman has joined #nixos
iqubic` has joined #nixos
iqubic has quit [Ping timeout: 250 seconds]
ij has joined #nixos
iqubic` is now known as iqubic
root has joined #nixos
root is now known as Guest94605
<iqubic>
So I don't need to do anything else other than the git pull?
<iqubic>
That's all I need to update my local checkout?
Guest94605 is now known as Ariakenom
knupfer has joined #nixos
doyougnu has quit [Ping timeout: 255 seconds]
sepi has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ddellacosta has quit [Ping timeout: 250 seconds]
<clever>
iqubic: most of the time, yeah
ddellacosta has joined #nixos
alex`` has quit [Read error: Connection reset by peer]
<aleph->
I forgot did we have a guide section to packaging nodejs services?
<sondr3>
if anyone wants to take a look and help me figure out whats wrong with go and dependencies, I'd love some pointers
<iqubic>
Why does steam need to build boringssl?
<sondr3>
cause it keeps failing
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #55868 → mirrors.nix: add https and http mirrors for gcc → https://git.io/fh5mX
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fh5Ba
<iqubic>
So, why is it that Steam has to recompile itself when I ask it to use Mono4? Is there really no binary it can grab?
<tilpner>
It's grabbing lots of binaries already
ddellacosta has quit [Ping timeout: 259 seconds]
<iqubic>
I noticed that.
ddellacosta has joined #nixos
<samueldr>
iqubic: you do understand that with nix if you change a dependency in the chain a->b->c->d for e.g. a->x->c->d, it will have to rebuild things from x do d?
<samueldr>
that's why it has to rebuild things
<iqubic>
Yes. I understand that.
<iqubic>
And this compiling seems to be going fine right now.
doyougnu has joined #nixos
<iqubic>
What does this have to with Mono and Steam?
<bhipple>
If you'd like to see all of the build-time dependencies of a package within NixPkgs, do this from the root of the NixPkgs repo:
<bhipple>
nixpkgs → nix-store --tree -q $(nix-instantiate -A steam)
<bhipple>
You can do the same for run-time dependencies once you finish compiling and building everything
<symphorien>
for run-time dependencies nix why-depends is marginally more helpful
<bhipple>
Note that the build-time closure is likely to be enormous, since it depends on all the src packages, fetching tools, stdenv toolchain, etc.
Ariakenom has quit [Remote host closed the connection]
<bhipple>
Yeah why-depends is prettier for run-time dependencies. There's also nix path-info, which can show things like closure sizes on disk
m0rphism has quit [Quit: WeeChat 2.2]
<iqubic>
I've finished compiling it now.
ddellacosta has joined #nixos
m0rphism has joined #nixos
<mek42>
I'm playing with nix in a Debian WSL. I'd like to start a Jupyter notebook server from this WSL. Should I install (specify?) Jupyter from nix, anaconda, pip, something else? (I really hope a bunch of newb questions are ok)
<bhipple>
iqubic: `nix path-info -r $(nix-build -A steam)` will show you all of its runtime dependencies, and you can call nix why-depends on them to see why
_kwstas has quit [Quit: _kwstas]
<bhipple>
mek42: in this community you're likely to get a biased answer in favor of nix :)
<iqubic>
bhipple: That's fine.
<bhipple>
mek42: nix has more of an up-front cost, but is significantly more flexible and robust, so the answer is really "it depends"
<tilpner>
But the cost to just start a notebook is fairly low, if you already have Nix installed
<tilpner>
Just run nix-shell -p jupyter --run jupyter-notebook
<bhipple>
mek42: particularly when you want to start reaching in and interacting with your dependencies, nix starts to shine. If you just want to use numpy and pandas off-the-shelf with no modificaiton for some research, conda is probably faster and easier
<mek42>
bhipple, that is fine, I'm trying to learn nix, I guess what are the pros and cons of using nix for everything possible vs. package specific package managers like pip or cabal (I'm coming from gentoo, where Haskell doesn't play very nicely)
<bhipple>
mek42: but with nix you can do things like produce reproducible research/production code, rebuild numpy from src with a patch, swap out MKL/openBLAS implementations, etc., and keep track of all the binaries coherently
<symphorien>
mek42: in any case, nix and other package managers don't always mix well. on NixOS, pip will break with non pure python packages for example
<iqubic>
Alright... So I just installed steam with mono4 and that doesn't fix anything.
<iqubic>
My games still fail to work.
<bhipple>
You can also do things like compile the whole distribution with a newer toolchain targeting specific CPU(s) relatively easy
<bhipple>
mek42: ah if you're coming from gentoo you already understand the niceness of being able to reach in and modify your dependencies :)
<iqubic>
I have to run these games through a version of steam installed in flatpak to make it work.
<mek42>
hmmm... with nix could I do something like if intel cpu use intel math library, elif amd cpu use amd math library to keep the same config across my amd desktop and intel laptop?
<iqubic>
What the heck is flatpak doing that nix isn't?
<symphorien>
this cannot be autodetected because this breaks purity
<symphorien>
but you can have a simple switch to toggle between the two
<bhipple>
mek42: yes; it's very robust once you get it setup, but the platform-specific binaries is a little hard to figure out at first, unless you're doing something common like mac/linux/arm
<symphorien>
note that this will require to recompile everything
<bhipple>
mek42: again, it depends on how much you really need/want. The big win on Nix IMO, is that you get 1 package manager that can install anything on any system, regardless of the state of the system, and end up in the same end state
<symphorien>
and this is even more compilation intensive than gentoo because with nix, if you patch a comment in python, you have to recompile everything which depends even at build time on python
<bhipple>
mek42: so there's no arbitrary distinction between upgrading a python module vs. upgrading a C++ library vs. upgrading glibc and the whole system
<mek42>
is there a nix-env --pretend equivalent so I can see what would get installed if I executed?
<symphorien>
nix-env --dry-run
<mek42>
tyvm :)
root_ has joined #nixos
<iqubic>
See I can't fathom why my games work fine in flatpak and not in the steam installed via the steam in nixpkgs?
<mek42>
i think i just need to keep reading pills and other docs, play, and ask questions - hopefully by the time my new laptop gets here i'll be ready to try full NixOS :)
Ariakenom is now known as Ariakenom_
<iqubic>
Anyone know why flatpak is special?
<sondr3>
NixOS isn't hard until it becomes really hard
<sondr3>
I'm really enjoying it but when something doesn't work as expected it's stupid hard to fix lol
<mek42>
iqubic, my guess is that the flatpak version pulls in the kitchen sink - can you compare the flatpak dependency manifest to your nix dependency tree?
<Ariakenom_>
I got further in my installation. I got a shell. But I meant to set up graphical KDE plasma.
<iqubic>
mek42: I'm not sure how to do that.
<bhipple>
iqubic: Running something like this will show you everything that the Nix steam has access to: /nix/store/ahdc9szapygwlx29ayl03960wmcp3yc8-steam
<bhipple>
no idea how to tell what's baked into the flatpak, but at least on the nix side it should be reasonably transparent what it does / does not have
<sondr3>
Ariakenom_: what's stopping you? As soon as I had created the initial configuration all I had to do was to enable xserver and plasma5 and it worked
<Ariakenom_>
sondr3, I enabled everything in the default config relating to xserver
<sondr3>
compared to my SO who was installing Arch it was stupid easy and quick
<Ariakenom_>
including plasma5
neminis has joined #nixos
<sondr3>
Ariakenom_: what kind of GPU do you have?
<Ariakenom_>
AMD
<sondr3>
huh
<iqubic>
How do I get the hash for steam?
<sondr3>
me too, 570
<bhipple>
nix-build -A steam
<bhipple>
(in the nixpkgs repo, if that's where you're building it from)
<bhipple>
iqubic: look more closely: it's `nix path-info`, not `nix-path-info`
<sondr3>
Ariakenom_: that sounds really bizarre, I just configured the config file and ran nixos-install and it booted into Plasma
<sondr3>
no errors or anything? Have you tried getting into a TTY?
alex`` has joined #nixos
<Ariakenom_>
ya that worked fine
<sondr3>
did you check journalctl from there?
<sondr3>
or dmesg
<Ariakenom_>
no, too noob
<iqubic>
So how do I figure out what the flatpak version of steam has access to?
<sondr3>
dmesg shows whats happening during the whole boot process, but its kinda hard to read
<sondr3>
I'd try running that and looking and also journalctl -b 0
<sondr3>
for info on the latest boot
<sondr3>
and hope that something there might give a hint
ij has joined #nixos
<sondr3>
or just journalctl -b 0 -p err for only errors as it can be extremely verbose
<mek42>
iqubic, maybe you could ask on #flatpak how to query what a given pak provides
<iqubic>
I'll do that.
<Ariakenom_>
sondr3, thanks Ill give it another shot in a bit
<mek42>
iqubic, keep us posted with what you find out, and i hope you get it sorted soonest!
Ariakenom_ has quit [Remote host closed the connection]
stites has quit [Quit: ZNC 1.6.6+deb1ubuntu0.1 - http://znc.in]
<bhipple>
iqubic: good luck! I've used Steam on NixOS for a handful of games and it's always "just worked"; what's probably happening is your game is missing some extra shlib not commonly needed, so when you find it please do contribute it back to NixPkgs so future gamers need not suffer!
<bhipple>
diffing the flatpack output that works vs. the NixOS closure that's inadequate should hopefully make it clear what extra lib(s) we should bundle with Steam by default
<sondr3>
Ariakenom: you could also potentially have issues with the kernel version, I'm running 4.19 purely so I can get the latest amdgpu version
doyougnu has joined #nixos
<Ariakenom>
A previous error complained about some GPU related file
Glider_IRC__ has quit [Remote host closed the connection]
<Ariakenom>
... but I can't remember the details
<s2mitrov>
anyone using home-manager to manage their wm +/- bar? I've moved my xmonad config from /etc/nixos/configuration.nix into my home-manager config and it's working great, but I can't seem to get taffybar to work at all
<Ariakenom>
so ill try this and then call it a day
Glider_IRC__ has joined #nixos
goibhniu has joined #nixos
<s2mitrov>
the only two options in the manual are `services.taffybar.enable` and `services.taffybar.package`, so I'd assume it would just work when i do services.taffybar.enable = true if I've already got taffybar in my xmonad extraPackages config
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<Ariakenom>
should I do anything other than nixos-install when reconfiguring a mounted nixos install?
<gchristensen>
nope
<Ariakenom>
allright. it tries to redo grub-install but fails
<Ariakenom>
which is probably fine
Ariakenom has quit [Remote host closed the connection]
<jomik>
Anyone here able to help me get nix-shell to work in fish? I can run `nix-shell -p zsh` which will open a new fish shell, but zsh is not available. My user shell is `bash` and I have a `.bashrc` that runs `exec /nix/store/.../fish`
ij has quit [Ping timeout: 255 seconds]
rycwo has quit [Ping timeout: 264 seconds]
<sondr3>
its a known issue
doyougnu has quit [Ping timeout: 272 seconds]
<jomik>
sondr3: My issue? Any workaround?
<sondr3>
jomik: not really sure, I've just surrendered to suffering with bash in nix-shell
<sondr3>
if you search for fix in the nix repo you'll find a few PRs and some issues about it
<sondr3>
but AFAIK nix uses a lot of bash features that would break in fish
<jomik>
sondr3: I'd be happy just getting SOMETHING in nix-shell. But I can't even get bash, because my .bashrc contains that `exec fish`
<jomik>
And I need the `exec fish` to be able to use fish in many other programs.
<timokau[m]>
mek42: There isn't currently an option for python3 since its not supported upstream yet
<jomik>
I am considering surrendering to zsh ...
<tilpner>
jomik: Have you compared the behaviour of the NixOS module to the home-manager module?
<timokau[m]>
It probably wouldn't be hard to switch the build to python3, but it won't pass the testsuite
<jomik>
tilpner: I don't think the module actually matters. I am essentially just using `pkgs.fish`. I think the issue arises from `exec fish` in my .bashrc...
<tilpner>
jomik: I don't agree with that. If nix-shell works without exec fish, an exec won't take PATH away
<sondr3>
but as mentioned, you'll have to search for mentions of fish in the nix repo for workarounds
<tilpner>
jomik: But your fish config could break things, possibly
<tilpner>
jomik: What's the PATH inside the nix-shell-with-fish?
<jomik>
sondr3: I think those things are all implemented in v3.0?
<mek42>
timokau[m], ah, ok, ty - i must have misread something somewhere, but it looks like they are close
<jomik>
tilpner: Same as outside the nix-shell.
<jomik>
Hmmm
<sondr3>
jomik: might be, I haven't looked much into it for a while
<tilpner>
jomik: And without "exec fish", everything works?
<jomik>
Yes.
<timokau[m]>
mek42: Yes and for most purposes you should be fine with python3. I think most remaining test failures are differences in formatting or sorting. So feel free to experiment with python3 and report back :)
<s2mitrov>
How do I get my user systemd daemon to run automatically?
<jomik>
That is, if I remove my .bashrc, then I get a bash shell inside nix-shell, but also a bash shell when I open my term.
<jomik>
So I sorta want nix-shell to run bash --norc :P
<sondr3>
I have shell = pkgs.fish; in my configuration.nix file and everything works fine with that
<tilpner>
jomik: I suggest you go ask oftc/#fish
<s2mitrov>
when I run home-manager switch, I get "User systemd daemon not running. Skipping reload" - sounds like maybe why my redshift and taffybar aren't working?
<jomik>
sondr3: You get a bash shell in nix-shell, right?
<sondr3>
yep, bash in nix-shell, fish everywhere else
<tilpner>
jomik: I can't think of a reason why fish wouldn't use a PATH that's set up properly
<jomik>
The issue is that that bash shell I get will read my .bashrc and then run exec fish.
<jomik>
sondr3: Sadly my emacs (haskell-mode and others) complain if I have shell set to fish
<etu>
jomik: I usually do nix-shell --run fish -p package package package
<jomik>
etu: ... THAT works.
<sondr3>
jomik: really? I haven't had any issues with my haskell configuration and fish in Emacs
<jomik>
sondr3: It complains when trying to check types on things, because fish doesn't agree to some of the syntax they use - they assume that your shell is POSIX compliant.
<jomik>
At least the plugins I use..
<etu>
And I have the fish abbreviation "nsh" that expands to "nix-shell --run fish -p " so I just type "nsh package package package"
Ariakenom has joined #nixos
<jomik>
They don't use `/usr/bin/env bash` :(
<jomik>
etu: That's a pretty decent workaround.
<sondr3>
jomik: huh, never had any problems on my computers with it
<tilpner>
jomik: What are you saying... PATH is not the same!
<Ariakenom>
sondr3: that did get rid of the GPU error
<sondr3>
Ariakenom: forcing amdgpu?
<Ariakenom>
yes
<Ariakenom>
but there were more that didn't seem fatal
<jomik>
tilpner: my nix-shell -p zsh has the same path as outside, that's probably the issue :P
<sondr3>
so is it working or?
<Ariakenom>
nope
<sondr3>
lol
<Ariakenom>
there are some ssd cache errors. but the phrasing looked like warnings
<sondr3>
Ariakenom: you could try your luck with a newer kernel?
<Ariakenom>
the [firmware bug] might be a show stopper :p
<{^_^}>
#18946 (by yacinehmito, 2 years ago, closed): $PATH is incorrect when running fish in a nix-shell
Ariakenom has quit [Quit: Leaving]
<jomik>
tilpner: Thanks ! :D
Glider_IRC_ has joined #nixos
<jomik>
Guess there is no way to fix that in home-manager, because the fix seems to be to source `config.system.build.setEnvironment` - I can't do that I guess.
<{^_^}>
[nixpkgs] @matix2267 opened pull request #55918 → nixos/doc: Small updates about wireless configuration. → https://git.io/fh501
<jomik>
Ah, bed time here. Thanks guys :)
Glider_IRC__ has quit [Ping timeout: 255 seconds]
bhipple has quit [Remote host closed the connection]
gagbo has joined #nixos
Ariakenom has joined #nixos
jomik has quit [Quit: WeeChat 2.2]
rcshm has joined #nixos
etu1 has joined #nixos
<Ariakenom>
sondr3: all right I had to try :p. that did fix that error. one more. that may fix errors I've had on Windows too I suppose
<sondr3>
Ariakenom: and it is still not giving you Plasma5? :P
Mateon3 has joined #nixos
<Ariakenom>
sondr3: my setup is apparently remarkably broken :D