gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || 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
<cheater> zybell: i'm not sure what you're asking?
<zybell> the client can run in any dir.
<cheater> zybell: "hint" was the package name of the first package, and "freer" is the package name of the second package. is that what you wanted to know?
<zybell> yes
<nikola_i> hi, i think i upgraded nix-2.0 incorrectly and am unable to use nix commands (nix-env, nix-shell). i followed the intructions at https://nixos.org/nix/manual/#chap-installation to do a single user installation
<cheater> so my question now is why does this work for disabling the test suite of hint, but not the test suite of freer
<cheater> this is confusing :)
<zybell> hint:hint was the *field* name
sehqlr has quit [Ping timeout: 276 seconds]
<samueldr> infinisil: maybe take some inspiration from one of those supported by lftp? https://lftp.yar.ru/features.html
<samueldr> dunno if there is a "lftpd"
<cheater> zybell: i don't know what you mean :(
nekroze has quit [Quit: Lost terminal]
<cheater> nikola_i: make sure to source your .profile
<cheater> . ~/.profile
<cheater> and check that it has the bit of code that "activates" nix
<cheater> zybell: what do you mean by "field name"? i'm lost..
<infinisil> samueldr: It does indeed, but optimally I'd like to use something well known and installed on machines already
chisui has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<infinisil> I just don't understand why there isn't even a working ftp server on nixos, at least i can't find one
<nikola_i> cheater: i dont have a ~/.profile. is there a way to install nix2.0 for all users
<samueldr> ah, so it's foreign to nixos and you want the "standard~ish" in foreign systems, right?
<samueldr> well, between foreign and nixos
<infinisil> Yea
<cheater> nikola_i: then check /etc/profile
<cheater> or /etc/bash.bashrc
<zybell> i would have to search the log,but the *package* had another name. you used a "checkbox" called hint *in* that package to change the behavior.
<infinisil> samueldr: It's for me and my friends who also run a linux, I'm trying to create a server and client script anybody can run to present his pictures to the others
<infinisil> And I need some way to easily transfer files
<infinisil> And ncat (almost netcat but more powerful) corrupts the pictures :/
<cheater> zybell: no, the package was called hint.
<cheater> zybell: there was no field called hint related to it. that was the name of the package
<cheater> and now i'm having issues with this package https://hackage.haskell.org/package/freer
<SitiSchu> t
<SitiSchu> dammit wrong window
<cheater> so the question is how are they different? i don't know
<infinisil> I found vsftpd, which might me somewhat of a popular ftp server
<cheater> do you know, zybell?
<zybell> can you set one side up or must both sides work ad hoc? infinisil
jrolfs_ has quit [Read error: Connection reset by peer]
tertle||eltret has joined #nixos
<infinisil> zybell: Optimally both the server and client script should work on any machine
sehqlr has joined #nixos
<mpickering> cheater: It could be oveloaded again in one of the other config files
<samueldr> infinisil: bash and /dev/tcp?
<zybell> yeah but what *must* be done?
<nikola_i> cheater: i tried sourcing both /etc/profile and /etc/bashrc. i am still getting these errors `nix-env -e ranger
<nikola_i> uninstalling 'ranger-1.8.1'
<nikola_i> error: opening lock file '/nix/var/nix/temproots/13186': Permission denied
<infinisil> samueldr: I think ncat already uses tcp and it still gets corrupted (I tested on 3 networks, it's the same problem everywhere)
<jackdk> infinisil: python -m SimpleHTTPServer?
<infinisil> But maybe it's an ncat bug because changing it slightly makes it work (but then it's not as useful for me)
<infinisil> jackdk: Hmm.. that might be something
<cheater> mpickering: let me check
ericsagnes has joined #nixos
<zybell> I had this script that grabbed an od-dump and massaged it into a set of echo|tr commands file>text>file. and you could transfer the lines in any order.
muzzy has joined #nixos
<zybell> infinisil^
sigmundv has quit [Remote host closed the connection]
<cheater> indeed it is mpickering thank you
<infinisil> zybell: So it could retransfer the corrupted lines?
goibhniu has quit [Ping timeout: 256 seconds]
<cheater> mpickering: so i have something like freer = fetchFromGitHub { ... } -- do i change that to freer = dontCheck fetchFromGitHub { ... } ?
<mpickering> yes
<cheater> cool :)
nikola_i has quit [Quit: WeeChat 1.7.1]
<zybell> you could do a retransfer, but you had to delete corrupted lines by hand. but possibly an elaborate grep regex would work.
astiles has quit [Remote host closed the connection]
sigmundv has joined #nixos
astiles has joined #nixos
<zybell> it is after all very styled text.
<zybell> possibly a checksum (wasnt implemented then) could be added
<epta> is there anyone who can help with nix question? I usually generate default.nix and shell.nix using cabal2nix, and everything works fine on osx, but on nixos now I have the error: attribute ‘binary-orphans_0_1_7_0’ missing
nikola_i has joined #nixos
vidbina has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « linux: 4.16-rc7 -> 4.17-rc1 »: https://git.io/vpTHB
<nikola_i> hi, i am unable to remove user packages after upgrading to nix 2.0. i keep getting errors `error: opening lock file '/nix/var/nix/temproots/2522': Permission denied`
<nikola_i> this is causing some kde to confuse with the old plasma libraries
<catern> hey #nixos, now that nixUnstable is commented out there's no way to set fromGit for the Nix package
<catern> so you can't compile Nix from a git tag
<catern> does anyone see a workaround?
<catern> AFAICT, there's no way to use override{,Attrs,Derivation} to set fromGit = true; for the nix package
<zybell> infinisil How large are the files you want to transfer?
Tehnix has joined #nixos
<infinisil> zybell: A couple MB
ryanartecona has quit [Quit: ryanartecona]
<infinisil> SimpleHTTPServer will work well though
Tehnix1 has quit [Read error: Connection reset by peer]
<cheater> mpickering: that worked! thanks a lot!
blankhart has joined #nixos
muzzy has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @catern opened pull request #39093 → nix: add a fromGit argument so it can be overridden → https://git.io/vpTQf
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « rkt: 1.29.0 -> 1.30.0 »: https://git.io/vpTQT
<catern> ok, regarding my complaint above about not being able to build Nix from git... made a pull request here https://git.io/vpTQf
blankhart has quit [Ping timeout: 256 seconds]
mahalel_ has joined #nixos
lostman has joined #nixos
<lostman> how do I open a range of UDP ports on NixOS?
<infinisil> lostman: networking.firewall.allowedUDPPortRanges
<infinisil> lostman: Search for nixos options here: https://nixos.org/nixos/options.html
<lostman> infinisil: thanks! was just looking at nixos/firewall.nix and didn't see it there
<mahalel_> hey, new to nixos and loving it so far. on arch I had a bash script to set a custom resolution & refresh rate for my monitor on login, just wondering how can i achieve the same via the configuration.nix file
jperras has joined #nixos
<infinisil> mahalel_: I think `services.xserver.displayManager.sessionCommands` would work the best
<Ralith> man, nix keeps dying from OOM
<infinisil> mahalel_: https://nixos.org/nixos/options.html#services.xserver.displaymanager.sessioncommands
leothrix has quit [Ping timeout: 264 seconds]
<Ralith> between Nix enthusiastically gobbling up gigabytes of RAM and practically everything being a goddamn webapp I can barely use my computer any more
<infinisil> Ralith: Has been happening to me too a lot recently..
<infinisil> Ralith: I hate to say it, but I bet rewriting it in Rust would make it better :P
leothrix has joined #nixos
<mahalel_> thanks so much infinisil
jperras_ has quit [Ping timeout: 264 seconds]
<Ralith> infinisil: I dunno, I think it's halfassed IO mostly to blame
<Ralith> so much stuff being copied into memory in full for no good reason
<Ralith> seems like a massive regression from nix 1
<infinisil> Ralith: Ah yeah I think clever said something about closure contents being loaded into C++ strings
<Ralith> I don't seem to be able to upgrade my user environment at all now
<infinisil> Which sounds horrible
<infinisil> Ralith: Restarting helped for me
<infinisil> Which surprised me because I thought linux would free stuff automatically
pie__ has joined #nixos
sigmundv has quit [Quit: Leaving]
pie_ has quit [Ping timeout: 264 seconds]
Lears has quit [Remote host closed the connection]
roconnor has quit [Remote host closed the connection]
roconnor has joined #nixos
sehqlr has quit [Ping timeout: 264 seconds]
Supersonic has quit [Ping timeout: 240 seconds]
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
Lears has joined #nixos
<cheater> hi
<cheater> i have another issue!
<cheater> when building a library (fake), my pc runs out of memory. i was told in #haskell to run ghc with these options: -j1, +RTS -M500m -RTS. How can i set those ghc options for a library?
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
furon has quit [Quit: Connection closed for inactivity]
nuncanada has quit [Ping timeout: 276 seconds]
nD5Xjz has quit [Ping timeout: 265 seconds]
acarrico has joined #nixos
<cheater> rotaerk: can i completely skil relSourceOverrides?
<rotaerk> cheater, you can just do: fake = overrideCabal super.fake
<cheater> right yeah that's what i suspected
<cheater> now, i understand the ghc flags somehow go into configureFlags, right?
<rotaerk> the relSourceOverrides thing is just me taking super.fake and overriding where it gets its source from, and then I overrideCabal *that*
<cheater> right yeah
<rotaerk> I forget what the cabal flag is for passing ghc arguments
<rotaerk> but whatever that was, you can do it there
<rotaerk> I'm trying to find it
mkoenig has quit [Ping timeout: 256 seconds]
<cheater> i just asked in #haskell they probably know :)
nuncanada has joined #nixos
<rotaerk> cheater, check these out
jgt has joined #nixos
<rotaerk> to see how the defaults and the ones you specify are combined
olto has quit [Ping timeout: 240 seconds]
<cheater> rotaerk: it's like the voynich manuscript to me :-)
olto has joined #nixos
<rotaerk> cheater, defaultConfigureFlags is a list of strings, each string being a separate cabal argument
<rotaerk> so it's always passing --verbose, always passing --prefix=$out, etc
astiles has quit [Ping timeout: 256 seconds]
<rotaerk> and then all the other stuff like (optionalString foo bar) is about enabling certain arguments based on a setting
<rotaerk> e.g. if enableSeparateDataOutput is set to true, it will add the "--datadir=$data/share/${ghc.name}" arg to cabal
xcmw has joined #nixos
Fare has quit [Ping timeout: 240 seconds]
<rotaerk> and enableSeparateDataOutput is an attribute at the same level as configureFlags
<cheater> hmm
<cheater> so how do we pass in -j1?
<rotaerk> configureFlags = [ "-j1" ]
jgt has quit [Quit: WeeChat 1.9.1]
<cheater> but in #haskell they just said it's not a flag for configure
<cheater> but ok, let me try that
spud_ has joined #nixos
<cheater> thing is, if i just write configureFlags = [ "-j1" ], won't that delete all other configure flags?
<cheater> or is that what you were saying
<rotaerk> no, if you look at the second link above, i.e. line 237
<rotaerk> it's appending configureFlags to the defaults
<rotaerk> and generally if you pass two flags that contradict one another, the later one wins
<cheater> right, i was halfway sure that's what it was doing
<cheater> ok
zybell has quit [Ping timeout: 264 seconds]
<rotaerk> cheater, so ultimately I think you want: configureFlags = [ "-j1" "--ghc-options='+RTS 500m -RTS'" ]
nikola_i has quit [Quit: WeeChat 1.7.1]
<cheater> right, yeah, just checking if -j1 will work
<cheater> so i don't want something like configureFlags = drv.configureFlags ++ [ "-j1", "--ghc-options='...'" ] ?
alanz has quit [Ping timeout: 246 seconds]
<cheater> hm unrecognized 'configure' option `-j1'
<rotaerk> cheater, hmm, if drv.configureFlags is non-empty, and you want to keep its flags, then you probably do want that
<cheater> so after all it's not a good place to put it
<rotaerk> hmm
<adisbladis[m]> Because the number of jobs is not a configure flag, it's a make thing.
<cheater> adisbladis[m]: that's what i figure.. so where do i stuff this in on nix?
<rotaerk> hmm interesting; didn't realize configureFlags went to cabal configure; thought it went to cabal build
<rotaerk> so question is, where does it decide what goes to cabal build...
alanz has joined #nixos
<rotaerk> it doesn't look like it provides a hook for that... see line 313
<adisbladis[m]> cheater: Typically using the `--cores` argument to nix-build. I'm not sure if there is anything special about Haskell packages though
<{^_^}> [nixpkgs] @thoughtpolice pushed commit from @Mic92 to master « oraclejdk8: 8.161 -> 8.171 »: https://git.io/vpTdW
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #39086 → oraclejdk8: 8.161 -> 8.171 → https://git.io/vpT4T
<adisbladis[m]> cheater: It's also possible to change the global setting in /etc/nix/nix.conf
ihar has quit [Quit: WeeChat 2.0]
<rotaerk> not a fan of changing things globally
<rotaerk> makes the build reproducibility dependent on the environment
<{^_^}> [nixpkgs] @Ralith opened pull request #39094 → vulkan-loader: fix broken symlink in output → https://git.io/vpTdE
<cheater> adisbladis[m]: what about --ghc-options?
<rotaerk> cheater, oh! I see
<rotaerk> look at line 160
<rotaerk> it's passing -j$NIX_BUILD_CORES
<rotaerk> it's also doing so on line 137
ihar has joined #nixos
<cheater> i tried *just* adding the --ghc-options='+RTS 500m -RTS' bit, and I get this:
<cheater> configureFlags: --verbose --prefix=/nix/store/yj4wcpps5m4rbfnv1hhk4zisk64g2v35-fake-0.1.0.0 --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --docdir=/nix/store/zv1766ab5i5iagn5g99j4amihsqycji6-fake-0.1.0.0-doc/share/doc --with-gcc=gcc --package-db=/tmp/nix-build-fake-0.1.0.0.drv-0/package.conf.d --ghc-option=-j2 --disable-split-objs --enable-library-profiling --disable-profiling --enable-shared ...
<cheater> ... --disable-coverage --enable-library-vanilla --disable-executable-dynamic --enable-tests --ghc-option=-split-sections --enable-optimization=2 --ghc-options=-threaded --ghc-options=-rtsopts --ghc-options=-H32m --ghc-options=+RTS --ghc-options=-A10m --ghc-options=-n2m --ghc-options=-N --ghc-options=-RTS --ghc-options=-fprof-auto --ghc-options=-fprof-cafs --ghc-options='+RTS 500m -RTS'
<cheater> unrecognized 'configure' option `-RTS''
<cheater> the "..." was added by my irc client
<rotaerk> I wonder if those belong outside of configureFlags too
<cheater> well, you see other ghc-options being set in the configureFlags
<rotaerk> yea
mbrgm has quit [Ping timeout: 256 seconds]
jperras_ has joined #nixos
<rotaerk> cheater, oh you did it wrong
<rotaerk> +RTS -M500m -RTS
mbrgm has joined #nixos
Supersonic has joined #nixos
<cheater> that's what happens when you mindlessly copy people on the internet
<cheater> haha
jperras has quit [Ping timeout: 276 seconds]
<cheater> ah yes, got it to build
<cheater> it's actually: configureFlags = [ "--ghc-options=+RTS" "--ghc-options=-M500m" "--ghc-options=-RTS" ];
<cheater> no single quotes, and every ghc option separately
jperras_ has quit [Ping timeout: 240 seconds]
<cheater> here's to hoping it won't run out of memory now
jperras_ has joined #nixos
<rotaerk> cheater, hrm, "--ghc-options='+RTS -M500m -RTS'" didn't work?
<cheater> no, i had to split it like that
<cheater> it's something i've seen at some point. now it's running the compile with the right rts opts
<rotaerk> weird
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cheater> ps shows me this:
<cheater> 20983 40.4 7.1 359616 297004 ? Rl 03:54 0:27 /nix/store/gn84cxncp5bh2abq2zwsc58p53k3aqwm-ghc-8.0.2/lib/ghc-8.0.2/bin/ghc -B/nix/store/gn84cxncp5bh2abq2zwsc58p53k3aqwm-ghc-8.0.2/lib/ghc-8.0.2 --make -fbuilding-cabal-package -O2 -prof -fprof-auto-exported -osuf p_o -hisuf p_hi -outputdir dist/build -odir dist/build -hidir dist/build -stubdir dist/build -i -idist/build -isrc ...
<cheater> ... -idist/build/autogen -Idist/build/autogen -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h -this-unit-id fake-0.1.0.0-LmmAQhnoHcH8wuyAAKL918 -hide-all-packages -no-user-package-db -package-db /tmp/nix-build-fake-0.1.0.0.drv-0/package.conf.d -package-db dist/package.conf.inplace -package-id base-4.9.1.0 -package-id containers-0.5.7.1 -package-id ...
<cheater> ... generics-sop-0.3.0.0-IZdCmc8BG51ApeOoqdceGQ -package-id random-1.1-9tceXaeYIMZ4JrKq20Egog -package-id text-1.2.2.2-1cn50juu89QSL9QkUVcRY -package-id time-1.6.0.1 -XHaskell2010 Fake Fake.Class Fake.Combinators Fake.Cover Fake.Provider.Address.EN_US Fake.Provider.DateTime Fake.Provider.IdNumber.EN_US Fake.Provider.Lang Fake.Provider.Lang.EN_US Fake.Provider.Locale Fake.Provider.Person.EN_US ...
<cheater> ... Fake.Provider.PhoneNumber.EN_US Fake.Provider.UserAgent Fake.Utils Fake.Types -O -Wall -j1 -split-sections -threaded -rtsopts -H32m +RTS -A10m -n2m -N -RTS -fprof-auto -fprof-cafs +RTS -M500m -RTS
<rotaerk> wonder if you could do "--ghc-options=+RTS -M500m -RTS"
<cheater> aaand it's out of memory
srdqty has quit [Ping timeout: 264 seconds]
<rotaerk> did you set the --cores flag for nix-build?
<{^_^}> [nixpkgs] @matthewbauer pushed commit from @coreyoconnor to master « docbook-xsl-ns: Add patch to avoid infinite recursion. »: https://git.io/vpTFO
mkoenig has joined #nixos
<rotaerk> also, try using a pastebin or something rather than pasting all that here
<cheater> no, that doesn't work, you have to wrap them separately
<cheater> rotaerk, ok, i didn't think it was too much to paste
<cheater> and yeah i used --cores 1
<rotaerk> well I removed the 's from it, is why I was wondering
srdqty has joined #nixos
zybell_ has joined #nixos
<cheater> yeah, i checked with and without the single quotes
mkoenig has quit [Ping timeout: 260 seconds]
jperras_ has quit [Ping timeout: 256 seconds]
S1tiSchu has joined #nixos
<{^_^}> [nixpkgs] @moaxcp opened pull request #39095 → visualvm: 1.3.9 -> 1.4 → https://git.io/vpTFu
<rotaerk> from the commandline, this works: cabal configure --ghc-options='+RTS -M500m -RTS'
<rotaerk> wonder if nixpkgs is doing something funky with the spaces
nD5Xjz has joined #nixos
SitiSchu has quit [Ping timeout: 265 seconds]
ndrei has quit [Ping timeout: 268 seconds]
nuncanada has quit [Quit: Leaving]
<rotaerk> cheater, actually, uh, is it running out of memory when building *your* project, or one of the dependencies?
<rotaerk> you might have to set configureFlags for *everything*
jperras_ has joined #nixos
<rotaerk> cheater, I think you can do that by overriding mkDerivation like this: https://github.com/Rotaerk/vulkanTest/blob/master/default.nix#L15-L18
<rotaerk> only instead of enableLibraryProfiling, you pass configureFlags
<rotaerk> though, perhaps do: configureFlags = args.configureFlags ++ [ "--ghc-options=+RTS" "--ghc-options=-M500m" "--ghc-options=-RTS" ];
freeman42x]NixOS has quit [Ping timeout: 256 seconds]
<cheater> so actually, as sm pointed out, it's gcc running out of memory
mkoenig has joined #nixos
<cheater> because this library uses C in it
<cheater> so need to figure out gcc flags
sigmundv__ has quit [Ping timeout: 240 seconds]
<rotaerk> ah
<rotaerk> cheater, I think you can pass it with --ghc-options=-optc=blah
<rotaerk> once you figure out what blah should be
olto has quit [Quit: ZNC - http://znc.in]
<cheater> hmm
<{^_^}> [nixpkgs] @matthewbauer pushed to master « docbook-xsl-ns: cleanup last patch »: https://git.io/vpTbR
fragamus has joined #nixos
blankhart has joined #nixos
<iqubic> Are there any good guides on getting nix to build my haskell projects and skipping the middle man of cabal or stack?
<fearlessKim[m]> the nixpkgs manual doesn't explain how to create a module (e.g. referencing module-list.nix)
<fearlessKim[m]> would be cool for nix --version to display the git hash. returning 2.0 when I am on nixUnstable is not helpful. hum nixUnstable points to nix :/
<{^_^}> [nixpkgs] @smashedtoatoms opened pull request #39096 → bitwigstudio2: 2.2.2 -> 2.3.2 → https://git.io/vpTNn
<fearlessKim[m]> nixUnstable -> nixStable
spud_ has quit [Ping timeout: 260 seconds]
dbmikus_ has joined #nixos
joehh has quit [Ping timeout: 260 seconds]
sehqlr has joined #nixos
pie__ has quit [Ping timeout: 264 seconds]
<xCuri0> When I try to run an AppImage on NixOS it says no such file or directory
<iqubic> xCuri0: NixOS isn't set-up that way. Not sure how to run an AppImage on NixOS.
<iqubic> Some one else here might.
dbmikus_ has quit [Ping timeout: 264 seconds]
orivej has quit [Ping timeout: 260 seconds]
maingo has joined #nixos
Fare has joined #nixos
<{^_^}> [nixpkgs] @smashedtoatoms closed pull request #39096 → bitwigstudio2: 2.2.2 -> 2.3.2 → https://git.io/vpTNn
<cheater> rotaerk, any idea how to disable profiling?
<cheater> just --disable-library-profiling and --disable-profiling in configureFlags?
<{^_^}> [nixpkgs] @smashedtoatoms opened pull request #39097 → bitwigstudio2: 2.3.1 -> 2.3.2 → https://git.io/vpTAW
nur0n0 has joined #nixos
lo_mlatu has joined #nixos
<rotaerk> cheater, check that default.nix I linked earlier
<rotaerk> it's referencing the variable on line 5
<v0latil3> https://nixos.org/nixos/nix-pills/working-derivation.html these articles always start with "source ~/.nix-profile/etc/profile.d/nix.sh" but I don't have that I think because I'm just using the system profile by default? Do I want to nix-env -i nix or something?
linuxdaemon has quit [Ping timeout: 260 seconds]
<v0latil3> Hmm I guess that works ok
<nur0n0> v0latil3: if i understand correctly that is only needed to make the nix tools visible to your shell if you are running a non nixos distro
<cheater> rotaerk: check in #haskell, we've figured it out
<v0latil3> I thought maybe I should make my own user account it's own per user nix to write a derivation?
<nur0n0> v0latil3: by "that" I mean: "source ~/.nix-profile/etc/profile.d/nix.sh"
<v0latil3> Yeah I understood you
drakonis_ has quit [Quit: Leaving]
jperras_ has quit [Read error: Connection reset by peer]
ryantrinkle has quit [Ping timeout: 264 seconds]
linuxdaemon has joined #nixos
Fare has quit [Ping timeout: 265 seconds]
rauno has joined #nixos
schoppenhauer has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @adisbladis merged pull request #36456 → ELK 5.6.9 & 6.2.4 & fixes for elasticsearch6 and logstash6 not starting up → https://git.io/vAN3M
<{^_^}> [nixpkgs] @adisbladis pushed 8 commits to master: https://git.io/vpTxV
<{^_^}> → 390abceb by @basvandijk: elk5: 5.6.6 -> 5.6.8
<{^_^}> → b3e94a23 by @basvandijk: elk6: 6.1.2 -> 6.2.2
<{^_^}> → 54e6c0e7 by @basvandijk: elk6: 6.2.2 -> 6.2.3
<iqubic> How many mirror servers does NixOS have?
schoppenhauer has joined #nixos
<elvishjerricco> How can I test this PR with the Nix 2.0 release? https://github.com/NixOS/nix/pull/2026
vrdhn has joined #nixos
ryantrinkle has joined #nixos
jgt has joined #nixos
<jgt> can I do `nix-env -i` with local source?
<jgt> i.e., I cloned the latest stack2nix, I built it with nix-build, but I want the symlink to the binary in ~/.nix-profile/bin
<jgt> or do I have to create the symlink manually?
<elvishjerricco> jgt: `nix-env -f . -i`
<nur0n0> jgt: I'm not sure, but I think "nix-env -i --file default.nix" should do it
<nur0n0> dang, beat me to it :D
<jgt> thanks!
rauno has quit [Ping timeout: 264 seconds]
jgt has quit [Ping timeout: 240 seconds]
dmj` has joined #nixos
nur0n0 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
lo_mlatu has quit [Ping timeout: 256 seconds]
joehh has joined #nixos
aarvar has quit [Ping timeout: 264 seconds]
Fare has joined #nixos
stqism has quit [Quit: Like 3 fire emojis lit rn 🔥🔥🔥]
blankhart has quit [Quit: WeeChat 1.9.1]
stqism has joined #nixos
sehqlr has quit [Ping timeout: 260 seconds]
stqism has quit [Client Quit]
sehqlr has joined #nixos
stqism has joined #nixos
stqism has quit [Client Quit]
kerrhau has quit [Ping timeout: 240 seconds]
stqism has joined #nixos
stqism has quit [Remote host closed the connection]
stqism has joined #nixos
<achambe> anyone here use apparmor ? does it work well with nixos?
Rusty1_ has quit [Quit: Konversation terminated!]
Fare has quit [Ping timeout: 264 seconds]
mk-fg has quit [Ping timeout: 256 seconds]
MP2E has quit [Remote host closed the connection]
boomshroom has joined #nixos
<boomshroom> Hello!
astiles has joined #nixos
vrdhn has quit [Quit: Leaving]
mk-fg has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
vrdhn has joined #nixos
<boomshroom> Does anyone have experience building Redox on NixOS?
vrdhn has quit [Client Quit]
vrdhn has joined #nixos
<unlmtd> boomshroom: I havent but rust on nixos is pretty much only done in nix-shell for now. so call all the things you need into a nix-shell and fire up the make scripts, it should 'just work'
astiles has quit [Ping timeout: 265 seconds]
<boomshroom> unlmtd: I've done rust development before, but right now, I'm trying to build newlib and it has a rust crate embeded in the c code.
<unlmtd> so you need gcc perhaps?
<unlmtd> like I said, use the nix-shell to import all the things into your environment
<boomshroom> unlmtd: Cargo is having trouble downloading the dependencies because it can't find the ssl certificates. (Which makes sense since derivations are supposed to be deterministic.)
<unlmtd> cargo isnt deterministic
rauno has joined #nixos
<boomshroom> unlmtd: That's why the dependencies are a separate build step normally.
<unlmtd> I dont know why those certs arent in your system, but theres a nixos option to add trustes certs manually
<unlmtd> so youre doing this with a nix expression then?
<unlmtd> are you using nix-rust? https://nest.pijul.com/pmeunier/nix-rust
<boomshroom> unlmtd: I'm pretty sure they are on my machine, but they aren't available to the build (I want a derivation for each redox tool.)
<unlmtd> well then you need to include the certs pkg
<boomshroom> unlmtd: "This site can’t be reached" "nest.pijul.com refused to connect."
<boomshroom> unlmtd: The problem is I can't find the certs package.
<unlmtd> yea youre right, must be down for maintenance
<unlmtd> pkgs.cacert
<unlmtd> `nix search certificates`
<boomshroom> unlmtd: Thank you.
<unlmtd> I hope you can get this working
<unlmtd> redoxOS is awesome
<vaibhavsagar> has anyone gotten nixos working on the espressobin?
<unlmtd> then the next step will be to write nixRedoxOS
reinzelmann has joined #nixos
<boomshroom> unlmtd: I was using the website. The main reason I'm doing this is 1. to compile Redox, and 2. to compile arbitary Nix derivations for redox (including Nix itself).
oahong has quit [Quit: 暂离]
Guanin has quit [Ping timeout: 240 seconds]
<unlmtd> ahh yes, nix on redox would be nice
<boomshroom> unlmtd: Nix on EVERYTHING would be nice. ;)
pirateking has joined #nixos
<pirateking> anyone know how to set your nixos version and/or nixpkgs to master?
<boomshroom> pirateking: You mean more unstable than unstable?
<pirateking> i mean surf the waves of chaos
<boomshroom> pirateking: I like your style!
ma27 has joined #nixos
Guanin has joined #nixos
ryantrinkle has quit [Ping timeout: 240 seconds]
<samae> pirateking: sudo nixos-rebuild -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/master.tar.gz test ?
<samae> If you like broken things and you need your PC to heat the room
<pirateking> let's see. if you don't hear from me in 5 minutes then tell my wife she has to find someone else
<boomshroom> samae: That's probably better than what I was going to do. I was going to suggest a local git repo that you'd update manually.
<samae> :D
mahalel_ has quit [Ping timeout: 260 seconds]
<boomshroom> pirateking: Timer set.
<samae> Well, my line is wrong
jrolfs has quit [Ping timeout: 246 seconds]
lostman has quit [Quit: Connection closed for inactivity]
<boomshroom> "fatal error: stdint.h: No such file or directory" WAT?!
iqubic` has joined #nixos
<boomshroom> It's been 5 minutes. Something might have happened to pirateking
<pirateking> no nothing
<boomshroom> pirateking: You're alive! ^_^
iqubic has quit [Read error: Connection reset by peer]
<pirateking> oh god it's working
<boomshroom> Now I want to try.
<samae> Strange I thought my line was ok, doc says it almost that
Ariakenom has joined #nixos
tertle||eltret has quit [Quit: Connection closed for inactivity]
<pirateking> need to debug a bit
<boomshroom> samae: I'm getting "unknown option -I"
iqubic` is now known as iqubic
<pirateking> works for me
<pirateking> sudo nixos-rebuild switch -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/master.tar.gz
<pirateking> and by "works" i mean it fails but it fails correctly!
rauno has quit [Remote host closed the connection]
<boomshroom> Got it to run by using NIX_PATH instead of -I
Fare has joined #nixos
<boomshroom> Sometimes I worry if I'm torturing poor Vanessa.
<samae> ><'
ma27 has quit [Ping timeout: 276 seconds]
srdqty has quit [Ping timeout: 264 seconds]
srdqty has joined #nixos
hamishmack has quit [Ping timeout: 256 seconds]
sehqlr has quit [Ping timeout: 264 seconds]
rauno has joined #nixos
pmeunier has quit [Ping timeout: 256 seconds]
nhh^ is now known as hph^
<etu[m]> You're all mad men :D
<etu[m]> Running on master like that
<etu[m]> I wouldn't do a nixos-rebuild switch on master, but a test... maybe, since that doesn't change the bootloader :p
jrolfs has joined #nixos
Lears has quit [Remote host closed the connection]
rauno has quit [Remote host closed the connection]
<boomshroom> etu[m]: I'm not even doing a test, I'm chickening out and doing build-vm
alex`` has joined #nixos
<boomshroom> I'm surprised by how many master packages are prebuilt.
pirateking has quit [Ping timeout: 260 seconds]
pirateking has joined #nixos
<pirateking> it worked :)
<pirateking> I'm so happy
<adisbladis[m]> etu: So far I've been able to roll back every time there has been a problem (even on master)
<pirateking> nix is ever so wonderful
periklis has joined #nixos
Lears has joined #nixos
hyper_ch2 has joined #nixos
Ariakenom has quit [Quit: Leaving]
pirateking has quit [Ping timeout: 260 seconds]
<boomshroom> Is it possible to add master as a channel? From what I can tell, the channel url needs to have a binary-cache-url and a nixexprs.tar.xz.
<adisbladis[m]> boomshroom: It's easy enough to point NIX_PATH to master
pie__ has joined #nixos
<boomshroom> adisbladis[m]: Yes but I want to nix-env -i master.foobar without worrying about NIX_PATH.
vandenoever has quit [Ping timeout: 256 seconds]
rauno has joined #nixos
hamishmack has joined #nixos
jacob_ has joined #nixos
<{^_^}> [nixpkgs] @teto opened pull request #39099 → [WIP] qemu-guest-agent: init module → https://git.io/vpkJF
Ariakenom has joined #nixos
vaninwagen has joined #nixos
alex`` has quit [Ping timeout: 246 seconds]
ixxie has joined #nixos
Tucky has joined #nixos
c0ffee152 has quit [Quit: Lost terminal]
<boomshroom> Good night, guys!
boomshroom has quit [Quit: WeeChat 2.0]
joehh has quit [Ping timeout: 264 seconds]
__Sander__ has joined #nixos
kisik21 has joined #nixos
Lears has quit [Remote host closed the connection]
periklis has quit [Ping timeout: 260 seconds]
yorick has quit [Ping timeout: 260 seconds]
wangoe has joined #nixos
i-am-the-slime has joined #nixos
periklis has joined #nixos
chisui has joined #nixos
ihar has quit [Ping timeout: 256 seconds]
ihar has joined #nixos
<{^_^}> [nixpkgs] @maximedenes closed pull request #38807 → pythonPackages.macpack: init at 1.0.3 → https://git.io/vxAZ2
jgt has joined #nixos
chisui has quit [Client Quit]
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/8caa3e2010e (from 15 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
odi has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
jwynn6 has quit [Ping timeout: 264 seconds]
jwynn6 has joined #nixos
joehh has joined #nixos
<{^_^}> [nixpkgs] @vbgl merged pull request #38792 → ocamlPackages.js_of_ocaml-tyxml: init at 3.1.0 → https://git.io/vxAev
<{^_^}> [nixpkgs] @vbgl pushed to master « ocamlPackages.js_of_ocaml-tyxml: init at 3.1.0 »: https://git.io/vpkI9
chisui has joined #nixos
<{^_^}> [nixpkgs] @dotlambda pushed to master « home-assistant: 0.67.0 -> 0.67.1 »: https://git.io/vpkIp
<Akii> seems like i broke the window manager
<vaibhavsagar> how did you manage that :)?
lord| has quit [Ping timeout: 240 seconds]
<vrdhn> done nix-env -iA nixos.zlib, still getting libz.so.1 => not found ; any ideas?
<vaibhavsagar> vrdhn: that's not how nixos works
<makefu> !library
<{^_^}> Don't install libraries through nix-env or systemPackages. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<Akii> no idea, everything was fine yesterday
<Akii> booted today it's gone
<vaibhavsagar> Akii: are you using KDE?
<vrdhn> makefu, thx,
<Akii> yes
<vaibhavsagar> did you install some KDE packages with nix-env?
<vaibhavsagar> or any Qt packages?
chisui has quit [Client Quit]
<Akii> I did install konversation and some calendar
<Akii> kwin_x11 segfaults
<Akii> yey
<vaibhavsagar> Akii: I've gotten into issues with Qt stuff before because it only allows one version(?)
<{^_^}> [nixpkgs] @dotlambda merged pull request #39083 → nixos/tor: use RuntimeDirectory, StateDirectory → https://git.io/vpTmY
<{^_^}> [nixpkgs] @dotlambda pushed to master « nixos/tor: use RuntimeDirectory, StateDirectory (#39083) »: https://git.io/vpkLk
<vaibhavsagar> so if you uninstall the nix-env stuff and do everything in configuration.nix it should work again
<vrdhn> makefu, the libz still not found ; I'm trying to run the rustup , which downloads a prebuild binary .
jackdk has quit [Ping timeout: 260 seconds]
<vaibhavsagar> vrdhn: what did you do instead on installing it with nix-env?
<vaibhavsagar> *of
<makefu> vrdhn: unfortunately this is a typical issue with nix and how nix works: https://nixos.wiki/wiki/FAQ#I.27ve_downloaded_a_binary.2C_but_I_can.27t_run_it.2C_what_can_I_do.3F
<vrdhn> vaibhavsagar, nix-shell -p zlib
<vaibhavsagar> vrdhn: that's essentially the same thing, which is why you're getting the same result
<vaibhavsagar> did you read the wiki page makefu linked?
<makefu> binaries are one of the messier parts of nix because if tools just assume that they find libraries somewhere in /usr/lib then this assumption is normally wrong on nixOS
<{^_^}> [nixpkgs] @wmertens closed pull request #39088 → minimal installer: support cloud-init → https://git.io/vpTao
<Akii> I don't get it; what do I have to uninstall now
<vrdhn> ldd shows that other libc etc. are picked correctly .. however libz is not.
<vaibhavsagar> Akii: any Qt packages you installed using nix-env
<Akii> and what is "don't use nix on nixos" supposed to mean
<vaibhavsagar> Akii: don't use `nix-env` on nixos :)
<Akii> wat
<vaibhavsagar> because nix-env is messy and mutable, unlike everything else
<vaibhavsagar> easier to put everything in configuration.nix
ThatDocsLady_ has joined #nixos
<vaibhavsagar> vrdhn: the other libraries were linked in at build time, installing zlib now won't have any effect
ThatDocsLady_ has quit [Remote host closed the connection]
Guillaum has quit [Remote host closed the connection]
ThatDocsLady_ has joined #nixos
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos
<sphalerite> I do use nix-env on nixos, and if you're sharing a system with other people you basically have to
<monotux> uh...nixos-shell '<nixpkgs>' -A ghc throws an exception that nixos daemon has run out of memory. :/
lord| has joined #nixos
reinzelmann has quit [Quit: Leaving]
<vaibhavsagar> weird, I'm not having this issue with 18.03
<vaibhavsagar> which is what I'm running right now
<sphalerite> monotux: how much memory do you have?
<monotux> 4 gb
<sphalerite> monotux: yeah it's probably just not enough for nix 2.0. Some memory consumption bugs have been fixed since the release, but they're not in any point versions :/
<sphalerite> monotux: also, are you sure nix-shell '<nixpkgs>' -A ghc is what you want?
<monotux> I want a haskell repl, that is what I want
<Akii> vaibhavsagar: ok, uninstalled all
<sphalerite> then you want nix-shell -p ghc
<Akii> so, what is this about not using nix-env
<Akii> I need to install packages
<Akii> what's the preferred alternative
asuryawanshi has joined #nixos
<sphalerite> Akii: some people prefer to put all their stuff in systemPackages.
<Akii> and Qt probably
<monotux> sphalerite, that's where I started
<monotux> sphalerite, same error now
<sphalerite> :/
<monotux> is there any semi-fixed nix version in unstable? I have both 18.03 and unstable as channels
<sphalerite> nixUnstable in nixos-unstable might work
blahdodo has quit [Ping timeout: 256 seconds]
<monotux> I'll give it a try, I can install it as a user and not only as a system package right?
coot has joined #nixos
<sphalerite> unfortunately for nix you need to do it systemwide
<sphalerite> by setting nix.package
<monotux> ah
thc202 has joined #nixos
<sphalerite> Akii: personally I do use nix-env, but only with one expression, so I have essentially declarative management of my user profile
joehh has quit [Ping timeout: 256 seconds]
<Akii> well I don't see why this would f up my window manager
<Akii> but whatever
<Akii> I think I got it working now
joehh has joined #nixos
<Akii> now I'm not authorized to run slack
blahdodo has joined #nixos
rosa has joined #nixos
<Akii> ah well nevermind
<Akii> works from console
<Akii> weird weird
<Akii> but can't start any of those from the KDE menu welp
rosa has quit [Client Quit]
<sphalerite> does the journal say anything about why that might be?
<sphalerite> Is it maybe because they're not in your user profile anymore?
nckx has quit [Ping timeout: 265 seconds]
<Akii> I uninstalled everything I installed with nix-env
<Akii> then I put the most essential things into the config
<Akii> I restarted
vandenoever has quit [Ping timeout: 260 seconds]
<Akii> that's all I know
<Akii> these bins are in a different path now
<sphalerite> oh, hm
<Akii> which is I guess to be expected
<sphalerite> maybe remove ~/.cache and log in again
<sphalerite> oh boy. error: null pointer cast to ref
Ariakenom has quit [Ping timeout: 260 seconds]
vrdhn has quit [Quit: Leaving]
<Aleksejs> Hi, after I updated to 18.03, teamviewer doesn't work anymore. It shows message that teamviewerd is not started however I tried to restart it and I can see that it's running
<monotux> damn, still running into out of memory when running on unstable
<monotux> checking github issues...
<Akii> thanks, the cache thing worked wohooo
<Akii> they expect me to be productive today so I'm really out of time
<Akii> but I must say I already wondered how this declaritive system is upposed to work with nix-env
<hyper_ch2> Mic92: I think I'll have this weekend a little look at 4.16 and the initramfs to see why pool import doesn't work
<hyper_ch2> but since I'm no techie, not sure if I'll find the cause
<sphalerite> Akii: you can have an overlay like LnL's for a declarative user env https://gist.github.com/LnL7/570349866bb69467d0caf5cb175faa74
<sphalerite> or use the more complex home-manager, which brings nixos-like modules to the user level
nckx has joined #nixos
<hyper_ch2> or sphalerite could debug zfs on nixos / kernel 4.16 :)
<{^_^}> [nixpkgs] @zauberpony opened pull request #39100 → hcloud: 1.3.0 -> 1.4.0 → https://git.io/vpkmE
<sphalerite> hyper_ch2: I doubt I'd get very far
<hyper_ch2> you have my full (moral) support :)
<sphalerite> how about you just do it instead :p
<hyper_ch2> but I don't know anything about computers... I'm just an average computer users that needs point and click and flashy things :)
<hyper_ch2> nah, will probably have a look at the weekend.... for some reasons, with kernel 4.16 it fails to import the pool for some reason.
Ariakenom has joined #nixos
<Akii> collision between qt4 and qt5; I smell trouble
<{^_^}> [nixpkgs] @obadz pushed to master « network-manager-applet: add runtime dependency on gnome3.keyring »: https://git.io/vpkYf
<{^_^}> [nixpkgs] @obadz merged pull request #39091 → network-manager-applet: add runtime dependency on gnome3.keyring → https://git.io/vpTPO
xy2_ has joined #nixos
<fearlessKim[m]> when enabling network manager with nixops, it seems like interfaces don't get IP (I can see it thanks to qemu-agent). Does enabling networkmanager disable dhcp ? that' weird
<{^_^}> [nixpkgs] @jokogr opened pull request #39101 → Jetbrains products' update 2018.1.1 → https://git.io/vpkY4
chisui_w has joined #nixos
<{^_^}> [nixpkgs] @vbgl opened pull request #39102 → coq: 8.8+beta1 -> 8.8.0 → https://git.io/vpkYa
jgt has quit [Ping timeout: 256 seconds]
jgt has joined #nixos
rosa has joined #nixos
<Akii> how can I install this workaround? https://github.com/NixOS/nixpkgs/issues/36880
jtojnar has quit [Ping timeout: 264 seconds]
jgt has quit [Read error: Connection reset by peer]
<Akii> alternative question: how can I use a local git repo as my nixpkgs?
<sphalerite> Akii: copy it into a file and nix-env -f file.nix -i
<Akii> and without nix-env?
<sphalerite> use a local git repo: pass `-I nixpkgs=path/to/repo` to whatever nix command
<vaibhavsagar> Akii: put that whole expression in systemPackages in configuration.nix
<etu[m]> Akii: You can do it like this as well: https://github.com/etu/nixconfig/blob/master/profiles/common.nix#L9-L13
<Akii> vaibhavsagar: where would I put it? inside the list?
<Akii> etu[m]: thanks! I'll try that later as last resort
<vaibhavsagar> Akii: yes
<etu[m]> I just have nixpkgs as a submodule in git that I commit to my repo from time to time. And If I need temporary patches that are fixed in upstream master. I just put them in there and not commit it and wait for nixos-unstable to move forward :)
jgt has joined #nixos
Synthetica has joined #nixos
<Akii> vaibhavsagar: didn't work
<Akii> maybe I need to do something else?
<Akii> reinstall vagrant perhaps?
<vaibhavsagar> Akii: what do you mean by "didn't work"?
<Akii> I get the same error message
knupfer has joined #nixos
jtojnar has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Akii> ok got it, left vagrant in as depndency
<Akii> whooo
<Akii> exciting
<Akii> thank you again vaibhavsagar
<vaibhavsagar> my pleasure!
iyzsong has joined #nixos
vandenoever has joined #nixos
jacob_ has quit [Quit: Lost terminal]
rosa has quit [Quit: rosa]
rosa has joined #nixos
<Mic92> hyper_ch2: All I can say is that /dev/zfs is not created, maybe a manual modprobe is missing. This is what was added to dracut lately.
rosa has quit [Client Quit]
<Akii> oh my, failed to open /dev/vboxnetctl: No such file or directory
<Akii> it just doesn't stop :/
<hyper_ch2> Mic92: I had a short look at the initramfs but it seemed modprobe was in there... I'll try to investigate on the weekend
<etu[m]> Akii: These are all the configs I use to get my system to run vagrant with vbox: https://github.com/etu/nixconfig/blob/master/profiles/vbox.nix
<{^_^}> [nixos-homepage] @edolstra merged pull request #206 → doc: overrides `hljs` overflow rules for better linking. → https://git.io/vxQqW
<{^_^}> [nixos-homepage] @edolstra pushed 2 commits to master: https://git.io/vpksM
<{^_^}> → 97cfe310 by @samueldr: doc: overrides `hljs` overflow rules for better linking.
<{^_^}> → 08da76fd by @edolstra: Merge pull request #206 from samueldr/fix/callouts
<Akii> ah the extra groups
<Akii> riiight
vaibhavsagar has quit [Quit: ZNC 1.6.5 - http://znc.in]
asuryawanshi has quit [Remote host closed the connection]
<{^_^}> [nixos-homepage] @edolstra merged pull request #205 → Fixes horizontal scrolling originating from `<code>` blocks. (in nixpkgs manual) → https://git.io/vxQTH
<{^_^}> [nixos-homepage] @edolstra pushed 2 commits to master: https://git.io/vpks7
<{^_^}> → 3874dbc8 by @samueldr: Fixes horizontal scrolling originating from `<code>` blocks.
<{^_^}> → 3e53706f by @edolstra: Merge pull request #205 from samueldr/fix/manual-horiz-scroll
vaibhavsagar has joined #nixos
asuryawanshi has joined #nixos
<{^_^}> [nixos-homepage] @edolstra merged pull request #191 → Fixes xml issues in description field for options.html → https://git.io/vpksj
<{^_^}> [nixos-homepage] @edolstra pushed 6 commits to master: https://git.io/vpkGe
<{^_^}> → 146ea99b by @samueldr: Finishes fix fo #89, <link> → <a>.
<{^_^}> → 8796fac5 by @samueldr: Parses `<option>` and `<literal>`.
<{^_^}> → b0a88c1c by @samueldr: Parses `<filename>`.
ma27 has joined #nixos
paraseba has quit [Ping timeout: 260 seconds]
sigmundv__ has joined #nixos
Lears has joined #nixos
<Akii> etu[m]: thank you
<Akii> works like a charm
<{^_^}> [nixos-homepage] @edolstra pushed commit from @woffs to master « install: use tar -f - »: https://git.io/vpkZi
<{^_^}> [nixos-homepage] @edolstra closed pull request #211 → install: use tar -f - → https://git.io/vpTw5
nick_l has joined #nixos
mahalel_ has joined #nixos
sigmundv__ has quit [Ping timeout: 256 seconds]
vandenoever has quit [Ping timeout: 264 seconds]
sigmundv__ has joined #nixos
paraseba has joined #nixos
mahalel_ has quit [Remote host closed the connection]
rosa has joined #nixos
<nick_l> How is it possible that I can ssh into an AWS box, do nslookups, but cannot even ping 8.8.8.8? wget of a website also doesn't work.
i-am-the-slime has quit [Quit: Konversation terminated!]
coot has quit [Quit: coot]
<unacceptable> nick_l: DNS in local network but no outbound internet connection from that box/
<unacceptable> s/\//\?/g
<{^_^}> [nixpkgs] @basvandijk opened pull request #39104 → release-18.03: ELK 5.6.9 & 6.2.4 & fixes for elasticsearch6 and logstash6 not starting up → https://git.io/vpkn7
mahalel_ has joined #nixos
<mahalel_> did anyone have luck getting the steam controller to work in nixos?
ckauhaus has joined #nixos
nD5Xjz has quit [Ping timeout: 256 seconds]
srdqty has quit [Ping timeout: 260 seconds]
rosa has quit [Quit: rosa]
rosa has joined #nixos
srdqty has joined #nixos
tmaekawa has joined #nixos
tmaekawa has quit [Client Quit]
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos
ckauhaus has quit [Remote host closed the connection]
mahalel_ has quit [Remote host closed the connection]
<zybell_> mahlel: seems like a job for steam runner.
<zybell_> mahlel_: seems like a job for steam runner. Didnt want to shorten you;-)
<{^_^}> [nixpkgs] @nlewo merged pull request #39100 → hcloud: 1.3.0 -> 1.4.0 → https://git.io/vpkmE
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/vpkW0
<{^_^}> → bfd67ebc by @nlewo: Merge pull request #39100 from zauberpony/hcloud-1.4.0
<{^_^}> → fd8ff3b7 by @zauberpony: hcloud: 1.3.0 -> 1.4.0
winsom has quit [Read error: Connection reset by peer]
winsom has joined #nixos
jgt has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @magnetophon opened pull request #39105 → vamp-sdk: 2.5 -> 2.7.1 → https://git.io/vpkle
<{^_^}> [nixpkgs] @magnetophon opened pull request #39106 → Mixxx: 2.0.0 -> 2.1.0 → https://git.io/vpklI
bkchr has joined #nixos
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/0a97eb36be8 (from 12 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
Ariakenom has quit [Ping timeout: 264 seconds]
rosa has quit [Quit: rosa]
bkchr has quit [Ping timeout: 276 seconds]
pkill9 has joined #nixos
rosa has joined #nixos
ditadi has joined #nixos
knupfer has quit [Remote host closed the connection]
Alling has joined #nixos
<Alling> If I add mitmproxy to my packages in configuration.nix, I get version 2.0.2. Version 3.0.x is released. How do I get it?
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
<nick_l> unacceptable: yes, but there wasn't really anything stopping traffic.
Ariakenom has joined #nixos
<nick_l> Does anyone know how to get rid of this error message: platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
<sphalerite> Alling: by the looks of it it's available in nixos-unstable
ixxie has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<nick_l> It looks like a wireless thing, but this is running on a server, which is of course wrong.
<Alling> sphalerite: But not in 18.03? How do I check that?
markus1199 has quit [Ping timeout: 256 seconds]
<sphalerite> Alling: actually it does seem to be in 18.03 as well, according to `nix search mitm`
alex`` has joined #nixos
<sphalerite> nick_l: since it's coming from the platform driver which I think you probably need, not much to be done about it AFAIK.
ThatDocsLady_ has quit [Remote host closed the connection]
<Alling> sphalerite: "The program 'nix' is not installed." Is there some web interface for checking package channels/whatnot?
<sphalerite> Alling: are you sure you're on 18.03?
ThatDocsLady_ has joined #nixos
ixxie has joined #nixos
<Alling> sphalerite: I don't know, but nix-channel --list returns "nixos https://nixos.org/channels/nixos-18.03-small"
ditadi has quit [Quit: WeeChat 2.0]
<unacceptable> nick_l: I meant in a general sense, I mean that does make sense to me that a box might be able to resolve hostnames / dns entries but not communicate with them
<sphalerite> Alling: what does nixos-version say?
<Alling> sphalerite: That's 17.09... Hummingbird.
<sphalerite> nick_l: any problem with ignoring the error? :)
<sphalerite> Alling: apparently you haven't run nixos-rebuild boot --upgrade since switching the channel over :)
<sphalerite> Alling: (or nix-channel --update then nixos-rebuild boot and reboot)
<Alling> sphalerite: I did run nixos-rebuild switch --upgrade and then sudo reboot though.
kerrhau has quit [Ping timeout: 276 seconds]
<sphalerite> Aaah what about sudo nix-channel --list?
<Alling> sphalerite: Aaaa that again! I should have used sudo.
<Alling> xD
<sphalerite> :)
srdqty has quit [Ping timeout: 264 seconds]
<sphalerite> this really is an annoying UX bug which ought to be fixed.
Izorkin has quit [Read error: Connection reset by peer]
ckauhaus has joined #nixos
srdqty has joined #nixos
bkchr has joined #nixos
jgt has joined #nixos
klntsky has joined #nixos
<nick_l> sphalerite: It is just a matter of not loading cfg80211.
<nick_l> sphalerite: that moduile should be black listed on all server images.
<sphalerite> nick_l: oh ok. But no, it shouldn't really.
<nick_l> sphalerite: why not?
<Dezgeg> rather it needs to be figured out what is causing cfg80211 to be autoloaded
<sphalerite> because some people might want to run server hardware with a wifi chip.
<infinisil> Hey aszlig and domenkozar, a question for you as beets maintainers
<nick_l> Dezgeg: I agree.
ckauhaus has quit [Ping timeout: 246 seconds]
<Dezgeg> at least I don't see it getting loaded in a qemu VM
astiles has joined #nixos
<infinisil> ashkitten: domenkozar: I seem to not be able to filter based on paths anymore. So `beet ls path:/path/to/file.mp3` doesn't return anything even though the path exists, is present in the database and beet ls lists it otherwise with that path
<Alling> sphalerite: There! I have v3.0.0 of mitmproxy now. How can I check which is the newest one on different Nix channels?
<infinisil> aszlig: domenkozar: And I clearly remember it working before, that's what my music rating setup depends on
jgt has quit [Ping timeout: 256 seconds]
<sphalerite> Alling: nix-env -f channel:nixos-unstable-small -qaA mitmproxy
<sphalerite> how do I make a BIOS-only nixos installer image?
<Alling> sphalerite: Is that the easiest way? :s
<sphalerite> Alling: samueldr has been working on an improved search for the website as well https://nix.samueldr.com/explorer/
<sphalerite> don't know if this prototype is updated automatically yet though
klntsky has quit [Quit: WeeChat 2.1]
infinisil has quit [Quit: Configuring ZNC, sorry for the join/quits!]
astiles has quit [Ping timeout: 240 seconds]
reinzelmann has joined #nixos
ckauhaus has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
<sphalerite> Alling: also, according to my search you should have 3.0.2, not 3.0.0...
Alling has quit [Ping timeout: 260 seconds]
<nick_l> How do I get all the attributes from an attribute set (not the values)?
klntsky has joined #nixos
<{^_^}> [nixpkgs] @pSub merged pull request #39053 → exim: 4.90.1 -> 4.91 → https://git.io/vpUUH
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/vpkRx
<{^_^}> → fd1ddcef by R. RyanTM: exim: 4.90.1 -> 4.91
<{^_^}> → 1ac0d89f by @pSub: Merge pull request #39053 from r-ryantm/auto-update/exim
<{^_^}> [nixpkgs] @pSub merged pull request #39040 → pstoedit: 3.70 -> 3.71 → https://git.io/vpJ9Z
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/vpk0e
<{^_^}> → fe5dbba0 by R. RyanTM: pstoedit: 3.70 -> 3.71
<{^_^}> → 9822c006 by @pSub: Merge pull request #39040 from r-ryantm/auto-update/pstoedit
<sphalerite> nick_l: builtins.attrNames
klntsky has quit [Quit: WeeChat 2.1]
klntsky has joined #nixos
klntsky has quit [Client Quit]
klntsky has joined #nixos
spear2 has quit [Ping timeout: 264 seconds]
bkchr has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
olto has joined #nixos
ckauhaus has quit [Remote host closed the connection]
ditadi has joined #nixos
regulus_ has joined #nixos
rosa has quit [Quit: rosa]
aarvar has joined #nixos
__monty__ has joined #nixos
maingo has quit [Quit: Connection closed for inactivity]
iyzsong has quit [Ping timeout: 264 seconds]
bkchr has joined #nixos
infinisil has joined #nixos
ditadi has quit [Quit: leaving]
ditadi has joined #nixos
ditadi has quit [Changing host]
ditadi has joined #nixos
rosa has joined #nixos
xcmw has joined #nixos
ditadi has quit [Client Quit]
alex`` has quit [Ping timeout: 240 seconds]
rosa has quit [Client Quit]
pie__ has quit [Ping timeout: 264 seconds]
ixxie has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
rosa has joined #nixos
<sphalerite> ugh, why does grub-install call fsync after *each* file copy
coot has joined #nixos
iyzsong has joined #nixos
markus1189 has joined #nixos
datakurre has quit [Ping timeout: 256 seconds]
ckauhaus has joined #nixos
ent has quit [Ping timeout: 240 seconds]
seequ__ has quit [Ping timeout: 255 seconds]
Dezgeg has quit [Ping timeout: 256 seconds]
seequ has joined #nixos
ent has joined #nixos
datakurre has joined #nixos
Mateon3 has joined #nixos
rosa has quit [Quit: rosa]
RaphaelLullis[m] has joined #nixos
Mateon1 has quit [Ping timeout: 264 seconds]
Mateon3 is now known as Mateon1
ckauhaus has quit [Ping timeout: 276 seconds]
adamt has joined #nixos
xy2_ has quit [Ping timeout: 264 seconds]
Dezgeg has joined #nixos
<adamt> Hiya. I have a 17.09 host that i want to upgrade to 18.03. I built the host locally, and nix copy'ed the result of the derivation to the host. After calling `sudo /nix/store/...../bin/switch-to-configuration switch` on the host, no new boot entries are created. /boot is mounted RW. What could be wrong?
<adamt> (the switch appear to work, so it's probably only the boot entry that is missing...)
<infinisil> adamt: You can just use nixos-rebuild for that, it has the --target-host flag exactly for that
mounty has quit [Read error: Connection reset by peer]
jtojnar_ has joined #nixos
jtojnar has quit [Ping timeout: 256 seconds]
jtojnar_ is now known as jtojnar
<infinisil> While I don't know the reason of this not working just yet, calling binaries from /nix/store directly is often not a good idea
markus1189 has quit [Ping timeout: 264 seconds]
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos
ThatDocsLady_ has quit [Remote host closed the connection]
ThatDocsLady_ has joined #nixos
markus1189 has joined #nixos
<adamt> infinisil: It has worked fine for rolling out upgrades during the 17.09 cycle
<adamt> It's just the upgrade that appear to do weird stuff.
<adamt> is nixos-rebuild --target-host something new? Didn't notice it before.
<infinisil> Has been there all along
lebel_ has joined #nixos
lebel_ has quit [Client Quit]
lebel has joined #nixos
lebel has quit [Client Quit]
lebel has joined #nixos
<adamt> infinisil: Can it eval a nix expression instead of just reading a configuration.nix-file?
<lebel> quick question, what's the proper syntax to define a port number range in networking.firewall.allowedTCPPorts = [ ]; ?
ckauhaus has joined #nixos
<infinisil> adamt: I don't think so, but you can use `-I nixos-config=/custom/path.nix`
ottidmes has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adamt> infinisil: Since that would need a file per host, I'll have to get the other method working instead. Thx though.
alex`` has joined #nixos
<infinisil> adamt: Huh why?
xcmw has joined #nixos
<adamt> infinisil: It seems not-so-nice to generate a file per host, when we currently (basically) have a nix expression that creates the host config, and then just give it a list of host names to deploy to.
<adamt> config as in nix expression, a bit like nixops
<infinisil> Well you can just use multiple invocations of nixos-rebuild?
ckauhaus has quit [Ping timeout: 256 seconds]
<lebel> infinisil: I guess you can have networking.firewall.allowedTCPPortRanges along networking.firewall.allowedTCPPorts = [ ]; and they are working together?
<infinisil> lebel: Yeah sure
<adamt> infinisil: But I still have to redo the entire deployment method to generate actual configuration.nix-files per host
<lebel> I was kind of expecting a syntax similar to bash or with seq.
<tilpner> adamt - You can wrap <nixpkgs/nixos> if you really want to
<adamt> tilpner: What do you mean?
<lebel> (ie. for i in {1..100}; do ...; done or for i in $(seq 1 100); do ...; done;
Rusty1_ has joined #nixos
<infinisil> adamt: I honestly don't get why so many people try to do everything in a single command, files are so much better in general
<adamt> infinisil: We don't do anything in a single command, except for the nix build-call that builds all our hosts.
<infinisil> Especially because Nix is very flexible, and you can share anything you want between multiple files
<tilpner> Oh
<tilpner> I was writing a follow-up question, but you answered
<infinisil> lebel: Yeah, you can with something like `networking.firewall.allowedTCPPorts = lib.range 1 10;` I guess
<ottidmes> I still have one place in my config where infinite recursion is happening when I configure it the way I want. Right now I just workaround it by hardcoding the values, but I do not like that and I also don't like not understanding why the infinite recursion occurs. Could someone help me figure out why this is causing infinite recursion:
<infinisil> lebel: Which actually looks better than the portRanges thing haha
<sphalerite> lebel: using allowedTCPPortRanges makes it generate a single firewall rule per range which is more efficient. Probably doesn't make a measurable difference usually but if you have big ranges it might
xcmw has quit [Ping timeout: 256 seconds]
rauno has quit [Ping timeout: 264 seconds]
<adamt> infinisil: Anyways, if switch-to-configuration shouldn't be called from the nix-store, what would then be the purpose of it?
<infinisil> ottidmes: Whoa, that is weird
mounty has joined #nixos
alexteves_ has joined #nixos
<infinisil> adamt: Well it can of course, but I feel like there might be problems with garbage collection or so. And I just don't feel like debugging unintended usage
cufisz has joined #nixos
Lisanna has quit [Remote host closed the connection]
jgt has joined #nixos
lord| has quit [Quit: WeeChat 2.1]
<adamt> infinisil: Let me ask another way. How can it be called in a way that make sense, without doing from the nix store? Sure, you could probably call switch-to-configuration from the active config, but that doesn't make sense. :-)
Mateon1 has quit [Quit: Mateon1]
<tilpner> I call it from the store too, worked fine so far
Mateon1 has joined #nixos
<infinisil> adamt: Well nixos-rebuild does that for you
<adamt> tilpner: It worked fine here when deploying updates to 17.09, but it fails for me to update to 18.03, so it's my first problem ever with it. :-)
<cufisz> Hey All, trying to setup a nix-shell with python virtualenv as described in 9.11.3.6 of https://nixos.org/nixpkgs/manual/#python. Running the exact example from the docs produces: `https://nixos.org/nixpkgs/manual/#python`. I tried disabling all python related packages in /etc/nixos/configuration.nix.
jperras has joined #nixos
<infinisil> adamt: I'd just try it with nixos-rebuild first, if the problem is gone then we know that was the problem
<cufisz> oops, the error it produces is `ModuleNotFoundError: No module named 'pip._internal'`
<Rusty1_> ^
<lebel> infinisil, you have have more than one allowedTCPPortRange = [ ]; or can you do something like: [ { from = 1714; to = 1764; } { from = 10000; to = 10050; } ];
<lebel> *can you, I mean.
<tilpner> adamt - Have you done it manually? And it outputs like usual?
<sphalerite> adamt: I don't think live-switching configurations across stable versions is supported. Tyr using switch-to-configuration boot and rebooting.
<sphalerite> lebel: yes you can
<adamt> infinisil: It seems silly to redo my entire setup to test with nixos-rebuild, if it just ends up calling the same switch-to-configuration command.
<ottidmes> infinisil: It caused to question my whole codebase for potentially causing the loop, only to figure out its some weird dependency loop being created in fileSystems and users, but unfortunately I cannot pinpoint the actual cause of the loop
<tilpner> Oh, yes. Definitely switch-to-configuration boot
<infinisil> adamt: Heh yeah
<tilpner> (You were going to reboot anyway, right?)
<infinisil> ottidmes: trying to figure it out too
<{^_^}> [nixpkgs] @vbgl merged pull request #39102 → coq: 8.8+beta1 -> 8.8.0 → https://git.io/vpkYa
<{^_^}> [nixpkgs] @vbgl pushed to master « coq: 8.8+beta1 -> 8.8.0 »: https://git.io/vpkVA
<ottidmes> infinisil: Thanks for looking into it :) I managed to reduce it the snippet I posted, and if I use something like: options = [ "uid=${toString config.boot.loader.timeout}" ]; no loops, but I am not sure if it actually is specific to config.users, or that others might also cause similar loops
iyzsong has quit [Read error: Connection reset by peer]
Tucky has quit [Quit: WeeChat 2.1]
<adamt> tilpner: Yeah, i was going to reboot, but after a normal switch (not boot) followed by a reboot, the kernel version didn't change, so the new configuration wasn't set for boot
Tucky has joined #nixos
<sphalerite> Is there a quick and easy way to generate a kernel config that includes less stuff that I don't need?
periklis has quit [Ping timeout: 256 seconds]
<sphalerite> I need to apply a kernel patch and don't want to wait long for rebuilds
fragamus has joined #nixos
<ottidmes> infinisil: Removing the options check in fsBefore (from lib) removes the recursion, but that does not help me in my understanding and is not a proper fix
<gchristensen> sphalerite: maybe modules/testing/minimal-kernel.nix
<adamt> calling `switch-to-configuration boot` didn't add a new boot entry either. Hmm.
Izorkin has joined #nixos
<gchristensen> adamt: do you have a boot partition?
nD5Xjz has joined #nixos
<adamt> gchristensen: Yeah, and it's mounted rw
nuncanada has joined #nixos
<gchristensen> adamt: if you unmount it, are there files "underneath" it, in the /boot directory?
<gchristensen> I don't know if this is the problem, but I know this has been a problem
<sphalerite> gchristensen: hm that looks very minimal and probably excludes stuff I do need as well :/ thanks though
<infinisil> ottidmes: The trace shows the options services.rpcbind.enable (which is false by default), but when i remove the rpcbind module from the module-list.nix a different error occurs that mentions the option nixpkgs.config
magnetophon has joined #nixos
<gchristensen> sphalerite: that is the beauty of linux kernel config, is a "minimal" config is wrong for some people. there is no magic "be just minimal enough"
<angerman> has anyone tried to use ec2 spot instances as distributed build slaves?
<gchristensen> angerman: sure, hydra.nixos.org for one
<ottidmes> infinisil: I did try: services.rpcbind.enable = mkForce false; to be sure, but I haven't removed it yet, will try that too now
<sphalerite> gchristensen: yeah, of course. But I'd like to be able to make sweeping generalisations like "disable all gpu drivers except i915 and radeon", "disable all filesystem drivers except zfs and ext4", stuff like that
<infinisil> ottidmes: "error: The option `services.rpcbind' defined in `/home/infinisil/src/nixpkgs/nixos/modules/tasks/filesystems/nfs.nix' does not exist."
<angerman> gchristensen: is there some documentation on it somewhere? (e.g. also persisting state in case the machine goes down)
<infinisil> after removing it and trying to instantiate config.nixpkgs.config
odi has quit [Ping timeout: 256 seconds]
<adamt> gchristensen: Nope, the root fs doesn't have anything in /boot
seanparsons has quit [Quit: ZNC 1.6.5 - http://znc.in]
<gchristensen> angerman: what does it mean to persist state?
TweyII has joined #nixos
<angerman> gchristensen: the machines nix store? maybe I’m not understanding something with the spot instances… but it seems like they could go down at any point in time.
<ottidmes> infinisil: I just commented out the config block of the module, that seems to have fixed it, let me double check
<gchristensen> they can, but typically the way this would work is your remote builder doesn't have any state, rather the builders reaching out to it handleit
<infinisil> ottidmes: the rpcbind one?
<ottidmes> infinisil: yeah, commented out the config block of the rpcbind module file
<gchristensen> and your build leader machine pushes things to a binary cache things built
<TweyII> Why is carnix giving me: SqliteFailure(Error { code: NotADatabase, extended_code: 26 }, Some("file is not a database"))
<{^_^}> [nixpkgs] @johnchildren opened pull request #39109 → xxHash: 0.6.3.20171018 -> 0.6.4.20171222 → https://git.io/vpkiO
<TweyII> Does it even use a database?
seanparsons has joined #nixos
<TweyII> What file is meant to be a database?
<gchristensen> angerman: having individual machines persisting their state sounds not good, imo
kisik21 has quit [Quit: Lost terminal]
<infinisil> ottidmes: Ugh I hate infinite recursion so much
<ottidmes> infinisil: Hmm, so weird, that indeed seems to fix it, but still not sure what the hell is happening. I mean I have "services.rpcbind.enable = mkForce false;" and it has "mkIf config.services.rpcbind.enable"
<sphalerite> TweyII: ~/.cargo/nix-cache I'm guessing
<sphalerite> I don't know what it's actually for but hey
kisik21 has joined #nixos
<infinisil> ottidmes: It needs to evaluate the config.services.rpcbind.enable, that's the only thing it can be
<infinisil> I'll be away for a bit, maybe try looking at all the definitions of that options
<tilpner> TweyII - If ~/.cargo/nix-cache is a text file, just mv it away
jperras_ has joined #nixos
<infinisil> option*
<tilpner> (I got the same error a while ago, carnix author wondered how I got that file in that path)
<ottidmes> infinisil: Its my most hated thing when programming together with the progation of errors in dynamicly typed programming languages where some implicit assumption you made breaks at point A, but you get the error and at point C in your program, i.e. I hate it when you need to start doubting your own code base
<TweyII> Yeah, that seems to be a TOML file
<TweyII> Works now, thanks :)
<TweyII> thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:335:21
<TweyII> Well
<TweyII> ‘Works’
jperras has quit [Ping timeout: 276 seconds]
vaninwagen has quit [Ping timeout: 240 seconds]
<TweyII> Probably because I have a workspace instead of a single crate
<joepie91> ottidmes: not specific to 'dynamically typed programming languages'
<joepie91> this is true for any kind of runtime error really
<joepie91> (and runtime errors do not need to be about typing, nor do type errors in a dynamically typed language need to be runtime errors per se)
jperras has joined #nixos
<joepie91> come to think of it, also not really anything to do with error propagation :P
<ottidmes> joepie91: Sure sure, I could have been more precise, but I hoped you got my underlying point
<__monty__> joepie91: Do you have an example of non runtime type errors in a dynamically typed language?
<joepie91> ottidmes: yeah, I get the frustration, I've just become allergic to people misassigning problems to language design features :P too much tribalism in programming-language-land and this kind of stuff tends to fuel it
jperras_ has quit [Ping timeout: 260 seconds]
<joepie91> __monty__: theoretically you can have a dynamically typed language be AoT-compiled (or even just analyzed as a build step, without necessarily translating the source), track possible typing permutations and find (depending on language design) most or all typing errors upfront
<joepie91> (that's a thing I'm working on with JS, actually, experimentally)
dbmikus_ has joined #nixos
<ottidmes> joepie91: It just happens that dynamically typed programming languages are more prone to those kind of errors, or maybe I should say, the only two languages I stopped using due to that happening to often happend to be dynamically typed
<infinisil> ottidmes: I'm thinking about making a nix debugger for my bachelors thesis
sphalerite has quit [Quit: WeeChat 1.9.1]
<joepie91> ottidmes: right
<ottidmes> infinisil: please do :P
<infinisil> That would definitely be something worthwhile
<TweyII> joepie91: Do you know about https://flow.org/ ?
<joepie91> infinisil: please do :P
<adamt> I just tried doing an unattended nixos 18.03 install (yes, instead of upgrading :P), and nixos-install from 18.03 tries to fetch nix-cache-info from cache.nixos.org, even when installing using the --closure argument. It even says that it has to download 0.00MiB. How do I avoid that?
<joepie91> TweyII: yeah
astiles has joined #nixos
<TweyII> adamt: --option binary-caches ""
<joepie91> TweyII: what I'm working on is a little more extensive than what Flow does, and with 'zero annotations' as a design goal
<joepie91> (also isn't just about type checking, but error detection more broadly, and code analysis in general for eg. AoT compilation)
<TweyII> Interesting!
<LnL> adamt: or --option build-use-substitutes false
<joepie91> TweyII: and to be completely honest, I think people put way, way, WAY too much focus on typing
<joepie91> it's only a small, relatively irrelevant subset of error scenarios, yet people make massive tradeoffs to try and solve that subset, without really considering broader strategies for solving larger sets of errors
<__monty__> joepie91: Maybe I misunderstand dynamically typed. How much static type checking can you do before you have to start calling it statically typed?
<adamt> What's the practical difference between build-use-substitues false, and no binary caches? Technically we don't use a binary cache (everything is pushed to the hosts) so maybe disabling all binary caches are most correct
knupfer has joined #nixos
<TweyII> joepie91: That depends entirely on your type system
lebel has quit [Remote host closed the connection]
<joepie91> __monty__: 'dynamic typing' generally just means that types are not specified upfront, but rather a result of whatever happens at runtime; you can still statically analyze this most of the time, with complex-enough implementations
ryantrinkle has joined #nixos
<joepie91> you're essentially writing half a runtime at that point, but eh :)
<joepie91> TweyII: I've never found that a very convincing argument
<TweyII> Types in general are just a means of propagating static information through your code; what you choose to propagate is up to you
<joepie91> yes, but that doesn't change that typing systems are an expensive solution
<joepie91> ie. not what you want to default to without investigating other solutions first
astiles has quit [Ping timeout: 255 seconds]
<bkchr[m]> Hi, does anyone has some nice nix magic for cross compiling libraries for Android?
<joepie91> and there's not enough of that happening :)
<__monty__> Are there other solutions that can give the same level of guarantees?
<joepie91> __monty__: so half the problem is exactly that question - "the same level of guarantees"
<joepie91> this isn't a useful metric or goal to shoot for
xcmw has joined #nixos
odi has joined #nixos
sphalerite has joined #nixos
<TweyII> They don't have to be: there are lots of languages that have very light-weight type systems, that can infer a lot of the interesting info for you
<joepie91> on a purely academic level, sure, it may be an interesting question to ask, but it doesn't necessarily match up with what developers on actual software need
<joepie91> because there are more considerations than just "the same level of guarantees"
<sphalerite> what'd I miss?
<joepie91> it may be perfectly acceptable in many cases, for example, to have slightly less guarantees for a much lower overall cost (taking into account remediation time of the remaining issues)
<__monty__> joepie91: Imo giving up soundness is exactly one of these pragmatic decisions.
<infinisil> adamt: I think build-use-sustitutes false also excludes ssh substituters, which no binary caches doesn't exclude
<TweyII> And conversely, with enough type info you can infer a lot of run-time code and save effort that way
<joepie91> and what I'm interested in is not "finding solutions that are equivalent to typing systems", what I'm interested in is "helping developers write more reliable code faster and end up with less maintenance"
<joepie91> and I've not seen any convincing evidence that typing is the direction to look in for that :)
<joepie91> either way, I don't really have much time for an extensive discussion at the moment
<__monty__> I haven't seen an alternative to type systems that gives anywhere near the reliability type systems give.
<kisik21> How does one setup a binary cache?
<TweyII> Any system of tracking that info ends up equivalent anyway — just with lots of inference
<adamt> infinisil: But if there's no binary caches, where would it get those substitutions from?
<kisik21> Assuming I have NixOS.
szicari has joined #nixos
<TweyII> kisik21: ‘nix copy’ and/or nix-serve
<TweyII> kisik21: nix-serve will serve up the system's store over HTTP
<kisik21> Wow, one command... Cool.
<joepie91> TweyII: I'm not necessarily just looking towards technical solutions
<TweyII> kisik21: nix copy can be used to push things into the cache, if they're not built there
ThatDocsLady_ has quit [Remote host closed the connection]
raynold has quit [Quit: Connection closed for inactivity]
ThatDocsLady_ has joined #nixos
<kisik21> Ö
<kisik21> Awesome
rosa has joined #nixos
<joepie91> TweyII: __monty__: either way, I'm sure I'll link things in here once I've gotten somewhere :P
<kisik21> One cache could serve for all arches because of hash names, right?
<TweyII> joepie91: That's fair. There's certainly lots of work to be done on programming UX
<adamt> kisik21: Be careful not to serve the systems store over HTTP, if you have secrets in the store.
drewr has quit [Remote host closed the connection]
pi3r has joined #nixos
<TweyII> joepie91: I look forward to it :)
<kisik21> So one needs to block user configuration if it contains passwords.
<TweyII> kisik21: No and no
<pi3r> I have the following nix shebang and I can't see what's wrong with it:
xcmw has quit [Read error: Connection reset by peer]
seanparsons has quit [Read error: Connection reset by peer]
<pi3r> The haskellPackages.ghcWithPackages does not work
nD5Xjz has quit [Ping timeout: 276 seconds]
<TweyII> kisik21: Different architectures count as different inputs, so the hash will differ
<TweyII> kisik21: And user config usually doesn't end up in the store
<LnL> pi3r: you have both a ghc and ghcWithPackages
<kisik21> But lighttpd one does, for example
<TweyII> kisik21: But you generally want to put an HTTPS proxy in front of nix-serve
<kisik21> Obvious decision. If it is not HTTPS, proxy it - isn't it the best practices?
<pi3r> LnL: I have just removed ghc but it is still failing
<TweyII> Yeah :)
<sphalerite> adamt: but you still need to know the hashes of the secrets to actually obtain them if they are served :D
<pi3r> LnL: seems better with double quotes
<sphalerite> kisik21: yes, a single cache *can* serve for all arches
<LnL> pi3r: what's the error?
<sphalerite> if I understood your question correctly
<kisik21> sphalerite: you did.
<TweyII> It can, but it'll need to build anything for any arch you're interested in
<joepie91> TweyII: btw, one interesting read on this kind of topic can be found here: https://www.theatlantic.com/technology/archive/2017/09/saving-the-world-from-code/540393/ (it's a long read though)
<TweyII> It'll *work* for any arch, but many things will be uncached
<kisik21> Can Nix cross-compile?
<sphalerite> kisik21: yes but there are various gotchas to it
<kisik21> For example?
<sphalerite> kisik21: the hashes are all different so you can't mix cross-compiled stuff with natively-compiled stuff
nD5Xjz has joined #nixos
<sphalerite> well not just cross-compiled stuff, cross-built stuff.
<kisik21> So if you cross-compile, you can only cross-compile. Right?
<TweyII> joepie91: Yeah, I know this article quite well. I just think types have a big role to play in that
<sphalerite> yes
<kisik21> Oh man
<kisik21> Gonna be painful
ckauhaus has joined #nixos
<kisik21> How about distcc support?
<sphalerite> also many packages don't work cross-built yet
<kisik21> Same problem?
seanparsons has joined #nixos
<sphalerite> distcc doesn't work at all because of purity issues. Nix can distribute builds itself though.
<kisik21> Cool. So setting up an RPi cluster with build system is realistic.
<gchristensen> you don't _have_ to be just-cross or just-native compiled. you'll just end up doing extra compilation. it'll be pretty seamless though.
<kisik21> gchristensen: and long
<gchristensen> yes
<sphalerite> gchristensen: how would you go about mixing cross-compiled with native packages?
<gchristensen> you do your cross stuff and then you're on the box and you do your native stuff
<sphalerite> oh right
<sphalerite> yeah but they're still entirely separate dependency trees
<pi3r> LnL: using double quote makes it work. Thanks. I was dealing with two errors (double ghc and single quote). Thanks to you, I have managed to overcome both ;-)
<gchristensen> sure but you're not locked in to one or the other
<sphalerite> so there's often no benefit to it
<sphalerite> yes, that's true
<ottidmes> infinisil: I now understand it: https://0bin.net/paste/7EzFkUEoUJdIgwSU#gKm-COhpGLQgAzJ2yhqP2jksRSYCD+Y6IqzTJb0RdRe I guess my fix of removing the options check in fsBefore is not that terrible, since a.mountPoint == b.device would fail anyway for the file systems for which the options check would fail
<gchristensen> I've sometimes thought about if it could be done that when doing cross compilation, something generate an overlay which emits "emacs = /nix/store/cross-compiled-emacs; gnumake = /nix/store/cross-compiled-gnumake" so it would be less compilation
__Sander__ has quit [Ping timeout: 265 seconds]
drewr has joined #nixos
MP2E has joined #nixos
jmiven has quit [Quit: co'o]
jmiven has joined #nixos
<angerman> gchristensen: Thanks for the response. I completely missed it. So I’ve been thinking about adding spot instance as an x86_64-linux to nix.buildMachines, so that I can offload building linux expressions.
asuryawanshi has quit [Ping timeout: 240 seconds]
<angerman> gchristensen: usually I run them through a nix-docker, but with my current MacBook (late 2012), that is not very feasible, and I’m looking for something that would allow me to build, while not rendering my system unusable.
<angerman> gchristensen: and maybe I’ve been misunderstanding something, but I though the remote build would try to build the full expression before copying the build artifacts back. If the expression ends up building multiple packages, wouldn’t that mean that I loose the already built packages in case the spot instance is shut down?
<adamt> disabling binary caches fixed my first problem, thx.
<gchristensen> I think it will copy all the built things back to your laptop, so when you got a new instance, you'd copy the things back over to the new instance
<nick_l> Does NixOS have a fancy motd implementation like Ubuntu has?
<etu[m]> !tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<angerman> gchristensen: copy to ec2 -> build (say 10pkgs) -> copy from ec2, right? so if the spot instance is terminated while building. But already had built, say 5pkgs, I’d lose that progress?
<nick_l> I want to see something like "Welcome to $network... <NixOS logo>. Misuse is punishable by law...".
<gchristensen> angerman: hmm not sure
ckauhaus has quit [Remote host closed the connection]
<nick_l> I am already using users.motd.
<gchristensen> but that is definitely an edge case
<angerman> gchristensen: ahh :-) ok. Just though I was to stupid to understand some basics :D
ckauhaus has joined #nixos
<gchristensen> angerman: you're not
<angerman> gchristensen: are there hooks I can utilize to spin up/destroy the ec2 instance?
warbo has joined #nixos
<gchristensen> in Nix?
reinzelmann has quit [Quit: Leaving]
leat has quit [Ping timeout: 256 seconds]
<angerman> gchristensen: for `nix build`.
ckauhaus_ has joined #nixos
<gchristensen> I don't know, but ... I wouldn't go that route if I coud avoid it
<sphalerite> nick_l: nixos's MOTD is shown by PAM, it doesn't do anything fancy, just dumps the motd file to standard output
<gchristensen> it would likely cause too much churn and be too slow to start the instances on demand
<angerman> gchristensen: so you would start them by hand if needed… run `nix build` and terminate by hand as well?
<angerman> alright.
<gchristensen> terminate by hand or just let them be, spot instances can be extremely cheap. m1.small or m1.medium being like $5/mo
<angerman> gchristensen: and I could just use any of the ami’s listed in https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/virtualisation/ec2-amis.nix? right?
<gchristensen> sure
<angerman> gchristensen: sure… but if I don’t need them. Termination seems fine :D
ckauhaus has quit [Ping timeout: 256 seconds]
<angerman> gchristensen: also, do they auto-restart? (I haven’t used them yet) It sounded like they are terminated after at most a few hours anyway?
<gchristensen> I don't think they do auto restart, but you could make a scaling group to do it
<gchristensen> I have many spot instances which have run without interruption for well over a year
ckauhaus_ has quit [Ping timeout: 256 seconds]
<angerman> gchristensen: impressive.
<angerman> gchristensen: thanks for letting me know.
<gchristensen> yep
<gchristensen> the m1 series is very stable btw :)
<angerman> gchristensen: thanks I’ll give that a try.
<angerman> gchristensen: and then I just need to improve my cross infra to the point where I can build macOS packages on a linux system :D
<sphalerite> wow. After 4 years, I've finally got both graphics chips in the macbook pro working.
magnetop` has joined #nixos
bkchr has quit [Ping timeout: 256 seconds]
<angerman> sphalerite: so you had one working for 2 years already? ;-)
magnetophon has quit [Ping timeout: 240 seconds]
<sphalerite> angerman: no, the intel one has been working almost the whole time
odi has quit [Read error: Connection reset by peer]
leat has joined #nixos
odi has joined #nixos
erasmas has joined #nixos
periklis has joined #nixos
lonokhov has joined #nixos
chreekat has joined #nixos
magnetop` has quit [Ping timeout: 256 seconds]
wangoe has quit [Quit: WeeChat 1.9.1]
<chreekat> I've updated NixOS to 18.03, and now my trusted binary caches (specified as --option binary-caches "https://cache.nixos.org https://local-cache") are being ignored as 'untrusted' when I run a nix-shell. Is there some config setting that changed name or usage?
<jtojnar> enableDebugging still does not disable optimizations?
<ottidmes> chreekat: Maybe add them to trusted-substituters?
jwynn6 has quit [Quit: ZNC - http://znc.in]
Allie` is now known as alfie
adfaure has joined #nixos
<chreekat> ottidmes: they are there, via nixos configuration's nix.trustedBinaryCaches
<chreekat> This worked until the 18.03 upgrade :)
jwynn6 has joined #nixos
<chreekat> (I see them in the generated /etc/nix/config.nix fwiw)
<chreekat> nix.conf rather
<chreekat> and the keys are in trusted-public-keys
<adfaure> Hello everyone, I have question please. I want to turn an option off: https://nixos.org/nixos/options.html#services.gnome3.chrome-gnome-shell.enable. So turn it off into my configuration.nix (I am running nixos). My rebuild fail because I have a conflicting definition. Can you help me please ?
<adfaure> error: The option `services.gnome3.evolution-data-server.enable' has conflicting definitions, in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/services/x11/desktop-managers/gnome3.nix' and `/etc/nixos/configuration.nix'.
<ottidmes> adfaure: Use mkForce (from lib)
ckauhaus has joined #nixos
<ottidmes> adfaure: e.g. services.gnome3.evolution-data-server.enable = mkForce false; (assuming you have with lib; at the top and at least lib in the attrset, like so { config, lib, pkgs, ... }:)
<{^_^}> [nixpkgs] @akru opened pull request #39111 → parity: 1.9.5 -> 1.9.6; parity-beta: 1.10.0 -> 1.10.1 → https://git.io/vpkNR
<adfaure> ottidmes: It is working, thank you. It is a workaround or the good way to go N
<adfaure> ?
<adamt> Which uid's should we give our own system users? The nixos id list mentions values above 399 as being different from 1-399. What is that about?
<adamt> Should we just use uid=399, uid=398, uid=397 and so on, and hope not to get a conflict with something from upstream, or can 400-999 be used freely?
<ottidmes> adamt: It's the proper way to solve the issue you were having. It's part of the NixOS module system, some option types, like the type lines, will merge multiple definitions, but others will not. The module system allows you to assign priorities to values and that's how conflicting definitions can be resolved and how defaults are implemented (they just have very low priorities)
<ottidmes> Ehh, I meant adfaure
<abrxs> hey adamt, I think that's just broadly a linux convention: https://refspecs.linuxfoundation.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/uidrange.html
<abrxs> i thought it was 499, not 399 though... perhaps it's got a different meaning in nixland :)
<chreekat> My binary caches worked after I added myself to trusted-users, but that seems like a sledgehammer
<adfaure> ottidmes: Thank you
adfaure has quit [Quit: Page closed]
<adamt> abrxs: But that document doesn't say anything about which ranges of UID's i can expect the upstream modules and packages to create, allthough it kinda does say that 500- and up should be safe.
<adamt> nice link though
<ottidmes> adamt: I just have been using 350-399 hoping for no conflicts
<adamt> Here Eelco Dolstra says 500-1000 is probably for user allocatable UID's: https://nixos.org/nix-dev/2016-January/019240.html
<adamt> (but that's kinda old)
odi has quit [Read error: Connection reset by peer]
odi has joined #nixos
dbmikus_ has quit [Quit: WeeChat 2.1]
dbmikus has joined #nixos
ckauhaus has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 256 seconds]
periklis has quit [Remote host closed the connection]
drakonis has joined #nixos
xy2_ has joined #nixos
hyper_ch2 has quit [Ping timeout: 260 seconds]
ckauhaus has joined #nixos
ThatDocsLady_ has quit [Remote host closed the connection]
ThatDocsLady_ has joined #nixos
odi has quit [Ping timeout: 264 seconds]
warbo has quit [Ping timeout: 256 seconds]
adamt has quit [Ping timeout: 255 seconds]
freeman42x]NixOS has joined #nixos
adamt has joined #nixos
niklob has joined #nixos
niklob has quit [Max SendQ exceeded]
adamt is now known as Guest47798
niklob has joined #nixos
Asmadeus has quit [Ping timeout: 264 seconds]
Guest47798 has quit [Changing host]
Guest47798 has joined #nixos
Guest47798 is now known as adamt
jperras has joined #nixos
xcmw has joined #nixos
<adamt> So regarding UID's, it seems like 500-999 is a nice interval, since useradd doesn't touch it for system users or for normal users, just like on most other distributions apparently. I just hope it's true in practise as well :-)
rosa has quit [Quit: rosa]
humanoyd has joined #nixos
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
chisui_w has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
chreekat has quit [Quit: quitting]
Fare has quit [Ping timeout: 268 seconds]
grp has joined #nixos
ckauhaus has quit [Ping timeout: 256 seconds]
mkoenig has quit [Quit: Lost terminal]
mkoenig has joined #nixos
ryanartecona has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #38932 → Fix stdenv-native and fix rebasing on cygwin → https://git.io/vpeL3
<{^_^}> [nixpkgs] @Ericson2314 pushed 3 commits to master: https://git.io/vpIkx
<{^_^}> → 5a545ca9 by @svanderburg: Fix stdenv-native by creating a bintools wrapper with similar settings
<{^_^}> → a7adffdd by @svanderburg: Fix invalid Baseaddress must be > 0x200000000 on cygwin
<{^_^}> → 204b73ff by @Ericson2314: Merge pull request #38932 from svanderburg/cygwin-fixes
daveo has joined #nixos
<daveo> looking for help with boot problems
<adisbladis[m]> Woho :) Finally nixos on my tablet
<tilpner> Oh! With gnome3?
ThatDocsLady_ has quit [Ping timeout: 256 seconds]
<tilpner> What tablet is it?
<daveo> adisbladis[m]: nice!
<daveo> adisbladis[m]: screenshot!
ckauhaus has joined #nixos
jacob_ has joined #nixos
<sphalerite> daveo: could you be more specific about your boot problems?
<daveo> sphalerite: sure I no longer see my efi partition in the boot menu
<daveo> sphalerite: I am currently using the nixos install usb
<sphalerite> which efi partition?
<daveo> sphalerite: I can luksopen and mount my volumes
<daveo> sphalerite: It is /dev/nvme0n1p1 (Samsung SSD)
<adisbladis[m]> tilpner: No gui installed yet. Gonna use gnome3 to begin with. But my intention is to package plasma mobile for nixos
<adisbladis[m]> tilpner: Its a teclast x98 pro
<sphalerite> daveo: which boot menu?
<daveo> sphalerite: BIOS boot menu
xcmw has quit [Ping timeout: 256 seconds]
<tilpner> adisbladis[m] - Did you have to do much voodoo to get it running?
<sphalerite> daveo: do you have an EFI system partition at all? Try lsblk -f
<daveo> sphalerite: InsydeH2O UEFI BIOS on a Lenovo Y520
<adisbladis[m]> tilpner: I had to solder another usb port
<tilpner> Oh, what for?
<sphalerite> o.o
<adisbladis[m]> tilpner: Because mainline linux does not have a driver which knows how to switch the dual personality otg port
<adisbladis[m]> Luckily the motherboard had a spare usb header
ckauhaus has quit [Remote host closed the connection]
Fare has joined #nixos
<adisbladis[m]> Snapped some pics of my first boot https://imgur.com/a/KUtmS
warbo has joined #nixos
<daveo> sphalerite: sent output as a private message, getting spectacle to take a better screenshot
jensens has quit [Ping timeout: 276 seconds]
periklis has joined #nixos
adamt has quit [Ping timeout: 246 seconds]
simukis has joined #nixos
<daveo> sphalerite: https://imgur.com/cvEdYQ9
ma27 has quit [Ping timeout: 256 seconds]
<tilpner> adisbladis[m] - Awesome! :)
<sphalerite> daveo: right… and is it marked as an ESP? (gdisk /dev/nvme0n1p1, then type p)
<{^_^}> [nixpkgs] @fgaz opened pull request #39113 → bash-supergenpass: 2012-11-02 -> 2018-04-18 → https://git.io/vpIqe
<daveo> sphalerite: looks like no partition table
<sphalerite> daveo: did you format it as MBR maybe?
<daveo> sphalerite: it was a working nixos installation. Then I tried making a thumb drive with 18.03 minimal and booting from it. I changed my BIOS settings and everything stopped working. no formatting done
<daveo> sphalerite: trying to get another screenshot real quick
Ross has quit [Quit: ZNC - http://znc.in]
<sphalerite> daveo: ah ok. What BIOS settings did you change? And what if you boot without the USB stick plugged in?
ryantrinkle has quit [Ping timeout: 256 seconds]
Ross has joined #nixos
humanoyd has quit [Ping timeout: 276 seconds]
<daveo> sphalerite: put it into 'Legacy' mode because the USB stick was not showing up. I changed it back but my boot devices were gone.
ckauhaus has joined #nixos
<sphalerite> daveo: aah ok. How did you set the USB stick up?
<sphalerite> daveo: FWIW the boot devices being gone is your BIOS's fault. Kind of stupid to discard that information when changing to legacy boot :/
jperras has quit [Read error: Connection reset by peer]
<daveo> sphalerite: yup sounds like bad design or a bug. I will not do it again
<tnks> is there anything special about /run/current-system/sw other than it just being a system-managed profile?
<daveo> sphalerite: I used dd from the nixos instructions. wrote to /dev/rsdb which was the pen drive
Ariakenom_ has joined #nixos
<daveo> sphalerite: It definitely has the files on it
<sphalerite> tnks: /run/current-system just points to the profile, the actual profile is /nix/var/nix/profiles/system
<sphalerite> daveo: huh ok, then the boot should have worked in non-legacy mode too
jperras has joined #nixos
Fare has quit [Ping timeout: 268 seconds]
<daveo> sphalerite: yes I think it should have. It wasn't showing up so I made the mistake of switching to legacy mode.
ckauhaus has quit [Ping timeout: 256 seconds]
pi3r has quit [Quit: Page closed]
adamt has joined #nixos
<sphalerite> daveo: you might be able to fix it by mounting your ESP and copying EFI/systemd/systemd-bootx64.efi to EFI/BOOT/BOOTX64.EFI
adamt is now known as Guest77727
<sphalerite> daveo: then switching back from legacy mode
ryantrinkle has joined #nixos
<sphalerite> Otherwise you'll need to get some EFI-based linux booted to fix it, unless you can edit boot entries manually in your BIOS
<daveo> sphalerite: currently I am in EFI mode. can I do that process in EFI or should I switch to Legacy while I do that?
<sphalerite> daveo: oh if you're in efi mode you can fix it properly
<daveo> sphalerite: I am indeed
<sphalerite> just mount your root filesystem to /mnt and your ESP to /mnt/boot, then run nixos-install
<sphalerite> that should do it
<daveo> sphalerite: ok sweet with my old configuration?
<sphalerite> yep
<daveo> sphalerite: omg that's awesome!
<daveo> sphalerite: I thought that was how it was done
<daveo> I'll do that
<sphalerite> tnks: it's also special in that it's built using pkgs.buildEnv, not nix's builtin env builder
<daveo> sphalerite: Sorry for my ignorance but what does ESP stand for
<sphalerite> tnks: and sw itself isn't the profile, the profile is the parent
<sphalerite> daveo: EFI system partition, sorry :)
<sphalerite> so nvme0n1p1 in your case
<daveo> sphalerite: I usually mount the root on /mnt and EFI on /mnt/EFI
<daveo> sphalerite: ok
<sphalerite> then do that
<sphalerite> if it was working previously, it should work this time too
<{^_^}> [nixpkgs] @7c6f434c merged pull request #39032 → xscreensaver: 5.38 -> 5.39 → https://git.io/vpJgH
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/vpIY3
<{^_^}> → 27ca928d by R. RyanTM: xscreensaver: 5.38 -> 5.39
<{^_^}> → b5ca7fef by @7c6f434c: Merge pull request #39032 from r-ryantm/auto-update/xscreensaver
<daveo> sphalerite: sweet used this guide FWIW. https://gist.github.com/ladinu/bfebdd90a5afd45dec811296016b2a3f. That was very helpful!
<daveo> sphalerite: I also adapt the troubleshooting section from this guide to my situation b/c it is a remount not a fresh install https://gist.github.com/martijnvermaat/76f2e24d0239470dd71050358b4d5134
niklob has quit [Quit: Leaving]
<daveo> sphalerite: I was wrong I mount it on /dev/boot/efi per the directions
<sphalerite> ah right
<sphalerite> it doesn't really matter as long as it works :)
<daveo> sphalerite: yup. about to find out :)
humanoyd has joined #nixos
<daveo> sphalerite: so I think I will continue to commit my config to a repo and begin rsyncing all my data and home directory to a remote backup server. Any recommendations from that side. NixOS is incredible
endformationage has joined #nixos
sehqlr has joined #nixos
<{^_^}> [nix] @edolstra pushed 3 commits to 2.0-maintenance: https://git.io/vpIOL
<{^_^}> → 5be4f48c by @NinjaTrappeur: nix repl: Fix multiline SIGINT handling.
<{^_^}> → b61ea7b2 by @shlevy: initPlugins: Fix dlopen error message.
<{^_^}> → b1ade668 by @edolstra: Handle arguments in $EDITOR
<daveo> sphalerite: think I have to chroot before I do this
<tnks> sphalerite: good to know. thanks.
<sphalerite> daveo: chroot for what?
<daveo> sphalerite: error: getting status of ‘/etc/nixos/i3config-extra-example.nix’: No such file or directory (use ‘--show-trace’ to show detailed location information)
<sphalerite> oh yeah that's an annoying bug
<sphalerite> you should be able to use nixos-enter to get all the chroot stuff set up
<sphalerite> then just run nixos-rebuild boot
<daveo> right
<daveo> gotta upgrade then
<daveo> I can do that
<sphalerite> no, I don't think it's fixed yet
<sphalerite> actualaly what you can do is just use a relative path in your config file
<sphalerite> that makes sense to do anyway
<daveo> thats a better idea!
sehqlr has quit [Read error: No route to host]
sehqlr has joined #nixos
pie_ has joined #nixos
<daveo> I'll have to commit and push that. Maybe submit a pull request on the repo it came from as well
<daveo> error: getting status of ‘/etc/nixos/i3config-extra-example.nix’: No such file or directory (use ‘--show-trace’ to show detailed location information)
largerror has joined #nixos
<daveo> error: string ‘./i3config-extra-example.nix’ doesn't represent an absolute path, at /mnt/etc/nixos/i3wm/i3config.nix:64:3 (use ‘--show-trace’ to show detailed location information)
largerror has left #nixos ["Konversation terminated!"]
<sphalerite> um, that shouldn't be a problem
<sphalerite> oh wait, did you put it in quotes?
<daveo> sphalerite: I won't use that anyway. Don't use i3 much at all. Roughly what I'm working with https://github.com/dbwest/nixos-files
asuryawanshi has joined #nixos
jperras_ has joined #nixos
<daveo> sphalerite: it is going
jperras has quit [Ping timeout: 260 seconds]
Guest77727 has quit [Ping timeout: 256 seconds]
jperras has joined #nixos
jgt has quit [Ping timeout: 240 seconds]
jperras_ has quit [Ping timeout: 264 seconds]
Fare has joined #nixos
nD5Xjz has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @vbgl opened pull request #39114 → ocaml: init at 4.07.0+beta2 → https://git.io/vpIsl
ryantrinkle has quit [Ping timeout: 256 seconds]
betaboon has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<betaboon> hello #nixos, i have a question, how do i figure out what pulls in a specific dependency? i forgot :(
<clever> betaboon: nix-store -q --tree
<betaboon> ah i forgot to mention: on a nixops deployment ... :/
jgt has joined #nixos
Fare has quit [Ping timeout: 240 seconds]
<clever> betaboon: you can still run that on the storepaths that nixops printed
<betaboon> clever: ah ok, thank you very much :)
<sphalerite> if it's a dependency between output paths (not derivations) you can also use nix why-depends
<sphalerite> also, I find nix-store -q --graph more practical for tracing actual dependency paths
Izorkin has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
nD5Xjz has joined #nixos
sehqlr has quit [Ping timeout: 240 seconds]
knupfer has quit [Remote host closed the connection]
kreisys has joined #nixos
jperras has quit [Quit: WeeChat 2.1]
jperras has joined #nixos
<betaboon> hm now I'm confused: https://gist.github.com/betaboon/a00e28d2506e7dd2b49f91af53581805 what actually pulls in ruby2.4.3-json ? oO
jgt has quit [Ping timeout: 276 seconds]
<daveo> sphalerite: I seem to recall that during the install the usage on the /nix/store climbs. I have 6.0 Gb for the unionfs and may need more. I will cross that bridge later
<clever> betaboon: that is what ruby-json depends on, not what depends on it
<clever> betaboon: you want to run the command against the top-level storepath that nixops printed at the very end of a build
<betaboon> clever: ah ok, gotcha xD
Ariakenom has quit [Ping timeout: 256 seconds]
bkchr has joined #nixos
<daveo> sphalerite: so far it has used 40% may need to install less...
bennofs has quit [Quit: WeeChat 1.3]
drakonis has quit [Read error: Connection reset by peer]
<betaboon> clever: thanks, now i found out what pulls in the dependency
MinceR has quit [Ping timeout: 265 seconds]
MinceR has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
bkchr has quit [Quit: Konversation terminated!]
<bkchr[m]> Can I create a nix environment with packages build for android?
jgt has joined #nixos
<ij> Is this in nix 2.0 only? https://github.com/NixOS/nix/commit/b8867a0239b1930a16f9ef3f7f3e864b01416dff It's got the 2.0 tag.
freeman42x]NixOS has quit [Ping timeout: 246 seconds]
<niksnut> yes I think so
<ij> how did I not notice that!
sehqlr has joined #nixos
<ij> What's also funny is that the commit message has a blatant mistake. :P
<TweyII> ij: Yep, didn't exist
<TweyII> Hah, I was about to point that out
<TweyII> After I double-checked there was no builtins.string
Fare has joined #nixos
jperras_ has joined #nixos
jperras_ has quit [Read error: Connection reset by peer]
lonokhov has quit [Quit: bye]
jperras has quit [Ping timeout: 256 seconds]
ottidmes has quit [Quit: WeeChat 2.0]
rosa has joined #nixos
ryanartecona has joined #nixos
jgt has quit [Read error: Connection reset by peer]
chessai has joined #nixos
jgt has joined #nixos
<monotux> uh...how do I only build the server part of mumble? if I try to just enable the murmur service it wants to install wayland and friends due to the client :/
xcmw has joined #nixos
<bkchr[m]> clever: can you help me on how to setup a cross compilation environment? Perfectly I would just like to set the targetPlatform
<Akii> Currently thinking about how I go about deploying my service to NixOS. I need a system user, that user needs an SSH key for cloning a private repo. I can't find how to configure that at all, just authorized keys. I'd just dump the private key in the config since it's only a deployment key anyway. Guess that's not possible?
<Akii> Something something ssh-agent mixed with writing a certain file somewhere would do the trick I guess..
<clever> bkchr[m]: i havent worked with the new cross-compile stuff that Sonarpulse has put in
<daveo> I'm installing nixos and put too many packages in my list so my /nix/store is full. I want to safely try afain with less packages. Do I just delete the /nix/store
<clever> daveo: run nix-collect-garbage to clean it up
jperras has joined #nixos
<daveo> clever: sweet
<bkchr[m]> Sonarpulse: online?
<Sonarpulse> yes
<Sonarpulse> bkchr[m]: (import <nixpkgs> { crossConfig = ... }).buildPackages.myBuildToo
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Sonarpulse> see xburstutils in all-packages.nix
<Sonarpulse> and lib/systems/examples.nix
<bkchr[m]> Sonarpulse: can you help me on cross compilation? Is there something like mkDerivation with targetPlatform?
xcmw has joined #nixos
<Sonarpulse> what are you trying to do?
<Sonarpulse> {build,host,target}Platform are always defined
<tilpner> monotux - I don't think you can, with the current expression :/
<tilpner> monotux - Well, murmur will not build the client, but it will still bring wayland
<{^_^}> [nix] @NinjaTrappeur opened pull request #2089 → Parse mixed nested attrpaths and top-level sets in an order independant way → https://git.io/vpIWZ
<bkchr[m]> I want to create a environment with nix-shell where I could compile a rust library for android that needs some other packages
kisik21 has quit [Ping timeout: 264 seconds]
<monotux> tilpner, had I known more of nix I'd probably try to fix it but I'll have to live with the unnecessary libraries installed
<Sonarpulse> bkchr[m]: hmm ok
<Sonarpulse> other packages are tools or c libraries?
jperras has quit [Ping timeout: 240 seconds]
jperras has joined #nixos
periklis has quit [Ping timeout: 264 seconds]
<bkchr[m]> yep
pirateking has joined #nixos
<monotux> man I love installing nixos on servers, it is fast and easy compared to freebsd which I normally prefer
<pirateking> after making a local channel, does anyone know why nixos-rebuild won't find it in per-user/root/channels, but nix-env works fine?
<Sonarpulse> bkchr[m]: err which I mean?
<Sonarpulse> tools or libraries?
<cransom> i have installed freebsd many times in a past life. i'm not sure if nixos is faster or easier than that though.
<clever> pirateking: nixos-rebuild uses the channel called nixos
<Akii> This blog post describes what I had in mind, with the problem that the key is somewhere in /etc and note declarative https://www.mpscholten.de/nixos/2016/07/07/private-github-repositories-and-nixos.html
<Akii> But that just means I can put it in config and point to that location
<bkchr[m]> Sonarpulse: I would like to have pkg-config build for localSystem, but packages like gstreamer build for the targetPlatform
<Sonarpulse> bkchr[m]: if you have a rust derivation
sanscoeur has joined #nixos
<Sonarpulse> override it so that nativeBuildInputs = old.nativeBuildInputs ++ [ buildPackges.pkgconfig ];
<{^_^}> [nixpkgs] @LightDiscord opened pull request #39116 → vscode: fix files with space(s) #39112 → https://git.io/vpIlF
<Sonarpulse> buildInputs = old.buildInputs ++ [ pkgs.gstreamer ];
<Sonarpulse> bkchr[m]: what you are calling the target platform is actually the host platform
<Sonarpulse> the build platform is where it builds
<Sonarpulse> the target platform is a special weird bad things just for compilers
kisik21 has joined #nixos
<bkchr[m]> ahh okay
<Sonarpulse> or the nixpkgs manual for more detail but drier
<Sonarpulse> (I wrote some of that meson build doc later, I like my writing style there better, but the nixpkgs manual has to be a bit dryer to make sure it covers *all* the details)
<bkchr[m]> ty
<Sonarpulse> np
<Sonarpulse> bkchr[m]: you aren't using meson so you can ignore the technical details, but i think the intro is good
<Sonarpulse> I liked it a lot before I added a paragraph too
<bkchr[m]> I did not find anything useful in the nixpkgs documentation :D
<kini> Sometimes when I run `nixos-rebuild switch` I see some messages about collisions between various files. Are these bugs I should report? Also, how do I recall the full list of collisions later? If I immediately rerun `nixos-rebuild switch` I don't see the messages again, so there are probably other collisions that weren't reported on any given run of `nixos-rebuild switch`.
<Sonarpulse> bkchr[m]: yeah people have mainly found it not helpful :(
vidbina has joined #nixos
TweyII has quit [Ping timeout: 256 seconds]
<nick_l> kini: often they are bugs in your own configuration, sometimes they are bugs in nixpkgs.
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/6c064e6b1f3 (from 8 days ago, history: https://channels.nix.gsc.io/nixos-unstable)
<nick_l> kini: one way to show this is if you import two different versions of nixpkgs and you install version1.python and version2.python in your environmentPackages.
<nick_l> kini: this will generate collisions, but it's not a bug in nixpkgs.
xcmw has quit [Ping timeout: 240 seconds]
<gchristensen> it is likely fine, but couldn't hurt to paste the log of the collisions to a pastebin
<nick_l> kini: on the other hand, there are various packages that provide the same binary. If that's done in such a way that one actually requires both and they do have the same name, then one could say there is a bug in nixpkgs.
<pirateking> clever: thanks! that got me where i needed to be
<pirateking> # If there are other channels that contain a file called # ".update-on-nixos-rebuild", update them as well.
astiles has joined #nixos
<pirateking> 201 and 202 in nixos-rebuild
vidbina has quit [Ping timeout: 240 seconds]
<kini> nick_l: Will collisions occur between stuff I installed via /etc/nixos/configuration.nix and stuff I installed by `nix-env -i` in a root terminal (which I gather is /nix/var/nix/profiles/default ) ?
<clever> kini: they will silently collide, and nix-env has a higher priority
<kini> I guess stuff from /etc/nixos/configuration.nix shows up in /run/current-system/sw ?
<clever> kini: yeah
<clever> kini: and then its down to the order of elements in $PATH
<kini> I see. Then the message I'm getting is probably a collision in /run/current-system/sw I guess
<kini> it would be nice if the collision message specified what profile or environment nix was attempting to build when it encountered the collision
freeman42x]NixOS has joined #nixos
vidbina has joined #nixos
Fare has quit [Ping timeout: 240 seconds]
<pirateking> kini: you can edit the bash file that runs that part
Fare has joined #nixos
<nick_l> kini: yeah, that sounds useful, although I think the consensus is that using nix-env -i shouldn't be done in the first place.
<nick_l> kini: very hard to swallow as a new user.
<nick_l> I think nix-env -i should explain on stderr how one is supposed to use the system.
<nick_l> Like "Sure, you can use nix-env -i, but you really shouldn't.. Here is what you should be doing...".
<pirateking> yeah i made a bunch of bash things. nix-find, nix-explore, nix-refresh, nix-refresh-all, nixos-config, nix-reinstall, nix-uninstall, nix-single-user-install, nix-cache-refresh, etc
nur0n0 has joined #nixos
<nick_l> pirateking: yeah, I think everyone did.
<pirateking> it was my first time making bash things so i'm proud of myself, heh
xcmw has joined #nixos
<gchristensen> pirateking: nice!!
<Akii> nick_l that would've saved me a lot of trouble :D
<nick_l> Akii: I think nix 2.0 has likely obsolete a lot of those.
<nick_l> For multi-user installation there is also some consolidation happening.
<gchristensen> nix 2.0's new commands are beta and should not be depended upon
<Akii> I'm still not sure what blew up my window manager today
<nick_l> They are?
<Akii> but ever since putting my package into the configuration.nix it hasn't happened again
jperras_ has joined #nixos
<gchristensen> "Warning: Please note that the nix command is a work in progress and the interface is subject to change." https://nixos.org/nix/manual/#ssec-relnotes-2.0
<nick_l> gchristensen: The word beta is not in the release notes for Nix 2.0. Perhaps that could be used as well.
<gchristensen> nix 2.0's new commands are a work in progress and should not be depended upon*
coot has quit [Quit: coot]
<nick_l> Thanks for the warning.
<kini> nick_l: interesting that you say nix-env -i shouldn't be done. I guess that makes sense -- probably there is a user-level equivalent of /etc/nixos/config where I can write a list of what packages I want to have in my user environment.
jperras has quit [Ping timeout: 264 seconds]
<nur0n0> do NIX_CFLAGS_COMPILE and NIX_LDFLAGS have to be set manually? I'm trying to package a library and I think I got the file system layout right, but I'm not sure how to make the library visible to other packages
<adisbladis[m]> kini: If you want user-level declarative packages you should take a look at home-manager
rosa has quit [Quit: rosa]
<nur0n0> I assume the library is responsible for setting those flags?
<kini> adisbladis[m]: oh, so such a thing is not built into nix/nixos? Then nick_l, what did you mean? What comes after "Here is what you should be doing"? :)
chessai has quit [Ping timeout: 276 seconds]
<kisik21> Binary cache is coughing up errors
ckauhaus has joined #nixos
<nur0n0> this link seems to imply that a package requiring the library is responsible for setting the flags: https://nixos.org/nixos/nix-pills/inputs-design-pattern.html. but from this link: https://nixos.org/nixpkgs/manual/#ssec-setup-hooks, it appears that the flags are set automatically
<kisik21> Connections are reset by peer
<infinisil> Oh no.. Some upgrade borked the booting of my laptop on nixos :/
<kini> I'm trying to investigate the collisions I'm seeing, so I ran `nix-store -q --referrers-closure` on the two colliding paths. The results are exactly identical except for the colliding paths themselves... what's going on?
mkoenig has quit [Ping timeout: 256 seconds]
<infinisil> kini: Yeah that makes sense, because both those path want to be installed by the same profile, aka the same referrers
xcmw has quit [Ping timeout: 268 seconds]
<infinisil> I think
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos
<infinisil> kini: What you can do is give one of those a lower priority
<kini> Oh, duh. I guess I'm going about this the wrong way... what's the best way to track this down?
ckauhaus has quit [Client Quit]
moredhel_[m] has joined #nixos
<kini> well both of the colliding derivations have the same name (phonon-backend-gstreamer-qt5-4.9.0)
<kini> but different hashes
<infinisil> Ah wait, no you're right, referrers-closure should give at least some clue
jperras_ has quit [Quit: WeeChat 2.1]
<infinisil> kini: What's the derivation that pulls those in?
<infinisil> aka --referrers?
<kini> four system-path derivations
<infinisil> With nix 2.0 you can also use the very nice `nix why-depends /nix/store/foo.drv /nix/store/bar.drv`
<{^_^}> [nixpkgs] @Anton-Latukha opened pull request #39117 → handbrake: refactor (fx, clenup, description, cosmetics, add maintainer) → https://git.io/vpI0x
<nick_l> kini: in short, use nix-shell.
<infinisil> kini: Hmm yeah try nix why-depends with foo=your system derivation and bar=the dependency
reinzelmann has joined #nixos
kisik21 has quit [Ping timeout: 260 seconds]
<betaboon> anyone knows if there are problems building ruby-gems on nixos18.03 ? for some odd reason the ruby2.4.3-json1.8.2 gem doesn't build on 18.03, but it didnt fail on 17.09 ?
<kini> oh, by "your system derivation" I guess you mean the "nixos-system" one
daveo has quit [Ping timeout: 260 seconds]
<kini> not much different -- http://nixpaste.lbr.uno/W1gibl7b?text
odi has joined #nixos
asuryawa_ has joined #nixos
kisik21 has joined #nixos
<kini> so now I know that the collision is caused by pulling in both Qt 5.6 and Qt 5.10 simultaneously (?), but I don't know why that is happening
mkoenig has joined #nixos
<kini> nick_l: so you don't have anything installed long-term that you might want to use outside of nix-shells, like, say, firefox, or something? Or do you just put all of those packages as systemwide?
mkoenig has quit [Client Quit]
<cransom> is there an option to unsuppress nix output? like `nix copy`'s new oneline for interactive output is ok, but if i stick it in a script, having more verbose output for what it's doing at the time would be nice.
<nick_l> kini: those things are in systemPackages in my case or enabled via modules.
<nick_l> environmentPackages*
asuryawanshi has quit [Ping timeout: 276 seconds]
reinzelmann has quit [Quit: Leaving]
vidbina has quit [Ping timeout: 268 seconds]
jrolfs_ has joined #nixos
reinzelmann has joined #nixos
srghma has joined #nixos
mkoenig has joined #nixos
ryantrinkle has joined #nixos
jgt has quit [Ping timeout: 240 seconds]
zybell_ has quit [Ping timeout: 264 seconds]
xcmw has joined #nixos
zybell_ has joined #nixos
kisik21 has quit [Ping timeout: 264 seconds]
mkoenig has quit [Ping timeout: 276 seconds]
derchris has quit [Read error: Connection reset by peer]
derchris has joined #nixos
mkoenig has joined #nixos
fez has joined #nixos
kisik21 has joined #nixos
fez has quit [Client Quit]
markus1189 has quit [Remote host closed the connection]
schoppenhauer has quit [Ping timeout: 264 seconds]
jrolfs_ has quit [Read error: Connection reset by peer]
jrolfs__ has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer pushed to staging « clang3.4: still needs libedit »: https://git.io/vpIgn
ndrei has joined #nixos
xcmw has quit [Ping timeout: 276 seconds]
markus1189 has joined #nixos
endformationage has quit [Ping timeout: 240 seconds]
schoppenhauer has joined #nixos
Izorkin has joined #nixos
endformationage has joined #nixos
<kreisys> hey I'm trying to setup hydra to send email notification... I setup ssmtp to use my mailgun account somewhat securely but hydra can only take an smtp host. what's the easiest fake smtp server to setup on nixos for that purpose?
raynold has joined #nixos
vidbina has joined #nixos
xcmw has joined #nixos
chessai has joined #nixos
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
jperras has joined #nixos
<pkill9> hi, are there any known issues with running steam through Nix on a foreign distro?
<pkill9> I'm getting a segmentation fault after the steam bootstrapper downloaded the latest steam
jrolfs__ has quit [Ping timeout: 265 seconds]
nick_l has quit [Ping timeout: 260 seconds]
<pkill9> specifically I get:
<pkill9> /home/user/.local/share/Steam/steam.sh: line 927: 12762 Segmentation fault $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
vaninwagen has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
humanoyd has quit [Quit: WeeChat 2.1]
S1tiSchu has quit [Read error: Connection reset by peer]
vaninwagen has quit [Ping timeout: 240 seconds]
vidbina has quit [Ping timeout: 264 seconds]
ajs124 has joined #nixos
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
jrolfs__ has joined #nixos
tmaekawa has joined #nixos
Xal has quit [Ping timeout: 265 seconds]
sehqlr has quit [Ping timeout: 268 seconds]
kisik21 has quit [Remote host closed the connection]
kisik21 has joined #nixos
yorick has joined #nixos
Xal has joined #nixos
<srghma> hi, guys, who want to help me to solve this issue https://stackoverflow.com/questions/49906076/how-to-pass-nixpkgs-config-allowunfree-to-local-nixpkgs-repository please join tmate session ssh p87VGNIx9Yh3UasZSbMh9CWKy@ln2.tmate.io
<{^_^}> [nix] @poelzi opened pull request #2090 → Allow multiple search experssions in nix search → https://git.io/vpIKm
knupfer has joined #nixos
odi has quit [Ping timeout: 264 seconds]
ryanartecona has quit [Quit: ryanartecona]
Ariakenom has joined #nixos
jrolfs__ has quit [Ping timeout: 240 seconds]
reinzelmann has quit [Quit: Leaving]
boomshroom has joined #nixos
<boomshroom> Hello!
vaninwagen has joined #nixos
jmc_fr has joined #nixos
Ariakenom has quit [Ping timeout: 265 seconds]
<boomshroom> I'm trying to download the graalvm to play with and the JDK want me to download version 8u161. When I try to download the old version, oracle want me to log in. What do I do?
<jmc_fr> Hi. Not able to get usbmuxd to work : installed via my configuration.nix is ok, but with `services.usbmuxd.enable = true;` I get "the option services.usbmuxd" does not exist, depite of https://nixos.org/nixos/options.html#usbmux
acarrico has quit [Ping timeout: 268 seconds]
<zybell_> Akii: I have read your article about using a private repo. Your last sentence seems to imply that only one builduser can be created,what leads me to the question if the userswitch to builduser could be made through ssh by using localhost as remote builder or does nix-daemon change uid before calling remote builders?
<jmc_fr> Well the words "despite of http etc" are from me, not from the system
<zybell_> if it were possible AgentForwarding could be used to provide all buildusers with roots(nix-daemons)auth.
ma27 has joined #nixos
<Akii> zybell_ for the record I didn't write that article
<Akii> just something I found
<boomshroom> Managed to get it working using master.
<jmc_fr> any idea for usbmuxd, question above ? I surely miss something simple ...
<gchristensen> jmc_fr: interesting, I don't see usbmuxd there
<gchristensen> jmc_fr: what does `nixos-version` say?
TonyTheL1on has joined #nixos
<{^_^}> [nixpkgs] @veprbl opened pull request #39119 → sherpa: 2.2.4 -> 2.2.5 → https://git.io/vpIik
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jmc_fr> nixos-version ==> 17.09.3238.e984f9e48e1 (Hummingbird)
<jmc_fr>
TonyTheLion has quit [Ping timeout: 260 seconds]
alexteves_ has quit [Ping timeout: 276 seconds]
<symphorien> The page you linked show information for 18.03
<jmc_fr> although in my configuration.nix i have system.stateVersion = "18.03"
<symphorien> Stateversion has nothing to do with the current version of the system
jrolfs__ has joined #nixos
<symphorien> It should be the version you had on installation of the system and does not need to be changed afterwards
<symphorien> So to use the module you probably have to upgrade to 18.03
<symphorien> (The channel, not system.stateversion)
<jmc_fr> upgradind is not done in `coniguration.nix` ? I have to `# nix-channel --add https://nixos.org/channels/nixos-18.03 nixos` ?
<symphorien> Yes
<iqubic> Yes.
<iqubic> Leave the stateVersion as it is.
<iqubic> Never update that.
<iqubic> And then after that command run "# nixos-rebuild switch --upgrade"
<jmc_fr> But is there any way to update only through the `configuration.nix` ? I though a nixos system is define solely through this conf file ...
<iqubic> No. You can't upgrade in this way.
<jmc_fr> OK thanks, i'm going for the right way then ... ;-)
<iqubic> make sure to reset stateVersion if you updated that.
<woffs> A usual NixOS system is defined by configuration.nix, nixpkgs and some environment influence (like system), isn't it?
<jmc_fr> ok, done ...
<manveru> seems like mozc IME is broken...
<manveru> german layout is unavailable now :|
mkoenig_ has joined #nixos
<{^_^}> [nixpkgs] @ktf opened pull request #39120 → Add uproot python package → https://git.io/vpIP1
mkoenig has quit [Ping timeout: 268 seconds]
<zybell_> Akii: Sorry about that misunderstanding. Independently from that, do you happen to know, if root owned daemon calls the ssh directly in remote building or switches to builduser first.
<zybell_> *?
<nur0n0> how can I reference a derivation which is not in nixpkgs? I packaged my own library and installed it locally using 'nix-env -i --file'. How do I reference it from some other project?
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
<{^_^}> [nixpkgs] @tadfisher opened pull request #39121 → pass: refactor extension packaging → https://git.io/vpIPh
<infinisil> nur0n0: `import path/to/file.nix`
<infinisil> You can't refer to installed packages like this, you need to have the nix file
<srhb> overlays should be branded as a way to make nothing hardcoded ever. The power... THE POWER....
<Akii> zybell_ no idea, sorry :(
<infinisil> srhb: It doesn't do anything to make nested overrides better though
<jmc_fr> iqubic: what about `system.autoUpgrade.channel = https://nixos.org/channels/nixos-17.03;` (from the Manual) ; is that an equivalent way to upgrade via nix-channel --add ... ?
<nur0n0> infinsil: thank you, that makes sense actually, since `derivation` is a pure function anyway
<infinisil> srhb: I still haven't read through SOS though, which probably is a better solution (https://github.com/NixOS/rfcs/pull/3)
jrolfs__ has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @matthewbauer pushed 0 commits to no-lib: https://git.io/vpIXX
<srhb> infinisil: Oh, hadn't heard of that, thanks for the pointer :)
jrolfs__ has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer pushed to no-lib « libbsd: remove from bumblebee »: https://git.io/vpIXH
<{^_^}> [nixpkgs] @matthewbauer pushed 0 commits to no-lib: https://git.io/vpIX7
astiles has quit [Remote host closed the connection]
Ariakenom_ has quit [Read error: Connection reset by peer]
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos
<dhess> Anyone have an example default.nix or equivalent that shows how to cross-compile using haskellPackages?
<dhess> GHC is basically totally broken on armv7l now and I'm desperate to stop trying to build it natively.
<srk> heh, I've reinstalled my desktop set of apps and now some terminals have smaller fonts :D fun
<{^_^}> [nixpkgs] @sorki opened pull request #39122 → zfs: patch exportfs path for sharenfs functionality → https://git.io/vpIMe
jacob_ has quit [Quit: Lost terminal]
freeman42x]NixOS has quit [Ping timeout: 240 seconds]
srghma has quit [Ping timeout: 260 seconds]
<andrewrk> how does linking against opengl work on nixos?
<andrewrk> if I strace a simple C program I see that it finds /run/opengl-driver-32/lib/
<dhess> clever: thanks! I saw angerman's issue re: this on Github. That is insane :)
dbmikus has quit [Ping timeout: 264 seconds]
<andrewrk> this is linked to /nix/store/drhs8y3h2l9hh8i6y8gpm90jw88wp8s1-mesa-drivers+txc-17.3.6/lib on my system
<dhess> My case should hopefully be a lot simpler. I will take a look at that repo.
<andrewrk> my understanding of mesa is that it is CPU emulation of opengl. does that mean I'm not using GPU accelerated graphics?
<clever> andrewrk: mesa also implements hardware rendering for some cards
<andrewrk> ah
<{^_^}> [nixpkgs] @Infinisil opened pull request #39123 → dust: init at 0.2.3 → https://git.io/vpIMr
<manveru> rycee: you know anyone using fcitx with home-manager?
<infinisil> manveru: Oh fcitx seems interesting, have you used it before?
<manveru> yeah
<manveru> i use it to switch between en/de/jp layouts usually
<infinisil> And it doesn't work with home-manager?
<manveru> but recently the german layout has been broken
<manveru> and i have no clue how to debug this
<manveru> might be that it's caused by home-manager, but i don't think so
dan_b has joined #nixos
telent has joined #nixos
fragamus has joined #nixos
flokli has quit [Quit: WeeChat 2.0.1]
flokli has joined #nixos
sehqlr has joined #nixos
tmaekawa has quit [Quit: tmaekawa]
acarrico has joined #nixos
mounty has quit [Quit: Konversation terminated!]
endformationage has quit [Ping timeout: 265 seconds]
endformationage has joined #nixos
ryanartecona has joined #nixos
szicari has quit [Quit: szicari]
<jmc_fr> infinisil: I'm trying to access to my pictures on an iphone using usbmuxd. What to do after having put `services.usbmuxd.enable = true;` in my conf file (and having rebuit) ?
szicari has joined #nixos
<infinisil> jmc_fr: You need ifuse for that as well
<infinisil> Just nix-shell -p ifuse
<infinisil> Then I think it's just `mkdir phone && ifuse phone`
<Akii> trying to build a Haskell package, the missing dependency is on nixpkgs master (http://lpaste.net/364980)
<Akii> it builds locally on macos with nix
astiles has joined #nixos
<Akii> I don't get any of this anymore.. why
<infinisil> Akii: What's your nix file to build it?
<infinisil> scotty 0.11.1 should be in master
acarrico has quit [Ping timeout: 240 seconds]
<Akii> scotty 0.11.1 is in master I just checked
<Akii> I did nix-channel --update
<Akii> I don't get how nixpkgs on git relate to what channel I have on nixos if related at all
<Akii> and all my googling just voids
endformationage has quit [Ping timeout: 264 seconds]
<clever> Akii: each user has his own set of channels, you may need to nix-channel --update as root
<clever> Akii: also, what does nix-channel --list say?
<Akii> oh wait
<clever> Akii: that channel follows the latest version of the release-18.03 branch that passed testing
<Akii> on here I have this unstable channel
<clever> unstable follows the latest master to pass testing
<Akii> that would make sense
<clever> Akii: also see http://howoldis.herokuapp.com/
<Akii> okay so I go nix-channel add the unstable
<infinisil> Akii: scotty is indeed on version 0.11.0 on the unstable channel
<clever> and set the name to nixos, nixos-rebuild prefers that channel name
endformationage has joined #nixos
<infinisil> So your ==0.11.1 requirement fails
<infinisil> Akii: You can replace `pkgs = import <nixpkgs> { inherit config; }` with something like `nixpkgs = fetchFromGitHub { owner = "NixOS"; repo = "nixpkgs"; rev = "..."; sha256 = "..."; }; pkgs = import nixpkgs { inherit config; };`
<jmc_fr> infinisil: `mkdir phone && ifuse phone` is simply perfect
<infinisil> Akii: Oh and use `(import <nixpkgs> {}).fetchFromGitHub` instead. Get the rev from the latest master revision
<Akii> yeah but why does it work local?
knupfer has quit [Ping timeout: 265 seconds]
<infinisil> jmc_fr: Nice, glad the usbmuxd module works for you :D
<infinisil> Akii: What do you mean?
<Akii> I've nix installed on macos where this exact configuration builds
<Akii> then I push it to nixos and it doesn't build anymore
<infinisil> I think macs might have a different default channel, which might have updated to this version already
<srhb> clever: Not aside from --upgrade, right?
<infinisil> Akii: That's why the fetchFromGitHub for nixpkgs is important
<Akii> okay and I cannot tell nix to use master?
<infinisil> Akii: which gets you a reproducible build
freeman42x]NixOS has joined #nixos
<pirateking> yes! i now have the master channel
<pirateking> took me 3 hours to understand how tars work - kept on corrupting them
<pirateking> [pirateking@nixos:~]$ sudo nix-env -qasPc --description .*xscreensaver.* --S master.xscreensaver xscreensaver-5.39 - ? A set of screensavers [pirateking@nixos:~]$
vaninwagen has quit [Quit: WeeChat 2.1]
astiles has quit [Remote host closed the connection]
<Akii> infinisil I'm sorry, I don't understand your two suggestions
endformationage has quit [Ping timeout: 256 seconds]
szicari has quit [Quit: szicari]
astiles has joined #nixos
<infinisil> Akii: the `import <nixpkgs> {}` you were using before gets you the nixpkgs that just happens to be default on the current system
jgt has joined #nixos
<infinisil> Akii: Which means it can get you completely different builds on mac/linux/wherever the file happens to be
endformationage has joined #nixos
<infinisil> Akii: Using a nixpkgs with a fixed revision and a hash makes sure that a very specific nixpkgs gets used for every build on every machine
<infinisil> Akii: Yeah
astiles has quit [Remote host closed the connection]
<Akii> ah now I understand
<Akii> your second tip was a shorthand for the first
astiles has joined #nixos
<infinisil> ah yes
<Akii> so basically this should not build locally now
flokli has quit [Quit: WeeChat 2.0.1]
<infinisil> What do you mean by locally?
<Akii> on my mac; remote being on my nixos server
flokli has joined #nixos
<infinisil> Not sure why you think it should not build on the mac
<Akii> well I thought this would make the build reproducible
<infinisil> Adding the specific nixpkgs revision does that (almost)
jgt has quit [Ping timeout: 260 seconds]
<Akii> well it still doesn't build on nixos and still builds on macos
<infinisil> With the specific nixpkgs revision?
<Akii> with this: (import <nixpkgs> {}).fetchFromGitHub
<infinisil> Well what's the error?
<Akii> same thing; missing dependency scotty 0.11.1
<infinisil> And you used the exact same revision on both machines in the fetchFromGitHub?
<LnL> !pills
<LnL> why do I never remember this url...
jrolfs__ has quit [Ping timeout: 268 seconds]
<infinisil> LnL: The bot responds to PM's too btw :P
<LnL> oh :p
jensens has joined #nixos
<Akii> how do I even run " (import <nixpkgs> {}).fetchFromGitHub"
endformationage has quit [Ping timeout: 256 seconds]
<Akii> you now what, I'll just wait
<Akii> it'll be there eventually
<infinisil> Huh?
<pirateking> Akii: missing dependency is a package dependency problem, not a problem from pulling master. you might be able to set --keep-going / -k in case any derivation fails
Maxdamantus has quit [Ping timeout: 256 seconds]
<jmc_fr> infinisil: usbmuxd worked like a charm, until I physically disconnected my phone. And now, when I reconnect, nothing works anymore: `$ ifuse phone
<jmc_fr> There was an error accessing the mount point: Input/output error
<jmc_fr> `
oida has quit [Remote host closed the connection]
<infinisil> Akii: Can you show your current nix file?
__monty__ has left #nixos [#nixos]
Maxdamantus has joined #nixos
toby1851 has quit [Quit: Konversation terminated!]
toby_ has joined #nixos
<Akii> it's unchanged; I just put your thing in which has no effect (which is probably obvious, but wasn't to me)
sehqlr has quit [Ping timeout: 264 seconds]
<Akii> why is this so complicated
oida has joined #nixos
<jmc_fr> `$ sudo rm -R phone ==> rm: impossible de supprimer 'phone': Is a directory`
toby_ is now known as Guest51829
<Akii> the thing is on master
<Akii> why can't I take it and put it somewhere
<pirateking> Akii: import var sets a variable to something. whenever it's used it'll have those packages
endformationage has joined #nixos
jperras has quit [Ping timeout: 255 seconds]
<pirateking> Akii: what can you not take and what can you not place in the appropriate spot?
<infinisil> Run the build with this change
<infinisil> This is what i meant
kisik21 has quit [Quit: Quit]
<infinisil> jmc_fr: Yeah, that's a problem of ifuse I don't know a solution to. I think you can recover by lazily unmounting in
<infinisil> it*
<infinisil> jmc_fr: sudo umount -fl phone
<Akii> pirateking still searching.. sec
<nur0n0> how does pkg-config relate to nix? from other nix libraries, it seems that it automatically sets X_CFLAGS_COMPILE appropriately, but I can't find this anywhere in the docs
astiles has quit [Remote host closed the connection]
<sphalerite> Does anyone know a uPnP remote control tool? I can find plenty of media servers and control points, but nothing that I can actually control my Kodi with from my laptop, as far as I can see
<Akii> it's in there
astiles has joined #nixos
<infinisil> jmc_fr: Maybe the sudo and -l isn't needed though
<sphalerite> nur0n0: if pkgconfig is in the buildInputs for a derivation, the lib/pkg-config directories of the other buildInputs get added to PKG_CONFIG_PATH
<jmc_fr> :infinisil `sudo umount -fl phone && ifuse phone` is perfect... thks ;-)
<infinisil> jmc_fr: :)
<jmc_fr> infinisil: let me try without
<Akii> infinisil it complained about the hash and nicely provided the correct one; put that in now stuff is happening
<infinisil> Akii: Nice
vidbina has joined #nixos
dbmikus_ has joined #nixos
<pirateking> anyone know how to put bash inside a nix program?
<Akii> infinisil yup, wow
obadz- has joined #nixos
<nur0n0> sphalerite: thank you
<sphalerite> nur0n0: NIX_CFLAGS_COMPILE and NIX_LDFLAGS are set completely independently of pkg-config though AFAIK.
<infinisil> pirateking: You can't execute bash from nix, but you can write a derivation that runs bash
alex`` has quit [Ping timeout: 256 seconds]
keith_analog has joined #nixos
<pirateking> infinisil: how does it run a hello-world bash file?
<nur0n0> pirateking: depends what you mean by 'put bash inside'
<infinisil> pirateking: What do you mean? I don't know what you're referring to
<keith_analog> Hi All, I'm writing a nix package for which there is an autotuning phase that generates machine-specific tuning parameters. Does anyone know if there is an established method for such a phase, or perhaps an example? Thanks
obadz has quit [Ping timeout: 246 seconds]
obadz- is now known as obadz
iqubic has quit [Ping timeout: 265 seconds]
<infinisil> keith_analog: Sounds like configurePhase to me
<sphalerite> keith_analog: that's something that we try hard to prevent completely in nix derivations.
<jmc_fr> infinisil: `sudo umount -f phone && ifuse phone` will be my last word ;-)
jperras has joined #nixos
<sphalerite> keith_analog: because it's a source of non-determinism/impurity
<infinisil> jmc_fr: Nice :)
<infinisil> keith_analog: Oh yeah what sphalerite said, I take back what i said
<{^_^}> [nixpkgs] @mpickering opened pull request #39125 → SAGA, SAGA LTS release, dependencies and QGIS SAGA plugin → https://git.io/vpI5O
pkill9 has quit [Quit: WeeChat 2.1]
<pirateking> nur0n0: run nix-prefetch-url, then use nix that needed the info
<keith_analog> sphalerite: ok thanks, then perhaps the method i should use is to have the package lazily perform the autotuning phase after it's installed
acarrico has joined #nixos
<sphalerite> keith_analog: yes, that would probably be the best approach
<infinisil> pirateking: Nope, that makes things impure
dbmikus_ has quit [Ping timeout: 240 seconds]
asuryawa_ has quit [Ping timeout: 264 seconds]
<keith_analog> sphalerite: so, would the natural place to put the configuration files be in /var/tmp?
<infinisil> pirateking: Well you actually can, but it's not recommended at all
<infinisil> pirateking: If you want to fetch something impurely without a hash you can use `builtins.fetchurl "https://.."`
<sphalerite> keith_analog: seems more like a /var/cache or ~/.cache thing to me. Not 100% sure though.
<keith_analog> sphalerite: super, thanks
<infinisil> pirateking: (Which is also discouraged but not as bad)
<sphalerite> if so, probably use the relevant XDG env vars
<Akii> infinisil thank you
<kini> builtins.fetchurl will affect the hash of the derivation if it downloads something different the next time, right?
<infinisil> Akii: Glad I could help :)
astiles has quit [Ping timeout: 256 seconds]
<kini> so it's not *silently* impure, in some sense
jrolfs__ has joined #nixos
<nur0n0> pirateking: or you can use bash + nix-prefetch-url to generate a 'default.nix' file automatically
<pirateking> infinisil: what if i want to hack nix to update a custom channel that requires tarballs, mounting them, creating files, unmounting them? I can do it all outside nix but it would be more fluid if i could handle the output in nix
keith_analog has quit [Quit: Konversation terminated!]
<LnL> kini: fetching sources without a hash makes evaluation impure, but not everything that comes after
pkill9 has joined #nixos
<infinisil> pirateking: What nur0n0 said sounds better, nix is meant for pure things and it gets most of the benefits when stuff stays pure
<infinisil> So do whatever impure things you can outside of nix
RaphaelLullis[m] has left #nixos ["User left"]
<rycee> manveru: No, I don't know anybody specific. But there is some issue open about it.
<infinisil> I'll go to bed now though, see y'all!
<pirateking> infinisil: i'm fine with that. but i don't know how to edit text in files
<infinisil> pirateking: check out nix-prefetch-git, it generates a json for you, that you can then import into nix with builtins.fromJSON
<pirateking> oh perfect thanks!
ma27 has quit [Ping timeout: 265 seconds]
* infinisil out
<nur0n0> sphalerite: so first project/lib/pkg-config gets added to PKG_CONFIG_PATH. then, the nix gcc wrapper will use this to populate NIX_CFLAGS_COMPILE? are there docs for this?
endformationage has quit [Quit: WeeChat 1.9.1]
<sphalerit> nur0n0: no, stdenv populates NIX_CFLAGS_COMPILE independently of pkg-conifg
jperras has quit [Read error: Connection reset by peer]
jrolfs__ has quit [Ping timeout: 240 seconds]
astiles has joined #nixos
<nur0n0> sphalerit: ah ok, thank you
simukis has quit [Ping timeout: 264 seconds]
<sphalerit> Sorry I don't know if there are any docs for this, but if there are it's probably in the nixpkgs manual
<sphalerit> I'm off to bed now, gnight
acarrico has quit [Ping timeout: 256 seconds]
nur0n0 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
astiles has quit [Remote host closed the connection]
jmc_fr has quit [Ping timeout: 264 seconds]
astiles has joined #nixos
vidbina has quit [Ping timeout: 256 seconds]
acarrico has joined #nixos
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
lord| has joined #nixos
hiratara has quit [Ping timeout: 265 seconds]
astiles has quit [Remote host closed the connection]
hiratara has joined #nixos
astiles has joined #nixos
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
grp has quit [Quit: box shutting down...]
hamishmack has quit [Quit: hamishmack]
acarrico has quit [Ping timeout: 264 seconds]
mounty has joined #nixos
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
<{^_^}> [nixpkgs] @WilliButz opened pull request #39126 → wt: 3.3.9 -> 3.3.10, 4.0.2 -> 4.0.3 → https://git.io/vpIbF
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sehqlr has joined #nixos
astiles_ has joined #nixos
astiles has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @WilliButz opened pull request #39127 → fileshelter: enable parallel building → https://git.io/vpIN0
ajs124 has left #nixos ["Stream closed by us: Timed out waiting for stream resumption (connection-timeout)"]
Ridout has joined #nixos
astiles_ has quit [Remote host closed the connection]
keith` has joined #nixos
astiles has joined #nixos
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
vidbina has joined #nixos
<keith`> I'm running nixos-unstable and after not having used it for a while I find that usb redirection has stopped working for me in gnome-boxes, with this error: Apr 18 11:17:11 kea-laptop org.gnome.Boxes[1591]: spice-client-glib-usb-helper: Error PoliciKit error: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action org.spice-space.lowlevelusbaccess is not registered
<tnks> okay, so in a docker container, I'm trying to call the nixos code that builds out /run/wrappers, and I feel I'm so close.
<tnks> but some rpaths are not being patched.
<tnks> I have a true NixOS installation for comparison of what I'm trying to reproduce in Docker.
<keith`> That polkit file is provided by the spice-gtk package but didn't seem to be installed correctly.
ajs124 has joined #nixos
<keith`> I made a small overlay that results in the file existing in share/polkit-1/actions in the package $out.
<keith`> I thought that would get linked into /run/current-system/sw/share/polkit-1/actions by the environment.pathsToLink = [ "/share/polkit-q" ]; in the polkit package, but this is not happening.
<keith`> Anyone here have suggestions for how to track down the problem?
<keith`> Sorry, polkit package has: environment.pathsToLink = [ "/share/polkit-1" ];
<tnks> I think I figured it out... the module uses an overriden derivation.
<keith`> In case it helps, my overlay to get the policy file in the store path for the spice-gtk package is:
<keith`> spice-gtk = super.spice-gtk.overrideAttrs (oldAttrs: rec {
<keith`> PKG_CONFIG_POLKIT_GOBJECT_1_POLICYDIR = "$(out)/${oldAttrs.PKG_CONFIG_POLKIT_GOBJECT_1_POLICYDIR}";
<keith`> });
<keith`>
<mpickering> "lastools" provides a number of non-free windows executables. The recommended way to use them on unix is to run them via wine. It is too bizarre to package these executables with wrappers which invoke wine so they can use used seamlessly on linux?
<mpickering> Is there any precedent for this?
erasmas has quit [Quit: leaving]
<{^_^}> [nixpkgs] @WilliButz opened pull request #39128 → prometheus-dovecot-exporter: 2018-01-18 -> 0.1.1, add module → https://git.io/vpIAp
jensens has quit [Ping timeout: 256 seconds]
Fare has quit [Ping timeout: 256 seconds]
fragamus has joined #nixos
<mpickering> hmm wine doesn't build on darwin anyway, so that's not going to work immediately
<gchristensen> mpickering: I would say you probably don't want to package that
hiratara has quit [Quit: ZNC - http://znc.in]
<mpickering> It is disgusting but it is how the developers recommend non-windows users use the software. I have other ideas to work around not having these packaged anyway
<gchristensen> I went down this road to packaging 1password, it was not good and no fun, and I'm glad I didn't put it in nixpkgs
sehqlr has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @globin merged pull request #39128 → prometheus-dovecot-exporter: 2018-01-18 -> 0.1.1, add module → https://git.io/vpIAp
<{^_^}> [nixpkgs] @globin pushed 2 commits to master: https://git.io/vpIpG
<{^_^}> → 059a2a8c by @WilliButz: prometheus-dovecot-exporter: 2018-01-18 -> 0.1.1
jperras has joined #nixos
<{^_^}> → 01af3014 by @WilliButz: prometheus-exporters: add dovecot exporter module
<LnL> there''s a web interface in the vault and they have a cli tool
<{^_^}> [nixpkgs] @globin merged pull request #39127 → fileshelter: enable parallel building → https://git.io/vpIN0
<{^_^}> [nixpkgs] @globin pushed commit from @WilliButz to master « fileshelter: enable parallel building »: https://git.io/vpIpC
pirateking has quit [Ping timeout: 260 seconds]
<gchristensen> this was "back in the day"
<LnL> ah :)
<{^_^}> [nixpkgs] @globin merged pull request #39126 → wt: 3.3.9 -> 3.3.10, 4.0.2 -> 4.0.3 → https://git.io/vpIbF
<{^_^}> [nixpkgs] @globin pushed commit from @WilliButz to master « wt: 3.3.9 -> 3.3.10, 4.0.2 -> 4.0.3 »: https://git.io/vpIp4
<{^_^}> [nixpkgs] @primeos pushed to master « pythonPackages.raven: 6.6.0 -> 6.7.0 »: https://git.io/vpIp2
day|flip has joined #nixos
xcmw has joined #nixos
jrolfs__ has joined #nixos
hamishmack has joined #nixos
jperras has quit [Read error: Connection reset by peer]
jperras has joined #nixos
jrolfs__ has quit [Ping timeout: 264 seconds]
shabius_ has quit [Quit: Leaving]
Fare has joined #nixos
obadz has quit [Quit: WeeChat 2.0]
vidbina has quit [Ping timeout: 256 seconds]
vidbina has joined #nixos
obadz has joined #nixos
Fare has quit [Ping timeout: 240 seconds]
xcmw has quit [Ping timeout: 256 seconds]
jrolfs__ has joined #nixos
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
<keith`> In case anyone has thoughts on the USB redirection problem I mentioned above, I opened this bug for it:
ryanartecona has quit [Quit: ryanartecona]
<{^_^}> [nixpkgs] @veprbl opened pull request #39130 → Implement graphicsmagick-imagemagick-compat → https://git.io/vpIjy
shabius has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dan_b has quit [Ping timeout: 264 seconds]
telent has quit [Ping timeout: 264 seconds]
Fare has joined #nixos
xcmw has joined #nixos
joehh has quit [Ping timeout: 264 seconds]
<Drakonis[m]> hmm, didn't this channel used to have 200 users?
jtojnar has quit [Ping timeout: 260 seconds]
<gchristensen> Drakonis[m]: yep
<gchristensen> we've grown a teensy bit
srk has quit [Ping timeout: 246 seconds]
<Drakonis[m]> that was quite fast
Asmadeus has joined #nixos
astiles has quit [Remote host closed the connection]
<gchristensen> it was ~350 in early 2016
srk has joined #nixos
astiles has joined #nixos
<Drakonis[m]> say, the newsletter has a bunch of interesting nix projects, but they're not all available on nixpkgs
<yorick> it should probably be a monthly newsletter
<yorick> in pratice, it is
<joepie91> news..letter?
<Drakonis[m]> it's rapidly expanding
<Drakonis[m]> hmm, so nix did become the current hot thing
sehqlr has joined #nixos
iqubic has joined #nixos
<Drakonis[m]> hmm, would it be worthwhile to tie Nix into more linux interfaces?
<Drakonis[m]> get rid of the symlink slurry
<Drakonis[m]> have a directory binding slurry instead
<gchristensen> "symlink slurry"
astiles has quit []
<Drakonis[m]> for the lack of a better term
<Drakonis[m]> what do you call 26 thousand symlinks then :v
<gchristensen> I'm going to stick to symlink slurry
<Drakonis[m]> symlink fiesta :v?
nikola_i has joined #nixos
<Drakonis[m]> hmm, are there execution macros?
joehh has joined #nixos
<Drakonis[m]> ie: this package depends on the standard fhs and will by default be executed using a fhs environment
nikola_i has quit [Client Quit]
dcol has joined #nixos
<Drakonis[m]> fedora has the usr merge by default but debian does not
<dcol> hello, pretty new to NixOS. how do I get a package that is up on github? when I do --upgrade it doesn't seem to add this package (it's pretty recent, just one day)
astiles has joined #nixos
<Drakonis[m]> are you checking nixpkgs?
<Drakonis[m]> if so, you have to change the repository it sources the packages from
blankhart has joined #nixos
astiles_ has joined #nixos
sehqlr has quit [Ping timeout: 240 seconds]
<Drakonis[m]> also there should be notes on local and global namespaces
<{^_^}> [nixpkgs] @matthewbauer pushed to master « darling: fixup hash »: https://git.io/vpLvP
<dcol> hmm what do you mean? like pointing my channel to the github repo instead? currently its on nixos-unstable
<Drakonis[m]> it's not immediately clear that's a thing
<Drakonis[m]> nixos-unstable syncs once a week afaik
<dcol> ah I see, that makes sense then
<Drakonis[m]> nixpkgs-unstable syncs frequently
<gchristensen> pretty much yeah, but it isn't actually scheduled: https://channels.nix.gsc.io/graph.html
greska[m] has joined #nixos
astiles has quit [Ping timeout: 256 seconds]
<dcol> so are there any cached binaries until unstable synchs? in other words if I changed my package source to the repo would I have to rebuild every commit the last week-ish
ajs124 has left #nixos ["Machine going to sleep"]
<Drakonis[m]> yes there are
tertle||eltret has joined #nixos
<gchristensen> but depends where you get, if you check out a brand new commit and it is a mass rebuild, obviously you'll have to rebuild a lot
<Drakonis[m]> nixpkgs has binary caches
jgt has joined #nixos
<LnL> yeah caches are uploaded immediately when built, but channels wait for everything to complete
<dcol> yeah, fair enough. guess I'll have a go at it then. thanks for the help!
sehqlr has joined #nixos
<dcol> oh and for reference if anyone else is experiencing crashes of xserver on the laptop, that's a bug in libinput that gets fixed in 1.10.3 :)
<achambe> What would be the correct way to add certain runtime packages to another scripts PATH, would that be the wrapper stuff?
<Drakonis[m]> if i send in an pull request to rebuild libreoffice with gtk and/or qt support, how long does it take to build
jgt has quit [Ping timeout: 256 seconds]
<Drakonis[m]> i'm miffed that isn't a thing, libreoffice looks awful without it
pkill9 has quit [Quit: WeeChat 2.1]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrolfs__ has quit [Read error: Connection reset by peer]
jrolfs__ has joined #nixos
<srid> has anyone gotten vscode live share working on nixos (it bundles an installer that assumes legacy linux): https://marketplace.visualstudio.com/items?itemName=MS-vsliveshare.vsliveshare
jperras has quit [Read error: Connection reset by peer]
<Drakonis[m]> legacy linux? c'mon
<srid> :P nixos is the future I believe
<Drakonis[m]> that's standard linux
<day|flip> nix give you so much power
<{^_^}> [nixpkgs] @brandondyck closed pull request #35532 → idrisPackages.specdris: 2017-11-11 -> 0.3.0 → https://git.io/vAwyc
<Drakonis[m]> there's a thing for creating a fhs compliant environment
<Drakonis[m]> https://brianmckenna.org/blog/running_binaries_on_nixos seems relevant since they expect everything to be the standard
jrolfs__ has quit [Ping timeout: 256 seconds]
sehqlr has quit [Ping timeout: 256 seconds]
ndrei has quit [Ping timeout: 268 seconds]
chisui has joined #nixos
Fare has quit [Ping timeout: 256 seconds]
<Drakonis[m]> run code under an fhs environment then install it
<day|flip> fhs???