gchristensen changed the topic of #nixos to: NixCon 2018 CfP is now open! https://nixcon2018.org/ || 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, #nixcon
Mateon2 has joined #nixos
Mateon1 has quit [Ping timeout: 252 seconds]
Mateon2 is now known as Mateon1
counting1ort has joined #nixos
adisbladis has joined #nixos
Edes has joined #nixos
countingsort has quit [Ping timeout: 252 seconds]
silver has joined #nixos
<{^_^}> [nixpkgs] @adisbladis merged pull request #46428 → dockerTools: unpin go version → https://git.io/fAavJ
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/fAaC1
abueide has quit [Remote host closed the connection]
<Myrl-saki> How do I clear Nix's cache again?
<Myrl-saki> path-info is telling me it's invalid when it's not.
abueide has joined #nixos
<Myrl-saki> This is for s3.
_ris has quit [Ping timeout: 252 seconds]
<Myrl-saki> ~/.cache/nix/binary-cache-v5.sqlite
carlosdagos has joined #nixos
ericsagnes has quit [Ping timeout: 252 seconds]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/898a53d09fe (from 55 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
ivan has quit [Remote host closed the connection]
q3k has quit [Read error: Connection reset by peer]
ivan has joined #nixos
hl has quit [Ping timeout: 246 seconds]
q3k1 has joined #nixos
q3k1 is now known as q3k
ericsagnes has joined #nixos
Purple-mx has quit [Ping timeout: 264 seconds]
schmittlauch[m] has quit [Ping timeout: 264 seconds]
hl has joined #nixos
rycee[m] has quit [Ping timeout: 264 seconds]
simbergm has quit [Ping timeout: 264 seconds]
hax404 has quit [Ping timeout: 264 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wirew0rm has quit [Ping timeout: 264 seconds]
Purple-mx has joined #nixos
simbergm has joined #nixos
schmittlauch[m] has joined #nixos
rycee[m] has joined #nixos
nh2[m] has joined #nixos
rihardsk[m] has joined #nixos
desttinghim[m] has joined #nixos
moredhel[m]1 has joined #nixos
hl[m] has joined #nixos
YuFanLovezYou[m] has joined #nixos
dmc has quit [Quit: WeeChat 2.2]
wirew0rm has joined #nixos
dkellner[m] has joined #nixos
Voltairine[m] has joined #nixos
hax404 has joined #nixos
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/898a53d09fe (from 75 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<wpcarro> Any nix-darwin users know why I might be getting an error about a missing darwin-config file?
bbarker has joined #nixos
zemm has quit [Ping timeout: 240 seconds]
<bbarker> Hi, I just added some nix expressions for this repo here: https://github.com/bbarker/MazesOfMonad/commit/41faa71643c0433f2af7d2450fe5f3d1d90d4aef - when I run `nix-shell` to execute default.nix, I notice that even if I don't change anything in the directory, a new store path is generated each time. Why is this, and how to avoid it? I suspect it is because src = ./. isn't hashed properly
zemm has joined #nixos
sbdchd has joined #nixos
jonreeve has joined #nixos
<{^_^}> [nixpkgs] @samueldr opened pull request #46456 → dbeaver: 5.1.6 -> 5.2.0 → https://git.io/fAalV
<{^_^}> [nixpkgs] @samueldr opened pull request #46457 → dbeaver: 5.1.6 -> 5.2.0 (18.09) → https://git.io/fAalw
<jonreeve> When I try to build haskellPackages.rdf4h, using, say, `nix-shell -p haskellPackages.rdf4h`, it fails at the last second because of some bug with its test suite. (https://github.com/robstewart57/rdf4h/issues/39)
<{^_^}> robstewart57/rdf4h#39 (by juhp, 1 year ago, open): test-rdf4h: rdf-tests/turtle/manifest.ttl: openFile: does not exist (No such file or directory)
silver has quit [Quit: rakede]
<jonreeve> So the whole build fails.
<jonreeve> Is there a way to tell nix not to run tests, so that this package might build?
<samueldr> ideally, you'd patch only failing tests out
<samueldr> (though I have no idea how it applies to the haskell ecosystem in nixpkgs)
<samueldr> at a glance, it looks like `doCheck` defaults to true for haskell stuff
<jonreeve> Hm awesome. Do you know where I'd put `doCheck`?
<samueldr> looking to see if I see how to affect hackage-packages.nix the right way
<samueldr> (heh, looking to see if I see... tautologically)
<jasongrossman> samueldr: I don't think that's tautological.
<samueldr> hm, maybe not
<jasongrossman> :-)
Supersonic has quit [Ping timeout: 252 seconds]
<jonreeve> Hm, doesn't seem to work if I just put it inside `mkDerivation` in my cabal2nix-generated shell.nix file.
sigmundv has quit [Ping timeout: 240 seconds]
<samueldr> (you then need to re-generate the hackage-packages.nix file)
Supersonic has joined #nixos
<jonreeve> Would there be a way to change my project's shell.nix file in some way so that it replaces the broken-tests `rdf4h` dependency with something like `dontCheck rdf4h`?
<wpcarro> Any nix-darwin users free to lend a hand?
fragamus has joined #nixos
dbmikus has joined #nixos
<jonreeve> Am I doing this the wrong way? http://nixpaste.lbr.uno/Lgv-7H0a?nix
<jonreeve> I tried changing `rdf4h` to `nixpkgs.pkgs.haskell.lib.dontCheck rdf4h` but it doesn't seem to have worked
jperras has joined #nixos
<infinisil> jonreeve: You've just declared a variable, it never even gets evaluated
<jonreeve> Ah, how can I get it to evaluate?
<jonreeve> I have no idea what I'm doing.
wpcarro has quit []
<infinisil> jonreeve: Use `haskellPackages.extend (self: super: { rdf4h = <bla>.dontCheck super.rdf4h; })` instead of haskellPackages
bbarker has quit [Remote host closed the connection]
klntsky has quit [Remote host closed the connection]
<jonreeve> Nice! That totally works. Thanks!
klntsky has joined #nixos
lassulus_ has joined #nixos
<sir_guy_carleton> where is the location of customRC for neovim?
dbmikus has quit [Ping timeout: 252 seconds]
lassulus has quit [Ping timeout: 240 seconds]
lassulus_ is now known as lassulus
bbarker has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wpcarro has joined #nixos
Czen has quit [Remote host closed the connection]
<elvishjerricco> wpcarro: Sounds like your NIX_PATH doesn't have "darwin-config=/Users/wpcarro/.nixpkgs/darwin-configuration.nix"
<disasm> so `configure.customRC`
<wpcarro> elvishjerricco: strangely enough, it did at the time. My workaround was to reinstall and change my shell from ZSH to Bash, and then somehow everything started functioning
Czen has joined #nixos
<elvishjerricco> wpcarro: Ah. I'm guessing NIX_PATH isn't properly set in the zsh configs
<wpcarro> I think the /etc/static/bashrc couldn't be sourced at first because the shell was ZSH and that was maybe silently failing
<wpcarro> so for now I'm just gonna use bash
<elvishjerricco> wpcarro: Does ZSH source /etc/bashrc?
fragamus has joined #nixos
<wpcarro> I'm not sure that it does... I was manually sourcing it when debugging, which obviously is problematic
<disasm> elvishjerricco: I don't think so, why would you want it to?
<elvishjerricco> disasm: Not saying you would. But it sounds like ZSH with nix-darwin does not get NIX_PATH
<wpcarro> Also... do all nix-darwin users reboot their computers after changing dock and keyboard settings? For me, this was the only way I could see the effects
<wpcarro> I would `rebuild switch` and then restart
<elvishjerricco> wpcarro: I don't use those features of nix-darwin yet, sorry
<disasm> I think logout/login works wpcarro
<wpcarro> elvishjerricco: no worries. thanks for sharing
<wpcarro> disasm: ah that'd be nice. I'll try now
<wpcarro> I wish there was a CLI alternative
<elvishjerricco> I thought there was a way to restart the dock
<disasm> kill the PID :)
<elvishjerricco> I'm guessing relaunching Finder doesn't also relaunch the Dock?
<{^_^}> [nixpkgs] @dtzWill opened pull request #46458 → busybox: 1.29.2 -> 1.29.3 → https://git.io/fAa4q
<wpcarro> it might... I'm always worried about the purity of these configs
<elvishjerricco> killall Dock maybe?
<wpcarro> restarting stinks, but it's good for isolating variables
<disasm> although I don't remember how to do that, ps aux|grep -i dock shows nothing on the mac I just ssh'd into.
<wpcarro> pkill dock might work
<elvishjerricco> Quick googling is suggesting `killall Dock`
<disasm> I could have sworn it used to have a process named Dock
<wpcarro> but either way, I'm not too desperate to know atm. It would have been useful when setting my keyboard preferences
<disasm> oh, I think it's at the login screen :) that would explain it.
wpcarro has quit []
wpcarro has joined #nixos
wpcarro has quit [Client Quit]
wpcarro has joined #nixos
jperras has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @volth opened pull request #46459 → nixos/initrd-network: multiple fixes → https://git.io/fAa44
dbmikus has joined #nixos
graphene has quit [Remote host closed the connection]
jasongrossman has quit [Ping timeout: 240 seconds]
graphene has joined #nixos
jperras has joined #nixos
Edes has quit [Ping timeout: 252 seconds]
dmc has joined #nixos
Czen has quit [Remote host closed the connection]
worldofpeace has quit [Quit: worldofpeace]
sbdchd has quit [Remote host closed the connection]
sbdchd has joined #nixos
jtojnar_ has quit [Remote host closed the connection]
<wpcarro> Does NixOS differentiate between variables that are `export` and those that aren't?
mayhewluke has quit [Ping timeout: 252 seconds]
jperras has quit [Quit: WeeChat 2.2]
mayhewluke has joined #nixos
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « aseprite-unfree: 1.2.4 -> 1.2.9 »: https://git.io/fAaB2
<sir_guy_carleton> i want to add a custom package from github. does 'nix hash-path <path-to-the-cloned-archive' give the proper sha256 string?
<sir_guy_carleton> well, nix hash-path <path-to-the-cloned-archive> --type sha256
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tzemanovic has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @romildo opened pull request #46460 → dde-calendar: init at 1.2.5 → https://git.io/fAaBi
jonreeve has quit [Ping timeout: 246 seconds]
b has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @CMCDragonkai closed pull request #46136 → makefile2graph: init at 2018-01-03 → https://git.io/fAEa8
<{^_^}> [nixpkgs] @CMCDragonkai reopened pull request #46136 → makefile2graph: init at 2018-01-03 → https://git.io/fAEa8
<{^_^}> [nixpkgs] @ryantm merged pull request #46445 → rPackages.RPostgres: fix configure paths and includes → https://git.io/fAash
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fAaRq
primeos has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @dtzWill merged pull request #46351 → kconfig-frontends: update and fixups → https://git.io/fAgjR
<{^_^}> [nixpkgs] @dtzWill pushed 4 commits to master: https://git.io/fAaRu
tzemanovic has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.0]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johnny101 has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @romildo opened pull request #46461 → dtkwm: init at 2.0.9 → https://git.io/fAaRN
johnny101 has joined #nixos
nicko_h has joined #nixos
<{^_^}> [nixpkgs] @lopsided98 opened pull request #46462 → pacman: substitute paths in repo-add → https://git.io/fAa0G
haslersn has quit [Quit: Page closed]
fragamus has joined #nixos
Czen has joined #nixos
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #46172 → stunnel: 5.46 -> 5.49 → https://git.io/fAuaG
<{^_^}> [nixpkgs] @thoughtpolice pushed commit from R. RyanTM to master « stunnel: 5.46 -> 5.49 »: https://git.io/fAa0M
<{^_^}> [nixpkgs] @thoughtpolice pushed commit from R. RyanTM to master « duo-unix: 1.9.20 -> 1.10.4 »: https://git.io/fAa09
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #46293 → duo-unix: 1.9.20 -> 1.10.4 → https://git.io/fAzuq
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #46240 → metabase: 0.30.0 -> 0.30.1 → https://git.io/fAzO7
<{^_^}> [nixpkgs] @thoughtpolice pushed commit from R. RyanTM to master « metabase: 0.30.0 -> 0.30.1 »: https://git.io/fAa07
IRCsum has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @romildo opened pull request #46463 → deepin-image-viewer: init at 1.2.23 → https://git.io/fAaEc
IRCsum has joined #nixos
<{^_^}> [hydra] @kquick opened pull request #594 → Set notification status to done for dependent builds. → https://git.io/fAaEl
<ekleog> wpcarro: what do you mean by `export`?
graphene has quit [Remote host closed the connection]
<{^_^}> [hydra] @kquick opened pull request #595 → Fix darcs input to use darcs-specific SCM cache dir. → https://git.io/fAaut
graphene has joined #nixos
dbmikus has quit [Ping timeout: 264 seconds]
<kalbasit[m]> I'm trying to use buildBazelPackage to build ibazel and I'm getting the same error as mpickering here https://discourse.nixos.org/t/bazel-and-rules-go-packaging/754 This error is coming from buildBazelPackage itself within the deps derivation it creates here https://github.com/NixOS/nixpkgs/blob/2fc255cdb0ea2d17ad173a112d4f8a9372c56d7c/pkgs/build-support/build-bazel-package/default.nix#L13-L28
<kalbasit[m]> it's obvious that buildBazelPackage itself is broken because it relies on network not available within sanbox
<kalbasit[m]> is there a way to enable network access from within a derivation?
sbdchd has quit [Remote host closed the connection]
<{^_^}> [hydra] @kquick opened pull request #596 → Update prompt for Local path input to indicate a URL is also valid. → https://git.io/fAauY
rauno has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
gspia has joined #nixos
sb0 has quit [Quit: Leaving]
<colemickens> What happens if the Makefile puts everything in $(out)/usr/bin ?
<colemickens> Do I need to move it to $(out)/bin ?
<teto> I would like to wrap a program to call another one after its execution. What would be the upstreamable way ? wrapProgram has a --run flag but not a --post-run one
mbrgm has quit [Quit: ZNC 1.7.1 - https://znc.in]
mbrgm has joined #nixos
gspia has quit [Quit: Leaving]
<colemickens> Any tips on debugging a NixOS Module that should be outputting a file to /etc/../foo.conf?
xok has joined #nixos
<colemickens> never mind, just got it too, make sure there's not a preceeding "/etc/" in the path
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jtojnar has joined #nixos
gspia has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
smolboye has quit [Quit: WeeChat 2.2]
smolboye has joined #nixos
<LnL> elvishjerricco: wpcarro: yeah, things like killall Dock don't run during activation because that would be a bit intrusive
<elvishjerricco> LnL: While you're around, could I get your opinion on this, and my comments preceding it?? https://github.com/NixOS/nixpkgs/pull/38624#issuecomment-419793570
<elvishjerricco> Whoops, double question mark was an accident, not a request for urgency :P
<{^_^}> [nixpkgs] @bjornfor pushed commit from R. RyanTM to master « lttng-ust: 2.10.1 -> 2.10.2 »: https://git.io/fAazY
<{^_^}> [nixpkgs] @bjornfor closed pull request #46252 → lttng-ust: 2.10.1 -> 2.10.2 → https://git.io/fAzZ4
<LnL> I made a code-signing branch for nix-darwin some time ago
<LnL> but if all of the libraries also have to be signed that approach won't work :/
filterfish has joined #nixos
<elvishjerricco> LnL: Well the part I'm curious about is more about the detached signing. i.e. not having to produce or alter binaries at all
filterfish has quit [Client Quit]
<LnL> oh!
<LnL> I have no clue what that is, but it sounds very promising
<{^_^}> [nixpkgs] @bjornfor pushed commit from R. RyanTM to master « qmmp: 1.2.2 -> 1.2.3 »: https://git.io/fAazz
<{^_^}> [nixpkgs] @bjornfor closed pull request #46209 → qmmp: 1.2.2 -> 1.2.3 → https://git.io/fAuhA
ydlr has quit [Remote host closed the connection]
ydlr has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #46448 → rclone: 1.43 -> 1.43.1 → https://git.io/fAaZa
<{^_^}> [nixpkgs] @xeji pushed commit from @dywedir to master « rclone: 1.43 -> 1.43.1 (#46448) »: https://git.io/fAazw
<{^_^}> [nixpkgs] @xeji merged pull request #46449 → qemu: port musl patch to new version → https://git.io/fAana
<{^_^}> [nixpkgs] @xeji pushed commit from @dtzWill to master « qemu: port musl patch to new version (#46449) »: https://git.io/fAaz6
ydlr has quit [Remote host closed the connection]
barrucadu has quit [Ping timeout: 252 seconds]
<LnL> elvishjerricco: yeah, if it works I can reimplement my code-signing branch using that, fixing the main problem it has now
barrucadu has joined #nixos
barrucadu has quit [Changing host]
barrucadu has joined #nixos
ydlr has joined #nixos
<elvishjerricco> LnL: But I wonder if it's maybe something Nix should do on its own? Maybe Nix should detached codesign every single file in the store that has a valid Nix signature and has the executable bit set
hyper_ch2 has joined #nixos
civodul has joined #nixos
georges-duperon has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #46456 → dbeaver: 5.1.6 -> 5.2.0 → https://git.io/fAalV
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/fAazF
<{^_^}> [nixpkgs] @xeji merged pull request #46457 → dbeaver: 5.1.6 -> 5.2.0 (18.09) → https://git.io/fAalw
<{^_^}> [nixpkgs] @xeji pushed commit from @samueldr to release-18.09 « dbeaver: 5.1.6 -> 5.2.0 (#46457) »: https://git.io/fAazx
hamishmack has joined #nixos
mounty1 has quit [Ping timeout: 252 seconds]
spear2 has joined #nixos
<Mateon1> How often does unstable update? I think I've been waiting for youtube-dl to trickle through for more than 2 days
<Havvy> As soon as tests pass, which can at times take awhile.
<Mateon1> Or is there some cache I have to clear for nix-channel --update to work?
<Mateon1> Oh, I see, so there's no way to know when the channel will update?
<elvishjerricco> Mateon1: You can probably go look at Hydra
mayhewluke has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @xeji closed pull request #46451 → libxshmfence: 1.2 -> 1.3 fixes memfd_create usage w/musl → https://git.io/fAan6
mayhewluke has joined #nixos
<ekleog> Mateon1: when https://hydra.nixos.org/job/nixos/trunk-combined/tested#tabs-constituents will be all green in its last column
<ekleog> current failures appear to be nixos.tests.installer.separateBoot.x86_64-linux and nixos.tests.installer.simpleProvided.x86_64-linux
<{^_^}> [nixpkgs] @peti merged pull request #46289 → duplicity: 0.7.18 -> 0.7.18.1 → https://git.io/fAzE8
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/fAagP
<ekleog> Mateon1: then, for youtube-dl, you can likely get it from nixpkgs-unstable without much risk
sevanspowell[m] has joined #nixos
<Mateon1> I see. I am currently on the unstable channel, though, and the version I see is 08.28, which is broken due to a youtube update
<Mateon1> Ah, you mean nixpkgs-unstable, not nixos-unstable
<ekleog> sevanspowell[m]: I've never used fetchgitPrivate, but would guess if you disable sandboxing then this will work (not sure whether there's a way to do it without disabling sandboxing, then)
<Mateon1> Didn't know there was a difference
<ekleog> Mateon1: yeah, nixpkgs-unstable is basically latest-hydra-evaluation, afair :)
<ekleog> nixos-unstable has, in addition to that, the set of tests that's currently blocking it from going forwards
<ekleog> but having untested stuff for youtube-dl likely wouldn't hurt
<ekleog> (for your whole system it would be… daring, to say the least)
<LnL> yeah, you don't need to switch your entire system
tzemanovic has quit []
<LnL> my machine mixes packages from 3 different channels :)
<kandinski> how can I find what' the latest git commit of nixpkgs that I rebuilt my system from?
Izorkin has quit [Read error: Connection reset by peer]
<Mateon1> Damn... No luck: `nix-env -iA nixpkgs-unstable.youtube-dl` `replacing old 'youtube-dl-2018.08.28'` `installing 'youtube-dl-2018.08.28'`
<kandinski> my current build, I mean. Is that commit hash anywhere?
<sevanspowell[m]> ekleog: Thanks, how do I disable sandboxing?
<{^_^}> [nixpkgs] @xeji merged pull request #46458 → busybox: 1.29.2 -> 1.29.3 → https://git.io/fAa4q
<{^_^}> [nixpkgs] @xeji pushed commit from @dtzWill to master « busybox: 1.29.2 -> 1.29.3 (#46458) »: https://git.io/fAagj
<ekleog> sevanspowell[m]: that depends if you are on nixos or just using nix in another distribution
<elvishjerricco> sevanspowell[m]: `sandbox = false` in `/etc/nix/nix.conf` (`nix.useSandbox = false;` in `configuration.nix`, if you're on NixOS)
<elvishjerricco> There are two alternatives, however
<ekleog> https://nixos.org/nix/manual/ <- ctrl+f sandbox works pretty well, btw :°
<{^_^}> [nixpkgs] @xeji pushed commit from @dtzWill to release-18.09 « busybox: 1.29.2 -> 1.29.3 (#46458) »: https://git.io/fAa2T
<elvishjerricco> `--option sandbox false` on the command line, or use `builtins.fetchGit` instead if you're on Nix 2.0 or later
<ekleog> (for nix-only, for nixos, https://nixos.org/nixos/options.html#sandbox )
<elvishjerricco> `builtins.fetchGit` does not need the impurity that `fetchGitPrivate` needs
<elvishjerricco> `builtins.fetchGit` will just use your user's SSH creds, as `git` will be invoked as a subprocess of the nix program, i.e. not through the daemon or anything
Ariakenom has joined #nixos
<ekleog> … ooooh :(
<sevanspowell[m]> I'll look into that elvishjerricco, thanks.
<ekleog> so the idea of having nix expressions be “safe” for some definition of “safe” when sandboxing is enabled is now dead :(
<{^_^}> [nixpkgs] @xeji merged pull request #46461 → dtkwm: init at 2.0.9 → https://git.io/fAaRN
<{^_^}> [nixpkgs] @xeji pushed commit from @romildo to master « dtkwm: init at 2.0.9 (#46461) »: https://git.io/fAa2m
<elvishjerricco> hm?
hyper_ch2 has quit [Quit: Page closed]
<ekleog> well, this will put repositories accessible only with your private key into the nix store
<ekleog> which is ugo+r
hyper_ch2 has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #46460 → dde-calendar: init at 1.2.5 → https://git.io/fAaBi
<{^_^}> [nixpkgs] @xeji pushed commit from @romildo to master « dde-calendar: init at 1.2.5 (#46460) »: https://git.io/fAa23
<elvishjerricco> ekleog: That's not different than fetchGitPrivate?
<ekleog> elvishjerricco: well, fetchGitPrivate requires turning off sandboxing :)
<andi-> but fetchGitPrivate was explicit..
<andi-> what ekleog said..
<elvishjerricco> Hm.
Izorkin has joined #nixos
<elvishjerricco> Maybe restricted eval would disallow fetchGit?
<hyper_ch2> hehehe https://xkcd.com/2044/
<ekleog> > 1 + 1 # just checking the syntax here
<elvishjerricco> Or pure eval?
<{^_^}> 2
reinzelmann has joined #nixos
<ekleog> > builtins.fetchGit { url = https://github.com/NixOS/nixpkgs; }
<{^_^}> access to URI 'https://github.com/NixOS/nixpkgs' is forbidden in restricted mode
reinzelmann has quit [Remote host closed the connection]
<ekleog> > (import <nixpkgs> {}).fetchFromGitHub { owner = "NixOS"; repo = "nixpkgs"; rev = "ca2ba44cab4"; sha256 = "1w7xjidz1l5yjmhlplfx7kphmnpvqm67w99hd2m7kdixwdxq0zqh"; }
<{^_^}> "<derivation /nix/store/kab6pnc083qm6p18qhl8sf0rcmx3ancv-source.drv>"
<ekleog> hmmm
rct has left #nixos ["WeeChat 1.9.1"]
reinzelmann has joined #nixos
<ekleog> > (import <nixpkgs> {}).fetchgit { url = "https://github.com/NixOS/nixpkgs"; rev = "ca2ba44cab4"; sha256 = "1w7xjidz1l5yjmhlplfx7kphmnpvqm67w99hd2m7kdixwdxq0zqh"; }
<{^_^}> "<derivation /nix/store/hi4i0q5nii2s951rqy6w8k77c7v39hrc-nixpkgs-ca2ba44.drv>"
reinzelmann has quit [Remote host closed the connection]
goibhniu has joined #nixos
<elvishjerricco> ekleog: Try builtins.fetchGit with a rev argument.
<ekleog> > builtins.fetchGit { url = https://github.com/NixOS/nixpkgs; rev = "ca2ba44cab4"; sha256 = "1w7xjidz1l5yjmhlplfx7kphmnpvqm67w99hd2m7kdixwdxq0zqh"; }
<{^_^}> unsupported argument 'sha256' to 'fetchGit', at (string):192:82
<ekleog> > builtins.fetchGit { url = https://github.com/NixOS/nixpkgs; rev = "ca2ba44cab4"; }
<{^_^}> access to URI 'https://github.com/NixOS/nixpkgs' is forbidden in restricted mode
reinzelmann has joined #nixos
reinzelmann has quit [Remote host closed the connection]
<elvishjerricco> ekleog: Try a full rev hash maybe?
<ekleog> > builtins.fetchGit { url = https://github.com/NixOS/nixpkgs; rev = "e2516e8cf4f2afb5185337073607eb9e84a61d2d"; }
reinzelmann has joined #nixos
<{^_^}> access to URI 'https://github.com/NixOS/nixpkgs' is forbidden in restricted mode
<elvishjerricco> huh. Alrighty then
<ekleog> (it's not a valid hash fwiw, not more than the sha256 is correct)
<ekleog> I wonder if restricted mode could actually be used to build packages
<ekleog> like, intuitively no, but…
<elvishjerricco> ekleog: hydra operates in restricted mode
<ekleog> oh? at least that's nice :)
<elvishjerricco> So I guess we'll never see builtins.fetchGit in nixpkgs
<ekleog> so that means builtins.fetchGit cannot actually be used in nixpkgs
<ekleog> now, for the 1-click-install… :/
<ekleog> elvishjerricco: can I quote the following sentence in opening an issue? <elvishjerricco> `builtins.fetchGit` will just use your user's SSH creds, as `git` will be invoked as a subprocess of the nix program, i.e. not through the daemon or anything
<elvishjerricco> Sure. What's the issue? You don't think it should do this by default?
<ekleog> I think it should be hidden behind a flag :)
<elvishjerricco> Hm
<ekleog> (with a clear error message to say how to enable the flag)
<elvishjerricco> No, fetchGitPrivate is far worse IMO
<ekleog> well, disabling sandboxing is bad, but transparently disabling sandboxing without user action is worse imo
<elvishjerricco> It's not disabling sandboxing though. It's just making some files readable. Maybe it's not ideal, but it's not disabling sandboxing
<ekleog> (got a github handle you'd like me to cc?)
<elvishjerricco> @ElvishJerricco
<ekleog> well, ssh private keys are supposed to be private in my opinion :°
<elvishjerricco> The keys are not made readable to anyone
<ekleog> I agree that I'm taking the worse-case scenario, but I personally have my passwords in a private git repo :)
<ekleog> (encrypted, sure, but that's still one layer of security that disappears)
<elvishjerricco> So you're worried about malicious Nix code putting your private repos in your store?
<ekleog> some source code in private git repos can also be intellectual property
<ekleog> yup
<andi-> http://howoldis.herokuapp.com/ is a bit misleading... it says "nixos-unstable" was last updated 1 day ago.. When you click on the link you see "Released on 2018-09-06 11:52:22". IIRC thats >1 day ago :/
<elvishjerricco> ekleog: Hm... Well, you're going to have this problem anyway
<ekleog> esp. as nix advertises that 1-click install is safe :) (though I agree that the question of what we actually do with the installed files is another problem)
<elvishjerricco> ekleog: builtins.readFile lets malicious nix code read keys you've placed in `~.ssh`
<elvishjerricco> `~/.ssh`
<ekleog> hmm… afair it's run as nixbld, isn't it?
<elvishjerricco> No
<elvishjerricco> builtins.readFile is the eval process, which is your user
<ekleog> but.
<elvishjerricco> eval occurs directly in the command process you invoke. Builds are delegated through the daemon to other users
<ekleog> ok, so said issue will actually be “rename sandboxing to something else that doesn't imply that it's actually useful for security”
<elvishjerricco> sandboxing is useful for security. It sandboxes *the build.*
<elvishjerricco> Not the eval though
xok has quit [Ping timeout: 252 seconds]
<elvishjerricco> restricted or pure mode is how you sandbox the eval
<ekleog> hmm good point
graphene has quit [Remote host closed the connection]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
graphene has joined #nixos
<elvishjerricco> ekleog: Oh this is interesting:
fragamus has joined #nixos
<elvishjerricco> bash$ nix-repl --restrict-eval
<elvishjerricco> nix-repl> import "${toString ./.}"
<elvishjerricco> «lambda @ /Users/will/github/nixpkgs/pkgs/top-level/impure.nix:15:1»
<elvishjerricco> bash$ nix repl --pure-eval
<elvishjerricco> nix-repl> import "${toString ./.}"
<elvishjerricco> error: access to path '/Users/will/github/nixpkgs' is forbidden in restricted mode
<elvishjerricco> nix-repl> import ./.
<elvishjerricco> error: access to path '/Users/will/github/nixpkgs' is forbidden in restricted mode
<ekleog> > import "${toString ./.}"
<{^_^}> <LAMBDA>
<ekleog> sounds like {^_^} is using the wrong one
<ekleog> > toString ./.
<{^_^}> "/var/lib/nixbot/state/nixpkgs"
<elvishjerricco> ekleog: So restricted mode gives read access to everything your user has read access to. Pure mode does not
<ekleog> If set to true, the Nix evaluator will not allow access to any files outside of the Nix search path (as set via the NIX_PATH environment variable or the -I option), or to URIs outside of allowed-uri. The default is false.
<ekleog> ^ doesn't sound compatible with that
<elvishjerricco> > builtins.readDir ./.
<{^_^}> { ".dir-locals.el" = "regular"; ".editorconfig" = "regular"; ".git" = "directory"; ".gitattributes" = "regular"; ".github" = "directory"; ".gitignore" = "regular"; ".version" = "regular"; COPYING = "r...
<ekleog> actually with `nix repl` instead of `nix-repl` your example fails here
<elvishjerricco> ekleog: I used `nix repl`
<elvishjerricco> which example though?
<ekleog> the first one
<ekleog> (which you pasted as nix-repl, idk if that's just unrelated or not)
<elvishjerricco> That was a mistake. It works with `nix repl` for me
fyber has quit [Ping timeout: 276 seconds]
<elvishjerricco> Are you on 2.1? I'm on 2.0.4
<ekleog> are you not running it from inside your nix search path?
<ekleog> I'm on 2.0.4 too
<elvishjerricco> I am not in my search path
<ekleog> > import "${toString ./..}"
<{^_^}> access to path '/var/lib/nixbot/state' is forbidden in restricted mode
<elvishjerricco> I don't think...
<elvishjerricco> Oh wait
<elvishjerricco> hah
<elvishjerricco> Yea my bad
<elvishjerricco> I have `default=.` in my search path
<elvishjerricco> Makes it easier to use the new INSTALLABLE syntax
<elvishjerricco> but clearly opens up this hole
<ekleog> indeed, this makes restricted-eval much less useful :°
<elvishjerricco> Yea so restricted-eval just won't let you evaluate some local code
<elvishjerricco> But
<elvishjerricco> It's hard to imagine how it could allow that but disallow reading secrets your user can see
<ekleog> oh it looks like the one-click install section has been removed from the manual since I last checked
<elvishjerricco> What is this one-click install thing?
<ekleog> like, there's still a mention of it, but the section https://lethalman.blogspot.com/2014/08/nix-pill-9-automatic-runtime.html pointed to no longer exists
<ekleog> the “install from a .nix file downloaded from the web” thing
<{^_^}> [nixpkgs] @uri-canva opened pull request #46465 → bazel: add bazel_jdk10 variant → https://git.io/fAaaS
<elvishjerricco> ekleog: Hm. Looks like the feature may have been removed
<ekleog> there's still a 3-line mention of it :)
<ekleog> basically, add a mime handler for the .nix type
<ekleog> (in the nix/manual)
<elvishjerricco> > builtins.getEnv "NIX_PATH"
<{^_^}> ""
georges-duperon has quit [Ping timeout: 252 seconds]
<elvishjerricco> So why was I able to readDir earlier...
<elvishjerricco> > builtins.readDir ../.
<{^_^}> access to path '/var/lib/nixbot/state' is forbidden in restricted mode
<ekleog> > builtins.getEnv "PATH"
<elvishjerricco> > builtins.readDir ./.
<{^_^}> ""
<{^_^}> { ".dir-locals.el" = "regular"; ".editorconfig" = "regular"; ".git" = "directory"; ".gitattributes" = "regular"; ".github" = "directory"; ".gitignore" = "regular"; ".version" = "regular"; COPYING = "r...
<ekleog> it's just not returning anything for env vars in restricted mode
<ekleog> (or pure mode? idk)
<bkchr[m]> Hi, does anyone know how to use `replace` sections with Cargo/Rust in a nix file?
<ekleog> bkchr[m]: ISTR there is currently a carnix and/or cargo-vendor issue open on this topic
<ekleog> iirc one of the two can handle them, not the other
<elvishjerricco> ekleog: I guess it returns blank for env vars, and NIX_PATH must actually include ./.
<elvishjerricco> Cool. Sandboxing was achieved in that case :)
<ekleog> > toString ./.
<{^_^}> "/var/lib/nixbot/state/nixpkgs"
<ekleog> ^ it must include this, I guess .)
<bkchr[m]> ekleog: hmm. I just have the problem that cargo complains while building, because "--frozen" is used
<elvishjerricco> ekleog: So yea, just find a way to add the Nix code you trust to NIX_PATH, and turn restricted-eval on. You'll be safe :)
<ekleog> bkchr[m]: so I guess you're using cargo-vendor (ie. buildRustPackage), and carnix would be the one working
<ekleog> not sure 'bout that, though
<{^_^}> [nixpkgs] @vcunat pushed 3 commits to staging: https://git.io/fAaab
<{^_^}> [nixpkgs] @vcunat merged pull request #46259 → libdrm: 2.4.93 -> 2.4.94 → https://git.io/fAzc4
<{^_^}> [nixpkgs] @vcunat merged pull request #46345 → mesa: 18.1.7 -> 18.1.8 → https://git.io/fAgFh
<bkchr[m]> ekleog: hmm. carnix does not work. It just crashes at unwrapping some Option
<ekleog> :/
<ekleog> poke symphorien, if you eventually found a solution to this issue?
<ekleog> bkchr[m]: symphorien will likely not answer soon, but if you stick around… :)
<bkchr[m]> Okay :)
<ekleog> elvishjerricco andi-: opened https://github.com/NixOS/nix/issues/2411 :)
<{^_^}> nix#2411 (by Ekleog, 19 seconds ago, open): Add a scary warning to the docs that sandboxing doesn't help with untrusted .nix files
johanot has joined #nixos
nD5Xjz has quit [Ping timeout: 245 seconds]
revtintin has joined #nixos
philippD has joined #nixos
woffs has quit [Quit: Gateway shutdown]
xok has joined #nixos
benmachine has joined #nixos
<xok> I want to create some files, and run those files with docker-compose...
sb0 has joined #nixos
<xok> I have installed docker-compose already, how do I do this using the configuration files?..
<srhb> xok: Generally you would write scripts using nix that use docker-compose and your generated files, you needn't rely on an "installed" docker-compose
<srhb> xok: Look into pkgs.writeText and writeScript and friends.
woffs has joined #nixos
Boomerang has joined #nixos
<{^_^}> [nixpkgs] @edolstra merged pull request #46401 → [18.09] set min version back to 1.11 → https://git.io/fA2oC
<{^_^}> [nixpkgs] @edolstra pushed 6 commits to release-18.09: https://git.io/fAawT
<xok> srhb: that's awesome, but where do I find docs for it?..
<srhb> xok: Generally you'll have to look at the source, which has documentation of varying quality
<xok> can you send me an example?..
<srhb> xok: pkgs/builds-support/trivial-builders.nix has writeScript and writeText for instance :)
nD5Xjz has joined #nixos
<xok> no, I already use those...
<xok> I am familiar with them...
<xok> and this crap is what I wrote:
<xok> :D
<xok> can you help with optimizing?..
<xok> I don't want services.nginx at all...
<xok> but I don't know how to call variables without using that services thing...
<srhb> xok: Then I guess you want to create a systemd service that does various startup/shutdown stuff instead
Tucky has joined #nixos
<xok> yeah, sounds something interesting...
<xok> you were mentioning we should use composer commands instead of doing everything manually with a docker-compose...
<xok> how do we do that?..
<srhb> xok: No, I just meant there's no need to "install" docker-compose, just make your script use ${pkgs.docker-compose}/bin/docker-compose directly
rprije has quit [Remote host closed the connection]
<srhb> Then your script will transitively ensure that docker-compose is present.
rprije has joined #nixos
<srhb> Or wherever the package is located...
palo_ has joined #nixos
palo_ has quit [Changing host]
palo_ has joined #nixos
<srhb> ah, pkgs.docker_compose
<xok> ok, makes sense...
<xok> Thank you...
<srhb> Then in the minimal case, your systemd service is something like... systemd.services.xok = { script = pkgs.writeScript ... ; }
__monty__ has joined #nixos
<srhb> Of course, probably way more fleshed out than that, but you can explore the various settings on the NixOS options page or in the manual.
<tobiasBora> Hello,
palo has quit [Ping timeout: 245 seconds]
<ekleog> Hello !
<ekleog> Want to see my [censored]?
<ekleog> (sorry got distracted by the spams :°)
<tobiasBora> I'm trying to mix the great code that clever gave me last week to create a minimal CD
<tobiasBora> with the KDE CD. Unfortunately, I can't just import it because there are some options that can be define only once.
<tobiasBora> So I tried to manually copy the KDE conf in my file:
<tobiasBora> unfortunately, at some point this script uses "mkForce false;"
<tobiasBora> and I've an error message "error: undefined variable 'mkForce' at /tmp/nix/multi-boot-helper.nix:52:32
<tobiasBora> I'm thinking that this error may be due to a missing package, like "with lib;"
<srhb> tobiasBora: Yes
<tobiasBora> unfortunately, I'm a big noob in nix syntax,
<srhb> tobiasBora: Your module should probably be: { lib, ... }: { ... }
<srhb> tobiasBora: When your module is not a function, it is implicitly assumed to be just the "config" attribute
<tobiasBora> srhb: I tried to replace module = {...} with module = {lib,...} : { ...}
<tobiasBora> but I still have this error
<srhb> tobiasBora: Well, you need to refer to lib.mkForce then
nicko_h has quit [Ping timeout: 240 seconds]
<tobiasBora> oh
<tobiasBora> srhb: thanks, it works!
<srhb> tobiasBora: Sure thing.
<tobiasBora> why can't I do a "with lib;" inside the module definition?
<srhb> tobiasBora: You can.
<srhb> tobiasBora: { lib, ... }: with lib; { ... }
<tobiasBora> oh ok, I tried to define it inside the brackets
<srhb> That would be a syntax error, right.
<tobiasBora> srhb: ok good, it works. Now, new error: error: attribute 'system' missing
<tobiasBora> (sorry, I'm very bad, nix syntax looks also a bit strange to me)
<tobiasBora> and googling is not really helpful
<srhb> tobiasBora: Well, it sounds like you are referring to foo.system somewhere, and foo does not contain a "system" attribute.
<srhb> The line number from the trace might help you find it.
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Izorkin has quit [Ping timeout: 252 seconds]
<srhb> tobiasBora: At a guess, it's because you also have not brough config in scope from the module function
<srhb> tobiasBora: You probably want module = { lib, config, ... }: ...
nicko_h has joined #nixos
hamishmack has joined #nixos
<srhb> I'm a little surprised that didn't yield "undefined variable 'config'" though
johanot has quit [Ping timeout: 250 seconds]
thc202 has joined #nixos
<tobiasBora> srhb: indeed, thank you very much!
nicko_h has quit [Ping timeout: 252 seconds]
<srhb> tobiasBora: Sure thing.
graphene has quit [Remote host closed the connection]
jasongrossman has joined #nixos
graphene has joined #nixos
kiloreux has quit [Ping timeout: 245 seconds]
<ekleog> hmm… how would you go to get a gdb with a custom targetPlatform? before there was a targetPlatform accepted by the gdb derivation, but it looks like there is no longer
<ekleog> localSystem and crossSystem at nixpkgs-scale don't help afaiu, because here I specifically want build=host=localSystem and target=crossSystem, while they only allow build=localSystem and host=target=crossSystem
johanot has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nixos
<ekleog> and it looks like passing --arg targetPlatform [same stuff as for crossSystem] doesn't help
johanot has quit [Client Quit]
johanot has joined #nixos
hamishmack has quit [Client Quit]
hamishmack has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ekleog> hmm even doing that doesn't help :/ nix-build -I nixpkgs=channel:nixos-unstable -E '(import <nixpkgs> { overlays = [(self: super: { targetPlatform = (import <nixpkgs/lib>).systems.platforms.riscv-multiplatform "32";})]; }).gdb'
kiloreux has joined #nixos
<{^_^}> [nix] @dingxiangfei2009 opened pull request #2412 → nix repl respects --arg and --argstr → https://git.io/fAaKK
Phillemann has joined #nixos
<Phillemann> Did anything change recently wrt. either FHS oder /run/user?
<Phillemann> I tried to get an Android FHS environment using the nix file in the Wiki, but it tells me it cannot find /run/user/1000/env-vars.
<Phillemann> /run/user is, indeed, empty
__Sander__ has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nixos
__Sander__ has quit [Ping timeout: 244 seconds]
<{^_^}> [nix] @edolstra merged pull request #2412 → nix repl respects --arg and --argstr → https://git.io/fAaKK
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/fAaiG
<{^_^}> [hydra] @edolstra merged pull request #595 → Fix darcs input to use darcs-specific SCM cache dir. → https://git.io/fAaut
<{^_^}> [hydra] @edolstra pushed 2 commits to master: https://git.io/fAain
palo_ is now known as palo
sigmundv has joined #nixos
__Sander__ has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
humanoyd has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
civodul has quit [Read error: Connection reset by peer]
<colemickens> how do I make a derivation that is mostly just extracting a tar.xz and moving a couple files around?
civodul has joined #nixos
<srhb> colemickens: Just mkDerivation with a src and restrict the phases variable to do very little but copy things into the new location.
<srhb> eg. phases = [ "unpackPhase" "installPhase" ]; and just do the magic in installPhase, for instance.
hamishmack has joined #nixos
<colemickens> thanks! I had sorta just figured that out from a lucky search and then nixpkgs manual :)
<colemickens> though, I'm getting a strange error that smells like a bad user error...
<srhb> Oh?
<colemickens> ah, looks like my understanding of string literals in nix is off
<colemickens> s/'/"/ fixed up the phases line...
<srhb> iirc the phases just end up as a bash variable space separated.. phases = "unpackPhase installPhase"; would do the same thing
<srhb> (I think.)
jasongrossman has quit [Remote host closed the connection]
ikwildrpepper has joined #nixos
<{^_^}> [nixpkgs] @AmineChikhaoui opened pull request #46468 → ZHF 18.09: fix crypsetup build with python enabled. → https://git.io/fAa1u
<tobiasBora> Hum...
<tobiasBora> I'm building this .nix: http://paste.debian.net/1041631
<tobiasBora> that is basically a copy paste of KDE cd + some additional clever's stuff
<tobiasBora> However, it's now compiling tons of stuff
<tobiasBora> if I'm looking carefully, I can see some references to gstreamer, build-gtk...
<tobiasBora> and I would like to avoid to recompile the whole KDE infrastructure...
<tobiasBora> any idea what's going wrong?
<tobiasBora> (yes, for sure gtk has been re-built)
<{^_^}> [nixpkgs] @Ma27 opened pull request #46469 → pythonmagick: fix build → https://git.io/fAaDZ
<tobiasBora> now it's libdbus
<tobiasBora> menu
realrokka has joined #nixos
<goibhniu> hi tobiasBora, what channel are you using?
<tobiasBora> goibhniu: 18.03
<tobiasBora> but I'm thinking that I may forgot to run channel --update when I setup the channel
<tobiasBora> let me try to run channel --update and try again
<srhb> tobiasBora: nix eval nixpkgs.lib.version might also give a clue.
<realrokka> whats does one have to google for, if he wants to change the gcc flags used by nix-daemon? e.g. reducing compile time with -j or setting march=
<tobiasBora> goibhniu: isn't unstable supposed to have also the binary availables?
garbas has joined #nixos
<srhb> realrokka: You mean when nix-daemon builds things, or the build of nix-daemon itself?
<goibhniu> tobiasBora: yep
<realrokka> srhb: when nix-daemon builds things
<symphorien> realrokka: -march is explicitelty forbidden by stdenv
<symphorien> for -j, look at /etc/nix/nix.conf, there are options build-jobs and cores
<srhb> realrokka: nix option cores controls the number in -jN for derivations that have parallel building enabled.
orivej has joined #nixos
<tobiasBora> srhb: I got "error: attribute version in selection path nixpkgs.lib.version not found"
<srhb> tobiasBora: Ah, I guess nixpkgs itself is not on your NIX_PATH
<realrokka> thank u very much :)
<goibhniu> tobiasBora: did the channel update fix it?
<tobiasBora> srhb: hum, it is: "echo $NIX_PATH => nixpkgs=/home/xubuntu/.nix-defexpr/channel/nixpkgs"
<tobiasBora> goibhniu: I'm trying
<srhb> tobiasBora: That's funny.. Does that symlink actually contain a nixpkgs checkout?
<{^_^}> [nixpkgs] @jethrokuan opened pull request #46471 → et-book: init at 1.0 → https://git.io/fAayY
<tobiasBora> srhb: when I ls this folder, I have a default.nix, COPYING, nixpkgs...
<srhb> tobiasBora: That sounds right. Hum.
<tobiasBora> srhb: there is a file "versions" (with an s)
<tobiasBora> but the result is not really relevant when I use your command with "versions"
<tobiasBora> I get <LAMBDA> in all fields like major, majorMinor, minor, patch
<srhb> versions is quite different from version
<srhb> But I guess version doesn't even exist in 18.03 then
<srhb> Oh well
<sphalerite> srhb: yep
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite> tobiasBora: for 18.03, nix eval nixpkgs.lib.nixpkgsVersion should work
<srhb> sphalerite: Ah, thanks :)
<tobiasBora> sphalerite: thanks. I get something like 18.03.133192.45f52f765cd
<tobiasBora> also, 18.03 is not supposed to be the lastest stable?
<srhb> Yes.
<sphalerite> yes it is
<sphalerite> 18.09 is still prerelease
<tobiasBora> ok thanks
hamishmack has joined #nixos
nbardiuk has joined #nixos
<sphalerite> tobiasBora: I'll try building it myself to see if I can reproduce
hiberno has quit [Quit: WeeChat 1.6]
<benmachine> oops, I didn't realize 18.09 was pre-release before upgrading to it -- was it October that it was going to graduate?
<tobiasBora> goibhniu: it compiles new stuff again... (gnupg for now)
<tobiasBora> sphalerite: ok thanks
<sphalerite> benmachine: no date set for it yet
<benmachine> (the manual just says "go to https://nixos.org/channels to see what's available" and it's in there...)
<{^_^}> [nixpkgs] @xeji merged pull request #46454 → ranger: 1.9.1 -> 1.9.2 → https://git.io/fAacq
<{^_^}> [nixpkgs] @xeji pushed commit from @toonn to master « ranger: 1.9.1 -> 1.9.2 (#46454) »: https://git.io/fAaSp
<goibhniu> tobiasBora: what command do you use to build it?
<tobiasBora> goibhniu: nix-buid myfile.nix
<goibhniu> what does `nix-info` say?
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
<sphalerite> tobiasBora: yep I get the same thing with the rebuilding
<srhb> benmachine: Where does the manual say that? We should probably fix that.
<{^_^}> [nixpkgs] @xeji merged pull request #46468 → ZHF 18.09: fix crypsetup build with python enabled. → https://git.io/fAa1u
<{^_^}> [nixpkgs] @xeji pushed commit from @AmineChikhaoui to master « ZHF 18.09: fix crypsetup build with python enabled. (#46468) »: https://git.io/fAaHV
<srhb> benmachine: Is it the note in chapter 4: Upgrading NixOS?
<sphalerite> tobiasBora: AFAICT it's a change in d-bus that causes everything to get rebuilt
<{^_^}> [nixpkgs] @xeji pushed commit from @AmineChikhaoui to release-18.09 « ZHF 18.09: fix crypsetup build with python enabled. (#46468) »: https://git.io/fAaH7
<tobiasBora> goibhniu: https://paste.debian.net/1041637/
<sphalerite> tobiasBora: Found it!
<sphalerite> tobiasBora: use netboot-base.nix rather than netboot-minimal.nix
<tobiasBora> sphalerite: Hum...
<sphalerite> tobiasBora: netboot-minimal.nix pulls in profiles/minimal.nix which sets environment.noXlibs to true
<sphalerite> amongst other things you probably don't want
<tobiasBora> sphalerite: Ohhh good job
<{^_^}> [nixpkgs] @timokau merged pull request #46368 → pythonPackages.mahotas: fix build, move expression → https://git.io/fA2cv
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fAaQM
<tobiasBora> sphalerite: how can you debug such a thing?
<sphalerite> tobiasBora: nix-store -qR $(nix-instantiate test.nix) to find the drvs for all the deps
<sphalerite> tobiasBora: compared the gtk2 one with the normal gtk2 using nix-diff /nix/store/...-gtk2.x.y.z.drv $(nix-instantiate '<nixpkgs>' -A gnome2.gtk)
<sphalerite> found that various X libs were missing, which led me to suspect that noXlibs was set
__Sander__ has quit [Ping timeout: 252 seconds]
<sphalerite> since I couldn't find it in test.nix itself, that only left netboot-minimal.nix
Guanin_ has joined #nixos
<tobiasBora> sphalerite: ok thankl you very much!
Dedalo has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #46469 → pythonmagick: fix build → https://git.io/fAaDZ
<{^_^}> [nixpkgs] @xeji pushed commit from @Ma27 to master « pythonmagick: fix build (#46469) »: https://git.io/fAa7e
__Sander__ has joined #nixos
<{^_^}> [nixpkgs] @xeji pushed commit from @Ma27 to release-18.09 « pythonmagick: fix build (#46469) »: https://git.io/fAa7U
<{^_^}> [nixpkgs] @srhb opened pull request #46473 → nixos/doc: Add stable pre-release warning → https://git.io/fAa7W
ryantrinkle has quit [Remote host closed the connection]
mayhewluke has quit [Ping timeout: 246 seconds]
<srhb> benmachine: ^ I hope that helps
mayhewluke has joined #nixos
<benmachine> srhb: sounds great, thanks :)
<benmachine> srhb: sorry I didn't notice your other messages
<benmachine> but yes, that's the place I was talking about
<srhb> Great. :)
<{^_^}> [nixops] @AmineChikhaoui reopened pull request #972 → DO NOT MERGE: Nix 2 out of memory workaround → https://git.io/flbUL
nbardiuk has quit [Quit: Lost terminal]
tzemanovic has joined #nixos
<xok> srhb: can you help with creating new systemd service?..
Acou_Bass has quit [Ping timeout: 272 seconds]
<sphalerite> xok: you said yesterday that you're a smart guy. `man systemd.service` and `man configuration.nix` (search for systemd.services in it) should get you sorted in that case
<xok> sphalerite: cool, thank you...
<{^_^}> [nixpkgs] @timokau merged pull request #46444 → nano: 2.9.8 -> 3.0 → https://git.io/fAasI
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fAadz
<symphorien> xok: also grepping into nixpkgs should give you countless examples
nicko_h has joined #nixos
jasongrossman has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
<sphalerite> __Sander__: your experimental android stuff might be nice to add to NUR, any opinion on that?
<Taneb> What's the newScope thing in nixpkgs?
lostman has joined #nixos
orivej has quit [Ping timeout: 264 seconds]
<lostman> I need to pass cabal flags to `callCabal2nix`. The flags change dependencies. There's some option to `appendConfigureFlags` but that is too late; the dependencies have already been computed by then. What is one to do in that case? `haskellSrc2nix` accepts `extraCabal2nixOptions` but `callCabal2nix` which calls it doesn't pass any of such parameters down
<lostman> any ideas how to do this without rewriting a bunch of functions?
<lostman> all I need to do is to pass `-f enableA` and then add `A` to `buildInputs`
nD5Xjz has quit [Ping timeout: 264 seconds]
<Taneb> lostman: I've been having similar problems :(
<srhb> lostman: I'd patch the cabal file before using callCabal2nix.
<lostman> srhb: patch it to what?
<srhb> To include the things you needed.
<lostman> srhb: ugh, that sounds horrible. I'd rather write my own version of `callCabal2nix`. The functionality is all there it just doesn't pass any config flags down
* srhb nods
<lostman> the only "solution" without rewriting the library code I came up with is to redefine `haskellSrc2nix` for that particular package to hard-code the flag
<lostman> so when `callCabal2nix` is called by that package it gets the flag it needs
carlosdagos has quit [Quit: Connection closed for inactivity]
<sphalerite> Taneb: it's what enables callPackage
<sphalerite> Taneb: let callPackage = newScope (pkgs // self); self = { foo = callPackage ./foo.nix {}; bar = callPackage ./bar.nix {}; }; in self
<sphalerite> Taneb: then if foo.nix has bar as one of its args, it well get filled in from that set
<Taneb> sphalerite: thanks, I think I've asked the wrong question
<{^_^}> [nixpkgs] @domenkozar opened pull request #46474 → datadog-agent: 6.1.4 -> 6.4.2 → https://git.io/fAabo
<Taneb> The right question being, I've spotted pkgs/top-level/haskell-packages.nix has a "packageOverrides", is there a way I can override that from the default self: super: {}
c15ade4 has joined #nixos
<sphalerite> Taneb: actually I think you just want (haskellPackage.override {packageOverrides = self: super: {...};})
<sphalerite> s/haskellPackage/haskellPackages/
<Taneb> sphalerite: I'm trying to update some old nix code that overrides all the haskell package sets with the same override
<Taneb> But it's not the end of the world if I can't do that nicely, what you said there is what I've currently got
iyzsong has joined #nixos
<srhb> lostman: In case you didn't notice, haskellSrc2nix is also exposed in haskellPackages
<{^_^}> [nixpkgs] @Ma27 opened pull request #46475 → openbsm: fix linux build → https://git.io/fAaNc
<__Sander__> sphalerite: that is possible, but currently the android stuff should not considered stable, or finished
<__Sander__> also, it is supposed to be reintegrated into Nixpkgs
<sphalerite> __Sander__: NUR seems ideal for that sort of thing, to make it easily accessible before it's ready for nixpkgs :)
klntsky has quit [Remote host closed the connection]
klntsky has joined #nixos
<sphalerite> __Sander__: also any particular reason you reimport nixpkgs for i686 here https://github.com/svanderburg/nix-androidenvtests/blob/nextgen/androidenv/default.nix rather than using pkgsi686Linux?
<Taneb> Does anyone know of any code formatters or linters or style checkers or similar for nix files?
<__Sander__> sphalerite: no
<srhb> lostman: So if you can live with haskellPackages.callPackage (haskellPackages.haskellSrc2nix { ...; extraCabal2nixOptions = "-f thing"; }) -- that seems rather painless to me.
<lostman> srhb: how would I use that?
<lostman> let's say I want to write `myPackage = callCabal2nix ... { };`. What's the cleanest way of passing down the flag?
<lostman> what I came up with is rather convoluted
simukis has joined #nixos
<srhb> lostman: Not using callCabal2nix, but using callPackage and haskellSrc2nix directly
<srhb> You do have to do your own source filtering then, but other than that there's essentially nothing to it
<srhb> Since you can already callPackage the result of haskellSrc2nix
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__lawlesseel__ has quit [Remote host closed the connection]
<lostman> let me try that out and see
nD5Xjz has joined #nixos
<srhb> lostman: I think passing extraCabal2nix options through callCabal2nix should definitely at least have a ticket though, as it's much nicer to reuse it :)
<Taneb> I was about to suggest we make a github issue for this
<srhb> Yeah, it's obviously something we want :)
<Taneb> Shall I make the issue?
<lostman> there seems to be two kinds of functions in nix: with positional args and with sets as args. wouldn't this require rewriting this to set?
<srhb> Taneb: Yes please :)
<lostman> otherwise there's no option to pass optionals, right?
<srhb> lostman: I think that would be preferable, yes.
<srhb> lostman: Right.
<srhb> I'd suggest implementing that as callCabal2nix' and make callCabal2nix a compat wrapper of that.
<lostman> or is there some magic way to override optional some levels down? `callPackage` works 1 layer, right?
nicko_h has quit [Ping timeout: 252 seconds]
nD5Xjz has quit [Ping timeout: 272 seconds]
<{^_^}> #46477 (by Taneb, 1 minute ago, open): haskellPackages.callCabal2nix has no way to specify cabal2nix flags
<srhb> lostman: This is the quick and dirty version: name: extraCabal2nixOptions: (pkgs.haskellPackages.callPackage (pkgs.haskellPackages.haskellSrc2nix rec { inherit name extraCabal2nixOptions; src = ./. + "/${name}.cabal"; }) {}).overrideAttrs (oa: { src = pkgs.lib.cleanSource ./.; });
<srhb> Taneb: Thanks!
<sphalerite> Taneb: hnix can format nix code iirc
<aminechikhaoui> I have this line in the buildPhase of a derivation "make check-ws${prefix:+-aws--}-tpch-$uuid", is there anyway to make the ${prefix:+-aws--} part evaluated as bash instead of Nix ?
arahael has quit [Ping timeout: 245 seconds]
astrofog has joined #nixos
jasongrossman has quit [Ping timeout: 252 seconds]
<sphalerite> ,escape'' aminechikhaoui
<{^_^}> aminechikhaoui: '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
<sphalerite> aminechikhaoui: i.e. put a '' before the ${
astrofog has quit [Remote host closed the connection]
astrofog has joined #nixos
<{^_^}> [nixpkgs] @arianvp opened pull request #46479 → safe-money: Fix dependencies for safe-money-* → https://git.io/fAaxa
<aminechikhaoui> sphalerite: nice, thanks
arahael has joined #nixos
jasongrossman has joined #nixos
dkibi has joined #nixos
<realrokka> howto force rebuild a package? I build opencv3 before I installed gtk ... I used a extra .nix file like the manual suggested for python modules. how can I trigger an recompile of the package?
<{^_^}> [nixpkgs] @shlevy pushed 5 commits to release-18.09: https://git.io/fAapW
<{^_^}> [nixpkgs] @shlevy merged pull request #46163 → Backport haskell backpack and profiling fixes → https://git.io/fAuCh
vmandela has joined #nixos
<srhb> realrokka: --check, but usually it's not what you want to do. Why are you trying to rebuild it?
<srhb> realrokka: If nix says no rebuild is needed, chances are no rebuild is needed.
nD5Xjz has joined #nixos
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fAapj
<{^_^}> [nixpkgs] @timokau merged pull request #46475 → openbsm: fix linux build → https://git.io/fAaNc
<srhb> realrokka: (having things installed or not should never affect the build)
arahael has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @timokau merged pull request #46455 → wal-g: 0.1.10 -> 0.1.12 → https://git.io/fAacy
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fAaje
<realrokka> to clearify: i meant recompile, the gtk lib was not installed, so opencv was not linked against it, e.g: it compiled without support for gtk windows
<srhb> realrokka: Builds do not depend on "installed" libs. They pull them in if they are correctly specified as dependencies.
<srhb> realrokka: And when the dependencies change, the package will rebuild without specifying --check (in fact, it will fail with --check)
<realrokka> so I have to create an overlay with the deps specified?
betaboon has joined #nixos
<srhb> realrokka: Yep. :)
<realrokka> thank you :) again (◡‿◡✿)
<srhb> You're welcome.
<srhb> realrokka: It should be something like: self: super: { opencv = super.opencv.override { enableGtk2 = true; }; }
betaboon has quit [Client Quit]
orivej has joined #nixos
betaboon has joined #nixos
iyzsong has quit [Remote host closed the connection]
iyzsong has joined #nixos
__Sander__ has quit [Ping timeout: 240 seconds]
__Sander__ has joined #nixos
jmc has joined #nixos
nD5Xjz has quit [Ping timeout: 264 seconds]
<Taneb> As cocreature pointed out on Git, there's two PRs already solving the callCabal2nix issue. Of the two, I think I prefer https://github.com/NixOS/nixpkgs/pull/44424
<{^_^}> #44424 (by dhess, 5 weeks ago, open): haskell-modules: add callCabal2nixWithOptions.
<srhb> Taneb: Thanks for the heads-up. I've added my vote for callCabal2nixWithOptions
<srhb> (Which I prefer solely because it requires the least changes everywhere)
<{^_^}> [nixpkgs] @Mic92 merged pull request #46479 → safe-money: Fix dependencies for safe-money-* → https://git.io/fAaxa
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAVey
vmandela has quit [Quit: Leaving]
rprije has quit [Ping timeout: 252 seconds]
rauno has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @Mic92 pushed commit from @arianvp to release-18.09 « safe-money: Fix dependencies for safe-money-* »: https://git.io/fAVeF
<{^_^}> [nixpkgs] @lheckemann opened pull request #46481 → earlyoom: fix version number → https://git.io/fAVeN
<{^_^}> [nixpkgs] @Mic92 merged pull request #46481 → earlyoom: fix version number → https://git.io/fAVeN
<{^_^}> [nixpkgs] @Mic92 pushed commit from @lheckemann to master « earlyoom: fix version number (#46481) »: https://git.io/fAVvP
xok has quit [Quit: Leaving.]
xok has joined #nixos
<sphalerite> thanks Mic92_ !
<{^_^}> [nixpkgs] @Mic92 pushed commit from @lheckemann to release-18.09 « earlyoom: fix version number (#46481) »: https://git.io/fAVv7
<xok> jjj
silver has joined #nixos
nD5Xjz has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #46450 → spidermonkey_52: don't use jemalloc w/musl → https://git.io/fAanr
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAVfM
CapsLock has joined #nixos
<CapsLock> hi everyone ; I'm trying to install a python3 package (pyllow) ; I use a virtualenv inside a nix-shell (nix-shell -p zlib) ; and it seems to not find zlib library : "__main__.RequiredDependencyException: zlib" ; what am I doing wrong ? :)
<CapsLock> Pillow* sorry
<infinisil> CapsLock: Random guess: Add pkgconfig to the packages
<tilpner> There is python3Packages.pillow
tzemanovic has quit [Remote host closed the connection]
<infinisil> Ah, yes, much better ^^
<CapsLock> thanks infinisil it worked <3
sbdchd has joined #nixos
<CapsLock> tilpner: I expected to use requirements.txt of my project which is a more standard way to work with non-nixos users (besides converting them to nixos :p)
sc_ has joined #nixos
<tilpner> You can use python3Packages.pillow on any system with Nix installed, not just NixOS
<sphalerite> CapsLock: pypi2nix may also be relevant. It converts a requirements.txt into a nix expression
<tilpner> (Well, Linux and Darwin, according to meta)
<CapsLock> sphalerite: sphalerite good to know, thank you !
<CapsLock> tilpner: yep, but, I guess, we are not sure in that case we are working on same version of pillow
sbdchd has quit [Ping timeout: 244 seconds]
tzemanovic has joined #nixos
nD5Xjz has quit [Ping timeout: 240 seconds]
jmc has quit [Quit: WeeChat 2.0]
vmandela has joined #nixos
fragamus has joined #nixos
Dedalo has joined #nixos
tzemanovic has quit [Ping timeout: 246 seconds]
tzemanovic has joined #nixos
<{^_^}> [hydra] @cleverca22 opened pull request #597 → [WIP-do-not-merge] applying various patches and fixing various things → https://git.io/fAVJ5
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<{^_^}> [nixpkgs] @nh2 opened pull request #46482 → WIP: haskell: Make linkWithGold use gold also for compiling Setup.hs → https://git.io/fAVUO
<{^_^}> [nixpkgs] @vcunat pushed 0 commits to haskell-updates-18.09: https://git.io/fAVUw
<nbp> Is there a way to send a private message to someone on github?
<tilpner> Nope. They may have contact info available on their profile, and check stdenv.lib.maintainers
<nbp> This is not a maintainer, a user opened an issue and pasted something which definitely look like a real password.
<nbp> I editted the post, to replace it.
<nbp> but a lot of persons probably received it by email.
<sphalerite> nbp: I think github keeps old versions of edited things now anyway?
<nbp> That's even worse :/
<qyliss^work> It does, if you click on where it says "edited"
<nbp> sphalerite: apparently you can delete it from the history :)
ekleog has quit [Quit: back soon]
<sphalerite> oh neat
<nbp> but it is still in 140 mailboxes.
<cocreature> maybe someone was just really creativ in coming up with a fake password :)
nD5Xjz has joined #nixos
<srhb> nbp: I think even with the email hidden you can send to them via the github email address feature?
<nbp> srhb: What is this feature?
<srhb> nbp: Something like.. ID+username@users.noreply.github.com but come to think of it, I don't know how to get another user's ID.
<xok> how do I get an IP of newly deployed machine?..
ekleog has joined #nixos
<xok> I mean from the script...
__Sander__ has quit [Ping timeout: 272 seconds]
<tilpner> srhb - If yours starts with MDQ6V, you can get it from the API
<srhb> tilpner: It does not. :/
<tilpner> Hold on, testing
<nbp> srhb: is the ID a numerical thing?
<srhb> nbp: Yep, looks like six digits for me.
__Sander__ has joined #nixos
<nbp> srhb: I found a 7 digit one.
<nbp> I will try to send my-self a message
<srhb> Ah, might just be a newer account
<srhb> I'm not sure how this feature works at all honestly
<srhb> Maybe it's just an identity thing
<srhb> Yeah, it does look like you can't send to it. meh..
<infinisil> Ah, #46401 merged by eelco himself :o
<{^_^}> https://github.com/NixOS/nixpkgs/pull/46401 (by matthewbauer, 1 day ago, merged): [18.09] set min version back to 1.11
<barrucadu> You can @ their username in a comment, which will at least send them a notification. But a comment saying "Hey @foo, you posted a real password" would be visible to everyone else too...
<tilpner> curl -s https://api.github.com/users/some_username/events/public | grep email | uniq
<infinisil> tilpner: Heh, neat
sc_ has quit [Quit: Lost terminal]
<infinisil> tilpner: Although, try it with Mic92
<tilpner> Not all of those necessarily belong to some_username though
<infinisil> Yeah
<infinisil> And needs s/uniq/sort -u
<tilpner> Why?
<tilpner> Oh, right
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FireFly> ooh, TIL about sort -u... no need to "| sort | uniq"
<sphalerite> Random wish: that nix's s3 support someday becomes a plugin of some sort, removing aws-sdk-cpp from nix's build-time closure
<samueldr> sphalerite: with nix 2.0, nix supports plugins, maybe an interesting way to strain that feature?
<sphalerite> samueldr: yeah that would be cool
<nbp> srhb: sphalerite: I put the information in the "Concat Github" form, hopping that they would forward the message.
<sphalerite> "In particular, these plugins may construct static instances of RegisterPrimOp to add new primops or constants to the expression language, RegisterStoreImplementation to add new store implementations, …"
<sphalerite> nbp: sounds good
<sphalerite> samueldr: indeed!
sc_ has joined #nixos
spear2 has quit [Remote host closed the connection]
arahael has joined #nixos
spear2 has joined #nixos
<das_j> How can I add a font to a chrootenv? targetPkgs doesn't seem to work
<Myrl-saki> Why's the latest commit in nixpkgs-channels/nixos-18.9 5 days ago?
<srhb> Myrl-saki: Because the tests are blocked
oscarvarto has joined #nixos
<Myrl-saki> Thanks.
<infinisil> Did anybody undo the commit yet?
<sphalerite> das_j: probably because /usr/share/fonts doens't end up on the font search path
<srhb> infinisil: Not afaik
* infinisil checks master
<srhb> (Don't have commit bit at this moment)
iyzsong has quit [Quit: ZNC 1.7.0 - https://znc.in]
<das_j> sphalerite: Do you think it's enough to rebuild the font cache inside the chroot?
mayhewluke has quit [Ping timeout: 240 seconds]
<sphalerite> das_j: no, you need to add it to the search path somehow, hang on
mayhewluke has joined #nixos
<sphalerite> das_j: ok I think I've got it working. Try putting at ~/.config/fontconfig/fonts.conf and see if it workrs then
<sphalerite> oops missed the URL with the contetns of the file: http://sprunge.us/Qyfl7r
<das_j> sphalerite: Inside the chroot?
<sphalerite> das_j: inside the chroot and outside the chroot, ~ is the same thing :)
<das_j> Oohh
<sphalerite> so it doesn't matter on which side you create it
obadz has quit [Ping timeout: 240 seconds]
xenog has joined #nixos
fendor has joined #nixos
<das_j> sphalerite: Well, that broke GTA V completely :O
<das_j> sphalerite: Is there a way to start a shell inside the chroot?
koserge has joined #nixos
obadz has joined #nixos
<sphalerite> das_j: yes, set runScript to bash
koserge is now known as _deepfire
vaibhavsagar has joined #nixos
humanoyd has quit [Quit: WeeChat 2.2]
<das_j> sphalerite: Oh my! It works now!
<das_j> All that hassle just to fill out a ReCaptcha in social club <3
<sphalerite> das_j: lol
xenog has quit [Quit: Leaving]
reinzelmann has quit [Quit: Leaving]
Kelppo has joined #nixos
<das_j> This is really incredible. I'm running GTA V natively on Linux
<das_j> Valve is truly an awesome company
fragamus has joined #nixos
tzemanovic has quit [Remote host closed the connection]
oscarvarto has quit [Read error: Connection reset by peer]
oscarvarto has joined #nixos
phreedom has joined #nixos
revtintin has quit [Quit: WeeChat 1.9.1]
<Yaniel> natively or with the proton thingie
jperras has joined #nixos
phreedom__ has quit [Ping timeout: 256 seconds]
rauno has joined #nixos
IRCsum has quit [Remote host closed the connection]
__Sander__ has quit [Ping timeout: 272 seconds]
IRCsum has joined #nixos
erasmas has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #46001 → hcloud: Add autocomplete support for bash and zsh → https://git.io/fA4tB
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAVYV
<{^_^}> [nixpkgs] @bkchr opened pull request #46483 → kde-frameworks: 5.49 -> 5.50 → https://git.io/fAVYX
<{^_^}> [nixpkgs] @Mic92 pushed commit from @uskudnik to release-18.09 « hcloud: Add autocomplete support for bash and zsh »: https://git.io/fAVYM
<{^_^}> [nixpkgs] @romildo opened pull request #46484 → lxqt: move contents of base, core and optional to parent directory → https://git.io/fAVYd
jperras has quit [Ping timeout: 245 seconds]
jperras has joined #nixos
<{^_^}> [nixpkgs] @zimbatm opened pull request #46485 → govendor: init at 1.0.9 → https://git.io/fAVOB
sbdchd has joined #nixos
<nbp> srhb: For what is worth, the email that I sent to my-self did not replied telling me that the email address did not exists, but I have not received it either :/
<srhb> nbp: Yeah, that's what I discovered as well, there's not even an MX record for the domain. :P So clearly just for identification purposes.
__Sander__ has joined #nixos
jperras has quit [Ping timeout: 264 seconds]
simukis has quit [Quit: simukis]
<{^_^}> [nixpkgs] @mkaito closed pull request #46120 → buildkite-agent: rename option meta-data to tags → https://git.io/fA0Fl
fendor has quit [Ping timeout: 240 seconds]
tzemanovic has joined #nixos
<Taneb> I want to try and contribute to nixpkgs
<srhb> Taneb++
<{^_^}> Taneb's karma got increased to 1
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dbmikus has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
astrofog has quit [Remote host closed the connection]
<Taneb> I've got lofty ideas about revolutionising the Agda ecosystem but I probably ought to start smaller
jperras has joined #nixos
jonreeve has joined #nixos
vmandela_ has joined #nixos
vmandela has quit [Remote host closed the connection]
knupfer has joined #nixos
dbmikus_ has joined #nixos
<magnetop`> I added a new pkg in my nixpkgs tree, but the nixops deploy doesn't find it. afaik the following config should point nix to the right place: nix.nixPath = ["nixpkgs=/home/bart/source/nixradio/nixpkgs"];
<magnetop`> what am I doing wrong?
<clever> magnetop`: that config only takes effect at runtime, on the machine it was deployed to
<clever> magnetop`: you want `nixops modify -I nixpkgs=/home/bart/source/nixradio/nixpkgs your-deployment-file.nix`
dbmikus has quit [Ping timeout: 245 seconds]
<magnetop`> clever: ah thanks. How do I put that in a git repo so that others doing this deploy will get it too?
<clever> magnetop`: i just keep it as a comment in my deployment file, but you may want to use a bash script instead to manage it
<clever> you can also do -I nixpkgs=https://github.com/nixos/nixpkgs/archive/GITREV.tar.gz
<magnetop`> clever: ok, thanks
<clever> then it always uses a specific rev of nixpkgs
<clever> just make sure to pick the rev from the tip of the right channel
<clever> or your fork
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #46486 → Fix Antimony → https://git.io/fAVBl
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAVRv
<{^_^}> [nixpkgs] @Mic92 merged pull request #46465 → bazel: add bazel_jdk10 variant → https://git.io/fAaaS
jperras has quit [Ping timeout: 252 seconds]
jperras has joined #nixos
Twey has joined #nixos
tzemanovic has quit [Ping timeout: 246 seconds]
ydlr has quit [Remote host closed the connection]
<copumpkin> niksnut, shlevy: can either of you reset failures on hydra? there was some random failure on one of the mac builders and that killed a huge chunk of my eval
jperras has quit [Ping timeout: 245 seconds]
hydraz has quit [Remote host closed the connection]
hydraz has joined #nixos
<{^_^}> [nixpkgs] @symphorien opened pull request #46487 → Paperwork 0.2.4 → https://git.io/fAVEb
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « linux: 4.19-rc2 -> 4.19-rc3 »: https://git.io/fAVEA
lawlesseel has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @siddharthist closed pull request #45035 → haskell-ci: f7ab8c -> v0.1.0.0 → https://git.io/fNNir
orivej has quit [Ping timeout: 244 seconds]
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
humanoyd has joined #nixos
nD5Xjz has quit [Ping timeout: 272 seconds]
philippD has joined #nixos
xenog has joined #nixos
<wpcarro> any on-my-zsh users ever hit the the `option programs.zsh.ohMyZsh ... does not exist`? Figured it'd be available given this source: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/programs/zsh/oh-my-zsh.nix#L33
<wpcarro> I may be misunderstanding the source code, though...
xenog has quit [Client Quit]
Boomerang has quit [Ping timeout: 264 seconds]
xenog has joined #nixos
<samueldr> wpcarro: seems to exist https://nixos.org/nixos/options.html#ohmyzsh
<wpcarro> samueldr: ohhh this is a cool resource
<samueldr> only for current-stable though (18.03 right now)
<wpcarro> current-stable... hmm may need to check my channels...
<samueldr> you also have `man configuration.nix`
<samueldr> well, I say current-stable, but that name does not exist :)
<wpcarro> looks like I'm on `nixpkgs-unstable`
rnhmjoj[m] has joined #nixos
<wpcarro> samueldr: man configuration.nix?
<samueldr> you're using nixos, right?
<wpcarro> Run that in the terminal? I'm getting a "No manual entry..."
<wpcarro> No nix-darwin
<samueldr> ah!, sorry!
<wpcarro> that's gotta be it
<samueldr> yes!
<wpcarro> no worries!
<wpcarro> Still a little confused about how to debug the missing option error. Is it a channel issue for me?
<wpcarro> Is there some way for me to verify this using a nix-repl?
smolboye has quit [Ping timeout: 246 seconds]
<xenog> I am having a problem with a Nix package that I am creating.
<xenog> It seems that hpack is trying to create the /homeless-shelter directory and naturally failing due to lack of permissions.
<symphorien> export HOME=$(mktemp -d blahXXXXX)
<symphorien> HOME is set to /homeless-shelter by default
<xenog> Yeah, that should be a good temporary measure to solve it.
<xenog> I was wondering if I could fix the root cause, whatever the build system is doing that is attempting to create that directory.
<xenog> Or if somebody had any similar experience when attempting to create Haskell packages.
<clever> xenog: at the end of the build, do `find $HOME` and look at what it has made
<xenog> @clever idea.
<clever> and maybe also look into how to disable whatever it is
<xenog> Yeah, I'll study the build system and try to find the root cause.
johanot has quit [Remote host closed the connection]
<jonreeve> Does anyone know how I'd go about accomplishing the `stack exec example-site-exe site` command from this quickstart: https://github.com/chrispenner/slick#quick-start but using Nix?
<jonreeve> I've managed to do `cabal2nix` and `nix-build`, but I'm not sure how the `stack exec` would translate
Judson has joined #nixos
<Judson> Last I checked, nix-shell wasn't able to add a gc-root. Is that still the case?
Judson is now known as Guest150
<clever> jonreeve: after nix-build, there will be a binary in result/bin/
<jonreeve> clever: I don't seem to have anything that looks like a binary there. There's no result/bin, just result/lib
nD5Xjz has joined #nixos
xenog has quit [Remote host closed the connection]
xenog has joined #nixos
<jonreeve> This is what the tree of result looks like for me: http://nixpaste.lbr.uno/JNe_0kjA?nix
<clever> jonreeve: can you pastebin the file cabal2nix generated?
<{^_^}> [nixpkgs] @xeji opened pull request #46488 → pythonPackages.{pydub,readme_renderer,pyfakefs,us}: fix build → https://git.io/fAVaG
<wpcarro> Is setting `environment.loginShell` and `programs.zsh.enable = true;` enough to ensure you'll be using zsh when starting a shell? I keep getting bash for some reason
<clever> jonreeve: ah, the cabal file doesnt define any executables, https://github.com/ChrisPenner/Slick/blob/master/slick.cabal
<jonreeve> clever: SUre, it's here: http://nixpaste.lbr.uno/gWrBT3gn?nix
<clever> jonreeve: example-site-exe is in a sub-project, https://github.com/ChrisPenner/Slick/tree/master/example-site
<clever> which has to also have cabal2nix and nix-build ran on it
<clever> but that example is missing the cabal file
<jonreeve> Aha
oscarvarto has quit [Ping timeout: 252 seconds]
<wpcarro> Looks like the value in chsh is conflicting with my Nix variables... anyone else run into this before?
simukis has joined #nixos
<sphalerite> wpcarro: there is no environment.loginShell option…
<sphalerite> wpcarro: maybe you want to set users.defaultUserShell ?
<wpcarro> sphalerite: ah I guess I'm conflating nix-darwin options with NixOS options
<sphalerite> wpcarro: oh right this is nix-darwin, sorry. No idea
<wpcarro> sphalerite: it's okay. There's some overlap so it's always worth a shot
<sphalerite> :)
endformationage has joined #nixos
Twey has quit [Ping timeout: 240 seconds]
Twey has joined #nixos
<__monty__> clever: Can I tunnel internet traffic through toxvpn? Having it seem I'm browsing the web from another toxvpn node?
vaibhavsagar has quit [Ping timeout: 246 seconds]
<LnL> wpcarro: yeah, I tried to stay as close as possible where it makes sense
<LnL> but only a subset of modules is available
rihards has joined #nixos
<Twey> What's the advantage of an overlay over using a normal function-to-derivation? Is it just so you can override packages that are already available in the packageset?
smolboye has joined #nixos
<sphalerite> Twey: yes, that's the primary use
<sphalerite> Twey: particularly if other stuff depends on it and you want to build that other stuff with your overridden version
<{^_^}> [nixpkgs] @zimbatm merged pull request #46485 → govendor: init at 1.0.9 → https://git.io/fAVOB
<{^_^}> [nixpkgs] @zimbatm pushed to master « govendor: init at 1.0.9 (#46485) »: https://git.io/fAVog
<{^_^}> [nixpkgs] @zimbatm pushed to release-18.09 « govendor: init at 1.0.9 (#46485) »: https://git.io/fAVoi
<Twey> sphalerite: Got it, thanks
dbmikus_ has quit [Ping timeout: 264 seconds]
Denommus has joined #nixos
rauno has quit [Ping timeout: 250 seconds]
<{^_^}> [nix] @edolstra pushed commit from @grahamc to master « Prefer 'remote builder' over 'slave' »: https://git.io/fAVKr
wpcarro has quit [Ping timeout: 252 seconds]
rauno has joined #nixos
sbdchd has quit [Remote host closed the connection]
<clever> __monty__: that could be tricky, because you would need to change the default route, but not have toxvpn itself obey that
<clever> __monty__: would be simpler to just run a squid proxy on the remote end, and use the tox IP to connect to squid
<tobiasBora> Hum....
<tobiasBora> I tried to install nixos on ZFS, and I made a special partition for /tmp, as specified in the doc, using zfs create -o mountpoint=legacy -o sync=disabled zroot/root/tmp
<{^_^}> [nixpkgs] @adisbladis merged pull request #46405 → nats-streaming-server: init at 0.11.0 → https://git.io/fA26F
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/fAV6l
<tobiasBora> the problem is that now when I reboot, the classic users do not have access to /tmp
<tobiasBora> so I can't even boot KDE
<sphalerite> tobiasBora: does chmod 1777 /tmp fix it?
<sphalerite> It should definitely fix it one-off, not sure if it fixes it across reboots
<tobiasBora> sphalerite: it does, will try to reboot. But shouldn't nixos deal with that csae?
mayhewluke has quit [Ping timeout: 240 seconds]
<tobiasBora> For example, should I change anything in my hardware-configuration.nix file?
<sphalerite> no, I don't think that should be necessary
<sphalerite> I'm not sure exactly how permissions work as far as the root of a mount is concerned
adam-6520493 has quit [Quit: Ping timeout (120 seconds)]
mayhewluke has joined #nixos
adam-6520493 has joined #nixos
<sphalerite> i.e. if the parent or the child fs is responsible for the permissions of the mount's root dir. Although the latter would make more sense
<sphalerite> but yeah in this case I think it's just because it already exists, so the activation script or whatever would have created it doesn't touch it
<tobiasBora> k... Thank you!
<tobiasBora> Ok*
<tobiasBora> And also, any idea why the time is always wrong?
<tobiasBora> I've setup time.timeZone = "Europe/Paris";
<tobiasBora> but still, the hour is 2 hours too late
<{^_^}> [nixpkgs] @ttuegel pushed 2 commits to master: https://git.io/fAViU
<{^_^}> [nixpkgs] @ttuegel merged pull request #46334 → kde-applications: 18.08.0 -> 18.08.1 → https://git.io/fAgPd
<sphalerite> huh, that shouldn't happen I think? what does readlink /etc/localtime say?
sigmundv has quit [Ping timeout: 252 seconds]
<tobiasBora> sphalerite: /etc/zoneinfo/Europe/Paris
<sphalerite> wait by 2 hours too late do you mean ahead (21:14 instead of 19:14) or behind (17:14 instead of 19:14)?
<tobiasBora> 21:14
<sphalerite> is this machine dual-booting with windows maybe?
<tobiasBora> it is yes, but I didn't rebooted on Windows since I installed nix
<srhb> time.hardwareClockInLocalTime if you want them to coexist, probably.
<sphalerite> yeah proabbly set time.hardwareClockInLocalTime
<srhb> Windows has a weird tendency to think local time is somehow a good idea. :)
<sphalerite> > options.time.hardwareClockInLocalTime.description
<{^_^}> value is a function while a set was expected, at (string):192:1
<sphalerite> aww
<sphalerite> > nixos.options.time.hardwareClockInLocalTime.description
<{^_^}> "If set, keep the hardware clock in local time instead of UTC."
<sphalerite> aaaaah
<tobiasBora> srhb: but why didn't nix updated the Bios time then?
<srhb> tobiasBora: Are you running ntpd or something similar?
<srhb> If yes, then it probably bails because the delta is too large, and it doesn't know what to do.
<xok> srhb: I've got the service working as you suggested...
<srhb> xok: good job :)
<sphalerite> srhb: I think nixos defaults to systemd-timesyncd
<xok> srhb: but it starts and then stops, do you have an idea about it?...
stanibanani has joined #nixos
stanibanani has left #nixos [#nixos]
<srhb> sphalerite: Oh really?
<srhb> I never knew.
<sphalerite> tobiasBora: journalctl -eu systemd-timesyncd.service can tell you if it's what srhb suspects
<xok> this is the service I got...
wpcarro has joined #nixos
<xok> but it starts and then stops, gets "sigterm" syscall...
<xok> can you help with that?..
<sphalerite> xok: probably because docker-compose exits without leaving any children behind
spear2 has quit [Quit: Leaving]
<sphalerite> xok: try removing --detach and setting Type = "simple"; rather than Type = "forking";
<srhb> xok: I don't really much about docker_compose and whether forking is the right thing to do. I think it would be better to not detach and...
<srhb> what sphalerite is saying ;)
<xok> ok, let me do that...
<sphalerite> xok: also I think the name of the script is docker-compose, not docker_compose
<sphalerite> so ${pkgs.docker_compose}/bin/docker-compose
<tobiasBora> srhb: sphalerite : sept. 10 21:14:42 colnixos systemd-timesyncd[1516]: Timed out waiting for reply from 212.83.145.32:123 (1.nixos.pool.ntp.org)
<teto> tobiasBora: you can force ntp sync with $ ntpd -s
<xok> sphalerite: no, it's docker_compose
<xok> I mean the package name is docker_compose...
<xok> the bin file may be the docker-compose yes..
<sphalerite> tobiasBora: timeouts are all you have?
<teto> wwif you don't receive the answer than that's another problem :)
<tobiasBora> teto: hum, strange, ntpd is not installed
<sphalerite> tobiasBora: that's normal because it uses systemd-timesyncd
<tobiasBora> sphalerite: yes, I've lot's of them
<tobiasBora> sphalerite: oh ok
<tobiasBora> teto: which one is the better one: busybox, ntp, openntpd?
<xok> hooooraaaaay... :-D
<xok> I finally got it working!... :D
<sphalerite> \o/
<xok> thank you so much sphalerite and srhb
<srhb> xok: \o/
<kini> on the topic of time servers, I'll repeat my question from a few days ago :)
<kini> Dumb question -- I want to add an ntp server to services.timesyncd.servers in my nixos config file, but how do I reference the default value? Like, I want to say services.timesyncd.servers = [ "my.ntp.server" ] ++ defaultServers;
<srhb> kini: Just assign the new value :)
<kini> what do you mean by "the new value"?
<srhb> Oh, no, it's actually a default
<srhb> Oh well, you can get option.networking.timeServers.default then
<srhb> options*
<xok> srhb: sphalerite I am deploying that service to a remote digitalOcean machine...
<xok> and what I want now is to get an IP address of the newly created machine...
<srhb> kini: (Note that you might not have options in scope yet, if so add it to your module function: { options, ... }:
<xok> is there a chance to get that information?...
<srhb> xok: nixops info -d deployment?
<kini> ah, yeah I was just going to ask that haha
<xok> srhb: how do I put that in the configuration file?..
<srhb> xok: Oh, I don't know how to do that.
tzemanovic has joined #nixos
<kini> srhb: thanks, that worked great :)
<{^_^}> [nixpkgs] @vbgl opened pull request #46489 → ocamlPackages.ppx_import: 1.4 -> 1.5 → https://git.io/fAVPd
drp has quit [Remote host closed the connection]
drp has joined #nixos
vaibhavsagar has joined #nixos
Thra11 has joined #nixos
<avn> Folks, do we have any procedures to promote some fixes from master to 18.09 branch as well?
<maurer> avn: I think the procedure is, if security or fixes _only_, poke g c h r istensen
<maurer> (spaces put there to not accidentally ping)
<avn> maurer: 18.09 is not yet released, only in freezing process, if I understand right
<maurer> Oh, then poke whoever the release manager is
<sphalerite> which would be samuel-dr (without the -)
xok has quit [Ping timeout: 245 seconds]
Yaniel has quit [Ping timeout: 252 seconds]
__monty__ has quit [Read error: Connection reset by peer]
__monty__ has joined #nixos
<samueldr> hi! avn if it's a version update, minor updates are always candidate to backports to whatever the current stable is, so for the in-development stable it's the same
<samueldr> for major updates, it really depends on the reasons, and is done on a case-by-case basis
<{^_^}> [nixpkgs] @oxij opened pull request #46490 → nixos: sound: warn about changes to defaults → https://git.io/fAV1B
<samueldr> as for nixpkgs nix code fixes, it also is a case-by-case; feature freeze is a feature freeze, so it's expected any kind of internal API stays the same
kenshinC1 has joined #nixos
__monty__ has quit [Remote host closed the connection]
__monty__ has joined #nixos
orivej has joined #nixos
<sphalerite> what does "output limit exceeded" mean on hydra?
<avn> samueldr: Is a socket path update in nixos/ module. Currenly it have socket (for socket activation) and pidfile in same dir, and it not work (as I noted after last reboot).
jdcken has joined #nixos
<avn> Although I plan to remove service at all in next release, so I would like to add deprectation on service as well.
ixxie_ has joined #nixos
<samueldr> avn: as with any backport, an update to unstable has to first be made with the changes
<avn> sure
<avn> I mention you in comment in PR to master
<avn> (will mention)
<samueldr> good
sir_guy_carleton has joined #nixos
<avn> And other thing, which I want to discuss -- what you folks think about splitting daemon part of pulseaudio to own output?
pie__ has quit [Remote host closed the connection]
<avn> (of course in unstable, not in release ;))
<Twey> What is the proper way to build an environment that has both gcc and clang available?
pie__ has joined #nixos
<jdcken> Hi! Very impressed, brand new nix user here. Trying to figure out how best to manage my user configuration (dotfiles and the like) over multiple machines. Got a custom overlay working that provides packages overridden to include my config files. Is this a bad/naive idea?
sigmundv has joined #nixos
<Twey> I notice that libcxxStdenv has both, but the clang-wrapper still pulls in glibc's include files…
<sphalerite> jdcken: overridden as in they build from source? Or you make wrappers that call them with command-line args specifying the config file
<sphalerite> ?
<Twey> This breaks things
<sphalerite> jdcken: I do it pretty much that way. Some people prefer to use home-manager to get nixos-like configuration and be able to configure anything in ~ using it
<sphalerite> (I do it the wrappers way)
<jdcken> sphalerite: Wrappers indeed, using wrapProgram to add flags and refer to a templated config included in the package
<sphalerite> yep that's how I do it. Pretty workable, and less complex (but also less versatile) than home-manager
<sphalerite> nothing bad or naive about it :)
<sphalerite> Although you probably won't get e.g. manpages from the wrapper packages
<ldlework> Not all tools are amenable to customized configuration locations
<ldlework> specified on the commandline
<ldlework> home-manager is actually pretty simple all things considered
<jdcken> sphalerite: Thanks, glad to have that confirmed :)
<ldlework> it is mostly just a directed-graph + an activation package
<sphalerite> the complex thing about home-manager is the module system
jonreeve has quit [Ping timeout: 252 seconds]
<jdcken> I checked out home-manager but wasn't clear on how 'official' it is going forward / how portable it is between linux/mac. Should give it another go then.
<catern> has anyone ever built the grpc_cli tool in Nix?
<catern> I kind of remember this being a thing...
<sphalerite> jdcken: yeah it works on both from what I've heard
<sphalerite> and yeah it's not an official nixos thing, but lots of people here use it
<tobiasBora> sphalerite: here is the output I have when I add in my nix "services.ntp.enable = true;"
<tobiasBora> sphalerite: here is the output I have when I add in my nix "services.ntp.enable = true;": https://paste.debian.net/1041689/
<jdcken> For the stubborn tools that don't take custom config locations I've been adding an rsync step that puts all the immutable files into the expected place. Pretty hacky but seems to work.
<ldlework> sphalerite: isn't the module system just using the normal module plubming though?
<sphalerite> tobiasBora: you shouldn't need to enable a separate ntp daemon
<ldlework> for example, i use the exact same set of overlays for nixos and home-manager and it seems to just work
<sphalerite> ldlework: yes, it is the same, but it's still complex :p
<tobiasBora> hum... So I don't see what I should do
tzemanovic has quit [Ping timeout: 252 seconds]
<ldlework> sphalerite: what do you do for tools that can't be told to use customized configuration locations on the cli?
<adamantium> Yo guys , i kinda wanna upgrade my kernel to greater or equal to 4.15.x version, but I also do not want to use unstable. What is the procedure for this?
<sphalerite> ldlework: install config files with writeTextFile into .nix-profile/etc/xdg, which is on my XDG_CONFIG_PATH
<sphalerite> ldlework: for non-XDG-supporting stuff, manually created symlinks in ~
<srhb> adamantium: linuxPackages_latest is 4.17.19 in 18.03 (but should probably become 4.18 soon since 4.17 is EOL)
<sphalerite> although really I should use user and mount-namespaced wrappers for those :D :p
<sphalerite> or just fix the programs
<ldlework> sphalerite: I don't know what that means, but this sounds like an absolutely *excellent* article that wouldn't have to be very long.
georges-duperon has joined #nixos
<srhb> adamantium: And 4.15 and 4.16 are long gone.
<{^_^}> [nixpkgs] @primeos pushed to master « androidStudioPackages.beta: 3.2.0.24 -> 3.2.0.25 »: https://git.io/fAVDi
<adamantium> srhb: i'm aware thats why i said greater than 4.15
<sphalerite> ldlework: as in I should write an article about it?
<ldlework> sphalerite: yeah definitely
<srhb> adamantium: You did say "or equal" :D
<adamantium> srhb: is there a wiki page on how to get a newer kernel?
<srhb> adamantium: https://nixos.org/nixos/options.html#boot.kernelpackages
<adamantium> srhb: yeah, that's because 4.15 introduced amdgpu features that i want to have .
Yaniel has joined #nixos
<srhb> adamantium: and linuxPackages_latest is the one that is 4.17 currently in 18.03
<srhb> (And will become 4.18)
<adamantium> iirc you use zfs too right?
<srhb> I do.
<adamantium> any issues with latest kernel and zfs?
sigmundv has quit [Remote host closed the connection]
<srhb> No idea, I use 4.14 currently.
<adamantium> lol
<adamantium> k
fragamus has joined #nixos
<adamantium> i'll check the ZOL page
<adamantium> Thank you for showing me this option, easy enough eh !
<srhb> adamantium: Should be, yep :)
sigmundv has joined #nixos
xenog has quit [Ping timeout: 264 seconds]
vmandela_ has quit [Quit: Leaving]
<adamantium> so boot.kernelPackages = "linuxPackages_latest";
<srhb> pkgs.linuxPackages_latest, not a string but a package :)
Yaniel has quit [Ping timeout: 240 seconds]
<sphalerite> srhb: package set ;)
<srhb> sphalerite: Fiiiine. :P
<srhb> adamantium: But yes, as sphalerite, it's really a set (that contains import things, like, kernel)
<srhb> important*
<adamantium> I'm sorry i do not understand fully.
<srhb> adamantium: Don't put it in double quotes
<srhb> adamantium: And it comes from pkgs
<srhb> adamantium: so boot.kernelPackages = linuxPackages_latest;
<adamantium> boot.kernelPackages = pkgs.linuxPackages_latest;
<srhb> adamantium: It is a special attribute set that contains various kernel-related things that MUST be present in order for it to work.
<adamantium> thanks
<srhb> adamantium: Yep.
<tobiasBora> What is the good way to enable numpad at startup in nixos? (Using plasma if it can help)
<adamantium> srhb: one last thing, how do we see what version of ZOL we are currently using?
<srhb> > zfs.name
<{^_^}> "zfs-user-0.7.9"
<srhb> Hmm, that's the user facing stuff
<srhb> But it should match
_ris has joined #nixos
<srhb> > linuxPackages.zfs.name
<{^_^}> "zfs-kernel-0.7.9-4.14.68"
jperras has joined #nixos
<adamantium> what is the command you ran to get that?
<srhb> adamantium: And you can do the same thing locally with nix eval nixpkgs.linuxPackages.zfs.name
<srhb> s/nixpkgs/nixos if that's your channel's name I think
<adamantium> k
<adamantium> nixpkgs did the trick.
<adamantium> hmm, my first nix eval
<adamantium> ;-)
xenog has joined #nixos
<srhb> Very useful command to quickly explore nixpkgs
<srhb> especially if you have shell completion for attribute names
<sphalerite> srhb: `nix` uses NIX_PATH, so nixpkgs will always work there :)
<sphalerite> well unless a system doesn't have nixpkgs in NIX_PATH of course.
<adamantium> cool, does that come with programs.bash.enableCompletion = true; ?
<sphalerite> yeah should do
<{^_^}> [nixpkgs] @oxij opened pull request #46491 → nixos: sound: warn about changes to defaults (18.03) → https://git.io/fAVS3
<srhb> sphalerite: I've seen that happen, and it's very annoying :/
<sphalerite> srhb: if in doubt, export NIX_PATH=nixpkgs=channel:nixos-18.03 :D
<srhb> Yeah. :P
kiloreux has quit [Ping timeout: 272 seconds]
<adamantium> solid
humanoyd has quit [Quit: WeeChat 2.2]
<sphalerite> hm ok… if an entry in secret-key-files doesn't exist, builds will fail and get discarded completely (not just not be completed as normal and not signed)
grp has joined #nixos
xenog has quit [Remote host closed the connection]
<tobiasBora> Also, any idea wheter I can run "nixos-rebuild switch" without losing time to do useless stuff, like reconfiguring grub?
lawlesseel has quit [Remote host closed the connection]
xenog has joined #nixos
Yaniel has joined #nixos
jperras has quit [Quit: WeeChat 2.2]
jperras has joined #nixos
<sphalerite> I've got a machine here which is supposed to have 8 HDDs, but nothing shows up in lsblk. I suspect the controller has failed (they used to show up), but am wondering what I could do to debug this?
<sphalerite> tobiasBora: reconfiguring grub is kind of important, it won't boot into the new generation next time otherwise
drewr has quit [Ping timeout: 252 seconds]
<tobiasBora> sphalerite: I see. I thought that there were a kind of "last generation" symlink that would avoid this problem. Or maybe I can avoid osprober?
<elvishjerricco> tobiasBora: You can do `nixos-rebuild test` to switch generation now without changing what will be booted; this should avoid reconfiguring grub. `nixos-rebuild boot` will do the opposite
rfold has joined #nixos
<tobiasBora> elvishjerricco: good to know, thanks!
drewr has joined #nixos
<elvishjerricco> tobiasBora: Even if there were an entry for "latest generation," you'd still want it to reconfigure grub on each build in order to add the new generation to the explicit list
Kelppo has quit []
<sphalerite> tobiasBora: so your actual problem is "os-prober is slow"?
<sphalerite> tobiasBora: you could put the config for booting windows in boot.loader.grub.extraEntries and disable boot.loader.grub.useOSProber
lawlesseel has joined #nixos
<Dezgeg> or maybe just 'nixos-rebuild test' ?
* sphalerite wonders what would happen if you set up a systemd service that runs nixos-rebuild boot on shutdown
sbdchd has joined #nixos
<tobiasBora> elvishjerricco: true
<rawtaz> hi. im having trouble getting unstable astroid to run. the astroid package previously depended on an insecure webkitgtk, but it has since been upgraded and should now depend on a perfectly fine webkitgtk. im still getting a warning about insecure version of webkitgtk though, and im not finding why that is. output at https://pastebin.com/A1X86ebf for config at https://pastebin.com/w2xeRZh1
<tobiasBora> sphalerite: it can be an idea instead. But I think I'll use this method proposed above of rebuild test, and I'll combine it with boot, that way I can quickly have a usable device ;)
<tobiasBora> thank you everyone!
<rawtaz> what i dont get in particular is why the "webkitgtk" dependency in the astroid package (in the master branch) doesnt resolve to the newer webkitgtk. or it does, and for some other reason the old one is used here anyway..
semilattice has joined #nixos
<semilattice> is there a wrapper for gcc/clang/musl for ghc-style 'withLibs', it's way easier to work with than environment-vars
<semilattice> ?
<rawtaz> is it a case of my reference to "unstable" not actually meaning the master branch, so the astroid package definition is from a non-master commit?
Ariakenom has quit [Ping timeout: 252 seconds]
<sphalerite> rawtaz: there don't seem to be any webkit updates between current nixos-unstable and master
<xenog> If anyone is interested in the problem that I mentioned earlier with Haskell's hpack writing to the home directory at /homeless-shelter, I managed to find the problem and solve it.
<sphalerite> rawtaz: which version numbers are you expecting?
<rawtaz> sphalerite: let me look that up specifically, moment. surely this is a case of me misunderstanding the workings of nix and nixos :)
<{^_^}> [nixpkgs] @oscarvarto opened pull request #46492 → ammonite: 1.1.2 -> 1.2.0 → https://git.io/fAVHx
<xenog> @clever, the problem was caused by hpack defaults. If you specify a default in a repository, it will attempt to copy it to the home directory to be able to use it. Remove defaults from package.yaml and everything is fine.
sigmundv has quit [Remote host closed the connection]
knupfer has quit [Read error: Connection reset by peer]
<rawtaz> sphalerite: so im thinking that "unstable" means "from the master branch", and i look at https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/mailreaders/astroid/default.nix which references "webkitgtk" in "buildInputs"
knupfer has joined #nixos
semilattice has quit [Ping timeout: 240 seconds]
<sphalerite> rawtaz: unstable isn't 100% the master branch; unstable is the master branch, delayed by a certain set of tests passing
<rawtaz> sphalerite: the fact that https://github.com/NixOS/nixpkgs/commit/61c0adfbc11da6cbc20ec7482ac1b96ae7d1d2a5#diff-e52827ca39f462cd3c6738739a7e95dc mentions making the astroid package starting to use a non-insecure webkitgtk makes me think that the old one should not be used any longer (so the webkitgtk i get shouild be above 2.4.11 that's in the error message i got when rebuilding).
<sphalerite> rawtaz: one way of looking at it is that unstable "follows" master
<rawtaz> sphalerite: then that is probably the reason im getting this error. unstable isnt referencing that astroid package definition i think it is
<rawtaz> makes sense.. is there a way to get a grip on what commit or similar "unstable" is referencing at this point in time, e.g. for the astroid package?
<tobiasBora> What is the most up to date way to have user side configuration? I'd like, for example, automatize the creation of .bashrc, and setup some ssh key automatiquely.
tmaekawa has joined #nixos
<sphalerite> rawtaz: AFAICT, webkitgtk refers to 2.20.5 in current unstable
<sphalerite> rawtaz: same on master
<sphalerite> rawtaz: so it's a matter of webkitgtk itself not having been updated in nixpkgs I guess
<rawtaz> sphalerite: isnt it weird then that wehn i rebuild it complains about 2.4.11 being insecure? seems like it's trying to use 2.4.11 instead of 2.20.5
tmaekawa has quit [Client Quit]
<sphalerite> rawtaz: what command are you using?
<rawtaz> sphalerite: sudo nixos-rebuild switch --upgrade - see https://pastebin.com/A1X86ebf for complete output
<symphorien> there has been breaking changes between these versions, so some packages requires the old version
<sphalerite> rawtaz: you're on the previous release of nixos, 17.09, which isn't being updated anymore
<rawtaz> hm, so the reference to "unstable" doesnt point to the same "unstable" as in a newer version of nixos?
<sphalerite> huh what. It's updating 17.09 but building from… an 18.03 prerelease?
<adamantium> srhb: re: pkgs.linuxPackages_latest , is there a list of all potential options that i may choose?
<sphalerite> rawtaz: could you paste the output of nix-info?
<srhb> adamantium: linuxPackages_<TAB> ;)
<sphalerite> Or if that doesn't exist nix-shell -p nix-info --run nix-info
<adamantium> !! doh.
<rawtaz> sphalerite: system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 1.11.16, channels(root): "nixos-17.09.3263.9e1d8b74706, nixos-unstable-18.03pre130932.cc4677c36ee", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
<rawtaz> sphalerite: i did run a couple of channel update commands, let me check what those were
amosbird has quit [Quit: ZNC 1.7.0 - https://znc.in]
<samueldr> your system is most likely still built on top of 17.09 (from that output)
amosbird has joined #nixos
<cocreature> what is the proper way to install agda as well as its standard library? I tried just installing haskellPackages.Agda and AgdaStdlib globally but that results in agda not finding the stdlib
<cocreature> It seems like there is probably something like agdaWithPackages but I cannot find it
<samueldr> and the "nixos-unstable" channel you have is at this commit https://github.com/NixOS/nixpkgs-channels/commit/cc4677c36ee
<sphalerite> rawtaz: the current release of nixos is 18.03 so you should upgrade to that by 1. reading the release notes to see if it'll break anything for you https://nixos.org/nixos/manual/release-notes.html#sec-release-18.03 2. running (as root) nix-channel --add https://nixos.org/channels/nixos-18.03 nixos 3. nixos-rebuild boot 4. reboot
<samueldr> ^ good advice to follow
<symphorien> cocreature: did you try in a nix-shell ?
<rawtaz> nix-channel --list reports nixos https://nixos.org/channels/nixos-17.09 and nixos-unstable https://nixos.org/channels/nixos-unstable , FWIW
amosbird has quit [Max SendQ exceeded]
<rawtaz> sphalerite: understood, i will do that. but just for the sake of understanding: how come referencing "unstable" in 17.x isnt working? is it a "different" unstable than in 18.x?
<cocreature> symphorien: yes, I tried "nix-shell -p haskellPackages.Agda -p AgdaStdlib" with the same result
<sphalerite> rawtaz: how are you referncing unstable?
<sphalerite> rawtaz: (and FWIW your nixos-unstable channel is very old too)
<symphorien> rawtaz: if you never run nix-channel --update nixos-unstable your unstable gets old
<samueldr> rawtaz: you're likely referencing your "nixos-unstable" channel from root, which wasn't updated since the march 4th commit
<sphalerite> rawtaz: oh and I missed the --upgrade on the nixos-rebuild boot command, it won't actually update the channels if you leave that out
<rawtaz> symphorien: im "referencing" it at the top of https://pastebin.com/w2xeRZh1
amosbird has joined #nixos
<rawtaz> samueldr: has it not been updated since march because i have failed to run a command that updates it, or for some other reason?
<samueldr> rawtaz: most likely failing to run a command to update it
<rawtaz> let me rephrase what i dont get here.
lawlesseel has quit [Remote host closed the connection]
<rawtaz> im referencing unstable. unless "unstable" means different things depending on whether im on 17.x or 18.x, i dont understand why it's not referencing the latest/current unstable stuff, assuming i have run the proper channel update commands. perhaps i didnt update the channels properly then.
<samueldr> if you're using "nix-channel --update" as your own user, it won't update root's channels, and it wouldn't (and shouldn't) print an error as your user can also have channels
<rawtaz> ah ok. that makes sense.
<rawtaz> so; if i `nix-channel --update` as root, should it then update the unstable channel to get that one onto the bleeding edge?
lawlesseel has joined #nixos
lawlesseel has quit [Remote host closed the connection]
<symphorien> rawtaz: I thing --update without argument only update the nixos channel
<samueldr> right now it'll probably error out since you're using nixos 17.09 with nix 1.11, and nix 2.0 is now required for unstable
<samueldr> symphorien: manpage says "Downloads the Nix expressions of all subscribed channels [unless names are specified]"
<symphorien> hum
cyraxjoe has quit [Remote host closed the connection]
<rawtaz> im trying it to see what happens :)
ydlr has joined #nixos
<srhb> symphorien: I think you're thinking of --upgrade to nixos-rebuild?
<symphorien> ha I may be mixing with nixos-rebuild --upgrade indeed
<samueldr> ah, that makes total sense :)
* srhb wants that switch to go away
<symphorien> to sum up: I have had a nixos-unstable channel for a long time, and it became really outdated
<rawtaz> samueldr: you were right :) https://pastebin.com/rgPeG5tV
<samueldr> a good chance to use --rollback!
<samueldr> sudo nix-channel --rollback will rewind one step behind
<samueldr> so back to where you were
<rawtaz> aha
Neo-- has joined #nixos
<symphorien> you should set nixos-unstable to the 18.03 channel, rebuild, this will give you nix 2, and from there you are free
<rawtaz> but in this case i can just go ahead with the upgrade to 18.x and take it from there i suppose
<samueldr> that should work out
<samueldr> symphorien: in this particular case, rawtaz can change the nixos channel to 18.03, upgrade the nixos channel only, and then rebuild, without touching nixos-unstable; leaving this to be done after booting in the updated system
<samueldr> rawtaz: when upgrading between releases, it's probably better not to use `nixos-rebuild switch`, but `nixos-rebuild boot`; while switch will probably work, there's a *load* of things that could go slightly weirdly until rebooted
glowpelt has quit [Max SendQ exceeded]
patrl has joined #nixos
<rawtaz> symphorien: previously you suggested setting the "nixos" channel to https://nixos.org/channels/nixos-18.03, but now you suggested setting the "nixos-unstable" channel to https://nixos.org/channels/nixos-18.03 instead, is there any particular reason for the latter recommendation? or are they the same, just different cosmetics?
glowpelt has joined #nixos
patrl has quit [Client Quit]
patrl has joined #nixos
<rawtaz> samueldr: yeah, boot is the thing to use here
<samueldr> rawtaz: I think it was sphalerite that suggested nixos to 18.03; and imho is the right way (unless you want to stay on 17.09)
<rawtaz> ah. you guys, them similar nicks.. sorry about the confusion :P
<symphorien> rawtaz: I was wrong
* rawtaz heads off to upgrade
<rawtaz> after reading the notes.
<elvishjerricco> Is there a way to `nix-collect-garbage` to delete all but the most recent N generations? i.e. not by time, but by index.
<symphorien> delete the gc roots yourself
<Zajcev> guys, little silly question ... I have system.autoUpgrade.enable = true; ... how to show upgrade history with dates and times?
<rawtaz> oh, nice that you deprecated attic in favor of borg. at some point i will make sure that restic.net is also available (if it isnt already)
kenshinC1 has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @volth opened pull request #46493 → perlPackages: ZHF 18.09 → https://git.io/fAVFs
<rawtaz> to see which commit in the master branch the nixos-unstable channel is at, can i simply look at the contents of https://nixos.org/channels/nixos-unstable , e.g. currently it redirects to https://releases.nixos.org/nixos/unstable/nixos-19.03pre151837.ca2ba44cab4 suggesting it's at commit ca2ba44cab4 ( https://github.com/NixOS/nixpkgs/commit/ca2ba44cab4 ) in the master branch?
<samueldr> rawtaz: that's a safe way to check
<rawtaz> nice :)
<symphorien> also this website is nice https://howoldis.herokuapp.com/
<samueldr> that's basically "what your system does", it uses that URL, but instead of checking the checkout, it downloads the nixeprs.tar.xz
<samueldr> and yeah, howoldis is a more human-friendly way to check
<rawtaz> indeed, looks good
<samueldr> there is also the nixpkgs-channels, which is a read-only repo with one branch per channel, pointing to the current commit https://github.com/NixOS/nixpkgs-channels/tree/nixos-unstable
<{^_^}> [nixpkgs] @LnL7 merged pull request #46422 → bullet: fix darwin build → https://git.io/fA2pX
<{^_^}> [nixpkgs] @LnL7 pushed 2 commits to master: https://git.io/fAVFw
<rawtaz> i notice there's a nixpkgs-unstable channel - is that used when you use Nix on other platforms? i dont recall ever using that one in my fiddling around with NixOS so far
<rawtaz> ok there you have it :D
<samueldr> rawtaz: pretty much
Ariakenom has joined #nixos
<samueldr> nixos-* channels are **tested to work on nixos**, while nixpkgs are more general purpose
<samueldr> you could realistically use nixpkgs-unstable on nixos, but IT MAY EAT YOUR HOMEWORK
<samueldr> so yeah, don't ever :)
lostman has quit [Quit: Connection closed for inactivity]
<samueldr> (for your system, for other channels for use outside of the nixos configuration YMMV, but it should be good)
<ldlework> I use stable, and add pkgs.unstable with an overlay
<ldlework> So I can just steal packages from unstable real easy like
<{^_^}> [nixpkgs] @LnL7 pushed to release-18.09 « bullet: fix darwin build »: https://git.io/fAVFN
<rawtaz> ldlework: i think that's what im trying to do here as well :)
<ldlework> well it is pretty easy
<rawtaz> yeah
<rawtaz> ldlework: you do it like in https://pastebin.com/w2xeRZh1 ?
<ldlework> I add this to the stable overlays
<ldlework> and unstable can even have its own overlays
<ldlework> like you see on line 9 there
<ldlework> (I have a helper function collect my unstable overlays from a directory)
<adamantium> i'm planning to use zfs boot envs to have my own thrash environments for unstable and experimental things.
<adamantium> It's pretty easy to do.
<ldlework> adamantium: cool. this lets you use unstable packages in your stable environment
<adamantium> yeah i got ya
<rawtaz> adamantium: is there a guide on that or are you going to write one? :)
<adamantium> there's a place for that too
johanot has joined #nixos
<{^_^}> [nixpkgs] @rycee opened pull request #46494 → cloc: 1.76 -> 1.78 → https://git.io/fAVbt
<adamantium> rawtaz: yes, well, with themelios my plan is to integrate beadm functionality in a hopefully seamless way into the nixos grub boot loader.
<adamantium> rawtaz: so that will come with documentation when it is complete.
<rawtaz> cant wait
<rawtaz> sounds great :)
<adamantium> me too i cannot wait
civodul has joined #nixos
<rawtaz> hm, nixcon is in london this year..
jperras has quit [Quit: WeeChat 2.2]
<samueldr> allegedly ;)
<rawtaz> does anyone know if .uk insists on scanning your fingerprints or reading that biometric data from your password when you go there from within the EU?
johnw_ has joined #nixos
johnw_ has quit [Changing host]
johnw_ has joined #nixos
tmaekawa has joined #nixos
exarkun1 has joined #nixos
<rawtaz> ldlework: isnt it much simpler and cleaner to import unstable the way i do in and around line 4 in https://pastebin.com/w2xeRZh1 , than how you do it in https://gist.github.com/dustinlacewell/6ba99a8b3ecf7c9b576e64dbcd36a6eb ? just curious
<patrl> ramtaz: no fingerprint scanning, at least not a couple of months ago
<{^_^}> [nixpkgs] @erikarvstedt opened pull request #46495 → networking.hostId: fix cmd in description → https://git.io/fAVbd
<sphalerite> rawtaz: no fingerprints, at least 4 days ago :p
<patrl> rawtaz: whoops^
ixxie_ has quit [Quit: Lost terminal]
<exarkun1> I can't fix Cargo.lock-missing Rust packages that fail to build like: https://gist.github.com/exarkun/b6ca28caf77dea9b3d28215ea4c4556b does anyone know how to fix this?
<sphalerite> rawtaz: I don't really know how the e-passport stuff works, there are automatic gates that scan it that you have to go through (or a check by a person, not sure if the e-passport magic is involved there)
<sphalerite> rawtaz: if you want to continue this subject I suggest #nixos-chat :)
<samueldr> sphalerite++
<{^_^}> sphalerite's karma got increased to 15
<{^_^}> [nixpkgs] @rvolosatovs opened pull request #46496 → vimPlugins: Fix update.py, add/update plugins → https://git.io/fAVNe
<ldlework> rawtaz: then you a) need the channel configured b) need the import anywhere an unstable package is used
wajsel has quit [Ping timeout: 252 seconds]
<exarkun1> I tried adding a cargoDepsHook that writes a Cargo.lock but if this changed anything, I can't tell what.
<ldlework> rawtaz: I'm probably the most fanatic follow of DRY you'll ever meet.
<rawtaz> sphalerite: cheers for the chat pointer
<ldlework> so superflous import statements all over the place that may or may not be being used by the underlying file is to much to bear for me :)
<{^_^}> #44967 (by Ekleog, 4 weeks ago, merged): buildRustPackage: allow patches to fix Cargo.lock
rfold has quit [Ping timeout: 240 seconds]
tmaekawa has quit [Client Quit]
<rawtaz> ldlework: i see :D but dont you have to put your stuff everywhere as well?
<ldlework> rawtaz: no, i just add the overlay, and modules are free to use pkgs.unstable.whatever or not
<{^_^}> [nixpkgs] @matthewbauer merged pull request #46222 → libuv: Disable temperamental shutdown_close_pipe test on Aarch32. → https://git.io/fAzIM
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fAVNV
<ldlework> i don't need to maintain an import based on the content of the file
<ldlework> if I remove the last use of an unstable package, i have to remember to remove the import, etc
<ldlework> so i much prefer using an overlay where possible
<ldlework> the only thing i use imports for are library functions that cannot be used in overlays due to recursion issues
<{^_^}> [nixpkgs] @matthewbauer merged pull request #45698 → Show the filename on unsupported shebang error → https://git.io/fA38e
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to staging: https://git.io/fAVNi
<ldlework> everything else is a module that is automatically imported, and enabled or not by host configuration
<tobiasBora> Hello,
<tobiasBora> I'm trying to setup emacs packages (melpa), as specified in the doc
<rawtaz> now i have astroid working just fine. thank you! question though; it appears that the issue was because my unstable channel wasnt updated. i thought that `nixos-rebuild switch --upgrade" would upgrade that channel too before doing its work, but i take it it only upgrades the "nixos" channel, so that's the reason i got errors for an old webkitgtk?
<rawtaz> the manual says "the NixOS channel". i presume that means "nixos"
* rawtaz ponders if the manual should be more explicit..
<rawtaz> ldlework: i see
<sphalerite> rawtaz: yes that's correct
<{^_^}> [nixpkgs] @matthewbauer merged pull request #46028 → semodule-utils: init at 2.7 → https://git.io/fA4Po
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fAVAf
<tobiasBora> so in my configuration file, I put in the import list "./emacs", and i start it with { pkgs ? import <nixpkgs> {} }:. However, this fails, telling me the anonymous function is called with an unexpected argument "config"
<rawtaz> thanks! then the problem is comlpetely uncovered :D thanks all you s* named peeps!
<{^_^}> [nixpkgs] @matthewbauer merged pull request #45988 → emacs: allow X and cli-only builds on Darwin → https://git.io/fA8SY
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fAVAU
<rawtaz> completely*
<tobiasBora> so I tried to add {config, pkgs, ...}
<tobiasBora> but it still fails
<exarkun1> symphorien: hmm okay _something_ is happening when I use `cargoPatches` which is more than I can say for my other attempts
<tobiasBora> (now I've errors error: infinite recursion encountered)
<{^_^}> [nixpkgs] @matthewbauer merged pull request #46000 → scuttlebot and git-ssb: init at 11.4.3 and 2.3.6 → https://git.io/fA4tv
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fAVAG
<tobiasBora> oh, I think the solution is in the doc also ^^
<tobiasBora> (import /path/to/emacs.nix { inherit pkgs; })
JonReed has joined #nixos
<sphalerite> tobiasBora: {config, pkgs, ...} is correct
<{^_^}> [nixpkgs] @matthewbauer merged pull request #46211 → picard-tools: 2.18.11 -> 2.18.12 → https://git.io/fAzvt
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fAVAE
tzemanovic has joined #nixos
Twey has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #46174 → tortoisehg: 4.6.1 -> 4.7 → https://git.io/fAuwz
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fAVAa
<{^_^}> [nixpkgs] @matthewbauer merged pull request #46156 → xcbutilxrm: 1.2 -> 1.3 → https://git.io/fAuqD
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fAVAo
<tobiasBora> sphalerite: yes, I think I was just not calling it in the good place, it's better now
<sphalerite> :)
<tobiasBora> thank you ;)
semilattice has joined #nixos
<{^_^}> [nixpkgs] @rycee pushed to master « cloc: 1.76 -> 1.78 »: https://git.io/fAVAF
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @rycee closed pull request #46494 → cloc: 1.76 -> 1.78 → https://git.io/fAVbt
lawlesseel has joined #nixos
xenog has quit [Ping timeout: 240 seconds]
<semilattice> I know I asked this a bit ago but didn't see anything. Is there an easy way to wrap some libs up with a c compiler? so that calling ../bin/gcc will find a specific lib without requiring anything special in my environment?
<{^_^}> [nixpkgs] @matthewbauer merged pull request #45632 → thonny: init at 3.0.0b3 → https://git.io/fAmTj
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fAVxt
<clever> semilattice: simple answer, use nix-build
<semilattice> in what way exactly?
<clever> (or nix-shell)
<clever> write a nix file that will compile the files you want, and then use nix-build to run it
<semilattice> I want to develop it in place so that I can take advantage of partial compilation
<clever> then you want nix-shell
<semilattice> okay, but it needs some runtime libs
<clever> nix-shell will provide all of the libs listed in the given shell.nix file
<semilattice> it will sort of work, but i'ts not ultimately what I want
<semilattice> because I want to build something in nix-shell, and be able to run it outside that shell
<{^_^}> [nixpkgs] @xeji merged pull request #46039 → arx-libertatis: 2017-10-30 -> 2018-08-26 → https://git.io/fA4hj
<{^_^}> [nixpkgs] @xeji pushed commit from @rnhmjoj to master « arx-libertatis: 2017-10-30 -> 2018-08-26 (#46039) »: https://git.io/fAVxr
<semilattice> so the absolute best solution for me would be to have it build against a specific gcc package
<{^_^}> [nixpkgs] @matthewbauer merged pull request #45323 → ydiff: init at 1.1 → https://git.io/fAvIR
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fAVx1
knupfer has quit [Ping timeout: 252 seconds]
<semilattice> that would refer to the libs it wanted statically
<sphalerite> it refers to them through rpath
<sphalerite> so you can run it outside nix-shell after building it inside
<sphalerite> although the libraries may disappear after a gc
<{^_^}> [nixpkgs] @matthewbauer merged pull request #45102 → hisat2: init 2.1.0 → https://git.io/fNpte
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fAVxj
<clever> but nix is not aware of the libs being in use, due to lack of gc roots
<clever> sphalerite: you beat me that time! :D
<sphalerite> Achievement get: beat clever to a point!
<semilattice> I'm not sure that's the case when I build inside nix-shell instead of building with nix
<tobiasBora> Hum...
<semilattice> I'll verify again
<tobiasBora> I installed emacs using something like emacsWithPackages = (pkgs.emacsPackagesNgGen myEmacs).emacsWithPackages;
<{^_^}> [nixpkgs] @xeji merged pull request #46493 → perlPackages: ZHF 18.09 → https://git.io/fAVFs
<{^_^}> [nixpkgs] @xeji pushed commit from @volth to master « perlPackages: ZHF 18.09 (#46493) »: https://git.io/fAVpL
<tobiasBora> and I installed some emacs packages
<tobiasBora> it works great for root
<tobiasBora> but unfortunately, not for users
<tobiasBora> when I use "emacs", I don't have any packages set
<tobiasBora> why?
<sphalerite> tobiasBora: because they're installed in /root/.emacs
<{^_^}> [nixpkgs] @xeji pushed commit from @volth to release-18.09 « perlPackages: ZHF 18.09 (#46493) »: https://git.io/fAVpc
<sphalerite> i.e. per-user
mounty1 has joined #nixos
<tobiasBora> sphalerite: So the good way to proceed is to use services.emacs.package = import /home/cassou/.emacs.d { pkgs = pkgs; };?
<sphalerite> if you want to install emacs with a spefici set of packages systemwide, install emacsWithPackages (ps: with ps; [evil markdown-mode]) for example
<sphalerite> no, that won't work. /home/cassou/.emacs.d/default.nix doesn't exist
<tobiasBora> sphalerite: I was thinking to symlink it to /etc/nixos/emacs.nix ^^
<{^_^}> [nixpkgs] @xeji merged pull request #46486 → Fix Antimony → https://git.io/fAVBl
<{^_^}> [nixpkgs] @xeji pushed commit from @rnhmjoj to master « antimony: 0.9.3 -> 2018-10-17 (#46486) »: https://git.io/fAVpg
<tobiasBora> but your solution looks better
<{^_^}> [nixpkgs] @xeji pushed commit from @rnhmjoj to release-18.09 « antimony: 0.9.3 -> 2018-10-17 (#46486) »: https://git.io/fAVpw
<{^_^}> [nixpkgs] @markuskowa opened pull request #46497 → Add licenses → https://git.io/fAVpr
<tobiasBora> sphalerite: but I'm not sure to see how to use it...
<tobiasBora> what is this ps,
<tobiasBora> and how different is it from epkgs?
<clever> the list of all emacs packages
<sphalerite> tobiasBora: environment.systemPackages = with pkgs; [... (emacsWithPackages (ps: with ps; [evil markdown-mode])) ... ];
mounty has quit [Ping timeout: 252 seconds]
<sphalerite> tobiasBora: `ps:` introduces a function which is passed an argument (the emacs packages set). I chose to call it ps, but you can call it epkgs instead if you want. The name doesn't matter.
<sphalerite> > (x: x+1) 6
<{^_^}> 7
<sphalerite> > (foo: foo+1) 6
<{^_^}> 7
<sphalerite> > (ps: with ps; [ evil markdown-mode] ) emacsPackagesNg
<tobiasBora> sphalerite: oh I see. So I could use ps.melpaPackages if I want melpa?
<{^_^}> [ <CODE> <CODE> ]
<sphalerite> > (epkgs: with epkgs; [ evil markdown-mode] ) emacsPackagesNg
<{^_^}> [ <CODE> <CODE> ]
georges-duperon has quit [Ping timeout: 252 seconds]
<semilattice> So anyway it doesn't seem to work but I have other weirdness so it would take too much effort to actually debug
<sphalerite> tobiasBora: I think emacsPackages already includes all of melpaPackages.
<semilattice> if I use $(which gcc) as the CC for the build, then it causes issues with the build
<semilattice> and if I use gcc without that, I get that the headers are missing
<semilattice> at runtime (it calls gcc)
<sphalerite> semilattice: oh, well yeah if you try to call gcc at runtime of course it won't work outside the nix-shell
<semilattice> yeah, that's why I want to give it a gcc that will have everything linked in
<sphalerite> s/of course//
<semilattice> so I can just call it outside the shell
<sphalerite> no need for me to be patronising <_<
<semilattice> yeah that's why I was dismissive of just using nix-shell, I didn't expect that to work at all
<semilattice> but I have the opportunity to set the runtime c compiler
<sphalerite> there was talk of a ccWithPackages function being introduced one day. That day is not today however.
<semilattice> ah, Is ee
<symphorien> semilattice: you can wrap gcc with wrapProgram to add the necessary env vars: NIX_CFLAGS_COMPILE etc.
<semilattice> can you give me a link which shows what the necessary env vars are?
<semilattice> or a starting point?
<symphorien> special care must be taken for libcxx/libstdc++
<tobiasBora> sphalerite: great thank you!
Neo-- has quit [Ping timeout: 240 seconds]
<sphalerite> semilattice: `nix-shell -p your-deps --run env ` ;)
<semilattice> sphalerite: oh, thanks, that will work yeah
knupfer has joined #nixos
<symphorien> there are at least NIX_CFLAGS_{COMPILE,LINK} and NIX_LDFLAGS iirc
jonreeve has joined #nixos
<tobiasBora> sphalerite: hum... i tried but still, only root has access to the packages
<sphalerite> tobiasBora: M-: (require 'package-name) should work for all users I think?
<sphalerite> need to go home now, back in ~20min
mounty1 has quit [Ping timeout: 272 seconds]
<tobiasBora> sphalerite: tried "(require 'magit)", error
tzemanovic has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @countingsort opened pull request #46498 → bunny: 1.2 -> 1.3 → https://git.io/fAVh9
bobvanderlindenn has joined #nixos
mpu has joined #nixos
mayhewluke has quit [Ping timeout: 240 seconds]
knupfer has quit [Ping timeout: 240 seconds]
mayhewluke has joined #nixos
patrl has quit [Quit: WeeChat 2.0]
Thra11 has quit [Ping timeout: 246 seconds]
rihards has quit [Quit: rihards]
semilattice has quit [Ping timeout: 244 seconds]
<bkchr[m]> Hi, does anyone has an idea what could lead to `error: path '/nix/store/j38h2nkas76lpzm41sq9pibyyq9hl0sz-cargo-vendor-0.1.16-vendor' is not valid`
<bkchr[m]> Sound similar to the following issue: https://github.com/NixOS/nix/issues/2310
<{^_^}> nix#2310 (by symphorien, 6 weeks ago, open): build fails with "path is not valid" with multiple output derivation and disallowedRequisites
<bkchr[m]> But I don't use any disallowedRequisities
Dedalo has joined #nixos
patrl has joined #nixos
devopsdeluxe has quit [Quit: ZNC 1.7.1 - https://znc.in]
<{^_^}> [nixpkgs] @hrdinka opened pull request #46499 → zsh: 5.6 -> 5.6.1 → https://git.io/fAweE
<bkchr[m]> Does a derivation needs to reference something of the buildinputs, or otherwise it will be deleted?
<{^_^}> [nixpkgs] @hrdinka closed pull request #46452 → zsh: apply upstream fix from 5.6.1 → https://git.io/fAanp
<sphalerite> bkchr[m]: are you using distributed builds and IFD?
<{^_^}> [nixpkgs] @xeji merged pull request #46498 → bunny: 1.2 -> 1.3 → https://git.io/fAVh9
<{^_^}> [nixpkgs] @xeji pushed commit from @countingsort to master « bunny: 1.2 -> 1.3 (#46498) »: https://git.io/fAwej
<bkchr[m]> sphalerite: IFD?
<sphalerite> bkchr[m]: import-from-derivation
<bkchr[m]> And no, I don't use any distributed build
devopsdeluxe has joined #nixos
<sphalerite> tobiasBora: `nix-shell -p 'emacsWithPackages (ps: [ ps.magit ])' --run emacs`, then M-: (require 'magit) works for me
<sphalerite> tobiasBora: maybe you have a .emacs which stops it from working?
<sphalerite> tobiasBora: maybe it works if you use emacs -q?
<bkchr[m]> sphalerite: can you give me an example of IFD?
<{^_^}> [nixpkgs] @xeji pushed 22 commits to master: https://git.io/fAwvc
<{^_^}> [nixpkgs] @xeji merged pull request #46497 → Add licenses → https://git.io/fAVpr
semilattice has joined #nixos
<sphalerite> bkchr[m]: importing a file that's in a derivation's output or similar. But if you're not using distributed builds that's not the problem
<sphalerite> ,ifd
<sphalerite> huh I thought we had a factoid for it
<samueldr> ,IFD
<{^_^}> import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2
<mightybyte> If I have a nix cache on a local network, can I sign things with a key named, say "192.168.1.5-1:..."?
<mightybyte> When nix validates signatures does it make sure that the hostname for the server matches the signing key?
<{^_^}> [nixpkgs] @timokau pushed 2 commits to release-18.09: https://git.io/fAwvi
<{^_^}> [nixpkgs] @xeji merged pull request #46484 → lxqt: move contents of base, core and optional to parent directory → https://git.io/fAVYd
<{^_^}> [nixpkgs] @xeji pushed commit from @romildo to master « lxqt: mv contents of base, core and optional to parent directory (#46484) »: https://git.io/fAwv9
<mudri> What's the `"n"` doing in that example?
grp has quit [Quit: box shutting down...]
halfbit has joined #nixos
<bkchr[m]> sphalerite: any idea what I could debug?
<sphalerite> mightybyte: no, the name of the key is just to work out which key a signature corresponds to
rouma has joined #nixos
<sphalerite> bkchr[m]: what are you running that gives you this error?
fragamus has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @xeji pushed commit from @romildo to release-18.09 « lxqt: mv contents of base, core and optional to parent directory (#46484) »: https://git.io/fAwfv
<mightybyte> sphalerite: Ok, thanks.
<bkchr[m]> sphalerite: https://pastebin.com/aicUgRpB fetchcargo.nix is the problem
<sphalerite> bkchr[m]: which nixpkgs rev is this based on, so I can apply it cleanly?
georges-duperon has joined #nixos
<symphorien> mudri: it is the name of the file created by writeText
<symphorien> bkchr[m]: you might be interested in https://github.com/NixOS/nixpkgs/pull/46362
<{^_^}> #46362 (by symphorien, 2 days ago, open): Non broken fetchcargo
<mudri> symphorien: Aah, so it has no effect on the example, basically?
<symphorien> no I don't think so
lawlesseel has quit [Ping timeout: 256 seconds]
<bkchr[m]> symphorien: hmm, the `.cargo/config` in your example has the same problem as in current master
<bkchr[m]> I want to build a project that uses `patch.crates.io`
semilattice has quit [Ping timeout: 245 seconds]
<bkchr[m]> besides that, it looks good
nckx has quit [Quit: Updating my GNU GuixSD server — gnu.org/s/guix]
__monty__ is now known as toonn
cnidario has joined #nixos
simukis has quit [Quit: simukis]
<symphorien> ah right I recall, you had problems with --merge-source
nckx has joined #nixos
sbdchd has quit [Remote host closed the connection]
<bkchr[m]> No, I could solve this. Maybe I'm wrong. I currently test your commit
<bkchr[m]> As you have written in your comments, you preserve the generated `config`
orivej has quit [Ping timeout: 245 seconds]
jonreeve has quit [Ping timeout: 244 seconds]
Acou_Bass has joined #nixos
georges-duperon has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @xeji opened pull request #46500 → pythonPackages.pytestflakes: fix build → https://git.io/fAwU6
nuncanada has joined #nixos
nuncanada has quit [Client Quit]
sbdchd has joined #nixos
<mightybyte> I'm trying to serve my nix store using nix-serve, but it's telling me that it doesn't have a valid signature.
<mightybyte> ...which is weird because `nix path-info --sigs` shows that the package is signed.
<mightybyte> Any idea how to debug this?
toonn has quit [Read error: Connection reset by peer]
<vaibhavsagar> mightybyte: which version of nix-serve are you using, on which OS?
joepie91 has quit [Ping timeout: 252 seconds]
<mightybyte> vaibhavsagar: nix-serve-0.2 on macOS
toonn has joined #nixos
<vaibhavsagar> hmm, I can't help much with macOS, but maybe this is nix 1.11/2 weirdness?
<bkchr[m]> symphorien: okay, your patch looks good. Why did I not found that earlier :(
<mightybyte> vaibhavsagar: This is a brand new machine as of last week and it has nix 2.1.
<vaibhavsagar> no, I mean the version of nix-serve
<elvishjerricco> mightybyte: Does nix-serve actually serve signatures?
<mightybyte> elvishjerricco: How can I find out?
<symphorien> bkchr[m]: well I wrote it yesterday :)
lawlesseel has joined #nixos
<vaibhavsagar> mightybyte: see https://github.com/NixOS/nixpkgs/pull/37459, could this be your issue?
<{^_^}> #37459 (by zimbatm, 24 weeks ago, merged): nix-serve: patch for nix 2.0
<vaibhavsagar> it doesn't look like this change is in 18.03
<mightybyte> Hmmm, I suppose that's possible.
<elvishjerricco> mightybyte: Looking at the code for nix-serve, it looks like it constructs responses manually
<elvishjerricco> mightybyte: Looks like it signs paths itself
<elvishjerricco> Using the `NIX_SECRET_KEY_FILE` env variable
<mightybyte> Ahhh, let me try that
<elvishjerricco> mightybyte: Might be easier to just nginx a `file://` store
nuncanada has joined #nixos
<elvishjerricco> Oh but no, you want it serve your whole nix store, not just a manually constructed cache
<bkchr[m]> symphorien: And I have done my stuff today :D
<{^_^}> [nixpkgs] @Mic92 merged pull request #46437 → opentracker: 2016-10-02 -> 2018-05-26 → https://git.io/fAaL4
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fAwTa
<mightybyte> elvishjerricco: Right
jperras has joined #nixos
nuncanada has quit [Client Quit]
<elvishjerricco> I'm not a fan of this program, looking at its source...
sigmundv has joined #nixos
<mightybyte> Yeah, I'm not either. It uses some perl starman server.
toonn has quit [Remote host closed the connection]
toonn has joined #nixos
mounty1 has joined #nixos
<mightybyte> When I curled a .narinfo before I didn't get any Sig field.
<elvishjerricco> mightybyte: Right, because you didn't have that env variable set
<mightybyte> Now when I run it with NIX_SECRET_KEY_FILE=..., it does give a sig.
<elvishjerricco> It only returns that field if the env variable is set and it can use it to make a sig
<mightybyte> But it still says not a valid signature.
<elvishjerricco> Hm. And that secret key's public key is trusted on your machine?
joepie91 has joined #nixos
<mightybyte> Yeah
joepie91 has quit [Changing host]
joepie91 has joined #nixos
bobvanderlindenn has quit [Ping timeout: 252 seconds]
<elvishjerricco> Strange... Try `nix path-info --store https://the-server some-nix-path --json`
<elvishjerricco> er, I guess you're probably using HTTP
<elvishjerricco> not HTTPS
<mightybyte> Yeah
<elvishjerricco> Still should be fine
<mightybyte> "Cannot import ..., since path ... is not valid"
<elvishjerricco> Well that is a different issue... Do you have an absolute /nix/store path you can test with?
<mightybyte> Oh, oops I forgot to put that.
<rawtaz> silly question perhaps but isnt it inconsistent that the package to install is named open-vm-tools but the option is service.vmwareGuest.* ?
Piece_Maker has joined #nixos
<mightybyte> elvishjerricco: That returns a JSON object.
jonreeve has joined #nixos
<elvishjerricco> mightybyte: Sorry, `--sigs`, not `--json`
<elvishjerricco> I just default to `--json | jq .` for pretty, fuller info :P
<mightybyte> Yep, that shows the sig
<elvishjerricco> Ok. So then the server is doing everything right.
<elvishjerricco> If there's an issue, it's on the client.
<mightybyte> Hrm
Acou_Bass has quit [Ping timeout: 252 seconds]
Piece_Maker is now known as Acou_Bass
<elvishjerricco> assuming that signature actually verifies that path... Which I guess I don't know for sure that it does
<mightybyte> The server is outputting a message "warning: the group 'nixbld' specified in 'build-users-group' does not exist
<Mic92_> Is there something that can generated a sandbox-enabled nix.conf on non-nixos systems?
<elvishjerricco> mightybyte: Huh. That doesn't sound like a big deal, but it might be worth coming back to later
<elvishjerricco> mightybyte: So what operation on the client is failing?
jonreeve has quit [Ping timeout: 252 seconds]
<mightybyte> Mic92_: I installed nix last week and the installer defaults to single user mode
jasongrossman has quit [Ping timeout: 240 seconds]
<Mic92_> mightybyte: then you might want to check your /etc/nix/nix.conf
<mightybyte> I already did
<mightybyte> elvishjerricco: It's a `nix-build`
<Mic92_> nevermind /bin/sh in extra-sandbox-paths is no longer required, that makes non-nixos sandboxes easy.
<elvishjerricco> mightybyte: So it's trying to substitute a path from the server, and complaining about a signature? Huh.
<elvishjerricco> And you also can't manually `nix copy --from http://theserver /nix/store/apath`?
Mateon1 has quit [Ping timeout: 245 seconds]
Mateon1 has joined #nixos
Denommus has quit [Ping timeout: 245 seconds]
<mightybyte> Yeah, I think I had this problem before when I was trying to use nix-serve.
<mightybyte> The nix copy worked.
<elvishjerricco> Oh
<mightybyte> Oh, now it's working.
<elvishjerricco> hah
<elvishjerricco> wut
<mightybyte> I bet it was the local cache
<elvishjerricco> yea
<elvishjerricco> the ~/.cache/nix/binary-cache-whatever.sqlite
<{^_^}> [nixpkgs] @xeji merged pull request #46173 → gitAndTools.svn-all-fast-export: 1.0.12 -> 1.0.13 → https://git.io/fAuaM
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « gitAndTools.svn-all-fast-export: 1.0.12 -> 1.0.13 (#46173) »: https://git.io/fAwIK
<elvishjerricco> Man that file is annoying sometimes...
<mightybyte> Yeah, let me wipe out ~/.cache/nix and see what happens.
Guanin_ has quit [Ping timeout: 252 seconds]
<mightybyte> Grrrr, still broken
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « papirus-icon-theme: 20180401 -> 20180816 (#46230) »: https://git.io/fAwIS
<{^_^}> [nixpkgs] @xeji merged pull request #46230 → papirus-icon-theme: 20180401 -> 20180816 → https://git.io/fAztc
<mightybyte> Where else does it cache things?
Ariakenom has quit [Quit: Leaving]
johanot has quit [Quit: leaving]
drp has quit [Remote host closed the connection]
toonn has quit [Quit: leaving]
drp` has joined #nixos
<elvishjerricco> mightybyte: Things like that? No where else, especially in single user mode
<mightybyte> Well, my client machine isn't in single user mode.
<elvishjerricco> oh
<elvishjerricco> then check root's ~/.cache/nix
<mightybyte> The cache machine is the one that I just set up.
<mightybyte> Ahhh, good point.
<{^_^}> [nixpkgs] @xeji merged pull request #46239 → mate.mate-session-manager: 1.20.1 -> 1.21.0 → https://git.io/fAzO0
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mate.mate-session-manager: 1.20.1 -> 1.21.0 (#46239) »: https://git.io/fAwL3
cnidario has quit [Remote host closed the connection]
<elvishjerricco> mightybyte: That fix it?
vaibhavsagar has quit [Ping timeout: 245 seconds]
<mightybyte> elvishjerricco: Yep, that fixed it. Thanks!
<elvishjerricco> sweet
<mightybyte> Wow, a local cache helps hugely.
fxer has joined #nixos
<mightybyte> A build of one of our projects took 17 minutes using our AWS cache over ssh. It took 8 minutes over our local network with http.
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<{^_^}> [nixpkgs] @vcunat pushed 4 commits to release-18.03: https://git.io/fAwtu
<{^_^}> [nixpkgs] @vcunat merged pull request #46417 → [18.03] firefox{,-bin} 61.0.2 -> 62.0, firefox-esr: 60.1.0esr -> 60.2.esr → https://git.io/fA2b1
<{^_^}> [nixpkgs] @LnL7 opened pull request #46501 → perl-Module-Build-XSUtil: fix darwin build → https://git.io/fAwt1
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<elvishjerricco> mightybyte: Yea that's not surprising. These days I share most of my system config between my desktop and laptop. Rather than rebuilding everything, I just try to copy over ethernet from desktop to laptop. Works super fast
<clever> elvishjerricco: i have my hydra building the config for some of my machines
<kalbasit[m]> On the wiki https://nixos.wiki/wiki/Nix#Sandboxing I see `This includes access to the network during the build outside of fetch* functions`, where is the condition to allow `fetch*` functions to have network?
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAwqY
<{^_^}> [nixpkgs] @Mic92 merged pull request #46496 → vimPlugins: Fix update.py, add/update plugins → https://git.io/fAVNe
<clever> kalbasit[m]: only a derivation that has all 3 of: outputHashMode, outputHashAlgo, and outputHash, can get network access during a build
<clever> kalbasit[m]: and nix will enforce that the hash of $out matches the declared outputHash
<kalbasit[m]> oh I see
<clever> if the hash doesnt match, the build is considered to have failed
tzemanovic has joined #nixos
<clever> outputHashMode = "flat"; means that $out is just a bare file, and the hash is over the file itself
<{^_^}> [nixpkgs] @volth opened pull request #46502 → [wip] libvirt: 4.5.0 -> 4.7.0 → https://git.io/fAwq4
<kalbasit[m]> clever: I'm trying to debug why https://github.com/NixOS/nixpkgs/blob/e8e4e9c2481f79c059d4f8400c5e707f636b5320/pkgs/build-support/build-bazel-package/default.nix#L13-L54 does not get network access, so my first thought was to extract the entire `deps` into a new fetchbazel derivation but it did not work
<kalbasit[m]> do you see something obvious that makes it fail?
<clever> outputHashMode = "recursive"; allows $out to be a file, directory, or even symlink, and the hash is over the NAR of the output (nix-store --dump)
<clever> kalbasit[m]: is the hash on line 53 valid?, there was a bug that allowed an empty string, and some people have abused that
<clever> nix2 now rejects that
<kalbasit[m]> clever: yes, I currently have it set like this `sha256 = "0000000000000000000000000000000000000000000000000000"; `
<kalbasit[m]> to force it to fail to get the actual hash
<clever> and can you pastebin the full console output when the build fails?
<kalbasit[m]> sure one sec
<kalbasit[m]> clever: I'm getting the same error as mpickering here https://discourse.nixos.org/t/bazel-and-rules-go-packaging/754
<clever> that sounds like the network is working, but ssl isnt, due to a lack of /etc/
<kalbasit[m]> clever: I see, let me show you my current progress on adding ssl
<clever> fetchurl just disables cert checking when downloading
<sphalerite> should setting keep-going = true in /etc/nix/nix.conf work? Because it doesn't (but it also doesn't complain about an unknown option) for me
sbdchd has quit [Remote host closed the connection]
<kalbasit[m]> clever: `GIT_SSL_CAINFO` does not work!
<kalbasit[m]> copied this logic from fetchgit
<adamantium> clever: How hard would it be for us to modify nixos grub generation for zfs users to recognize datasets in $POOL/ROOT/ and autogenerate menu entries (in a boot env submenu?) for each dataset upon every nixos-switch?
<adamantium> I mean, doing it the right way, modifying the nix files ...
<adamantium> yeah ,i 'm actually alreayd on that page.
jdcken has quit [Quit: Page closed]
<adamantium> is perl err common in nix world ?
goibhniu has quit [Ping timeout: 252 seconds]
<clever> sphalerite: when nix-daemon is parsing the protocol to read from nix-build, it will overwrite the setting with what nix-build passed
<sphalerite> clever: and nix-build doesn't use nix.conf?
<clever> and nix-build probably ignores the config, and goes entirely on the presense (or lack) of the flag
<sphalerite> poo
<catern> hey #nixos! Is there a Nix framework for managing ZSH configs?
<catern> There's a few NixOS modules but nothing independent of NixOS
<clever> sphalerite: hmmm, nix-build will copy it, from its own settings object...
<sphalerite> catern: not really. IMHO: You don't need a framework for managing your zsh config.
<sphalerite> catern: just source a couple of things.
<clever> i suspect that overwrites the settings, after loading nix.conf
<rawtaz> grr, how can you get vmware fusion folder sharing working in nixos? i've added open-vm-tools-headless to the system packages, service.vmwareGuest.enable=true and .headless=true to the config, did a rebuild and rebooted. the service fails to start though, there's a bunch of errors in the log for it. has anyone gotten this working, for starters?
<adamantium> clever: if we can make nixos-rebuild switch additionally autogenerate boot environment entries, then the proper path would be to force beadm (or other) scripts to execute nixos-rebuild switch anytime it is needed, correct? e.g. beadm create/destroy/rename/etc foo.
<kalbasit[m]> clever: so is there a way to put `/etc/ssl` to a derivation buildPhase?
<clever> kalbasit[m]: it would have to be done with either libredirect or nix.conf
<kalbasit[m]> I see, so it's not something that would go in nixpkgs build-support derivation
<clever> kalbasit[m]: libredirect could be added to that expression fairly easily
<sphalerite> adamantium: I don't think so, this seems more like something that should be done by nixos-rebuild
<sphalerite> I'm not familiar with beadm/zfs boot environments though
<sphalerite> so I may well be wrong
<kalbasit[m]> clever: ok I'll grep for some examples
<sphalerite> adamantium: almost certainly not nixos-rebuild switch though, as opposed to nixos-rebuild boot
<adamantium> sphalerite: ok, nixos-rebuild boot only does boot things I take it, that is new to me now. I only have noticed everytime switch is executed, that grub gets updated, but i take it the "switch" also runs "boot"
semilattice has joined #nixos
<adamantium> So switch is heavy-handed, nixos-rebuild boot is what a script like beadm would want to call in the case of updating our grub menu for the user?
<clever> adamantium: switch is just boot+test, boot only updates the bootloader, and test only activates it
<catern> sphalerite: but what if I want to build my zsh config with Nix?
<sphalerite> adamantium: essentially, yes. nixos-rebuild boot means "build the current configuration.nix from the current nixpkgs, create a new system profile generation from the result, and regenerate the bootloader config"
<catern> sphalerite: there doesn't seem to be a way to build a zsh file which is then automatically sourced by the "zsh" binary, which I could put Nix paths into
<sphalerite> adamantium: while nixos-rebuild switch means "do all that, and switch the running system over to the new config too"
<adamantium> oh wow
<adamantium> hmm
<sphalerite> catern: environment.etc.zshrc.contents = ''...''; in nixos, some equivalent for ~/.zshrc in home-manager?
<adamantium> some-what similar to the idea of beadm activate.
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite> adamantium: I don't really know what the scope of beadm is but I suspect it overlaps with that of nixos-rebuild
fyber has joined #nixos
fyber has quit [Client Quit]
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/747500e0cf9 (from 35 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<adamantium> The idea is the same, robust rollbacks. The approach is much different.
fyber has joined #nixos
fyber has quit [Client Quit]
<adamantium> it would be excellent to support both approaches in a seamless manner.
fyber has joined #nixos
<rawtaz> anyone seen this or know what to do about it? https://pastebin.com/mx0DKRZR
<rawtaz> it's from the open-vm-tools log
<rawtaz> the file /etc/os-release does exist and contains accurate info
jluttine has quit [Ping timeout: 252 seconds]
<infinisil> Functional people: Should "x" be a free variable of `with y; x`?
<sphalerite> rawtaz: and also tries /usr/bin/lsb_release -sd
jluttine has joined #nixos
<infinisil> Because it's possible to "override" any x in y by doing `let x = 10; in with y; x`
carlosdagos has joined #nixos
erasmas has quit [Quit: leaving]
<sphalerite> infinisil: I'd say up to you, consider the practical implications of each option, make a decision, and document that decision
<rawtaz> sphalerite: it does seem to try it, see like 1333
<rawtaz> line*
<rawtaz> thats why nixos creates this file, otherwise it probably wouldnt
<sphalerite> oh yeah so it does
<infinisil> Hmm..
<adamantium> What is the difference between boot.extraGrubEntries and boot.extraGrubEntriesBeforeNixos ?
<rawtaz> hm i wonder if it could be some permission thing. it does go to the bail label in the code
<rawtaz> nope the file is readable by everyone
<infinisil> I think it's more practical for what I do for x to indeed be included in `with y; x`'s free vars
<sphalerite> rawtaz: nope it looks like the problem is that nixos's version string is too long for it or something
<infinisil> Then it means "x *may* change the result"
<adamantium> sphalerite: does "nixos-rebuild boot" take effect on reboot, new entries will be immediately available for the user to choose?
<infinisil> So it's equivalent to "the expression is dependent on the value of x"
<sphalerite> adamantium: yes
<adamantium> k
<elvishjerricco> infinisil: Scoping issues like that are the reason I hate `with` altogether...
<elvishjerricco> There is no intuitive answer
<infinisil> I have convinced that the answer is that x should be in the free variables, because then it means the thing with "*might* depend on"
<adamantium> Okay, a simple grub menuentry stanza like this: https://paste.debian.net/plain/1041730 How does it know which zfs dataset my root filesystem is on? I see it uses --label zroot (my pool name), but how does it know what filesystem root is on.
<infinisil> elvishjerricco: I mean, `with` is very useful though, I wouldn't want to type out lib. all the time, or pkgs., or types.
<infinisil> On the language level it is a bit of a mess though
<adamantium> how does it know what s/filesystem/dataset/g root is on?
<elvishjerricco> infinisil: I do prefer to type out lib.foo all the time. Much clearer to me. Now, lib.types.foo is a bit much, but that's what `let inherit (lib) types;` is for.
<rawtaz> sphalerite: thought i'd just try changing the values in the strings in that file, but apparently you cant edit files on that static path.. regardless, the distro names buffer is 1024 chars, should be plenty. not sure what the corresponding MAX_OS_FULLNAME_LEN is though
<adamantium> on other distros, typically you specificy root=zfs and it will use the bootfs= property, or you specify where root filesystem is exactly, like root=zfs:zroot/ROOT/foo
<adamantium> I'm confused, how nixos finds the '/' filesystem based on the above linked generated nix menuentry
graphene has quit [Remote host closed the connection]
<infinisil> elvishjerricco: Ah, hmm.. Good point. You can always reduce "x.y.z....s.t" to just "s.t"
<elvishjerricco> infinisil: So wait, if x is in the free variables, then `let x = {}; in with { x = []; }; x` will return {}?
<adamantium> I keep using the word filesystem instead of dataset, sorry.
<infinisil> elvishjerricco: Yeah
<infinisil> > let x = {}; in with { x = []; }; x
<{^_^}> { }
<elvishjerricco> Yuck. If I *had* to choose one, I'd want `with` to always override previous bindings because that's how scoping is supposed to work. But I'd rather just have no `with` :P
graphene has joined #nixos
<elvishjerricco> I don't even wanna know how all this interacts with `rec {` :P
<infinisil> elvishjerricco: Yeah, I thought `with` worked like this at the beginning..
<infinisil> Eh, rec isn't too bad
<elvishjerricco> infinisil: Even that is unintuitive though because it can leave you wondering why your clearly visible let binding isn't working.
<elvishjerricco> O dpm
<infinisil> Did you know:
<elvishjerricco> whoa, hand was one key too far to the right :P
jonreeve has joined #nixos
<elvishjerricco> I don't know how `rec` works actually
<infinisil> > ({ z ? { inherit x; }, x ? y.z, }@y: y) {}
<{^_^}> { }
<adamantium> clever: what is nixos using to generate initramfs ?
<infinisil> That this works ^^^
<elvishjerricco> infinisil: I did know that, and it's infuriating :P
<infinisil> A rather weird piece of code that is
<sphalerite> adamantium: a shell script
<elvishjerricco> oh wait, you mean the ability to reference the @ binding from the pattern match bindings. I did NOT know that
<adamantium> clever: do you know how does a grub entry as generated like this https://paste.debian.net/plain/1041730 find the root= dataset? It somehow knows to find my zroot/ROOT/nixos and i dont know how because i do not have the bootfs property set.
<adamantium> sphalerite: where can i find the script
<elvishjerricco> still, the fact that { x ? {} }@y can result in y not having x is super annoying
<infinisil> elvishjerricco: Heh yeah, just discovered this today
<sphalerite> ,find make-initrd.sh
<sphalerite> adamantium: ^
<adamantium> ty
<infinisil> elvishjerricco: Wait, let's go to #nix-lang
<elvishjerricco> oh yea
<sphalerite> adamantium: most of the interesting stuff isn't in there though, that's literally just taking all the files and sticking them into an initrd
<adamantium> wheres the interestingt stuff
<sphalerite> adamantium: the magic happens in the nix file that calls it and various stuff in nixpkgs/nixos/modules/system/boot
<sphalerite> ,find make-initrd.nix
<adamantium> time to clone the repo and use grep i guess
<kalbasit[m]> clever: so LD_PRELOAD does not work because Bazel clears it (https://bazel.googlesource.com/bazel/+/master/src/main/cpp/blaze.cc#1444) so I'm not sure how libredirect would help in this case, any other ideas?
<sphalerite> adamantium: depending on what you're looking for, stage-1-init.sh might be particularly relevant to your interests
<sphalerite> ,find stage-1-init.s
<{^_^}> Couldn't find any such files
<sphalerite> ,find stage-1-init.sh
jperras has quit [Ping timeout: 252 seconds]
<kalbasit[m]> clever: do you think an FHS would help in this case?
hamishmack has joined #nixos
<adamantium> Anyone know what is the difference between boot.extraGrubEntries and boot.extraGrubEntriesBeforeNixos ?
<adamantium> Does ...BeforeNixos insert entries to the top of the list?
<sphalerite> yep
<adamantium> and the other, appends
<sphalerite> yep
<adamantium> is it possible to build a submenu with the appendag
<adamantium> using this option.
<sphalerite> should be.
<adamantium> Does it use source
<adamantium> or does it insert into the one and only grub.cfg
<sphalerite> I think it just inserts it into grub.cfg
<adamantium> good.
<adamantium> source can have bugs.
<adamantium> Thanks!!
fxer has quit [Ping timeout: 272 seconds]
slack1256 has joined #nixos
nicko_h has joined #nixos
<adamantium> sphalerite: do you happen to know what systemConfig or init does on the grub menuentries? I've never really noticed those before.
<adamantium> i'm kinda poking around in the directories
<sphalerit> adamantium: init tells the stage 1 init what to exec after switching root
<sphalerit> systemConfig is the top-level system path iirc
<sphalerit> Not sure how it's used, probably by stage 1 as well though
<sphalerit> Anyway time for me to sleep now, gnight
<adamantium> thanks
patrl has quit [Ping timeout: 245 seconds]