apaul1729 has quit [Remote host closed the connection]
qyliss has joined #nixos
qyliss^work has joined #nixos
drakonis has joined #nixos
Lisanna has quit [Ping timeout: 250 seconds]
jasongrossman has quit [Remote host closed the connection]
kvda has joined #nixos
aleph- has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
Lisanna has joined #nixos
thc202 has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @fpletz pushed 3 commits to release-18.09-firefox64: https://git.io/fpxiM
dgarzon has joined #nixos
commander has quit [Remote host closed the connection]
<dgarzon>
Hi, given: https://gist.github.com/dgarzon/b454c25b5a9fb4d6e1cf0ef8da6436b6, is it possible to modify `wrapdocker` so that it uses `docker` `dockerd` and `dmsetup` from nixpkgs? I tried using `substituteInPlace` but that seems ugly. Any alternatives? Thanks!
<{^_^}>
[nixpkgs] @fpletz merged pull request #46806 → nixos/testing: disallow special chars in machine names in network expressions → https://git.io/fADwk
<catern>
er that is, are there any build systems that are like Nix in that they have that ability?
<catern>
basic Make doesn't have that ability, right?
Rusty1 has joined #nixos
slack1256 has joined #nixos
<catern>
I'm doing a thing where I want to do a bunch of complex builds, but I think that I probably can't use Nix for them because there's a bunch of things involved that are un-Nixy... I have huge artifacts that I don't want to copy into the store, secrets/private information in the build that shouldn't be world-readable, and I need to access the network at build time...
<catern>
but I still want all the nice features of Nix
<catern>
(the nix language anyway)
dgarzon has quit [Quit: dgarzon]
dgarzon has joined #nixos
<manveru>
catern: you could use a private store?
dgarzon has quit [Client Quit]
<manveru>
and for networking, that's what fixed output derivations are for
<catern>
manveru: i have multi-user machines, I can't have a private store - and having each user have their own copy of everything in their home directory would be inefficient and very easy to mess up
<catern>
manveru: I want to do network access without being fixed output
<catern>
I could disable the sandbox, but again that's anti-Nix
<catern>
and likewise I could just bite the bullet and put my huge artifacts in the store
<catern>
but because all these things are annoying with nix, that's why I asked about other build languages with similar features
<manveru>
sorry, can't really help you then :|
<manveru>
i think i heard of a kinda similar build system that google uses?
<manveru>
forgot the name though
<manveru>
bazel?
<catern>
urgh, I know of bazel but I don't really like it :)
<manveru>
no clue how that'd share sensitive data without sharing it...
<catern>
filesystem permissions? :)
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
erratic has quit [Ping timeout: 240 seconds]
pie__ has joined #nixos
pie___ has quit [Remote host closed the connection]
halfbit has joined #nixos
iqubic has joined #nixos
<iqubic>
Well, I am finding myself unable to get steam working on Nixos.
<iqubic>
I was able to install it, but when I try to run steam, I get a popup window saying: "glXChooseVisual failed"
<iqubic>
anyone know what's up with that?
jasonrm has left #nixos ["EOL"]
<manveru>
iqubic: did you install it using configuration.nix?
<iqubic>
Yes I did.
goibhniu has quit [Ping timeout: 272 seconds]
<manveru>
what's your graphics driver?
<iqubic>
Not sure. How do I check?
<manveru>
hmm
<manveru>
seems like there's an issue for it, solution seems to be to also set `hardware.opengl.driSupport32Bit = true;`
<iqubic>
Now, let's say I want to enable correct drivers for using a playstation dualshock 3 controller to play steam games. This controller will be connected via a cable to my laptop.
<iqubic>
What driver/program do I need to make this work?
erratic has joined #nixos
<iqubic>
manveru: I moved on to my second issue, because I got steam to work.
Anton-Latukha has quit [Quit: Leaving.]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fpxMd
ottidmes has quit [Quit: WeeChat 2.2]
cyounkins has joined #nixos
sigmundv_ has quit [Ping timeout: 240 seconds]
lo_mlatu has joined #nixos
ensyde has joined #nixos
petersjt014 has joined #nixos
dgarzon has joined #nixos
<petersjt014>
is is possible to cross compile while also specifying a specific channel and binary cache?
<petersjt014>
im trying to build for armv6 and am being told my perl version is too old
<petersjt014>
which I suspect means I have to specify the unstable channel
<petersjt014>
but I dont know where to do that. This is the command I'm using:
<gchristensen>
perl has problems cross compiling, it may be that
<petersjt014>
nix-build '<nixpkgs>' --arg crossSystem '(import <nixpkgs> {}).lib.systems.examples.raspberryPi' -A wget
<petersjt014>
thats annoying >->
<petersjt014>
you know how I'd specify the channel though? I just checked and there *is* a newer version than what I have
<petersjt014>
so worth a try prob
<simpson>
petersjt014: I have a relatively new nixpkgs and I'm currently attempting to build `pkgsCross.raspberryPi.wget`. Maybe this route to cross-compiling will be easier; certainly, many more things are being pulled from binary cache for me. (Over 1GiB from binary cache!)
halfbit has quit [Ping timeout: 268 seconds]
<simpson>
3/12 built, 67 copied
sbdchd has quit [Remote host closed the connection]
<kisik21>
hi! any way to havve i3-gaps from git? tried to override the source w/ overrideAtrts but it seems to do some sort of dark magic in postUnpack
dgarzon has quit [Quit: dgarzon]
<petersjt014>
If you're writing a nixfile, there's a fetchFromGithub function that I think is enough. The one other thing I can think of is cloning and manually adding to the store
<iqubic>
So I take it no one knows how to get Sony Dualshock 3 wired drivers working on Nixos?
<petersjt014>
Never done that, but It should at least be possible to get it to run with xInput (if you havent already)
<petersjt014>
I can personally tell you that the Steam Controller works out of the box
<petersjt014>
though it is treated like a mouse :/
<{^_^}>
[nixpkgs] @Mic92 opened pull request #52460 → buildGoPackage: also support pname → https://git.io/fpxyk
<GlennS>
Anyone know if NixOps can handle the Amazon EC2 Nitro instances? They have their block devices in a different place, and it looks like NixOps has the old /dev/xvda-e addresses hardcoded?
<simpson>
I hear that pkgsCross is the more-supported way to cross-compile. Hopefully it works for you.
<petersjt014>
@iqubic you may want to look at services.xserver.inputClassSections too
<petersjt014>
@simpson thanks, I'll try it rn
Supersonic has joined #nixos
GlennS is now known as Glenn
Glenn is now known as GlennS
nornagon has joined #nixos
<nornagon>
👋 hi friends! i'm trying to install nixos on an Intel NUC, and I'm getting a black screen when booting from the installer USB image. My suspicion is that it's related to EFI booting and kernel modesetting, but `nomodeset` doesn't seem to alleviate the situation. The thing is definitely booted and at a prompt, because typing "poweroff" blindly into
<nornagon>
the machine turns it off
<nornagon>
I could ssh into it and set it up that way, but I'd like to figure out what's going on!
<cyounkins>
nornagon: Did you get anything on the screen at the start? "Starting kernel..."?
pmade has quit [Remote host closed the connection]
<samueldr>
nornagon: is that a really new model?
<nornagon>
samueldr: It is new, just released a month ago i think. the NUC8.
<samueldr>
I'd bet it's because the kernel is "old", 4.14
<nornagon>
cyounkins: nope, nothing at all. black immediately after i hit 'enter' on the grub(?) screen
<samueldr>
not too confident, but it's a liekely cause
<nornagon>
oh interesting
<samueldr>
and, that's using the 18.09 image, right?
<samueldr>
this gets annoying if grub is beginning to cause issues and they don't update :/ either we start our own patchset like debian, fedora et al. does, mostly cherry-picking fixes, or we get on the git train :/
<nornagon>
maybe i just didn't wait long enough
<samueldr>
nornagon: with the usb-c->hdmi adapter?
<nornagon>
this is plugged straight into the box
<cyounkins>
Fixed it!
<nornagon>
🎉
aleph- has quit [Ping timeout: 268 seconds]
<nornagon>
let's see what's in my dmesg now
<samueldr>
did you have output during stage-1?
<samueldr>
or grub, black screen, then some output?
<samueldr>
if so, and there's still the same efifb error, I would hazard a guess that grub2 leaves "???" in a bad state, but then the modesetting driver knows what to do with it
<nornagon>
grub, black screen, then output. same efifb error in dmesg.
<samueldr>
yeah, it's possibly what I have in mind
sir_guy_carleton has quit [Ping timeout: 246 seconds]
pie___ has joined #nixos
<nornagon>
yeah, around 14 seconds after dmesg begins i see messages like `[drm] Replacing VGA console driver` and some messages from i915
<nornagon>
so it looks like once i915 gets its hands on the gpu everything goes back to normal
<iqubic>
So do I need to do anything special to get my sony dualshock game controller working with Nixos?
<{^_^}>
#5829 (by purefn, 3 years ago, open): Blank screen after choosing NixOS on LiveCD
<samueldr>
nornagon: note that it's possibly not from the same cause
pie__ has quit [Remote host closed the connection]
<samueldr>
but it's something to look for
<samueldr>
(the efifb error)
sir_guy_carleton has joined #nixos
<nornagon>
yeah, i suspect that issue is describing something different. but since it's what came up in google for me, i thought i'd leave a trail for the next person :)
<samueldr>
yeah, that's what I meant, note as in "write down" :)
phreedom has quit [Ping timeout: 256 seconds]
<nornagon>
gotcha
phreedom has joined #nixos
<nornagon>
thanks for the help samueldr and cyounkins!
<samueldr>
you're welcome
<cyounkins>
:thumbsup:
<samueldr>
once you're setup, if you want to try to install grub with the patch it's possible and relatively easy with nixos
<samueldr>
(if you intend on using grub)
<nornagon>
i hadn't considered that there might be an alternative to grub, so yeah, i'm probably intending on using it :P
<nornagon>
actually this box is going to sit in a storage closet with no screen attached, i just wanted to figure out the video stuff in case i need to debug with a screen plugged in later
drakonis has quit [Ping timeout: 264 seconds]
jperras has quit [Quit: WeeChat 2.2]
sbdchd has joined #nixos
<iqubic>
So do I need to do anything special to get my sony dualshock 3 video game controller working with Nixos?
<cyounkins>
iqubic: I don't think anyone here knows. Try it?
<iqubic>
I will.
fusion809 has quit [Remote host closed the connection]
lassulus_ has joined #nixos
<nornagon>
interesting, now that i've actually installed nixos onto a drive on the machine, stage-1 works fine
<nornagon>
must be just an issue with the livecd
lassulus has quit [Ping timeout: 246 seconds]
lassulus_ is now known as lassulus
<clever>
nornagon: how did you image the livecd?
iqubic has quit [Quit: Page closed]
<nornagon>
hh
<nornagon>
dd*
Growpotkin has joined #nixos
<clever>
should have just worked
<petersjt014>
any way I can make the command for copying closures via ssh shorter? Like by making a shorter-named hard/symlink to the relevant path?
<cyounkins>
What are you using?
<petersjt014>
nix-copy-closure
<petersjt014>
I'm copying over from a fast machine to a raspi zero
Dedalo has joined #nixos
<cyounkins>
Sorry, I'm not sure.
<nornagon>
is there a way to get the configuration.nix file from the currently running system?
<nornagon>
maybe with `nix eval` or something...?
Growpotkin has quit [Quit: WeeChat 2.3]
Growpotkin has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #52251 → treewide: Use "buildPackages" darwin for bootstrap_cmds → https://git.io/fpNqL
<{^_^}>
[nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/fpxHA
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #52252 → treewide: Use "buildPackages" darwin for bootstrap_cmd for 18.09 → https://git.io/fpNqt
<{^_^}>
[nixpkgs] @matthewbauer pushed 3 commits to release-18.09: https://git.io/fpxHx
<{^_^}>
[nixpkgs] @Mic92 merged pull request #52460 → buildGoPackage: also support pname → https://git.io/fpxyk
<{^_^}>
[nixpkgs] @Mic92 pushed to staging « rust: Remove unused `buildRustPackage` from binaryBuild.nix »: https://git.io/fpxQ2
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @Ericson2314 to staging « docs: Small change to Rust guide to be more cross friendly »: https://git.io/fpxQw
reinhardt has joined #nixos
scribbler has quit [Ping timeout: 260 seconds]
<cyounkins>
What is the proper way to specify "don't build on 32 bit"? I don't think I can do set operations like platforms.linux - platforms.i686
<johnw>
any dockerTools wizards around? I'm building an image which contains a single 5.8GB layer, but when I run bash in a container, the entire filesystem only takes 21 MB. Is it somehow retaining the space needed by the build products? I can't just paste the expression here, so I'm wondering if this is a pattern others are familiar with.
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<{^_^}>
[nixpkgs] @hyperfekt opened pull request #52464 → nixos/fish: generate autocompletions from man pages → https://git.io/fpxdy
<nornagon>
ohh, looks like it's recent. perhaps added prior to the channel i'm on (18.09)? can i install a single package from a different channel?
reinhardt has joined #nixos
<ivan>
does anyone use Hydra for general distributed computing purposes i.e. not builds?
<Arahael>
What's the preferred virtual machine for nixos hosts?
hyper_ch2 has joined #nixos
<dmj`>
how do I compress the runtime closure of a derivation, to make fetching faster
<hyper_ch2>
can you compress that?
ddellacosta has quit [Remote host closed the connection]
Ariakenom has joined #nixos
<eyJhb>
I have this weird problem, that when I run `autorandr -c --force`, my terminals changes to some kind of redish pink color? It seems weird...
lo_mlatu has joined #nixos
<lo_mlatu>
Is there a record of previous nixos logo?
reinhardt has quit [Ping timeout: 250 seconds]
crmlt has quit [Ping timeout: 268 seconds]
<Arahael>
I'm going with qemu-kvm as my choice of VM.
crmlt has joined #nixos
jbgi has joined #nixos
hyperfekt has joined #nixos
orivej has quit [Ping timeout: 250 seconds]
reinhardt has joined #nixos
<Arahael>
Hmm, I've tried running `nix-env -qa \*` and looking for 'virt-manager', I see that it's there at version 1.5.1
<Arahael>
However, I can't seem to then run `nix-shell -p libvirt qemu virt-manager`, it seems to complain that virt-manager is an undefined variable. How's that and how do I run it in a shell?
<{^_^}>
[nixos-homepage] @hyperfekt opened pull request #256 → refer to current logs on community page → https://git.io/fpxb4
orivej has joined #nixos
hyperfekt_ has joined #nixos
sbdchd has joined #nixos
<{^_^}>
[nixpkgs] @rydnr opened pull request #52466 → pharo: Simple fix for Iceberg → https://git.io/fpxbV
hyperfekt has quit [Ping timeout: 256 seconds]
<hyperfekt_>
Arahael: The package is available under the variable 'virtmanager', without the - . You may want to install nox to easily find out how a package you're interested in is named.
hyperfekt_ is now known as hyperfekt
<hyperfekt>
Does anyone know if there's a recommended way to parametrize modules? E.g. I want to have the configuration for a user specified in a module but have it be independent of the eventually chosen username(s).
tzemanovic has joined #nixos
crmlt has quit [Ping timeout: 250 seconds]
tzemanovic has quit [Ping timeout: 252 seconds]
<Lisanna>
Bummer ): there's no way to use shellHook in a shebang
<tazjin>
can someone point me in the direction of whatever is responsible for building /etc/passwd?
<tazjin>
I'm building container tarballs using containerTarball from release.nix, but they end up not having /etc/passwd, /etc/group etc. and incurring all sorts of strange breakage
<ivan>
./update-users-groups.pl in nixos/modules/config/users-groups.nix?
Growpotkin has quit [Quit: WeeChat 2.3]
alex`` has joined #nixos
dermetfan has quit [Ping timeout: 245 seconds]
<tazjin>
ivan: that seems to be it - and it's supposed to run as an activation script, mhmm
freeman42x[nix] has quit [Ping timeout: 252 seconds]
<tazjin>
sphalerite: thanks, but I still need to actually make the rootfs writeable, otherwise I won't be able to rebuild (which is kinda the point of this exercise :))
<sphalerite>
right
<sphalerite>
is using containerTarball a strict requirement?
<tazjin>
no
<tazjin>
but I believe it's not NixOS causing things to be read-only, as this works on another machine also running LXC with the same image
<ivan>
is pkgs/applications/office the right place to put an EPWING dictionary reading program?
hyper_ch2 has quit [Quit: Page closed]
<ivan>
or maybe applications/misc
<ivan>
yeah, that's where goldendict is
<__monty__>
Hmm, I wouldn't really expect it in office but I wouldn't expect todo managers there either.
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reinhardt has quit [Ping timeout: 250 seconds]
<vdemeester>
Mic92: thx for the change on the podman PR <3 — works like a charm !
<tazjin>
sphalerite: update on the thing from earlier, on one machine the containerTarball has an `/etc` symlink pointing into the store, on one it doesn't - this must be due to some change in nixpkgs because the config used to build it is identical
<tazjin>
interestingly just deleting that from the image works fine and `/etc` gets set up on container launch
<sphalerite>
tazjin: have you looked at nixos-container to compare at all?
<sphalerite>
tazjin: nixos-container might even work on non-nixos distros actually
<tazjin>
so alternative containerisation solutions / scripts etc. won't work
<tazjin>
I'm switching the build setup to wrap it in a shell script that pins a nixpkgs version, so I can git bisect nixpkgs and find out where this symlink comes from
<Mic92>
vdemeester: I think I should add support for running make to buildGoPackage.
<Mic92>
as it is quiet often used.
hamishmack has joined #nixos
<sphalerite>
tazjin: oh yeah of course, chromeos doens't have systemd :D
<vdemeester>
Mic92: indeed :)
<tazjin>
sphalerite: it's more complicated than that ;-)
<vdemeester>
I wonder if the docker derivation uses `buildGoPackage` but it could (and yeah many others)
<tazjin>
there's a KVM vm running in chromeos which is configured to run LXC, and in that LXC you can run arbitrary things
<tazjin>
they get a set of statically compiled executables bind-mounted into them, which allows communication with the "outside" wayland to launch GUI apps
<Mic92>
vdemeester: I started replacing it in a few packages, but it takes a lot of time.
<tazjin>
(like a fake compositor)
reinhardt has joined #nixos
<emily>
tazjin: fwiw I had nixos working in crostini containers a few months ago
<emily>
might be able to give advice if any is needed
<tazjin>
emily: the basic stuff is working, it's this particular `/etc` thing that is causing manual work atm
<Lisanna>
I would like to perform an overrideAttrs on python in nixpkgs, and ensure that this affects *all* references to *any* python, as if I had went and modified the .nix file... how should I do this? python seems to be everywhere...
<vdemeester>
Mic92: do you store it as a list somewhere ? I could help from time to time ;)
<uniporn>
,locate ledger
<{^_^}>
Found in packages: ledger, ledger, electrum, electrum-ltc, electron-cash
arjen-jonathan has joined #nixos
<Mic92>
vdemeester: done
ottidmes has joined #nixos
<vdemeester>
Mic92: nice \o/
dermetfan has quit [Ping timeout: 250 seconds]
<ottidmes>
I have a few local scripts that I want packaged, right now I use for example: makeWrapper ${./checkout.sh} $out/bin/nixcfg-checkout --prefix PATH : '${makeBinPath [ bash git jq nix ]}', which works fine when I call them, but fails when run from system.extraSystemBuilderCmds with a bad interpreter error. I guess I could first copy the script over, run patchShebangs, and only then wrap them, other suggetions?
<Twey>
sphalerite: So you stop the build and attach to it with cntr?
<Twey>
lo_mlatu: Oh :( Okay :)
<sphalerite>
Twey: yep
hyperfekt has quit [Ping timeout: 256 seconds]
hedning has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fppO9
scribbler has joined #nixos
<Twey>
What's the convention for building static libraries with dependencies? Should the static library be a separate derivation, with its dependencies as propagatedBuildInputs?
<Twey>
Or C++ libraries with headers that reference other libraries?
hamishmack has quit [Remote host closed the connection]
<Twey>
lo_mlatu: I know that pkgsStatic exists, I just don't know what the appropriate convention is for things that need their dependencies present (much less for things that need their dependencies present conditionally)
<sphalerite>
Twey: any reason why there might be an nginx.conf on nixos?
nikivi has joined #nixos
MrCoffee has joined #nixos
Guanin has joined #nixos
<Guanin>
Hi, is there a way to check that two configurations are identical? I want to rewrite multiple configurations without changing them in that progress
<clefru>
is there infrastructure in the form of a centralized server where I can send an RPC to grep through the set of known derivation names, where known means inside of nixpkgs, nixpkgs.pythonPackages, nixpkgs.emacsPackages, nixpkgs.haskellPackages and so on?
<ottidmes>
WilliamHamilton[: And I use the wakelan package to wake things with, because it also support an IP address if you want to wake a remote machine
ubert has joined #nixos
<WilliamHamilton[>
Thanks ottidmes , have to run now, ill ask more later!
<qyliss>
lucus16: yes, do readFile first
<lucus16>
ah, thanks
betaboon has joined #nixos
jperras has joined #nixos
<siraben>
How do I make a font like "noto fonts" to be the default for unicode characters?
<siraben>
I get this really pixelated font for CJK and other Asian scripts
<{^_^}>
[nixpkgs] @lheckemann pushed 3 commits to release-18.09: https://git.io/fppRn
<gchristensen>
with noto's emojis, sakura shows them approx. 4x too large
<gchristensen>
I can live with that
biopandemic has quit [Client Quit]
<__monty__>
You use sakura? Are you a lightweight applications freak? ; )
<Luciole>
what's sakura in this context?
<gchristensen>
a terminal emulator :)
<Luciole>
ah
<gchristensen>
__monty__: mmm...no I don't think I am... what do you recommend?
<gchristensen>
I fumble through with whatever tools were last present in my nixos config until someone prods me to change them :P
<__monty__>
gchristensen: I don't think it gets more lightweight than sakura re install size.
<__monty__>
I like full fat terminals though : )
<samueldr>
:/ don't have links ready, gchristensen, but there's a fix for that, it's common to all VTE terminals
<samueldr>
(and other tools too
<gchristensen>
oh cool, samueldr
<gchristensen>
I tried alacritty for a while. it was pretty good except how it doesn't reflow text on resize
<samueldr>
gchristensen: should be fixed in the last release
* etu
kinda likes stupidterm, but that's vte more or less with an ini-file
<samueldr>
(didn't try yet)
<gchristensen>
samueldr: reflow in alacritty?
<samueldr>
or I misremember?
<gchristensen>
don't know
<samueldr>
aww, I nuked every traces of my user's fontconfig since moving to nixos, and I don't have the bitmap scaling fix :/
<gchristensen>
they had a good thing going -- principles wise -- refusing to implement scrollin, saying do all this stuff in screen or tmux... and they've kept adding features :P once you add scrolling you commit to a dozen more
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « notejot: 1.4.7 -> 1.5.2 »: https://git.io/fppof
ddellacosta has quit [Remote host closed the connection]
crmlt has joined #nixos
<mupf>
goibhniu: 18.09
<mupf>
I only use hibernation
jomik has joined #nixos
<goibhniu>
cool, that's good to know
<jomik>
Heya guys, uhh. I was wondering if it was possible to easily add stuff to your path based on your working directory? That is, I want to have certain packages available in certain projects, but not everywhere :O
<jomik>
I could use nix-shell, but the disadvantage is that I lose my own shell setup.
<qyliss^work>
You can use your own shell with nix-shell
<djahandarie>
Is there any quick hack I can do to deal with a really slow nix expression? Like some intermediate form I can compile/interpret it down to so I don't need to wait so long reevaluating the unchanged expression every time?
arjen-jonathan has quit [Ping timeout: 244 seconds]
<{^_^}>
[nixpkgs] @flokli opened pull request #52488 → security.pam: make pam_unix.so required, not sufficient → https://git.io/fppiP
<clever>
,profile djahandarie
<{^_^}>
clever: Did you mean profiling?
<{^_^}>
djahandarie: Use NIX_COUNT_CALLS=1 and/or NIX_SHOW_STATS=1 to profile Nix evaluation
<sphalerite>
djahandarie: not really, though depending on what you're changing and what you're leaving the same you might be able to imrpvoe the situation by replacing a slow part of the expression with an already evaluated version of that
Kim has quit [Quit: WeeChat 2.2]
<sphalerite>
but that's not helpful for e.g. nixos system derivations because there are so many interlinked dependencies
Kim has joined #nixos
dermetfan has joined #nixos
<siraben>
manveru: Thanks, that got me started.
<siraben>
I fixed it by installed noto-fonts-cjk
<bbarker>
I'd like to have some of my nix containers start on boot. Currently I can check their status out of the box like 'systemctl status container@vicOpenMPI' - but is there a way to enable them, or do I need to write a unit in configuraiton.nix:systemd.user.service?
<{^_^}>
[nixpkgs] @grahamc opened pull request #52489 → stdenv: shorten evaluation errors when in Hydra → https://git.io/fppPx
<sphalerite>
bbarker: nixos containers?
<qyliss^work>
sphalerite: systemd-nspawn
<qyliss^work>
oh, til that zimbatm wrote direnv
<siraben>
How can I manage my Firefox configuration declaratively?
<siraben>
e.g. installed extensions, preferences and about:config customiziations
<{^_^}>
[nixpkgs] @matthewbauer pushed 3 commits to staging: https://git.io/fppXd
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #52256 → Provide real dsymutil to darwin stdenv → https://git.io/fpNmE
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to staging: https://git.io/fppXb
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @memberbetty to master « aws-google-auth: use python3 (#52445) »: https://git.io/fpp1t
<djahandarie>
clever, thanks, I've actually already profiled the expression and found that it's... really slow for dumb reasons, but unfortunately it's generated by carnix and I don't have the time to go optimize its output at the moment.
<vdemeester>
Mic92: ping me on PR you'll open for https://github.com/NixOS/nixpkgs/issues/52469 ;) I'll ping you on the one I open (gonna try to tackle docker, containerd, runc, openshift and cni first :P)
<{^_^}>
#52469 (by Mic92, 5 hours ago, open): Use buildGoPackage for all go packages.
<qyliss^work>
djahandarie: It definitely needs to be Carnix? rustPlatform.buildRustPackage doesn't work for you?
tzemanovic has joined #nixos
fendor has quit [Remote host closed the connection]
fendor has joined #nixos
crmlt has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @grahamc merged pull request #52489 → stdenv: shorten evaluation errors when in Hydra → https://git.io/fppPx
<djahandarie>
qyliss^work, it's nice when nix is responsible for building everything. (Except the expression evaluation time issue of course...)
worldofpeace has joined #nixos
<Mic92>
vdemeester: ok. I will probably not look at those today.
<qyliss^work>
I'm not convinced there's much of a benefit, since the Cargo thing is fixed-output anyway
<qyliss^work>
there's a reason we don't use buildRustPackage in nixpkgs where we can
jabranham has quit [Remote host closed the connection]
<Mic92>
you mean buildRustCrate.
<Mic92>
It saves some compilation time.
mariel__ has quit [Quit: Leaving]
<dhess>
I used to be able to install cabal-install in a buildEnv along with ghcWithPackages, but in the last few months there's always a collision with libHSzip-archive
<dhess>
Anything obvious I'm missing?
endformationage has joined #nixos
jabranham has joined #nixos
<dhess>
oddly I *can* install the buildEnv and cabal-install simultaneously using nix-env; I just can't specificy cabal-install as one of the components of the buildEnv path
fendor has quit [Ping timeout: 250 seconds]
crmlt has joined #nixos
crmlt has quit [Ping timeout: 246 seconds]
pie__ has quit [Remote host closed the connection]
pie___ has joined #nixos
irdr has quit [Remote host closed the connection]
<dhess>
Never mind. Pilot error. "with" statements should be used with caution!
<gchristensen>
I typically prefer a with-free lifestyle, because of that :)
<dhess>
gchristensen: I get lazy :\
<dhess>
It's not my first rodeo with "with", either. I should have known better.
erasmas has joined #nixos
Denommus has quit [Ping timeout: 244 seconds]
<devalot>
When running sshd on a non-standard port, how to does one configure nix.buildMachines to use it? Adding :N to the end of the hostName doesn't work. Do I need to create a ssh_config for nixbld?
<gchristensen>
yeah
agander has joined #nixos
<gchristensen>
well, a ~root/.ssh/config works fine
<devalot>
gchristensen: Can that be done from configuration.nix?
<dhess>
devalot: try this syntax for your machines.nix: ssh://user@buildhost:port
<devalot>
Awesome! Thanks!
<gchristensen>
dhess: pretty sure that doesn't work
<dhess>
gchristensen: :(
petersjt014 has quit [Ping timeout: 240 seconds]
<dhess>
wow, umm.... direnv is pretty cool?
<gchristensen>
direnv is like the magic trick of Nix editor integration
<dhess>
all the nice shell.nix stuff and I get to keep my nice shell prompt :)
<dhess>
gchristensen: yeah that's how I got started on this project. I haven't even gotten to that step yet and already seeing benefits
<dhess>
just plain old terminal use so far
<djahandarie>
qyliss^work, well, I tried rustBuildPackage, and while it certainly results in faster expression evaluation time, it's much slower to watch it rebuild all its dependencies every single time...
Ariakenom_ has quit [Ping timeout: 250 seconds]
<qyliss^work>
aah
<qyliss^work>
makes sense
Denommus has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
sbdchd has quit [Remote host closed the connection]
sbdchd has joined #nixos
fusion809 has quit [Quit: Leaving]
fusion809 has joined #nixos
ubert has quit [Quit: Leaving]
agander_ is now known as agander
<fusion809>
simpson: well I don't love it either, I just want to install a package called IJulia, so that I can run Julia in Jupyter notebooks and JupyterLab
<simpson>
Sure. A completely reasonable desire.
<fusion809>
IJulia requires the Conda package to work well
<fusion809>
Must admit, with all the frustration I've had with pip and Conda on NixOS I don't think I'll ever 'love' Conda or pip.
<simpson>
No worries. Software isn't for loving. It's for computing.
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « polar-bookshelf: 1.1.0 -> 1.1.1 »: https://git.io/fpp5o
hotfuzz has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
tzemanovic has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fpp5p
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #52448 → Emacs site-start: Use correct feature name → https://git.io/fpxmh
tzemanovic has quit [Ping timeout: 268 seconds]
<elvishjerricco>
dhess: I've been messing with that nix-tools thing
<elvishjerricco>
Not using it anywhere serious yet, but it's been a pretty huge improvement over the existing haskell infra
hedning has quit [Quit: hedning]
<elvishjerricco>
Merely separating test deps from lib deps is a lifesaver
<elvishjerricco>
It's very rough around the edges though. We're experimenting with using the NixOS module system, and it's revealing some issues that we're not sure how to solve
<unacceptable>
Ugh - ages ago I found an example of sourcing an external nix expression into the systempackages in configuration.nix, and now I can't find it
<dhess>
elvishjerricco: hmm interesting. Is it ready for use in personal projects?
<dhess>
elvishjerricco: using the NixOS module system where?
<elvishjerricco>
dhess: Probably. Nix-tools self-hosts with it
<dhess>
elvishjerricco: cool thanks for the info. I'll check it out.
<elvishjerricco>
dhess: Rather than the `haskellPackages`-style `overrides` / self + super stuff, we just use the module system
<elvishjerricco>
Makes everything more declarative, composable, and documented
<tilpner>
unacceptable: It was probably just = [ ... (callPackage ./your-expression.nix {}) ... ];
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « focuswriter: 1.6.16 -> 1.7.0 »: https://git.io/fppbz
Jackneill has quit [Remote host closed the connection]
Jackneill has joined #nixos
<sphalerite>
djahandarie: I'm alive again! Somewhat. I have flaky internet now. Anyway, you'd want to look at which attrs of the set passed to mkDerivation take long to evaluate, and evaluate those into strings ahead of time. Or somehting.
ntd has joined #nixos
elgoosy has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<djahandarie>
sphalerite, hmm.... and then like override them in or something, right. I was trying to play with nix eval thanks to your suggestion but just strictly evaluating the entire expression didn't work, so I'll need to do something more crafty
<djahandarie>
I wish nix eval had like a iterative deepening depth-first evaluation mode or something
<ldlework>
that'd be sick
<gchristensen>
what would that look like?
<gchristensen>
or maybe I should ask, why? :)
<fusion809>
Is there any interest in merging NixOS/nixpkgs#51404? A new stable release of OpenRA is available, and it'd be nice if this PR was merged before the coming version bump.
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @eadwu to master « vscode-extensions.WakaTime.vscode-wakatime: 1.2.4 -> 1.2.5 »: https://git.io/fphvb
sbdchd has quit [Remote host closed the connection]
<jomik>
Anyone managed to get a csd-wrapper script working for network-manager openconnect?
<jomik>
Ah, I used a nix-shell shebang. Yay
jomik has quit [Quit: WeeChat 2.2]
tg has left #nixos ["WeeChat 1.5"]
<turion>
About gitlab: systemd.services.gitlab.preStart does a huge amount of work. Is this really being executed *every* time we do systemctl restart gitlab?
<gchristensen>
it does
<gchristensen>
are you having problems with it, or just surprised?
<turion>
These things in the prestart section are messing with the state, so it's strange that nixos touches the state every time you do nixos-rebuild switch
<judson>
I'm trying to switch to lightdm (in part to be more in the mainstream of NixOS, and in part because loginctl seems busted under sddm), but I cannot get "none+xmonad" to work.
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « jackett: 0.10.471 -> 0.10.504 »: https://git.io/fphTt
<gchristensen>
so if gitlab changed in any way, it restarts it
<gchristensen>
and if the new version needs to run some transition or has a bug to fix, it needs to re-run the pre-start -- but it turns out most pre starts are safer to just run every time
<turion>
How does it know which pre-start to run then?
sbdchd has joined #nixos
<gchristensen>
systemd runs prestarts before starting the service
<turion>
Ah then I misunderstood you
robstr has quit [Ping timeout: 256 seconds]
jomik has joined #nixos
jomik has quit [Client Quit]
<gchristensen>
if it is very slow to restart, that is a bug... if it breaks things on restart, that is a bug ... but otherwise, this is a fairly common idiom
<turion>
gchristensen: For example, nextcloud creates a config.php upon the first installation
<turion>
meaning that it doesn't recreate the file if it exists
<turion>
Why don't we do that more?
<gchristensen>
we do that a lot
<turion>
Just `touch` a file that locks a directory to the pre-start service, possibly with the filename denoting the state version
<turion>
Ah ok
<gchristensen>
in fact, gitlab's prestart does a lot of that too
<gchristensen>
there is no reason to make the prestart more complicated with versions and locks and what-not
<turion>
Ah ok
<turion>
So why don't we do that with the secret file as well?
<turion>
We could create it randomly if it doesn't exist, and encrypt the database with it?
<gchristensen>
sure, we could do that
<turion>
No need to put it read-only in the store
asymmetric_ has quit [Ping timeout: 250 seconds]
<turion>
I mean globally readable
<gchristensen>
definitely shouldn't put it in the store, deary me :)
<turion>
Yeah, but that's how it's done right now
<turion>
...right?
<gchristensen>
I don't know, but if that is what we do, I'd consider it a bug
<gchristensen>
,cloak = Ping graham if you'd like to get a nixos/user cloak.
<{^_^}>
cloak defined
<iqubic>
What is cloak?
<hyper_ch>
iqubic: it's for hiding your ip/actual hostname on freenode
<iqubic>
I want to install FVWM on Nixos, at the same time as i3. Is that possible?
<__monty__>
Note that it's not strong protection, people can still find out your ip.
<gchristensen>
mostly they're for fun
<__monty__>
Yep.
<hyper_ch>
__monty__: how?
<__monty__>
And to identify bot owners : )
ntd has quit [Quit: ntd]
<__monty__>
hyper_ch: Don't know any details, just telling you the freenode guidelines.
<hyper_ch>
so you're not a l33t h4xx0R?
<worldofpeace>
Lol I though gchristensen was providing literal cloaks :P
<iqubic>
So can I install two WM alongside eachother on Nixos?
<hyper_ch>
I take one elven cloak
<hyper_ch>
like the ones in LotR
<worldofpeace>
Yesss :D
<ldlework>
:P
<ldlework>
dude
<ldlework>
NixOS cloaks with silver logo broaches
<ldlework>
nerdiest thing I've envisaged in a while
<hyper_ch>
hehehe :)
mr_noobs has joined #nixos
<pie____>
ldlework, waitwhatdoethisexist
<iqubic>
So can I. or can I not install 2 WM on Nixos? I'd only be running them one at a time.
<ldlework>
iqubic: well at least the login managers support that kind of thing in letting you pick what DE/WM combo you want. But I have no idea if simply enabling multiple options in the NixOS modules will just work.
<ldlework>
You can always just try it.
<ldlework>
Not like you're gonna break your system.
* DigitalKiwi
has multiple wms
<ldlework>
there ya go
<iqubic>
How would I switch WM without having to reboot?
<hyper_ch>
logout to login maanger
<hyper_ch>
select other wm
<hyper_ch>
log back in?
<iqubic>
I see.
<pie____>
switch user also might work
<pie____>
?
crmlt has joined #nixos
<djahandarie>
Is there some way to refer directly to a derivation by it's path in the nix store? Currently it seems like /nix/store/whatever result in a new derivation that has the output of the derivation referred to... or am I confused?
<pie____>
djahandarie, you mean getting the derivation object via its path?
<djahandarie>
Yeah, I think.
sbdchd has quit [Remote host closed the connection]
<pie____>
hmm...first of all, i dont know. that might be kind of interesting
<djahandarie>
Normally this wouldn't matter, but I'm doing distributed builds, and this is the difference between uploading a gig derivation that is actually already on the remote host if I can get rid of this extra layer of indirection
<shapr>
How could I determine the linux kernel version in the graphical installer? does anyone happen to know?
<hyper_ch>
ctrl-f2 -> uname -a
<shapr>
hyper_ch: I can't boot the installer, and I think I need 4.19 or later
<djahandarie>
I.e., I try to use the stuff at /nix/store/HASH1-thing, and it results in /nix/store/HASH2-thing (same contents) being uploaded to the remote host, even though the original path is already there
<pie____>
djahandarie, how are you doing this? if hash1 thing isnt a runtime dependency i dont think it should be fetched?
<pie____>
oh
<pie____>
also if the contents really are the same hash2 shouldnt be different?
<shapr>
I think pie needs more underscores.
<djahandarie>
pie____, isn't the hash the hash of the input derivation, not the output?
<pie____>
shapr :P i need a bouncer
<pie____>
djahandarie, um good point probably
iqubic has quit [Ping timeout: 256 seconds]
<pie____>
idk
drakonis has quit [Quit: WeeChat 2.3]
iqubic has joined #nixos
tzemanovic has joined #nixos
<iqubic>
Does anyone know why certain steam games fail to work on Nixos?
<djahandarie>
IIRC there is at least some command to get the derivation used to build a given store path, does anyone remember what that is?
<pie____>
iqubic, probably a lot of reasons? :P usually something relating to not being able to find the libraries it wants
<iqubic>
I see.
<iqubic>
So should I continue trying to get this to work on linux, or should I switch to Windows to do gaming? I dual boot, so I can do either of those things.
<shapr>
ubuntu plays steam games just fine
<shapr>
I'd like to think nixos does too, but I can't get nixos installed :-(
<iqubic>
Nixos doesn't do it well enough for me.
<shapr>
iqubic: what games fail to run?
<djahandarie>
(Found it, nix-store -q -d)
<iqubic>
It's a game called "CrossCode"
<iqubic>
Turns out this is indeed a missing library problem.
samueldr has quit [Changing host]
samueldr has joined #nixos
LnL has joined #nixos
LnL has quit [Changing host]
qyliss has quit [Changing host]
qyliss has joined #nixos
qyliss^work has quit [Changing host]
qyliss^work has joined #nixos
tilpner has quit [Changing host]
tilpner has joined #nixos
<clever>
iqubic: i dont know how they did it, but crosscode works in the browser, and even supports gamepads, in javascript
niksnut has quit [Changing host]
niksnut has joined #nixos
gchristensen has quit [Changing host]
gchristensen has joined #nixos
{^_^} has joined #nixos
{^_^} has quit [Changing host]
<ben>
I couldn't get eve online to work in nixos either but not spending time on eve online is probably just another upside of nixos
tzemanovic has quit [Remote host closed the connection]
<clever>
ben: :D
ldlework has quit [Changing host]
ldlework has joined #nixos
<shapr>
ha, good response
<__monty__>
djahandarie: I remember something about working towards a content-addressable store, maybe from a nixcon talk?
aleph- has joined #nixos
<shapr>
clever: do you happen to know what kernel version is in the graphical installer?
tzemanovic has joined #nixos
<iqubic>
clever: CrossCode is appearently made in HTML 5 if you can believe it.
<clever>
shapr: probably the default for nixos
<clever>
iqubic: that would explain how well it works in the browser
<iqubic>
How do I copy text from XTerm?
<rnhmjoj>
do you know what's needed in order to get vulkan running on nixos? i have mesa 18.1.7 and running amdgpu. vulkaninfo fails with VK_ERROR_INCOMPATIBLE_DRIVER.
<clever>
iqubic: the selection buffer, any text you select, in any app, is in the selection buffer
<clever>
iqubic: middle click to paste it
<iqubic>
Because that is the only terminal I have installed right now.
<iqubic>
yea, but hitting ctrl-c just sends a literal control character to Xterm.
<iqubic_>
Is there any way to fix my game issues, or should I run CrossCode through my browser?
<iqubic_>
I feel like that missing library is going to be a bit of an issue for other games too.
crmlt has joined #nixos
<clever>
i would just patch the steam expression to include gtk
<iqubic_>
How do I do that?
<iqubic_>
I'm not sure what that even means.
<__monty__>
I'm getting some "Broken Pipe" errors with nix-shell. But df reports there's free GBs on my disk. Normally it's because the disk is full, what's going on here?
<pie____>
Profpatsch, maybe to make a crosscode derivation? :P
<pie____>
(see above)
iqubic_ is now known as iqubic
<iqubic>
pie____: I don't see the above actually.
dgarzon has joined #nixos
<iqubic>
I just checked the logs.
boredom101 has joined #nixos
<iqubic>
If I were going to play this in the browser, where would I look to find the files to run?
<dgarzon>
Is there any function on the `lib` that would allow me to retrieve all keys in a map? Similar to `attrVals` but for all attributes?
<pie____>
iqubic, that was supposed to be a continuation of my revious mesage
<dgarzon>
For example: `lib.attrVals tools` would result in `[tools.a tools.b]`
<pie____>
iqubic, can you find the location where steam saves the game?
<pie____>
iqubic, i dont have a copy on hand so can you pastebin the list of files in the directory that the game exe is in? ideally the output of ls -alh or somesuch
<iqubic>
Where is the game exe on Nixos?
arjen-jonathan has quit [Ping timeout: 250 seconds]
<pie____>
iqubic, ok so you will need to find the steam game directory, can you look around in ~/.steam (i think)
<iqubic>
I'll take a look.
<pie____>
iqubic, or ~/.local/share/Steam actually
Lears has quit [Ping timeout: 246 seconds]
dbmikus has quit [Ping timeout: 250 seconds]
<pie____>
iqubic, actually, you could just try running the following: find ~ -iname "*crosscode*"
boredom101 has quit [Quit: Konversation terminated!]
dbmikus has joined #nixos
<iqubic>
I found the directory.
<iqubic>
Alright. I just did a stupid thing.
<pie____>
oops?:P
<iqubic>
"tee ~/DIRECTORY/OF/CROSSCODE"
<iqubic>
And that's going to take a while to complete.
<pie____>
control c?
<pie____>
or just close the window
<iqubic>
Yeah, that does it.
<iqubic>
So now that I have the directory, what do you want to see?
<iqubic>
To help me with my CrossCode issues.
aminechikhaoui has quit [Changing host]
aminechikhaoui has joined #nixos
clever has quit [Changing host]
clever has joined #nixos
<pie____>
iqubic, paste the output of ls -alh in the directory to bpaste.org and send me the result
<iqubic>
Firefox. And yeah, that website works fine.
<pie____>
:c
<iqubic>
Wait... And now I can't see my cursor on the screen in game.
<pie____>
i dont know how theycoded the controller stuff...it might just not be supported in browser mode.
<pie____>
hmmmm
mr_noobs has quit [Ping timeout: 250 seconds]
<pie____>
are you sure the controller doesnt work? :P does the mouse work if you dont use the controller? did you plug the controller before starting the game?
kvda has joined #nixos
<iqubic>
I did plug in the controller before starting the game.
rfold has joined #nixos
<iqubic>
And the gamepad tester website works fine too.
<pie____>
clever, im not sure how to add stuff to the steam env because ive never used it so...i cant help iqubic if he decidesto go with that
agander_ is now known as agander
<pie____>
iqubic, you could try chrome i guess but i doubt that will change anything
<iqubic>
I'll try that.
<iqubic>
Actually, I don't have Chrome installed.
jomik has joined #nixos
<jomik>
Hey guys! I am now having an issue running the CSD binaries to allow me to use OpenConnect to connect to my VPN... It gives this error: "Failed to execute process './cstub'. Reason:
<jomik>
The file './cstub' does not exist or could not be executed.
<jomik>
which... Does not make sense. As that is the file I am executing. So it must be that it can not be executed. Why? It seemingly works fine on an OpenSUSE machine. But two NixOS machines are having issues with this file.
<clever>
iqubic: try editing the nix file like in the above commit, to add gtk to steam
<clever>
and then build and use the steam from that nixpkgs clone
<iqubic>
I will.
<pie____>
the question is, will gtk be enough xD
<unacceptable>
I found steam didn't like me at all until I told nixos to do 32-bit graphics
<unacceptable>
Now the client works, but the steam play stuff is much more hit and miss on Nixos than it was on Gentoo
orivej has joined #nixos
ntd has joined #nixos
<pie____>
unacceptable, that is needs 32bit graphics is kind of understandable, but of course its still annoying
<iqubic>
Well... Chromium is even worse.
<iqubic>
Doesn't run the game at all.
<pie____>
iqubic, did you run the init function?
<iqubic>
even when asking it to via commands in the console.
<pie____>
ah.
<iqubic>
I did run the init.
<pie____>
well :<
<pie____>
i dont have a gamepad or a copy of CC with me to test with
<unacceptable>
iqubic: What game?
<iqubic>
CrossCode.
<pie____>
iqubic, if you just want to play the game, firefox + mouse / keyboard should work fine
<unacceptable>
NET_ERR_CACHE_MISS
<unacceptable>
(no ref for CrossCode)
<pie____>
iqubic, if you want the gamepad then i dont really know how to help
<iqubic>
pie____: I know it should, but I'm using a laptop. So....
<pie____>
ahhh zeah
<pie____>
*yeah
<pie____>
i understand
<pie____>
you should get yourself a separate mouse regardless? :P of course that doesnt help right now if you dont have one
<iqubic>
I know.
epicmetal has joined #nixos
clefru has quit [Quit: Leaving]
<{^_^}>
[nixos-org-configurations] @grahamc pushed to master « Drop aarch64 t2a-1 (dead) and t2a-4 (spot), add bigmac (spot) »: https://git.io/fphZD
bbarker has quit [Remote host closed the connection]
<pie____>
clever, hey what about , extraPkgs ? pkgs: [ ] # extra packages to add to targetPkgs
<clever>
pie____: oh, then you could likely do it via .override
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pie____>
clever, what is this, steam-run?
<clever>
not sure
<pie____>
clever, trying to figure out what to pass to nix-shell -p
<ldlework>
just install every package
<pie____>
i mean to be able to override this steam thing :P
<clever>
nix-shell -p 'hello.override {}'
<pie____>
<unacceptable> Now the client works, but the steam play stuff is much more hit and miss on Nixos than it was on Gentoo <ldlework> just install every package
<pie____>
clever, no sorry, i mean i want to know what to have in placeof hello :P
<clever>
yeah, thats the tricky part, the steam stuff is a bit of a maze
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #52499 → servant: Sphinx is a build-time dependency → https://git.io/fphnw
<dgarzon>
Given I have two maps: `tools` and `packages` how can I merge them?
<jomik>
tools // packages IIRC
<jomik>
or it is \\
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #52500 → servant: Sphinx is a build-time dependency for 18.09 → https://git.io/fphno
<pie____>
clever, iqubic what steam was being run for crosscode?
<pie____>
i mean what was the nix stuff
<iqubic>
what do you mean?
<pie____>
idk, how did you run steam
<__monty__>
Hmm, I used an override to change a haskell package version with callHackage, I'm getting errors like this, what am I doing wrong? copying path '/nix/store/vwn9s1vcbzg343jrlrl6b4wjncnkxlyi-all-cabal-hashes-component-squeal-postgresql-0.4.0.0' from ...
<iqubic>
I put steam into my system.environmentPackages in my configuration.nix, and installed that way.
<iqubic>
And then I'm just running it from the terminal.
<pie____>
ok
<pie____>
clever, i think i found an example to use in top-level
<pie____>
fwiw i dont even know what steam-run does
jomik has quit [Quit: WeeChat 2.2]
<pie____>
clever, uhhh.... error: The option `allowUnfree' defined in `/etc/nixos/configuration.nix' does not exist.
<clever>
pie____: nixpkgs.allowUnfree
<pie____>
ah ok
<pie____>
the websites options search didnt list it
<clever>
pie____: steam-run is to run steam like games, in the same sandbox, without the steam ui
fusion809 has quit [Remote host closed the connection]
<pie____>
aha...
feep has joined #nixos
<clever>
pie____: oops wait, its nixpkgs.config.allowUnfree
<clever>
pie____: nixpkgs.config is just a free-form attrset, containing the same thing as the normal config.nix for nixpkgs
<clever>
so the nixos options dont understand it
<pie____>
ok
fusion809 has joined #nixos
<pie____>
clever, i did a rebuild switch but im still getting: error: Package ‘steam’ in /nix/store/zbsk6f16ffadafs81lhwh0pbafz2ya4y-nixos-18.09.1446.db561c90ef3/nixos/pkgs/games/steam/steam.nix:31 has an unfree license (‘unfreeRedistributable’), refusing to evaluate.
<clever>
pie____: nix-shell never uses configuration.nix
<clever>
you must use config.nix for nix-shell
imdoor has quit [Quit: imdoor]
<pie____>
clever, bleh.
<kandinski>
any of yous who is able to load .ovpn files via network-manager and connect to VPNs normally, can you show me your global configuration.nix?
epicmetal has quit [Read error: Connection reset by peer]
vk3wtf has joined #nixos
<clever>
kandinski: `optionalAttrs (builtins.pathExists ./clever_router.ovpn)` is optional, it just makes the rest of that code silently do nothing if the config is missing
<clever>
which allows testing it without any secrets present
<kandinski>
clever: thanks
<kandinski>
clever: will this run the vpn automatically on startup?
tzemanovic has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 268 seconds]
<clever>
yes
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @pablode to release-18.09 « nixos/oh-my-zsh: fix wrong manual information »: https://git.io/fphCp
orivej has joined #nixos
tzemanovic has joined #nixos
marusich has quit [Remote host closed the connection]
<pie____>
yeah error: attempt to call something which is not a function but a list
epicmetal has joined #nixos
<pie____>
messed up something else
<iqubic>
error: Package ‘steam’ in /nix/store/adqrrrbipfbmqvkvyhvfcn7k89q5naqg-nixos-18.09.1676.7e88992a8c7/nixos/pkgs/games/steam/steam.nix:31 has an unfree license (‘unfreeRedistributable’), refusing to evaluate.
<pie____>
Judson, i heard freedesktop stuff got kind of tangled into systemd so...
<clever>
Judson: xterm can sometimes wind up being the default
<pie____>
Judson, yeah ok then again thats not x
<judson>
I did, "none+xmonad" but that gets ignored.
<pie____>
clever, i think crosscode is basically going to try running node webkit in the steam environment stuff? idk why that ends up complaining about gtk but do you forsee any issues? ah but you said you got it working at some point?
<pie____>
or was that on windows?
<pie____>
^dumb question
<judson>
I've both explicitly set none in my configuration.nix (desktopManager.default = "none";) and that comes through in lightdm.conf as none+xmonad.
<judson>
I chose the option as I logged in. There's still an xterm.
ambro718 has quit [Read error: Connection reset by peer]
<pie____>
ugh the steam command faild on a ton of things for me
ntd has quit [Quit: ntd]
ambro718 has joined #nixos
<clever>
pie____: ive only gotten it to work in chrome so far, havent tried under steam
<pie____>
clever, ah, was that without gamepad stuff?
<iqubic>
that nix shell think isn't working.
<clever>
pie____: gamepad just worked with zero config in chrome
<pie____>
clever, oh.
<dgarzon>
Is there any way to tell `pkgs.writeText` to write the file to `$out/fileName.json`?
<pie____>
clever, -p chromium?
<judson>
But when .xprofile gets loaded, theres e.g. a DESKTOP_SESSION=xterm+xmonad that's set and I have no idea where that came from.
<iqubic>
Well It isn't working for me.
<clever>
pie____: probably, but i just have it installed noramlly
<clever>
Judson: one sec
<pie____>
oh. normally?
<iqubic>
Trying to run steam in nix-shell with the above command is failing.
<dgarzon>
Doing `pkgs.writeText "derivations.json" (builtins.toJSON {});` just creates a `result` pointing to the file, but I would like to have `result/derivations.json`. Is that possible?
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #52500 → servant: Sphinx is a build-time dependency for 18.09 → https://git.io/fphno
<{^_^}>
[nixpkgs] @Ericson2314 pushed 2 commits to release-18.09: https://git.io/fph8t
<ldlework>
At somepoint my internal mic dissapeared and i can't find it with any tools heh
<clever>
ldlework: pavucontrol?
<ldlework>
i haven't used it in a couple months so i have no idea
<ldlework>
clever: yeah, nothing there
<ldlework>
alsamixer, even like lspci and stuff
alex_giusi_tiri has joined #nixos
<clever>
lspci wouldnt show a mic
<clever>
ldlework: if you boot an older generation of nixos, does it come back?
dslegends has quit [Quit: dslegends]
<ldlework>
i dunno, there's so many
<clever>
pick a random one from a month or 2 ago
<tilpner>
ldlework: Did you reboot yet? I discovered my laptop had a key combination that disabled the sound card in alsamixer
<{^_^}>
[nixpkgs] @Ma27 pushed to master « nixos/test-driver: fix wording in error message about invalid node names »: https://git.io/fph8s
<ldlework>
at some point i upgraded from 18.03 to 19.03 and a few tools config formats changed like my WM so I dunno if I wanna do that. But it might be worth it just to satisfy my curiosity.
<ldlework>
tilpner: like a hardware key-combination?
<tilpner>
I think so
<ldlework>
i'm not sure what that would be for me. nothing on the keyboard makes it obvious.
<jomik>
Can someone help me with a file not being executable on NixOS? It worked fine on ArchLinux and OpenSUSE. It is the Cisco Desktop Trojan shit required for AnyConnect... I can not execute the cstub file. It has the bit set, but it gives an error, that the file doesn't exist or could not be executed.
<iqubic>
clever: I don't know how to launch chromium.
<iqubic>
Because I don't know how to find the executable that was just created.
<pie____>
jomik, thats usually a problem with not having the correct executable interpreter set, along with related things, sorry im a bit distracted to try helping, but maybe someoen can elaborate
<clever>
iqubic: nix-store -r /nix/store/foo will just download /nix/store/foo, and its deps
<jomik>
pie____: Thanks. That gives me something I could google, I suppose - I need this to access my work's server. So it is a bit important. though, worst case I can just set up a docker container and route stuff through that. Lol...
jackdk has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
<jomik>
Would love if you could point me at something more specific tho :P
fresheyeball has joined #nixos
<fresheyeball>
is there a way to upgrade my gnome version?
<iqubic>
Well, I still don't know how to run it.
<iqubic>
I can't get chromium to run for me.
<pie____>
jomik, yeah...usually you need to mess with getting the correct dependencies set up as well. ldd and patchelf
<clever>
iqubic: what happens when you run /nix/store/cjnkqww1pd5ak02369wqaqdr1s5i0jay-chromium-70.0.3538.77/libexec/chromium/chromium ?
<pie____>
jomik, patchelf has --set-interpreter i think, but basically thats what you need to look into, have you checked if theres an anyconnect package? maybe look for github issues as well
<iqubic>
WTF is life? Controller support now works.
<pie____>
iqubic, woohoo! congrats have fun :)
ntd has joined #nixos
<pie____>
probably something in the way cc "browser mode " (i mean yeah node-webkit is still a browser though...) stuff is coded or something with the apis
<__monty__>
le sigh, how difficult can it be to get a ghc with squeal-postgresql 0.4?
<pie____>
iqubic,re: i guess they might have specially enabled or fixed something for the web demo, does the web demo work with the controller in firefox as well?
<pie____>
he also said the controller works in the web demo, just no tthe full game
<clever>
2018-12-18 19:07:31 < iqubic> pie____: Nope. No controller support on the demo on firefox.
<pie____>
oh oops
<pie____>
sorry
<iqubic>
Clever: That html5 website works on both browsers.
<clever>
ah, thats odd then
<iqubic>
And I get the right output.
<iqubic>
I am able to run the demo on Firefox and Chromium. I am only able to run the full version on Firefox.
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<iqubic>
I have controller support only on the demo on chromium.
<samueldr>
IIRC chromium now has "bad" (opinions may differ) defaults for local files when loaded in the browser
<samueldr>
it may be related?
<iqubic>
perhaps. I'm not sure.
<jomik>
pie____: Ahh. This makes sense. Maybe.. I printed the interpreter of the program -> "/lib64/ld-linux-x86-64.so.2" and the rpath -> "$ORIGIN/../lib:/opt/cisco/hostscan/lib". Can you point at what I'd need to set them to?
<fresheyeball>
no seriously is there a way to upgrade gnome?
<samueldr>
iqubic: quit chromium completely, then start it with that parameter added: --allow-file-access-from-files
init_6 has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<iqubic>
Well, that worked.
<iqubic>
I am now able to play the full game with controller support.
tzemanovic has joined #nixos
<iqubic>
Why the hell do I have to jump through so many hoops to make this work?
pie__ has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
pie___ has quit [Remote host closed the connection]
tzemanovic has quit [Remote host closed the connection]
<samueldr>
hard to know without testing it myself, but chrome's reasoning behind the flag is to reduce the attack surface of the browser by making it a session parameter, don't really know from what it protects though
<pie____>
jomik, well my horrible hacky solution is to use some random ld-linux in the nix store
<iqubic>
clever: I now have a thing called result. What do I do with that?
tzemanovic has quit [Remote host closed the connection]
<jomik>
pie____: I am all up for that - I may need to make a nix file to run this with down the line tho... But atm I just want it to work.
tzemanovic has joined #nixos
<pie____>
jomik, youll also need to make the stuff ldd lists findable somehow, and hope it doesnt load anything dynamically or ifit does that you can figure out what it needs? xD
<jomik>
I don't have anything called ld-linux in my store though.
tzemanovic has quit [Remote host closed the connection]
<jomik>
the stuff in the rpath should be findable - at least I got that given.
Ariakenom has quit [Ping timeout: 250 seconds]
kingemp_ has quit [Remote host closed the connection]
<clever>
jomik, pie: if you nix-build the file in that gist, it will generate a bash script
<clever>
if you then run that bash script on a random ELF, it will patch it for you
<judson>
clever, I feel like I worked through this before - the cfg.displayManager.session.script at the bottom there for lightdm assumes that it'll be passed an argument with the session.
<clever>
the result symlink produced by nix-build, will also root all libraries, so a GC wont delete them on you
<pie____>
clever, +
<pie____>
* ++
<jomik>
clever: Ooooh.
<judson>
Without it, it's supposed to (as realized on my system) use the defaults: none/xmonad
<jomik>
clever
<jomik>
Your name suits you.
<clever>
:D
<pie____>
clever, thats a pretty typical reaction to clever :P both of those comments
<pie____>
"ooh"
<jomik>
:joy:
<pie____>
:D
<jomik>
Wait, how does this create a gc root?
<pie____>
iqubic, so have you tested that saving works yet
<pie____>
iqubic, dont wait too long :P
<jomik>
What is ELF btw?
<clever>
jomik: when you nix-build the nix file, it creates a gc root pointing to the built bash script
<clever>
jomik: that bash script depends on zlib and glibc
<jomik>
OH, right, you have the bash script in nix store.
<clever>
and it will then embed that zlib and glibc path into the ELF you ran it on
<jomik>
But, nothing depends on the bash script?
<jomik>
Oh
<clever>
the nix-build command always creates an indirect root in the current dir, called result, by default
<clever>
and that stops the gc from eating the bash
<pie____>
nomnom
<iqubic>
I haven't starting the game yet.
<jomik>
But if I delete result, then it dies with a garbage collect, correct?
<jomik>
Ah, ty clever.. It is pretty hard to google "elf" :D
<iqubic>
Procrastinating with YouTube
<clever>
jomik: and nix isnt aware that the ELF file needs those libs, so it will fail too
<jomik>
Yeah, that's what I figured.
<jomik>
I'll try this. And maybe adapt it so that the wrapper uses it. I guess :o
shabius has quit [Remote host closed the connection]
<jomik>
I worry that this stupid cisco shit will redownload the file because the checksum changed.
<jomik>
Sorry for the language.
shabius has joined #nixos
<jomik>
This CSD stuff has annoyed us for ~2 months now, in multiple ways :D
<clever>
jomik: thats about the only good reason to use steam-run and/or the build fhsenv stuff
<clever>
steam uses an fhsenv, because there are just too many things to patch, that update on their own, and may get upset if you try to patch them
<jomik>
Yeah, makes sense.
<jomik>
I hope our hosting team will just get their asses together and open up a ssh tunnel for us tho.
<pie____>
jomik, why do you need this csd thing anyway
epicmetal has quit [Remote host closed the connection]
epicmetal has joined #nixos
<jomik>
Because AnyConnect by Cisco requires it. Our hosting team decided it was great to incorporate it suddenly.
<jomik>
clever: Lol, your nix expression forgot to depend on patchelf? :D
<pie____>
oh ok
<pie____>
jomik, so...the openconnect stuff doesnt work because the cisco version checks that this csd stuff is running?
<jomik>
Wait, actually. Should I need to have patchelf as a buildInput too
<clever>
jomik: oops!
<clever>
jomik: i think patchelf was installed by default on nixos for ages
<clever>
jomik: youll want ${patchelf}/bin/patchelf then
<jomik>
pie____: OpenConnect does some handshake, then this csd stuff runs some checks on the machine, then the vpn server gets some stuff from it, and the handshake with openconnect finishes. Till then, OpenConnect just hangs.
<clever>
thats also why i avoid installing any dev tools at all
<pie____>
jomik, aha
kingemp has joined #nixos
<jomik>
clever, pie____ : Thanks guys! Saved the day here :D
<pie____>
jomik, w00t, did you actually get it to work?
<jomik>
IT runs now. But there is probably some other bug still :D