gchristensen changed the topic of #nixos to: NixOS 18.09 released https://discourse.nixos.org/t/1076 || 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
Rusty1 has joined #nixos
Mr_Keyser_Soze has quit [Ping timeout: 244 seconds]
<jomik> How do I get 32bit packages on my system? :O I don't have pkgs_i686
<jomik> Oh, is it multiStdenv.mkDerivation ?
<jomik> It's interesting how androidenv/default just gets the i686 package though.
<jomik> pkgsi686Linux !
jasongrossman has joined #nixos
<jomik> I need one of them rubber ducks :P
<{^_^}> [nixpkgs] @liclac opened pull request #52653 → cardpeek: init at 0.8.4 → https://git.io/fhfht
oida has joined #nixos
acarrico has joined #nixos
<ottidmes> clever: this ended up working, thanks for the tip: hnix --eval --strict --expr "$(...)"
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
<reivilibre> Hello, when someone makes a change in the master branch of nixpkgs repository, how long is it before I can use the new package?
jluttine has quit [Ping timeout: 244 seconds]
apeyroux has joined #nixos
<apeyroux> hello
<simpson> Hi.
<elvishjerricco> reivilibre: You can use it as soon as the code is written :P `nix build -f https://github.com/USER/nixpkgs/archive/REVISION.tar.gz name.of.pkg`
<elvishjerricco> reivilibre: But more seriously, you just have to wait for the unstable channel to update, which happens once a certain set of tests pass. I think this is normally on the order of a day or two?
<reivilibre> Do the tests for unstable show on Hydra? So far I only see that for 18.09 and older versions. https://hydra.nixos.org/search?query=matrix-synapse
<reivilibre> However, thanks for letting me know 'as soon as it's written'; it's really only just bumping the version of a Python package which has been blessed by upstream as stable and more performant etc etc
cyounkins has quit [Ping timeout: 268 seconds]
<ottidmes> reivilibre: that depends on a lot of matters, the quickest way is to use nixos-unstable, but that still can take some time depending on whether the channel as a whole passes certain tests, so if it is about a package, I would just use an overlay for the time being, and if it is for a module, you could copy it over and use disabledModules to overwrite it with your own copy of the module
<jasongrossman> reivilibre: http://howoldis.herokuapp.com/
jluttine has joined #nixos
jperras has joined #nixos
<samueldr> also, unstable has to eval, yes it's not evaluating right now, and it is known :)
<reivilibre> Cheers; will doing `nix build -f https://github.com/USER/nixpkgs/archive/REVISION.tar.gz name.of.pkg` be fine when that package is used within a NixOS `services.` service?
lokado has joined #nixos
doyougnu has joined #nixos
<doyougnu> hey all quick question. How do I specify kernel parameters such as "acpi_osi=Linux"?
<ottidmes> doyougnu: https://nixos.org/nixos/options.html#boot.kernelparams
<doyougnu> I saw in the nixos manual there is a section on customizing the kernel. Is it appropriate to put these things in linux.blah.blah.extraConfig?
slyfox has quit [Quit: :)]
<doyougnu> ah perfect thank you ottidmes
<{^_^}> [nixpkgs] @tg-x opened pull request #52654 → fix firefox sync-server → https://git.io/fhfjg
Mateon3 has joined #nixos
slyfox has joined #nixos
ilya-fedin has quit [Quit: Connection closed for inactivity]
Mateon1 has quit [Ping timeout: 245 seconds]
Mateon3 is now known as Mateon1
init_6 has joined #nixos
vk3wtf has quit [Ping timeout: 250 seconds]
oida has quit [Quit: byez]
jtojnar has quit [Read error: Connection reset by peer]
slyfox has quit [Quit: no need to cry]
slyfox has joined #nixos
fusion809 has joined #nixos
<elvishjerricco> reivilibre: This is the jobset for unstable: https://hydra.nixos.org/jobset/nixpkgs/trunk
<reivilibre> elvishjerricco: Ah, thanks for letting me know they call it 'trunk'
<gchristensen> nixpkgs-unstable
vk3wtf has joined #nixos
<gchristensen> not nixos-unstable
<gchristensen> (let's ditch nixpkgs vs. nixos channels)
<elvishjerricco> That'd be nice.
Ariakenom has quit [Read error: Connection reset by peer]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/62aea9510c8 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
ryantrinkle has joined #nixos
<ryantrinkle> is there a way to prevent non-trusted users from doing nix-collect-garbage?
ddellacosta has joined #nixos
goibhniu has quit [Ping timeout: 244 seconds]
<gchristensen> they can't delete anything which is gc rooted, what is the issue, ryantrinkle?
Mr_Keyser_Soze has joined #nixos
<ryantrinkle> gchristensen: it's not really a big deal, just seems odd
<{^_^}> [nixpkgs] @prusnak opened pull request #52655 → dotnet-sdk: 2.1.402 -> 2.2.101 → https://git.io/fhJeg
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhJe6
silver has quit [Read error: Connection reset by peer]
hedning has quit [Quit: hedning]
ddellacosta has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @bendlas pushed to master « clojure: add $out/bin to wrapper PATH »: https://git.io/fhJvv
<{^_^}> [nixpkgs] @bendlas pushed to master « emacsPackages: update elpa and org generated »: https://git.io/fhJvY
rfold has quit [Quit: leaving]
<reivilibre> OK I'm sorry, I still don't understand how I can install matrix-synapse 0.34.0 as a NixOS service when it's on master but not yet arrived on nixos-unstable..
doyougnu has quit [Ping timeout: 268 seconds]
<gchristensen> probably best to just wait
<reivilibre> Is it possible to add it as a second source like you might do in Debian or something? I don't want to be a pita but if I can't even upgrade someone else's package then I don't think I have a chance of writing my own here..
<dmj`> gchristensen: is there any way, possible, to cache /nix/store on Travis CI
<dmj`> gchristensen: I have a cache in s3, but fetching from it is hella slows
<gchristensen> don't know :/
<gchristensen> maybe something with nix-store --export and --import?
Lisanna has quit [Ping timeout: 246 seconds]
freeman42x[nix] has quit [Ping timeout: 246 seconds]
Mr_Keyser_Soze has quit [Remote host closed the connection]
erictapen has quit [Ping timeout: 250 seconds]
pie__ has quit [Remote host closed the connection]
thc202 has quit [Ping timeout: 272 seconds]
pie___ has joined #nixos
init_6 has quit []
<jomik> w00t! I think I managed to make a bunch of smaller nix expressions for downloading android sdk stuff, and it seems to work, with accepting license and all that jazz! :D
worldofpeace has joined #nixos
<{^_^}> [nixpkgs] @fpletz merged pull request #52646 → gitea: 1.6.0 -> 1.6.2 → https://git.io/fhfd5
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to master: https://git.io/fhJf1
<jomik> adisbladis: If you are curious what I ended up with... https://github.com/Jomik/dotfiles/tree/973dae0/.config/nixpkgs/mypkgs/android
<jomik> I am not sure if I can PR my changes to the android stuff when I am done though... It is, very different. :D
jluttine has quit [Ping timeout: 250 seconds]
jomik has quit [Quit: WeeChat 2.2]
jluttine has joined #nixos
talyz has quit [Read error: Connection reset by peer]
etu has quit [Read error: Connection reset by peer]
talyz has joined #nixos
etu has joined #nixos
jtojnar has joined #nixos
NightTrain has joined #nixos
init_6 has joined #nixos
<dmj`> gchristensen: would that be better than just telling nix about a cache and letting it fetch
<gchristensen> I don't know, sorry
aleph- has joined #nixos
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to release-18.09: https://git.io/fhJJU
cyounkins has joined #nixos
jperras has quit [Ping timeout: 250 seconds]
lopsided98 has quit [Quit: Disconnected]
lopsided98 has joined #nixos
delroth has quit [Quit: WeeChat 2.3]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
lokado has quit [Quit: Connection closed for inactivity]
delroth has joined #nixos
lopsided98 has quit [Client Quit]
lopsided98 has joined #nixos
init_6 has quit [Ping timeout: 268 seconds]
<ottidmes> worldofpeace: to overlay? if so, yes
<{^_^}> [nixpkgs] @veprbl merged pull request #52623 → qutebrowser: fix pdfjs → https://git.io/fhf3R
<{^_^}> [nixpkgs] @veprbl pushed 2 commits to master: https://git.io/fhJJX
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
ZaraChimera has joined #nixos
cyounkins has quit [Ping timeout: 250 seconds]
bigvalen has quit [Quit: ZNC by prozac - http://znc.sourceforge.net]
<worldofpeace> ottidmes: I was noticing that those packages weren't built on hydra or showing up in nix search. Thought that maybe that could be why
<{^_^}> [nixpkgs] @veprbl pushed commit from @erictapen to release-18.09 « qutebrowser: fix pdfjs »: https://git.io/fhJJh
orivej has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @fpletz pushed to master « gitea: fix version in app »: https://git.io/fhJUU
kisonecat has joined #nixos
kisoneca1 has joined #nixos
<{^_^}> [nixpkgs] @fpletz pushed to release-18.09 « gitea: fix version in app »: https://git.io/fhJUs
jtojnar has quit [Quit: jtojnar]
kisoneca1 has quit [Quit: Lost terminal]
kisonecat has quit [Quit: Lost terminal]
ryantrinkle has quit [Ping timeout: 240 seconds]
<{^_^}> [hydra] @samueldr opened pull request #627 → hydra-eval-jobs: Warn and resets maxHeapSize on bad values → https://git.io/fhJUz
Anton-Latukha has quit [Quit: Leaving.]
Anton-Latukha has joined #nixos
lassulus_ has joined #nixos
cyounkins has joined #nixos
lassulus has quit [Ping timeout: 250 seconds]
lassulus_ is now known as lassulus
worldofpeace has quit [Remote host closed the connection]
fusion809 has quit [Remote host closed the connection]
fusion809 has joined #nixos
aleph- has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #52657 → nlohmann_json: 3.4.0 -> 3.5.0 → https://git.io/fhJT3
ashkitten has quit [Quit: WeeChat 2.2]
klntsky has quit [Ping timeout: 256 seconds]
ashkitten has joined #nixos
ottidmes has quit [Ping timeout: 250 seconds]
shreyansh_k has quit [Ping timeout: 250 seconds]
<fusion809> Any OpenRA users in this fine channel? I ask because there's a PR you's may do me a favour by building and reviewing: #52531
<{^_^}> https://github.com/NixOS/nixpkgs/pull/52531 (by fusion809, 2 days ago, open): openra: 20180923->20181215
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/12e57cbb61a (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
kisonecat has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
kisonecat has quit [Client Quit]
kisonecat has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #52607 → pythonPackages.sh: fix tests on Python 3.7 → https://git.io/fhv9m
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fhJTA
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52658 → zim: 0.68 -> 0.69 → https://git.io/fhJkI
drakonis1 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Mic92 merged pull request #52642 → ivan: 054 -> 055 → https://git.io/fhfD1
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhJkm
<ivan> I've been upgraded
palo1 has joined #nixos
jasongrossman has quit [Ping timeout: 268 seconds]
palo has quit [Ping timeout: 240 seconds]
palo1 is now known as palo
<infinisil> Yeah, I've also just upgraded to Human 2.0, it's been great so far
init_6 has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #52660 → nixos/displayManager: only install wayland sessions if they exist in … → https://git.io/fhJk8
Kim has quit [Ping timeout: 250 seconds]
kisonecat has quit [Ping timeout: 240 seconds]
Kim has joined #nixos
cyounkins has quit [Remote host closed the connection]
endformationage has quit [Quit: WeeChat 2.3]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @Mic92 opened pull request #52661 → treewide: remove paxutils → https://git.io/fhJkh
dave_uy has quit [Quit: The Lounge - https://thelounge.github.io]
dave_uy has joined #nixos
iyzsong has joined #nixos
hamishmack has joined #nixos
jasongrossman has joined #nixos
dermetfan has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52662 → whipper: 0.7.2 -> 0.7.3 → https://git.io/fhJIi
juhe has joined #nixos
grumble has quit [Killed (Sigyn (BANG!))]
grumble has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52663 → timescaledb: 1.0.0 -> 1.1.0 → https://git.io/fhJLG
phreedom_ is now known as phreedom
erratic has quit [Quit: this computer has gone to sleep...]
dermetfan has quit [Ping timeout: 244 seconds]
jD91mZM2 has joined #nixos
tyang has quit [Quit: Connection closed for inactivity]
<Izorkin> Please check PR #44343 #51902 #52032 #52098
<{^_^}> https://github.com/NixOS/nixpkgs/pull/44343 (by Izorkin, 20 weeks ago, open): mariadb: 10.2.17 -> 10.3.10
<{^_^}> https://github.com/NixOS/nixpkgs/pull/51902 (by Izorkin, 1 week ago, open): mariadb.galera: 25.3.24 -> 25.3.25
<{^_^}> https://github.com/NixOS/nixpkgs/pull/52032 (by Izorkin, 1 week ago, open): unit: 1.6 -> 1.7
<{^_^}> https://github.com/NixOS/nixpkgs/pull/52098 (by Izorkin, 1 week ago, open): nginx: change location configuration file to /etc/nginx/nginx.conf
dermetfan has joined #nixos
<monokrome> Anyone know how NixOS + libvirt can work so I can run a gaming instance for Windows on my server?
<monokrome> There's some stuff, but it's all using nixops which makes it hard to figure out
<{^_^}> [nixpkgs] @vcunat pushed commit from @NeQuissimus to release-18.09 « kernel-config: CIFS_POSIX no longer exists »: https://git.io/fhJtT
klntsky has joined #nixos
sbdchd has quit [Remote host closed the connection]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52664 → vault: 1.0.0 -> 1.0.1 → https://git.io/fhJtW
<juhe> monokrome: You can install libvirt and use virsh directly or use virt-manager to do configuration via UI. I use nixops for deploying to nixos based machines.
simukis has joined #nixos
NightTrain has quit [Quit: Lost terminal]
markus1189 has quit [Quit: leaving]
juhe has quit [Remote host closed the connection]
juhe has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52665 → wireguard-tools: 0.0.20181119 -> 0.0.20181218 → https://git.io/fhJtP
<{^_^}> [nixpkgs] @domenkozar pushed to master « jre: use adoptopenjdk-jre-bin on aarch »: https://git.io/fhJt5
jD91mZM2 has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @ivan opened pull request #52666 → pythonPackages.manhole: disable tests → https://git.io/fhJqT
<{^_^}> [nixpkgs] @domenkozar opened pull request #52667 → Kodi 18.09 aarch → https://git.io/fhJqk
jD91mZM2 has joined #nixos
<hyper_ch> how can I set for systemCronJobs = [ .... ] that it should use utf-8?
ottidmes has joined #nixos
markus1189 has joined #nixos
DeaDSouL has quit [Quit: leaving]
erictapen has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #52666 → pythonPackages.manhole: disable tests → https://git.io/fhJqT
<{^_^}> [nixpkgs] @dotlambda pushed commit from @ivan to master « pythonPackages.manhole: disable tests (#52666) »: https://git.io/fhJqa
<angerman> how do I get the raw output instead of the -bin one?
dgarzon has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #52030 → redis: 5.0.1 -> 5.0.3 → https://git.io/fpFod
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fhJq6
Ariakenom has joined #nixos
<dgarzon> Good morning, I am using dockerTools.buildImage to create an image with some pre-cached derivations. I can build the image, but when loading it to Docker, I get the following: “Error processing tar file(duplicates of file paths not supported):”. Has anyone ran into a similar issue?
rawreraw has joined #nixos
<dgarzon> It is worth noting that my contents list is big, at around 100 base derivations!
<{^_^}> [nixpkgs] @timokau merged pull request #52664 → vault: 1.0.0 -> 1.0.1 → https://git.io/fhJtW
<{^_^}> [nixpkgs] @timokau pushed commit from @r-ryantm to master « vault: 1.0.0 -> 1.0.1 (#52664) »: https://git.io/fhJqM
Dagger has quit [Excess Flood]
<{^_^}> [nixpkgs] @timokau merged pull request #52662 → whipper: 0.7.2 -> 0.7.3 → https://git.io/fhJIi
<{^_^}> [nixpkgs] @timokau pushed commit from @r-ryantm to master « whipper: 0.7.2 -> 0.7.3 (#52662) »: https://git.io/fhJq9
Dagger2 has joined #nixos
Guanin has joined #nixos
iyzsong-x has joined #nixos
oida has joined #nixos
pie___ has quit [Remote host closed the connection]
pie___ has joined #nixos
<ottidmes> angerman: if you have the path to the derivation in $store_path then this should give you that: nix-store --query --outputs "$store_path" > >(tail -1)
dermetfan has quit [Quit: WeeChat 2.3]
<Myrl-saki> dgarzon: I have a feeling I know the answer to this one.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52668 → wt: 4.0.4 -> 4.0.5 → https://git.io/fhJmv
<dgarzon> Mind sharing it with me :) Myrl-saki
dermetfan has joined #nixos
iyzsong has quit [Ping timeout: 250 seconds]
<Myrl-saki> dgarzon: I'm reading the source code right now.
dermetfan has quit [Client Quit]
rawreraw has quit [Ping timeout: 240 seconds]
dermetfan has joined #nixos
<{^_^}> [nixpkgs] @dywedir merged pull request #52665 → wireguard-tools: 0.0.20181119 -> 0.0.20181218 → https://git.io/fhJtP
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fhJmq
<Myrl-saki> [1/6 built, 4/5/17 copied (1.6/289.6 MiB), 0.5/55.6 MiB DL] fetching jq-1.5-lib
<Myrl-saki> Sqeet jesus that's a lot of files.
<angerman> ottidmes: thanks
rawreraw has joined #nixos
<dgarzon> Thank you very much Myrl-saki! Let me know if you find something :)
<dgarzon> I believe it can be due to duplicate entries in the `contents`, but not too sure!
erictapen has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/c485a491dba (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<Myrl-saki> dgarzon: I guess full disclaimer, i don't use Docker.
<Myrl-saki> And seems like I don't know the answer to that one. :C
rawreraw has quit [Quit: WeeChat 2.3]
Lears has joined #nixos
<dgarzon> No worries Myrl-saki, hopefully someone else does! I can build the image with dockerTools.buildLayeredImage, but it is too slow, and the resulting file system looks really weird!
[Leary] has quit [Read error: Connection reset by peer]
Ariakenom has quit [Quit: Leaving]
<Myrl-saki> dgarzon: I tried colliding binaries (python2 and python3) but got nothing from that.
<hyper_ch> how can I set for systemCronJobs = [ .... ] that it should use utf-8?
<Myrl-saki> hyper_ch: Why not systemd and timers, FWIW?
<hyper_ch> Myrl-saki: how would you set this up?
Ariakenom has joined #nixos
<dgarzon> Myrl-saki do you know of a lib function that would allow me to remove duplicates from the contents list?
<ottidmes> dgarzon: unique?
<Myrl-saki> ++
hedning has joined #nixos
<Myrl-saki> lib.unique
<Myrl-saki> there's also lib.uniqList apparently.
<ottidmes> hyper_ch: you are probably running into this: http://www.robertprice.co.uk/robblog/utf-8-aware-cron-scripts/
[Leary] has joined #nixos
<Myrl-saki> But it's deprecated.
<dgarzon> ottidmes I am using that, but still getting “Error processing tar file(duplicates of file paths not supported):” not sure it works for what I need. I think my problem is I am including for example two `bash` with different paths, but when they get added to /bin/bash they conflict or something :(
<Myrl-saki> Nix doesn't seem to have a uniqBy though.
<hyper_ch> Myrl-saki: yes, I have that issue with a pyhton script, that's why I added https://paste.simplylinux.ch/view/raw/df897394
<Myrl-saki> dgarzon: Nix doesn't concern with that, although it can.
Lears has quit [Read error: No route to host]
<dgarzon> So I think uniqBy would be more appropriate because I can use the keys instead of values
<hyper_ch> still, same issue
<Myrl-saki> dgarzon: You'd have much better luck processing that in Bash.
<hyper_ch> I even prefixed the actual cron entry with export LC_ALL=en_US.UTF-8; export LANG=en_US.UTF-8; export LANGUAGE=en_US.UTF-8; export PYTHONIOENCODING=utf-8;
<ottidmes> hyper_ch: another solution would be to modify the cron service and add an option like: extraCronTab, that then is inlined here: https://github.com/NixOS/nixpkgs/blob/release-18.09/nixos/modules/services/scheduling/cron.nix#L15
<{^_^}> [nixpkgs] @Mic92 merged pull request #52648 → solc: 0.5.1 -> 0.5.2 → https://git.io/fhfba
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhJYe
<ottidmes> hyper_ch: another solution, use something like makeWrapper or create your own wrapper that does those exports, or did you mean that you already tried that? Other than that I would suggest just to just systemd timers instead
<dgarzon> Found the issue: “tar -tf layer.tar | sort | uniq -c | grep -v '^ *1' = 2 ./nix/“
<dgarzon> So it means something is creating two ./nix directories
<hyper_ch> ottidmes: I have no idea what you mean
<Myrl-saki> dgarzon: Ah. Hm.
<hyper_ch> ottidmes: how to use systemd timers?
<dgarzon> Or at least the produced layer.tar contains repeated paths
<ottidmes> hyper_ch: the first point would be to use something like: * * * * * eelco ${runCommand "..." '' ... makeWrapper ...''}
<Myrl-saki> dgarzon: Try binary searching it, I guess?
<Myrl-saki> That'd actually be a cool function. Binary search in Nix.
<hyper_ch> ottidmes: I created now a bash script where I first export all the utf-8 stuff and then run the actual python program..... and link the cron job to that bash script
<ottidmes> hyper_ch: simple https://nixos.org/nixos/options.html#systemd.timers and here is an example how I use it: https://gist.github.com/ottidmes/750de075d81ddb7165901e58d41afc66
<hyper_ch> ottidmes: so systemd timers require like a gazillion lines instead of just 1?
<Myrl-saki> dgarzon: Btw, do you use the fromImage?
<dgarzon> Nope, I am creating my own base image now :)
<ottidmes> hyper_ch: would depend on your use case, and lines of config is not really a good metric
<hyper_ch> it is :)
<hyper_ch> didn't you know? there's a world shortage of new lines ;)
<hyper_ch> ottidmes: and how do you configure the systemd timers as which user it should be run?
<ottidmes> hyper_ch: if you are code golving, I rather use 10 lines of something that works well, than 1 line that I have to put a lot of workarounds in to make behave, if you count your workaround exports too, its not too different anyway
<ottidmes> hyper_ch: standard systemd stuff, you would define that in your service file
<hyper_ch> I shouldn't even be required to use workarounds.... if I run it manually from the according user, it works.... if I tell cron to run it, it gives error about utf8/ascii stuff
<hyper_ch> ottidmes: not everyone is on intimate terms with systemd..... why would I even need a service files?
<ottidmes> hyper_ch: different environments, so not that surprising
<hyper_ch> so much for workaround.... I need a systemd service file in order to use a systemd timer
<hyper_ch> I tried to crate systemd service files before and they don't really run as they should
<ottidmes> hyper_ch: this is the last that I will say about it, because why bother if you are not interested in the solution. You need the service because the timer is just about the timing aspect, and the service is the thing you normally would run, its more flexible that way, keeping those two things separate
Ariakenom has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @dotlambda pushed to master « home-assistant: 0.84.3 -> 0.84.6 »: https://git.io/fhJYc
<{^_^}> [nixpkgs] @dotlambda closed pull request #49400 → python.pkgs.pyqt5: 5.10.1 -> 5.11.3 → https://git.io/fx7m4
imdoor has joined #nixos
thc202 has joined #nixos
jtojnar has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52669 → verilator: 4.006 -> 4.008 → https://git.io/fhJYQ
<timokau[m]> Does anyone know *why* the manual for vim plugins recommends the "Vim packages" approach over VAM?
chris| has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Mic92 merged pull request #52032 → unit: 1.6 -> 1.7 → https://git.io/fpFKV
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhJYx
chris| has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52670 → sc-controller: 0.4.5 -> 0.4.6 → https://git.io/fhJOJ
<{^_^}> [nixpkgs] @Mic92 merged pull request #52669 → verilator: 4.006 -> 4.008 → https://git.io/fhJYQ
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhJO3
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52671 → syslogng: 3.18.1 -> 3.19.1 → https://git.io/fhJOs
<{^_^}> [nixpkgs] @Mic92 pushed to staging « treewide: remove paxutils from stdenv »: https://git.io/fhJOn
<{^_^}> [nixpkgs] @Mic92 closed pull request #52661 → treewide: remove paxutils → https://git.io/fhJkh
<{^_^}> [nixpkgs] @Mic92 opened pull request #52672 → coreutils: fix unprivileged sandbox build → https://git.io/fhJOz
<juhe> Is it possible to crosscompile rpi (or any other) image on x86_64?
<Myrl-saki> juhe: Yes.
<Myrl-saki> juhe: nix-build -E '(import <nixpkgs> {}).pkgsCross.raspberryPi.hello'
<Myrl-saki> juhe: For 18.09(or 18.03?)
<juhe> Myrl-saki: for 18.09, though that is cross compilation of hello package only. I'd like to get the sd image. When I run the command specified in nixos/modules/installer/cd-dvd/sd-image-aarch64.nix, I get assertion that it can be built only on Aarch64/ARM64 platform :-/.
<Myrl-saki> Ah.
<juhe> The idea behind is to try to add another target, similar to sheeva plug, based on kirkwood, though would like to bootstrap it somehow...
<Myrl-saki> juhe: The new nixos-rebuild accepts --build-host.
<Myrl-saki> You just have to override your nix configuration file using -I or using an environment variable.
<Myrl-saki> juhe: Or --target-host.
<juhe> Myrl-saki: interesting, I'll definitely investigate this option!
<Myrl-saki> juhe: :)
<juhe> Myrl-saki: thanks!
<juhe> Myrl-saki++
<{^_^}> Myrl-saki's karma got increased to 2
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52673 → syncplay: 1.6.0 -> 1.6.1 → https://git.io/fhJOS
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/11c9922a7d5 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52674 → enlightenment.terminology: 1.3.0 -> 1.3.2 → https://git.io/fhJOA
agander has joined #nixos
boogiewoogie has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52675 → sysstat: 12.1.1 -> 12.1.2 → https://git.io/fhJ3U
freeman42x[nix] has joined #nixos
acarrico has quit [Ping timeout: 250 seconds]
betaboon has joined #nixos
aanderse has joined #nixos
<{^_^}> [nixpkgs] @scolobb opened pull request #52676 → icicles: 2018-07-02 -> 2018-12-22 → https://git.io/fhJ3m
arjen-jonathan has joined #nixos
psy3497 has joined #nixos
<psy3497> Hello! I'm tyring out NixOS and NixOps by first provisioning a simple NixOS configuration with VirtualBox.
<psy3497> However As soon as I deploy and it gets an IP, it tries to connect using it and fails saying:
<psy3497> ssh: connect to host 169.254.135.102 port 22: No route to host
<psy3497> amadeus> could not connect to ‘root@169.254.135.102’, retrying in 1 seconds...
<psy3497> I wonder, before first connecting to the server, does it allrleady have my configuration? Or is the image baked with an initial configuration
jomik has joined #nixos
<psy3497> whih is then replaced with mine?
<psy3497> In other words, is failing to SSH a fault of my simple configuration? Or is it unrelated since my configuration wasn't even provisioned yet?
civodul has joined #nixos
jtojnar has quit [Ping timeout: 246 seconds]
<juhe> psy3497: the 169.254.x.y is IPv4LL, are you sure the IP address was assigned from DHCP server?
<psy3497> I compared the ip that is in VirtualBox with the IP that is in NixOps state and they match.
<psy3497> But looking at VirtualBox's host-network settings, dhcp is disabled. Should I enable it?
<psy3497> Is IPv4LL not good?
<juhe> Hm, it's worth of shot, though if IPs are assigned and nixops found the one used by VBox, it shouldn't matter.
<juhe> IPv4LL is OK.
<juhe> Can you nmap 169.254.135.102 to see if ssh (or what services) are running there?
<psy3497> Also, do you know if my NixOS configuration is baked into the VM image from the start?
<psy3497> Let me read for a sec what nmap is
<psy3497> I see.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52677 → src: 1.18 -> 1.22 → https://git.io/fhJ3b
<juhe> I'd say config should be there, though I didn't use vbox with nixops before.
jtojnar has joined #nixos
<juhe> Can you actually ping the vbox host? The error message is "No route to host".
<juhe> So I'd say that none of your local network interfaces (on machine you deploy from) doesn't have any IPv4LL address assigned and system doesn't know how to reach that host.
<juhe> Enabling DHCP might help.
thblt has joined #nixos
<psy3497> I see.
<psy3497> Just a second I'll try things in order
<juhe> Sure, take your time.
<psy3497> on `ip addr show`
<psy3497> I see I have an interface for `vboxnet0`
<psy3497> 169.254.136.1/24
<juhe> that looks good
<psy3497> trying to ping, it failed.
<psy3497> with host unreachable
<psy3497> although VM is running right now
<thblt> Hey! I've just switched from XMonad to Gnome in my NixOS box, and I have a small issue with gpg-agent. I use it for SSH connections along a Yubikey, and I can't get it work on Gnome.
<thblt> (ssh SERVER fails with permission denied: publickey)
<thblt> the yubikey works for regular PGP operations
<psy3497> I wonder if the initial nixos configuration that the image starts with doesn't have ssh nor listening for ping?
<psy3497> In that case it may be my configuration's fault.
<juhe> psy3497: ping should work more-or-less always.
<juhe> psy3497: maybe a firewall on your host is preventing that?
<psy3497> I didn't enable anytning explicitly
<juhe> psy3497: what is the output of "ip route"?
<psy3497> I think I'll try destoying and recreating the VM with a cconfiguration that explicitly enables ssh and opens the ports.
<psy3497> Although I do not understand if my configuration was already applied from the start, or if it isn't even applied yet because NixOps can't get a connection.
<juhe> that will surely help, but probably won't solve the "no route to host" part.
<psy3497> Really?
<psy3497> The meaning of "no route to host" is something that is outside of the VM?
<juhe> Can't say for sure, just gut feeling.
<psy3497> I see. If that's the case then I'll try also playing with VirtualBox's settings.
<psy3497> Thanks for trying to help!
<psy3497> Perhaps I should just try NixOS with virtualbox without using NixOps?
<juhe> No problem. I'd check the route settings to see if you have route for 269.254.x.y set locally.
<juhe> There should be default route and net routes, I'd expect you see something like 269.254.0.0/16 in output of your "ip r" command
<psy3497> 169.254.136.0/24 dev vboxnet0 proto kernel scope link src 169.254.136.1 linkdown
<psy3497> I already destroyed the VM, if that's related to the "linkdown"
<{^_^}> [nixpkgs] @risicle opened pull request #52678 → [r18.09 backport] cloudfoundry-cli: fix build on multiple platforms, notably darwin, to produce correct binary for targe… → https://git.io/fhJsL
<juhe> Probably yes.
aristid1 is now known as aristid
<juhe> it should be up and then ping should work
<psy3497> Is there a way to bring it up?
<psy3497> Is it a matter of running an `ip` command?
<juhe> ip link set dev vboxnet0 up
<juhe> but I think the problem is network mask, your route is set for 169.254.136.0/24, IPv4LL is, AFAIR, 169.254.0.0/16
<psy3497> tried running that and it's still `linkdown`
<psy3497> I see! But that was VirtualBox's default so I doubt it is set wrong.
<psy3497> You'll have to excuse me as I gotta go now.
<psy3497> I'll keep researching this tomorrow morning.
<juhe> ok no problem
<psy3497> Thanks for the attempt to help!
psy3497 has quit [Quit: WeeChat 1.9.1]
<jomik> Hey guys - how do I merge my own package expressions into `pkgs`?
<ottidmes> jomik: overlays? or what do you mean?
<ottidmes> ,overlays jomik
<{^_^}> ottidmes: Did you mean overlay?
<{^_^}> jomik: Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
<jomik> ottidmes: I tried that..! I have a `mypkgs = pkgs.callPackage ./mypkgs {}`. But how do I actually merge "mypkgs" into pkgs, so that I can just refer pkgs.<my package drv>
<ottidmes> jomik: that looks confusing, you either define a package, or a set of packages, but not a package set as a package
<ottidmes> jomik: normally mypkgs would be the set defined in your overlay
<jomik> so I can do `self: super: { inherit mypkgs; }` ?
<ottidmes> jomik: yeah change that to self: super: instead of { callPackage, ... }: and use super.callPackage, and you have yourself an overlay
<ottidmes> jomik: you basically are defining your own overlay format, if you want to stick with what you have (which I would not recommend), you could do this: self: super: super.callPackage ./mypkgs {}
boogiewoogie has quit [Quit: Leaving]
<ottidmes> that call to super.callPackage would then return the attrset that represents what you normally would have returned directly by: { android = super.callPackage ./android {}; }, but again, its probably better to stick to conventions
<jomik> Okay, so now I changed that and have `import ./mypkgs`.
<{^_^}> [nixpkgs] @timokau pushed 3 commits to master: https://git.io/fhJs8
<{^_^}> [nixpkgs] @timokau merged pull request #52658 → zim: 0.68 -> 0.69 → https://git.io/fhJkI
<ottidmes> jomik: you mean nixpkgs.overlays = [ (import ./mypkgs) ]; where ./mypkgs/default.nix is now a proper overlay like I described?
<jomik> Yes!
<jomik> Weeey!
<jomik> ottidmes: Thank you! Merry christmas if you have that stuff :P
<ottidmes> alright, then it should work, within NixOS pkgs will then be extended by your additions
<jomik> I get it now :D
<ottidmes> jomik: A merry christmas and happy holidays to you as well :)
<jomik> Now we fail elsewhere, but progress! :D
<{^_^}> [nixpkgs] @jtojnar merged pull request #52660 → nixos/displayManager: only install wayland sessions if they exist in … → https://git.io/fhJk8
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/fhJsV
<jomik> Stupid java error, wth :D
<jomik> Warning: java.net.UnknownHostException: dl.google.com
<jomik> Lol :D
<{^_^}> [nixpkgs] @ryantm merged pull request #52213 → librime: 1.3.1 -> 1.3.2 → https://git.io/fpbhv
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fhJso
<jomik> If I have a derivation in my store, can I open that in nix-shell?
<jomik> The build failed.
cyounkins has joined #nixos
<ottidmes> jomik: if it is trying to do network stuff at build time outside the fetcher it will fail to do so by default due to sandboxing
<jomik> Huh
arjen-jonathan has quit [Ping timeout: 252 seconds]
agander has quit [Read error: Connection timed out]
<jomik> It worked in nix-shell, guess they differ there.
agander has joined #nixos
<ottidmes> jomik: in nix-shell you are working outside the sandbox
<jomik> That makes sense then. Though, how do I figure what is trying to do network stuff?
<jomik> Can I somehow "cheat" it, by fetching it, and just rerouting their network request?
<ottidmes> jomik: you can, for example some fetchers, like fetchFromGitHub have an attribute called `extraPostFetch` that you can use to do additional network stuff, I use it for a game that needs to do a few curl requests to fetch additional source files
cyounkins has quit [Ping timeout: 240 seconds]
<jomik> Does that allow them through or?
b has joined #nixos
<ottidmes> jomik: if you just have some Java executable you call to build your thing and that happens to include those network calls, then it will not work
<ottidmes> jomik: I have to go now, best of luck!
jonaswouters has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #52678 → [r18.09 backport] cloudfoundry-cli: fix build on multiple platforms, notably darwin, to produce correct binary for targe… → https://git.io/fhJsL
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to release-18.09: https://git.io/fhJsb
<{^_^}> [nixpkgs] @Mic92 merged pull request #52677 → src: 1.18 -> 1.22 → https://git.io/fhJ3b
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhJsA
<thblt> Is there a way to disable the Gnome keyring when using Gnome, or at least to prevent it from breaking GPG-agent in SSH-agent emulation mode? Thanks!
<jonaswouters> Is there a reason why fetchTarball in an import statement does not work during nixos-install?
jomik has quit [Ping timeout: 268 seconds]
balsoft has joined #nixos
<balsoft> Hello everyone!
<balsoft> Can someone help me with nixos on arm?
<balsoft> I am trying to run NixOS on OrangePI PC2 (which is aarch64, allwinner H5 SOC microcomputer). I have confirmed that it works by uploading official Ubuntu on it.
balsoft has quit [Client Quit]
<etu> meh, leaving so soon... https://nixos.wiki/wiki/NixOS_on_ARM
balsoft has joined #nixos
<etu> balsoft: Have you read on https://nixos.wiki/wiki/NixOS_on_ARM ?
<balsoft> Yes, of course
<balsoft> But my board isn't on the "supported list"
<balsoft> It seems to be similar to "Orange Pi Zero Plus2 H5"
<balsoft> It has exactly the same SOC
<balsoft> So, what I have done is build a u-boot for it
<balsoft> nix-shell -p 'pkgsCross.aarch64-embedded.buildUBoot{defconfig = "orangepi_pc2_defconfig"; extraMeta.platforms = ["aarch64-none"]; BL31 = "${pkgsCross.aarch64-multiplatform-musl.armTrustedFirmwareAllwinner}/bl31.bin";filesToInstall = ["u-boot-sunxi-with-spl.bin"];}'
<balsoft> Flashed official aarch64 SD image
<balsoft> well, not official
balsoft has quit [Client Quit]
balsoft has joined #nixos
<balsoft> And it doesn't boot
<balsoft> LED's are off
iyzsong-x has quit [Ping timeout: 246 seconds]
spacekookie has quit [Quit: **more agressive swooshing**]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/5bae6dea205 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
balsoft has quit [Read error: Connection reset by peer]
balsoft has joined #nixos
spacekookie has joined #nixos
<balsoft> It seems the easiest way to do that would be to turn Ubuntu into Nixos, but that would take some time.
hedning has quit [Quit: hedning]
jomik has joined #nixos
leotaku has joined #nixos
<jomik> ll
<jomik> woops
<{^_^}> [nixpkgs] @dotlambda merged pull request #52636 → pythonPackages.django_1_11: 1.11.16 -> 1.11.17 → https://git.io/fhfaA
<{^_^}> [nixpkgs] @dotlambda pushed commit from @marsam to master « pythonPackages.django_1_11: 1.11.16 -> 1.11.17 (#52636) »: https://git.io/fhJGH
neeasade has left #nixos ["Using Circe, the loveliest of all IRC clients"]
balsoft has quit [Quit: Konversation terminated!]
__monty__ has joined #nixos
balsoft has joined #nixos
imdoor has quit [Quit: imdoor]
balsoft has quit [Client Quit]
<leotaku> How can I create a nixos option that takes a submodule with arbitrary keys/names?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52680 → sysbench: 1.0.15 -> 1.0.16 → https://git.io/fhJGN
balsoft has joined #nixos
<jomik> leotaku: types.attrs
<{^_^}> [nixpkgs] @dotlambda opened pull request #52681 → flexget: 2.17.14 -> 2.17.20 → https://git.io/fhJGx
<leotaku> jomik: Thank you. I was looking at "submodule", so I missed that one.
<jomik> submodule should only really be used in stuff like lists, IIUC.
<leotaku> jomik: Submodule is what you use when you know the names of all the fields I think.
<jomik> You don't need to use that, I thought so too. Look what I did here: https://github.com/Jomik/dotfiles/blob/master/.config/nixpkgs/programs/alacritty.nix
<balsoft> leotaku: Yes, you are right, but you generally should use it "embedded" in some other construct, like list or NullOr
<balsoft> jomik: Do you know of any good way to do imports in home-manager when using it as NixOS submodule?
<balsoft> I would like to organise the mess that is my configuration into modules, but I would like to keep it as a NixOS submodule at the same time.
<jomik> balsoft: I don't have home-manager in my /etc/configuration.nix. I use it only in my home.
<jomik> You can use the imports attribute though.
<balsoft> Yes, I understand.
<balsoft> jomik: No, it's not available when you use it as NixOS submodule.
<balsoft> Before I used it as you do, in .config/nixpkgs/home.nix, and had everything as a module
<balsoft> But I don't know of any good way to do that now, with home-manager as submodule/
<jomik> Why do you use it in the system config? :P
<balsoft> jomik: because I have 3 machines that I constantly work on and about 7 of them in total
<balsoft> And it is very nice to have everything inside a single config
<jomik> But, I am pretty certain you can do imports = [ ./myhome-manager ]; in configuration.nix. Can I see your configuration.nix?
<jomik> I use dotfiles-sh for that stuff :P
<jomik> I have /etc/configuration.nix for system specific stuff, I think. Mainly because I don't want to sudo :P
<balsoft> jomik: Yes, you can import stuff from configuration.nix, but it's not trivial to import home-manager modules because of the way they are build
<balsoft> *built
<balsoft> It's currently trash (home.nix is particularly trash) because I can't split everything into modules
<ottidmes> when I used home manager I could use it without issue from my NixOS configuration, I might have used a snippet from an issue / PR though
<jomik> balsoft: you can use imports, it will merge your home-manager.users.bigsoft attribute sets.
<balsoft> ottidmes: Yes, I don't have any problem using it, just my home.nix is very large
<jomik> Same for the home.nix, you can have an imports attribute on that, and it will merge the attributes in.
<balsoft> jomik: No, bigsoft is not a problem, that's not my account. Check out home-manager.users.balsoft (it's in home.nix)
<ottidmes> I just followed what was discussed here: https://github.com/rycee/home-manager/pull/97
<{^_^}> home-manager#97 (by rycee, 1 year ago, merged): Experimental NixOS module
<{^_^}> [nixpkgs] @dotlambda closed pull request #52529 → Flexget: 2.17.14 -> 2.17.20 & Python: 2.7 -> 3.6 → https://git.io/fpjRO
<balsoft> ottidmes: Yes, I do pretty much that, except I use fetchGit because of https://github.com/rycee/home-manager/issues/417
<{^_^}> home-manager#417 (by balsoft, 10 weeks ago, open): nixos-install doesn't work when home-manager is used as nixos module
<balsoft> That's not the problem, the problem is that I don't know how to create home-manager modules and import them in this setup
<jomik> What is it you want to split?
<balsoft> jomik: home.nix
<jomik> There is no balsoft in there
<balsoft> home.nix is imported from configuration.nix
nD5Xjz has quit [Ping timeout: 244 seconds]
duncan^ has quit []
<balsoft> That's the way I split my config logically into system configuration and home configuration, but I would like to split home configuration further into modules
<balsoft> Like you do with alacritty, for example
<{^_^}> [nixpkgs] @dotlambda merged pull request #52578 → add sepaxml & fints → https://git.io/fhvLa
<{^_^}> [nixpkgs] @dotlambda pushed 4 commits to master: https://git.io/fhJZn
duncan^ has joined #nixos
<ottidmes> balsoft: I have only experimented with home-manager shortly, but I dont see the problem, why can't you split it into modules? you cant just import them like any other module?
nD5Xjz has joined #nixos
pie__ has joined #nixos
<ottidmes> balsoft: if imports is not an option, I know of a workaround that would get you the same behavior
pie___ has quit [Remote host closed the connection]
<balsoft> ottidmes: the problem is that you can't imports = [] from home.nix because it's not an option for using home-manager as nixos submodule, and you cannot imports = [] from configuration.nix because it doesn't merge correctly
<balsoft> ottidmes: what's the workaround?
<ottidmes> balsoft: ah, I see, you mean that you would have to namespace everything with home-manager.users.balsoft and supply the device argument with e.g. a custom option if you were to want to use the normal module system
<balsoft> Yes, exacltly.
<{^_^}> [nixpkgs] @Mic92 merged pull request #52673 → syncplay: 1.6.0 -> 1.6.1 → https://git.io/fhJOS
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhJZE
<ottidmes> balsoft: well the simplest solution would be to do something like defining a list that defines your home.nix attrset, that list would be a list of file paths and you just merge the attrsets, but this is not so nice, because it would not leverage the module system so the merging logic of the types would not be applied
dgarzon has quit [Quit: dgarzon]
<ottidmes> balsoft: so instead I would map the list of files to prefix the attributes with home-manager.users.balsoft and then import those, shall I make an example?
<balsoft> Perhaps yes, but that would be quite hacky
jomik has quit [Ping timeout: 272 seconds]
<balsoft> ottidmes: Because that would only work for home-manager.balsoft
<balsoft> home-manager.users.balsoft I mean
<ottidmes> no?
<ottidmes> I could make that variable
<infinisil> balsoft: You should be able to do `{ home-manager.users.balsoft = import ./some-home-manager-module; }`
<balsoft> infinisil: and that would merge correctly?
<infinisil> Yeah
<infinisil> Or `{ home-manager.users.balsoft = mkMerge [ (import ./foo.nix) (import ./bar.nix) ]; }`
<infinisil> For multiple in one file
<ottidmes> balsoft: that was my suggestion too
<balsoft> And I can define options in one file and use them in another?
<infinisil> Or maybe even `{ home-manager.users.balsoft = mkMerge [ ./foo.nix ./bar.nix ]; }`
<balsoft> I'll try that right now
<infinisil> Hmm, not sure about option definitions
<balsoft> Ah, that's what I meant.
<infinisil> Yeah I think those don't work
<infinisil> That's a problem I've been wanting to solve for a while, but it's non-trivial
<balsoft> Because It's pretty trivial to just import some stuff, I already do that, but that often requires calling import ./foo.nix {arg1 = "foo"; arg2="bar;} and that's awful
<ottidmes> balsoft: I would have said, imports = map (f: { home-manager.users.balsoft = import f; }) [ ./file1.nix ./file2.nix ], but infinisil suggestion is prettier
<balsoft> ottidmes: Yeah, but that's not "imports" per se as it doesn't allow for option definitions
<ottidmes> balsoft: wut? it would be like any module, no? I guess I leave it to infinisil, I don't see the problem, but maybe because I am not using home manager anymore
dontdieych has quit [Ping timeout: 272 seconds]
<infinisil> You can only define options from imports in top-level modules
<infinisil> (currently)
<balsoft> ottidmes: Thanks for help anyways, but that wouldn't be proper "imports" replacement as it wouldn't allow for option definintion
<balsoft> infinisil: I have heard that one could override options inside submodules
<infinisil> Yeah, but only from top-level modules too
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52682 → sshguard: 2.2.0 -> 2.3.0 → https://git.io/fhJZH
<balsoft> infinisil: I am fine with it being a top-level module
<ottidmes> the imports = ... was referring to a top-level module imports
<balsoft> infinisil: I would just add it to imports=[]
<balsoft> How can I do that in this case? I have tried but failed, I need an example
<balsoft> That's my attempt, but it didn't work
<infinisil> balsoft: I think it's something like `options.home-manager.users = mkOption { options = { foobar = mkOption { ... }; }; }`
<balsoft> Would that merge?
<infinisil> The second `options` there being the magical bit that adds options to already existing submodules
<infinisil> Pretty sure
dontdieych has joined #nixos
<balsoft> Oh ok, I'll try that then, thank you very much for help!
jomik has joined #nixos
<infinisil> :)
<balsoft> infinisil: Oh, and how would I implement the options?
<infinisil> As normal, you can refer to them through the `config` argument and set other options in the `config` section
<balsoft> infinisil: Can I get an example? I am confused
<balsoft> Option definition works, but I'm confused as of how I would implement them
<jomik> Anyone here know if it is possible for me to create a ~/.android for my derivation build? Apparently this path is hardcoded...
<balsoft> For example:
<balsoft> {pkgs, lib, ...}:
<balsoft> {
<balsoft> options.home-manager.users = lib.mkOption {
<balsoft> options = {
<balsoft> foo = lib.mkOption {
<balsoft> description = "Test";
<balsoft> type = lib.types.string;
<balsoft> default = "bar";
<balsoft> };
<balsoft> };
<balsoft> };
<infinisil> No pasting here!
<balsoft> }
<balsoft> Whoops sorry for multiline
<balsoft> didin't mean to, won't happen again
<ottidmes> balsoft: never paste, gist instead or use some other paste service
<balsoft> How would I implement that?
<infinisil> I typed this up before you showed your code: `config.networking.allowedTCPPorts = mapAttrs (cfg: cfg.custom-port-option) (lib.attrValues config.home-manager.users);`
<balsoft> infinisil: thank you!
<infinisil> Something like that, not tested though
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52683 → gnused: 4.5 -> 4.7 → https://git.io/fhJna
<balsoft> jomik: If I understand correctly, you can't use ~ in derivations, ~ for nix-builder is /homeless-shelter
<balsoft> jomik: maybe substituteInPlace --replace "~/.android" "$out/stuff"
<jomik> The issue is that this jar file fetches something if it isn't cached, so I want to create the cache manually :P
<ottidmes> jomik: if the package is part of a service or could be made to be, you could just write a systemd service that creates this folder for you
<jomik> It's a lar
<balsoft> jomik: I don't think this is a good thing to fetch something from a nix build
<balsoft> This is impure
<balsoft> Or are you doing something outside of the build before?
<balsoft> before the build
<balsoft> infinisil: this kind of works, but what if I need to say use another home-manager option in my implementation? Like I would like to write some stuff to xdgConfig
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52684 → solr: 7.5.0 -> 7.6.0 → https://git.io/fhJn7
<{^_^}> [nixpkgs] @domenkozar merged pull request #52667 → Kodi 18.09 aarch → https://git.io/fhJqk
<{^_^}> [nixpkgs] @domenkozar pushed 8 commits to release-18.09: https://git.io/fhJnx
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/11c9922a7d5 (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
jomik has quit [Ping timeout: 246 seconds]
gmarmstrong has joined #nixos
cyounkins has joined #nixos
init_6 has quit [Ping timeout: 250 seconds]
<balsoft> infinisil: I tried that: https://pastebin.com/N0uU2Hdb doesn't work
rfold has joined #nixos
<balsoft> I understand why, I cannot use value of an option while setting a value for the same option
cyounkins has quit [Ping timeout: 246 seconds]
kp__ has quit [Quit: WeeChat 2.3]
jomik has joined #nixos
<balsoft> Aha, I think I've found what I nedded (at least hopefully): https://github.com/NixOS/nixpkgs/issues/24653
balsoft has quit [Quit: Konversation terminated!]
<{^_^}> #24653 (by danbst, 1 year ago, closed): [Feature request] Extensible submodules
<{^_^}> [nixpkgs] @timokau opened pull request #52685 → vimPlugins.fzf-vim: automatically add fzfWrapper → https://git.io/fhJcE
kp__ has joined #nixos
kp__ has quit [Client Quit]
balsoft has joined #nixos
kp__ has joined #nixos
oida has quit [Ping timeout: 256 seconds]
agander has quit [Ping timeout: 240 seconds]
klntsky has quit [Ping timeout: 256 seconds]
ZaraChimera has quit [Ping timeout: 256 seconds]
phreedom has quit [Ping timeout: 256 seconds]
<infinisil> balsoft: Yeah you can't write such recursive things, you need to always use a specific option on the left to avoid recursion
<gmarmstrong> I'm working on packaging an application from npm. I'm using the instructions in the nixpkgs manual for Node.js packages (https://nixos.org/nixpkgs/manual/#node.js-packages). Running ./generate.sh takes a very long time, and it's changing thousands of lines in pkgs/development/node-packages/
<infinisil> Ah but yeah, that's a good issue
jomik has quit [Ping timeout: 268 seconds]
<gmarmstrong> The application works, I'm just hesitant to make such a large PR.
<gmarmstrong> Most of the changes are incrementing version numbers for other node packages (dependencies of the application, I think).
ceevusee has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #52686 → vdr: revisited version of https://github.com/NixOS/nixpkgs/pull/32050https://git.io/fhJcF
Ariakenom has joined #nixos
<gmarmstrong> Okay, I see from https://github.com/NixOS/nixpkgs/pull/43587 that generate.sh just needs to be run occasionally. I'll make a PR with the updates and then another with my package.
<{^_^}> #43587 (by dtzWill, 22 weeks ago, merged): node-packages: update to latest (ran generate.sh)
<qyliss> gmarmstrong: yeah, it's pretty often just updated whenever somebody wants to add a package
hedning has joined #nixos
oida has joined #nixos
phreedom has joined #nixos
alex`` has joined #nixos
klntsky has joined #nixos
ryantrinkle has joined #nixos
<balsoft> infinisil: I've found a solution that works for me! Thank you for you help!
<balsoft> This comes from that issue I referenced earlier
marsam has joined #nixos
jonaswouters has quit [Quit: Connection closed for inactivity]
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/fffd24d7585 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
zfnmxt has joined #nixos
hedning has quit [Quit: hedning]
<{^_^}> [nixpkgs] @basvandijk opened pull request #52687 → OpenCV: 3.4.5 & 4.0.1 → https://git.io/fhJCT
marsam has quit [Remote host closed the connection]
ddellacosta has joined #nixos
hedning has joined #nixos
jonaswouters has joined #nixos
hedning has quit [Client Quit]
<{^_^}> [nixpkgs] @primeos pushed to master « wlroots: Remove the overrides for Meson »: https://git.io/fhJCO
ceevusee has quit [Ping timeout: 268 seconds]
jD91mZM2 has quit [Ping timeout: 246 seconds]
eyJhb has left #nixos ["WeeChat 2.2"]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52688 → rtl_433: 18.05 -> 18.12 → https://git.io/fhJCG
jD91mZM2 has joined #nixos
<{^_^}> [nixpkgs] @basvandijk opened pull request #52689 → pgmanage: 10.3.1 -> 11.0.1 → https://git.io/fhJCl
kisonecat has joined #nixos
ddellacosta has quit [Remote host closed the connection]
ddellacosta has joined #nixos
ddellacosta has quit [Remote host closed the connection]
cyounkins has joined #nixos
drakonis has joined #nixos
thblt has left #nixos ["ERC (IRC client for Emacs 26.1)"]
kisonecat has quit [Ping timeout: 268 seconds]
drakonis_ has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52690 → rosegarden: 18.06 -> 18.12 → https://git.io/fhJCH
<{^_^}> [nixpkgs] @primeos pushed 2 commits to master: https://git.io/fhJCQ
drakonis has quit [Ping timeout: 252 seconds]
drakonis has joined #nixos
lokado has joined #nixos
drakonis_ has quit [Ping timeout: 252 seconds]
pie___ has joined #nixos
pie__ has quit [Remote host closed the connection]
ceevusee has joined #nixos
clever has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52691 → riot-web: 0.17.6 -> 0.17.8 → https://git.io/fhJWv
drakonis_ has joined #nixos
drakonis has quit [Ping timeout: 252 seconds]
jomik has joined #nixos
rfold has quit [Quit: leaving]
<{^_^}> [nixpkgs] @jokogr opened pull request #52692 → cli-helpers: fix missing dependencies → https://git.io/fhJWn
<{^_^}> [nixpkgs] @vcunat closed pull request #52683 → gnused: 4.5 -> 4.7 → https://git.io/fhJna
ceevusee has quit [Remote host closed the connection]
grumble is now known as SeasonsGreetings
<hexa-> how can I embed a file into initrd?
orivej has quit [Ping timeout: 272 seconds]
<gmarmstrong> (I'm not an expert, but:) if it's just a kernel module, I think you can just use boot.initrd.*
<hexa-> nah, it's a keyfile for luks
<balsoft> boot.initrd.luks.devices.<name?>.keyFile
<balsoft> Or does this not work for some reason
<balsoft> &
<hexa-> that makes it require the keyfile (as in it stops asking for password) but it didn't find it when I tried
<balsoft> boot.initrd.luks.devices.<name?>.fallbackToPassword
<hexa-> ah, that's great to debug things :)
<{^_^}> [nixpkgs] @basvandijk merged pull request #52687 → OpenCV: 3.4.5 & 4.0.1 → https://git.io/fhJCT
<{^_^}> [nixpkgs] @basvandijk pushed 3 commits to master: https://git.io/fhJlY
<hexa-> looks like prepend could achieve that
<{^_^}> [nixpkgs] @basvandijk merged pull request #52689 → pgmanage: 10.3.1 -> 11.0.1 → https://git.io/fhJCl
<{^_^}> [nixpkgs] @basvandijk pushed 2 commits to master: https://git.io/fhJl3
<hexa-> except it sounds like it's more for microcode and other bootable stuff
<ottidmes> hexa-: there is also boot.initrd.secrets, but that does not work out of the box with grub, but if you want I could give you a snippet that gives grub support for it
<hexa-> I'm past grub actually
orivej has joined #nixos
<hexa-> grub openes the it up just fine, but there is no way to pass the secret to the initramfs, so the easiest way to not enter the secret twice was to add a keyfile to the initrd
<balsoft> As it seems there is more activity now, I will repeat my question: can somebody help me with NixOS on ARM
<balsoft> ?
<ottidmes> hexa-: I am using secret files in my initrd with grub, so I have to disagree with "no way"
orivej has quit [Ping timeout: 240 seconds]
<hexa-> fair enough, consider me interested
<jomik> Is there no way to say that part of our build step has to be impure? I.e. for letting a java program run and fetch some cache stuff?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52693 → rawtherapee: 5.4 -> 5.5 → https://git.io/fhJla
<jomik> Alternative seems to be to just hardcode the hash that is input when accepting licenses with sdkmanager... But, that is pretty flawed, imo.
<simpson> jomik: You can run a Java program during the build step. You can't get the program impurely, though, and networking needs to be done through Nix or with the sandbox disabled.
<jomik> simpson: Issue is networking part.
<jomik> The sdkmanager for android sdks wants to fetch a lot of things, for its cache.
<ottidmes> jomik: AFAIK it is all or nothing with sandboxing, I do not believe you can disable sandboxing per package. I have no experience with them, but I believe if you can be certain of the output being the same every time, then you should be able to use fixed output derivations, who are allowed to do networking
<jomik> ottidmes: fixed output derivations? And I can't really, cuz I don't control the cache that they fetch :P
orivej has joined #nixos
<jomik> It is just license stuff though..
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/b9fa31cea0e (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<jomik> "just" :D
<jomik> Why is everything in the result of runCommand put in my path by home-manager? That seems odd.
<ottidmes> jomik: the Nix manual covers fixed output derivations: https://nixos.org/nix/manual/#fixed-output-drvs
<jomik> ottidmes: doing that allows me to use java and such to fetch stuff?
<ottidmes> jomik: they allow for impurities (which is what you want), while still ensuring purity of the output (it always has to result in the same output) so that it can safely be used further down the line
<jomik> That makes sense. Okay. I'll have to ponder that :D
<jomik> Tho, in that case, I guess I may as well update the license acceptance has and completely avoid fetching these things.
<samueldr> you can also massage the output of a fixed output derivation
<samueldr> e.g. if it outputs a file with the current time and a desired static file, you can rm the file you don't want :)
<samueldr> from memory, the fixed output derivations for maven do a lot of massaging, e.g. removes a lot of files which are not needed, and do not have a fixed output
<samueldr> well, not for maven, but using maven
<jomik> Oh, that could maybe work.
<jomik> But, it'll take the hash of the whole thing, right? Including symlinks and such, which may vary depending on the user's setup.
jperras has joined #nixos
<samueldr> then if it varies due to its inputs it's not a fixed output derivation?
<ottidmes> luckily I have not yet needed it, but I can see how that is useful, so far for me failing sha's have been actual failures of the source being changed or removed
<samueldr> I'm not sure what you're doing, but maybe you can make multiple fixed-output derivations and merge them later according to the user's configs?
<samueldr> and the fixed output derivations are not necessarily the end-results; you could also have a fixed output derivation which is a "template file" which can be manipulated by another derivation, which that one isn't fixed
<samueldr> it's, after all, what most builds do: fetch* are fixed output derivations, and the build processes use them to do more things
<{^_^}> [nixpkgs] @gmarmstrong opened pull request #52694 → nodePackages: regenerate → https://git.io/fhJ8c
<jomik> Oh, good point samueldr !
sbdchd has joined #nixos
arjen-jonathan has joined #nixos
mkoenig has quit [Remote host closed the connection]
<pie___> is it possible to scan over the network in linux_
<pie___> i have an hp officejet thats on the network but no usb cable
<samueldr> maybe 瑨灴㩳⼯楷楫愮捲汨湩硵漮杲椯摮硥瀮灨匯乁⍅捁散獳湩彧潹牵獟慣湮牥晟潲彭彡敲潭整睟牯獫慴楴湯
<samueldr> uh
<samueldr> thanks synergy for breaking copy/paste
<balsoft> pie___: nmap
<samueldr> it looks like that using an existing networked scanner may be different than a shared one
<balsoft> Ok, there is even more activity now: can somebody help me with nixos on ARM?
<pie___> balsoft, not sure how thats supposed to help
<samueldr> balsoft: maybe?
<samueldr> pie___: I think balsoft read "scan a network"
<pie___> oh lol
<samueldr> (which I did too initially)
<balsoft> pie___: oh yeah, sorry for that :)
<samueldr> balsoft: if you asked instead of waiting earlier maybe someone would have seen it while coming back from being AFK :)
<balsoft> samueldr: I have OrangePI PC2, and I would Love to run Nixos on it
<samueldr> balsoft: let me check one thing first, but I think it should be relatively trivial if I'm right
<balsoft> I have asked a lot already
<balsoft> samueldr: it's aarch64 allwinner H5 device
<samueldr> yeah, that's what I wanted to confirm
<balsoft> I have built u-boot for it
<samueldr> from upstream u-boot?%
<balsoft> Upstream U-boot seems to support it
<balsoft> Yes, upstream
<samueldr> it should, worked fine with orange pi zero plus 2 here
<balsoft> With builtUBoot
<samueldr> (the h5 variant)
<balsoft> that's what I did: nix-shell -p 'pkgsCross.aarch64-embedded.buildUBoot{defconfig = "orangepi_pc2_defconfig"; extraMeta.platforms = ["aarch64-none"]; BL31 = "${pkgsCross.aarch64-multiplatform-musl.armTrustedFirmwareAllwinner}/bl31.bin";filesToInstall = ["u-boot-sunxi-with-spl.bin"];}'
<balsoft> whoops sorry for paste again
<balsoft> Hope that isn't too long
<samueldr> nah, that's fine
<jomik> Huh, what's this "/nix/stor/... contains a forbidden reference to /build"
<samueldr> hm, I never tried to build u-boot using our cross things
<balsoft> How would you build it otherwise?
<samueldr> natively
<balsoft> How?
<samueldr> on an already installed nixos device on aarch64, which may be a chicken-and-egg problem
<balsoft> Oh
<balsoft> That's... Kinda interesting
<balsoft> May I use qemu for that?
endformationage has joined #nixos
<samueldr> I also used that in the past, before the pkgsCross thing hit the repos: https://nixos.wiki/wiki/NixOS_on_ARM#Building_u-boot_from_your_NixOS_PC
<samueldr> balsoft: if you say so, I'm assuming you're saying the build didn't succeed using pkgsCross?
<balsoft> It succeeded
<balsoft> But the goddamn thing doesn't boot
<{^_^}> [nixpkgs] @alyssais opened pull request #52695 → mailcore2: 0.6.2 -> 0.6.3 → https://git.io/fhJ8h
<balsoft> I am kinda tired
<samueldr> let me try on my zero plus 2, using the cross-built u-boo
<balsoft> I have spent about two days trying to figure it out myself before asking here
<balsoft> Oh, that would be great
<balsoft> Building it doesn't take too long
<samueldr> yeah, shouldn't using the manual steps I linked previously takes ~10 mins max, and some of the time is due to human input :)
<samueldr> yeah, it shouldn't; *
<samueldr> when you say "the thing doesn't boot", do you mean u-boot doesn't show up neither on serial nor hdmi?
<balsoft> samueldr: it doesn't
<balsoft> Unfortunately currently I have no way to check serial
<samueldr> okay, so it's a case of u-boot seemingly not working; helps to know what I should look for
<balsoft> Because I am away with just my laptop and this thing
<balsoft> But connecting it to TV didn't work
gmarmstrong has quit [Ping timeout: 246 seconds]
<jomik> Weird things happens sometimes... Now I have a package that has the same _name_ as one in nixpkgs. Which appaenrly makes mkDerivation see it as that one, because it starts its derivation.. Why?
<balsoft> And it doesn't even light up LEDs
<samueldr> it's *possible* that the nixpkgs-built mainline kernel won't output to HDMI yet; I haven't verified yet with H5-class hardware, but on A64-class there's a missing kernel config needed for HDMI
<balsoft> The board works, it starts up with Ubuntu
<samueldr> (but u-boot should work in any cases)
<jomik> Ooooh, nvm. Overlay didn't run here, my bad.
<balsoft> samueldr: It should work, as it presumably does on Lite
worldofpeace has joined #nixos
jperras has quit [Ping timeout: 250 seconds]
<samueldr> balsoft: hdmi output on the mainline kernel? yes it should, if the kernel configuration required for A64 isn't for H5
<worldofpeace> Can someone with access to building on the darwin platform with ofborg build #52628 ?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/52628 (by marsam, 1 day ago, open): pythonPackages.nose-randomly: add checkPhase
<balsoft> samueldr: I think so
<samueldr> worldofpeace: you don't?
<worldofpeace> samueldr: No, I don't really want everything I pr to built on that platform automatically.
jperras has joined #nixos
<jomik> `rpath of binary /nix/store/... contains a forbidden reference to /build`
<jomik> But... I don't see that? I am using buildEnv
orivej has quit [Ping timeout: 272 seconds]
<jomik> This is the rpath if I print it as the last thing in my postFixup : https://gist.github.com/Jomik/a23861247cb17b24b801cbccc533aa40
jperras has quit [Ping timeout: 246 seconds]
<jomik> I tried going into a nix-shell to print the rpath of the file in the store, and it only has one path, which points to its own store location/lib64
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
<Laalf> does anyone have a package for http://www.seamonkey-project.org ? i have no idea about packaging on nixos but id try my luck on it if nobody has a package
<{^_^}> [nixpkgs] @rasendubi merged pull request #52691 → riot-web: 0.17.6 -> 0.17.8 → https://git.io/fhJWv
<{^_^}> [nixpkgs] @rasendubi pushed 2 commits to master: https://git.io/fhJ46
jasongrossman has quit [Ping timeout: 252 seconds]
perique has joined #nixos
cyounkins has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @rasendubi merged pull request #52695 → mailcore2: 0.6.2 -> 0.6.3 → https://git.io/fhJ8h
<{^_^}> [nixpkgs] @rasendubi pushed 2 commits to master: https://git.io/fhJ41
<balsoft> samueldr: sorry for being officious, but should I wait for you to test out cross-compilation on your Lite or am I better off getting some sleep?
<samueldr> balsoft: don't worry; I need to setup the things still, so it all depends on whether or not it's pressing for you
<jomik> Are you not allowed to refer to $out in the rpath of your elfs?
<balsoft> It's not pressing, it's fine.
kisonecat has joined #nixos
<balsoft> I'm just frustrated for spending so long on a little board
<samueldr> balsoft: try this in a nixpkgs checkout of nixos-unstable (just in case) nix-shell -I "$PWD" -p 'with (import ./. {}); let plat = pkgsCross.aarch64-multiplatform; in plat.buildUBoot{defconfig = "orangepi_pc2_defconfig"; extraMeta.platforms = ["aarch64-linux"]; BL31 = "${plat.armTrustedFirmwareAllwinner}/bl31.bin"; filesToInstall = ["u-boot-sunxi-with-spl.bin"];}'
<samueldr> here It's not mixing platforms, and using the same "platform" as the other builds do
<samueldr> and then go to sleep and I'll notify you of the results of both your previous build and that one
<samueldr> (maybe join #nixos-aarch64 too?)
<samueldr> (if you stay connected while away)
Dedalo has joined #nixos
<{^_^}> [nixpkgs] @ehmry pushed to master « Add IPFS warning »: https://git.io/fhJ4A
<Dedalo> Hi guys, I have an X1 Carbon with a WQHD (2560x1440) display and I'm using the i3 window manager. I'm having trouble to scale the dpi. I have added to the configuration.nix service.xserver.monitorSection = '' DisplaySize 338 190 '', but when I reboot I can't login anymore. It says: session cannot start, or something like that. Anyone using the same laptop can share his settings?
<balsoft> samueldr: thank you very much, gonna do that.
arjen-jonathan has quit [Ping timeout: 252 seconds]
<balsoft> samueldr: unfortunately, I can't stay connected.
<samueldr> no worries, I'll tell the bot to tell you, next time you say something
<balsoft> Ok
<jomik> So apparently because I create a dir called build-tools, and refer to a dir in that, this audit-tmpdir script reacts..?
<balsoft> samueldr: by the way, is it fine if I flash sd image of NixOS just once and then flash U-boot multiple times?
<balsoft> Or do I need to clean out starting sectors before re-flashing?
lokado has quit [Quit: Connection closed for inactivity]
<jomik> Ah, cuz the audit-tmpdir script is still from back in august.
<samueldr> balsoft: should be fine
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos
<samueldr> without mixing platforms: it boots here
<samueldr> I'll try like your initial build, with mixed platforms, to see
<balsoft> Ok, great
<balsoft> I am trying without mixed platforms now
<balsoft> But I have ~400kb/s connection, so it's quite slow :)
<samueldr> I'll update the nixos on arm pages with that cross command, might help many others bootstrap themselves
<balsoft> Ok
<balsoft> By the way, why is U-Boot built for linux target?
<balsoft> Shoudn't it be bare-metal?
<{^_^}> [nix] @kirelagin opened pull request #2600 → Add support for plugins that provide a new subcommand → https://git.io/fhJBt
<{^_^}> [nixpkgs] @rasendubi merged pull request #52693 → rawtherapee: 5.4 -> 5.5 → https://git.io/fhJla
<{^_^}> [nixpkgs] @rasendubi pushed 2 commits to master: https://git.io/fhJBY
<jonaswouters> anyone have a nix pkg for insync on the desktop? (so not the portable version in the repo) The one from apeyroux is quite outdated
<samueldr> balsoft: no idea what it means really, but looks like it works, the build process must know how to handle all that
<balsoft> samueldr: You mean the linux target or mixing targets?
<samueldr> I mean using aarch64-linux for their platforms
<balsoft> Oh, ok. This is wierd then and it's not just me :)
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr> :/ looks like using your mixed platform works here
<balsoft> samueldr: this is strange
<balsoft> I don't like this
<samueldr> (serial, haven't verified hdmi, and no LEDs to look at)
<balsoft> Can you tell me the exact steps you did?
<balsoft> Maybe I'm doing something stupid
<samueldr> let me nuke the SD card's location where u-boot is installed just to double-check
<balsoft> I have found old arduino nano in my bag, I may try to read serial
<samueldr> eek! the spring just sprang the µsd card across the room!
<samueldr> (I didn't lose it)
<balsoft> good :)
<samueldr> verified: with nuked location, it doesn't boot `sudo dd if=/dev/zero of=/dev/sdg bs=1024 seek=8 count=1024`
<samueldr> so it's not another u-boot in the eMMC that causes false hopes
nDuff has joined #nixos
<balsoft> What?
<balsoft> So it doesn't boot with cross-u-boot?
<balsoft> That's good?
<samueldr> sorry, no
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52696 → qmapshack: 1.12.0 -> 1.12.1 → https://git.io/fhJBB
<samueldr> two issues I had in mind: 1. there's an eMMC on the zero plus 2, just verified that it's not using that
<samueldr> 2. zeroed out the section it boots from to re-test, in case something else was causing bad tests
<balsoft> That means that I just have to build in QEMU and it'll work?
<balsoft> Or did I misunderstand something
<samueldr> I don't know yet
<samueldr> and yeah, after (1) zeroing out, and (2) re-flashing the mixed platforms build, that one doesn't work
<samueldr> now I'm trying (1) zeroing out (2) flashing the non-mixed cross build
<balsoft> Oh, ok, got it
<balsoft> I guess you don't need to zero out if it doesn't work :)
<samueldr> let's be thorough
arjen-jonathan has joined #nixos
<samueldr> or alternatively: I'm an idiot and I must re-do all steps: I accidentally had `of=/dev/sdg of=/dev/sdX` :/
<nDuff> If my function is passed /nix/store/<hash>-whatever, I want the derivation it resolves to be named "whatever-myfunc", not "<hash>-whatever-myfunc". I assume there's going to be a way to extract "whatever" (the derivation name) already in nix, or in the nixpkgs standard library -- where should I look for that?
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos
<samueldr> balsoft: :/ mixed platforms work here (tested only serial) https://gist.github.com/samueldr/e00831a322b83cd4f2b210d780dbfc58
<{^_^}> [nixpkgs] @Tomahna opened pull request #52697 → mopidy-iris: 3.31.3 -> 3.31.7 → https://git.io/fhJBV
<balsoft> What freq does the serial run on?
<balsoft> I would like to test serial just in case
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52698 → qt5ct: 0.36 -> 0.37 → https://git.io/fhJB6
<samueldr> 115200 bauds AFAIK
<samueldr> that's what documented on the wiki and what I always (successfully) used across my boards
cyounkins has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/bacc8e6a545 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<samueldr> okay, so both builds here work for me
* samueldr adds to the wiki
<balsoft> samueldr: none work for me
<balsoft> So this means that I should check serial
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52699 → python37Packages.zeep: 3.1.0 -> 3.2.0 → https://git.io/fhJBH
<samueldr> maybe, I would have liked to try on the same board, to confirm everything, but I don't have one on hand
<samueldr> (and I must resist the urge to get all the aarch64 boards)
<balsoft> Well, my board definetely works
<balsoft> With Ubuntu
<balsoft> So it's presumably not a hardware problem
<samueldr> yeah
SeasonsGreetings is now known as SeasonsBeatings
spacefrogg has quit [Remote host closed the connection]
aw has quit [Remote host closed the connection]
<samueldr> okay, so with my HDMI<>DVI cable, it looks like HDMI out doesn't work on u-boot for my board, but it could also be the adapter
<balsoft> Hmm
<balsoft> That's interesting
<balsoft> I need to try serial
<balsoft> As i don't need video output for what I'm trying to do anywat
<balsoft> *anyways
<samueldr> uh, scratch that, did the ol' unplug-replug routine and now hdmi output works for u-boot
aw has joined #nixos
<samueldr> ( I think it got caught on something )
spacefrogg has joined #nixos
<{^_^}> [nixpkgs] @eadwu closed pull request #48851 → networkmanager: include option for iwd backend → https://git.io/fxi2V
jD91mZM2 has quit [Ping timeout: 250 seconds]
perique has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<balsoft> samueldr: serial is worth a try anyways
<samueldr> it sure is
<balsoft> What is serial speed for your device?
<balsoft> I mean baudrate
dgarzon has joined #nixos
<samueldr> I used 115200
<balsoft> ty
fusion809 has quit [Remote host closed the connection]
<samueldr> (yes I'm using putty on linux, fite me)
<{^_^}> [nixpkgs] @dotlambda merged pull request #52696 → qmapshack: 1.12.0 -> 1.12.1 → https://git.io/fhJBB
<{^_^}> [nixpkgs] @dotlambda pushed commit from @r-ryantm to master « qmapshack: 1.12.0 -> 1.12.1 (#52696) »: https://git.io/fhJRT
<samueldr> just in case, are you syncing or ejecting the sd card once written to?
<{^_^}> [nixpkgs] @eadwu closed pull request #44921 → bumblebee: allow the use of different driver versions → https://git.io/fN59P
agander has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52700 → python37Packages.typed-ast: 1.1.0 -> 1.1.1 → https://git.io/fhJRO
<jomik> What is the best way to make a derivation configurable ? I need to be able to specify version and a sha256. the sha is used for the fetch together with the version.
<balsoft> samueldr: It seems like serial is silent
<samueldr> what's the nixpkgs commit you're using to build?
<samueldr> I'll try on that one
<balsoft> My internet is too slow to download nixpkgs
<samueldr> if you're not specifying from a checkout, (-I with nix-shell) nixos-version should be able to tell
<balsoft> So I'm using latest nixos-unstable
<balsoft> Yes, I know, channels are not good
<samueldr> uh? channels are fine
<samueldr> you can use `nixos-version`, though, to know which commit it is exactly
<__monty__> They're really confusing though.
<balsoft> 19.03pre162671.44b02b52ea6 (Koi)
<{^_^}> [nixpkgs] @worldofpeace merged pull request #52671 → syslogng: 3.18.1 -> 3.19.1 → https://git.io/fhJOs
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « syslogng: 3.18.1 -> 3.19.1 »: https://git.io/fhJRW
<samueldr> thanks balsoft, it's building u-boot for my board with that commit, let's see
<samueldr> (I've been using a checkout built from master, *maybe* there's been changes since the 14th)
<nDuff> jomik, ...kinda' depends on context. If you define a function that retuns a derivation, that's one way to parameterize; another is to rely on nix-build --arg to provide default values to be used for automatic function invocation.
<balsoft> samueldr: I'll try again with Ubuntu, maybe the board was broken in the process of trying to run NixOS on it
doyougnu has joined #nixos
<jomik> Yeah, I did consider using a function.. Not sure it is as pretty as it could be tho.
<jomik> I'll just do that :P
<balsoft> Would be kinda a shame, but then it's like 30$
<samueldr> the way allwinner boards work, I wouldn't think software would break it, but you never know :/
<samueldr> though yeah, just tried and using the particular commit your system is at, it works here
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52701 → qmmp: 1.2.4 -> 1.2.5 → https://git.io/fhJR6
kisonecat has quit [Read error: Connection reset by peer]
cyounkins has quit [Remote host closed the connection]
<balsoft> Maybe I'm doing something terribly wrong?
cyounkins has joined #nixos
<balsoft> What I did: sudo dd if=sd-image-aarch64-linux.img of=/dev/sdb status=progress; sudo dd if=/dev/zero of=/dev/sdb bs=1024 seek=8 count=1024; sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8;
<balsoft> And then SD card in, power on
<balsoft> OH wAIT!
<samueldr> your last `dd`, did you copy from buildInputs or cd in there?
<balsoft> It doesn't boot!!!!
<balsoft> With Ubuntu
<balsoft> It did yesterday
<balsoft> WHAAAT
<samueldr> it could be the SD card, also
<balsoft> It's the same one
<balsoft> The only thing that changed was power supply
<Mic92> hexa-: did you got your grub problem sorted out?
<hexa-> Mic92: aye, that overlay worked just fine
<balsoft> OH WHAT!!!!!
<samueldr> you could sha256sum the ubuntu image, dd it to the sd card, then sha256sum the appropriately configured dd output (same size as the image) and see if the sd card somehow corrupts the data
<samueldr> or yeah, power supply could be an issue :/
<hexa-> Mic92: thanks again
<balsoft> It boots when I plug it into my laptop
dgarzon has quit [Quit: dgarzon]
<balsoft> But my perfectly good USB charger with much higher power - nooo
sigmundv_ has joined #nixos
<samueldr> hm, could be how it negotiates for power, with the fancy usb power delivery
cyounkins has quit [Ping timeout: 250 seconds]
<samueldr> if it fails to negotiate, it could go to 500mA while the laptop maybe provides more
<balsoft> Is there any easy way to bootstrap NixOS from ubuntu?
<samueldr> (for aarch64) I don't know
<Mic92> balsoft: what are using at the moment?
ottidmes has quit [Ping timeout: 245 seconds]
<Mic92> dd appearently
<balsoft> Mic92: Yes, I use dd
<balsoft> Do you think that there is a faulty bit somewhere?
<balsoft> But I have reflashed multiple times
agander_ has joined #nixos
<samueldr> now that you know the power supply could be at cause, you could retry using the sd image, flash u-boot using one of the previously made builds and see?
<balsoft> Yes
<balsoft> I am doing that right now
<balsoft> But it's quite a slow process
<samueldr> yeah :$ I know the feeling
<balsoft> Because my laptop's internal SD card reader is USB 2.0 for some strange reason
<balsoft> all of the USB ports are 3.0
jtojnar has quit [Read error: No route to host]
jtojnar has joined #nixos
<samueldr> in any way, most sd cards won't saturate USB 2.0 speed in constant write, AFAIK
agander has quit [Ping timeout: 240 seconds]
<balsoft> This is quite a good SD card, it costs more than the board itself :)
<samueldr> I always test SD cards when I buy them, and the quoted speed if they don't quote write speed, is always read :(
<samueldr> write is often 10x less than the read speed
<balsoft> Makes sense to me
<balsoft> Marketing and all
nDuff has quit [Quit: zzz]
<samueldr> yeah, just something to keep in mind
<balsoft> I have learnt not to believe anything that's written by the manufacturer
<balsoft> And always look for real tests
<samueldr> I use f3 to test them, not for speed, but to ensure it's not a dud, or a fake https://github.com/AltraMayor/f3
<balsoft> Oh well, there's a problem
<balsoft> It still doesn't boot
<samueldr> since fakes are apparently [citation needed] a rampant problem :(
<balsoft> It doesn't even power on USB devices connected to it
<balsoft> Or flash LEDs
<samueldr> while it did for ubuntu?
<balsoft> Yep
<balsoft> I don't know what to do now
<samueldr> sorry, I don't really know either right now
<Mic92> samueldr: have you tried to cross-compile a whole image for aarch64 already?
ddellacosta has joined #nixos
dgarzon has joined #nixos
<samueldr> no, elvishjerricco did, with modifications it worked, I verified it working at that time in the past
<balsoft> samueldr: Could you please compile u-boot for my device with latest nixpkgs?
<balsoft> It would take couple days with my internet connection speed
<samueldr> balsoft: orangepi_pc2_defconfig right?
<balsoft> Yep
<balsoft> Oh, maybe we don't need armTrusted stuff?
<balsoft> I'll try that now
<balsoft> What's that BL13 thing anyway?
<samueldr> usual disclaimer applies: you don't have to trust me, and if you do, it may still break things etc.
<samueldr> (marked xxx to remind me it's not a "clean and controlled" build, I don't know if it will work)
<balsoft> Thank you very much
<samueldr> the ATF is AFAIUI required, it's I think the ARM trustzone implementation used on allwinner hardware
dgarzon has quit [Client Quit]
<samueldr> and AFAIK, it is required to have *something* like ATF to then boot into a more regular program like u-boot on aarch64
<balsoft> WHAT!
<balsoft> THANK YOU SO MUCH
<samueldr> this one works?
<balsoft> IT BOOTS
<balsoft> HOW?
<samueldr> >> nix-shell -I "$PWD" -p 'with (import ./. {}); let plat = pkgsCross.aarch64-multiplatform; in plat.buildUBoot{defconfig = "orangepi_pc2_defconfig"; extraMeta.platforms = ["aarch64-linux"]; BL31 = "${plat.armTrustedFirmwareAllwinner}/bl31.bin"; filesToInstall = ["u-boot-sunxi-with-spl.bin"];}'
<balsoft> Yes, I know, but it didn't work when I did the same on nixos-unstable
<samueldr> >> scp $buildInputs/u-boot-sunxi-with-spl.bin [...that server...]
<samueldr> built using 485bf85407ea79cd7fdfcab2fde983e9a3d85f0e (+2 irrelevant commits)
<samueldr> so uh, don't kno!
<samueldr> +w
<balsoft> Now it fails after booting, for some reason HDMI output doesn't work
<samueldr> btw, 99% confident HDMI will not work once booted
<balsoft> But that doesn't matter
<samueldr> and it's something that's known, with a known fix, once kernel 4.20 lands
<samueldr> (it may even be working before 4.20 for that board, but still need the same fix)
<balsoft> Can I use keyboard just connected to USB port to do stuff?
<samueldr> try typing reboot[enter]
<balsoft> I need to connect to Wi-Fi
<samueldr> it may take a while on the first boot since it resizes the partition
<balsoft> What reboot is supposed to do?
<samueldr> reboot :)
<balsoft> It doesn't do anything on Ubuntu
<samueldr> you'll see u-boot back
<{^_^}> [nixpkgs] @jtojnar opened pull request #52702 → Boo destdir → https://git.io/fhJ0n
<samueldr> so you know it's been successful
<balsoft> Oh, yeah
<balsoft> Ok
<balsoft> Didn't work then
<monokrome> Is there, like, a generic video driver that'll work for my server's X server? I don't need fancy graphics or anything, but I have an i9-9900K and "i915" "inteel", or "vesa" doesn't seem to work
<balsoft> Serial time!
<samueldr> yeah, give it 5-10 minutes for the first boot, (probably less) since it resizes the ext4 partition
<balsoft> Oh, it's a 32GB card
<samueldr> monokrome: are you using the latest kernel or whatever default nixos has?
<balsoft> so probably it'll take a while
<samueldr> monokrome: (it would be 4.14)
<monokrome> samueldr: 4.14
<samueldr> monokrome: add `boot.kernelPackages = pkgs.linuxPackages_latest;`
<samueldr> to your configuration, rebuild boot, reboot
<monokrome> samueldr: Okay! Can you help me understand why that's needed for video drivers to work? Which video driver do I use along w that>
<samueldr> the 9xxx seriels at intel is quite recent, so it's possible an older (but not that old) kernel wouldn't work right
<samueldr> series*
<monokrome> oooh cool
<monokrome> thnx
<monokrome> will try <3
<samueldr> not 100% confident it will work, but it's a good first step whenever something new is used
ntd has joined #nixos
<samueldr> either a laptop or really new hardware
<balsoft> samueldr: reboot worked
<{^_^}> [nixpkgs] @stephengroat opened pull request #52703 → terragrunt: 0.17.3 -> 0.17.4 → https://git.io/fhJ0E
<samueldr> balsoft: then you know the system boot successfully to a shell :)
<balsoft> Yep
<samueldr> the shell logs in without password to the root account
<balsoft> How do I connect to Wifi again?
arjen-jonathan has quit [Ping timeout: 250 seconds]
<samueldr> I can't really help, I always either use a usb ethernet or onboard ethernet
<balsoft> Unfortunately, i don't have a LAN in my laptop
<samueldr> (and now I'm going away for a small while, got to go to the grocery store before it closes)
<balsoft> It's so interesting
<balsoft> Being in different timezones :)
<monokrome> thnx samueldr <3 rebooting now
<balsoft> It's almost midnight for me
<samueldr> 15:40 here
<monokrome> hmmm didn't work :(
<balsoft> samueldr: Interesting, doesn't boot with my homemade UART to USB thing
<balsoft> Arduino I mean
<monokrome> oh well, I guess I don't really need X
<monokrome> Just a nice-to-have
<monokrome> It's funky that even VESA fails
SeasonsBeatings is now known as SeasonsGreetings
<monokrome> O_O
<balsoft> Hmm
<balsoft> That's even wierder
<balsoft> Now it kernel panics
<balsoft> And also my UART to USB is kinda bad
<{^_^}> [nixpkgs] @worldofpeace pushed to master « Revert "opencollada: 1.6.67 -> 1.6.68" »: https://git.io/fhJ0i
xy2_ has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #52704 → qlcplus: 4.11.2 -> 4.12.0 → https://git.io/fhJ0D
<balsoft> samueldr: do you think kernel panics are fixable?
<balsoft> Reboot didn't work back then
<balsoft> It's just then when any key on keyboard reboots it
<balsoft> samueldr: https://pastebin.com/8KSJhNtV
xy2_ has quit [Ping timeout: 250 seconds]
doyougnu has quit [Ping timeout: 268 seconds]
<zfnmxt> Is it possible to "extract" the configuration.nix from a certain generation? I made edits to my configuration.nix that broke my system, and I'm not sure what the working config was :D
<balsoft> zfnmxt: yes,
<balsoft> let me find the location cause I don't remember it
<zfnmxt> balsoft: Thanks :D
<balsoft> Hmm, can't find it
<balsoft> Pretty sure it was there
<zfnmxt> balsoft: I found a bunch of configuration.nix's in /nix/store
ilya-fedin has joined #nixos
<ilya-fedin> Hello. How can I specify in configuration custom configure flags for package and compile it on system rebuild?
<zfnmxt> But no idea what hash corresponds to what build...
<zfnmxt> Oh, nevermind. Those don't look like the same thing.
<zfnmxt> Ah, I'm an idiot. Those are just the man page entries >.>
<ilya-fedin> For example, I want to add to connman --enable-nmcompat and --with-dns-backend=systemd-resolved
doyougnu has joined #nixos
<balsoft> ilya-fedin: hello there!
<ilya-fedin> balsoft: :)
<balsoft> ilya-fedin: configureFlags
<balsoft> It's an option of stdenv.mkDerivation
<balsoft> You can use connman.override to do thet
<balsoft> connman.override { configureFlags = ["--enable-nmcompat" "--with-dns-backend=systemd-resolvd"]; }
ntd has quit [Quit: ntd]
Mr_Keyser_Soze has joined #nixos
<balsoft> zfnmxt: well, I'm pretty sure it's gone
<balsoft> I remember being able to find them
Mr_Keyser_Soze has quit [Remote host closed the connection]
arjen-jonathan has joined #nixos
<zfnmxt> balsoft: Oh well. Managed to figure out what worked, anyway. At least, partially working.
<zfnmxt> Trying to get Nvidia Optimus/Bumblebee working is really killing me :(
ryantm has quit [Ping timeout: 246 seconds]
doyougnu has quit [Quit: WeeChat 2.2]
duairc has joined #nixos
<ilya-fedin> balsoft: thank you
<{^_^}> [nixpkgs] @jacereda opened pull request #52705 → Fix sfml build on Darwin → https://git.io/fhJEy
<{^_^}> [nixpkgs] @ryantm merged pull request #52698 → qt5ct: 0.36 -> 0.37 → https://git.io/fhJB6
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fhJEp
<jomik> Hmmm, I seem to be hit by the glibc locale bug closed here https://github.com/NixOS/nixpkgs/issues/38991
<{^_^}> #38991 (by peti, 35 weeks ago, closed): glibc 2.27 breaks locale support
<jomik> This being closed means it wont be fixed?
orivej has joined #nixos
<monokrome> whoa... I set up vfio and now `lspci` hangs the entire box O_O
<balsoft> samueld: Are you here?
<Baughn> What are the staging-* branches about?
<Baughn> That is... I can guess, but I'm not finding documentation yet.
orivej has quit [Ping timeout: 250 seconds]
<jomik> How does a library with only zlib in rpath get to point at glibc-2.27?
balsoft has quit [Read error: No route to host]
kisonecat has joined #nixos
arjen-jonathan has quit [Ping timeout: 250 seconds]
<Baughn> jomik: Directly? Might be a spurious reference, I suppose.
<Baughn> Most libraries end up referencing glibc, one way or another. Are you making some special attempt to make sure yours doesn't?
<Baughn> Ah, thanks.
<worldofpeace> Baughn: They haven't documented it beyond the rfc yet I'm afraid
<monokrome> wtffff.... If I do `strace lspci -v` it works fine
<monokrome> If I do `lspci -v` the entire system hangs to the point where dmesg freezes before outputting anything and htop freezed as well
<monokrome> O_o
<jomik> Ah, no. It is causing an issue.
<jomik> openat(AT_FDCWD, "/nix/store/7gx4kiv5m0i7d7qkixq2cwzbr10lvxwc-glibc-2.27/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
<Baughn> Okay, so I assume that the library does reference glibc. (In the nix-store tree structure, I mean; i.e. glibc won't be GC'd while the library is still there.)
<jomik> Yeah, I guess zlib references it.
kisonecat has quit [Ping timeout: 246 seconds]
<Baughn> ...let me start over.
<Baughn> Of course zlib references glibc. Practically everything references glibc.
<Baughn> What makes you think there is an issue?
<Baughn> It's common for glibc routines to probe the system in that manner, causing a lot of failed opens.
* monokrome wonders if jomik and I are having the same issue, because my hang is happening during openat on /sys/bus/pci/devices/0000:05:00.0/config - which seems similar?
<jomik> The issue is the one I pasted in. It doesn't find the library it expects, because of some locale stuff.
<jomik> monokrome: No, luckily this is just my android sdk environment :P
<monokrome> ah
<Baughn> jomik: Can you rebuild the application you're running?
<jomik> aapt wont run, because it can not find the library it needs I guess.
<jomik> Baughn: I have done that multiple times :P
<Baughn> Have you installed it with nix-env?
<monokrome> My openat succeeds, but reading hangs
<Baughn> monokrome: That's no kind of libc bug. It's the /sys/ filesystem, which is backed by kernel drivers instead of on-disk files.
<Baughn> They can do basically whatever.
<Baughn> Not sure what reading config is supposed to do, but perhaps it pokes a hanging PCI device, and hangs as a result.
<monokrome> hmm
<monokrome> It's trying to read a device using vfio driver
<monokrome> I think
<Baughn> jomik: 'aapt' doesn't seem to be in nixpkgs.
<monokrome> oh nope
dgarzon has joined #nixos
<Baughn> Ah. ...hmm.
<Baughn> I have no clue how to fix that. :/
<jomik> :/
<Baughn> Looks like a patched binary, not something we're building from source code.
<jomik> Yup
<Baughn> There were some workarounds in the bug you linked. Have you tried those?
<Baughn> ...but the cause is probably that it was originally built against an older libc than the one it ends up running with.
<jomik> Nah, want to try that last really :D I am just gonna try to patch everything like the nixpkgs version does.
simukis has quit [Quit: simukis]
<dgarzon> Hi, I am trying to build a Docker image with dockerTools. I can build and load my image with dockerTool.buildImage, but when I use dockerTools.buildImageWithNixDb and then docker load < result, I am getting the following error: “68ae500b7aa7: Loading layer [=================================================> ] 15.12GB/15.13GB Error processing tar file(duplicates of file paths not supported):” I have ran “tar -tf result | sort | uniq
<dgarzon> grep -v '^ *1’” and “tar -tf layer.tar | sort | uniq -c | grep -v '^ *1’” and I cannot find any duplicate paths. Has anyone ran into this issue before?
<jomik> Well, the issue seems to be a bit different :D
simukis has joined #nixos
beaky has joined #nixos
<Baughn> dgarzon: At a pure guess, there might be multiple docker layers and it's aliasing something from a previous layer?
<{^_^}> [nixpkgs] @dywedir merged pull request #52690 → rosegarden: 18.06 -> 18.12 → https://git.io/fhJCH
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fhJu7
<dgarzon> Baughn when I untar the layer.tar I only see one layer defined :(
<Baughn> Only guess I've got. I've barely used docker.
<{^_^}> [nixpkgs] @jtojnar merged pull request #52702 → Boo destdir → https://git.io/fhJ0n
<{^_^}> [nixpkgs] @jtojnar pushed 10 commits to master: https://git.io/fhJuA
troydm has quit [Ping timeout: 252 seconds]
alex`` has quit [Quit: WeeChat 2.3]
<{^_^}> [nixpkgs] @rasendubi merged pull request #52668 → wt: 4.0.4 -> 4.0.5 → https://git.io/fhJmv
<{^_^}> [nixpkgs] @rasendubi pushed 2 commits to master: https://git.io/fhJzm
<jomik> Baughn: I got hat issue with aapt solved. I suppose I was missing a patch on some lib file, and it was then stripped.
<jomik> So I didn't actually get to see where aapt was looking for the file :D
<monokrome> So, apparently my video capture card powers down when it's not in use
<monokrome> If I use vfio_pci with it, vfio tries to read from it while powered down
* monokrome laughs
<dgarzon> I am trying something else and now dockerTools.buildImageWithNixDb fails with “error: creating directory '/tmp/nix-build-docker-layer-my-image.drv-0/layer/nix/store': Permission denied” I am inspecting the source code and see it happen after: “Generating the nix database..." Any ideas?
jomik has quit [Quit: WeeChat 2.2]
__monty__ has quit [Quit: leaving]
orivej has joined #nixos
<{^_^}> [nixpkgs] @veprbl opened pull request #52707 → bzflag: enable on darwin → https://git.io/fhJzd
<{^_^}> [nixpkgs] @dtzWill merged pull request #52657 → nlohmann_json: 3.4.0 -> 3.5.0 → https://git.io/fhJT3
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fhJzN
ddellacosta has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jtojnar opened pull request #52708 → Vala updates → https://git.io/fhJzj
<{^_^}> [nixpkgs] @dtzWill closed pull request #52574 → networkmanager: 1.12.2 -> 1.12.6 → https://git.io/fhvfo
Lears has joined #nixos
<{^_^}> [nix] @dtzWill opened pull request #2601 → Update nlohmann-json 3.0.1 -> 3.5.0 → https://git.io/fhJge
<{^_^}> [nix] @dtzWill closed pull request #2590 → nlohmann: 3.0.1 -> 3.4.0 → https://git.io/fpxq2
[Leary] has quit [Ping timeout: 268 seconds]
jtojnar has quit [Read error: Connection reset by peer]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dedalo has joined #nixos
[Leary] has joined #nixos
Lears has quit [Ping timeout: 240 seconds]
jtojnar has joined #nixos
Mateon1 has quit [Ping timeout: 245 seconds]
Mateon3 has joined #nixos
hamishmack has joined #nixos
<dgarzon> Has anyone seen this error when building a docker image with buildImageWithNixDb? “error: build of '/nix/store/z18vv8s5zfsx6lkv9w59wmswy5ypdqv5-nix-registration.drv' on 'ssh://dev-env-nix-docker' failed: invalid character '/' in name '/nix/store/cb0fi0yvrgrdj8kf6mvghj2b51hv0lcw-python2.7-ansible-2.3.1.0’”
Mateon3 is now known as Mateon1
<ilya-fedin> In continuation of yesterday's theme about the autostart of ModemManager.
<ilya-fedin> And /etc/systemd/system/modem-manager.service has appeared, but its contents is broken. It turned out that it links to /nix/store/v821wa5w90p4hsvz6xihw9rwpdvyvxq0-unit-modem-manager.service/modem-manager.service, to the package unit-modem-manager.service, in which only this file. However, the real unit file is located in
<ilya-fedin> I was advised to do this: `systemd.services.modem-manager.enable = true;`
<ilya-fedin> /nix/store/q4szg0r20859126lmkpa9p6nx09dbalv-modem-manager-1.7.990/etc/systemd/system/modem-manager.service. How to include the real unit file?
<ilya-fedin> *enable the real unit file
<{^_^}> [nixpkgs] @veprbl merged pull request #52707 → bzflag: enable on darwin → https://git.io/fhJzd
<{^_^}> [nixpkgs] @veprbl pushed to master « bzflag: enable on darwin (#52707) »: https://git.io/fhJgK
<{^_^}> [nixpkgs] @jtojnar pushed to staging « python3.pkgs.pygobject3: 3.30.2 → 3.30.4 »: https://git.io/fhJgQ
<domenkozar> ilya-fedin: that's upstream service
<domenkozar> that we don't use
<domenkozar> what's the actual error
<ilya-fedin> ```● modem-manager.service
<ilya-fedin> Loaded: bad-setting (Reason: Unit modem-manager.service has a bad unit file setting.)
<ilya-fedin> Active: inactive (dead)
<ilya-fedin> дек 23 03:08:06 nixos systemd[1]: modem-manager.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.```
<ilya-fedin> дек 23 03:07:53 nixos systemd[1]: modem-manager.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
troydm has joined #nixos
juhe has quit [Quit: Leaving.]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/780f2f30f2c (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<elvishjerricco> ilya-fedin: Can you post your nix code?
<ilya-fedin> Only for ModemManager? Or the whole?
<ilya-fedin> I just need usb_modeswitch to start when the modem is inserted. ModemManager provides udev rules for this.
freeman42x[nix] has quit [Ping timeout: 250 seconds]
ryantm has joined #nixos
Ariakenom has quit [Quit: Leaving]
<ilya-fedin> Hmm, there's hardware.usbWwan.enable
mkoenig has joined #nixos
juhulian has quit [Ping timeout: 244 seconds]
drakonis has joined #nixos
Drakonis__ has joined #nixos
drakonis1 has joined #nixos
<{^_^}> [nixpkgs] @MarcFontaine opened pull request #52710 → wsjtx: 1.9.1 -> 2.0.0 → https://git.io/fhJ2m
<dgarzon> Anyone know why https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/docker/default.nix#L810 would fail with “error: creating directory '/tmp/nix-build-docker-layer-jenkins-slave.drv-0/layer/nix/store': Permission denied”?
drakonis_ has quit [Ping timeout: 240 seconds]
drakonis has quit [Ping timeout: 252 seconds]
Drakonis__ has quit [Ping timeout: 252 seconds]
phreedom has quit [Remote host closed the connection]
drakonis1 has quit [Read error: Connection reset by peer]
phreedom has joined #nixos
ntd has joined #nixos
cyounkins has joined #nixos
<{^_^}> [nixpkgs] @orivej opened pull request #52711 → licenses: update SPDX IDs → https://git.io/fhJ2r
agander_ has quit [Quit: Leaving]