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
<ottidmes> is it possible to, in an overlay, have a package and its dependencies recursively be based on super rather than self? I now use (import super.path { overlays = []; }).pkg, is there any other / better way?
ferdek has left #nixos [#nixos]
<clever> reallymemorable: https://gist.github.com/cleverca22/ef075e5dfe092fa6b08cec0ae1dfde66 is the notes from when i was last using fetchgitPrivate
<clever> reallymemorable: something that ghci-backend is doing involves calling fetchgitPrivate somehow
<reallymemorable> fetchgitPrivate is not a package is it?
freeman42x has quit [Quit: Leaving]
<clever> reallymemorable: it is a function within nixpkgs, that is used to download focus-phonepush-worker
<{^_^}> [nixpkgs] @asymmetric opened pull request #56074 → go-ethereum: 1.18.21 -> 1.18.22 → https://git.io/fhdXn
<reallymemorable> so apparently after talkign to a colleague the build machine uses the same code
<clever> reallymemorable: using build slaves makes fetchgitPrivate a lot more complicated to use, which is why builtins.fetchGit is the better replacement
<reallymemorable> ok
<reallymemorable> my colleague is basically agreeing with you that your way is better
<reallymemorable> but there isn't capacity to change it at this time
<reallymemorable> so im trying to find a way to get this built locally in the meantime
<benwaffle[m]> When xquartz is installed, the font_cache file doesn't have @shell@ replaced (https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/x11/xquartz/font_cache#L1)
luigy has joined #nixos
eadwu has joined #nixos
mek42_laptop has quit [Remote host closed the connection]
mek42_laptop has joined #nixos
trevorriles has joined #nixos
<{^_^}> [nixpkgs] @asymmetric opened pull request #56075 → evmdis: init at unstable-2018-03-23 → https://git.io/fhdX4
<clever> benwaffle[m]: yeah, thats one solution
<clever> benwaffle[m]: replace @shell@ with $shell
<benwaffle[m]> i see @shell@ 38 times in the nixpkgs repo
<benwaffle[m]> and $shell nowhere
<reallymemorable> does anyone know of good linux / nix meetups in NYC?
<clever> benwaffle[m]: its usually handled by substituteAll
<clever> benwaffle[m]: which will replace @shell@ with the value of $shell for you
<benwaffle[m]> xquartz is using substituteInPlace
<clever> benwaffle[m]: but if your already using substituteInPlace, it would be simpler to --replace "@shell@" "$shell"
schneid3306 has quit [Quit: Quit.]
<{^_^}> [nixpkgs] @telotortium opened pull request #56076 → tt-rss: Fix syntax error in config.php DB_PASS field → https://git.io/fhdX0
Acou_Bass has joined #nixos
trevorriles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dbmikus_ has joined #nixos
jackdk has joined #nixos
<{^_^}> [nixpkgs] @fpletz pushed 3 commits to release-18.09: https://git.io/fhdXz
zopsi has joined #nixos
zopsi has quit [Excess Flood]
trevorriles has joined #nixos
zopsi has joined #nixos
zopsi has quit [Excess Flood]
zopsi has joined #nixos
zopsi has quit [Excess Flood]
trevorriles has quit [Client Quit]
zopsi has joined #nixos
zopsi has quit [Excess Flood]
reallymemorable has quit [Ping timeout: 246 seconds]
<benwaffle[m]> why do xorg-server and xquartz both provide very similar files? most of their file trees overlap. not sure how xquartz is set up in nix
<NemesisD> how do y'all do additional docker image setup with dockerTools? like for example, i need to create a /tmp dir
<NemesisD> oh nm it looks like runAsRoot is appropriate
copumpkin has joined #nixos
<{^_^}> [nixpkgs] @flokli merged pull request #56072 → nixos/gitlab: Introduce database pool size option → https://git.io/fhdPI
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/fhdX6
<{^_^}> [nixpkgs] @flokli merged pull request #56076 → tt-rss: Fix syntax error in config.php DB_PASS field → https://git.io/fhdX0
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/fhdXP
<{^_^}> [nixpkgs] @flokli merged pull request #56068 → firmwareLinuxNonfree: 2018-12-13 -> 2019-02-13 → https://git.io/fhdi2
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/fhdXX
<{^_^}> [nixpkgs] @pandaman64 opened pull request #56078 → Qiskit → https://git.io/fhdXM
luigy has left #nixos [#nixos]
<clever> NemesisD: runAsRoot has performance costs, due to needing to fire up a full qemu VM, i try to do things at runtime to avoid that
<{^_^}> [nixpkgs] @fpletz merged pull request #56054 → mautrix-whatsapp: init at 2019-02-11 → https://git.io/fhduY
<{^_^}> [nixpkgs] @fpletz pushed commit from @Vskilet to master « mautrix-whatsapp: init at 2019-02-11 (#56054) »: https://git.io/fhdXQ
<NemesisD> clever: performance at runtime or at image build time?
<NemesisD> also separate question, what package would i find chmod in?
goibhniu has quit [Ping timeout: 240 seconds]
Guanin has quit [Ping timeout: 258 seconds]
<clever> NemesisD: build-time performance
o1lo01ol1o has joined #nixos
<clever> $ realpath /run/current-system/sw/bin/chmod
<clever> /nix/store/alv34l2647n40h7svsrd52hjq28b399q-coreutils-8.30/bin/coreutils
<NemesisD> that's not such a big deal for me, i'll be building images infrequently and it makes sense to me to sacrifice some build time to have the image fully ready to run when its built
<clever> NemesisD: having /dev/kvm on the build machine counters most of that perf cost
<NemesisD> clever: thanks for the coreutils tip. about kvm, i'm on debian, is that a package i should install?
<clever> NemesisD: its a kernel driver, kvm-intel or kvm-amd, just modprobe it
thc202 has quit [Ping timeout: 245 seconds]
eadwu has quit [Quit: WeeChat 2.3]
jb55 has quit [Quit: WeeChat 2.3]
phizzz has quit [Ping timeout: 246 seconds]
eadwu has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
run500 has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
shibboleth has joined #nixos
andreabedini has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhd1k
Guest11162 has quit []
shibboleth has quit [Remote host closed the connection]
hc1^ has joined #nixos
sigmundv__ has quit [Ping timeout: 255 seconds]
silver has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @veprbl merged pull request #55993 → epkowa: support Epson Perfection V330 Photo → https://git.io/fh5hX
<{^_^}> [nixpkgs] @veprbl pushed commit from @bebehei to master « epkowa: support Epson Perfection V330 Photo »: https://git.io/fhd1W
trevorriles has joined #nixos
iqubic has quit [Quit: Connection closed for inactivity]
slack1256 has quit [Ping timeout: 244 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<{^_^}> [nixpkgs] @aanderse opened pull request #56079 → nixos/httpd: update documentation… → https://git.io/fhd18
hc1^ has quit []
trevorriles has quit [Ping timeout: 240 seconds]
hsrt^ has joined #nixos
Rusty1 has joined #nixos
vk3wtf has quit [Ping timeout: 250 seconds]
juliut has joined #nixos
juliut has quit [Client Quit]
DrLambda has joined #nixos
o1lo01ol1o has joined #nixos
DrLambda has quit [Read error: Connection reset by peer]
v0|d has joined #nixos
ost_ has quit [Remote host closed the connection]
ost has joined #nixos
jluttine has quit [Ping timeout: 250 seconds]
fusion809 has joined #nixos
ost has quit [Ping timeout: 246 seconds]
jluttine has joined #nixos
ng0_ has joined #nixos
kreisys has joined #nixos
asymmetric has quit [Ping timeout: 245 seconds]
slack1256 has joined #nixos
ng0 has quit [Ping timeout: 256 seconds]
fresheyeball has quit [Quit: WeeChat 2.2]
andreabedini has quit [Quit: Textual IRC Client: www.textualapp.com]
luigy has joined #nixos
<matthewbauer[m]> benwaffle: xorg-server vs xquartz hasn't been clearly setup
<matthewbauer[m]> I think we should try to cleanup some of that, but I don't think anyone has been using xquartz in a while
thomasd has joined #nixos
<thomasd> hi all, I'm trying to build a project using nix that uses the `julia` system dependency
<thomasd> in the nixpkgs commit I'm using, `julia` is aliased to `julia-1.0.3`
<thomasd> how do I fix `julia` to be `julia-1.1.0` instead, in my default.nix file?
luigy has left #nixos [#nixos]
<slack1256> if it has a version variable, try to set that and build
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<{^_^}> [nixpkgs] @artemist opened pull request #56080 → openafs_1_8: Include support for Linux 4.20 → https://git.io/fhdMB
rcshm_ has quit [Remote host closed the connection]
rcshm has joined #nixos
<srk> thomasd: there's julia_11 package
o1lo01ol1o has quit [Remote host closed the connection]
daniele- has joined #nixos
rcshm has quit [Remote host closed the connection]
rcshm has joined #nixos
o1lo01ol1o has joined #nixos
npmccallum_ has joined #nixos
npmccallum has quit [Ping timeout: 268 seconds]
theseriousadult has joined #nixos
luigy has joined #nixos
<theseriousadult> Anyone else unable to run any stack commands after update?
<theseriousadult> Getting the following error:
<theseriousadult> error: attribute 'ghc843' missing, at (string):1:29
<{^_^}> [nixpkgs] @matthewbauer merged pull request #56021 → cmake: add ability to cross-compile cmake → https://git.io/fhdOl
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to staging: https://git.io/fhdMd
<{^_^}> [nixpkgs] @matthewbauer merged pull request #55956 → glibc: enable cross builds on Darwin → https://git.io/fh513
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhdMF
<{^_^}> [nixpkgs] @matthewbauer merged pull request #55725 → Fix alpha-embedded Target on Hydra → https://git.io/fh7OG
<{^_^}> [nixpkgs] @matthewbauer pushed commit from @vincrusher to master « Fix alpha-embedded Target on Hydra (#55725) »: https://git.io/fhdMb
<{^_^}> [nixpkgs] @matthewbauer merged pull request #55910 → qt5.qtconnectivity: fix darwin build → https://git.io/fh5lj
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhdMA
<{^_^}> [nixpkgs] @matthewbauer merged pull request #55950 → darwin: remove references to Ubiquity.framework → https://git.io/fh56W
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhdMh
fusion809 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #54916 → emacs: link libXcursor when using lucid toolkit → https://git.io/fh16X
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhdDk
<{^_^}> [nixpkgs] @matthewbauer merged pull request #54402 → beohm-gc: fix cross build of dependent packages → https://git.io/fhzTx
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhdDI
countingsort has joined #nixos
counting1ort has quit [Ping timeout: 246 seconds]
drakonis has quit [Quit: WeeChat 2.3]
theseriousadult has quit [Quit: Leaving]
mobile_c has quit [Quit: Konversation terminated!]
pie__ has joined #nixos
steell has joined #nixos
<steell> anyone have experience setting up `plex-media-server` on NixOS with the latest Plex Pass binary version?
reallymemorable has joined #nixos
<clever> steell: ive set things up, without the plex pass
<clever> steell: this will run plex-media-player on full-screen on my tv
<clever> and thats the backend
pie_ has quit [Ping timeout: 245 seconds]
<steell> clever: looking for info on `pkgs.plex` rather than `pkgs.plex-media-player`, thanks though :)
<steell> basically, trying to follow this github comment: https://github.com/NixOS/nixpkgs/pull/52600#issuecomment-449188958
<steell> LnL: i think you authored that? ^
<apajx> i'm trying to run pokemon terminal, I've built it and installed it with pip (in user space) but I can't get it to run, its complaining about the module `pkg_resources` which I thought would be in setuptools? But perhaps not?
<clever> steell: yeah, looks like you simply want to use that override, with the URL plex gives you
<steell> clever: nixos-rebuild fails with `stat: no such file or directory`
<clever> steell: are you using an rpm package?
<steell> clever: yeah
<clever> steell: its possible that the new version is missing key files, can you pastebin the entire error?
<{^_^}> [nixpkgs] @matthewbauer merged pull request #54993 → wayland: separateDebugInfo = true → https://git.io/fhyTZ
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to staging: https://git.io/fhdDl
slack1256 has quit [Remote host closed the connection]
<steell> clever: extreme noob question: is there a way i can pipe the whole `nixos-rebuild build` output to a file? `nixos-rebuild build > out.txt` doesn't work :/
<clever> steell: 2>&1 > out.txt
<steell> ty ;)
<jackdk> steell: btw, clever's advice is true for any program that writes to standard error (stderr)
<steell> good to know!
eadwu has quit [Quit: WeeChat 2.3]
<steell> clever: https://paste.ee/p/9vkIm
<benwaffle[m]> matthewbauer: Xquartz from nix seems to work fine
<clever> steell: you would need to add a `set -x` at the start of installPhase, to be able to debug this further
dbmikus_ has quit [Ping timeout: 250 seconds]
vmandela has joined #nixos
<steell> clever: ah well that revealed the cause
<clever> steell: is there a file which doesnt exist?
<steell> ++ patchelf --set-interpreter /nix/store/7gx4kiv5m0i7d7qkixq2cwzbr10lvxwc-glibc-2.27/lib/ld-linux-x86-64.so.2 '/nix/store/y3a9kvq92h7svss3pv8ywhy8q49xqyr8-plex-1.15.0.659/usr/lib/plexmediaserver/Plex Media Server Tests'
<steell> stat: No such file or directory
<clever> that file isnt in nixpkgs master, and isnt in your rpm file
<steell> yup
<steell> this appears to be fixed in master
<steell> yeah
<clever> fixed in sept
rauno has joined #nixos
<steell> clever: is there a best practice for using packages from unstable in configuration.nix?
<clever> ,unstable steell
o1lo01ol1o has quit [Remote host closed the connection]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
rauno has quit [Ping timeout: 268 seconds]
ottidmes has quit [Ping timeout: 245 seconds]
tdbgamer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
ddellacosta has joined #nixos
hedning has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<vmandela> samueldr, ping
ost has joined #nixos
hiroshi has quit [Ping timeout: 255 seconds]
<steell> clever: now builds fine, but the service is failing to start
<steell> /nix/store/09g97li05qmmqkd8s8h27rll3qsjp11d-plex-x.xx.x.xxx/usr/lib/plexmediaserver/Plex Media Server: error while loading shared libraries: libsoci_core.so: cannot open shared object file: No such file or directory
ost has quit [Ping timeout: 246 seconds]
<clever> steell: is libsoci_core.so in /nix/store/09g97li05qmmqkd8s8h27rll3qsjp11d-plex-x.xx.x.xxx ?
<clever> ,locate libsoci_core.so
<{^_^}> Couldn't find in any packages
<steell> clever: it is
<clever> steell: under /lib/ ?
<clever> steell: or usr/lib/plexmediaserver ?
<steell> usr/lib/plexmediaserver/lib/libsoci_core.so
<clever> you may want to patch it to: "$out/usr/lib/plexmediaserver:$out/usr/lib/plexmediaserver/lib"
reallymemorable has quit [Ping timeout: 250 seconds]
<clever> or just throw in a mv to put the file in the right spot
mkoenig has joined #nixos
<steell> clever: makes sense, is there a nix func that can help me patch this in my overlay?
reinhardt has joined #nixos
<vmandela> what is the right way to delete a nixos profile created via "nixos-rebuild -p .." ?
<clever> steell: you could just append an extra line to the installPhase (similar to how you did set -x), and just mv that lib to the right spot
Richard[m] has joined #nixos
<steell> clever: ah right, it should be fine at the end
rcshm has quit []
<Richard[m]> hey, so I can cross compile like so 'nix build nixpkgs.pkgsCross.mingwW64.hello' with existing packages, but how would I do the exact same thing with a derivation like: https://github.com/Gabriel439/haskell-nix/blob/master/project0/project0.nix
<clever> Richard[m]: i believe you need to use nix-tools to cross-compile haskell, due to complications within cabal
<steell> clever: alright, everything is looking good, thank you for all the help!
<clever> steell: yep
reinhardt has quit [Quit: Leaving]
PeterHK has joined #nixos
<PeterHK> how to specify tmpfs with dockerTools? or do i need to do it when starting the container?
iqubic has joined #nixos
<bpye> Anyone here using gitolite? I can't seem to get key auth working..
<bpye> I keep getting prompted for a pw
<iqubic> It turns out that Steam Games can take up a boatload of space.
<bpye> Wait sorry, I'm super dumb
<bpye> The default user is gitolite, not git :)
phizzz has joined #nixos
<clever> Richard[m]: there is also #nix-tools
<Richard[m]> clever: thanks for the pointers. currently checking out how it's supposed to work.
<iqubic> clever: It turns out that the steam game Rocket League uses like 15 GB of space on its own.
<clever> iqubic: yeah, the games can be pretty heavy, ive been installing them to my NAS with 10tb of space
<clever> load times are slower, but i never have to worry about the desktop getting low
<iqubic> What is an NAS?
wfranzini has quit [Remote host closed the connection]
Rusty1 has quit [Quit: Konversation terminated!]
<clever> in my case, its just another nixos pc, with 3 4tb drives in a raidz1 setup (all zfs)
<iqubic> clever: the memory issues I had earlier with stuff running out of space was due to my games taking up way too much space.
* clever heads off to bed
<iqubic> clever: I have another machine I might dedicate to the sole purpose of downloading games.
<angerman> Richard[m]: check the documentation PR on https://github.com/input-output-hk/haskell.nix
<angerman> Richard[m]: that has a bit more of a tutorial like character.
fusion809 has joined #nixos
<angerman> Richard[m]: currently blocked on some GH permissions to publish Github pages. But that should hopefully happen soon :-/
<angerman> Richard[m]: also if you intend to do full windows stuff, you are likely going to want to look into the set of patches we use: See https://github.com/input-output-hk/iohk-nix/blob/master/config.nix
PeterHK has quit [Ping timeout: 256 seconds]
fusion809 has quit [Ping timeout: 268 seconds]
steell has quit [Ping timeout: 240 seconds]
ddellacosta has quit [Ping timeout: 255 seconds]
<teeAyy> with home-manager, is there a mapping to nix options? im trying to figure out how to configure mpd but services.mpd and programs.mpd dont exist
<Richard[m]> angerman: thanks! yeah, I'm looking to fully cross compile to windows.
simukis has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg merged pull request #54917 → vmware: move from services to virtualisation and add support for paravirtual controller → https://git.io/fh1X9
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fhdyN
vmandela has quit [Quit: Leaving]
endformationage has quit [Ping timeout: 246 seconds]
rcshm has joined #nixos
palo1 has joined #nixos
<eyjhb> If I need to open a LUKS volume at boot with a key, where is the correct place to put the key, and point `keyFile`? - Currently I have it in `/keys/external.bin`, and keyFile = "/keys/external.bin"
<eyjhb> But it doesn't seem to work.. Also, somehow my external is mounted BEFORE my internal /root...
PeterHK has joined #nixos
<PeterHK> what is the diff between (lib.getBin drv) and drv.outPath ?
palo1 is now known as palo
fusion809 has joined #nixos
<elvishjerricco> peterHK: As far as I understand, outPath just gets the first of a derivation's multiple outputs. getBin tried to get the bin output, or out of there is no bin
rcshm has quit []
hyper_ch2 has joined #nixos
dwdr has joined #nixos
jackdk has quit [Ping timeout: 244 seconds]
dramforever has joined #nixos
<{^_^}> [nixpkgs] @andir merged pull request #56071 → systemd: 239.20190110 -> 239.20190219 → https://git.io/fhdiX
<{^_^}> [nixpkgs] @andir pushed 2 commits to staging-next: https://git.io/fhdSn
<eyjhb> Any ideas why I get "error parsing derivation .. expected string Derive", when I enable the "keyFile" in "encrypted-disks.nix"
phizzz has quit [Ping timeout: 255 seconds]
<eyjhb> What can I do about this ? ```path '/nix/store/80h7w71izz11v7ys6zriz6bbkq75rgpg-initrd.drv' was modified! expected hash 'sha256:17hzyz47kyk7j591rb9pqlmpdlfwikk90lcamrngv6rghsiarcj8', got 'sha256:0ip26j2h11n1kgkz36rl4akv694yz65hr72q4kv4b3lxcbi65b3p'
<eyjhb> error: cannot repair path '/nix/store/80h7w71izz11v7ys6zriz6bbkq75rgpg-initrd.drv'
<eyjhb> ```
Makaveli7 has joined #nixos
aanderse has joined #nixos
dwdr has quit [Remote host closed the connection]
wfranzini has joined #nixos
aanderse_ has quit [Ping timeout: 264 seconds]
Ariakenom has joined #nixos
reinhardt has joined #nixos
rydnr has quit [Ping timeout: 256 seconds]
gagbo has joined #nixos
<florianjacob> tbenst: pie__ that xerox stuff you're linking looks like they're trying to ship their own print server instead of cups, or something like that. o.0 it will be very challenging to make that work with NixOS. https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=cups-xerox looks like there are ppd files available / „linux cups printer packages“ available for at least some xerox models, if something like that is availabl
<florianjacob> for your model then that would be the much easier option.
<{^_^}> [nixpkgs] @etu merged pull request #55997 → php: add pdo odbc support → https://git.io/fh5j2
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/fhdS1
rauno has joined #nixos
dwdr has joined #nixos
hsrt^ has quit []
zupo has joined #nixos
hc1^ has joined #nixos
johanot has joined #nixos
<teto> weird, when I add debug.traceValSeq, I get https://paste.ubuntu.com/p/NgGdsF2rHt/
<teto> (types.optionSet is deprecated; use types.submodule instead)
<{^_^}> [nixpkgs] @domenkozar merged pull request #47334 → autojump: new program.autojump.enable flag to automatically load autojump → https://git.io/fAAGy
<{^_^}> [nixpkgs] @domenkozar pushed 4 commits to master: https://git.io/fhd9I
<{^_^}> [nixpkgs] @etu merged pull request #56061 → radarr module: add more options and refactor → https://git.io/fhdoX
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/fhd9m
<{^_^}> [nixpkgs] @etu merged pull request #56062 → jackett module: add more options and refactor → https://git.io/fhdKL
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/fhd9Y
<{^_^}> [nixpkgs] @dguibert merged pull request #56041 → paraview: 5.5.2 -> 5.6.0 → https://git.io/fhdlr
<{^_^}> [nixpkgs] @dguibert pushed 2 commits to master: https://git.io/fhd93
zupo has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @dywedir opened pull request #56081 → skim: 0.5.2 -> 0.5.4 → https://git.io/fhd9G
<pbb> Hi, so I want to automate the build of a custom firmware for my robot vacuum cleaner with nix, but the build process requires setting up a loop-mount. How would I do something like that in a nix build environment since it usually requires root privileges.
<maurer> I've been getting a lot of 503s from cache.nixos.org (which resolve with repeated attempts) any idea what's up?
PeterHK has quit [Ping timeout: 256 seconds]
elgoosy has joined #nixos
ar1a has joined #nixos
<ar1a> gonna set up a small homelab on my old laptop, normally i use proxmox or something like that. any reason i should think otherwise and try nixos or something?
<elgoosy> hi, global node packages like npm -g i some-pkg do not 'work' well with nixos. How do you define/start a basic nodejs env with some global packages?
Makaveli7 has quit [Read error: No route to host]
<pbb> ar1a: nixos is really a different thing than proxmox. you can do a lot more with it, like declaratively building VMs and containers, and take advantage of the whole nix build system
neminis has quit [Quit: WeeChat 2.2]
Makaveli7 has joined #nixos
<pbb> elgoosy: why do you need global packages? I always use yarn2nix to build a node_modules directory, and then add node_modules/.bin to my PATH
<pbb> since yarn2nix builds every npm/yarn package as a nix derivation they will be stored in the nix store, so you use the same node package twice, it will not be downloaded again
<pbb> but then again I also never used npm install -g back when I used Arch, is there something special about globally installed packages?
<johanot> pbb: what you need the loop mount for?
<pbb> johanot: the build script for the custom firmware takes the "official" firmware, loop-mounts it and replaces some files
<pbb> it does make sense to do it this way other than it requiring root privileges
<ar1a> so i want to download https://pgl.yoyo.org/adservers/serverlist.php?hostformat=unbound&showintro=0&mimetype=plaintext, and add `include: "/path/to/blocklist"` to my unbound.conf. I also want to have a cronjob that fetches this file every week or so. How much of this can I do in nix or do I have to do it the old fashioned way
<johanot> pbb: could you somehow pull out the official firmware as a source (fixed-output) derivation, before entering the buildPhase?
<pbb> eh, how would that solve the problem?
rauno has quit [Ping timeout: 244 seconds]
_deepfire has quit [Ping timeout: 244 seconds]
<pbb> I am currently defining the firmware as a fetchurl in a let statement before my actual derivation and then just pass the variable to the buildscript where to find the firmware
<pbb> but it then tries to bind-mount this firmware and fails because it is not running as root
Ariakenom has quit [Quit: Leaving]
<srhb> pbb: Is there any way you can unpack/repack the firmware instead of operating on a loop mount?
<pbb> maybe, but it would require heavy modification of the upstream build process
<johanot> srhb: my words exactly :)
<srhb> pbb: You'll not be allowed to do the loop mount in a nix build unless you're willing to sacrifice a lot of the security and safety of Nix, and probably globally on your system.
<srhb> (Regardless of whether it's "sane" for this particular piece of software)
<dramforever> Maybe something like runInLinuxVM?
<srhb> That could work.
bbarker has quit [Ping timeout: 246 seconds]
<pbb> I guess I'll give that a try
<pbb> otherwise I would probably just build a derivation that gives me a build script that I can call manually as root
bbarker has joined #nixos
<dramforever> I think dockerTools uses runInLinuxVM to do some root-requiring stuff. I remember seeing QEMU boot messages in build logs.
_deepfire has joined #nixos
<srhb> It does, yes, for runAsRoot
<srhb> essentially the same logic.
<johanot> ah "runInLinuxVM" almost forgot that :)
daniele- has quit [Quit: daniele-]
<johanot> would you recomond requiring that to produce fixed-output as well?
<johanot> recommend*
<{^_^}> [nixpkgs] @vcunat pushed 198 commits to master: https://git.io/fhd9P
ar1a has left #nixos ["WeeChat 2.3"]
<{^_^}> [nixpkgs] @domenkozar pushed 3 commits to release-18.09: https://git.io/fhd9X
Ariakenom has joined #nixos
<pbb> dramforever: how would I build my derivation with root privileges using runInLinuxVM?
<teto> maurer: I think I 've seen some talk about problems with the new hosting fastly. Might be it ?
<srhb> johanot: Not necessarily.
<srhb> johanot: Usually my runInLinuxVM things are fine as input-derived hashes, because they usually change whenever I make any change.
rauno has joined #nixos
Glider_IRC__ has joined #nixos
Glider_IRC_ has quit [Ping timeout: 250 seconds]
slidercrank has quit [Ping timeout: 246 seconds]
dermetfan has joined #nixos
<{^_^}> [nixpkgs] @fpletz pushed 4 commits to staging-18.09: https://git.io/fhd9A
goibhniu has joined #nixos
<offlinehacker> How do you install nix on ubuntu in multi-user mode?
<srhb> offlinehacker: sh <(curl https://nixos.org/nix/install) --daemon
<offlinehacker> ahh so new installer has a daemon mode
<offlinehacker> but i need all nix binaries in PATH due remote builds, or i get error that nix-store is not found
<offlinehacker> i tried with manually compiling it, but i have issue with libeditline not beeing found
<{^_^}> [nixpkgs] @Ma27 opened pull request #56082 → python3Packages.pyopencl: fix build → https://git.io/fhdHm
__Sander__ has joined #nixos
<dramforever> pbb: Still here? Check this: http://ix.io/1ByZ
<pbb> yes, still here.
<pbb> thanks, that looks like it will solve my problem
<dramforever> Basically (vmTools.runInLinuxVM myDerivation) runs your derivation in a VM as root
<pbb> yeah I figured that out from the docker nix files
<dramforever> Not quite sure if mknod is the right way to deal with the lack of loop devices, but it seemed to work
<pbb> actually right now I'm failing because the disk image is too small
<pbb> any way to make it bigger?
reallymemorable has joined #nixos
<dramforever> Wait, that paste wasn't the working one
<dramforever> ^ Ignore this sentence
<{^_^}> [nixpkgs] @vcunat pushed to release-18.09 « openscad: enableParallelBuilding = false; »: https://git.io/fhdHB
reallymemorable has quit [Ping timeout: 255 seconds]
^W has quit [Ping timeout: 252 seconds]
hydraz has joined #nixos
<dramforever> pbb: Try cd into /tmp/xchg before building?
thc202 has joined #nixos
<pbb> cp: cannot create regular file 'firmware.pkg': Permission denied
<pbb> it can not write to /tmp/xchg
<dramforever> Probably not the best idea, but it looks like /tmp/xchg is a virtual file system of (build directory)/xchg
<dramforever> Well *shrug*
<dramforever> I'm not familiar with this either :P
reinhardt has quit [Quit: Leaving]
<pbb> hey, it builds :-)
<pbb> thanks a lot dramforever
<pbb> dramforever++
<{^_^}> dramforever's karma got increased to 1
<dramforever> eh, you're welcome :)
<{^_^}> [nixpkgs] @vbgl merged pull request #55694 → ocamlPackages.yojson: 1.4.1 -> 1.6.0 → https://git.io/fh7f4
<{^_^}> [nixpkgs] @vbgl pushed to master « ocamlPackages.yojson: 1.4.1 -> 1.6.0 »: https://git.io/fhdHD
<pbb> there are still some impurities in there
<pbb> this nodejs build system called "pkg" wants to download its own version of nodejs
<pbb> or actually it downloads nodejs for armv7 or something because that's what the robot runs
fusion809 has quit [Ping timeout: 250 seconds]
<pbb> not so nice how I do it currently with a fixed-output derivation, but to be honest it's enough for me for now
<{^_^}> [nixpkgs] @jtobin opened pull request #56083 → urbit: 0.6.0 -> 0.7.3 → https://git.io/fhdH5
dramforever has quit [Remote host closed the connection]
ThatDocsLady has joined #nixos
dramforever has joined #nixos
asymmetric has joined #nixos
Boomerang has quit [Ping timeout: 250 seconds]
Jetien_ has joined #nixos
Guanin has joined #nixos
dramforever has quit [Remote host closed the connection]
dramforever has joined #nixos
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/185ab27b8a2 (from 11 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
reinhardt has joined #nixos
<das_j> Little question about the channels: What's the difference between the nixpkgs-channels branch nixos-18.09 and the nixpkgs branch release-18.09?
<das_j> Oh wait, is the release-18.09 branch what hydra builds and nixos-18.09 where hydra advances the channel to afterwards?
reinhardt has quit [Ping timeout: 240 seconds]
pie_ has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/55757a0d44d (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<dramforever> Basically yes. The same script put up files and redirects at https://nixos.org/channels/nixos-18.09 and updates NixOS/nixpkgs-channels https://github.com/NixOS/nixos-channel-scripts/blob/master/mirror-nixos-branch.pl
<das_j> dramforever: So if my (backported) commit is on nixpkgs/release-18.09, Hydra will build that at some point and then push to nixpkgs-channels/nixos-18.09?
<das_j> And probably same with master and nixos-unstable?
ubert has joined #nixos
ar1a has joined #nixos
<dramforever> yeah basically that
<ar1a> does someone know why nix-env is just hanging like this https://i.imgur.com/91pFynJ.png
<ar1a> freshly installed
<das_j> dramforever: Thank you
<dramforever> Isn't really hydra itself that does this. It's another script.
<das_j> Yes, the perl thing you sent me probably
<{^_^}> [nixpkgs] @ciil opened pull request #56084 → atlassian-jira: 7.13.0 -> 8.0.0 → https://git.io/fhdQB
<dramforever> ar1a: It should eventually complete. But don't do that. Use 'nix-env -iA nixos.git'
<das_j> Oh, how do hydra projects/jobsets map to the channels and repos? Is there documentation on that?
<{^_^}> [nixpkgs] @Ma27 opened pull request #56085 → buildEnv: improve file check to avoid false-positives → https://git.io/fhdQ0
<dramforever> nix-env -f '<nixpkgs>' -iA git, a bit longer, but you can make an alias like nixpkgs="nix-env -f '<nixpkgs>'"
metastance has quit [Quit: WeeChat 1.4]
<ar1a> dramforever: thanks
<ar1a> now im getting error: opening lock file '/nix/var/nix/profiles/per-user/root/profile.lock': Permission denied
<ar1a> hah wtf
<dramforever> How did you even have that happen
<ar1a> i dont know, im not even on root user
<ar1a> and the per-user dir doesn't exist
<ar1a> time to paste my configuration.nix...
hyper_ch2 has quit [Quit: Page closed]
<dramforever> ar1a: can you try doing whatever you were doing in bash?
<ar1a> same problem
<dramforever> Hmm
<manveru> `nix-env -iA nixos.git` too?
<dramforever> Run 'readlink ~/.nix-profile' and 'env | grep NIX' and paste the outputs
<ar1a> manveru: thats what ive been running, but it was doing the same on both
<manveru> and i guess you don't have strace installed yet
<ar1a> i can install it globally
<manveru> that's what i usually check when something hangs
<ar1a> give me 2 secs, need to reboot my other pc cos a kernel update broke half my programs
<manveru> oO
<pie_> does su -l into your user not work for getting a shell with an updated environment?
<ar1a> i was sshing in actually
reinhardt has joined #nixos
<pie_> which is to say this is a problem im running into
__monty__ has joined #nixos
<ar1a> manveru: the issue isnt it hanging, i just wasn't patient enough
<ar1a> now i cant install anything with nix-env
<dramforever> ar1a the first link is not right
<dramforever> ln -s /nix/var/nix/profiles/per-user/{your-user-name}/profile
<{^_^}> [nixpkgs] @vcunat pushed to master « grub2: patch to work with updated binutils »: https://git.io/fhdQp
<dramforever> ln -s /var/nix/profiles/per-user/{your-user-name}/profile ~/.nix-profile
<ar1a> dramforever: more problems https://i.imgur.com/RdPMMfH.png
<ar1a> how does this even happen lmao
dramforever has left #nixos ["Leaving"]
dramforever has joined #nixos
<ar1a> wb
<dramforever> this is probably fine
<dramforever> keep going with nix-env
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/cb0e20d6db9 (from 5 days ago, history: https://channels.nix.gsc.io/nixos-18.03)
<ar1a> you were right
<dramforever> (I hit Ctrl-W and get a tab close instead of word gone every now and then, but whatever)
hamishmack has quit [Excess Flood]
<dramforever> How did you even get that link wrong :P
<ar1a> idk blame nix ;_;
<manveru> can someone with merge superpowers please take care of https://github.com/NixOS/nixpkgs/pull/53873 ?
<{^_^}> #53873 (by tilpner, 5 weeks ago, open): tahoe-lafs: 1.12.1 -> 1.13.0
lovek323 has quit [Quit: Connection closed for inactivity]
rauno has quit [Ping timeout: 255 seconds]
<nikivi> I installed gitAndTools.git-hub package
<nikivi> but `which hub` returns nothing
<manveru> nikivi: it's called git-hub
fendor has joined #nixos
<manveru> also available via `git hub`
hyper_ch2 has joined #nixos
<nikivi> with git-hub I don't need git right?
<nikivi> as separate nix package I mean
init_6 has joined #nixos
<nikivi> tried git-hub, which hub returns nothing
<ar1a> you do
<ar1a> but i think you need it to invoke the git command anyways
<manveru> hub and git-hub are different packages
<ar1a> git hub looks like a subcommand of git
<manveru> ,locate bin/hub
<{^_^}> Found in packages: wraith, gitAndTools.hub.bin, haskellPackages.hub
<manveru> ,locate bin/git-hub
<{^_^}> Found in packages: gitAndTools.git-hub
<nikivi> `git: 'hub' is not a git command.`
<nikivi> so what can I do to install hub on my system (darwin)?
<nikivi> with brew I just `brew install hub` and it works
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/b75eab88bde (from 2 days ago, history: https://channels.nix.gsc.io/nixos-unstable)
<nikivi> I tried https://paste.ee/p/GvXVZ
<ar1a> git-hub is the wrong command
<ar1a> nikivi: wants to install https://github.com/github/hub
<ar1a> so you want gitAndTools.hub
<__monty__> Then they should install gitAndTools.hub, not git-hub.
<ar1a> yep
ma27 has quit [Quit: WeeChat 2.2]
<callahad> nikivi: I think you want to install "gitAndTools.hub"
<nikivi> oh nice, that works
<__monty__> ar1a: RTFY ; )
<ar1a> and yes, with gitAndTools.hub, you don't need git installed
<ar1a> but if you want to commit or anything i'd imagine you do actually need git installed because the only binary exposed is hub
<nikivi> I thought hub wraps git
<nikivi> so with hub installed, when I run `git ..` it runs hub
<nikivi> something like this
zupo has joined #nixos
<ar1a> nope. from what im gathering it looks like running `hub clone ar1a/dotfiles` it'll just call `git clone https://github.com/ar1a/dotfiles`
<ar1a> https://hub.github.com/hub.1.html as well as this not having any `commit` command
<ar1a> looks like you'll need both
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/19a0543c628 (from 4 days ago, history: https://channels.nix.gsc.io/nixos-18.09)
<__monty__> Doesn't hub come with a GUI where you can do all the staging/committing/merging/etc.?
<ar1a> not that i can see, but ive never used it so take what im saying with a grain of salt
dminuoso has joined #nixos
ma27 has joined #nixos
zupo has quit [Ping timeout: 246 seconds]
<ar1a> well it wasn't documented
<ar1a> but it does fork out to git, so you dont need it installed
<ar1a> so nikivi was right! https://i.imgur.com/mrVN9et.png
<dminuoso> Hiya. A plain `nix-env -qaP` gives me the following error message: error: cannot import '/nix/store/clcgscrkwim6cnf18nkcngmy5rx0pzfm-source', since path '/nix/store/xx9g3kfhjlixfhlpi5xp48ddj6n01b7d-source.drv' is not valid, at /nix/store/qd5kayd5gv9nnbmvrsxp4cs8aj8b5rzn-home-manager/home-manager/tests/default.nix:14:1
<dminuoso> This is on a rather fresh nixos installation.
<symphorien> what happens if you use nix search instead ?
<dminuoso> symphorien: Appears to work.
<ar1a> that fails for me too
<ar1a> this works though nix-env -qaPA 'nixos' git
hedning has quit [Quit: hedning]
hedning has joined #nixos
<{^_^}> [nixpkgs] @clefru opened pull request #56087 → Hostapd bump → https://git.io/fhd78
sigmundv__ has joined #nixos
hellrazor has joined #nixos
ericsagnes has quit [Ping timeout: 268 seconds]
xkapastel has joined #nixos
hedning has left #nixos [#nixos]
hedning has joined #nixos
<das_j> infinisil: Maybe the acme hook unit needs wantedBy = [multi-user.target] to ensure that it's run in the case of reboot (request service didn't start yet) + modification of the hooks (nix shouldn't restart the unit because it wasn't activated in the first place)
regulus_ has quit [Ping timeout: 246 seconds]
hiroshi has joined #nixos
regulus_ has joined #nixos
asymmetric has quit [Ping timeout: 246 seconds]
dramforever has quit [Quit: Leaving]
reallymemorable has joined #nixos
<ptotter[m]> a question, if I may: I'm now running nixos on several servers. I'd like to version control configs
<ptotter[m]> that should be easy, just put them in git
<ptotter[m]> but I'd like to separate secrets, and maybe other variables, to small files included from configuration.nix
hedning has quit [Remote host closed the connection]
<ptotter[m]> that way I wouldn't have to worry about making a git checkout with the configuration.nix files of several servers
hedning has joined #nixos
<ptotter[m]> any ideas how to achieve that?
<Taneb> ptotter[m]: I've had some success with https://github.com/sobolevn/git-secret
hedning has left #nixos [#nixos]
<ptotter[m]> that's not quite what I had in mind, but thank you
dwdr has quit [Remote host closed the connection]
dwdr has joined #nixos
hedning has joined #nixos
<ptotter[m]> more like import [ secrets.nix ]; # secrets.nix in .gitignore and then
<ptotter[m]> services.foobar.password = secrets.foobar;
ericsagnes has joined #nixos
reallymemorable has quit [Ping timeout: 272 seconds]
hyper_ch2 has quit [Quit: Page closed]
<{^_^}> [nixpkgs] @oxij opened pull request #56088 → all-packages.nix: move defaults to package files continues^3 → https://git.io/fhd7d
<pie_> ptotter[m], secrets are a long running problem with nix(os)
<pie_> at least, as far as i understand
<pie_> theres a github issue somewhere
<ptotter[m]> yes, I know about secrets in nix-store, but this isn't about that
<pie_> ok
silver has joined #nixos
<lassulus> krops has secrets support via passwordstore
<ptotter[m]> more about how to modularize configuration.nix
iqubic` has joined #nixos
weebull[m] has joined #nixos
iqubic has quit [Ping timeout: 250 seconds]
<clefru> ptotter[m]: just put "let secrets = import ./secrets.nix; in ..." at the top of it.
<clefru> brb
clefru has quit [Remote host closed the connection]
<ptotter[m]> clefru: ah, that's the syntax, thanks
<ptotter[m]> still quite new to nix
rauno has joined #nixos
<infinisil> das_j: oh good point
reinhardt has quit [Quit: Leaving]
ottidmes has joined #nixos
thomasd has quit [Ping timeout: 256 seconds]
dwdr has quit [Remote host closed the connection]
dwdr has joined #nixos
rauno has quit [Ping timeout: 250 seconds]
justanotheruser has quit [Ping timeout: 250 seconds]
tv has quit [Ping timeout: 272 seconds]
Makaveli7 has quit [Quit: Leaving]
clefru has joined #nixos
zupo has joined #nixos
Makaveli7 has joined #nixos
reallymemorable has joined #nixos
gagbo has quit [Ping timeout: 250 seconds]
reinhardt has joined #nixos
<dhess> Anyone around who knows about the new "Vault approle support" that just went into NixOps?
schjetne has quit [Ping timeout: 272 seconds]
dermetfan has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @fadenb opened pull request #56089 → aptly: 1.2.0 -> 1.3.0 → https://git.io/fhd56
dermetfan has joined #nixos
tv has joined #nixos
reallymemorable has quit [Ping timeout: 240 seconds]
asymmetric has joined #nixos
zimbatm has joined #nixos
dwdr has quit [Remote host closed the connection]
dwdr has joined #nixos
<{^_^}> [nixpkgs] @vincrusher opened pull request #56090 → alpha-embedded: isAlpha code Added → https://git.io/fhddU
dwdr has quit [Remote host closed the connection]
dwdr has joined #nixos
dwdr has quit [Remote host closed the connection]
dwdr has joined #nixos
<Twey> Just found this command in my build output: gcc -pthread -shared -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.2.11/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.6.0.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.2.6/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.2.4/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.2.1/lib
<Twey> -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.18.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.26.0/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-6.3p08/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.1-20181027/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-1.0.2q/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.2.11/lib
<Twey> -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-bzip2-1.0.6.0.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-expat-2.2.6/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-xz-5.2.4/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-libffi-3.2.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.18.1/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-sqlite-3.26.0/lib
<Twey> -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-readline-6.3p08/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ncurses-6.1-20181027/lib -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-openssl-1.0.2q/lib build/temp.linux-x86_64-3.7/pandas/_libs/hashtable.o -L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-python3-3.7.2/lib -lpython3.7m -o
<Twey> build/lib.linux-x86_64-3.7/pandas/_libs/hashtable.cpython-37m-x86_64-linux-gnu.so
<Twey> Oops, that was longer than I thought it was, apologies
reallymemorable has joined #nixos
<init_6> wtf?
<Twey> I'm very confused
<srhb> Twey: Looks like some nuked references.
<LnL> Twey: are those actual e's?
<srhb> Twey: (As in /pkgs/build-support/nuke-references/builder.sh)
<Twey> LnL: Yeah
<Twey> srhb: Hmmmm
<LnL> yeah, then something used nuke-references for those paths
<Twey> Ah, I see
<Twey> So it decided they're not actually needed
regulus_ has quit [Ping timeout: 246 seconds]
<LnL> no not necessarily, nuke-references breaks stuff it it's actually required
<srhb> Twey: It's a very big sledgehammer when you're *sure* those references won't be needed. If they were needed, something's broken.
<Twey> It seems like the thing linked okay so I guess this is fine
_deepfire has quit [Ping timeout: 244 seconds]
regulus_ has joined #nixos
reallymemorable has quit [Ping timeout: 258 seconds]
<LnL> strange, looks very suspicious to me
<{^_^}> [nixpkgs] @danbst merged pull request #56079 → nixos/httpd: update documentation… → https://git.io/fhd18
<{^_^}> [nixpkgs] @danbst pushed commit from @aanderse to master « nixos/httpd: update documentation to reflect changes from https://github.com/NixOS/nixpkgs/pull/54529 (#56079) »: https://git.io/fhddG
Guanin has quit [Ping timeout: 258 seconds]
<LnL> usually it's only used for things like a version string in a binary that point to the path of gcc
_deepfire has joined #nixos
<LnL> it's there to show what gcc the binary was built with and should not be treated as a runtime dependency
dwdr has quit [Remote host closed the connection]
<srhb> The fact that those paths are /lib also looks bad..
<srhb> Well, potentially.
ng0_ is now known as ng0
<Twey> It's from a pytest build
<Twey> Of pandas
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/4277563ac9a (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
agander has joined #nixos
eyjhb is now known as eyJhb
rprije has quit [Ping timeout: 245 seconds]
_lawlesseel has quit [Remote host closed the connection]
Church- is now known as aleph-
_lawlesseel has joined #nixos
fendor_ has joined #nixos
_lawlesseel has quit [Remote host closed the connection]
_lawlesseel has joined #nixos
infinee has joined #nixos
Makaveli7 has quit [Quit: Leaving]
fendor has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @fpletz merged pull request #56084 → atlassian-jira: 7.13.0 -> 8.0.1 → https://git.io/fhdQB
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to master: https://git.io/fhdd4
Mateon3 has joined #nixos
Mateon3 is now known as Mateon1
Mateon1 has quit [Ping timeout: 246 seconds]
eadwu has joined #nixos
eadwu has quit [Quit: WeeChat 2.3]
ij has joined #nixos
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fhdda
eadwu has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « git-annex: update sha256 hash for version 7.20190219 »: https://git.io/fhddV
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fhdd6
<{^_^}> [nixpkgs] @7c6f434c merged pull request #56088 → all-packages.nix: move defaults to package files continues^3 → https://git.io/fhd7d
<{^_^}> [nixpkgs] @7c6f434c pushed 26 commits to master: https://git.io/fhddi
steell has joined #nixos
<laas> question: does the NixOS minimal installation ISO not have any wifi capability?
<gchristensen> it does
<laas> what does it use?
<gchristensen> wpa_supplicant I think?
<laas> neither nmcli or netctl are available
<laas> oh thanks
<lassulus> yes, wpa_supplicant, you need to create /etc/wpa_supplicant.conf manually
<laas> I've never actually used that directly
<gchristensen> the manual has an example of how to do it
<{^_^}> [nixpkgs] @ivegotasthma opened pull request #56091 → vimPlugins.coc: init at 19.02.2019 → https://git.io/fhddS
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fhddQ
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhdd7
<srhb> laas: I think it actually has nmtui from the next release.. Which will make this simpler, but doesn't help you right now :P
schjetne has joined #nixos
BlessJah has quit [Remote host closed the connection]
<gchristensen> really? minimal disk isn't getting not-minimal, is it?
<ivegotasthma> vscode is not in the repos?
<gchristensen> ,unfree ivegotasthma :)
<{^_^}> ivegotasthma :): You cannot install your unfree software? See https://nixos.wiki/wiki/FAQ/unfree
<ivegotasthma> ugh
<lassulus> it is, pkgs.vscode
<ivegotasthma> bamboozled again
<das_j> gchristensen: Is there a list of these , snippets?
<srhb> gchristensen: Hmm, might just be the graphical one.
<ivegotasthma> gchristensen: thank you might soul demon
<ivegotasthma> mighty*
<srhb> ,
<{^_^}> Special commands: find tell locate - Commands sorted by use count, page 0 (use ,<n> to view page <n>): tofu library IFD unfree escape'' -A libraries declarative paste help unstable callPackage stateVersion pr profiling escape" overlay which-channel imperative xy exec NUR fancy-uninstall howoldis ping channels loot nixlang++ pills xml configsearch jDwhat pinning runtimeDeps stuck timer cloak error nixGL smart-questions tias upgrade wololo dontask
<srhb> das_j: ^
<das_j> Thanks :)
<srhb> das_j: Probably want to query it for these things in private messages
<das_j> Yes, I already thought that
BlessJah has joined #nixos
<srhb> :)
Guanin has joined #nixos
<gchristensen> my PM with {^_^} is a hilarious series of me saying ,tofu, and it saying 000.0000
<Taneb> gchristensen: same number of 0s as cards in a pack of playing cards
<betawaffle> does anyone here use networkd on a device that has multiple ethernet ports?
<Taneb> (that's how I remember it)
<das_j> I like wololo
<srhb> Taneb: Nice, I just memorized it stupidly..
goibhniu has quit [Ping timeout: 255 seconds]
<Taneb> srhb: there's not really a wrong way to memorize something
<srhb> I think yours is less expensive than mine :P
kp__ has joined #nixos
<Taneb> That's fair
ost has joined #nixos
goibhniu has joined #nixos
<gchristensen> oh nice,
<gchristensen> Taneb:
<ivegotasthma> vscode can be built to be fully open source, but I don't see the package in the repos, can I try to package it as open source?
agander has quit [Ping timeout: 250 seconds]
<ivegotasthma> Arch for example has both proprietary and oss version
<gchristensen> I sort of suspect it hasn't been done because it is very tricky
<LnL> gchristensen: we should add something for that
<gchristensen> LnL: that it is the same as a deck of playing cards?
<gchristensen> but yes, of course -- it would be nice to not have the proprietary one, ivegotasthma
justanotheruser has joined #nixos
<ivegotasthma> gchristensen: I'll give it a shot, thanks
<LnL> like fetchurl { url = https://example.org; sha256 = "-"; } or whatever
<gchristensen> ohh yeah
<ivegotasthma> lassulus: yeah, this is the microsoft version
<ivegotasthma> thanks though, it's good to have a reference :)
<LnL> or builtins.tofu :p
<gchristensen> haha
<{^_^}> [nixpkgs] @gmarmstrong closed pull request #52694 → nodePackages: regenerate → https://git.io/fhJ8c
<LnL> was the plugin stuff for builtins merged?
<gchristensen> yep
agander has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus merged pull request #56073 → vivaldi: 2.3.1440.41-1 -> 2.3.1440.48-1; vivaldi-ffmpeg-codecs: 72.0.3626.96 -> 72.0.3626.109 → https://git.io/fhdPY
<{^_^}> [nixpkgs] @NeQuissimus pushed 2 commits to master: https://git.io/fhdF4
realrokka has quit [Remote host closed the connection]
zupo_ has joined #nixos
realrokka has joined #nixos
zupo has quit [Ping timeout: 246 seconds]
<Taneb> I don't have a good mnemonic for remembering what {^_^} is called, though
neminis has joined #nixos
kp__ has quit [Quit: WeeChat 2.3]
hellrazor has quit [Quit: WeeChat 2.4]
kp__ has joined #nixos
<gchristensen> my nickname is Joy
<__monty__> Hmm, is the tofu hash base32 encoded? Anywhere I can find out details of the encoding?
<ivegotasthma> s it a problem if I borrow code from an arch linux package for making a nixos package?
<gchristensen> I wouldn't fret
<srhb> ivegotasthma: Not unless a license somehow prevents you from doing so. Which I doubt.
lord| has quit [Ping timeout: 244 seconds]
<ivegotasthma> :+1:
<gchristensen> they look at ours, we look at theirs, habitat.sh looks at ours and theirs ...
<__monty__> What license do nixpkgs expressions fall under?
<srhb> __monty__: MIT, generally.
<srhb> __monty__: ("Generally" because we might include patches and whatnot inline in the repo that are not under the same license)
<infinisil> And in the readme: "Note: MIT license does not apply to the packages built by Nixpkgs, merely to the package descriptions (Nix expressions, build scripts, and so on). It also might not apply to patches included in Nixpkgs, which may be derivative works of the packages to which they apply. The aforementioned artifacts are all covered by the licenses of the respective packages."
<gchristensen> srhb: okay, update on my autorandr thing -- the dock I connect to is super crappy apparently (despite being first-party hardware!) and sometimes just fails to pass on the proper monitor data
<gchristensen> so autorandr was doing the right thing ("make it big please") and the kernel was saying "you're crazy, this monitor can't be that big!"
<nbp> niksnut: I will look for a mic …
<niksnut> thanks :-)
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vmandela has joined #nixos
asymmetric_ has joined #nixos
agander has quit [Ping timeout: 255 seconds]
asymmetric has quit [Ping timeout: 246 seconds]
steell has quit [Ping timeout: 246 seconds]
<eyJhb> How can I install g++? I get unexpected stuff when I do `nix-shell -p g++`
illegalprime has joined #nixos
wedens has joined #nixos
<ivegotasthma> is there a way I can drop into the build environment of a package so I can play around with the process of building it?
<ivegotasthma> I faintly remember something with nix-shell along those lines
pointfourone has joined #nixos
pointfourone has quit [Remote host closed the connection]
random_yanek has quit [Quit: random_yanek]
<srhb> gchristensen: I think I'm experiencing something along the same line.
<srhb> gchristensen: I'm also experiencing a thing where it seems when docking/undocking, sometimes I lose all outputs, causing the X server to crash.
<Taneb> There doesn't seem to be a way to pass options to Haddock in the haskell builder infrastructure
markus1189 has joined #nixos
<{^_^}> [nixpkgs] @Twey opened pull request #56092 → pythonPackages.pandas: 0.23.4 -> 0.24.1 → https://git.io/fhdNl
zik_[m] has joined #nixos
random_yanek has joined #nixos
random_yanek has quit [Max SendQ exceeded]
<{^_^}> [nixpkgs] @Twey closed pull request #56092 → pythonPackages.pandas: 0.23.4 -> 0.24.1 → https://git.io/fhdNl
random_yanek has joined #nixos
elgoosy has quit [Remote host closed the connection]
<{^_^}> [nixos-weekly] @domenkozar pushed to master « Add 2019/03 »: https://git.io/fhdNo
<{^_^}> [nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of '2275936fee0fbeaa446fcb540493d8a3bcb5e2e1' commit built by Travis-CI \#496022590 »: https://git.io/fhdNM
<ivegotasthma> if I have a dependency that depends on yarn packages, is it better to install them using yarn or to use the nixos packages?
orivej has quit [Ping timeout: 255 seconds]
<Taneb> Hmm, I could make a pull request that means every single Haskell package would need to be rebuilt, and I'm not even sure it lets me do what I want to do
<srhb> Taneb: Things like that usually go in the haskell-updates branch and it's not something to worry about, if you think the change is worth it (and doesn't break compat too much)
<srhb> Taneb: Full Hackage rebuilds are honestly not that scary.
Zgrokl has joined #nixos
reallymemorable has joined #nixos
<Taneb> srhb: it's scary for me to test if it works, mostly
<srhb> can't you test it on a few packages?
<Zgrokl> hello just installed latest nix on debian, when i nix-env -i cpu got 100% and everything crash
<symphorien> ,-A Zgrokl
<{^_^}> Zgrokl: You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<symphorien> nix-env -i without arguments installs all of nixpkgs
<symphorien> nix-env -iA does not have this trap
<Taneb> srhb: it's adding an option ("haddockFlags ? []") that I want for one thing locally and will almost always be left as default. The one thing I want it for has a lot of dependencies
<srhb> Taneb: I don't see how this prevents testing :)
<srhb> Taneb: Honestly, it sounds safe to me!
zupo has joined #nixos
<Taneb> srhb: oh, it's absolutely safe, like being on the observation deck of a skyscraper
<srhb> Taneb: :-P Let me know if you want someone to take a look, if that'll help you feel safer.
<Taneb> srhb: thanks for the reassurance
<Zgrokl> symphorien: what's is <nixpkgs> ?
<symphorien> it is a shorthand for "/path/to/a/local/copy/of/nixpkgs"
<symphorien> it is managed with nix-channel
<Taneb> srhb: so, should I make a PR targetting haskell-updates?
reinhardt has quit [Quit: Leaving]
endformationage has joined #nixos
rauno has joined #nixos
rauno has quit [Remote host closed the connection]
fendor_ is now known as fendor
daniele- has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/a9358c4356e (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nefix has joined #nixos
hiroshi has quit [Ping timeout: 255 seconds]
agander has joined #nixos
<nefix> Hello! I'm trying to add https://github.com/VSCodium/vscodium. Right now I have https://paste.ofcode.org/326PG44qLK8bQna4vCDhcfV, but it's throwing me 'unpacker produced multiple directories'. How should I proceed?
<mara[m]> does anyone know how to set up `riot-web` on nixos? i've managed to install it by specifying the package, but i'm not sure what configuration settings it has and how to start it, couldn't find any documentation but maybe i didn't look in the right place—it *looks* like it can create a config.json in https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/instant-messengers/riot/riot-web.nix
<das_j> Is cache.nixos.org having troubles?
<samueldr> das_j: what kind of troubles are you experiencing?
eadwu has quit [Quit: WeeChat 2.3]
<das_j> samueldr: Transferred partial files for 1-2 rebuilds. Now it works
<nefix> mara[m]: I had the samme issue and ended up with this: https://paste.ofcode.org/33bG7Edm9hLSf6CyqRSFhdJ
<samueldr> das_j: do you still have the exact errors it gave, for statistical purposes
<das_j> warning: unable to download 'https://cache.nixos.org/nar/02plp2nk0x96m6cdgxfv9im4lg1445yw9ximmm428fb65m20pfyi.nar.xz': HTTP error 200 (curl error: Failure when receiving data from the peer); retrying in 304 ms
<samueldr> not the first time the new cache servers somehow need a couple (e.g. 1-2) retries to complete successfully
<das_j> and a few times:
<das_j> warning: unable to download 'https://cache.nixos.org/nar/1rycflcyha2kkynzhdf4hx28jm4yabyaiighpc0gqszadw80gd92.nar.xz': HTTP error 200 (curl error: Transferred a partial file); retrying in 258 ms
eadwu has joined #nixos
<mara[m]> nefixthank you ! though this is different, as it uses the default site (https://riot.im/app) completely bypassing the local package
<nefix> mara[m]: Yeah, the local package isn't the electron app that other distros might have, it's just the website source
<bbarker> what's a good way to quickly get at some nix haskell libraries from ghci? If I try e.g. nix-shell -p haskellPackages.unliftio -p ghc, I cannot `import Control.Monad.IO.Unlift` in ghci.
dhess has quit [Remote host closed the connection]
dhess has joined #nixos
<infinisil> bbarker: `nix-shell -p 'haskellPackages.ghcWithPackages (p: with p; [ unliftio ])' --run ghci
<simpson> I'm not sure whether `haskellPackages.ghcWithPackages` or `ghc.withPackages` is right. But one of those.
<srhb> haskellPackages.ghcWithPackages.
<srhb> Or, if you need a different version, haskell.packages.ghc(someversion).ghcWithpackages
o1lo01ol1o has joined #nixos
<bbarker> great, thanks, working well
ixxie has joined #nixos
<mara[m]> nefixthat… makes sense, right, okay, so to do it locally it'd have to serve the `/nix/store/...-riot-web-0.17.6` through a webserver somehow, oh i see there's also a https://github.com/Ralith/riot-electron-nix
<nefix> mara[m]: I haven't tried that
ixxie has quit [Ping timeout: 255 seconds]
<noonien> does anyone have remote build servers by any chance? i'm looking to fire up a GCE instance when i need to build something, and shut it down once it's finished
zupo_ has joined #nixos
zupo has quit [Ping timeout: 255 seconds]
jasongro` has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed 5 commits to master: https://git.io/fhdx2
jasongrossman has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @NeQuissimus pushed 4 commits to release-18.09: https://git.io/fhdxr
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/fa82ebccf66 (from 14 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
<{^_^}> [nixos-weekly] @domenkozar pushed to master « Add 2019/03 »: https://git.io/fhdxo
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shane has joined #nixos
shane has left #nixos [#nixos]
<{^_^}> [nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of '08f0e7010a4bf84e0b6ff56ddb147c328a940050' commit built by Travis-CI \#496052834 »: https://git.io/fhdxi
<{^_^}> [nixos-weekly] @domenkozar pushed to master « Add 2019/03 »: https://git.io/fhdxX
billsun has joined #nixos
steell has joined #nixos
duairc has joined #nixos
ThatDocsLady has quit [Ping timeout: 255 seconds]
<{^_^}> [nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of '5a415769c5674d295e8b0dcf0036ce9b30176571' commit built by Travis-CI \#496056363 »: https://git.io/fhdxD
<ivegotasthma> is it possible to disable the sandbox for a nixpkg?
<ivegotasthma> ,sandbox
<ivegotasthma> ,
<{^_^}> Special commands: find tell locate - Commands sorted by use count, page 0 (use ,<n> to view page <n>): tofu library IFD unfree -A escape'' libraries declarative paste help callPackage stateVersion unstable pr profiling escape" overlay which-channel xy imperative exec howoldis NUR fancy-uninstall jDwhat nixlang++ ping channels loot pills wololo xml configsearch nixGL pinning runtimeDeps stuck timer cloak dontask error smart-questions tias upgrade
<immae> ivegotasthma: __noChroot = true
<immae> (and sandbox needs to be set to "relaxed" to allow that)
<{^_^}> [nixpkgs] @Taneb opened pull request #56093 → haskell-modules/generic-builder.nix: add haddockFlags option → https://git.io/fhdxQ
<samrose_> opinions sought: why would adding kernelPatches to buildLinux result in https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/cd-dvd/sd-image-aarch64.nix not being able to use the configuration settings in `pkgs/os-specific/linux/kernel/common-config.nix`?
<ivegotasthma> immae: on nixos I still have sandbox as true
<ivegotasthma> and I cannot override this
<immae> then I think you cannot
<ivegotasthma> only for a single vim plugin that needs some npm packages
Tucky has quit [Quit: WeeChat 2.2]
<Taneb> srhb: made that PR :)
<{^_^}> [nixos-weekly] @domenkozar merged pull request #76 → Call for Content: 2019/03 → https://git.io/fh9xC
<{^_^}> [nixos-weekly] @domenkozar pushed 3 commits to production: https://git.io/fhdxx
<immae> ivegotasthma: for that you can have a look at npm2nix
<{^_^}> [nixos-weekly] @domenkozar pushed to master « Call for Content: 2019/04 »: https://git.io/fhdxp
<{^_^}> [nixos-weekly] @domenkozar opened pull request #79 → Call for Content: 2019/04 → https://git.io/fhdxh
<ivegotasthma> immae: I ran node2nix on the project, but I'm not sure if I can include the packages to the override
daniele- has quit [Quit: daniele-]
<immae> I’m not very familiar with it, you should look at the documentation to use it
<laas> is it intentional that nonfree firmware is no longer included by default?
<immae> but you cannot escape the sandbox if the option is set to sandbox=true
<laas> I did a rebuild recently and my system began failing KMS because of this...
<{^_^}> [nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Release of (commit '18c80c5e6d0c443a03f4543b500d0c982214bdb9') built by Travis-CI \#496059216 »: https://git.io/fhdpv
<nefix> Sorry for telling this again. I'm trying to port https://github.com/VSCodium/vscodium, but I'm really struggling with it. Could someone please help me? Thanks!
<domenkozar> NixOS Weekly #03 - Kubenix, kernel regressions and jobs - https://weekly.nixos.org/2019/03-kubenix-kernel-regressions-and-jobs.html
<simpson> Nice.
Baughn has quit [Quit: ZNC 1.6.2+deb1 - http://znc.in]
<infinisil> domenkozar: That numbering is a bit odd, I'd have used an ever increasing sequence, you'll get multiple results when you search for NixOS weekly #n how it is now
<immae> nefix: what did you try to do so far?
Baughn has joined #nixos
<nefix> immae: I tried to adapt the already existing vscode package and this: https://paste.ofcode.org/326PG44qLK8bQna4vCDhcfV
<domenkozar> infinisil: yeah wasn't started by me
<domenkozar> so changing it now is even more confusing
<domenkozar> I think?
<infinisil> I wouldn't mind having it changed, better now than later
<infinisil> Could also make an entry for this change in the next weekly
<immae> nefix: it’s the same building process but only different version and package to download?
<nefix> immae: I have no idea. They give you a tar.gz, but I have no idea how to handle it
Guanin has quit [Ping timeout: 257 seconds]
<immae> then you should maybe start by looking at that :)
Ariakenom has quit [Quit: Leaving]
steell has quit [Ping timeout: 246 seconds]
<nefix> immae: basically it's the same as vscode but they run some scripts to disable telemetry
<immae> So if it’s basically the same, you could reuse the same building process as the existing one
<nefix> and since microsoft binaries are propietary, I have no idea what they do to the code
<nefix> I tried, but I wasn't able to make it work. It gave me "is not of type `package'."
<vmandela> samueldr, ping
<samueldr> hi, busy at work, but I think I have a feel of what you want :)
<immae> nefix: The paste you gave above is incomplete if you compare it to https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/vscode/default.nix
Ariakenom has joined #nixos
<nefix> immae: yeah, I copied the vscode one and changed just the URL and the sha, but it gave me that error
asymmetric_ has quit [Quit: Leaving]
jabranham has joined #nixos
<immae> I’ll need more precision, it seems to me that you simply misused it rather than an error in the derivation itself
<samueldr> hi, I had some concerns about the implementation of the tests in #45345, mostly didn't want to recommend doing that hacky stuff to reduce copy/paste in the tests framework, anyone has a better idea?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/45345 (by vmandela, 26 weeks ago, open): nixos/install-grub: include child configs in grub menu
<samueldr> (this uh, has been waiting for a while)
ddellacosta has joined #nixos
<immae> nefix: if you take the https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/vscode/default.nix file as is and use it the same way as you did, does it work?
<immae> (note: for later, you should learn about derivation overrides, it would ease patches like that)
<Izorkin> Please check PR #54903 #51902 #44343
<{^_^}> https://github.com/NixOS/nixpkgs/pull/54903 (by Izorkin, 3 weeks ago, open): pythonPackage.psutil: 5.4.8 -> 5.5.1
<{^_^}> https://github.com/NixOS/nixpkgs/pull/51902 (by Izorkin, 10 weeks ago, open): mariadb.galera: 25.3.24 -> 25.3.25
<{^_^}> https://github.com/NixOS/nixpkgs/pull/44343 (by Izorkin, 28 weeks ago, open): mariadb: 10.2.17 -> 10.3.12
steell has joined #nixos
<nefix> immae: https://paste.ofcode.org/348PQBSV3jx3WkTPL8Ns9xn and after that (import ./vscodium.nix)
<vmandela> samueldr, understood. just wanted to sync with you. Please drop a line on the PR if there are any suggestions from other reviewers. I will be online for only a few more hours today. thanks.
<samueldr> vmandela: yeah, I really like the feature you revived, and would hope it's ported to the other bootloaders too, afterwards
Guanin has joined #nixos
<immae> nefix: in this case you should use `callPackage ./vscodium.nix {}`
<immae> Your file is a function, not a derivation directly
<nefix> I see
<immae> (that’s what I meant with misuse, your derivation is probably fine, the error is in the way you’re using the file)
rcshm has joined #nixos
Guanin has quit [Ping timeout: 246 seconds]
alex`` has joined #nixos
knupfer has joined #nixos
Ariakenom has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @fpletz merged pull request #56028 → weechat: 2.3 -> 2.4 → https://git.io/fhdsj
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to master: https://git.io/fhdpX
johanot has quit [Quit: WeeChat 2.2]
<nefix> immae: it's not working https://paste.ofcode.org/Je9vKMKGjCxZhfYV6T59P5: unpacker produced multiple directories
<immae> it’s another problem there
<immae> You should check the downloaded github file
<immae> you may need to unpack it correctly if it unpacks by default in a single directory
<nefix> not sure what you just said
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @dotlambda merged pull request #55916 → mbed-cli: 1.8.3 -> 1.9.1 → https://git.io/fh5Rp
<{^_^}> [nixpkgs] @dotlambda pushed 3 commits to master: https://git.io/fhdpS
<nefix> immae: ?
<immae> he complains that the file he downloaded was unpacked in more than one directory
init_6 has quit []
<immae> so he doesn’t know which one to chose
o1lo01ol1o has joined #nixos
<nefix> when is it unpacking the files? Also why it has to choose a file?
ikitat has joined #nixos
<immae> unpacking is the first step of the build
<immae> and it choses a directory to "cd" into it and start the build
<ottidmes> nefix: you want to use sourceRoot = "."; unless you are only interested in one of the directories, then you want sourceRoot = "interesting-dir";
ij has quit [Ping timeout: 255 seconds]
<nefix> ottidmes: oooooo!!! It's working!! Thanks!!!! <3
agander has quit [Ping timeout: 245 seconds]
<dminuoso> Mmm. Im having serious trouble with my resolver. `host` gives me an answer whereas `curl/wget/firefox` fail to resolve the same hostnames.
<dminuoso> What could be going on here?
<{^_^}> [nixpkgs] @dotlambda pushed 3 commits to python-unstable: https://git.io/fhdhe
rcshm_ has joined #nixos
<ottidmes> caching? try dig google.com @resolver-ip, e.g. dig google.com @1.1.1.1
zik_[m] has left #nixos ["User left"]
<dminuoso> ottidmes: Okay I have no clue whats going on here. If I use dig directly, Im not getting *any* A records.
<dminuoso> If I use `host` with hostnames that are definitely not cached, I get IP addresses.
<ottidmes> dminuoso: I shouldnt be so focused on host reporting correct values while the others do not, better focus on why dig does not report any A records, does it not work for any resolver? or does it work for e.g. 1.1.1.1
iqubic` has left #nixos ["ERC (IRC client for Emacs 26.1)"]
<dminuoso> ottidmes: Im on a train trying to get through the captive portal
<dminuoso> (Since I have a rather plain linux I have no WISPr detection magic)
<dminuoso> So I can only use the DHCP assigned nameserver
schjetne has quit [Ping timeout: 255 seconds]
dermetfan has quit [Ping timeout: 255 seconds]
schjetne has joined #nixos
<ottidmes> dminuoso: then I am afraid I won't be of any help
waleee has joined #nixos
<srhb> Taneb: Cool, looks good. I'm suddenly in doubt whether they'll prefer staging over haskell-updates, but I'm sure peti or bas will weigh in on that :)
nefix has quit [Quit: Page closed]
<Taneb> srhb: well, it's out of my hands for now
<dminuoso> ottidmes: wireshark suggests that dig is sending the DNS query out slightly differently
<dminuoso> so its not a dig issue
<dminuoso> But... perhaps it might be related
<dminuoso> let me wireshark with `curl`
<srhb> Taneb: Yep yep, it's fine!
<Taneb> At least until someone puts it back into my hands and suggests changes ;)
__Sander__ has quit [Quit: Konversation terminated!]
<srhb> Taneb: It was mostly a preemptive "sorry if I lead you astray, you can blame me if it feels better" :-P
<Taneb> :P
<simpson> Hm. I'm noticing a pattern of slow builds on my Darwin machine, with almost no CPU being allocated to tasks that I know should be CPU-limited. I don't have much experience with Darwin; is this typical of the platform, or is my machine misconfigured?
erasmas has joined #nixos
drakonis has joined #nixos
<eon`> hi, got some weird error while updating my system configuration in 19.03: https://www.friendpaste.com/6SCDtB6uD4a39e3pHRhdtx
<eon`> if someone has some clue
<srhb> eon`: I think this is the symptom of the supersized shebang kernel bug
<eon`> hmm what's this bug ?
<srhb> eon`: Do you have a generation with an older kernel you can boot into first?
<gchristensen> +1 almost definitely
<eon`> srhb: yes
<srhb> eon`: That's the way to go then!
<srhb> eon`: You'll then be able to skip straight to a kernel without the bug
<srhb> eon`: After you update your channels etc :)
<dminuoso> Not bad. So apparently this DNS server refuses to answer if I send an additional OPT record, even though it contains nothing..
<dminuoso> This is brilliant.
<dminuoso> DNS resolving is not that hard.
<srhb> eon`: (The bug, in short, causes long shebang lines like in switch-to-configuration to not work anymore, and as you might have noticed from your output, suddenly bash is interpreting a perl script and failing hard)
<eon`> srhb: ok, I see
<eon`> thanks !
<{^_^}> [nixpkgs] @srhb merged pull request #56083 → urbit: 0.6.0 -> 0.7.3 → https://git.io/fhdH5
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fhdh1
<srhb> eon`: Sure thing.
Ariakenom has joined #nixos
<{^_^}> [nixpkgs] @srhb merged pull request #56074 → go-ethereum: 1.18.21 -> 1.18.22 → https://git.io/fhdXn
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fhdhN
johanot has joined #nixos
<WilliamHamilton[> people of nixos, how do you download video files from firefox (for example, there is a plugin called videoDownloadHelper, but it requires a companion program that I don't understand how to install), so asking for the general problem
<srhb> WilliamHamilton[: I hear youtube-dl supports various non-youtube-things
<srhb> WilliamHamilton[: Never tried it though.
<reallymemorable> I tried the following command and got the following error. Does this mean the user is somehow not created yet?
<reallymemorable> [root@nixos:/home/gort]$ chown nixbld /home/gort
<reallymemorable> chown: invalid user: 'nixbld'
<{^_^}> [nixpkgs] @asymmetric opened pull request #56095 → solc: make z4 dependency optional → https://git.io/fhdjJ
vidbina has joined #nixos
<WilliamHamilton[> srhb: let's see in my usecase
wfranzini has quit [Remote host closed the connection]
<srhb> reallymemorable: Usually yes, but why are you doing this?
<srhb> reallymemorable: (They're usually called nixbld1..N, but what you're doing seems suspect)
<reallymemorable> I am trying to trouble shoot an issue when compiling a program -- nixbld didnt have access to my ssh keys
<WilliamHamilton[> srhb: unfortunately I have to kinda scrap the page before getting to the video, and youtube-dl isn't capable of doing that by himself
<gchristensen> nixbld should _not_ have access to your SSH keys, reallymemorable
steell has quit [Ping timeout: 272 seconds]
<reallymemorable> so i have to assign to each of tthe nixbld(s)?
<gchristensen> what are you trying to do?
<srhb> WilliamHamilton[: Aw, okay..
<gchristensen> no, nixbld shouldn't have any ssh keys
<reallymemorable> so I assign it to each of the nixbld1, nixbld2, etc?
<srhb> reallymemorable: It depends how you're trying to fetch the thing. In some cases, your user (and only your user) should have access to the key, in some cases the nix-daemon user should (usually root)
<srhb> reallymemorable: No.. What are you trying to fetch and how? :)
<reallymemorable> will giving nix-daemon access to the ssh keys give the nix builders access to th ekeys?
<srhb> reallymemorable: It depends how you're fetching the thing.
<srhb> reallymemorable: That's why I'm asking.
<gchristensen> ,X-Y
<gchristensen> ,XY
<reallymemorable> the program relies on a lot of private git repositories that dont use the current fetchGit funcion in Nix
<gchristensen> I don't know how this dang thing works, but what are you trying to accomplish? because the way you think you wnant to do it is almost certainly thewrong way
<reallymemorable> and i can't change them
<srhb> reallymemorable: Giving the builders, or the daemon, access to your keys will not really help you in this case. You won't be able to get network access without making a fixed output derivation, and custom calling git from within a nix expr will almost certainly not give you a fixed output derivation.
<srhb> Unless you do, in essence, exactly what fetchGit and friends do already.
<catern> is there a way to get a shell inside a Nix builder sandbox? or something like that?
<srhb> catern: There was a talk on nixcon 2018 about this.
<srhb> Well, roughly.
<reallymemorable> currently the staging machine that builds this project gives nix builders access to a specific set of ssh keys used to build the project
<gchristensen> github.com/mic92/cntr
<ottidmes> reallymemorable: if your cannot change the Nix sources, but want them to use a different fetcher than they use right now, you could do something somewhat hacky, by using an overlay to replace the fetcher they currently use with the one you want to use
<srhb> catern: What gchristensen said :)
<infinisil> ,xy
<{^_^}> xyproblem is when you want to do X, and you think Y is how, so you ask about Y instead of X. See <http://www.perlmonks.org/index.pl?node_id=542341> or <http://mywiki.wooledge.org/XyProblem>
matijja has joined #nixos
<catern> srhb: gchristensen: that doesn't seem directly related to the task of getting a shell inside a Nix builder sandbox
<gchristensen> search https://nixos.org/nixpkgs/manual/ for cntr
<gchristensen> I think it'll help?
<{^_^}> [nixpkgs] @dotlambda pushed to python-unstable « python.pkgs.paster-pastedeploy: fix tests compatibility with PasteDeploy 2+ »: https://git.io/fhdj8
<catern> aha, I see, breakpointHook
<catern> that seems indeed useful
<judson_> I switched my Neovim configs over to home-manager, and I'm seeing a few little glitches from that. How small a club am I in?
<reallymemorable> ok thanks guys
<{^_^}> [nixops] @davidak opened pull request #1101 → Fix gollum example → https://git.io/fhdj0
drakonis has quit [Quit: WeeChat 2.3]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/44f78998bbb (from 16 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
endformationage has quit [Quit: WeeChat 2.3]
endformationage has joined #nixos
phizzz has joined #nixos
pie_ has quit [Read error: Connection reset by peer]
pie_ has joined #nixos
<{^_^}> [nixpkgs] @Infinisil opened pull request #56096 → murmur_git: Fix → https://git.io/fhdjM
ost has quit [Remote host closed the connection]
ost has joined #nixos
ThatDocsLady has joined #nixos
ost has quit [Ping timeout: 255 seconds]
Ariakenom has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fhdjj
<{^_^}> [nixpkgs] @srhb merged pull request #56095 → solc: make z3 dependency optional → https://git.io/fhdjJ
Zgrokl has quit [Quit: WeeChat 2.3]
<{^_^}> [nixpkgs] @srhb merged pull request #56089 → aptly: 1.2.0 -> 1.3.0 → https://git.io/fhd56
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fhFef
shibboleth has joined #nixos
<{^_^}> [nixpkgs] @srhb merged pull request #56081 → skim: 0.5.2 -> 0.5.4 → https://git.io/fhd9G
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fhFeT
<Mic92> catern: you can also ask the author otherwise.
<lejonet> srhb: you here?
ThatDocsLady has quit [Ping timeout: 252 seconds]
<srhb> lejonet: I am :)
<lejonet> srhb: :D want to help me debug why my ceph test claims that override on super.ceph.override doesn't exist?
<srhb> lejonet: Yeah, it's because of the way the ceph attributes are inherited down.. Let me check out that branch again.
<clever> lejonet: .override is added by .callPackage(s)
<clever> srhb: callPackages is supposed to prevent that kind of issue
<clever> 1835 ceph = callPackage ../tools/filesystems/ceph {
<clever> hmmm, that should just work?
<clever> > pkgs.ceph.override
<{^_^}> <LAMBDA>
<clever> and it does, in normal nixpkgs
<srhb> clever: In there branch it's something like inherit (callPackage ...) ceph ceph-client
<clever> srhb: i believe thats what callPackages is for
<clever> 530 inherit (callPackages ../data/fonts/arphic {})
<clever> 531 arphic-ukai arphic-uming;
<clever> it will recursively add .override to every attr in the set
<srhb> clever: Yup :) Fixed it yesterday, but stashed it. :-)
rydnr has joined #nixos
<lejonet> srhb: yeah, that is kind of what I've managed to figure by googling, but I'm not sure how to fix it :P
<srhb> lejonet: Literally what clever said :) Replace callPackage in all-packages.nix with callPackages
dbmikus has joined #nixos
<lejonet> srhb: oh, my mind didn't really register a difference lol :P
<srhb> It's subtle!
<lejonet> It is indeed, I blame weird day at work :P
<srhb> lejonet: Next up is figuring out why ceph-mgr-aio bails.
<lejonet> srhb: yeah, I recall that there was a way to build the VM outside of the test, so that you can run the test manually to figure that out
<srhb> lejonet -A driver
<lejonet> srhb: according to its docs, it shouldn't need anything more after it got its keyring
<srhb> lejonet: monitor data directory at ... is empty, have you run mkfs?
<srhb> Hmm maybe that's not the root cause.
<lejonet> yeah, that gets fixed later
<lejonet> The biggest "problem" is the fact that it gets to the ceph target before any of the daemons are actually setup in the beginning
vmandela has left #nixos ["Leaving"]
<johanot> srhb: the ceph module could really use "easyCerts" :)
<lejonet> so there are a lot of false negatives in the start up
<lejonet> johanot: "easyCerts"?
<Nivpgir> why is my nix search not finding any packages on a fresh installation? even things which should exist... for example: nix search -u htop gives no results
<srhb> johanot: :-P Get back to merging in the dependency improvements
<johanot> lejonet: an option we added for the kubernetes module to basically auto-bootstrap :)
<lejonet> johanot: haha
<johanot> and ceph is all about keys, just like kubernetes. so I guess the module _could_ use an "enableEasyMode" option after all
fendor has quit [Ping timeout: 244 seconds]
<johanot> srhb: aye aye :P
<srhb> johanot: Assuming you agree. It sounded to me like solid improvements.
<lejonet> johanot: well, they are all about keys, but they aren't certs :P
<johanot> "easyKeys"? :P
<srhb> ceph is a lot easier to bootstrap than kubernetes
<srhb> Famous last words, I know, but..
<lejonet> well, its more the fact that bootstraping non-cert keys that it uses isn't that simple, but its a novel idea that is definitively doable :)
<johanot> srhb: if you only consider auth, then yes
<johanot> setting up crushmap, bootstrapping osds etc. I just wish more of that could be done in a declarative way
<srhb> Of course :)
<reallymemorable> This error is because nix builders can't read my config file, right? Because I know that the config file exists and the keys have been used by other machines.
<lejonet> johanot: in theory, at least the "source" for the CRUSH map could be done declarative
wedens has quit [Quit: Connection closed for inactivity]
<srhb> reallymemorable: Sandboxed builds can't see your filesystem at all.
<srhb> reallymemorable: Though there's not a lot of output there..
<reallymemorable> but it's set to no sandbox
<reallymemorable> i must be missing something obvious
<srhb> It's hard to say.. But I think you're going down a path that will lead to a lot of pain and surprising behaviour. Is there any way you can have all the deps available as a local directory tree instead? Like say with submodules.
<srhb> reallymemorable: What you're doing to, seemingly, defeat Nix here, is going to cause hard-to-debug issues down the road, even if you get it working.
<srhb> reallymemorable: Maybe you have an expression we can look at?
<johanot> lejonet: right. My dream is to have my crushmap as one big attrset with all my osd's declared there as well. But that would of course imply auto adding and removing osd's on system switch.
<johanot> (in a safe manner) <- that last part is difficult
<lejonet> johanot: yeah, the crushmap is very mappable to a attrset
<reallymemorable> srhb: these are in the codebase: https://paste.ofcode.org/vmdRat37HGhtARHD9LzNh4
<{^_^}> [nixpkgs] @rycee merged pull request #55575 → Eclipse: 2018-09 -> 2018-12 → https://git.io/fhQ8i
<{^_^}> [nixpkgs] @rycee pushed 3 commits to master: https://git.io/fhFeD
<reallymemorable> some repos are used by ssh agents, some are private, and some are submodules
sigmundv__ has quit [Ping timeout: 244 seconds]
<reallymemorable> there is no way for us to change the dependencies because we license them and do not own them
timor has joined #nixos
<srhb> reallymemorable: That usually doesn't stop me. :-P
<timor> Is this the right channel for hydra-related questions?
<srhb> reallymemorable: But I don't think I have enough information to really help a lot. I can vaguely handwave that if you're using git directly from within your build, you're likely doing something wrong. You probably also want builtins.fetchgit for private repos.
<srhb> timor: Yup.
<timor> Is there a way to either a) pin a certain package (build step) to a specific build machine, or b) prevent a certain machine from building said package, without having to override (which I suspect will change the hash) the `requiredSystemFeatures` attribute of the underlying derivation?
<srhb> timor: A feature unique to the machine should do a)
<srhb> timor: b) it does not.
<colemickens> nice article
<timor> srhb: Hmm maybe my question was a bit unclear. I am familiar with the features behavior, I want to know whether a) and b) are possible without changing the derivation.
<judson_> kubenix looks really cool
<srhb> timor: What do you mean by derivation here? requiredSystemFeatures does not change the hash of the drv.
ubert has quit [Quit: Leaving]
<simpson> I've been using kubenix in production for a bit. It's got some rough edges but sure beats writing YAML by hand.
<srhb> timor: So, there's no simple way to do it without the override, but the override is essentially free.
<timor> srhb: Oh it does not? Then that is the way to go. I thought up to now only the passthru attribute did not change the hash. Thanks
<srhb> timor: I remembered it as being a passthru
<srhb> timor: If it's not, then blergh.
<srhb> That will indeed change the hash.
rfold has joined #nixos
<{^_^}> [nixpkgs] @matthiasbeyer opened pull request #56099 → dasht: init at v2.3.0 → https://git.io/fhFvf
<philipp[m]> How can I find out where stuff that `buildPythonPackage` is defined? Just grepping the string means a lot of reading...
<srhb> philipp[m]: How about grepping for "buildPythonPackage ="
<srhb> philipp[m]: One of the benefits of our function definition syntax.
<judson_> Related to https://nixos.org/nixpkgs/manual/#users-guide-to-vim-pluginsaddonsbundlesscripts-in-nixpkgs I'm finding that configuration for plugins is spotty - if you need to reference e.g. airline#section that doesn't work because plugins load after your customRC section. I've resorted to having ~/.config/nvim/plugin files for that, but I'd rather have all my config in a *.nix file or directory.
<judson_> I'm tempted to PR an "after" section, but want to make sure I'm not missing something obvious.
<philipp[m]> srhb: Lot's of `buildPythonPackage = python.pkgs.buildPythonPackage;` and similar 🙂 So there is no general way to find it?
zupo has joined #nixos
<symphorien> judson_: with writefile you could make a fake vim plugin with your after section
<srhb> philipp[m]: I see only four results for that, and I can see which one is relevant.
<symphorien> Also you could run your after section in an autocommand
<srhb> philipp[m]: But no, if you don't count that as general, there's no general way :)
<judson_> Hm. But I'd have to figure out the ordering of it.
<philipp[m]> Found it by looking at PR and the diffs they have... Not really a good solution but I guess it will work in most cases.
knupfer has quit [Quit: knupfer]
knupfer1 has joined #nixos
<judson_> An opt package that gets loaded by and autocommand might be the best approach.
<judson_> That seems like a small value for "best" though.
<lejonet> srhb: ceph-mon is being an ass and systemd is being a bigger ass and refusing to give me logs xD
<rfold> Does NixOps have a command to spawn a transient VM, such that ctrl+C will shut it down and clean it up like nothing ever happened? That'd be useful for running automated tests for my application. I could write a Bash script that does this, although it would leave garbage behind if it crashes (e.g. power failure).
<srhb> lejonet: frm within the driver?
<lejonet> srhb: yep
<srhb> lejonet: How are you trying to get the logs?
<srhb> lejonet: I'm pretty sure it really is failing on the mgr though..
<lejonet> srhb: journalctl -u ceph-mon-aio :P
<lejonet> well, I can't get to the mgr part in the driver... xD
<srhb> oh..
<srhb> lejonet: I'm considering disabling the ceph target before bootstrapping. Do we have a ceph target?
<lejonet> I guess I could run a really ugly one and make the nix-store writable so I can change -f to -d in the service :P
<lejonet> srhb: yes, there is a ceph target
knupfer1 is now known as knupfer
<srhb> lejonet: Can we then do all bootstrapping and start each component manually?
<srhb> oh no, wantedBy...
<lejonet> srhb: :P
<{^_^}> [nixpkgs] @ceedubs opened pull request #56100 → ddgr: 1.1 -> 1.6 → https://git.io/fhFvO
<timor> srhb: blergh it is!
<srhb> timor: :/ Then I don't know of a good way, sorry.
<timor> srhb: no problem
<srhb> timor: A secret system type.. >_>
<srhb> That's horrible though
klntsky has quit [Remote host closed the connection]
<timor> srhb: maybe there is a good way make a hack based on passthru
klntsky has joined #nixos
<lejonet> srhb: lol, changing -f to -d in the service made it come up just as it should (and honestly, probably should change that in the generated service, otherwise it seems like it doesn't log at all)
<srhb> lejonet: Hmm, seems counter intuitive.
<srhb> Maybe they're being "too smart"
<lejonet> -f is "log to usual place" and -d "log to stderr"...
<srhb> Oh.. :P
<srhb> Perhaps they just got with the times
<lejonet> both runs it in foreground :P
<srhb> Both as in -fd?
<lejonet> nah, each one of em
<srhb> wat. OK. -d sounds right for us for sure
<srhb> In fact I always hated the ceph log files.
<lejonet> xD
<lejonet> What log files? ;)
<lejonet> but yeah, -d definitively sound like what we should have, should check the other daemons too
dermetfan has joined #nixos
<srhb> lejonet: mgr still fails, but yes, nice logs with -d!
<lejonet> and ofc ceph-mgr-aio Just Work(TM) instead... they be trolling!
<lejonet> I'll mod the module to make em all with -d, because it seems like it is -f that is actually making em screw up with systemd
ost has joined #nixos
<srhb> lejonet: Aren't they all from the same ExecStart?
<lejonet> almost, different binaries
_deepfire has quit [Remote host closed the connection]
_deepfire has joined #nixos
<lejonet> but the command line for each daemons ExecStart is more or less the same apart from the specific daemon binary being run
_deepfire` has joined #nixos
<srhb> Right, that's what I meant..
_deepfire` has quit [Remote host closed the connection]
ij has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
waleee has quit [Quit: WeeChat 2.3]
ost has quit [Ping timeout: 255 seconds]
o1lo01ol1o has joined #nixos
<lejonet> ofc that didn't do anything to ceph-mgr-aio failing when run by the testscript...
<srhb> lejonet: systemd.targets.ceph.wantedBy = lib.mkForce [];
<srhb> lejonet: So I think all that's wrong now is ordering and too-fast-retries causing systemctl start to instafail
apeyroux has joined #nixos
<srhb> Er, actually, nevermind.
<lejonet> srhb: as ceph-mgr isn't giving us any logs, it could be anything...
<srhb> Try my suggested change above though, so we don't have to battle systemd at the same time
<srhb> We're doing some really racy stuff in this test.
<srhb> With that change it should be far simpler
<lejonet> Yeah, maybe the test should be started with "systemctl stop ceph.target"
dermetfan has quit [Ping timeout: 246 seconds]
<srhb> lejonet: That's too late to do that. The wantedBy change is the correct one.
<srhb> We then ought to also shut everything down afterwards and then start the ceph target, in order to check that startup is correct post-bootstrap.
<srhb> I confirm that it works though :)
apeyroux has quit [Client Quit]
<lejonet> yeah, the test is a lot less noisy that way :P
<clever> srhb: ive got a complex systemd unit that ive had trouble getting the wants and neededby right on
<lejonet> srhb: so I'll patch the test ^^ because atm it seems like the test goes as it should :)
<srhb> clever: and partOf at the same time :-P
<lejonet> (with that change)
<srhb> lejonet: Yes, agreed :)
<clever> srhb: behind the scenes, there is a tgtd daemon, which runs the iscsi target, but it doesnt support its own config files!
slidercrank has joined #nixos
<srhb> clever: I... WHAT? :D
<clever> srhb: then you have tgtadm, an ELF binary, that will RPC into tgtd, and add/remove things
Nivpgir has quit [Remote host closed the connection]
<clever> srhb: then you have tgt-admin, a perl script, that parses the config file, and calls tgtadm, to configure the daemon correctly
<lejonet> srhb: I had the intention of creating a more complex test for it too, to test that remote communication works too
<srhb> lejonet: Let's maybe split this into a secondary task though :)
<clever> srhb: i decided to skip that perl script, and make a systemd unit for every single target, and just call tgtadm directly, to add/remove things from tgtd, rather then re-sync the daemon to the cfg
<lejonet> srhb: ofc ^^
<clever> srhb: but, you need to restart those target units, any time tgtd restarts, and other fun problems
<srhb> clever: o_o
<{^_^}> [cabal2nix] @peti pushed to master « git-annex: disable networkbsd flag for LTS-13.x builds »: https://git.io/fhFvE
<clever> srhb: how would i get the service on lines 25-38, to restart any time the service on 59 restarts?
<srhb> clever: I want to handwave something something requires/requiredby, but...
<srhb> Frankly I'm not sure.
<clever> and 25-38 is also a one-shot, with an execstop
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhFvg
<srhb> lejonet: I feel like all we need to do now is check that things that have ceph as a dep still work
<clever> because its actually managing "services" within the tgtd proc
<srhb> clever: Sounds like it needs its own init system :-P
<lejonet> srhb: mhm, going to amend the test with the testing of the target firstly
<clever> srhb: thats practically what tgt-admin was, it would diff the config against the daemon state, and then run modify commands to re-sync it
<srhb> lejonet: Awesome, thank you :)
<lejonet> srhb: its basically just copy-pasting the checking parts from earlier in the test anyway :D
<noonien> anyone running nixos on a raspberry pi zero w?
JosW has joined #nixos
<{^_^}> [nixpkgs] @matthiasbeyer opened pull request #56101 → Revert "Remove maintainership" → https://git.io/fhFvV
<lejonet> srhb: xD due to -d, the test is a looot noisier :P but it goes through as it should :D (with the testing of target)
<srhb> lejonet: Is -d really --debug and it was incidental that it improved?
<lejonet> srhb: the only difference according to --help is that -f logs "at the usual place" and -d logs to stderr directly
<srhb> Bizarre...
<srhb> I'm not sure we should relaly use -d though in a non-test case..
<srhb> It seems confused about missing log files.
<{^_^}> [nixpkgs] @peti pushed 5 commits to haskell-updates: https://git.io/fhFvi
<srhb> And it works fine with -f
<lejonet> yeah, was just going to change back to -f to see if that works still
<{^_^}> [nixpkgs] @peti pushed 5 commits to master: https://git.io/fhFvP
<lejonet> so probably -d is also "ump the verbosity" too, they just don't tell you that :P
<srhb> Could be, yeah.
<srhb> I have to run soon, I'll catch up with you tomorrow evening if you're on, and we can get a branch up and poke krav about it once he's back from vacation.
<lejonet> srhb: sounds good :) lets do a PR to the PR :D
<srhb> lejonet++
<{^_^}> lejonet's karma got increased to 2
<lejonet> srhb: lol :P srhb++
<{^_^}> srhb's karma got increased to 31
<musicmatze> >10 ppl @ nixos meetup stuttgart right now... soon we'll rule the world!
<{^_^}> [nixpkgs] @dotlambda pushed 4 commits to python-unstable: https://git.io/fhFvM
<musicmatze> I mean >10 ...
<lejonet> srhb: its nice to be back and poking this again :P
<ikitat> Any good way to send overlays to a nixos host, particularly one provisioned by nixops?
<lejonet> srhb: in the mean time, I'm gonna do a fork of his branch (aka "steal" it to my own fork of nixpkgs) and add in the tweaks to the test (and bump to 13.2.4) in it
<srhb> lejonet: Great!
_lawlesseel has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
<lejonet> oh and the callPackage -> callPackages fix too
<srhb> Yar :)
<ikitat> I'm (foolishly?) trying to have a dev environment in darwin while still being able to create linux executables
<lejonet> But first, dinner :P
timor has quit [Ping timeout: 246 seconds]
aswanson has quit [Quit: WeeChat 2.2]
dermetfan has joined #nixos
infinee has quit [Quit: leaving]
ij has quit [Ping timeout: 255 seconds]
<musicmatze> Holy crap, now we are 15 ppl at the nixos meetup stuttgart
<reallymemorable> is there an nyc meetup?
aswanson has joined #nixos
tmaekawa has joined #nixos
<JosW> musicmatze: great you're lucky! Wish we had one in Groningen the Netherlands...
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to master: https://git.io/fhFvA
<gchristensen> musicmatze: nice!
tmaekawa has quit [Client Quit]
rydnr has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #56090 → alpha-embedded: isAlpha code Added → https://git.io/fhddU
<{^_^}> [nixpkgs] @matthewbauer pushed commit from @vincrusher to master « alpha-embedded: isAlpha code Added (#56090) »: https://git.io/fhFvp
<{^_^}> [nixpkgs] @vcunat merged pull request #56101 → Revert "Remove maintainership" → https://git.io/fhFvV
<JosW> what am I doing wrong that this https://pastebin.com/Bw0eWgJM give me a syntax error unexpected IN ?
johanot has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @srhb merged pull request #56047 → handbrake: 1.2.0 -> 1.2.1 → https://git.io/fhd4A
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fhFfv
<srhb> JosW: Count your braces on line 3
<{^_^}> [nixpkgs] @dotlambda pushed 2 commits to python-unstable: https://git.io/fhFff
<JosW> srhb: the one before config isn't right?
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dcol has joined #nixos
<pie__> florianjacob, thanks for the reply, it wasnt actually my question
<srhb> JosW: It is, but you're missing a closing brace at the end :)
<pie__> would have to go back and find who it was though
<srhb> JosW: ... { config = { ... }; };
<pie__> tbenst[m],
<dcol> I'm trying to patchelf the rpath of a binary to run it on NixOS, but for some reason it doesn't seem to work. When I run the binary after patching with patchelf it still complains of a missing library, however when I put it in my LD_LIBRARY_PATH it seems to work. What could be the reason for this?
<clever> dcol: does the package have its own libraries?
<{^_^}> [nixpkgs] @primeos pushed to master « dynamips: 0.2.19 -> 0.2.20 »: https://git.io/fhFft
<clever> dcol: when one of those libraries tries to load another, it uses its own rpath, not the rpath on the executable
<dcol> clever: I've isolated just the binary, so I don't think so. why would it run when I set the LD_LIBRARY_PATH then?
<pie__> <florianjacob> tbenst: pie__ that xerox stuff you're linking looks like they're trying to ship their own print server instead of cups, or something like that. o.0 it will be very challenging to make that work with NixOS. <florianjacob> tbenst: pie__ that xerox stuff you're linking looks like they're trying to ship their own print server instead of cups, or something like that. o.0 it will be very challenging to make that work with NixOS.
<pie__> https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=cups-xerox looks like there are ppd files available / „linux cups printer packages“ available for at least some xerox models, if something like that is availab
<pie__> aaagh sorry for the horrible paste
<clever> dcol: if it is needed by another lib, and not the executable, the it uses that libs rpath
<pie__> oh and i just noticed you already highlighted the other guy so nevermind
<clever> dcol: lddtree should reveal that
kreisys has joined #nixos
<srhb> clever: TIL :)
<srhb> No more find . -type ... -exec ldd
<dcol> clever: ah yeah, I get what you are getting at now. that makes a lot of sense, tbh. thanks!
<srhb> ,locate lddtree
<{^_^}> Found in packages: pax-utils
<clever> srhb: lddtree isnt like `find .`, but rather, it will show the dep-tree of the DT_NEEDED's
<srhb> Glorious.
<srhb> Yeah, I figured :)
<srhb> So it's much better!
<JosW> srhb: Thanks, that got me past the IN error. Need to get used to this syntax
<zimbatm> ty colemickens
dermetfan has quit [Ping timeout: 255 seconds]
slidercrank has left #nixos ["I'll be back"]
<reallymemorable> I get this error when I tried to build my project: `The builder will not be able to see any running ssh agent sessions unless ssh-auth-sock is also set in the nix-path.`. But when I `echo $SSH_AUTH_SOCK` it's empty. What do I put in there before adding it to NIX_PATH?
Guanin has joined #nixos
knupfer has quit [Ping timeout: 250 seconds]
<{^_^}> [nixops] @AmineChikhaoui pushed to master « add NixOS 18.09 VBox image »: https://git.io/fhFf4
ij has joined #nixos
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> reallymemorable: you need to run ssh-agent, and then export the vars it prints, then also run ssh-add
<reallymemorable> so i did eval ssh-agent
ij has quit [Ping timeout: 250 seconds]
<reallymemorable> i add the auth sock stuff in there to nix_path?
<reallymemorable> i dont understand the ssh-add step
<clever> reallymemorable: running ssh-add, will add ~/.ssh/id_rsa to the currently running agent
<reallymemorable> i just do `eval ssh-add`?
<clever> just ssh-add, without eval
<reallymemorable> "could not open a connection to your authentication agent"
<clever> but, ssh-agent itself has some security options that get in the way, it wont the nixbld users talk to the agent, so you need to bypass that with socat: https://gist.github.com/cleverca22/ef075e5dfe092fa6b08cec0ae1dfde66
<clever> you didnt correctly eval the output of ssh-agent
<Aleksejs> Hi, I got a bunch of errors during rebuild switch --upgrade http://vpaste.net/qKYay
johanot has joined #nixos
<clever> Aleksejs: looks like a problem inside pycurl, you could maybe disable printer support temporarily (since config-printer depends on pycurl)
<johanot> musicmatze: when is that meetup?
<musicmatze> johanot: right now
agander has joined #nixos
<johanot> musicmatze: well then.. won't make it from copenhagen now :D but maybe next time
<musicmatze> from copenhagen to stuttgart just for the meetup is overkill IMO :-)
<reallymemorable> clever: that will solve the ssh-agent issue?
<clever> reallymemorable: the commands in that gist will allow fetchgitPrivate to talk to ssh-agent
<gchristensen> oh dear, we haven't deleted that yet?
agander_ has joined #nixos
<johanot> true, but if I know it a reasonable amount of time in advance I would combine it with some vacation of some sort, probably
<Aleksejs> clever: yes, disabling system_config_printer helped
DeaDSouL has quit [Ping timeout: 258 seconds]
<reallymemorable> would i run these commands from root or the user that is executing the build?
<johanot> musicmatze: but yeah, this is easier of course: https://www.meetup.com/Greater-Copenhagen-NixOS-User-Group/
<musicmatze> :-)
<clever> reallymemorable: as a normal user, except for the socat, which the example shows being used with sudo
<reallymemorable> is doing it from sudo different from just running it as root?
DeaDSouL has joined #nixos
agander has quit [Ping timeout: 255 seconds]
<clever> reallymemorable: not really that different, just make sure the $SSH_AUTH_SOCK is pointing to the socket for the users ssh-agent
agander_ is now known as agander
rcshm_ has quit [Remote host closed the connection]
rcshm_ has joined #nixos
fendor has joined #nixos
<clever> reallymemorable: the main uid issue, is that when a member of nixbld connects to $SSH_AUTH_SOCK, ssh-agent rejects them hard, for security reasons
<clever> so you have to setup an socat to act as a proxy, which is connecting from root
<clever> and ssh-agent has an exception to allow root, so `sudo ssh` can still use the agent
matijja has quit [Ping timeout: 245 seconds]
<reallymemorable> cool thank you
<reallymemorable> trtying now
<reallymemorable> just to be clear though
<reallymemorable> the "Could not open a connection to your authentication agent." error can be ignored for now
<clever> reallymemorable: it sounds like SSH_AUTH_SOCK still isnt set right, so the ssh-add is failing
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « lftp: do not look for expat and zlib in /usr/include »: https://git.io/fhFfy
<reallymemorable> how can i address this?
<clever> reallymemorable: when you run ssh-agent, it will print a few lines out
<clever> just copy/paste those back into the terminal
<reallymemorable> ok -- now i just get a Permissions 0640 for '/home/gort/.ssh/id_rsa' are too open
<reallymemorable> when i do ssh-add
<clever> thats a warning that anybody in your group can read your ssh key, you may want it to be chmod 600
<reallymemorable> yeah i set the root to all
knupfer has joined #nixos
<reallymemorable> also wont that prevent nixbld from accessing?
<clever> thats the whole point of the agent
<reallymemorable> i need everyone in the group nixbld to be abble to access
<reallymemorable> ok
<clever> nixbld talks to the agent, which has a copy of the key loaded in memory
<reallymemorable> got it
<clever> and the agent will never give the key out, only sign things for you
<clever> and now you can start the socat as root, pointing to the unix socket the agent is running on
<{^_^}> [nixpkgs] @zimbatm pushed to master « firecracker: 0.13.0 -> 0.14.0 »: https://git.io/fhFfQ
<reallymemorable> ok so I chmod 600 /path/to/id_rsa
<reallymemorable> and added the identity
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<reallymemorable> ok so this seems crazy. I entered this: `sudo socat UNIX-LISTEN:/tmp/hax,fork,mode=0070,group=nixbld UNIX-CLIENT:$SSH_AUTH_SOCK` and it asks me for the password for my user but i never set one and it wont let me leave it blank
<reallymemorable> i have to set a password first?
lord| has joined #nixos
ost has joined #nixos
ost has quit [Client Quit]
dermetfan has joined #nixos
<clever> reallymemorable: thats just normal sudo rules, you must know your own pw, or set one with something like `passwd reallymemorable`, as root
vk3wtf has joined #nixos
alex`` has quit [Ping timeout: 245 seconds]
<reallymemorable> ok i did that
<reallymemorable> when i run this: `sudo socat UNIX-LISTEN:/tmp/hax,fork,mode=0070,group=nixbld UNIX-CLIENT:$SSH_AUTH_SOCK` it just seems to be running indefinitely though
<clever> thats normal
<clever> its listening on /tmp/hax
<clever> use a second terminal, with `-I ssh-auth-sock=/tmp/hax -I ssh-config-file=/tmp/ssh-config` in the nix-build command
<clever> or add ssh-auth-sock=/tmp/hax:ssh-config-file=/tmp/ssh-config to your $NIX_PATH variable
<reallymemorable> i have to do this in between: touch /tmp/ssh-config
<reallymemorable> no?
<clever> yeah
alex`` has joined #nixos
<{^_^}> [nixpkgs] @schmittlauch opened pull request #56103 → ktouch: fix build failure due to dependecy missing → https://git.io/fhFJU
acarrico has quit [Ping timeout: 255 seconds]
rcshm_ has quit [Read error: Connection reset by peer]
shibboleth has quit [Quit: shibboleth]
rcshm_ has joined #nixos
_kwstas has joined #nixos
<{^_^}> [nixpkgs] @hedning merged pull request #56046 → Add and enable Bolt to support Thunderbolt 3 settings in GNOME → https://git.io/fhd4c
<{^_^}> [nixpkgs] @hedning pushed 6 commits to master: https://git.io/fhFJq
wfranzini has joined #nixos
<{^_^}> [nixpkgs] @0x4A6F opened pull request #56104 → zola: 0.5.0 -> 0.5.1 → https://git.io/fhFJO
bgamari has quit [Ping timeout: 240 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/83568dc5fee (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
Thra11 has joined #nixos
bgamari has joined #nixos
johanot has quit [Ping timeout: 268 seconds]
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/63a09881b67 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
emily is now known as emilazy
Glider_IRC_ has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed to master « python.pkgs.acoustics: 0.2.0.post1 -> 0.2.0.post2 »: https://git.io/fhFJR
johanot has joined #nixos
zupo has joined #nixos
emily has joined #nixos
JosW has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Glider_IRC__ has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @oxij opened pull request #56105 → all-packages.nix: introduce and use `dontRecurseIntoAttrs` → https://git.io/fhFJz
emilazy has quit [Quit: leaving]
emily has quit [Remote host closed the connection]
emily has joined #nixos
rcshm_ has quit [Remote host closed the connection]
rcshm_ has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
slack1256 has joined #nixos
<{^_^}> [nixpkgs] @pmiddend opened pull request #56107 → xorg.libXau: 1.0.8 -> 1.0.9 → https://git.io/fhFJS
<{^_^}> [nixops] @AmineChikhaoui pushed to master « VirtualBox: handle deleted vms from outside NixOps »: https://git.io/fhFJh
vk3wtf has quit [Ping timeout: 264 seconds]
<monotux> I'm retarted. what do I do about this?
<monotux> error: packages '/nix/store/8s85vwzn2vc0jqls93rdr6r5bcmr7dza-akonadi-mime-18.08.0/share/mime/subclasses' and '/nix/store/3bggvz3j19j880rc9ga35nfxax60vrj9-marble-18.08.0/share/mime/subclasses' have the same priority 5; use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' to change the priority of one of the conflicting packages (0 being the hi
<monotux> ghest priority)
<pbb> since a few days I'm getting this error when rebuilding my laptop's nixos unstable system:
selfsymmetric-pa has joined #nixos
<eon`> pbb: got this today also
<pbb> you found a solution yet?
<pbb> I'm not getting it on my desktop
<selfsymmetric-pa> ,locate ghc844
<{^_^}> Couldn't find in any packages
<{^_^}> #53672 (by eadwu, 6 weeks ago, closed): switch-to-configuration not interpreted using perl
<selfsymmetric-pa> Hi! I'm having some trouble with ghc and nixos. When I attempt `stack install` I get `attribute ghc844 missing`. I'm not sure what that's about so I'm attempting to install that attribute globally. However I cannot find that package in the nix package search.
<eon`> pbb: basically you habe to rollback to a kernel that does not have this issue
<selfsymmetric-pa> Anybody know where I could get myself a ghc844?
<pbb> I can not do that, my hardware is only supported by 4.20 :(
zupo_ has joined #nixos
<pbb> or is it fixed in the latest patch-release?
<eon`> pbb: yes if you update nixpkgs-unstable you will have the kernel with the patch reverted
<slack1256> selfsymmetic-pa: nix-shell -p 'haskell.packages.ghc844.ghcWithPackages (p: with p; [ lens ])'
<eon`> pbb: but to switch to it you will need a kernel that does not have this issue :/
<slack1256> selfsymmetric-pa: ^
<samueldr> pbb: rollback as in nixos generation rollback, not downgrading to a previous kernel version :)
<pbb> okay, thanks. I now ran the script with the correct interpreter manually
<selfsymmetric-pa> slack1256: Thank you so much!!
<pbb> which worked fine
<slack1256> I recomend playing with `nix repl` to see how is nixpkgs structured
<samueldr> well, previous, but previous to 4.20
<slack1256> After a while you can `Ctrl-R` on your terminal for the correct command
zupo has quit [Ping timeout: 246 seconds]
<__monty__> Or run fish and get those history suggestions by default.
<__monty__> : >
slack1256 has quit [Remote host closed the connection]
acarrico has joined #nixos
slack1256 has joined #nixos
<philipp[m]> I'm packaging a game written in löve for myself. löve games are essentially just a zip file of lua code that gets interpreted by the love executable, syntax is like `love game.love`. I want to package it in a way that I just have to type `game` to run it.
<johanot> offlinehacker: https://github.com/NixOS/nixpkgs/pull/45670#issuecomment-465758426 , can you elaborate?
<philipp[m]> Using makeWrapper seems like abusing it for that case. Is there a comparable tool for this or do I have to write my own little script?
agander has quit [Ping timeout: 246 seconds]
npmccallum_ has left #nixos [#nixos]
dermetfan has quit [Ping timeout: 245 seconds]
<symphorien> philipp[m]: this is not abuse: this is the recommended way to run jar with java: https://nixos.org/nixpkgs/manual/#sec-language-java
<philipp[m]> symphorien: Alright, then I'm just using it :-D
vidbina has quit [Ping timeout: 255 seconds]
eadwu has quit [Quit: WeeChat 2.3]
<{^_^}> [nixops] @AmineChikhaoui merged pull request #1101 → Fix gollum example → https://git.io/fhdj0
<{^_^}> [nixops] @AmineChikhaoui pushed 2 commits to master: https://git.io/fhFUG
<{^_^}> [nixpkgs] @artemist opened pull request #56108 → lepton: init at 1.2.1 → https://git.io/fhFUc
eadwu has joined #nixos
Ralith_ has quit [Read error: Connection reset by peer]
Ralith_ has joined #nixos
<fpletz> offlinehacker: currently testing a fix for kubelet-bootstrap... setting restart=on-failure for kubelet makes the test more unstable on my machines o.O
<johanot> fpletz: is "docker load" not atomic?
<johanot> ah. even if it is, kubelet-bootstrap is a oneshot
trubi has joined #nixos
srl295 has joined #nixos
endforma1 has joined #nixos
endformationage has quit [Ping timeout: 255 seconds]
wfranzini has quit [Remote host closed the connection]
jackdk has joined #nixos
wfranzini has joined #nixos
<georgyo> I have a build that in the tests does a getaddrinfo(NULL, "ntp", NULL, &res)
<lejonet> Hmm, if I want to add a packages bin folder to the path of a program in another derivation, I would do wrapProgram $out/to/binary --prefix PATH ":" "${pkgs.thing}/bin" right?
<georgyo> This fails because in the sandbox environment neither /etc/services nor the nscd socket exists
hiroshi has joined #nixos
<georgyo> Is there a way to make /etc/services exist in the sandbox without making adding extra-sandbox-paths to /etc/nix/nix.conf
<ikitat> When using nixops create/deploy can I get the target to reference overlays?
<symphorien> georgyo: use libredirect to fake the fact that /etc/services exist
<ottidmes> lejonet: or maybe buildEnv?
<lejonet> ottidmes: that seems to be a package override thing, I'm doing this as part of a package already (ceph-volume needs to know the paths to lvm2 stuff)
ma27_ has joined #nixos
<ottidmes> lejonet: wrapProgram is probably better yes, I just mentioned it as a potential alternative, I used it to override a existing binary with a script that wrapped that binary and changed some of its arguments, but from the outside it should be seen as the same package as it was, so buildEnv with hiPrio did the job
ma27 has quit [Ping timeout: 255 seconds]
<lejonet> ottidmes: it seems like a neat function to know about indeed :) (for end users)
<{^_^}> [nixpkgs] @oxij opened pull request #56109 → [Demo] splice.nix: poor man's implementation of Gentoo-like use-flags → https://git.io/fhFU7
sigmundv__ has joined #nixos
emily has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @oxij opened pull request #56110 → [Demo, RFC] Gentoo-like use-flags (will not evaluate by design) → https://git.io/fhFU5
selfsymmetric-pa has quit [Ping timeout: 255 seconds]
emily has joined #nixos
<callahad> ottidmes: Thanks for the help the other day; that helped me get enough of a sense of Nix to successfully get https://github.com/NixOS/nixpkgs/pull/56046 merged
<{^_^}> #56046 (by callahad, 1 day ago, merged): Add and enable Bolt to support Thunderbolt 3 settings in GNOME
<callahad> (also huge thanks to jtojnar and hedning for lots of review and hand-holding :))
<catern> Hey #nixos, does anyone know anything about how to deal with build processes/tests which try to perform NSS lookups for the "services" database? (that database contains the mappings of e.g. "ssh is port 22")
<catern> It looks like glibc doesn't go through nscd for the "services" database
<catern> Also, does nscd even run in the Nix build container?
<clever> catern: nope
<catern> OK, makes sense
alex`` has quit [Quit: WeeChat 2.3]
<catern> So there's no /etc/nsswitch.conf in the container, so it defaults the configuration to be "services: files"
<catern> But there's also no /etc/services in the container, so something like "getent services ssh" just fails
<catern> Thoughts?
<clever> catern: libredirect or qemu
<catern> Er, I don't think those are appropriate for an otherwise totally normal build, I'd rather just patch out the call than use those...
<clever> catern: libredirect lets you patch such things at runtime
<catern> I would be surprised to hear if no-one else has run into this before
<ottidmes> callahad: gratz on the merge and thank you for contributing! this way you can get the most out of NixOS, by also being able to package things yourself and makes changes as you see fit :)
<clever> catern: i just added /etc/protocols to extra-sandbox-paths to solve my issues
cantstanya has quit [Remote host closed the connection]
vk3wtf has joined #nixos
cantstanya has joined #nixos
lawlesseel has joined #nixos
<catern> clever: but that's not upstreamable to Nixpkgs
<clever> yeah, thats where libredirect can help
<catern> Hmm I guess I should just patch the software upstream to not make this lookup
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<catern> Since it's really bad anyway to look at system-wide config in a build/test
drakonis has joined #nixos
kreisys has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
Ariakenom has joined #nixos
kyren has quit [Ping timeout: 252 seconds]
selfsymmetric-mu has joined #nixos
kyren has joined #nixos
ma27_ has quit [Quit: WeeChat 2.2]
gagbo has joined #nixos
<selfsymmetric-mu> Hi! I have a silly question. How does `nix-env --install --attr nixos.haskell.compiler.ghc844` correspond to `configuration.nix`? I naïvely tried adding `haskell.compiler.ghc844` to my `environment.systemPackages`, but that does not work so I think I am making a category error of some kind.
Ariakenom has quit [Read error: Connection reset by peer]
<clever> selfsymmetric-mu: do you have a `with pkgs;` near the systemPackages?
<selfsymmetric-mu> Yes, the expression is `(with pkgs; [ haskell.compiler.ghc844 ])`, which gives me `attribute ghc844' missing`.
<selfsymmetric-mu> That suggests to me that `pkgs.haskell.compiler` was found.
<selfsymmetric-mu> Hm. Perhaps my channels are out of sync between root and user.
<selfsymmetric-mu> I will double check that.
rprije has joined #nixos
Thra11 has quit [Ping timeout: 246 seconds]
<clever> selfsymmetric-mu: it will warn you if you have 2 nixos channels, every single time you use nix-env
<reallymemorable> has anyone here used the NixOS GUI on an instance installed on EC2?
<selfsymmetric-mu> That's a great warning!
<clever> reallymemorable: what part of the GUI do you want to use?
<selfsymmetric-mu> Anyway, yes, this was a difference between the sudo configuration update and user installation. Gosh I make that mistake too many times.
<selfsymmetric-mu> I need to inject a warning in an alias or something.
<clever> selfsymmetric-mu: i try to never have channels on the user, root is the only source of channels
xkapastel has joined #nixos
<selfsymmetric-mu> That's the setup I used to have, but I'm trying to placate stack's implicit Nix integration.
<reallymemorable> clever: basically I have given up any hope of getting my NixOS permissions right to build the project locally. So I want to clone the EC2 staging environment so that I can test the project in a web browser.
<clever> reallymemorable: what was the end-result when using socat and /tmp/hax?, that should still work
<reallymemorable> on the final step i still hit a wall with the user being unable to open /tmp/ssh-config
rfold has quit [Quit: leaving]
<clever> reallymemorable: what does `echo $NIX_PATH` report?
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/bba6de611a6 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<reallymemorable> [gort@nixos:~/git/repo]$ echo $NIX_PATH
<reallymemorable> nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
<clever> reallymemorable: ssh-auth-sock and ssh-config arent in there
<clever> reallymemorable: export NIX_PATH=ssh-auth-sock=/tmp/hax:ssh-config-file=/tmp/ssh-config:$NIX_PATH
<clever> then try to build the thing again
johanot has quit [Quit: WeeChat 2.2]
<reallymemorable> i wasn't even at the build stage
<reallymemorable> i was still on the third step of the socat thing
<reallymemorable> nix-build default.nix -I ssh-auth-sock=/tmp/hax -I ssh-config-file=/tmp/ssh-config
<clever> your haskell code is doing nix-build behind the scenes, in some area you cant modify
<clever> so you would replace step 3, with the above export line
<clever> and then run the haskell code
hydraz has quit [Quit: ZNC 1.7.1 - https://znc.in]
<reallymemorable> i just did
<reallymemorable> and am hitting
<reallymemorable> the same error that has held me up the whole time
<clever> is the socat still running?
<reallymemorable> yes
ddellacosta has quit [Ping timeout: 258 seconds]
<clever> is the haskell code your running on github?
<reallymemorable> github and gitlab
<clever> link?
<reallymemorable> they are private repos
<clever> does NIX_PATH appear anywhere in the code?
<reallymemorable> i'll have to ask
<reallymemorable> I'd rather just try to run it off a cloned EC2
<clever> the previous pastes show that you already have the code, so you can just `grep -r --color NIX_PATH`
<clever> nixos on EC2 will still have the sandbox enabled, and have the same issues
<reallymemorable> [gort@nixos:~/git/cleverbeach]$ grep -r --color NIX_PATH
<reallymemorable> README.md: `export NIX_PATH=ssh-config-file=/Users/Shared/.ssh/config:/nix/var/nix/profiles/per-user/root/channels:nixpkgs=/Users/*username*/.nix-defexpr/channels/nixpkgs`
<reallymemorable> README.md:To check that the correct nix path is being referenced, run the following command after restart: `echo $NIX_PATH`
ddellacosta has joined #nixos
<reallymemorable> focus/obelisk/lib/command/src/Obelisk/Command/VmBuilder.hs: && echo "export NIX_PATH=$NIX_PATH" >> /etc/bashrc \
<reallymemorable> focus/create-amis.sh:# AWS_ACCESS_KEY_ID=AKI... AWS_SECRET_ACCESS_KEY=... NIX_PATH="nixpkgs=$(nix-instantiate --eval --strict ./reflex-platform -A nixpkgs.path | sed 's/"//g')" ./create-amis.sh
__monty__ has quit [Quit: leaving]
<reallymemorable> but i can clone the staging configuration
<reallymemorable> which i know works
<reallymemorable> we have a working staging on EC2
<clever> reallymemorable: did you do the export NIX_PATH i gave above, in the same terminal that you ran the haskell code in?
<reallymemorable> yes
<reallymemorable> i can show you the echo output
<reallymemorable> 1 sec
<clever> can you pastebin the whole output on that terminal, including the error msg?
knupfer has quit [Ping timeout: 264 seconds]
<reallymemorable> [gort@nixos:~/git/cleverbeach]$ echo $NIX_PATH
<reallymemorable> ssh-auth-sock=/tmp/hax:ssh-config-file=/tmp/ssh-config:ssh-auth-sock=/tmp/hax:ssh-config-file=/tmp/ssh-config:nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
_kwstas has quit [Quit: _kwstas]
simukis has quit [Quit: simukis]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
ikitat has quit [Ping timeout: 246 seconds]
asymmetric has joined #nixos
<DigitalKiwi> i want to make a package for this https://ocrmypdf.readthedocs.io/en/latest/installation.html but i've never made a package before can someone give me some direction
<clever> DigitalKiwi: have you read the nixpkgs section on writing packages?
<asymmetric> how do i select an attribute from something i fetchFromGitHub?
<asymmetric> i want to import nixpkgs and select one specific attribute from it
<clever> asymmetric: (import (fetchFromGitHub { .... })).foo
<clever> asymmetric: (import (fetchFromGitHub { .... }) {}).foo
<asymmetric> clever: btw this is how i solved yesterday's problem: https://gist.github.com/asymmetric/e5b0d4a90e9709a01b629c2ddd977a0c#file-shell-nix-L8-L11
<DigitalKiwi> i've read some of the manual idk
<asymmetric> builtins.fetchGit, so i don't have to import nixpkgs twice
alex_giusi_tiri has quit [Ping timeout: 246 seconds]
<DigitalKiwi> do you mean here https://nixos.org/nixpkgs/manual/#python or a different one
<clever> asymmetric: ah, yeah, that should also work
dbmikus has quit [Ping timeout: 246 seconds]
eadwu has quit [Quit: WeeChat 2.3]
eadwu has joined #nixos
<DigitalKiwi> ok thanks that already answered some things i needed
THFKA4 has left #nixos ["WeeChat 2.3"]
<DigitalKiwi> i think i read it a long time ago and forgot
endforma1 has quit [Quit: WeeChat 2.3]
endformationage has joined #nixos
emily has quit [Remote host closed the connection]
emily has joined #nixos
acarrico has quit [Ping timeout: 272 seconds]
<reallymemorable> so has anyone used a GUI with an EC2 NixOS?
ayerhart has joined #nixos
<clever> reallymemorable: EC2 doesnt provide access to the GPU console, so you need to run a vnc server, like https://gist.github.com/cleverca22/32f71c41c8e37df57c0018ba6e07816f
trubi has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @dywedir merged pull request #56104 → zola: 0.5.0 -> 0.5.1 → https://git.io/fhFJO
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fhFTd
das_j has quit [Remote host closed the connection]
das_j has joined #nixos
freeman42x has joined #nixos
erasmas has quit [Quit: leaving]
Thra11 has joined #nixos
<reallymemorable> clever: do you think i should try an older version of NixOS?
<reallymemorable> would that address these issues?
shibboleth has joined #nixos
<clever> reallymemorable: i dont think it would
<clever> reallymemorable: can you pastebin the whole output on that terminal, including the error msg?
eadwu has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @fpletz pushed 10 commits to master: https://git.io/fhFkm
<{^_^}> [nixpkgs] @fpletz merged pull request #45670 → nixos/kubernetes: Module refactor → https://git.io/fAYrn
dslegends has quit [Ping timeout: 250 seconds]
<clever> reallymemorable: that looks like a different error, its not complaining about ssh-auth-sock
Havvy has quit [Quit: Computer Restarted or Restarting IRC]
<clever> reallymemorable: try `nix-store --add-fixed sha256 /tmp/ssh-config`, and then replace the /tmp/ssh-config in $NIX_PATH with the path it returned
<reallymemorable> the nix builders cant access the ssh keys
<clever> they shouldnt have access to the keys
<clever> the agent handles that
<reallymemorable> sorry yes thats what i meant
<reallymemorable> how do i remove something from nix path
<reallymemorable> so that i can put in the new thing that just output
<clever> reallymemorable: echo the current value, then just copy/paste it to a new `export NIX_PATH=....`
<clever> and edit it before you run that cmd
<reallymemorable> yes i did
<reallymemorable> i replace ssh-config-file=/tmp/ssh-config
<reallymemorable> ?
<clever> yeah, make that ssh-config-file=/nix/store/something
<reallymemorable> with ssh-config-file=/new/output
<clever> yeah
freeman42y has joined #nixos
<reallymemorable> same error
<{^_^}> [nixops] @PsyanticY opened pull request #1102 → [WIP] Support persistant spot → https://git.io/fhFkO
<clever> reallymemorable: with the new path?
<reallymemorable> yes
DeaDSouL has quit [Ping timeout: 246 seconds]
fendor has quit [Read error: Connection reset by peer]
<reallymemorable> [gort@nixos:~/git/cleverbeach]$ echo $NIX_PATH
<reallymemorable> ssh-auth-sock=/tmp/hax:ssh-config-file=/tmp/ssh-config:ssh-auth-sock=/tmp/hax:ssh-config-file=/nix/store/pzjx83n84q72nv81sj6civj6rhp5za9b-ssh-config:nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
<clever> reallymemorable: you have ssh-config-file= in there twice
<clever> so its not using the new path
<reallymemorable> ah shit ok i will remove the wrong one
<reallymemorable> same error
DeaDSouL has joined #nixos
<clever> reallymemorable: what path is it showing in the error?
freeman42x has quit [Ping timeout: 258 seconds]
cthachuk has joined #nixos
<reallymemorable> Can't open user config file /nix/store/pzjx83n84q72nv81sj6civj6rhp5za9b-ssh-config: No such file or directory
<reallymemorable> so its looking at the right thing now
<clever> reallymemorable: try setting nix.useSandbox = false; in the host configuration.nix, and nixos-rebuild switch to apply it
<reallymemorable> ok
<reallymemorable> i do that as root
<reallymemorable> do i need to log back into my user sessions after rebuilding?
Thra11 has quit [Ping timeout: 246 seconds]
<clever> nope
<cthachuk> On nixos, I have installed the 'boost' derivation but cmake cannot find the header files. I see the libraries in ~/.nix-profile/lib but don't know where to look for the header files; they're not in ~/.nix-profiles/include. Any suggestions? Thanks!
<reallymemorable> i am getting the same error with useSandbox false
<clever> ,libraries cthachuk
<{^_^}> cthachuk: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<cthachuk> lever thanks, I'll read up on that now
<clever> reallymemorable: try switching back to ssh-config-file=/tmp/ssh-config, and also add nix.sandboxPaths = [ "/tmp/ssh-config" ]; to the configuration.nix, and do another nixos-rebuild
PLPD-Bot has quit [Remote host closed the connection]
<reallymemorable> and leave tthe useSandbox false in?
<clever> reallymemorable: yeah
PLPD-Bot has joined #nixos
<reallymemorable> slightly differentt error after that
<clever> reallymemorable: add these 2 lines to the /tmp/ssh-config
<clever> StrictHostKeyChecking=no
<clever> UserKnownHostsFile /dev/null
ajs124 has quit [Quit: Gateway shutdown]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<reallymemorable> holy shit it appears to be building
<clever> :D
ajs124 has joined #nixos
<reallymemorable> if this works and you ever come through NYC ill buy you an expensive dinner
fusion809 has joined #nixos
<clever> only time ive passed thru NYC was for connecting flights
<reallymemorable> the offer's on the table
ij has joined #nixos
<reallymemorable> so is having socat running in teh background an integral part of this?
<clever> yeah
<reallymemorable> or that is a legacy from an old approach
<reallymemorable> ok
<clever> the socat is required for the nixbld users to talk to ssh-agent
<clever> and the ssh-agent also has to remain running
thomasd has joined #nixos
<reallymemorable> im literally close tto crying
<reallymemorable> ive been trying to get this to work for 3 days straight
<reallymemorable> and im totally new to Linux
leotaku has quit [Quit: ZNC 1.7.1 - https://znc.in]
<simpson> Yikes. Who made you do this?
<clever> reallymemorable: ive been using linux since ~2005, and i learned the most when i installed http://www.linuxfromscratch.org/
<reallymemorable> the devs want me to learn how to do some basic haskell stuff
<thomasd> hi all, I'm trying to build a project with julia-1.1.0, but julia-1.0.3 is chosen instead. I know julia-1.1.0 is available in the nixpkgs commit I am using, under the julia_11 alia. how, in my default.nix file, can I force julia-1.1.0 to be used?
<reallymemorable> ive been on the business side
<reallymemorable> and they are too busy to help me
<reallymemorable> clever: that looks super cool thank you
leotaku has joined #nixos
<srk> reallymemorable: http://learnyouahaskell.com/
<clever> reallymemorable: the crazy thing i did, that really hammered LFS in, was trying to install it on a laptop with a failing harddrive
<srk> reallymemorable: can help you with specific stuff as well
ij has quit [Ping timeout: 255 seconds]
<clever> reallymemorable: so i had to deal with files getting corrupt, and restarting over&over for days
<reallymemorable> srk: I've seen that but have been working through the haskell from first principles book
<reallymemorable> which i like more
<reallymemorable> yeah this world is insane
<srk> I've started with RWH :)
<reallymemorable> I understand how Red Hat is in business
<clever> srk: i started from the wrong end, i learned the c code within the ghc rts, before learning the language, lol
<srk> :D
dcol has quit [Remote host closed the connection]