sphalerite changed the topic of #nixos to: NixOS stable: 19.03 \o/ https://discourse.nixos.org/t/nixos-19-03-release/2652 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018
<monokrome> ,locate dig
<{^_^}> Found in packages: bind.dnsutils
<monokrome> weee
<slabity> worldofpeace: I tried to traverse it in the past, but after that I'm pretty sure only the actual developers know how it's organized
m0rphism has quit [Ping timeout: 272 seconds]
lovesegfault has quit [Quit: WeeChat 2.5]
<alienpirate5> why does polkit of all things rely on spidermonkey, the JS engine, and why does that rely on python?!
trebuh has quit [Ping timeout: 250 seconds]
<slabity> alienpirate5: I think that's due to gnome and networkmanager
<alienpirate5> how do I disable it?
trebuh has joined #nixos
<worldofpeace> alienpirate5: override polkit `withGnome = false`
<alienpirate5> ok thank you
<alienpirate5> still attempts to build spidermonkey
hyper_ch has quit [Read error: Connection reset by peer]
<alienpirate5> `polkit = (super.polkit.override { withGnome = false; });`
<alienpirate5> is this correct?
<worldofpeace> alienpirate5: i depends on spidermonkey directly
<alienpirate5> oh oof
<alienpirate5> oh it's a hard dep
<alienpirate5> because polkit rules are written in javascript apparently?
<alienpirate5> ????? who does this
<slabity> You don't like your system's main authenticator to bring in an entire js engine?
judson has quit [Ping timeout: 272 seconds]
<worldofpeace> slabity: perhaps you can force gtk to not use portals with `GTK_USE_PORTAL=0`
<slabity> Next thing you know you'll be trying to keep JS out of the kernel ;P
<slabity> worldofpeace: I can now add email attachments in firefox. Thanks!
<slabity> worldofpeace++
<{^_^}> worldofpeace's karma got increased to 26
<alienpirate5> slabity: https://retrage.github.io/lkl-js/
<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)
<slabity> Failed to create virtualenv? That doesn't sound like a cross-compiling error. Can you build it fine normally?
Chiliparrot has quit [Ping timeout: 264 seconds]
day|flip has joined #nixos
<alienpirate5> what
<alienpirate5> sorry for pasting, IRC people
<alienpirate5> Oh it does that? That's amazing
<ashkitten> yes
<ashkitten> though it doesn't ping slabity, because that's part of the "long message"
palo1 has joined #nixos
<slabity> It's okay, I'm on matrix so it did ping me
<slabity> I'm just not sure how exactly to help. A virtualenv failing to be created sounds... Strange...
<slabity> The only thing I know that causes it is when it's unable to write to disk
palo has quit [Ping timeout: 258 seconds]
palo1 is now known as palo
<slabity> I don't suppose it's possible your /tmp directory is full alienpirate5?
thc202 has quit [Ping timeout: 245 seconds]
Rusty1 has joined #nixos
xantoz has quit [Read error: Connection reset by peer]
xantoz has joined #nixos
psy3497 has joined #nixos
<ashkitten> is anyone else on linux-latest getting "bad page state" kernel messages?
<day|flip> does this pop up on dmesg?
palo has quit [Ping timeout: 246 seconds]
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
mac10688 has joined #nixos
iqubic has joined #nixos
mog has quit [Remote host closed the connection]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/fd2b2b5cd56 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
mkoenig has quit [Remote host closed the connection]
<iqubic> Anyone know of a good program to remap a video game controller's inputs to keyboard key presses?
laalf has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
laalf has joined #nixos
<{^_^}> [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
<clever> 15578 linuxPackages_5_1 = recurseIntoAttrs (linuxPackagesFor pkgs.linux_5_1);
<clever> wykurz: like this
<{^_^}> [nixpkgs] @dtzWill opened pull request #65402 → sqlite{,-analyzer}: 3.28.0 -> 3.29.0 → https://git.io/fjyLi
<wykurz> clever: thanks a lot! let me look into this.
<{^_^}> [nixpkgs] @dtzWill opened pull request #65403 → dhcpcd: 7.2.3 -> 8.0.1 → https://git.io/fjyLX
<{^_^}> [nixpkgs] @dtzWill opened pull request #65404 → ethtool: 5.1 -> 5.2 → https://git.io/fjyL1
<{^_^}> [nixpkgs] @dtzWill opened pull request #65405 → fwts: 19.06.00 -> 19.07.00 → https://git.io/fjyLM
<wykurz> clever: would nixpkgs map the kernel package (e.g. linux_4_14) to the host OS when it's bootstrapping? I'm assuming a non-nixos setup
<clever> wykurz: not really, you have to grab the perf from the right linuxPackages_4_14.perf
<iqubic> I have no clue why qjoypad isn't working.
<iqubic> I'd really love it to run.
<iqubic> It
<clever> iqubic: what are you expecting to happen when you run it?
<iqubic> It's supposed to open up a graphical user interface.
<clever> iqubic: did you look in the tray near the clock?
<iqubic> I don't have a system tray
<iqubic> Using EXWM here.
<clever> iqubic: thats your problem
<clever> iqubic: you need to click the icon in the tray
<iqubic> Is it?
<iqubic> But if I don't have a tray, then what do I do?
<clever> iqubic: or run it with --help
<wykurz> clever: ah, makes sense. on my nixos I grab it from "linuxPackages", but that appears to be hardcoded to the latest supported kernel I guess?
<clever> wykurz: the recomended kernel, not latest
<clever> wykurz: the proper way (on nixos) is to use config.kernelPackages.perf
<clever> wykurz: which will obey the same flag that changes the active kernel
<{^_^}> [nixpkgs] @dtzWill opened pull request #65406 → gnutls: 3.6.8 -> 3.6.9 → https://git.io/fjyLy
<iqubic> Well, the --notray flag does what I want.
<{^_^}> [nixpkgs] @alunduil opened pull request #65407 → Add zfs replication → https://git.io/fjyLS
<wykurz> clever: good to know, thanks
<iqubic> clever: thanks for helpping me
<{^_^}> [nixpkgs] @dtzWill opened pull request #65408 → termdown: 1.15.0 -> 1.16.0 → https://git.io/fjyL9
Rusty1 has quit [Quit: Konversation terminated!]
<clever> iqubic: yep
wykurz has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @dtzWill opened pull request #65409 → zstd: 1.4.1 -> 1.4.2 → https://git.io/fjyL5
<iqubic> clever: I'm not sure why I didn't just try the --help flag at the start.
<{^_^}> [nixpkgs] @jaykru opened pull request #65410 → Add RISC-V embedded crossSystems → https://git.io/fjyLF
hamishmack has joined #nixos
<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…]
mexisme has quit [Ping timeout: 248 seconds]
MmeQuignon has joined #nixos
sellout- has joined #nixos
tv has quit [Ping timeout: 246 seconds]
lassulus has quit [Ping timeout: 268 seconds]
MmeQuignon has quit [Ping timeout: 248 seconds]
mexisme has joined #nixos
vmandela has left #nixos ["Leaving"]
tonic1 has joined #nixos
qqlq has joined #nixos
endformationage has quit [Quit: WeeChat 2.5]
tv has joined #nixos
lassulus has joined #nixos
m0rphism has joined #nixos
<{^_^}> [nixos-hardware] @Mic92 merged pull request #111 → toshiba/swanky: switch to default kernels → https://git.io/fjKKz
<{^_^}> [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
<{^_^}> [systemd] @Mic92 pushed 2 commits to nixos-v242: https://git.io/fjytF
adamantium has quit [Remote host closed the connection]
MmeQuignon has quit [Ping timeout: 244 seconds]
orivej has quit [Ping timeout: 272 seconds]
hkjn0 has joined #nixos
hkjn0 has quit [Client Quit]
<{^_^}> [nixpkgs] @Mic92 merged pull request #65359 → linuxkit: 2017-07-08 -> 0.7 → https://git.io/fjDMk
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fjyqU
<{^_^}> [nixpkgs] @Mic92 merged pull request #65408 → termdown: 1.15.0 -> 1.16.0 → https://git.io/fjyL9
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fjyqk
sellout- has quit [Ping timeout: 272 seconds]
rsoeldner has joined #nixos
<marek> trying to setup a remote cups server and it's not picking up my services.printing.extraConf as it looks like it is defined in the module itself and hardcoded? https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/printing/cupsd.nix#L377
<marek> why? any idea how to override this?
<{^_^}> [nixpkgs] @Mic92 merged pull request #65331 → nixos/zfs: add trim service → https://git.io/fjDad
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fjyqt
mexisme_ has joined #nixos
mexisme has quit [Ping timeout: 244 seconds]
bakakuna has joined #nixos
abbiya has joined #nixos
wfranzini has joined #nixos
<{^_^}> [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
eagle2com has quit [Ping timeout: 246 seconds]
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> We're on opencollective since earlier this month: https://opencollective.com/nixos
<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*
<talyz> "The measures apply to EU persons and EU based companies. They are limited to the territory of Crimea and Sevastopol."
<niso> i assume there are exceptions for e.g. universities?
<rnhmjoj> i guess i'm evading sanctions, then. i don't have geolocking on my homeserver
rsoeldner has quit [Ping timeout: 246 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
zupo_ has joined #nixos
rsoeldner has joined #nixos
Shoubit has joined #nixos
<Miyu-chan> Not so sure you should say that in a private chat. :P
zupo has quit [Ping timeout: 268 seconds]
<talyz> niso: Possibly? There doesn't seem to be that much accessible information on this, which I guess isn't too unexpected :/
<eyJhb> Miyu-chan: public chat** ? :p
<eyJhb> w/ logs
<Miyu-chan> Logged too, by the way.
thc202 has joined #nixos
FRidh has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
<rnhmjoj> btw, where are the current logs? botbot.me is dead, isn't it?
eagle2com has joined #nixos
<marek> rnhmjoj: no, but you need to check for it - if a person with santions uses your serivce and you did not prevent it, it's up to you (sadly)
<marek> niso: yes, we live in a fun world :)
<srhb> #nixos-chat is logged too.
<Miyu-chan> RIP rnhmjoj, you will be missed.
<rnhmjoj> srhb: cool, thank you
<rnhmjoj> Miyu-chan: don't worry i pretty sure im the only one using it
polman has quit [Ping timeout: 244 seconds]
polman has joined #nixos
jmeredith has joined #nixos
eagle2com has quit [Ping timeout: 245 seconds]
rsoeldner has quit [Ping timeout: 245 seconds]
sindrip has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
rsoeldner has joined #nixos
FRidh has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
Hail_Spacecake has quit [Remote host closed the connection]
hio has joined #nixos
o1lo01ol1o has joined #nixos
Hail_Spacecake has joined #nixos
johanot has joined #nixos
anon has joined #nixos
anon is now known as Guest37747
rsoeldner has quit [Ping timeout: 246 seconds]
cfricke has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 4 commits to master: https://git.io/fjymQ
rsoeldner has joined #nixos
justanotheruser has quit [Ping timeout: 244 seconds]
LysergicDreams has quit [Ping timeout: 248 seconds]
Smith[m] has left #nixos ["User left"]
eagle2com has joined #nixos
LysergicDreams has joined #nixos
<{^_^}> [nixpkgs] @vcunat merged pull request #65393 → Revert "unzip: CVE-2019-13232" → https://git.io/fjyJQ
Smith[m] has joined #nixos
<adisbladis> \o/
<jasongrossman> adisbladis: ?
<adisbladis> jasongrossman: The unzip revert was merged
<jasongrossman> Oh, good.
o1lo01ol1o has quit [Remote host closed the connection]
psy3497 has quit [Ping timeout: 245 seconds]
<Miyu-chan> What's that CVE?
<Miyu-chan> And what did the patch break(?)?
rprije has quit [Remote host closed the connection]
<adisbladis> Miyu-chan: It's a zip bomb vuln
rprije has joined #nixos
das_j has joined #nixos
<adisbladis> Miyu-chan: https://git.io/fjyJQ has some references
<Miyu-chan> Okay. I feel kinda stupid. That revert message makes it sound like it reverted the fix?
<Miyu-chan> s/revert message/commit message/
cinimod has joined #nixos
<cinimod> nix-shell --pure -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-19.03.tar.gz -p "haskellPackages.ghcWithPackages (pkgs: [pkgs.haskell.lib.dontCheck (pkgs.inline-r)])"
<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
<{^_^}> [nixpkgs] @vdemeester opened pull request #65412 → minikube: 1.0.1 -> 1.2.0 → https://git.io/fjyOz
ThatDocsLady has quit [Quit: Leaving]
ThatDocsLady has joined #nixos
cfricke has joined #nixos
cfricke has quit [Client Quit]
puck has quit [Ping timeout: 244 seconds]
puckipedia has joined #nixos
o1lo01ol1o has joined #nixos
puckipedia is now known as puck
<yorick> I bet those lua people just use zip bombs as a standard thing
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chaoflow has joined #nixos
<adisbladis> yorick: It looks like it
<adisbladis> ivan: Presumable it's vulnerable to the zip bombs too?
chaoflow has quit [Client Quit]
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
Neo-- has joined #nixos
<ivan> adisbladis: apparently Chromium is vulnerable because it won't finish the download, I assume it's trying to do a scan
<ivan> I'll test 7z
<ivan> yeah, it appears to be vulnerable, but how are you supposed to protect against zip bombs anyway?
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #65410 → Add RISC-V embedded crossSystems → https://git.io/fjyLF
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/fjyO9
knupfer has quit [Remote host closed the connection]
<kiloreux_> How can I run tests in go tests goPackages ?
<{^_^}> [nixpkgs] @Mic92 merged pull request #65284 → gopass: v1.8.5 -> v1.8.6; support wayland → https://git.io/fjDvk
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fjyOd
veske2 has joined #nixos
<cinimod> But nix-shell tells me
<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
<cinimod> GHCi, version 8.6.4: http://www.haskell.org/ghc/ :? for help
<cinimod>
<cinimod> <no location info>: error:
<cinimod> Could not find module ‘Language.R’
<cinimod> It is not a module in the current program, or in any known package.
<puffnfresh> you must have a .ghci file
<puffnfresh> oh no sorry I misunderstood
<cinimod> I want to use the inline-r package but I don't want to run the tests
<cinimod> they fail on macos
<{^_^}> [nixpkgs] @mguentner opened pull request #65413 → matrix-synapse: 1.1.0 -> 1.2.0 → https://git.io/fjyOh
knupfer has joined #nixos
<marek> adisbladis: when I'm doing nix-env -u, where is the logic for what package is up for an update (like version cmp etc)
ng0 has joined #nixos
<Miyu-chan> cinimod: nix run '(with import <nixpkgs> {}; haskellPackages.ghcWithPackages (hpkgs: [pkgs.haskell.lib.dontCheck (hpkgs.inline-r)]))'
<Miyu-chan> Have you tride this?
<Miyu-chan> tried*
<colemickens> https://github.com/NixOS/nixpkgs/pull/65395 and https://github.com/NixOS/nixpkgs/pull/65396 should be good to merge into 'staging'. :)
<{^_^}> #65395 (by colemickens, 13 hours ago, open): libva: v2.4.1 -> v2.5.0
<{^_^}> #65396 (by colemickens, 13 hours ago, open): mesa: v19.1.1 -> v19.1.3
<colemickens> cc: @worldofpeace
<cinimod> Miyu-chan: thanks
<Miyu-chan> Did that work?
<cinimod> I have something else which works but I can try that in a few moments
iyzsong has joined #nixos
jb55 has quit [Ping timeout: 260 seconds]
<Miyu-chan> Apparently, dontCheck doesn't work on my machine, which points to checks not working from the start.
hamishmack has quit [Ping timeout: 258 seconds]
<Miyu-chan> Err, which points to checks being disabled from the start.
tonic1 has quit [Quit: WeeChat 1.9.1]
<Miyu-chan> Or not. Huh.
<Miyu-chan> Interesting.
<Miyu-chan> Ah. Interesting, it's working normally, but not under ghcWithPackages. Eep.
<Miyu-chan> cinimod: Okay. Funny.
<Miyu-chan> nix run '(with import <nixpkgs> {}; haskellPackages.ghcWithPackages (hpkgs: [(pkgs.haskell.lib.dontCheck hpkgs.inline-r)]))'
<Miyu-chan> Wrong application order lmao
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
<noonien> as far as i know
<Izorkin> Please check and merge #65371
<{^_^}> https://github.com/NixOS/nixpkgs/pull/65371 (by Izorkin, 22 hours ago, open): dovecot: 2.3.7 > 2.3.7.1
<vmandela> is there a way to configure home-manager to install packages only from binary caches? like nix-env -u -b
abbiya has quit [Quit: abbiya]
inquisitiv3 has quit [Ping timeout: 248 seconds]
cinimod has quit [Ping timeout: 272 seconds]
knupfer has quit [Remote host closed the connection]
<aanderse> i'm no zfs expert but when i run this command:
<aanderse> cp "/home/.zfs/snapshot/zfs-auto-snap_hourly-2019-07-25-22h00/andersea/nixpkgs" ~/nixpkgs
<aanderse> why do i get this result:
<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]
kori has quit [Ping timeout: 264 seconds]
<tilpner> noonien: Any guarantees you had will be broken, but there is https://discourse.nixos.org/t/running-binaries-without-fhs-and-patchelf/1828
<{^_^}> [nixpkgs] @flokli opened pull request #65414 → nixos/systemd-boot: don't remove directories from EFI dir → https://git.io/fjysI
<infinisil> Miyu-chan: It's present at <your zfs mount point>/.zfs, and it allows easy access to snapshots
<infinisil> Very useful, can just browse through all snapshots, cp what you need to restor
bakakuna has quit [Ping timeout: 248 seconds]
knupfer has quit [Ping timeout: 258 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/7a856366441 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
jasongrossman has joined #nixos
ubert has joined #nixos
<infinisil> I was just about to complain about my firefox freezing when I try to save a file
<infinisil> But then I remembered seeing a complaint like this a couple times here already
* infinisil searches for an issue for something like that
<infinisil> Wait, my browser is frozen.. So I can't even do that lol
o1lo01ol1o has joined #nixos
___laika has quit [Ping timeout: 245 seconds]
<aanderse> infinisil: edef: thanks for comments, made me realize i'm stupid :)
<yorick> packet, why is your provisioning so slow :/
jmeredith has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @Mic92 merged pull request #64260 → terraform-providers: bump versions → https://git.io/fj6mS
<{^_^}> [nixpkgs] @Mic92 pushed 4 commits to master: https://git.io/fjysc
<{^_^}> [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
<{^_^}> [nixpkgs] @FRidh pushed 52 commits to staging: https://git.io/fjys4
akaWolf1 is now known as akaWolf
mmlb has joined #nixos
avn has quit [Ping timeout: 245 seconds]
___laika has joined #nixos
inquisitiv3 has joined #nixos
Shoubit has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @NeQuissimus pushed 3 commits to master: https://git.io/fjyGq
<{^_^}> [nixpkgs] @NeQuissimus pushed 2 commits to release-19.03: https://git.io/fjyGm
Shoubit has joined #nixos
<aria> can someone help me install a package from my local copy of nixpkgs? it says selector x matches no derivations https://www.irccloud.com/pastebin/XteJTwQv/
<tilpner> ,-A
<{^_^}> You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
virus_dave has joined #nixos
<tilpner> Did you add emacsHead to your clone?
<aria> yes, i'm on the branch and it's in all-packages
<aria> tilpner: ty, -A did it
<tilpner> Do you intend on sending a PR for that?
<aria> #65300
<{^_^}> https://github.com/NixOS/nixpkgs/pull/65300 (by ar1a, 3 days ago, open): RFC: Emacs 27 derivation
Soo_Slow has joined #nixos
<aria> tilpner: reckon it would be pertinent to edit this https://nixos.wiki/wiki/Nixpkgs/Create_and_debug_packages#How_to_install_from_the_local_repository to use -iA?
<tilpner> Yes, good idea
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « slack-dark: 2019-06-04 -> 2019-07-25 »: https://git.io/fjyGu
FRidh has quit [Quit: Konversation terminated!]
srid6390803 has quit [Ping timeout: 246 seconds]
<{^_^}> [.github] @zimbatm pushed to master « SECURITY: improve text »: https://git.io/fjyG6
<{^_^}> [nixpkgs] @zimbatm pushed to master « .github/ISSUE_TEMPLATE/security.md: remove »: https://git.io/fjyGi
ddellacosta has joined #nixos
<{^_^}> [.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?
<{^_^}> [nixpkgs] @sveitser opened pull request #65417 → google-cloud-sdk: 241.0.0 -> 255.0.0 → https://git.io/fjyGH
xkapastel has joined #nixos
<Henson> alternatively, is there a way to make xkeyboard_config's "share" directory appear in /usr?
___laika has quit [Ping timeout: 258 seconds]
inquisitiv3 has quit [Ping timeout: 264 seconds]
inquisitiv3 has joined #nixos
ddellacosta has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @mmahut opened pull request #65418 → module zabbixProxy: server is a mandatory parameter → https://git.io/fjyZv
ddellacosta has joined #nixos
<infinisil> Henson: services.xserver.exportConfiguration
eagle2com has joined #nixos
<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
<simpson> Henson: Aha, the actual question. You may require FHSUserEnv in order to coerce the program into working: https://nixos.org/nixpkgs/manual/#sec-fhs-environments
<aria> simpson: oh wow that's pretty amazing
acarrico has joined #nixos
logzet has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
___laika has quit [Ping timeout: 245 seconds]
aexoxea has quit [Quit: Goodbye!]
<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?
inquisitiv3 has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @ryantm merged pull request #65195 → synthv1: 0.9.8 -> 0.9.9 → https://git.io/fjM0a
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjyZQ
eagle2com has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #65053 → calf: 0.90.2 -> 0.90.3 → https://git.io/fj1xL
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjyZ7
<infinisil> __monty__: Not sure how that would work. hydra needs to do builds to detect them being broken
<__monty__> infinisil: Yeah, just a joke.
srid6390803 has joined #nixos
<jasongrossman> I recalled it was either 1.8 or 180 TB.
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/c7812b2e002 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/2418b958072 (from 78 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
<infinisil> __monty__: Ah hehe
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jomik has joined #nixos
kori has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #62566 → serviio: 1.10.1 -> 2.0 → https://git.io/fjE16
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjyZp
thc202 has quit [Ping timeout: 264 seconds]
<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?
<jomik> Here is the output of `tns doctor`, and also my shell.nix that I use with direnv to setup the environment. https://gist.github.com/Jomik/17efba3a26bd3a1e8475006ba25155ca
<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)
<gchristensen> ah. no, you can't really do that
<infinisil> jomik: You seen https://nixos.org/nixos/manual/options.html#opt-programs.adb.enable ?
<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]
rycwo has quit [Quit: ZNC 1.7.1 - https://znc.in]
rycwo has joined #nixos
iyzsong has quit [Ping timeout: 252 seconds]
rsoeldner has quit [Remote host closed the connection]
Guest96420 has quit [Quit: ZNC 1.7.3 - https://znc.in]
nixy has joined #nixos
vmandela has left #nixos ["Leaving"]
<infinisil> jomik: Well then try that option
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?
<cinimod`> nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-19.03.tar.gz release-8.6.nix --arg packages "haskellPackages: [ haskellPackages.inline-r ]" --arg packages "rPackages: [ rPackages.ggplot2 ]"
<cinimod`> error: attribute 'ggplot2' missing, at (string):1:14
Thra11 has quit [Ping timeout: 258 seconds]
justanotheruser has quit [Ping timeout: 248 seconds]
Tucky has quit [Quit: WeeChat 2.5]
syntaxtree[m] has joined #nixos
linarcx has joined #nixos
linarcx has quit [Client Quit]
<cinimod`> Why can't I use the same approach for R as I do for Haskell?
martijnb has joined #nixos
erasmas has joined #nixos
enuiarte has quit [Ping timeout: 264 seconds]
<martijnb> i'm trying to get a nix installation with a custom store directory to work. I've installed nix using the following set of commands:
<martijnb> That seems to work (that is, no errors in sight)
<martijnb> When I try to build something (specifically https://github.com/clash-lang/clash-compiler), I get:
<martijnb> Any ideas?
justanotheruser has joined #nixos
<andi-> there is no /bin/sh in the build sandbox
<martijnb> Ah, so './configure [..] --with-sandbox-shell=/bin/sh' is wrong?
mmlb has quit [Ping timeout: 268 seconds]
___laika has joined #nixos
<andi-> probably. it should refer to pkgs.runtimeShell
<andi-> > pkgs.runtimeShell
<{^_^}> "/nix/store/xfghy8ixrhz3kyy6p724iv3cxji088dx-bash-4.4-p23/bin/bash"
linarcx has joined #nixos
benny has quit [Quit: ZNC - https://znc.in]
linarcx has quit [Client Quit]
<martijnb> Hmm, I'm not sure what I should pass to --with-sandbox-shell then
<martijnb> {^_^}: my store is practically empty, so I can't really pass in a path like that (I think?)
<tilpner> martijnb: {^_^} is a bot, and andi- meant that you should pass ${pkgs.runtimeShell} to --with-sandbox-shell
<{^_^}> [nixpkgs] @petabyteboy opened pull request #65421 → nim: 0.20.0 -> 0.20.2 → https://git.io/fjyct
<tilpner> Oh, you're installing Nix
kreetx has joined #nixos
<martijnb> yes :)
MmeQuignon has joined #nixos
linarcx has joined #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..
jomik has quit [Quit: WeeChat 2.4]
<hodapp> ,find sipconfig
<{^_^}> ,find is temporarily unimplemented
<hodapp> :|
<martijnb> andi-: the CLI
<tilpner> martijnb: The manual doesn't mention with-sandbox-shell (https://nixos.org/nix/manual/#sec-building-source). Did you get an error mentioning it?
<martijnb> tilpner: yes, let me recompile without and get the error
<Taneb> hodapp: python3Packages.sip ?
<tilpner> Oh. Do you know what trouble you're buying into with "--with-store-dir=/usr/nix"?
<martijnb> Not really..
<{^_^}> [hydra] @edolstra merged pull request #665 → Added the InfluxDBNotification plugin including a NixOS test → https://git.io/fjyOn
<{^_^}> [hydra] @edolstra pushed 2 commits to master: https://git.io/fjycZ
<martijnb> I know I need to rebuild a lot, but that's fine.
<tilpner> If you're just passing that because /nix looks ugly, please reconsider
<tilpner> Not just a lot, you will need to rebuild everything.
<martijnb> Yes :).
<martijnb> I'm trying to workaround a completely unrelated issue
<martijnb> for which I need /nix/ on /usr/nix
<martijnb> If it means recompiling everything: that's fine
<martijnb> If it's completely impossible in the first place, then it's probably worth perusing other options
<tilpner> And while people _try_ to support different store locations, there are places that assume the store path is 10 characters long
<tilpner> It's not supposed to be impossible, it's just not done often
<Taneb> hodapp: you can use nix-index/nix-locate as a local version of ,find, unless ,find doesn't do what I think it does
<tilpner> If you find issues with it, I expect there will be a notion of "yes, we want that fixed" (though not necesarily with any priority)
<martijnb> Got it! I won't complain! It would be wonderful to get it working though, that woudl save me a lot of pain elsewhere
* hodapp stabs Boost in the face
xkapastel has quit [Quit: Connection closed for inactivity]
<martijnb> tilpner: so when I _dont_ pass in --with-sandbox-shell I get an error almost immediately:
wfranzini has quit [Remote host closed the connection]
<tilpner> martijnb: I feel like an overlapping store and state dir will only cause problems
<martijnb> Oh woops, I'll change that then
<tilpner> Either move the state dir away, or give the store its own directory
linarcx has quit [Quit: WeeChat 2.5]
<tilpner> In standard installations, it's /nix/store and /nix/var
<martijnb> Very well, I'll put them in /usr/nix/{store,var} then
wildtrees has joined #nixos
<tilpner> Your error mentions bootstrapping, and the nix source has a bootstrap.sh
<tilpner> Might be worth executing that and seeing what happens
<tilpner> But I'm entirely guessing at this point
<{^_^}> [nixpkgs] @jojosch opened pull request #65422 → teamspeak_server: 3.8.0 -> 3.9.1 → https://git.io/fjyca
<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
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/2418b958072 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<tilpner> But we don't know that something is eating cycles. User-facing slowness might also be swapping, bad disk, etc.
johanot has quit [Quit: WeeChat 2.4]
<wildtrees> I think it mentioned something a bit about disk during system boot :(
<wildtrees> think I had the same warning message before though and it wasnt slow
___laika has quit [Ping timeout: 244 seconds]
mexisme_ has joined #nixos
<tilpner> Then you want to check exactly what it said: "journalctl -b" and then "/disk"
<tilpner> ,paste
<{^_^}> Use a website such as [ https://gist.github.com/ http://ix.io/ https://hastebin.com/ http://sprunge.us/ https://paste.ee/ ] or similar services to share anything that's longer than a couple lines.
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/aa81b2c1e59 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
<wildtrees> hmm its went away :)
mexisme_ has quit [Ping timeout: 264 seconds]
<wildtrees> oh its not my disk, its unreliable DMA position it seems with my network card, which is provided via virtualbox
<martijnb> tilpner: I'm letting it reset for a bit. Maybe I'll give it another try during the weekend. Thanks for the help!
<martijnb> *rest
eagle2com has joined #nixos
<rnhmjoj> could someone review pr #58204? it's a trivial change that's been waiting for a long time
<{^_^}> https://github.com/NixOS/nixpkgs/pull/58204 (by rnhmjoj, 17 weeks ago, open): nixos/dnschain: disable DNSSEC for namecoin TLDs
<{^_^}> [nixpkgs] @srghma opened pull request #65423 → hubstaff: 1.4.6 -> 1.4.9 → https://git.io/fjycS
___laika has joined #nixos
<{^_^}> [nixpkgs] @vbgl opened pull request #65424 → coqPackages.coquelicot: 3.0.2 -> 3.0.3 → https://git.io/fjycN
martijnb has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @wd15 opened pull request #65425 → pythonPackages.fastapi: init at 0.33.0 → https://git.io/fjyCL
o1lo01ol1o has quit [Ping timeout: 248 seconds]
ubert has quit [Quit: Leaving]
o1lo01ol1o has joined #nixos
webster23 has joined #nixos
phreedom has quit [Ping timeout: 260 seconds]
stites has joined #nixos
eagle2com has quit [Ping timeout: 258 seconds]
<maralorn> I can‘t find documentation on how the Clientside of enabling sshServe looks. Any pointer?
<{^_^}> [nixpkgs] @NeQuissimus pushed 2 commits to master: https://git.io/fjyCn
___laika has quit [Ping timeout: 245 seconds]
rycwo has quit [Quit: ZNC 1.7.1 - https://znc.in]
rycwo has joined #nixos
knupfer has joined #nixos
___laika has joined #nixos
srid6390803 has quit [Ping timeout: 258 seconds]
<maralorn> Does it work to write "ssh://nix-ssh@myhost" into nix.binaryCaches?
kreetx has quit [Ping timeout: 245 seconds]
asheshambasta has quit [Ping timeout: 264 seconds]
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/aa81b2c1e59 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
__monty__ has quit [Ping timeout: 258 seconds]
veske has joined #nixos
judson has joined #nixos
___laika has quit [Ping timeout: 245 seconds]
srid6390803 has joined #nixos
fusion809 has quit [Remote host closed the connection]
___laika has joined #nixos
domogled has quit [Ping timeout: 245 seconds]
kreetx has joined #nixos
__monty__ has joined #nixos
Thra11 has joined #nixos
ThatDocsLady has quit [Ping timeout: 250 seconds]
liberiga has joined #nixos
<aleph-> Stupid question, I can define services like this correct? https://paste.rs/TCH
<aleph-> Okay I can, it's only not working for this service...
<aleph-> And not it is... odd.
<{^_^}> [nixos-foundation] @zimbatm closed pull request #4 → Initial commit of the SFC application. → https://git.io/fbjUd
fusion809 has joined #nixos
fusion809 has quit [Remote host closed the connection]
___laika has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #65426 → purple-libnotify-plus: init at 2018-05-30, as well as dependency → https://git.io/fjyCj
tqbl has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @dtzWill opened pull request #65427 → purple-matrix: pname, fix cflags, restore hardening → https://git.io/fjyWe
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @petabyteboy opened pull request #65428 → openjpeg_1: disable tests → https://git.io/fjyWL
<dtz> ahh, that's what happened re:openjpeg tests
<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]
qqlq has quit [Quit: ZNC 1.7.4 - https://znc.in]
cantstanya has joined #nixos
<{^_^}> [nix] @edolstra pushed 2 commits to flakes: https://git.io/fjyWi
<infinisil> matthuszagh: Then you can use `lib.lowPrio` or `lib.hiPrio` to tilt the balance
qqlq has joined #nixos
<infinisil> To untie the tie?
<infinisil> To disturb the balance?
<infinisil> There must be some english phrase for that!
kreetx has quit [Ping timeout: 258 seconds]
wildtrees has quit [Remote host closed the connection]
<matthuszagh> haha
<matthuszagh> infinisil: that has to be used with callPackage right? so do i need to change all-packages?
<matthuszagh> or just a local let that creates a new package
<infinisil> matthuszagh: environment.systemPackages = [ (lib.lowPrio pkgs.foo) pkgs.bar ]
<infinisil> Like that
<matthuszagh> perfect
<matthuszagh> thanks
<bdesham_afk> quick question: /usr/bin/env exists on NixOS, right?
<matthuszagh> bdesham_afk: yes
<simpson> bdesham_afk: Yep. It's basically all that's in /usr, IIRC.
<bdesham_afk> matthuszagh simpson thank you!
linarcx has joined #nixos
Shoubit has quit [Ping timeout: 244 seconds]
linarcx has quit [Client Quit]
linarcx has joined #nixos
bdesham_afk has quit [Quit: bdesham_afk]
linarcx has quit [Client Quit]
kreetx has joined #nixos
lovesegfault has joined #nixos
<maralorn> Hm, perhaps I am also missing feathers: nixpkgs: readCreateProcess: nix-prefetch-url "--unpack" "https://github.com/NixOS/nixpkgs-channels/archive/96151a48dd6662fb3f84bd16bbfe8a34f59d717a.tar.gz" (exit 1): failed
johnny101m has joined #nixos
<maralorn> the command works outside of the systemd-unit. So it’s probably something in the path missing … But what could it be?
endformationage has quit [Ping timeout: 244 seconds]
<maralorn> Perhaps gzip or something?
linarcx has joined #nixos
linarcx has quit [Client Quit]
linarcx has joined #nixos
kreetx has quit [Ping timeout: 268 seconds]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @bjornfor pushed commit from @dtzWill to master « ethtool: 5.1 -> 5.2 »: https://git.io/fjyWx
<{^_^}> [nixpkgs] @bjornfor merged pull request #65404 → ethtool: 5.1 -> 5.2 → https://git.io/fjyL1
<maralorn> Yep, that was it.
<{^_^}> [nixpkgs] @pasqui23 opened pull request #65429 → zsh-fast-syntax-highlighting:init at 2019-07-20 → https://git.io/fjyWh
domogled has joined #nixos
<{^_^}> [nixpkgs] @pasqui23 opened pull request #65430 → zsh-bd:init at 2018-07-04 → https://git.io/fjylf
<{^_^}> [nixpkgs] @pasqui23 opened pull request #65431 → zsh-powerlevel10k:init at 2019-07-23 → https://git.io/fjylT
evhan has quit [Ping timeout: 245 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
phreedom has joined #nixos
evhan has joined #nixos
ambro718 has joined #nixos
inquisitiv3 has joined #nixos
wildtrees has joined #nixos
sellout- has joined #nixos
<{^_^}> [nixpkgs] @Infinisil merged pull request #47764 → nixos/xserver: add option to install custom xkb layouts → https://git.io/fxLns
<{^_^}> [nixpkgs] @Infinisil pushed 4 commits to master: https://git.io/fjyls
<elvishjerricco> Is there a good way to write a NixOS test that simulates time passing rapidly?
linarcx has quit [Ping timeout: 268 seconds]
<elvishjerricco> specifically, I want to make systemd timers fire more often
<infinisil> elvishjerricco: If you didn't say that, I'd have suggested https://github.com/majek/fluxcapacitor
linarcx has joined #nixos
<elvishjerricco> hmm... Maybe there's a way to wrap systemd itself with that :P
<infinisil> Hehe
<{^_^}> [nixpkgs] @Gonzih opened pull request #65432 → kubernetes-k9s: Init at 0.7.13 → https://git.io/fjylZ
<{^_^}> [nixpkgs] @Gonzih opened pull request #65433 → kubernetes-fluxctl: Init at 1.13.1 → https://git.io/fjyln
<elvishjerricco> Does qemu not have an option for passing time more quickly in the vm?
linarcx has quit [Client Quit]
linarcx has joined #nixos
linarcx has quit [Client Quit]
linarcx has joined #nixos
linarcx has quit [Client Quit]
zupo has joined #nixos
domogled has quit [Ping timeout: 268 seconds]
linarcx has joined #nixos
linarcx has quit [Client Quit]
kreetx has joined #nixos
linarcx has joined #nixos
<{^_^}> [nixpkgs] @bjornfor merged pull request #65323 → Fix x2goclient startup → https://git.io/fjDE4
<{^_^}> [nixpkgs] @bjornfor pushed 2 commits to master: https://git.io/fjylB
linarcx has quit [Client Quit]
kenshinCH has joined #nixos
inquisitiv3 has quit [Ping timeout: 248 seconds]
kreetx has quit [Ping timeout: 248 seconds]
chloekek has joined #nixos
o1lo01ol1o has joined #nixos
sellout- has quit [Quit: Leaving.]
psyanticy has quit [Quit: Connection closed for inactivity]
cinimod` has quit [Ping timeout: 246 seconds]
ixxie has joined #nixos
<andi-> elvishjerricco: have you tried just using `date` to set a fake date?
<andi-> probably doesn't affect all systemd timers but some?
<elvishjerricco> andi-: Probably worth trying. I have a feeling it won't affect systemd timers though
domogled has joined #nixos
<andi-> I think it would affect calendar based timers
<andi-> it probably wont affect "every 6 minutes" timers
<elvishjerricco> Lucky for me, calendar based timers are the ones I want to test :P
<andi-> elvishjerricco: if that doesn't work set `systemd.package` to a package that comes with libfaketime preloaded?
waleee-cl has quit [Quit: Connection closed for inactivity]
knupfer has quit [Ping timeout: 264 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/6dfd13ab34d (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
domogled has quit [Ping timeout: 272 seconds]
srid6390803 has quit [Ping timeout: 246 seconds]
knupfer has joined #nixos
domogled has joined #nixos
ixxie has quit [Ping timeout: 245 seconds]
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]
shibboleth has joined #nixos
o1lo01ol1o has joined #nixos
cinimod` has quit [Ping timeout: 268 seconds]
o1lo01ol1o has quit [Ping timeout: 245 seconds]
andi- has quit [Quit: WeeChat 2.5]
domogled has quit [Ping timeout: 248 seconds]
cinimod` has joined #nixos
Henson has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
zupo has joined #nixos
zupo has quit [Client Quit]
mexisme_ has joined #nixos
zupo has joined #nixos
<{^_^}> [nixpkgs] @Gonzih opened pull request #65436 → linkerd: Init at stable-2.4.0 → https://git.io/fjy80
andi- has joined #nixos
yip has joined #nixos
Soo_Slow has quit [Remote host closed the connection]
Hail_Spacecake has quit [Remote host closed the connection]
<yip> What does the symbol newScope do?
Hail_Spacecake has joined #nixos
mexisme_ has quit [Ping timeout: 250 seconds]
wolke has quit [Quit: ZNC 1.7.4 - https://znc.in]
wolke has joined #nixos
cinimod` has quit [Ping timeout: 272 seconds]
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
<adisbladis> yip: newScope creates a new callPackage function with some overriden defaults applied
<yip> I see "Make a set of packages with a common scope." in customization.nix, but it doesn't seem to be defined what a "scope" is.
<yip> I do know what the established meaning of a scope is in PLs.
infinisil has joined #nixos
<adisbladis> yip: You know what callPackage does?
<yip> adisbladis: yes
wolke has quit [Remote host closed the connection]
jcrd has quit [Quit: ZNC - https://znc.in]
wolke has joined #nixos
jcrd has joined #nixos
<yip> The package of interest is already in src.nix (it's a part of KDE).
<adisbladis> yip: You can create your own custom callPackage using newScope.
<yip> adisbladis: but why would I want to do such a thing?
mexisme_ has joined #nixos
<yip> Redefining `mkDerivation` seems complicated.
<adisbladis> yip: KDE packages depend on other KDE packages but are not in the global pkgs set
<yip> Same for redefining callPackage in that file.
<yip> I can read Nix code, but I have no idea what the person who wrote that was thinking.
wolke has quit [Remote host closed the connection]
<adisbladis> I wrote a reddit comment the other day that may help you understand things a little bit https://www.reddit.com/r/NixOS/comments/cfyhup/how_to_override_openssl_in_erlang_interpreters/euen3rj/
wolke has joined #nixos
<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?
kreetx has joined #nixos
<{^_^}> [nixpkgs] @primeos merged pull request #63195 → Drop obsolete wayland compositors → https://git.io/fjamc
<{^_^}> [nixpkgs] @primeos pushed 4 commits to master: https://git.io/fjy86
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> adisbladis: that's the problem.
<andi-> submit a patch that makes it extensible?
<yip> andi-: I don't understand what it currently is doing.
<yip> andi-: improving something I don't understand, doesn't work.
<andi-> yeah :/
<andi-> I wrote my first nix expression that way... ;-)
<___laika> i introduced it by (presumably naively) passing pastel directly into refmterr
kreetx has quit [Ping timeout: 248 seconds]
<___laika> in that recursive attrset
<yip> The main issue is that I don't understand the concept of a "scope".
<___laika> is there a correct way to do this?
<yip> Such concepts should be documented.
kreetx has joined #nixos
<slabity> yip: You're trying to add a custom KDE service?
wolke has quit [Quit: ZNC 1.7.4 - https://znc.in]
<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.
qqlq has quit [Quit: ZNC 1.7.4 - https://znc.in]
<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
<xvello> https://github.com/NixOS/nixpkgs/blob/master/pkgs/desktops/plasma-5/bluedevil.nix has blues-qt in buildInputs. My guess is that the dependency is used at runtime (importing a QML module) and fails to be detected. Is there a way to specifiy such kind of runtime deps?
<slabity> You have `super` in an overlay, which should give you everything in Nixpkgs. Is the symbol not there?
<yip> There is a call to callPackage, but that's a callPackage defined in a let binding.
<yip> It's not an attribute.
<yip> So, it's not going to be available anywhere.
kiloreux_ has quit [Ping timeout: 246 seconds]
<___laika> so the issue went away when i stopped passing a tarball value from `fetchFromGitHub` to multiple derivations
<zeta_0> hello guys, i am confused about how to install some software, can you help me out?
xkapastel has joined #nixos
<yip> slabity: see above
<slabity> yip: `kdeApplications.kruler.override*`?
<yip> slabity: I want to *add* something like kruler.
<yip> slabity:not modify an existing one.
<slabity> yip: Oh, I see what you mean
<yip> slabity:as such there is nothing to override.
wildtrees has quit [Quit: Leaving]
<slabity> yip: It should be exposed as `kdeApplications.callPackage`
<yip> slabity: how did you figure that out? I checked that it's there.
<slabity> You can combine that with `kdeApplications.overrideScope`
<slabity> I just used `nix repl` and autocompleted on `kdeApplications.`
<yip> slabity: but why did you select kdeApplications?
<yip> slabity: it seems to come out of nowhere.
kiloreux_ has joined #nixos
<___laika> think i figured it out, it was definitely sharing that src value. putting it in a lambda fixed things
<yip> slabity: the file with the long list of kde applications does not reference that symbol.
wolke has quit [Quit: ZNC 1.7.4 - https://znc.in]
<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
kreetx has joined #nixos
<{^_^}> [nixpkgs] @thoughtpolice pushed to master « liburing: 1.0.0pre150_93f3e8d -> 1.0.0pre156_c31c7ec »: https://git.io/fjy4T
<slabity> yip: Actually I don't remember. I wasn't thinking about where I found that. I think I autocompleted `kde` and saw that in the list?
knupfer has joined #nixos
Thra11 has quit [Quit: WeeChat 2.5]
chloekek has quit [Ping timeout: 272 seconds]
<yip> slabity:and I also don't see where that callPackage symbol is being defined either.
<slabity> Actually, yea... Where the hell is `kdeApplications` even defined?
<yip> slabity:all-packages.nix
kiloreux__ has quit [Ping timeout: 244 seconds]
wolke has joined #nixos
<yip> slabity: but I don't see the custom definition of callPackage being defined.
<slabity> yip: That's part of `makeScope`, it brings in the `callPackage` function
eagle2com has joined #nixos
<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.
wolke has quit [Client Quit]
__monty__ has quit [Quit: leaving]
wolke has joined #nixos
kreetx has quit [Ping timeout: 245 seconds]
<slabity> yip: `kdeApplications` is a `makeScope` call: https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/kde/default.nix#L179
<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
silver_ has joined #nixos
<zeta_0> it shows `ihaskell` on the 2nd page: https://nixos.org/nixos/packages.html#ihaskell
eagle2com has quit [Ping timeout: 245 seconds]
joehh has quit [Ping timeout: 246 seconds]
silver has quit [Ping timeout: 244 seconds]
srid6390803 has quit [Ping timeout: 272 seconds]
silver_ has quit [Client Quit]
<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
kiloreux__ has joined #nixos
kiloreux_ has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @cizra opened pull request #65438 → Tome2 → https://git.io/fjy4G
kiloreux has joined #nixos
<yip> slabity:I also would like to refer to srcs.nix from the one referenced by <nixpkgs>.
kiloreux__ has quit [Ping timeout: 272 seconds]
phreedom has quit [Quit: No Ping reply in 180 seconds.]
Neo-- has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @aanderse opened pull request #65439 → nixos/httpd: remove duplicate module entries from httpd.conf → https://git.io/fjy4C
phreedom has joined #nixos
<jackdk> yip: `import <nixpkgs/pkgs/applications/kde/srcs.nix>`
xavierm02 has left #nixos ["Leaving"]
<adisbladis> I posted that before
<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]
kreetx has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/5f9145d56ca (from 84 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
kreetx has quit [Ping timeout: 268 seconds]
wpeif has joined #nixos
knupfer has quit [Ping timeout: 264 seconds]
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 :\
<{^_^}> [nixpkgs] @markuskowa merged pull request #65423 → hubstaff: 1.4.6 -> 1.4.9 → https://git.io/fjycS
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fjy41
ddellacosta has quit [Ping timeout: 245 seconds]
Xal has quit [Ping timeout: 272 seconds]
Xal has joined #nixos
leons is now known as leons_matrix
<{^_^}> [nixpkgs] @aanderse merged pull request #65418 → module zabbixProxy: server is a mandatory parameter → https://git.io/fjyZv
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/fjy49
leons_matrix is now known as leons
fragamus has joined #nixos
<{^_^}> [nixpkgs] @markuskowa merged pull request #65356 → harmonist: 0.1 -> 0.2 → https://git.io/fjD1o
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fjy4H
dansho has quit [Ping timeout: 258 seconds]
<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]
xantoz has joined #nixos
hmpffff has quit [Quit: nchrrrr…]
<kisik21> oh, it's `(import <nixpkgs/nixos> { configuration = (import ./vm-configuration.nix); }).vm`
<kisik21> really simple and Nix-like
<kisik21> I love Nix for this kind of stuff where everything is a derivation, makes it really simple
kreetx has quit [Ping timeout: 245 seconds]
<yip> kisik21:a wiki article about that would be cool, like you said.
<kisik21> One sec, let me launch firefox :3
<kisik21> I don't think I could edit nixos.wiki from Emacs
<kisik21> at least not for now
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « openjpeg_1: fix build after #64391 »: https://git.io/fjyBv
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #64525 → pythonPackages.rq: init at 1.1.0 → https://git.io/fjibx
<{^_^}> [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
<yip> aanderse: encrypted root?
<aanderse> yip: only on laptop
<yip> aanderse: is that also easy with zfs?
<{^_^}> [nixpkgs] @lightbulbjim opened pull request #65442 → shotwell: fix broken build → https://git.io/fjyBq
<aanderse> yip: yeah it was pretty easy. i can't remember which guide i followed now but it only required minimal thinking to implement
<yip> A module would be useful for that.
<aanderse> well it's something you need to setup before you install the os so part of it is gonna be manual
o1lo01ol1o has quit [Remote host closed the connection]
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 264 seconds]
mbrgm_ is now known as mbrgm
<yip> The only part that should be manual is the input of the password.
___laika has joined #nixos
<{^_^}> [nixpkgs] @xrelkd opened pull request #65443 → youtube-dl: 2019.07.16 -> 2019.07.27 → https://git.io/fjyBY
Rusty1 has joined #nixos
<yip> aanderse: isn't the main issue with zfs that it takes a lot of RAM?
___laika has quit [Ping timeout: 268 seconds]
<DigitalKiwi> https://github.com/a-schaefers/themelios i found this extremely useful
<aanderse> yip: my understanding is that it uses ram you aren't using
<DigitalKiwi> i modified it to encrypt the whole drive
day|flip has joined #nixos
<DigitalKiwi> a few months before he had enabled encryption at all, been working great (since december)
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « opencv3: 3.4.6 -> 3.4.7 »: https://git.io/fjyBZ
<{^_^}> [nixpkgs] @dtzWill opened pull request #65444 → desktop-file-utils: 0.23 -> 0.24 → https://git.io/fjyBn
<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
<{^_^}> [nixpkgs] @xrelkd opened pull request #65445 → rust-bindgen: 0.50.0 -> 0.51.0 → https://git.io/fjyBC
<yip> Perhaps I should just postpone this until 19.09 is released :/
<{^_^}> [nixpkgs] @ttuegel opened pull request #65446 → Revert "qtbase: Fix paths returned by qmake -query" → https://git.io/fjyBW
jasongrossman has quit [Remote host closed the connection]
yip has quit [Quit: WeeChat 2.4]