<slabity>
That's different - Running the linux kernel in a JS environment
<slabity>
I won't be satisfied until my driver modules are completely written in JS
<alienpirate5>
horrifying thought
<worldofpeace>
hah the portal module sets GTK_USE_PORTAL = "1"; but heh you kinda need to have an implementation for that...
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjyk2
<slabity>
So what's a good fix for the repo? Is it a GTK bug or can we add that var to the firefox wrapper?
<alienpirate5>
why is spidermonkey refusing to cross compile
<worldofpeace>
I think the motivation of the change was ill informed enabling a feature that, even when used in firefox could still have bugs that aren't ready for the general public completely.
<worldofpeace>
and most people in nixos are using lightweight wm anyway...
<alienpirate5>
why does python?
<alienpirate5>
i'm on gnome
<slabity>
alienpirate5: Then you have a lot more than polkit depending on spidermonkey
<alienpirate5>
slabity: only polkit
<worldofpeace>
gnome module had this enabled before this change (i think)
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
stepcut has joined #nixos
palo has joined #nixos
fusion809 has joined #nixos
___laika has quit [Ping timeout: 248 seconds]
jluttine has quit [Ping timeout: 245 seconds]
Mike79 has joined #nixos
day|flip has quit [Quit: ERC (IRC client for Emacs 26.1)]
Mike79 has quit [Remote host closed the connection]
selfsymmetric-mu has joined #nixos
fragamus has joined #nixos
___laika has joined #nixos
stepcut has quit [Ping timeout: 268 seconds]
oldandwise has joined #nixos
<oldandwise>
My shell.nix is https://termbin.com/fqkx. How can include the gtest library in my `g++ -o main main.cpp` ?
<oldandwise>
i got it. So this works `g++ -o main main.cpp -lgtest -lgmock -pthread`. So without -L/some/path/to/libs/, how did -lgtest know where it is?
<oldandwise>
i'm doing this inside a `nix-shell`
hyper_ch has joined #nixos
<clever>
oldandwise: `echo $NIX_CFLAGS_COMPILE`
<oldandwise>
clever: thanks. Is theere also for includes and links?
<oldandwise>
ie, for '-I/aa/bb/cc/' and '-lsomefunc' ?
<clever>
oldandwise: yeah
<clever>
oldandwise: the include dir of every buildInput is added to -I automatically
<clever>
and the lib dir of every buildInput is added to -L automatically
<{^_^}>
[nixpkgs] @aanderse opened pull request #65401 → phpPackages.mongodb: init at 1.5.5 → https://git.io/fjyLk
_e has quit [Quit: WeeChat 2.4]
mkoenig has joined #nixos
_e has joined #nixos
<oldandwise>
thank you clever
hyper_ch has quit [Ping timeout: 245 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
mog has joined #nixos
hyper_ch has joined #nixos
vmandela has joined #nixos
day|flip has joined #nixos
tput has joined #nixos
fragamus has quit [Ping timeout: 246 seconds]
oldandwise has quit [Quit: leaving]
jluttine has joined #nixos
sb0 has quit [Ping timeout: 248 seconds]
sb0 has joined #nixos
sb0 has quit [Client Quit]
tput has quit [Ping timeout: 268 seconds]
phreedom has quit [Remote host closed the connection]
Supersonic has quit [Ping timeout: 264 seconds]
abathur has quit [Ping timeout: 272 seconds]
Supersonic has joined #nixos
<iqubic>
Does anyone know why the application qjoypad isn't launching for me?
<iqubic>
I tried calling it from the terminal, and it stalls with no output at all.
iqubic` has joined #nixos
iqubic has quit [Ping timeout: 276 seconds]
Hail_Spacecake has joined #nixos
<Hail_Spacecake>
hi
<Hail_Spacecake>
I'm trying to install nix on my system
<Hail_Spacecake>
runnign curl https://nixos.org/nix/install | sh wants me to source a shell file in order to get access to the nix-shell binary
<Hail_Spacecake>
but my shell of choice is fish, and it can't do that
<gchristensen>
ack
<Hail_Spacecake>
and I can't find documentation on how to install nix with non-(ba)sh shells
<Hail_Spacecake>
even though it seems like you can install fish itself via nix
<gchristensen>
you could, yeah
<gchristensen>
maybe you could read the file it recommends andrewrite it for fish?
<jasongrossman>
I believe lots of people use fish as their main shell, and nix, but I've always assumed we all run bash when we're following instructions that are written for bash.
<jasongrossman>
That's what I do, anyway.
<Hail_Spacecake>
ah so this is just something not supported at the moment
<Hail_Spacecake>
Im not a fan of software that installs via shell script sourcing for this reason
<jasongrossman>
Yes - bash is an assumed dependency of nix. I doubt there's any interest in removing the dependency, even among people who prefer fish.
<Hail_Spacecake>
I don't mind having bash installed, just having to run bash efore running nix-shell
<jackdk>
I'm aware of people who use fish as their user shell, but that was on nixos
<Hail_Spacecake>
and not having nix-commands in my fish history
<iqubic`>
I think you mean fishtory. /s
iqubic` is now known as iqubic
<iqubic>
So, anyone know why `qjoypad` just stalls out and gives no output in the terminal?
phreedom has joined #nixos
<iqubic>
I really am super curious about this.
wykurz has joined #nixos
liberiga has quit [Ping timeout: 260 seconds]
<wykurz>
hello, I'm trying to figure out how does nixpkgs resolve kernel compatibility for packages that require it, e.g. "perf". can anyone explain / point me where to look?
<clever>
linuxPackages.perf.out 2,106,048 x /nix/store/3idqjvp0kkl80ivzjrr3c73japzgqz4r-perf-linux-4.9.23/bin/perf
<clever>
wykurz: perf is under linuxPackages, which is generated by a function, that creates a variant of every package, for every kernel
<iqubic>
clever: do you know what's up with qjoypad not working for me?
<clever>
iqubic: i glanced at the source code, and it looks like it just isnt supposed to open a window
Yakulu has joined #nixos
<clever>
iqubic: did you check its manual?
<clever>
[clever@amd-nixos:~/apps/nixpkgs]$ vi pkgs/top-level/all-packages.nix
<clever>
15405 linuxPackagesFor = kernel: lib.makeExtensible (self: with self; {
<clever>
wykurz: this function takes a kernel, and generates a package set containing all kernel stuff, built against that kernel
<iqubic>
I'm running into an issue where this one particular steam game is refusing to reconize my PS3 controller. All the other steam games work just fine.
<iqubic>
I'm trying to get Hollow Knight to recognize my controller and it just doesn't.
wfranzini has quit [Remote host closed the connection]
puck has quit [Quit: nya]
puck has joined #nixos
day|flip has quit [Quit: ERC (IRC client for Emacs 26.1)]
<iqubic>
Anyone know what might be causing this?
<jackdk>
whatever you've set up is talking directinput, not xinput, or vice-versa? that's all I got
zupo has joined #nixos
palo1 has joined #nixos
palo has quit [Ping timeout: 245 seconds]
palo1 is now known as palo
rtjure has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixos-hardware] @Mic92 pushed 2 commits to master: https://git.io/fjyt6
adamantium has joined #nixos
<adamantium>
Is there a nixos option to run some custom scripting at the end of the bootstrap installation
kiloreux_ has quit [Read error: Connection reset by peer]
kiloreux_ has joined #nixos
mexisme has quit [Ping timeout: 248 seconds]
MmeQuignon has joined #nixos
mexisme has joined #nixos
alex`` has joined #nixos
<{^_^}>
[systemd] @Mic92 merged pull request #30 → Additional paths to look for executables for systemd-sleep and systemd-shutdown → https://git.io/fjyJI
<{^_^}>
[nixpkgs] @oscarcarlsson opened pull request #65411 → countdown: init at 1.0.0 → https://git.io/fjyq3
eagle2com has joined #nixos
bakakuna has quit [Ping timeout: 258 seconds]
Tucky has joined #nixos
<Miyu-chan>
TIL, libtrash is a thing and LD_PRELOADs unlink to move it to a different folder instead of, well, deleting.
zupo has joined #nixos
<makefu>
marek: in that case you could use services.printing.extraConf = lib.mkForce '' .... ''
iqubic has quit [Read error: Connection reset by peer]
chagra has joined #nixos
<marek>
makefu: probably that's the same
<marek>
case
<ent>
/sb end
<chagra>
hey! nixpkgs does not seem to have to have an ueberzug package so I added one to my personal repo but now i'm on holiday and only have my phone and very limited internet so I can't really do a pull request. Can someone do it for me, It's a really short package
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
<rnhmjoj>
is there any plan or wish to move nixpkgs off github? i find this very troubling: https://github.com/tkashkin/GameHub/issues/289. an american company shouldn't decide who can or can't contribute to a project
<{^_^}>
tkashkin/GameHub#289 (by tkashkin, 1 day ago, open): Project status
<jasongrossman>
rnhmjoj: I agree. I'm not a major contributor, though.
Makaveli7 has joined #nixos
<Miyu-chan>
Just looked at rnhmjoj's link, and that seems kinda important, actually.
<Miyu-chan>
I'm not based in the US, and neither have I contributed much to NixOS, but I use Nix as my tool of choice.
<jasongrossman>
Most of the active participants in NixOS are not based in the US.
<chagra>
Same I am in an arab country and US relations are always uncertain, I wouldn't like my computing affected by politics i have no care for
<Miyu-chan>
Yeah, I was about to point that out too, but I wasn't sure if that was true. OTOH, most of them is based in Europe, so they're mostly unaffected, I believe?
<rnhmjoj>
jasongrossman: i do submit quite a few changes to nixpkgs and i'd like to continue doing so in the future. i'm also worried since my country could be the next to receive sanctions given the current gov positions on china and russia
<marek>
rnhmjoj: well, I guess the country doesn't really have the choice, just following the law I guess
<marek>
gitlab will be the same in this case
Ariakenom has joined #nixos
<Miyu-chan>
Anyways, I think this wasn't the first time this got raised up, for different reasons. And IIRC, the answer was "Github integration"
<Miyu-chan>
ofborg only supports GitHub, I believe?
<marek>
the only solution would be gitlab self hosted
<marek>
but to be honest - go tor :)
<chagra>
must it be a gitlab hosted outside the US?
<marek>
yes
<chagra>
so its not just companies thatvhave to comply? individuals as well?
<chagra>
that sucks
<marek>
and given how short nixos is on resources, maintaing its own gitlab server is probably not a good idea
<marek>
chagra: everyone, it's the law :)
<marek>
and to be honest, I'm pretty sure EU countries have sanctions to Crimea as well
<marek>
or not?
<Miyu-chan>
OTOH,self-hosting Gitlab is kinda a testament to how easy NixOps is. :)
<rnhmjoj>
marek: tor is an option but i guess one would have to make a new github account
<marek>
rnhmjoj: probably not, I guess it's based on the origin IP
<chagra>
tor from experience is not perfect, just a few years ago here you had to go through a bridge to use it
<marek>
actually tor went a long way in the last years, I remember it as very slow and bad
<chagra>
i think my university still blocks all tor traffic
<marek>
now I'm even able to use it for ssh
<chagra>
oh neat
<marek>
I guess with the rise of cryptocurrencies the drug business over tor is doing a lot better :)
<marek>
so, about Crimea, it looks like US, EU and canada are included in the santions
<chagra>
anyways please make sure nixos stays alive, I am the farthest thing from a developper but nixos has been extremely handy for me.
<chagra>
cya , keep being awesome folks!
chagra has quit [Quit: Quit]
civodul has joined #nixos
<niso>
tor as a workarround so people can keep using an open-source project running on a proprietary platform (region-locking it's users)? :P
<rnhmjoj>
also major projects like mozilla, x.org and gnome host their own code: it would be cool to have a git.nixos.org
<DigitalKiwi>
mozilla also has a lot of money and staff
<jasongrossman>
We have plenty of server space, kindly donated to us. That doesn't pay for coding and managing a git infrastructure though.
FRidh has joined #nixos
<jasongrossman>
I don't know how much work would be involved.
<rnhmjoj>
there could be a fundraising or something if money is the problem. i, for one, would very happily contribute
<etu>
But I don't think that covers what's on topic atm
<ptotter[m]>
gitlab, gitea, or something similar is probably easy to set up, but there's some work to maintain
<ptotter[m]>
and scale
<marek>
niso: proprietary platform has nothing to do with it
<marek>
if you host it in US, EU or canada, you will have to do the same, even if running on gitlab
<marek>
even then, nixos could get in trouble for supporting it outside of the EU
<etu>
Trade sanctions applies to individuals anyways.
<etu>
:)
<etu>
s/:)/:()
<marek>
sure, but you need to ensure them
logzet has joined #nixos
<etu>
yeah
rsoeldner has quit [Remote host closed the connection]
<etu>
So self-hosting doesn't solve much :/
das_j has quit [Ping timeout: 250 seconds]
rsoeldner has joined #nixos
<marek>
I mean, it kinda makes to outsource this to github
<marek>
makes sense*
<etu>
But IANAL... So well, some Gnome guy said (on the linked thread about GameHub) that foss is special in certain cases
<etu>
So maybe it is?
<marek>
just probably just LGPL and related
FRidh has quit [Ping timeout: 245 seconds]
<marek>
I know Fedora project has a full team of lawyers just for reviews of the open source code
Drakonis has quit [Quit: WeeChat 2.4]
dansho has quit [Ping timeout: 245 seconds]
veske has joined #nixos
FRidh has joined #nixos
<niso>
marek: i know, i just love to mention that the biggest open-source-platform is fully proprietary :)
<etu>
niso: tbh it's always been like that. See sourceforge ;)
o1lo01ol1o has joined #nixos
<rnhmjoj>
marek: i know next to zero about sanctions (in the EU). do they apply even to an entity that is not a company and offers no commercial services?
<etu>
rnhmjoj: afaik yes
<niso>
etu: well maybe at some point in the future..... *one can dream*
<adisbladis>
Miyu-chan: Yeah, it's reverted the fix. Because the fix was fixing the vuln but broke legit use cases.
<cinimod>
error: attribute 'haskell' missing, at (string):1:134
justanotheruser has joined #nixos
<Miyu-chan>
cinimod: IIRC, `pkgs` in here passes haskellPackages.
<cinimod>
What should I used?
<Miyu-chan>
In this case, I use hpkgs:
<cinimod>
:thumbsup:
jasongro` has joined #nixos
jasongro` has quit [Remote host closed the connection]
vmandela has joined #nixos
jasongrossman has quit [Ping timeout: 245 seconds]
knupfer has joined #nixos
<cinimod>
Now it runs but still does the tests - wtf - :angry:
veske has joined #nixos
ThatDocsLady has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
mexisme_ has quit [Ping timeout: 250 seconds]
psyanticy has joined #nixos
noonien has joined #nixos
joehh has joined #nixos
Thra11 has joined #nixos
cfricke has quit [Ping timeout: 246 seconds]
<Miyu-chan>
If I had to say. One of my pain points in Nix is that it's pretty hard to enable debug information to a package and its dependency tree.
<marek>
where can I find the logic that evaluates if the package is up for update? (based on the version?)
<Miyu-chan>
I mean, you can technically traverse through its dependency tree using buildInputs, but one buildInput not using nativeBuildInputs for its compiler will just make your day go awry.
joehh has quit [Ping timeout: 245 seconds]
<adisbladis>
marek: Huh?
aexoxea has joined #nixos
<{^_^}>
[hydra] @basvandijk opened pull request #665 → Added the InfluxDBNotification plugin including a NixOS test → https://git.io/fjyOn
Thra11 has quit [Quit: WeeChat 2.5]
Thra11 has joined #nixos
hmpffff has joined #nixos
<jackdk>
before I just go set up a pihole, is there a decent mechanism to get a Pi3 to do dns blocking against an automatically-updating list of ad domains? I've had nixos on a pi working before, I know that much
<ivan>
7z x can unzip things and with better charset handling too
<cinimod>
warning: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:9; will use bash from your environment
veske has quit [Ping timeout: 244 seconds]
<cinimod>
And more disappointingly
<cinimod>
[nix-shell:~/nixtest]$ ghci
<cinimod>
Prelude> import qualified Language.R as R
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
Makaveli7 has quit [Quit: WeeChat 2.5]
<noonien>
hello folks
joehh has joined #nixos
<noonien>
one big gripe i have with nixos, because i do a lot of development that requires cross-compilation is how it handles ld.so, is there a way to provide /lib/ld-linux.so and instruct gcc to use that for binaries i compiled outside nix?
<Miyu-chan>
noonien: Have you tried Nix's cross-compilation framework?
<noonien>
i usually prefer to run my own build tools, and integrate nix afterwards
<noonien>
either way, that does not solve the ld-linux.so issue
<aanderse>
cp: cannot stat '/home/.zfs/snapshot/zfs-auto-snap_hourly-2019-07-25-22h00/andersea/nixpkgs': No such file or directory
<aanderse>
given the directory *kinda* does exist
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cinimod has joined #nixos
cinimod` has joined #nixos
<infinisil>
aanderse: The .zfs directory is kind of special, does it work if you cp into /home/.zfs and use a relative path?
cinimod has quit [Ping timeout: 258 seconds]
<edef>
aanderse: are you sure /home is the root of a dataset?
<edef>
noonien: you can patchelf outside binaries, or run in something like the Steam FHS env
<noonien>
yes, that is what i'm trying toa void doing
<noonien>
providing /lib/ld-linux*.so should be simple enough, this would allow outside libraries to run on nixos without having to patchelf. also, i don't see why gcc-wrapped is the default, and not just used by nix itself
<noonien>
i understand the benefits of also factoring ld.so into a program's dependencies, however, this makes development for existing projects pretty hard on nixos in some cases
bakakuna has joined #nixos
<Miyu-chan>
Wait what the heck, there's a ~/.zfs directory?
knupfer has joined #nixos
<noonien>
not really, more like a special zfs path
Wizek has quit [Quit: Connection closed for inactivity]
sindrip has quit [Remote host closed the connection]
cinimod` has quit [Remote host closed the connection]
cinimod` has joined #nixos
eagle2com has quit [Ping timeout: 258 seconds]
mexisme_ has joined #nixos
Guest37747 has quit [Ping timeout: 245 seconds]
zupo has joined #nixos
johanot has quit [Quit: WeeChat 2.4]
mexisme_ has quit [Ping timeout: 258 seconds]
cinimod` has quit [Remote host closed the connection]
cinimod` has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @domenkozar merged pull request #63766 → Add configurationLimit to systemd-boot to prevent running out of disk… → https://git.io/fjrWu
<{^_^}>
[nixpkgs] @domenkozar pushed 2 commits to release-19.03: https://git.io/fjysW
<{^_^}>
[.github] @zimbatm pushed to master « SECURITY: improve text »: https://git.io/fjyGP
Henson has joined #nixos
<Henson>
hi everyone, I'm trying to figure out how to get the path /usr/share/X11/xkb to appear. I tried adding the xkeyboard_config package to environment.systemPackages, but that didn't help. The package is now a dependency of /nix/var/profiles/system/sw, but it doesn't actually appear anywhere. There's probably another package I should have installed instead, does anybody know what it is?
<infinisil>
Oh the options description doesn't mention that it also exports /etc/X11/xkb, but it does
robogoat has joined #nixos
rprije has quit [Ping timeout: 246 seconds]
<Henson>
infinisil: I guess installing X11 would probably be helpful for me. There are hundreds of xorg.* packages, is there one master one I should install/
Thra11 has quit [Ping timeout: 245 seconds]
<infinisil>
Why would you want that?
orivej has joined #nixos
__monty__ has joined #nixos
___laika has joined #nixos
<xacktm>
nixos has a different packaging paradigm to most other distros btw
joehh has quit [Ping timeout: 272 seconds]
<Henson>
infinisil: well, I don't even have an /etc/X11 directory for services.xserver.exportConfiguration to work on, so I need to figure out how to get that
<infinisil>
Henson: You don't need that to run X11. Just do services.xserver.enable and everything will work just fine
<Henson>
the thing is, I'm trying to run a closed-source program on NixOS that requires the /usr/share/X11/xkb directory to be exactly there, and I'm trying to figure out how to get it there in the proper NixOS way. If I just link /nix/store/...-xkeyboard_config-.... into /usr/share then it works fine, but that's the wrong way to do it
<Henson>
simpson: ok cool, I'll take a look at that!
___laika has joined #nixos
<simpson>
aria: It's a straightforward consequence of closed-source software being trash. We refuse to populate /usr; instead, we put them in jail, and give them a fake /usr.
eagle2com has quit [Ping timeout: 246 seconds]
* Henson
chuckles
<adisbladis>
Eloquently put <3
enuiarte has joined #nixos
ddellacosta has quit [Ping timeout: 268 seconds]
<hodapp>
if I am using makeWrapper on a binary that is already in $out/bin (for instance), is there a standardized convention for how I'd rename that binary and replace the same name with the wrapper?
<hodapp>
I have a vague memory that sometimes the 'actual' binary is prefixed with a dot so it's not visible
ddellacosta has joined #nixos
<gchristensen>
wrapProgram will do that automatically
<hodapp>
oh!
<gchristensen>
:)
<hodapp>
does one use things like --set the same way?
<gchristensen>
yep!
<Henson>
gchristensen: hey, I have a question. How much space does the cache of Hydra builds consume? I asked this question a week or two ago, and somebody said you'd know. Somebody recalled it was either in the order of 2 or 200 TB.
<hodapp>
excellent, exactly what I need
<gchristensen>
yeah. last I looked, 180T
<gchristensen>
(about a monthago)
<hodapp>
O_O
<simpson>
One small bucket for public clouds, one large cache for all public cloud users~
<simpson>
I shouldn't joke. That's clearly a "large" amount of data, on the tiny-small-medium-large-huge scale of data.
<gchristensen>
:P
<gchristensen>
a natural consequence from running 1,250,000 builds a month
<{^_^}>
[nixpkgs] @abbradar merged pull request #65414 → nixos/systemd-boot: don't remove directories from EFI dir → https://git.io/fjysI
<{^_^}>
[nixpkgs] @abbradar pushed to release-19.03 « nixos/systemd-boot: don't remove directories from EFI dir »: https://git.io/fjyZ1
<infinisil>
I feel like a lot of money could be saved by doing some garbage collection on that
<infinisil>
Like, I wouldn't be surprised if 90% of those builds hasn't been downloaded by anybody
<infinisil>
s/hasn't/haven't
<__monty__>
Or, make them lazy.
<gchristensen>
the binary costs is generously provided, the foundation doesn't pay for it
SyrupThinker has quit [Quit: WeeChat 2.4]
<infinisil>
gchristensen: Is the cache itself generously provided by the cloud provider or the *money* for the cache?
<jomik>
Hey guys, I can not seem to set up NativeScript for local builds. It simply does not recognize my android environment, when using our androidenv package. Are anyone able to help?
thc202 has joined #nixos
matthuszagh has left #nixos ["ERC (IRC client for Emacs 27.0.50)"]
eagle2com has quit [Read error: Connection reset by peer]
eagle2com has joined #nixos
<{^_^}>
jomik: Please expand your question to include more information, this will help us help you :)
joehh has joined #nixos
<marek>
is there a way to rename a file in nix?
<gchristensen>
can you say more abut what you're doing?
<marek>
gchristensen: I'm setting up a module in morph and I would like to have /etc/nixos/configuration.nix renamed so people know it should not be anymore (I could rewrite it with writeText but I would like to backup it up)
<maralorn>
With what option can I say ensure that this directory exists and belongs to user xy?
___laika has quit [Ping timeout: 268 seconds]
<samueldr>
marek: the half-true answer is "nix derivations cannot affect things outside their own store paths"
<samueldr>
marek: the other half of that answer is "unless you execute something from that built derivation after the build and then the world's your oyster"
<marek>
samueldr, gchristensen hmm indeed, thank you
<maralorn>
Or is the usual way to put that in ExecPreStart of some service?
<jomik>
infinisil: Noop. But `adb` does work just fine. I install adb using direnv in a shell.nix, and have no proble using adb with my phone :o
Thra11 has joined #nixos
linarcx has joined #nixos
eagle2com has quit [Read error: Connection reset by peer]
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
Drakonis has joined #nixos
endformationage has joined #nixos
anon has joined #nixos
anon is now known as Guest70025
<jomik>
infinisil: Sadly that didn't change anything :)
<jomik>
:(
pepegar has joined #nixos
linarcx has quit [Quit: WeeChat 2.5]
veske2 has quit [Quit: This computer has gone to sleep]
linarcx has joined #nixos
domogled has joined #nixos
johanot has joined #nixos
asheshambasta has joined #nixos
linarcx has quit [Client Quit]
<asheshambasta>
Maybe I'm being stupid, but how does one configure logging parameters for postgres on nixos? I'd like to be able to turn on query logging.
civodul has joined #nixos
<marek>
anyone had a lack to get remote cups server working with avahi under nixos?
<martijnb>
So yeah, when I pass in "--with-sandbox-shell='${..}'" I get:
<martijnb>
> ./configure: line 8546: ${pkgs.runtimeShell}: bad substitution
<{^_^}>
error: syntax error, unexpected ':', expecting ')', at (string):255:12
<kreetx>
dear channel, I'm trying to use nixops to deploy a haskell binary dependent on a number of local pacakges. Am on macos and have a nixos build slave inside a dacker and a digital ocean droplet to deploy to. I've figured out how to use the local overlay to have my local packages visible. But something goes wrong in the build process, but the console output gives no meaningful hints, just a "broken pipe" and
<martijnb>
which I guess makes sense
<kreetx>
the haskell package that didn't build..
<andi->
martijnb: did you pass that within a nix file or on the cli?
<kreetx>
is there any way to get more debugging info? The --debug flag doesn't give much either..
<martijnb>
Interesting. Putting the store/var in different dirs does give me another error. I'll try the bootstrap file.
<martijnb>
Hmm, I think that just generates configure/make files
<tilpner>
Yeah, the contents of bootstrap.sh don't look very interesting
<wildtrees>
I don't think I changed anything, maybe installed another shell via nix-env, and my whole nixos is awfully slow now, loading a binary from a shell takes forever and it used to be fast, and I am not using the new shell , using regular bash
<tilpner>
wildtrees: After a reboot, with nothing else running? (htop, sudo perf top)
waleee-cl has joined #nixos
<wildtrees>
running my xserver, whats sudo perf top?
<tilpner>
Can tell you exactly what is eating your cycles
<dtz>
I just disabled them entirely, didn't realize we sported multiple versions
<dtz>
also makes a lot more sense how the change made it into our tree xD
rtjure has quit [Ping timeout: 245 seconds]
Jackneill has quit [Remote host closed the connection]
<maralorn>
When I run niv in a systemd-unit I get: nixpkgs: nix-prefetch-url: readCreateProcess: runInteractiveProcess: exec: does not exist (No such file or directory).
<maralorn>
Obviously something is missing in my environment. But what? exec is a shell built-in.
rtjure has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
teej has joined #nixos
frislie[m] has joined #nixos
<infinisil>
maralorn: Probably the nix-prefetch-url binary
___laika has joined #nixos
matthuszagh has joined #nixos
<maralorn>
infinisil: Yeah, next I’m missing tar.
<wildtrees>
maralorn, are you missing feathers as well? ;)
<maralorn>
Nope, I’m fine.
<infinisil>
Lol
<matthuszagh>
i frequently encounter collisions when installing packages. What is the recommended way to resolve this? To my understanding, a collision occurs when 2 or more files are valid candidates for the symlink tree and nix needs more info about which to link. is there a way that i can specify this to nix? for example, i'm trying to install gcc and gfortran side-by-side and getting a collision with bin/c++
<infinisil>
matthuszagh: When doing nixos-rebuild or nix-env?
<matthuszagh>
nixos-rebuild
ris has joined #nixos
cantstanya has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
mexisme_ has joined #nixos
abathur has joined #nixos
kreetx has joined #nixos
<cransom>
elvishjerricco: more often than? how frequent?
mexisme_ has quit [Ping timeout: 252 seconds]
<elvishjerricco>
cransom: I basically just want to take a task that may take a few seconds to a minute in real life and test it in a once-per-day systemd timer in a NixOS test. i.e. a test suite that'll actually reflect the way it'll be used
kreetx has quit [Ping timeout: 272 seconds]
<cransom>
ah. there are settings to run more frequently than a minute, but if you want to warp time, that is a different issue.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
srid6390803 has joined #nixos
<elvishjerricco>
Yea ideally it'd just be "when it finishes this time, warp time to the next firing"
cinimod` has joined #nixos
stites has quit [Remote host closed the connection]
<yip>
adisbladis: I think it would help if a "scope" had a definition.
wolke has quit [Remote host closed the connection]
endformationage has joined #nixos
kenshinCH has quit [Ping timeout: 258 seconds]
wolke has joined #nixos
silver has joined #nixos
<yip>
adisbladis: let's take ark = callPackage ./ark {}; as an example. How do I add an extra entry without working nixpkgs? Let's say I have an expression in /etc/nixos/kdeapptopackage/default.nix.
<yip>
forking, not working
<yip>
It seems like it has been designed to be not extensible.
noobynoob has joined #nixos
<adisbladis>
yip: Why do you not want to fork nixpkgs?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yip>
adisbladis: because I can now just point at 19.03.
knupfer has quit [Ping timeout: 264 seconds]
<___laika>
im getting a segfault when i try to run my nix shell :o
<yip>
adisbladis: if I fork, I need to manage patches and checkouts.
<adisbladis>
I don't really get the problem
__monty__ has quit [Ping timeout: 245 seconds]
<yip>
adisbladis: I just want to be able to add an expression to configuration.nix, which results in being able to run an extra KDE app, which is not currently in that list.
<yip>
slabity: not custom, just one that is not currently being built by nixpkgs, but is in the src.nix list.
wolke has joined #nixos
<slabity>
Ah, yea I was doing a similar thing trying to add plasma-mobile apps
<adisbladis>
yip: You could use something like this: let sources = (import <nixpkgs/pkgs/applications/kde/srcs.nix> { inherit fetchurl; mirror = "mirror://kde"; }).umbrello; in kdeApplications.callPackage /path/to/drv { }
<yip>
A line like lib.makeScope libsForQt5.newScope packages is not obvious.
<slabity>
Couldn't figure out how KDE determines which shell to use though, so I stopped
<yip>
I'd expect something like a comment there saying what it is doing there and why.
<yip>
Am I the only one who feels that way?
wolke has quit [Remote host closed the connection]
__monty__ has joined #nixos
kisik21 has joined #nixos
<slabity>
yip: That's pretty common feeling in many community-run projects.
wolke has joined #nixos
<yip>
So, there is newScope and makeScope. Generally, in other programming languages make-foo and new Foo() are the same kind of thing.
<yip>
But here, nixpkgs breaks with that cross-language tradition.
<yip>
Why?!
kreetx has quit [Ping timeout: 272 seconds]
<kisik21>
any recent (even if unofficial) builds for armv7? I know it's not officially supported but I've seen some old builds lying around. A lot of packages seemed to error out when I tried to compile latest unstable, I wonder if anyone here is even running NixOS on ARMv7 machines such as old RPi2
<yip>
slabity: postgresql has 2500 pages of documentation.
<slabity>
makeScope is an alias for (newScope: f)
<kisik21>
if there's a more relevant channel for these discussions please feel free to send me there :3
wolke has quit [Remote host closed the connection]
<simpson>
yip: "new" and "make" don't have the meanings that you might be used to them having from Go or Java or similar. I agree that the names aren't very good.
<slabity>
Besides, makeScope is deprecated. Use overrideScope
<slabity>
Nevermind, I was looking at a different thing
<yip>
Deprecating something as a project while it's still in use in the master branch seems weird.
<yip>
I'd expect to first replace all the usages and then deprecate it.
<slabity>
yip: I was incorrect. There's two `overrideScope` functions, and one of them is deprecated because it doesn't fit the same arg conventions
pepegar has quit [Remote host closed the connection]
<___laika>
oo, its not the recursive attrSet
<___laika>
its something with pastel's build
lovesegfault has quit [Quit: WeeChat 2.5]
wolke has joined #nixos
SyrupThinker has joined #nixos
noobynoob has quit [Remote host closed the connection]
<yip>
When I try to figure out what libsForQt5 is I see all-packages.nix, but I can't use nix repl to get a completion showing that thing exists.
<{^_^}>
[nixpkgs] @mattmelling opened pull request #65437 → screamingfrogseospider: init at 11.0 → https://git.io/fjy8b
<slabity>
yip: What do you mean you see 'all-packages.nix'? `nix repl '<nixos>'` and then typing `libsForQt5` shows a bunch of Qt and KDE derivations
<yip>
slabity: it doesn't do that for me.
<yip>
slabity: did you try that?
<slabity>
I did, I get the correct output
<yip>
Added 6654 variables.
<slabity>
You may need to replace '<nixos>' with '<nixpkgs>' if you need to
<yip>
That's what I see and then I type libsFor<tab>.
<yip>
No completions.
<yip>
slabity:same result
<slabity>
yip: For me it adds 10633 variables.
<yip>
slabity:I do run 19.03, so perhaps that matters?
<yip>
I can point it at master, if required.
dansho has joined #nixos
<slabity>
I'm running unstable. But I'd be surprised if there was that many newer variables between 19.03 and unstable
<___laika>
confusingly, when i cloned the repo and tried to build it with a simple and relatively identical nix setup, no segv
gagbo has joined #nixos
o1lo01ol1o has joined #nixos
<slabity>
yip: Can you send the results of 'nix-channel --list' and 'sudo nix-channel --list'?
<yip>
slabity: I now see about the same as you do.
<yip>
Still, the initial question remains, which is how I can add a package without forking.
ym555 has joined #nixos
ym555 has quit [Client Quit]
<slabity>
yip: Use an overlay
<yip>
slabity: in particular the problem is that custom callPackages are being used in the file referenced earlier, so it seems I would then have to copy paste all that?
kiloreux__ has joined #nixos
<slabity>
I don't think so. You can pretty much just make an overlay with just the changes you want
<yip>
slabity: the symbols I want to use would not be in scope in an overlay.
zeta_0 has joined #nixos
<xvello>
hi! new-ish user with a runtime dependency question: the plasma bluetooth applet (installed by bluedevil) fails on unstable with "module "org.kde.bluezqt" is not installed". If I set libsForQt5.bluez-qt in my systemPackages the error goes away
<zeta_0>
towards the bottom it has some instructions on how to install the `ihaskell` package with nix imperatively through terminal but it does not show instructions on how to install it declaratively, so how would i install ihaskell and all of ihaskell's packages in home.nix? attached it the instructions that i am looking at: https://github.com/gibiansky/IHaskell
<zeta_0>
never mind i think i figured it out: so does the `ihaskell` package come with all the other ihaskell packages as well or do i have to install them all individually? https://nixos.org/nixos/packages.html#ihaskell
<yip>
slabity: there is no call to makeScope or newScope in the definition of kdeApplications.
<slabity>
yip: Specifically, `kdeApplications = lib.makeScope libsForQt5.newScope packages` where `packages` is defined in that file
<slabity>
And the result of a makeScope call results in the following variables being exposed: `newScope` `callPackage` `overrideScope` `overrideScope'` and `packages`
<yip>
slabity:OK, I get it.
<slabity>
yip: Awesome. Hopefully that gives you some leads to work with.
<yip>
slabity:yes, I am not stuck anymore, but still somewhere in the woods ;)
<slabity>
Let me know if you have any more issues. I'll respond... Eventually?
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
Guest70025 has quit [Quit: WeeChat 2.4]
alex`` has quit [Ping timeout: 245 seconds]
<zeta_0>
ok i think i figured it out, if i use `ihaskell` instead of haskellPackages.ihaskell it is for `ihaskell-with-packages` so i won't have to install them all individually, but if i install it separately from the haskellPackages `scope` will ihaskell be able to connect and work with ghc? https://gist.github.com/zeta-00/86286fc384b0b5a95af03e334c559143
<zeta_0>
apparently ihaskell is very painful to install in other linux distros so i am glad that i am using nixos, i hate dependency hell
<zeta_0>
using just `ghc` is sucks, using `emacs with ghc` is good for large projects, but i hope `ihaskell` will prove to be a good repl for experimenting and learing
<adisbladis>
<adisbladis> yip: You could use something like this: let sources = (import <nixpkgs/pkgs/applications/kde/srcs.nix> { inherit fetchurl; mirror = "mirror://kde"; }).umbrello; in kdeApplications.callPackage /path/to/drv { }
leons has quit [Disconnected by services]
<yip>
adisbladis: I was completely not ready for that. Thanks for the reminder.
leons has joined #nixos
leons is now known as Guest32706
civodul has quit [Read error: Connection reset by peer]
civodul has joined #nixos
zeta_0 has quit [Remote host closed the connection]
wpeif has quit [Remote host closed the connection]
srid6390803 has joined #nixos
kiloreux has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @xvello opened pull request #65440 → bluedevil: make bluez-qt a propagatedBuildInputs → https://git.io/fjy42
Guest32706 is now known as leons
erasmas has quit [Quit: leaving]
judson has quit [Ping timeout: 246 seconds]
<scott>
is anyone else using KDE on nixos-unstable? after a recent update, i have incredible levels of lag/stuttering if kwin's OpenGL compositing is enabled. i have to use the XRender backend or disable compositing to have a basically usable system. i have an nvidia GPU with the proprietary drivers, but have never had any issue like this before
<scott>
most problematically i have entirely no idea how to approach debugging this
<aanderse>
scott: i've had issues like that with kde + nvidia for years, depending on my gpu
<aanderse>
which nvidia driver are you using?
<scott>
i've been using this setup for years without problems
<scott>
driver version is 430.34
<aanderse>
ah ok so current generation driver
<aanderse>
yeah i can't say i've had as many problems with that
<scott>
i should investigate whether other OpenGL applications are affected
<aanderse>
this problem started when you moved to unstable? or when you moved to nixos in general?
dftxbs3e has joined #nixos
<scott>
i've been using nixos-unstable with this setup for a long time, it's just after a recent `nixos-rebuild boot --upgrade` that this problem appeared
<aanderse>
oh :\
<scott>
a GPU-intensive Steam game i just tried works fine, so it's KWin-specific
jcrd has left #nixos [#nixos]
<scott>
i was thinking about switching to wayland to try to dodge this issue, but it appears nixos doesn't quite have support for KDE on wayland merged yet
<scott>
i don't have time for it now, but i might consider trying to manually override kwin to an older version while keeping everything else updated
<scott>
unfortunately i can't even conveniently rollback my whole system because firefox ratcheted my profile to a new version and the old firefox refuses to use the profile
<aanderse>
yeah thats the kicker with nixos... that damned mutable data eh :\
<kisik21>
aanderse: maybe keep profiles in a CoW filesystem and make a snapshot every single time a new version gets launched? That way you could rollback to an older profile (but you will not be able to access the data in newer snapshots though, not without manual migration)
jb55 has joined #nixos
<kisik21>
If I had more experience with CoW FS solutions I could try to make a wrapper script for it...
kreetx has joined #nixos
<yip>
adisbladis: I built the app, but it crashes when I run it. I consider it likely that this happens, because the version I am running of Plasma is the 19.03 version and the one I just built the application against is some master version and there probably isn't enough error checking in the application. Would you agree with that?
liberiga has quit [Ping timeout: 260 seconds]
<yip>
A good build system should have taken this into account.
<kisik21>
it would kinda work like this - take a hash of a derivation and make a snapshot. Then modify the snapshot. If a version gets changed, take a snapshot of a snapshot (i.e. current state) and modify it. If a version which created a snapshot earlier gets launched, it restores the snapshot it created, basically making a fork
<kisik21>
it could work using git, I think...
<kisik21>
yeah, git would be a good thing for this
<kisik21>
and manual migration will involve a simple git merge then.
<kisik21>
Any downsides I didn't notice? Except sluggishness on the startup
<kisik21>
if you launch a different version
<yip>
kisik21:with modern hardware you don't notice that.
<yip>
kisik21: I am not sure whether the assumption that only files matter is correct.
<yip>
kisik21: this is why VMs exist.
tmaekawa has joined #nixos
<yip>
(and also why NixOS has support for those)
<kisik21>
Oh, a question I wanted to ask for several months
kreetx has quit [Ping timeout: 245 seconds]
<kisik21>
can I install a VM in environment.systemPackages, importing another configuration into it? I.e. install the output of nixos-rebuild build-vm in the environment.systemPackages
<kisik21>
how would I write it?
<kisik21>
That would make a good wiki article because it's useful for something like Qubes-like system
kreetx has joined #nixos
tmaekawa has quit [Client Quit]
<yip>
kisik21: I think the same as a hello-world derivation.
xantoz has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjyBf
thc202 has quit [Ping timeout: 250 seconds]
<kisik21>
I think someone using that snippet won't even need stuff like libvirt to manage virtual machines. Hm, I could actually wrap that into a module...
___laika has quit [Ping timeout: 268 seconds]
detran has quit [Ping timeout: 248 seconds]
___laika has joined #nixos
<aanderse>
kisik21: yeah i use zfs with every 15 minute snapshots... i was mostly making comment to the problem scott is having
<kisik21>
Oh hey! There is pkgs.nixos, how clever! NixOS is packaged in Nixpkgs
___laika has quit [Ping timeout: 248 seconds]
<yip>
aanderse: how many disks do you have and what raid configuration?
<aanderse>
yip: file server runs zfs mirror over 2 disk, rest of my boxes are just single disk zfs. i used to run more exotic setups before zfs became so easy to use (<3 nixos) and i had more time
<aanderse>
snapshots on single disk boxes are mostly for "oops" moments
<DigitalKiwi>
you can configure how much ram zfs is allowed to use
<DigitalKiwi>
there are hard requirements if you want to enable dedup and maybe some other options but other than that it mostly affects how well it'll cache if you don't have enough
<yip>
OK, so now I depend on `kdeApplications`, which does not exist in 19.03. Is there something similar to that in 19.03?
<yip>
The alternative would be to run unstable, but I like having a system on which various tests have run, so I have less issues (that is, a stable system).
<yip>
I suspect that the segmentation fault is caused solely, because of incompatibilities between 19.03 and unstable for this KDE application.
<{^_^}>
[nixpkgs] @ttuegel pushed to revert-57097-qmake-header « Revert "qtbase: Fix paths returned by qmake -query" »: https://git.io/fjyBc