gchristensen changed the topic of #nixos to: The Nix Ecosystem, https://nixos.org | NixOS: https://nixos.org/nixos/download.html | Nix: https://nixos.org/nix/download.html | Logs: https://logs.nix.samueldr.com/nixos/ | #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
<pie_> well this sucks https://stackoverflow.com/questions/16132163/using-less-as-gdb-pager *tries to do something with the huge overflowing variable blobs*
<nh2> pie_: just disable the paging, it's annoying anyway. You can scroll in your terminal
<pie_> its the line breaks that suck
<nh2> `set pagination off`
<nh2> pie_: a simple solution is to disable pagination, and copy the output into your viewing application of choice
<pie_> hm
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<pie_> I think I need to learn more gdb :/ x'D https://bpaste.net/show/PtvA
justanotheruser has joined #nixos
<pie_> well. this is progress in any case. thanks
<nh2> pie_: hmm, for those line breaks, I'm not sure
Supersonic has quit [Quit: Bye]
m0rphism has quit [Ping timeout: 244 seconds]
<pie_> nh2 those arent actually there, i was just hoping to get something thats more readable somehow
<{^_^}> [nixpkgs] @jonringer opened pull request #66498 → librelp: 1.3.0 -> 1.4.0 → https://git.io/fj5eD
<pie_> but looks like its either ?pretty printed + extra line breaking? or you get a big blob
Supersonic has joined #nixos
<pie_> do you know if there's a way to disable only the optimizations that result in variables being <optimized out> without disabling all optimizations?
ng0 has quit [Quit: Alexa, when is the end of world?]
Supersonic has quit [Client Quit]
<nh2> dtz matthewbauer Ericson2314 clever: I have this big blocker problem currently for musl builds:
<nh2> Any idea?
<nh2> When I override `curl` in an overlay, while also adding a `fetchpatch` to the proper `libdrm/default.nix`, then the the fetchpatch causes `curl` to build and fail with linker error. That is because while it does build the curl from my overlay, it seems to ignore what I've given in `.override` (e.g. I give `gssSupport = false`, but inside e.g. `configurePhase` it's still `true` again).
Supersonic has joined #nixos
selfsymmetric-mu has left #nixos ["gone to the land of dead hiccups and extinguished light bulbs"]
<nh2> I basically do
<nh2> `curl = (previous.curl.override { gssSupport = false; }).overrideAttrs (old: { makeFlags = ["V=1"] })`
<nh2> and the `V=1` is in effect, but the `gssSupport = false` is not.
___laika has quit [Ping timeout: 276 seconds]
___laika has joined #nixos
drakonis has quit [Quit: WeeChat 2.5]
<pie_> ok -Og is a thing, so i probably want that
<pie_> nh2 is it possible something is being accessed like super and not self somewhere?
<pie_> let me rephrase, are things keeping the reference to the old curl?
<pie_> hm ok you said it _does_ build your curl
<pie_> nh2, are there let expressions involved?
<pie_> things might be evaluated before your .override such that they are no longer substituted?
drakonis has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fj5vv
<pie_> I guess that depends on how makeoverridable works...
<pie_> nevermind?:
<pie_> let f = lib.makeOverridable ({arg ? 1}: let myVar = arg; in "${builtins.toString myVar}"); in (f { arg = 2; })
<pie_> > let f = lib.makeOverridable ({arg ? 1}: let myVar = arg; in "${builtins.toString myVar}"); in (f { arg = 2; })
<{^_^}> "2"
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/fj5vJ
<{^_^}> [nixpkgs] @Ma27 merged pull request #66403 → scala_2_12: 2.12.8 -> 2.12.9 → https://git.io/fj70y
ris has quit [Ping timeout: 276 seconds]
not_a_robot has quit [Remote host closed the connection]
<pie_> nh2 why do you think gss is still enabled?
<nh2> pie_: one moment, I'm making a repro
m0rphism has joined #nixos
pie_ has quit [Remote host closed the connection]
vika_nezrimaya has quit [Ping timeout: 245 seconds]
drakonis has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @Ma27 pushed commit from @volth to release-19.03 « scala_2_12: 2.12.8 -> 2.12.9 »: https://git.io/fj5vm
pie_ has joined #nixos
<pie_> sorry, back
<nh2> pie_: Your example is too minimal. My problem requires that `fetchpatch` be involved in another package
<nh2> pie_: you can check out the repro I just posted above if you like
<pie_> ok
<pie_> ive never used fetchpatch, what does it look like for you?
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #66500 → warzone: 3.2.3 -> 3.3.0_beta1 → https://git.io/fj5v3
<pie_> oh i found it
<{^_^}> [nixpkgs] @bendlas pushed to master « systemtap: 4.0 -> 4.1 »: https://git.io/fj5vZ
<pie_> nh2: are you sure that argument is coming from curl?
<{^_^}> [nixpkgs] @bendlas pushed to master « stdenv: document dontFixup »: https://git.io/fj5vn
<{^_^}> [nixpkgs] @bendlas pushed 2 commits to master: https://git.io/fj5vc
<nh2> pie_: which argument?
drakonis has joined #nixos
<{^_^}> [nixpkgs] @bendlas pushed to master « emacsPackages.melpaPackages: fix cmake-mode »: https://git.io/fj5vC
<infinisil> nh2: Not sure, but curl is a bit special in that a modified version is used for pkgs.fetchurl
<infinisil> nh2: See all-packages.nix line ~276
<infinisil> There buildPackages.curl is used with gssSupport overwritten
szicari has quit [Ping timeout: 276 seconds]
<drakonis> is there any particular reason why the systemd ntp daemon is breaking?
<gchristensen> is there any particular way it is breaking?
___laika has quit [Ping timeout: 248 seconds]
<drakonis> Aug 11 21:58:14 nix systemd[1]: systemd-timesyncd.service: Start request repeated too quickly.
<drakonis> on rebuild
<nh2> drakonis: then you need to look into `journalctl -u systemd-timesyncd -e` to check what made it shut down repeatedly, or `systemctl status` to see the status code / exit reason if there are no log messages
<nh2> infinisil: that place certainly seems to be very involved in the problem, if I set `gssSupport = false;` then it's false in my build
<drakonis> Aug 11 21:59:40 nix systemd[30115]: systemd-timesyncd.service: Failed to set up special execution directory in /var/lib: Not a directory
<drakonis> Aug 11 21:59:40 nix systemd[30115]: systemd-timesyncd.service: Failed at step STATE_DIRECTORY spawning /nix/store/md7jdq475ij8cpifxb5rrh7y51qrfypq-systemd-242/lib/systemd/systemd-timesyncd: Not a directory
<drakonis> there's the answer
<pie_> nh2: i mean maybe that gss argument it being set some other way than what is modified by the bool argument
<nh2> pie_: yes, I think the place that infinisil mentioned is simply overriding mine again
growpotk- has quit [Quit: ZNC 1.7.4 - https://znc.in]
szicari has joined #nixos
<{^_^}> #64922 (by yorickvP, 3 weeks ago, open): systemd-timesyncd fails at step STATE_DIRECTORY on semi-clean install
<infinisil> Apparently you removed stateVersion at some point :)
<drakonis> i have not
<drakonis> system.stateVersion = "19.09";
<drakonis> its set to 19.09 though
<infinisil> Ah, well you shouldn't have changed it then
<gchristensen> did you change it from 19.03?
<drakonis> i assume it is due to generating the config while on nixpkgs unstable
<drakonis> no
<drakonis> it was generated
<gchristensen> hrm
<infinisil> Huh
growpotk- has joined #nixos
<infinisil> Well you're supposed to have stateVersion set to the *initial* NixOS version you installed on the system
<drakonis> what if you're migrating from nix to nixos and you're running nixpkgs?
<infinisil> Then you haven't installed NixOS yet, so that should be the initial installation
steshaw has quit [Quit: Connection closed for inactivity]
<infinisil> Oxij says that this systemd-timesyncd stateVersion thing isn't really needed though: https://github.com/NixOS/nixpkgs/pull/65314#issuecomment-520118767
<infinisil> And I'd also think so when looking at the code
<gchristensen> I wonder why not just delete the timesync state
<{^_^}> [nixpkgs] @eadwu opened pull request #66501 → vscode-extensions.ms-python.python: 2019.6.24221 -> 2019.8.29288 → https://git.io/fj5v8
kleisli_ has joined #nixos
tgamblin has quit [Remote host closed the connection]
<drakonis> infinisil: my initial installation is 19.09
<drakonis> i set the state version back to 19.03 and its fine now
<infinisil> Huh weird
<infinisil> drakonis: Can you describe this in a comment in https://github.com/NixOS/nixpkgs/issues/64922?
<{^_^}> #64922 (by yorickvP, 3 weeks ago, open): systemd-timesyncd fails at step STATE_DIRECTORY on semi-clean install
<drakonis> yeah sure.
<drakonis> state version should be necessary for any software with sweeping changes between nix releases
<drakonis> anything liable to break if done automatically
<zmlww> `type unpackPhase` gives the default function instead of the overriden one I specified here: https://gist.github.com/zmlww/49d636eba32999e2a06aa1090a49066c when I run nix-shell on that expression. What am I doing wrong?
<gchristensen> I'm still a bit surprised timesyncd has state
<drakonis> aight i have done it
<drakonis> i'm not sure whether i have phrased it correctly
<gchristensen> how did you geta 19.09 installer?
<drakonis> nix defaults to nixpkgs
<drakonis> and nixpkgs defaults to whatever's the next release
<infinisil> drakonis: Ah, an in-place installer, what specifically?
<drakonis> lustrate
<drakonis> its a byproduct of nix on other distros defaulting to 19.09
<infinisil> I see
<infinisil> Man, but this just feels off, why would systemd need such a change
<drakonis> its one of the components
<gchristensen> +1
<drakonis> i'm using a very slim install right now, only basic components atm
<drakonis> so only this has come up so far
acarrico has quit [Ping timeout: 272 seconds]
<gchristensen> but not just that, why does it have state that needs migrating!
<pie_> zmlww: i think thats normal but idk how it works
<infinisil> There's discussion in https://github.com/systemd/systemd/issues/12131
<{^_^}> systemd/systemd#12131 (by kouros17, 19 weeks ago, closed): RFE: migrate StateDirectory= and friends back from DynamicUser=1 subdir to regular one if needed
<infinisil> Along with a commit that supposedly does an automatic migration
<nh2> infinisil: something seems special about `fetchurl` that it itself can't be overridden: `fetchurl = super.fetchurl.override {};` gives `value is a function while a set was expected`
stepcut has quit [Remote host closed the connection]
<pie_> zmlww: if you run nix show-derivation on it it should show the correct phase
<pie_> zmlww: well "normal"...
<infinisil> nh2: Oh right, can't override functions like that..
stepcut has joined #nixos
<drakonis> looks like they've dealt with it on the next systemd release cycle?
<drakonis> the state is probably storing local time in case of failure?
stepcut has quit [Remote host closed the connection]
<infinisil> nh2: Probably `fetchurl = args: super.fetchurl.override { ... } args` can work
stepcut has joined #nixos
<drakonis> what kind of state would a ntp daemon could possibly have other than that?
stepcut has quit [Remote host closed the connection]
<zmlww> pie_: But I was loading it into nix-shell to test it; how am I supposed to test my unpackPhase?
stepcut has joined #nixos
<pie_> zmlww: im also curious about the solution to this
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
<nh2> infinisil: doesn't work, and I think it can't, because `super.fetchurl` is a function taking `{ url, ... }`, not a derivation, so it doesn't have an .override attribute
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
<infinisil> Hm..
<ldlework> Anyone around that uses the `dotnet` cli tooling? Know a way around the issue that you can't install new dotnet tools because: Failed to create shell shim for tool 'dotnet-warp': Failed to create tool shim for command 'dotnet-warp': Access to the path '/home/ldlework/.dotnet/tools/dotnet-warp' is denied
stepcut has joined #nixos
<ldlework> Which I have full access too....
<gchristensen> why do you want to override fetchurl?
stepcut has quit [Remote host closed the connection]
<infinisil> nh2: Oh, the fetchurl derivation isn't callPackage'd
<infinisil> s/derivation/function
stepcut has joined #nixos
<pie_> gchristensen: why not :P
<nh2> gchristensen: https://github.com/NixOS/nixpkgs/issues/66499 has the problem from further up the chat written up
<{^_^}> #66499 (by nh2, 1 hour ago, open): curl overrides are discarded when pulled in via fetchpatch, but overrideAttrs are not
<infinisil> nh2: Try changing nixpkgs `fetchurl = import ../build-support/fetchurl` to `fetchurl = callPackage ...`
stepcut has quit [Remote host closed the connection]
<infinisil> I think it should then use __functor so you can both use .override on it directly but also call it
<infinisil> gchristensen: Usecase for __functor, right there ^^ :2
<gchristensen> I can't wait for you to start liking C++ too
stepcut has joined #nixos
* gchristensen kids
<nh2> infinisil: `callPackage` seems to make it work. Should that be changed this way?
<ornx> i have a python program that i would like to make into a nix package, is there a good example of a python program somewhere that i can use as a template for this?
<infinisil> Hehe
___laika has joined #nixos
<infinisil> nh2: Yeah I'd say so
<infinisil> Though I'm not sure what impact making fetchurl be a __functor will have
<ornx> thank you i will give that a look
<infinisil> nh2: gchristensen: Seeing the eval stats for that will be interesting
<pie_> ornx: you could try grepping nixpkgs for various instances of the things in there
<gchristensen> yes, yes it will
<pie_> (the solution is to make the evaluator fastor :P)
<gchristensen> looking forward to your PR, pie_ :)
<nh2> ornx: might want to grep for `buildPythonApplication` in nixpkgs for examples
<ornx> i see some of the examples of stdenv.mkDerivation and some have buildPythonApplication
<ornx> does buildPythonApplication make its own derivation?
<ornx> apologies if that is a stupid question
<nh2> ornx: yes, eventually all packages make a derivation, that's what makes it manifest as a directory in the nix store
<ornx> ahh i see!
orivej has quit [Ping timeout: 276 seconds]
<ornx> hm, so, i tried to run that buildPythonPackage example from https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/python.section.md by putting it in nixpkgs/applications/misc/rivalcfg/default.nix and doing nix-env -f blahblah -iA nixos.rivalcfg, and it complains with error: the expression selected by the selection path 'nixos.rivalcfg' should be a set but is a function
dl4mfo_ has joined #nixos
<clever> ornx: you probably also want to use `nix-build` when testing, not nix-env
<pie_> zmlww: well this was hard to find https://github.com/NixOS/nix/issues/456
<{^_^}> nix#456 (by berdario, 4 years ago, closed): phases aren't correctly updated
<infinisil> pie_: Hah "I updated the wiki"
<infinisil> Points to a broken link to the old wiki..
<zmlww> pie_: That worked and makes sense. Thanks for your investigative work :)
<infinisil> pie_: Wait, but the wiki link @berdario posted in the issue points to nixos.wiki
dl4mfo has quit [Ping timeout: 245 seconds]
<infinisil> Hweird
xkapastel has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @nh2 opened pull request #66503 → fetchurl: Make it overridable using `callPackage` → https://git.io/fj5vg
<nh2> infinisil: ^
jgt has quit [Ping timeout: 250 seconds]
<pie_> zmlww: good luck \o/ :D
<nh2> infinisil: how to judge whether the eval stats are good?
<infinisil> nh2: When ofborg finished evaluating you can click on the check result at the bottom
<pie_> zmlww: and now I also know how to deal with it instead of copy-pasting phases out of nix show-derivation :P
m0rphism has quit [Ping timeout: 272 seconds]
<zmlww> Yeah that's definitely jank :P
<infinisil> gchristensen: Oh um, testing on another PR, the "Evaluation Performance Report" link just points to https://nix.ci
<infinisil> nh2: Yeah so it might not be there after all ^
___laika has quit [Remote host closed the connection]
___laika has joined #nixos
steshaw has joined #nixos
orivej has joined #nixos
___laika has quit [Read error: Connection reset by peer]
___laika has joined #nixos
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/d3e64869359 (from 3 days ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
orivej has quit [Ping timeout: 246 seconds]
ottidmes has quit [Ping timeout: 245 seconds]
___laika has quit [Ping timeout: 276 seconds]
jgt has joined #nixos
alienpirate5 has joined #nixos
alienpirate5 has joined #nixos
alienpirate5 has quit [Changing host]
<{^_^}> [nixpkgs] @veprbl merged pull request #66117 → hepmc: 2.06.09 -> 2.06.10 → https://git.io/fjQJZ
<{^_^}> [nixpkgs] @veprbl pushed 3 commits to master: https://git.io/fj5vi
<{^_^}> [nixpkgs] @worldofpeace merged pull request #66435 → sigil: use qt5's mkDerivation → https://git.io/fj7o2
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fj5vX
phreedom has joined #nixos
_e has left #nixos ["WeeChat 2.4"]
<drakonis> alright
<drakonis> so, i'm looking to fix the module by making the registries customizable
<infinisil> (need some context for everybody else)
<drakonis> alright
<{^_^}> #54925 (by vdemeester, 27 weeks ago, open): Add a programs.podman module
<drakonis> this module is in a dire state and cannot be upstreamed as is
<drakonis> the defaults used in it are equivalent to the ones fedora ships
<infinisil> I wish I could link you to something that explains best practices for NixOS modules
<drakonis> we don't have that yet, do we?
<infinisil> I don't think so
<infinisil> There are some guides around, but I haven't found a good one
<drakonis> after your rfc gets pushed in, it would be a good time to have that down
<drakonis> to have the best practices guide down
<infinisil> Yea, rfcs#42 for reference
<{^_^}> https://github.com/NixOS/rfcs/pull/42 (by Infinisil, 20 weeks ago, open): [RFC 0042] NixOS config options
<infinisil> That talks about some aspects of it
<infinisil> One part of it is to not hardcode stuff
<infinisil> Provide high-level options that do stuff other distro's couldn't do
<infinisil> Like enableACME in nginx, that's top-notch NixOS banter
<{^_^}> [nixpkgs] @tadeokondrak opened pull request #66504 → discord-canary: 0.0.85 -> 0.0.91 → https://git.io/fj5vy
<infinisil> In the RFC I'm also explaining how options should be useful, and not just be there because copy-paste or whatever
<infinisil> drakonis: Then for service users, my latest recommendation is described here: https://github.com/NixOS/nixpkgs/pull/65698
<{^_^}> #65698 (by Infinisil, 1 week ago, open): [RFC] Away from static id's for services
<drakonis> very nice.
<drakonis> i expect an influx of new modules to come in after the rfc
<infinisil> Hehe, I'm not sure about that, I'm just hoping they'll be of higher quality
<infinisil> But fact is, most people don't seem to care a lot about that.. and I don't like it
jgt has quit [Ping timeout: 264 seconds]
<infinisil> The quality of the average NixOS module is.. worse than you'd like
<drakonis> i've noticed
<infinisil> Often when I want to use a module, I first look at the source code to see if it screws anything up
<infinisil> drakonis: Probably also a good resource is to look at the reviews of nixos modules I'm doing
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fj5vH
<{^_^}> [nixpkgs] @worldofpeace merged pull request #66497 → stm32loader: init at 0.5.0 → https://git.io/fj5eG
<infinisil> And aanderse also does good reviews of NixOS modules
<{^_^}> [nixpkgs] @jonringer opened pull request #66505 → libetpan: 1.8 -> 1.9.3 → https://git.io/fj5vQ
<drakonis> nice to have folks doing it
szicari has quit [Ping timeout: 250 seconds]
<infinisil> Seems like a lot of NixOS modules get written and PR'd, but then abandoned..
<infinisil> Maybe my reviews are too discouraging :P
<drakonis> people write oneshot modules and then leave it lying around
<drakonis> driveby PRs
<infinisil> Kinda yeah
<infinisil> Oh well
<Ralith> patchbys
justanotheruser has quit [Quit: WeeChat 2.4]
<nh2> infinisil: I think we should write some good instructions on how to write good services at some point. I regularly have to patch up existing services so that they have good behaviour, especially in respect to restaring in systemd for server systems that shall recover by themselves after problems
szicari has joined #nixos
<infinisil> nh2: I personally don't have much experience with this, can you give a really quick explanation for how to go about this?
<clever> one thing i should look into, to see if its ever been fixed, is the synergy services
mwc has quit [Quit: Lost terminal]
<clever> originally, it "just worked" because somebody had accidentally disabled xauth cookies, since basically day 1 of nixos having xorg support, lol
<clever> any user on the machine could connect to :0 and do anything
<clever> but somebody eventually fixed that bug, which broke synergy
<{^_^}> [nixpkgs] @worldofpeace merged pull request #66449 → nixos/ibus: do not default-install ibus-qt → https://git.io/fj7XL
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fj5vb
laalf has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
laalf has joined #nixos
<aanderse> hmm... taking a high quality module or two and then critiquing it bit by bit with comments on exactly why everything is the way it is would probably be valuable
<aanderse> valuable for copy/pasting, and valuable for understanding
<aanderse> also why haven't i written a mkDatabaseOption yet :-\
<drakonis> mkdatabaseoption?
tgamblin has joined #nixos
tgamblin has quit [Remote host closed the connection]
nexgen has quit [Quit: Leaving]
___laika has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #66389 → scribusUnstable: 2019-01-16 -> 1.5.5 → https://git.io/fj7l9
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fj5vh
<nh2> infinisil: For me common pain points are:
<nh2> * Systemd's default startup timer, that will stop trying to start a service after a couple of times. That means servers won't recover after, say, a 5 minute network outage. There are numerous pitfalls in making a systemd service truly try to restart forever, and showing how to do that would be useful.
<nh2> * Services that don't have `requiredBy = [ "multi-user.target "];` don't count to switch-configuration / nixops deploy failing on start failure, meaning stuff can silently fail, with you noticing only later (it is desirable that nixops deploy fails hard and with exit code if the service fails on first start)
<aanderse> drakonis: many modules require database connectivity and database.* is a very common pattern
<aanderse> name, user, passwordFile, etc... repeated again and again
<drakonis> ah i see
<aanderse> and inconsistency between modules
<aanderse> would be very nice to have a common naming convention, etc...
<nh2> infinisil gchristensen: Looks like for my PR, there's a performance report now: https://github.com/NixOS/nixpkgs/pull/66503/checks?check_run_id=190841061
<aanderse> and save all that code per module
<{^_^}> [nixpkgs] @worldofpeace merged pull request #66504 → discord-canary: 0.0.85 -> 0.0.91 → https://git.io/fj5vy
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fj5fe
georges has quit [Ping timeout: 245 seconds]
<drakonis> so, a case of reducing code duplication?
<infinisil> nh2: Ah nice
Taneb has quit [Quit: I seem to have stopped.]
<infinisil> aanderse: I've been kind of wanting a service abstraction layer for NixOS, something like tasks.*.{enable,user,group,database,openFirewall,port,...}
<infinisil> aanderse: All the kinds of options you might need for the average service, abstract them away into a systemd.services.*-like interface
<infinisil> Although that would make the manual rather bad
<infinisil> Because none of these service-specific options would be documented
<aanderse> infinisil: yeah you have mentioned before. sounds like a nice idea. requires some careful thought to get right, but would be very useful if you nailed it :-D
<aanderse> well generic documentation works for some of it
<aanderse> and if you can override the default generates docs for the rest
lambda-11235 has joined #nixos
abathur has joined #nixos
growpotkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
growpotkin has joined #nixos
<aanderse> it's amazing how much things have progressed in nixos over the past few years
<aanderse> :-D
<infinisil> Haha oh god
jgt has joined #nixos
<infinisil> using an activation script for writing a hardcoded config
<infinisil> Or almost fully hardcoded
<drakonis> this looks like an abomination
<drakonis> too bad you cant see what was there before
<drakonis> as it got rolled together
<drakonis> oh awit
<drakonis> wait a second
<drakonis> that's ten years of module development
<aanderse> hey it's years old so you can't judge it based on what we have available to us today
<aanderse> but yeah, by today's standards a disaster :-p
<infinisil> Oh and the package is declared in the module too
<infinisil> Yeah that's an old module
<drakonis> it dates back to when nixos was still on svn apparently
<aanderse> yeah a number of older modules had declared the package in the module if the package wasn't compiled
jgt has quit [Ping timeout: 250 seconds]
MmeQuignon has quit [Ping timeout: 244 seconds]
<infinisil> I once wrote this scratch document: https://github.com/infinisil/nixos-services
<infinisil> And I just spotted at the very bottom: "Make types.string deprecated"
<aanderse> there are a couple treewide cleanups i want to do
<infinisil> Well look what I'm doing now: https://github.com/NixOS/nixpkgs/pull/66346
<{^_^}> #66346 (by Infinisil, 3 days ago, open): Properly deprecate types.string
<drakonis> stringly typed modules?
Supersonic has quit [Ping timeout: 276 seconds]
<aanderse> but treewide is hard because you always find some nasty edge cases which require application specific knowledge to figure out
mexisme_ has quit [Ping timeout: 248 seconds]
Supersonic has joined #nixos
MinceR_ has joined #nixos
<drakonis> i got a bit of a nasty combo to work atm
<drakonis> i need to do some python and qt stuff and i don't have a lot of time on hand to figure out how to it to work under nixos
<drakonis> what's the recommendations for getting a graphical environemnt for this?
MinceR has quit [Ping timeout: 248 seconds]
georges has joined #nixos
nexgen has joined #nixos
<ornx> is there a difference between packages that need to do system-level tasks (like add new users/groups, change nixos options like add extra udev rules) and packages that just produce a runnable program in the store?
<nh2> infinisil: another question: Can I in my overlay make that `fetchurl = super.fetchurl.override (old: { curl = old.curl.override { libkrb5 = super.libkrb5; }; })`, so that fetchurl just uses the non-static-overridden libkrb5?
<nh2> It doesn't seemt work like I wrote that there, because using `super.libkrb5` results in infinite recursion.
<infinisil> nh2: You could always define additional top-level attrs like libkrb5_nonstatic or so
<nh2> ornx: yes; program "packages" are in `pkgs/`, and NixOS-system things that modify the system are "modules" in `nixos/modules/`
fusion809 has quit [Remote host closed the connection]
<ornx> ah, so, does that mean that a program that wants to add users/set nixos options should be a module and not a package? or should it be split into installation of the program, and a module that handles all the nixos option setting?
<nh2> e.g. the nginx systemd service is a "module"; it may define some nginx UNIX user account. It uses the nginx "package". Naturally, modules are available only on NixOS, while most packages work fine on any system that can run nix
<infinisil> nh2: Oh actually, the inf rec probably comes from the fact that super.libkrb5 depends on fetchurl
<nh2> ornx: yes, all system-level things (users, nixos options, services) have to go into `nixos/`, all packages/libraries have to go under `pkgs/`, as you say
<nh2> infinisil: yes I think so
<ornx> this has been very helpful, thank you
* infinisil is gonna get some sleep now
<nh2> infinisil: yeah we should really go to bed :D
justanotheruser has joined #nixos
<infinisil> Hehe yes
mexisme_ has joined #nixos
selfsymmetric-mu has joined #nixos
slack1256 has joined #nixos
growpotkin has quit [Ping timeout: 272 seconds]
___laika has quit [Ping timeout: 245 seconds]
jgt has joined #nixos
white_bluff[m] has joined #nixos
mrCyborg has joined #nixos
jgt has quit [Ping timeout: 276 seconds]
slack1256 has quit [Remote host closed the connection]
aanderse has quit [Ping timeout: 252 seconds]
aanderse has joined #nixos
mexisme_ has quit [Ping timeout: 272 seconds]
<pie_> ping me if you ever start on this :D <infinisil> aanderse: I've been kind of wanting a service abstraction layer for NixOS, something like tasks.*.{enable,user,group,database,openFirewall,port,...}
<pie_> wouldnt that make the manual better because then there would be standards <infinisil> Although that would make the manual rather bad
<pie_> what do you mean by service specific options not being documented
<clever> samueldr: time to reverse engineer hydra-in-a-bag!
<pie_> brb moving home directory to new dataset
<pie_> clever: snek in ma boot?
pie_ has quit [Quit: pie_]
___laika has joined #nixos
mexisme_ has joined #nixos
morr has quit [Remote host closed the connection]
<drakonis> ah swell, i cannot use systemd-nspawn
<drakonis> Cannot be run in a chroot() environment.
<drakonis> Exiting PID 1...
fresh_paint has joined #nixos
fresh_paint has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @nh2 opened pull request #66506 → Fetchurl dont force set gss support → https://git.io/fj5JU
mexisme_ has quit [Ping timeout: 245 seconds]
eraserhd has quit [Ping timeout: 258 seconds]
mexisme_ has joined #nixos
jgt has joined #nixos
___laika has quit [Ping timeout: 276 seconds]
jgt has quit [Ping timeout: 250 seconds]
drakonis has quit [Quit: WeeChat 2.5]
<{^_^}> [nixpkgs] @jonringer opened pull request #66507 → libpinyin: 2.1.91 -> 2.3.0 → https://git.io/fj5JZ
<{^_^}> [nixpkgs] @kayhide opened pull request #66508 → zplug: init at 2.3.4. → https://git.io/fj5Jl
vegai has joined #nixos
abathur has quit [Ping timeout: 268 seconds]
MinceR_ is now known as MinceR
pie_ has joined #nixos
dansho has quit [Ping timeout: 244 seconds]
rauno has quit [Ping timeout: 250 seconds]
<pie_> back
<pie_> since its not what im booting off of, its fine if i dont legacy mount my zfs home directory right? :P
endformationage has quit [Ping timeout: 258 seconds]
jgt has joined #nixos
palo1 has joined #nixos
___laika has joined #nixos
jgt has quit [Ping timeout: 250 seconds]
palo has quit [Ping timeout: 246 seconds]
palo1 is now known as palo
hmpffff has joined #nixos
hmpffff has quit [Client Quit]
<{^_^}> [nixpkgs] @emilazy opened pull request #66509 → git-revise: init at 0.4.2 → https://git.io/fj5Jy
<dminuoso> I have a question.. whats the point of ⌜{ inherit foo; }⌝ exactly? Why do I keep people doing this?
<etu> It's instead of { foo = foo; };
<etu> https://github.com/tazjin/nix-1p -- good resource as woll
<ivan> alright, we got three :-)
<dminuoso> etu: well Im aware of the semantics, it just seems a silly thing to do when you could just write ⌜{ foo = foo; }⌝instead
<ivan> inherit a b c
<dminuoso> (Which granted, makes me smile as such code would have completely different semantics in Haskell)
<etu> dminuoso: https://github.com/tazjin/nix-1p#inherit-keyword -- got the same example as ivan above
<dminuoso> etu: Mmm.
<etu> so instead of: { a = a; b = b; c = c; } you can have { inherit a b c; }
<dminuoso> etu: Sure, but for a single attribute that seems a bit lackluster.
<etu> I guess it comes down to convention then
<etu> and that it may feel silly to type out the name twice when you don't have to
oida has quit [Remote host closed the connection]
oida has joined #nixos
rsoeldner has joined #nixos
seppellll has joined #nixos
<Cale> dminuoso: Here's a puzzle for you: let x = 1; in with { x = 2; }; x
<vegai> 1.5?
<Cale> haha
seppellll has quit [Remote host closed the connection]
<dminuoso> Cale: It's 1. My reasoning is as follows: If it were ⌜2⌝ you wouldn't have bothered asking the riddle.
<Cale> haha, correct
<Cale> with statements can't shadow bindings that are already in scope
<dminuoso> But granted, I dont understand why.
<Cale> which seems a bit like the principle of maximal surprise to me, but that's how it is
<Cale> well, sorry, that's imprecise
<Cale> I should say, they can't shadow bindings bound by other means
<Cale> with { x = 1; }; with { x = 2; }; x
<Cale> evaluates to 2
kenshinCH has joined #nixos
<Cale> (x: with { x = 2; }; x) 1 --> 1
<dminuoso> Cale: So ⌜with⌝ can only shadow bindings introduced with ⌜with⌝?
<Cale> I believe so, yeah
<Cale> Another fun thing
<Cale> (x: x)
<Cale> is the identity function
<Cale> (x:x)
<Cale> is a string
<pie_> Cale: argh damn i keep forgetting about that :P i was thinking it depends on the parenthesization
<DigitalKiwi> oh cale is here
<pie_> looks like Cale is in all the good channels
<srhb> There's an RFC to deprecate URL literals.
<srhb> That would clean up some nasty language surprises..
<ivan> a mere x:x is a string too :(
<Cale> Yeah, the parens were redundant in both cases
<Cale> x : x
<Cale> is also the identity function
<Cale> [x : x]
<Cale> is a parse error
<Cale> (obvious, but still kind of amusing)
<Cale> [{x = 1;}.d or null] is not a parse error though
<Cale> (so maybe it's not as obvious?)
___laika has quit [Ping timeout: 276 seconds]
<Cale> [{x = 1}?d] isn't okay though
___laika has joined #nixos
<pie_> lists like you to have elements parenthesized :p
<Cale> It's just a little bit funny that 'or' is somehow fine
<pie_> im pretty sure the last one is okay depending on what you mean by ok
* pie_ checks why he is wrong
<Cale> and '.'
<pie_> ok well apparently that also needs parenthesizing. weird...
<pie_> Cale: guess you could write a book :P
jgt has joined #nixos
<Cale> This isn't really the stuff I'd write a book about though... the thing which really gets to me is the manner in which we're working in a language where equational reasoning ought to work, except that somehow we're constantly undermining our ability to use it, by making it nearly impossible to get a concise definition of anything most of the time. Everything is defined by these nested fixed points on attrsets that are
<Cale> spread out through many files and override things in piecemeal ways, and just finding the relevant bits and pieces can be hard, let alone fully understanding how they evaluate.
<Cale> Oh, and nearly everything is defined to be a function of (some incarnation of) nixpkgs
<Ashy> will guix save us?
<Cale> Imagine if you were writing a Haskell program, and you somehow bundled up every definition in your program as a record and passed it to everything, and those things would then do weird stuff with that record...
<Cale> Nothing will save us if the problem is that we're writing our programs in a way that's fundamentally hard to understand.
jgt has quit [Ping timeout: 264 seconds]
<Cale> I partly understand why it's done -- nobody wants to explicitly work out all the dependencies between things and reflect them as explicit function applications. Instead we have callPackage which uses that weird property of lambdas in nix that you can tell the names of the variables they bind.
<srhb> And the sweeping redefinitions that affect everything are very central. But, yes, it's hard to reason about at times.
rauno has joined #nixos
<{^_^}> [nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fj5UX
growpotk- has quit [Quit: ZNC 1.7.4 - https://znc.in]
<pie_> Cale: thanks for expressing something thats been bothering me
<pie_> Cale: on the other hand im not sure how to fix that because it seems kind of inherent to the paradigm
<srhb> Ashy: If anything I'd imagine it's even less constrained, given guile..
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fj5U1
<srhb> (But maybe also more principled? I think that's mostly an implementation detail of "guixpkgs" if it is, though)
<srhb> I'm not sure I'd very much like a much more restrictive ADT for nixpkgs though.
Okinan has quit [Quit: Konversation terminated!]
<srhb> That said, it's hard to imagine how things could be. I haven't seen any convincing suggestions..
<pie_> hm, though I didnt think about this too hard, just the tangle _has_ bothered me a lot.
<pie_> and our tooling isnt up to par to compensate
<Cale> srhb: At the very least, it doesn't really make sense that we have library stuff mixed in with packages
<pie_> (though a lot of the tooling problems are doable...)
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fj5Uy
<Cale> Yeah, you end up feeling like an imperative programmer without a debugger.
<Cale> Instead of implicit state, you have implicit context, but there's so much of it that it amounts to the same confusion.
<pie_> youre not wrong
<pie_> :(
FRidh has joined #nixos
<Cale> srhb: Another thing I think would really help is if there were greater correspondence between the attrsets being constructed and where the .nix files were located in the directory structure
<Cale> Haskell's system isn't great about this: it can be hard to tell which module a name got bound in, and then which package the module is in. But having discovered that, I generally know exactly which file to go look in for the definition.
steshaw has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @saschagrunert opened pull request #66512 → conmon: 0.3.0 -> 2.0.0 → https://git.io/fj5UH
<Cale> With the way we're doing things with nix, I'm left grepping for things and hoping to find something relevant, and that I don't miss some override that happens later to completely change the thing I'm trying to look at.
freeman42y has joined #nixos
<pie_> Cale: alternatively, we generally need some way to trace where things are coming from
<Cale> Yeah, that would help
<Cale> hnix is going to try to provide that
Jackneill has joined #nixos
<pie_> im really hopeful we can have good things as time passes
<pie_> >.>
<Cale> I'm not sure what it'll look like...
<Cale> Some sort of stack of attrsets that track the provenance of the value? :D
<pie_> (i need to try hnix one of these days)
<Cale> (me too)
<Cale> I just work next to people who work on hnix
<pie_> lucky :p
<pie_> what do you do anyway?
<pie_> (man stuff is really complicated thoguh if you think about it, i hope we can simplify things...)
<Cale> I'm a software developer with Obsidian Systems. We build web and mobile applications for various clients using Haskell, and all our build infrastructure is in nix.
<pie_> oh cool ive seen people do stuff on github :p
<srhb> Cale: I hadn't thought of that. I think that makes sense :)
<srhb> (Re. the locations of files vs. attrset defs)
<pie_> obsidian systems people seem pretty overpowered >_>
<Cale> yeah
___laika has quit [Ping timeout: 276 seconds]
<srhb> OS is a cool place :)
<Cale> I tried making an ur-default.nix which used only builtins to read all the subdirectories of the current directory and if they contain a default.nix, import it, building an attrset from those keys
<Cale> I've yet to really try using it for anything
<srhb> If flakes pans out there's some opportunity to standardize a bit over that as well.
<srhb> Then again, with the option for decentralization, it may make things worse :-P
<srhb> Though I think that's a cost we have to take anyway...
<Cale> But in my head, there's a version of reflex-platform which is just broken down nicely into a handful of platform subdirectories, each of which has a whole bunch of thunks in it
<srhb> That would be great. :)
Chiliparrot has joined #nixos
sveitser2 has quit [Quit: WeeChat 2.2]
domogled has joined #nixos
sveitser has joined #nixos
jgt has joined #nixos
___laika has joined #nixos
freeman42y has quit [Ping timeout: 250 seconds]
hmpffff has joined #nixos
hoijui has joined #nixos
___laika has quit [Ping timeout: 248 seconds]
szicari has quit [Remote host closed the connection]
szicari has joined #nixos
kleisli_ has quit [Ping timeout: 272 seconds]
domogled has quit [Remote host closed the connection]
domogled has joined #nixos
<{^_^}> [nixpkgs] @zimbatm pushed to master « pre-commit: 1.17.0 -> 1.18.1 »: https://git.io/fj5T3
cfricke has joined #nixos
veske has joined #nixos
nhey_ has joined #nixos
___laika has joined #nixos
___laika has quit [Ping timeout: 276 seconds]
domogled has quit [Ping timeout: 272 seconds]
___laika has joined #nixos
asymptotically has joined #nixos
___laika has quit [Ping timeout: 246 seconds]
domogled has joined #nixos
FRidh has quit [Ping timeout: 272 seconds]
zupo has joined #nixos
veske has quit [Quit: Leaving]
<jw358> what causes me to get errors like "error: unable to download 'https://cache.nixos.org/q6yp4gwq636s36w91n5ripl3j3qfmc6v.narinfo': Problem with the SSL CA cert (path? access rights?) (77)"?
___laika has joined #nixos
veske has joined #nixos
FRidh has joined #nixos
<{^_^}> [nixpkgs] @alexbakker opened pull request #66513 → looking-glass-client: a12 -> B1 → https://git.io/fj5TP
<srhb> jw358: What's the full error?
<srhb> jw358: Usually certificate errors are caused by bad time settings.
<srhb> jw358: Though that path appears to not exist in the cache, 404.
Taneb has joined #nixos
<srhb> jw358: (Which is normal if it hasn't been built, or failed to build)
hyper_ch2 has joined #nixos
veske has quit [Ping timeout: 245 seconds]
joshuagl has joined #nixos
veske has joined #nixos
cfricke has quit [Quit: WeeChat 2.5]
cfricke has joined #nixos
cfricke has quit [Client Quit]
rndd has joined #nixos
cfricke has joined #nixos
Lukas4452 has joined #nixos
<pie_> unrelated, are there any good cli interfaces to stuff like virtualbox so i can make spinning up an ubuntu vm and the like without much hassle
tobiasBora has quit [Ping timeout: 245 seconds]
<jw358> srhb: that is the full error, it's just a local derivation that's being pinged for
o1lo01ol1o has joined #nixos
<pie_> my usecase for context (im open to alternative solutions) is using my scanner, where nixos doesnt seem to have drivers for it yet
hmpffff has quit [Quit: Bye…]
<{^_^}> [nixpkgs] @doronbehar opened pull request #66515 → pdfcpu: 0.2.2 -> 0.2.3 → https://git.io/fj5kL
<andi-> pie_: I just use libvit (through virt-manager) and pass through USB devices.
<andi-> you can probably drive that from the CLI with `virsh`.
andreas303 has quit [Remote host closed the connection]
<pie_> yeah the usb passthrough is basically what im intending to do
sudoforge has quit [Ping timeout: 264 seconds]
andreas303 has joined #nixos
<srhb> jw358: That seems like expected behaviour then? I mean, if it's local in the sense that hydra wouldn't have built it :)
<jw358> well okay
thc202 has joined #nixos
<jw358> why is this even pinging the store for this
<srhb> jw358: That's how the cache works.. Compute the hash, check if the cache has a corresponding narinfo.
<jw358> i mean
<jw358> why does this stop me from using a shell with this
<srhb> jw358: Oh, it shouldn't.
<jw358> why does it not just keep going on and build the derivation locally
<jw358> that's my issue
<jw358> that it stops me from using my own derivations
<srhb> jw358: What's your expression?
fendor has joined #nixos
<jw358> i'm just wrapping some derivations with
<jw358> wrap-output = drv: newname: pkgs.runCommand "wrapped-${newname}" {} ''
<jw358> '';
<jw358> ln -s ${drv.outPath} $out/bin/${newname}
<jw358> mkdir -p $out/bin
<jw358> and putting that in my buildinputs
hyper_ch2 has quit [Remote host closed the connection]
<jw358> you know what
<srhb> Assuming you don't have maxBuilds set to 0, that should be fine.
<jw358> it might just be some lorri bullshit
domogled has quit [Ping timeout: 245 seconds]
<jw358> Okay it happens when I change the new name argument
<jw358> For a built derivation of that
<Taneb> Say I have a repository containing a NixOS configuration. Is there a good way to build that for CI purposes?
<jw358> So it seems like it's just some kind of pollution issue
<srhb> Taneb: Yeah, just feed it to the eval function that nixos-rebuild uses too.
<Taneb> srhb: clever: thank you
<pie_> how the heck to i unmount a partition without the hardware device getting powered off
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Shoubit has joined #nixos
orivej has joined #nixos
lambda-11235 has quit [Quit: Bye]
<pie_> still dont know how to prevent it :I
<pie_> oh...if you unmount it via the cli it doesnt do it
<pie_> *blood pressure reducing*
nexgen has quit [Remote host closed the connection]
nexgen has joined #nixos
sigmundv has joined #nixos
rndd has quit [Ping timeout: 246 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @hkjn opened pull request #66516 → Add `python3Packages.ckcc-protocol` package, and list is as a dependency for `electrum`. → https://git.io/fj5kg
orivej has quit [Ping timeout: 276 seconds]
sigmundv has quit [*.net *.split]
fendor has quit [*.net *.split]
veske has quit [*.net *.split]
cfricke has quit [*.net *.split]
nhey_ has quit [*.net *.split]
rsoeldner has quit [*.net *.split]
rauno has quit [*.net *.split]
mexisme_ has quit [*.net *.split]
stepcut has quit [*.net *.split]
justanotheruser has quit [*.net *.split]
xorAxAx has quit [*.net *.split]
reanimus has quit [*.net *.split]
{^_^} has quit [*.net *.split]
lopsided98 has quit [*.net *.split]
ThatOtherGuy has quit [*.net *.split]
gerschtli has quit [*.net *.split]
sellout- has quit [*.net *.split]
smolboye[m] has quit [*.net *.split]
badmutex[m] has quit [*.net *.split]
bnasty[m] has quit [*.net *.split]
bricewge has quit [*.net *.split]
Lem_ has quit [*.net *.split]
marcinkuzminski has quit [*.net *.split]
scott has quit [*.net *.split]
eddyb has quit [*.net *.split]
ajmcmiddlin has quit [*.net *.split]
chrisaw has quit [*.net *.split]
nwspk has quit [*.net *.split]
monotux has quit [*.net *.split]
victorbjelkholm has quit [*.net *.split]
philipcristiano has quit [*.net *.split]
georgew has quit [*.net *.split]
englishm has quit [*.net *.split]
Guest19806 has quit [*.net *.split]
dongcarl has quit [*.net *.split]
abcrawf has quit [*.net *.split]
fadenb has quit [*.net *.split]
pointfree has quit [*.net *.split]
ericsagnes has quit [*.net *.split]
Forkk has quit [*.net *.split]
awygle has quit [*.net *.split]
markasoftware has quit [*.net *.split]
b42 has quit [*.net *.split]
craige has quit [*.net *.split]
shlevy has quit [*.net *.split]
bwe has quit [*.net *.split]
nikola has quit [*.net *.split]
mdash has quit [*.net *.split]
marcinkuzminski has joined #nixos
bnasty[m] has joined #nixos
ThatOtherGuy has joined #nixos
Guest19806 has joined #nixos
nlofaro has joined #nixos
georgew has joined #nixos
sellout- has joined #nixos
justanotheruser has joined #nixos
stepcut has joined #nixos
nwspk has joined #nixos
dongcarl has joined #nixos
lambda-11235 has joined #nixos
mexisme_ has joined #nixos
eddyb has joined #nixos
monotux has joined #nixos
gerschtli has joined #nixos
ajmcmiddlin has joined #nixos
chrisaw has joined #nixos
philipcristiano has joined #nixos
mankyKitty has joined #nixos
sigmundv has joined #nixos
<pie_> uhhh...my nixos-rebuild is failing with whatever this weird cache error is.. https://bpaste.net/show/ai4-
victorbjelkholm has joined #nixos
realrokka has quit [Ping timeout: 244 seconds]
fendor has joined #nixos
o1lo01ol1o has joined #nixos
<pie_> oook looks like thats intermittent again
cfricke has joined #nixos
lopsided98 has joined #nixos
reanimus has joined #nixos
scott has joined #nixos
badmutex[m] has joined #nixos
Lem_ has joined #nixos
englishm has joined #nixos
veske has joined #nixos
awygle has joined #nixos
pointfree has joined #nixos
shlevy has joined #nixos
abcrawf has joined #nixos
nhey_ has joined #nixos
Forkk has joined #nixos
ericsagnes has joined #nixos
rsoeldner has joined #nixos
rauno has joined #nixos
bricewge has joined #nixos
fadenb has joined #nixos
xorAxAx has joined #nixos
smolboye[m] has joined #nixos
b42 has joined #nixos
mdash has joined #nixos
bwe has joined #nixos
nikola has joined #nixos
markasoftware has joined #nixos
craige has joined #nixos
scott has joined #nixos
scott has quit [Changing host]
smolboye[m] has joined #nixos
smolboye[m] has quit [Changing host]
bricewge has joined #nixos
bricewge has quit [Changing host]
englishm has joined #nixos
englishm has quit [Changing host]
badmutex[m] has joined #nixos
badmutex[m] has quit [Changing host]
{^_^} has joined #nixos
scott is now known as Guest51328
lambda-11235 has quit [Quit: Bye]
selfsymmetric-mu has quit [Ping timeout: 272 seconds]
lsix has joined #nixos
Guest51328 has joined #nixos
Guest51328 has joined #nixos
Guest51328 has quit [Changing host]
Guest51328 is now known as scott
pie_ has quit [Quit: No Ping reply in 180 seconds.]
pie_ has joined #nixos
cfricke has quit [Ping timeout: 245 seconds]
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/bd1358fed9d (from 3 days ago, history: https://channels.nix.gsc.io/nixos-19.03)
<{^_^}> [nixpkgs] @mmahut closed pull request #50874 → asterisk: update all versions → https://git.io/fp8Dr
<{^_^}> [nixpkgs] @doronbehar opened pull request #66517 → sccache: 0.2.9 -> 0.2.10 → https://git.io/fj5ky
fendor has quit [Ping timeout: 246 seconds]
marek has quit [Ping timeout: 268 seconds]
marek has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @vbgl merged pull request #66109 → coqPackages.interval: 3.4.0 -> 3.4.1 → https://git.io/fjQvr
<{^_^}> [nixpkgs] @vbgl pushed to master « coqPackages.interval: 3.4.0 -> 3.4.1 »: https://git.io/fj5kS
o1lo01ol1o has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
domogled has joined #nixos
ee1943 has quit [Ping timeout: 245 seconds]
ee1943 has joined #nixos
domogled has quit [Ping timeout: 248 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
eddyb has quit [Changing host]
eddyb has joined #nixos
eddyb has joined #nixos
eddyb has quit []
eddyb has joined #nixos
<{^_^}> [nixpkgs] @timokau merged pull request #66491 → vimPlugins: update → https://git.io/fj7jL
<{^_^}> [nixpkgs] @timokau pushed to master « vimPlugins: update (#66491) »: https://git.io/fj5IT
enuiarte has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hoijui has quit [Ping timeout: 264 seconds]
jtojnar has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #66515 → pdfcpu: 0.2.2 -> 0.2.3 → https://git.io/fj5kL
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fj5IB
___laika has quit [Read error: Connection reset by peer]
___laika has joined #nixos
DjDingo has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #66512 → conmon: 0.3.0 -> 2.0.0 → https://git.io/fj5UH
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5Ig
ottidmes has joined #nixos
hyper_ch2 has joined #nixos
hoijui has joined #nixos
orivej has joined #nixos
o1lo01ol1o has joined #nixos
<DjDingo> X.0.log gives "xkb_variant" requires a string value warning, what corresponding line should I put in my configuration.nix?
domogled has joined #nixos
veske has joined #nixos
sigmundv has quit [Ping timeout: 258 seconds]
m0rphism has joined #nixos
___laika has quit [Read error: Connection reset by peer]
___laika has joined #nixos
fendor has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
domogled has quit [Ping timeout: 276 seconds]
sigmundv has joined #nixos
pietranera has joined #nixos
MmeQuignon has joined #nixos
jtojnar has quit [Ping timeout: 276 seconds]
domogled has joined #nixos
jtojnar has joined #nixos
hyper_ch2 has joined #nixos
orivej has quit [Ping timeout: 248 seconds]
Neo-- has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #66519 → xfce4-14: 4.14.pre2 -> 4.14 → https://git.io/fj5LY
Guest19806 is now known as vdemeester
kenshinCH has quit [Ping timeout: 268 seconds]
vdemeester has joined #nixos
vdemeester has quit [Changing host]
mexisme_ has quit [Quit: WeeChat 2.5]
bakakuna has joined #nixos
iyzsong has joined #nixos
Neo-- has quit [Ping timeout: 252 seconds]
kenshinCH has joined #nixos
ng0 has joined #nixos
kenshinCH has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @markuskowa merged pull request #66342 → gnss-sdr: 0.0.9 -> 0.0.11 → https://git.io/fj7Iv
<{^_^}> [nixpkgs] @markuskowa closed pull request #62704 → gnss-sdr: 0.0.9 -> 0.0.10 (wip) → https://git.io/fjuuQ
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fj5tY
orivej has joined #nixos
<{^_^}> [nixpkgs] @emilazy opened pull request #66521 → tinyprog: init at 1.0.24.dev99+ga77f828 → https://git.io/fj5tZ
<maralorn> > nix-daemon: unexpected Nix daemon error: protocol mismatch
<{^_^}> error: syntax error, unexpected ':', expecting ')', at (string):262:40
<maralorn> Oh, sorry {^_^} didn’t wanna bother you.
<maralorn> Any hints how I can figure out which protocols client and server are using? Which protocols are there even and how can I change what is used?
pingiun has quit [Ping timeout: 245 seconds]
<maralorn> (I am trying to use the nix.nixServe with substuters = ssh//nix-serve@myhost
<maralorn> ssh://nix-ssh@myhost even)
Dagger has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @mmahut merged pull request #66372 → reuse: 0.3.4 -> 0.4.1 → https://git.io/fj7sz
<{^_^}> [nixpkgs] @mmahut pushed 4 commits to master: https://git.io/fj5tC
fendor has quit [Ping timeout: 248 seconds]
Dagger has joined #nixos
<maralorn> Ah, got it. I had previously experimented with setting "ssh-ng" as protocol. Removing that fixed it.
<{^_^}> [nixpkgs] @bachp opened pull request #66522 → Revert "gitlab-runner: don't bundle prebuilt docker images" → https://git.io/fj5tB
pingiun has joined #nixos
mexisme has joined #nixos
<{^_^}> [nixpkgs] @charles-dyfis-net opened pull request #66523 → sysdig: 0.26.1 -> 0.26.2 → https://git.io/fj5tu
<{^_^}> [nixpkgs] @mmahut merged pull request #66505 → libetpan: 1.8 -> 1.9.3 → https://git.io/fj5vQ
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5tz
domogled has quit [Ping timeout: 268 seconds]
Izorkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
<{^_^}> [nixpkgs] @mmahut merged pull request #66507 → libpinyin: 2.1.91 -> 2.3.0 → https://git.io/fj5JZ
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5tg
MmeQuignon has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @mmahut merged pull request #66517 → sccache: 0.2.9 -> 0.2.10 → https://git.io/fj5ky
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5tK
<pie_> Cale: at least there is still truth to <adisbladis> gchristensen: https://twitter.com/grhmc/status/1159875785924206592 :D
bakakuna has quit [Ping timeout: 268 seconds]
mexisme has quit [Ping timeout: 252 seconds]
orivej has quit [Ping timeout: 244 seconds]
_d0t has joined #nixos
<adisbladis> pie_: Heh, you quoting me quoting graham quoting me
<_d0t> ohai! How do I enable touchpad gestures?
<pie_> adisbladis: AHA!
<pie_> IT WAS YOU!
<_d0t> I saw the package libinput-gestures, but it isn't pulled by default.
<yorick> _d0t: in what environment? probably use 'gebaar-libinput'
<_d0t> yorick: kde
orivej has joined #nixos
<yorick> _d0t: yeah, I think
<yorick> wait is gebaar not packaged
<_d0t> yeah
<_d0t> I'm surprised KDE doesn't to it natively
Izorkin has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
_d0t has quit [Quit: Konversation terminated!]
<asymmetric> are things in the standard environment (coreutils etc) also available at runtime to all packages?
<asymmetric> i.e. do i have to add e.g. a runtime dependency to pkgs.gnused?
o1lo01ol1o has joined #nixos
<infinisil> Yes you do, there's nothing that automatically puts those in PATH at runtime
<infinisil> Not doing so makes the program less pure
<{^_^}> [nixpkgs] @primeos merged pull request #66433 → scons: 3.1.0 -> 3.1.1 → https://git.io/fj7oY
<{^_^}> [nixpkgs] @primeos pushed 2 commits to staging: https://git.io/fj5tA
<infinisil> Something to try is to `unset PATH` then run the program
<infinisil> asymmetric: ^
<asymmetric> thx!
pingiun has quit [Ping timeout: 245 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
cfricke has joined #nixos
nexgen has quit [Quit: Leaving]
magnus1 is now known as skorpy2009
pie_ has quit [Quit: pie_]
pingiun has joined #nixos
<{^_^}> [nixpkgs] @lsix opened pull request #66524 → unifont: 12.1.01 -> 12.1.03 → https://git.io/fj5qs
<{^_^}> [nixpkgs] @mmahut closed pull request #64574 → pythonPackages.simple-salesforce: init at 0.74.3 → https://git.io/fjPGB
o1lo01ol1o has joined #nixos
pie__ has joined #nixos
cfricke has quit [Quit: WeeChat 2.5]
veske2 has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
veske has quit [Ping timeout: 245 seconds]
<pie__> elvishjerricco: I ... I broke something again...
<pie__> so I was minding my business rearranging partitions: original: [sda1: "NIXOS"][sda2: luks], i deleted sda1 and had gparted left extend sda2 to fill the empty space
<pie__> now sda2 is called nixos for some reason and i think the os thinks its ext
<pie__> /dev/sdc2: LABEL="NIXOS" UUID="7c885fff-c429-47ca-87d6-f1782fb6ff0f" TYPE="ext4" PARTUUID="eb81193e-02"
<pie__> (replace sda with sdc)
domogled has joined #nixos
<manveru> infinisil: i guess we have a ton of impure packages then :P
Neo-- has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #65857 → click: 0.3.2 -> 0.4.2 → https://git.io/fjHJ2
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5qg
<{^_^}> [nixpkgs] @7c6f434c merged pull request #66523 → sysdig: 0.26.1 -> 0.26.2 → https://git.io/fj5tu
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fj5qV
Neo-- has quit [Read error: Connection reset by peer]
<manveru> did ever anything happen with the idea of wrapping apps in a test derivation that has to pass before use?
Neo-- has joined #nixos
chiefgoat has quit [Ping timeout: 244 seconds]
fendor has joined #nixos
chiefgoat has joined #nixos
<{^_^}> [nixpkgs] @rycee pushed 2 commits to master: https://git.io/fj5qr
<{^_^}> [nixpkgs] @rycee closed pull request #66524 → unifont: 12.1.01 -> 12.1.03 → https://git.io/fj5qs
tv has quit [Quit: WeeChat 2.2]
<{^_^}> [nixpkgs] @andir opened pull request #66525 → google-cloud-cpp: init at 0.11.0 → https://git.io/fj5q1
pingiun has quit [Ping timeout: 272 seconds]
<fendor> can I declartively describe my kde config in nixos?
tv has joined #nixos
allodium has joined #nixos
pingiun has joined #nixos
DjDingo has quit [Ping timeout: 272 seconds]
MmeQuignon has joined #nixos
<pie__> ajs124: is there a package for wipefs
___laika has quit [Read error: Connection reset by peer]
<ajs124> pie__: it should be in util-linux
___laika has joined #nixos
<pie__> i forgot about ,locate again
cfricke has joined #nixos
<pie__> ajs124: uhhh.... https://bpaste.net/show/mEnt ?
<cyris212> Is there a way to get the path to the home directory of a nix managed user?
<ajs124> looks like a protective MBR to me @pie__
Neo-- has quit [Read error: Connection reset by peer]
<ajs124> what does gdisk -l say?
Neo-- has joined #nixos
Lukas4452 has quit [Ping timeout: 248 seconds]
<infinisil> manveru: Yeah probably.. Maybe we should add some phase that automatically wraps executables with an empty PATH by default
___laika has quit [Ping timeout: 245 seconds]
<ajs124> pie__: so no gpt, got it. looks like a 1TB HDD with an MBR and one partition, with ID 2. what does blkid /dev/sdc2 say?
<pie__> /dev/sdc2: LABEL="NIXOS" UUID="oh no" TYPE="ext4" PARTUUID="eb81193e-02"
___laika has joined #nixos
<ajs124> weren't you saying this should be a luks partition?
<pie__> hence my reactions
<ajs124> :hm: So… do you know where the old partition used to start?
<pie__> that is the information of the original first partition
alex`` has joined #nixos
<pie__> ajs124: that was my next train of thought
<pie__> (how do you even get sdc2 without an sdc1???)
<ajs124> You can just assign those ids
<ajs124> they don't need to be in order either
Lukas4452 has joined #nixos
<pie__> but they are usually in order
<ajs124> it's more of a convention
<ajs124> maybe a guidline
<pie__> or does that come from the partuuid ending in -02
Neo-- has quit [Remote host closed the connection]
<pie__> oh and you said ID2
<ajs124> na, look at the gdisk output. your (only) partition is the partition with the Number 2
<pie__> well, its called the Number column
<pie__> yeah
Neo-- has joined #nixos
<ajs124> I guess you can scan for luks magic. not sure how you'd do that though
<pie__> well im pretty sure i already deleted all my gpt and luks headers backups because i thought i was done
<ajs124> hexdump + grep?
<pie__> yeah, that would be annoying but possible
<palo> /go tv
<ajs124> you don't have another copy of the data on there?
<pie__> i could try mounting the ext4 and see what happens but im afraid tha tmight mangle somethng
<pie__> like, see whether the ext4 is still there
<ajs124> pie__: that _should_ actually be fine, if nothing was moved
<ajs124> because the filesystem length is in the filesystem. the partition size doesn't really matter. at least if it's bigger.
<pie__> also i think the gparted even did some fsck so....
<ajs124> oh. then maybe don't. you don't have a log of what it did, by any chance?
<ajs124> you could always mount -o ro
<pie__> hm no that wouldnt make sense - for it to have done an fsck
<pie__> i think the fsck was before the operations
<pie__> the last operation was the move
Lukas4452 has quit [Ping timeout: 246 seconds]
<ajs124> if it's shrinking or growing something, it tends to do that. not sure with luks though.
<alex``> why does it not work?
<alex``> I’m trying to install Rails
<maralorn> I use a substituter which is defined in my /etc/hosts "http://hera:5001" How do i need to call it in the trusted-public-keys option? "hera:5001:..." gives a parser error. (unsurprisingly)
<alex``> I executed the script nix-gem-init
<alex``> nix-shell-gems-init*
<pie__> ajs124: hm, i am looking at _some_ garbage, if its luks with an overwritten header i could see what it looks like manually decrypted
<manveru> alex``: and you probably have to pass `bundler` with `--packages` as well
Neo-- has quit [Read error: Connection reset by peer]
<pie__> ah wait i think this device had a different luks though
<manveru> alex``: i usually even do: nix-shell --pure -p bundler bundix git --run 'bundle lock && bundix'
Neo-- has joined #nixos
<pie__> i dont think i lost any data because i think i had everything mirrored but im not 100% sure
<pie__> also it would be super annoying to have to set up everything again
selfsymmetric-pa has joined #nixos
<ajs124> at least now you know why gparted warns you that much, before operations like this.
<eyJhb> pie__: not to intrude, but what has heppneded to your LUKS disc?
<pie__> eyJhb: me existing
<pie__> ajs124: so how likely do you find this scenario:
hyper_ch2 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @primeos merged pull request #66434 → ffmpeg_4: 4.1.4 -> 4.2 → https://git.io/fj7oz
<{^_^}> [nixpkgs] @primeos pushed 2 commits to master: https://git.io/fj5m2
<pie__> i did the stuff, and the linux partition caches did not get updated, because htey suck. when the device became availible again after the partition operations, it got mounted automatically, and the OS still thought its ext4. so it overwrite the luks header with some garbage
<ajs124> I don't think it could mount that, if there is not ext4 there. Did you unmount it beforehand? And doesn't gparted call partprobe?
<eyJhb> Ahh, doing the stuff is not always good :p
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/81375643d1c (from 12 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<ajs124> pie__: just do it by hand with gidsk and dd next time. at least then you know exactly how you fucked up.
<pie__> i unmounted it, and partprobe never seems to work
<pie__> ajs124: dont ask me how but it got mounted at some point
<pie__> (now that i think about it, probably a bad interaction with kde damnit)
<pie__> i figured gparted can do it better than me. also its a bit harder if there isnt enough space for a single step move
<ajs124> pie__: if partprobe doesn't work, you can also reset the scsi bus. or if that doesn't work, you can unbind and rebind the sata controller driver on PCI, assuming you don't have any other sata drives in use.
<pie__> *bit more tedius
<ajs124> you can also un- and replug the drive
<clever> or just reboot? lol
<pie__> ajs124: i did actually unplug and replug the usb device
<clever> sometimes, its simpler to just treat it like windows
<pie__> didnt help in this case because something is bad with the data obviously -_-
<ajs124> clever: I was thinking of switching a power breaker off and back on, but rebooting might also work.
<pie__> also you cant really do those things if youre operating on your root hardware :D
<pie__> 'cept reboot
veske2 has quit [Quit: This computer has gone to sleep]
<pie__> i need to stop wanting to do high level surgery and go back to duct tape and wd40
selfsymmetric-pa has quit [Ping timeout: 264 seconds]
veske2 has joined #nixos
veske2 has quit [Client Quit]
<exarkun> hm, monday. guess that means it's time to go back to trying to understand propagatedBuildInputs.
<gchristensen> how is NixOS's support for wayland but not sway?
Lukas4452 has joined #nixos
<{^_^}> [nixpkgs] @zimbatm merged pull request #66522 → Revert "gitlab-runner: don't bundle prebuilt docker images" → https://git.io/fj5tB
<{^_^}> [nixpkgs] @zimbatm pushed commit from @bachp to master « Revert "gitlab-runner: don't bundle prebuilt docker images (#66225)" (#66522) »: https://git.io/fj5mH
<pie__> luks should have a backup header at the other end like zfs does -_-
Theuni2 has joined #nixos
acarrico has joined #nixos
<exarkun> pie__: you can do separate storage backup, `cryptsetup luksHeaderBackup ...`
<clever> pie__: something i have noticed they do, is that the key slot material is striped, i think so that if any one block range is recovered, you cant actually make use of it
<clever> pie__: ive read similar things about nuclear bomb computers, how they want to spread the data around the physical chip, so even if you recover a 1x1mm fragment of the silicon, it wont be of use in recovering keys, lol
<pie__> exarkun: i was thinking about that 5 miutes before you mentioned it
<pie__> exarkun: the thing is i dont think anyone does that until theyve screwed up their luks header a few times
<pie__> exarkun: alternatively, put it in the protocol and prevent some amount of foot shooting?
<pie__> clever: yeah
<{^_^}> [nixpkgs] @primeos opened pull request #66527 → ffmpeg_4: Enable support for AV1 decoding via dav1d by default → https://git.io/fj5mF
<exarkun> sure, maybe it'd be better if there were automatically a few copies in the volume
<pie__> clever: otoh, one set of stripes vs two set of stripes?
<pie__> s/stripes//
<clever> pie__: yeah
veske2 has joined #nixos
joshuagl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fusion809 has joined #nixos
<lucus216> How do I create an option that errors when used / a removed option?
joshuagl has joined #nixos
<clever> lucus216: simplest is to just not define the option, anything not in options= will be an error
<lucus216> sure, but I'd like to return a useful error redirecting the user to a similar option
<lucus216> buildkite-agent was removed in favor of buildkite-agents
Neo-- has quit [Ping timeout: 252 seconds]
Neo-- has joined #nixos
<Ashy> anyone using nixfmt from the repo with nix-shell?
<{^_^}> [nixpkgs] @mmahut merged pull request #66509 → git-revise: init at 0.4.2 → https://git.io/fj5Jy
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5YT
<clever> lucus216: ah
<Ashy> stylish-haskell seems to be missing for me for some reason
<lucus216> Ashy: As in it is listed in shell.nix, but after running nix-shell, it's not in your path?
ddellacosta has quit [Ping timeout: 268 seconds]
<clever> lucus216: i believe this will alias it over to another name, and print a warning if the old name is used
<Ashy> nix-shell fails with error: attribute 'stylish-haskell' missing,
<clever> lucus216: or just mkRemovedOptionModule
<lucus216> Ashy: Ah, looks like the shell.nix specifies your local nixpkgs rather than the pinned one, that is my mistake.
<lucus216> Ashy: You can use this for now: nix-shell --arg pkgs 'import ./nixpkgs.nix'
dispanser has quit [Ping timeout: 246 seconds]
<lucus216> I will fix it soon
mexisme has joined #nixos
hoijui has quit [Ping timeout: 264 seconds]
<Ashy> cheers
<pie__> about 10 more minutes before the search for "LUKS" hits the presumed start of the old partition, afterwards i will announce the patient dead and attempt to restore from backup
<clever> pie__: there are partition undelete tools, that do things like search at multiples of the block size
Neo-- has quit [Disconnected by services]
Neo--- has joined #nixos
<pie__> that might be faster
mexisme has quit [Ping timeout: 264 seconds]
atlas_ is now known as Guest53968
Guest88582 is now known as atlas_
eraserhd has joined #nixos
<{^_^}> [nixpkgs] @lblasc opened pull request #66528 → glibc: 2.27 -> 2.30 WIP → https://git.io/fj5Yl
morr has joined #nixos
<{^_^}> [nixpkgs] @domenkozar pushed to haskell-updates « unbroken: jose, servant-auth-server, tasty-hspec »: https://git.io/fj5Y4
zeta_0 has joined #nixos
Lukas4452 has quit [Ping timeout: 244 seconds]
<zeta_0> hello guys, what is the link to the nixos logs, could someone send me the link, thanks
<joepie91> zeta_0: the link is in the topic: https://logs.nix.samueldr.com/nixos/
Lukas4452 has joined #nixos
<alex``> manveru: bundix lock does not exist?
<manveru> alex``: no
<zeta_0> thanks
rauno has quit [Ping timeout: 276 seconds]
<alex``> manveru: to develop in rails, once running nix-shell-gems-init, I juste have to run `nix-shell` and develop in this shell?
<alex``> that the workflow to follow?
<manveru> yeah
<alex``> manveru: the shell is just sh
<alex``> how to use my usual shell
<alex``> (I use Elvish)
<manveru> you can use `direnv` for that
<alex``> where
<manveru> but i think that only supports zsh, bash, and fish
<manveru> never tried elvish :)
nhey_ has quit [Quit: Leaving]
<alex``> after `nix-shell` doing `rails new blog`, `cd blog`, `rails server`
<alex``> my Gemfile having `gem 'rails'` in it
<manveru> yeah
Neo---- has joined #nixos
<manveru> but `rails new` created a new Gemfile
<alex``> but rails does nnot serve
<manveru> in the blog folder
<manveru> which has all the actual dependencies
<{^_^}> [nixpkgs] @herrwiese opened pull request #66529 → [19.03] Linux 5.2 → https://git.io/fj5YP
<alex``> oh
cfricke has quit [Ping timeout: 244 seconds]
Neo--- has quit [Remote host closed the connection]
<alex``> how to do a new rails app then?
<alex``> since I have manually created a fresh Gemfile
<alex``> but rails generate new one
<alex``> manveru: to have rails, I have to create a bare Gemfile `gem 'rails', and once Rails is installed, I have to create a new Gemfile generated by Rails, and re-execute the bundix command in it? :D
cfricke has joined #nixos
<alex``> a Gemfile to bootstrap rails which booststrap a complete Gemfile
<alex``> is it correct?
Shoubit has quit [Quit: Leaving]
Neo---- has quit [Remote host closed the connection]
Neo---- has joined #nixos
domogled has quit [Quit: domogled]
zupo has joined #nixos
<alex``> manveru: Thanks for your help, quick replies as usual :-)
eskytthe has joined #nixos
<zeta_0> when trying to do a rebuild i am having some package collisions(`ghc-with-packages` and `ihaskell-with-packages`), in order to try and fix this i want to set package priorities declaratively in home.nix but i have no idea how, is there some instructions anywhere on how to do this in nixos?
siers is now known as ij
<infinisil> zeta_0: I already told you last time..
veske2 has quit [Quit: This computer has gone to sleep]
Soo_Slow has joined #nixos
<{^_^}> [nixpkgs] @knl opened pull request #66530 → Terraform 0.12.6 → https://git.io/fj5OT
dsiypl4 has joined #nixos
ThatOtherGuy has quit [Ping timeout: 258 seconds]
kenshinCH has joined #nixos
<zeta_0> infinisil: yes, but you did not give very much detail on how to do it, does the nixos documentation have some instructions somewhere on how to do this correctly?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dsx has quit [Quit: dsx]
xkapastel has joined #nixos
zupo has joined #nixos
ThatDocsLady has joined #nixos
dsx has joined #nixos
___laika has quit [Read error: Connection reset by peer]
kenshinCH has quit [Ping timeout: 246 seconds]
___laika has joined #nixos
cfricke has quit [Ping timeout: 245 seconds]
<zeta_0> infinisil: here is the piece of code of my home.nix that is causing the collision: https://gist.github.com/zeta-00/82365f18c853411e2aa6f804393615c9
ThatDocsLady_ has joined #nixos
ThatDocsLady has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @veprbl merged pull request #63977 → apfel: 3.0.3 -> 3.0.4 → https://git.io/fjKtW
<{^_^}> [nixpkgs] @veprbl pushed commit from @r-ryantm to master « apfel: 3.0.3 -> 3.0.4 (#63977) »: https://git.io/fj5OE
<{^_^}> [nixpkgs] @vbgl merged pull request #66212 → ocamlPackages.camlp5: 7.07 -> 7.08 → https://git.io/fjQWc
<{^_^}> [nixpkgs] @vbgl pushed to master « ocamlPackages.camlp5: 7.07 -> 7.08 »: https://git.io/fj5Oz
ThatOtherGuy has joined #nixos
<exarkun> How do I get python modules that are propagatedBuildInputs to be available to a bare "python" interpreter launched in a nix-shell?
<infinisil> zeta_0: I'm not there to write your code. Try to apply it on your own and only ask again if you can't do it (with code and error)
<exarkun> They seem to be made available to python scripts installed by the python package but not to "python" itself.
<pie__> ajs124: out of all the partitions...this one is immortal i swear [internal eldritch screaming]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f5d84bb4465 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<exarkun> ie ... the propagate to other python packages but not to python.buildEnv
* exarkun reads buildEnv docs again
<pie__> ajs124: does replugging a usb device not count towards a rescan
<ajs124> pie__: if you just want to kill it: dd if=/dev/zero of=/dev/sdc bs=1M count=2 should be enough to overwrite the partition table
<ajs124> replugging should be more than enough. when in doubt, always check dmesg
<pie__> ajs124: i already used gparted to write a new one xD
<pie__> it says sdc1 now instead of sdc2 so thats progress
<ajs124> you can also use wipefs -a (the -a makes it so that it actually wipes things)
<ajs124> that does sound like a new entry in the partition table then, if it's 1 instead of 2 now
<pie__> but the partition metadata is still there xD
<ajs124> contents will probably still the same
<pie__> its not that i want to wipe it
<pie__> the question is how it survived
<pie__> ok so yeah no mkfs and whatever
<ajs124> hm? how what survived?
<pie__> i guess that would make sense
<pie__> how the uuid and label survived
<ajs124> yeah. partition table entries are just pointers in a table.
<zeta_0> infinisil: that's fine i was just looking for some example code for reference but i'll let you know if i still can't get it to work
npmccallum has joined #nixos
<o1lo01ol1o> why might nixops be failing to ssh into a new ec2 deployment? I have a security group that allows { toPort = 22; fromPort = 22; sourceIp = "0.0.0.0/0"; }
<gchristensen> do you have an internet gateway with routes?
<o1lo01ol1o> no, I basically have slight modifications on the tutorial: https://nixos.org/nixops/manual/#sec-deploying-to-ec2
<clever> o1lo01ol1o: if you open the aws console, can you confirm the security group is attached correctly?
<o1lo01ol1o> clever: yes, it's attached to the instnace and shows the correct rules
<clever> o1lo01ol1o: and does the console output in aws show it as having booted?
<o1lo01ol1o> clever: yes
<clever> o1lo01ol1o: what happens if you try to just nmap the ip?
<{^_^}> [nixpkgs] @jtojnar opened pull request #66531 → gnome3.evolution-data-server: Hardcode more GSettings schemas → https://git.io/fj5Oy
<gchristensen> jtojnar: boy that is an ugly patch :D
iyzsong has quit [Ping timeout: 276 seconds]
<jtojnar> gchristensen: :-D
<o1lo01ol1o> nmap says the host is down
<jtojnar> gchristensen: It would be nice to be able to use cocci patches directly in Nix
<jtojnar> but introducing Ocaml dependency is probably not okay
<gchristensen> yikes, yeah probably not
<o1lo01ol1o> clever: nmap says the host is down
<clever> o1lo01ol1o: try with -Pn i think it was
<o1lo01ol1o> clever: found it: 22/tcp open ssh
cfricke has joined #nixos
<clever> o1lo01ol1o: maybe it was just slow at booting, and the problem solved itself?
eskytthe has left #nixos [#nixos]
Neo---- has quit [Ping timeout: 252 seconds]
<o1lo01ol1o> clever: Received disconnect from xxx port 22:2: Too many authentication failures
Neo---- has joined #nixos
<{^_^}> [nixpkgs] @yorickvP opened pull request #66532 → nginx: fix failure to serve on aliases with regex captures → https://git.io/fj5OF
dsiypl4 has quit [Ping timeout: 258 seconds]
zeta_0 has quit [Quit: taking break]
endformationage has joined #nixos
<clever> o1lo01ol1o: weird
<exarkun> o1lo01ol1o: try `SSH_AUTH_SOCK= nixops ...`
<o1lo01ol1o> exarkun: try which?
<exarkun> You are running nixops right?
englishm has joined #nixos
englishm has quit [Changing host]
englishm has joined #nixos
<exarkun> `python.withPackages` seems to give me a python interpreter that's wrapped so I can actually import the modules I pass it
<exarkun> `python.buildEnv` gives me a partially wrapped python interpreter that doesn't let me import everything I tell it I want
<exarkun> `python.withPackages` doesn't accept `ignoreCollisions`
<o1lo01ol1o> exarkun: I found a reference for that: SSH_AUTH_SOCK='' nixops deploy yadda yada
<o1lo01ol1o> seems to be working. . .
<exarkun> so I can't have a working python environment :(
Neo---- has quit [Remote host closed the connection]
Neo---- has joined #nixos
<exarkun> is `python.buildEnv` broken? It seems broken to me. If I put X into `extraLibs` then I should be able to import `X` in the resulting environment ... even if `X` has dependencies.
<adisbladis> exarkun: You can do something like (python3.withPackages(ps: [ ps.somepackage ])).override(old: {ignoreCollisions=true;})
<exarkun> adisbladis: aha
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<exarkun> adisbladis: that seems to help with that problem ... but now I see the resulting environment is still weird
<exarkun> eg pyhamcrest does not appear in it
gentauro has joined #nixos
<exarkun> even though it is a propagatedBuildInput from one of the python packages provided
<exarkun> and even if I explicitly list it as a package to include!
<adisbladis> exarkun: Could you share your expression?
<exarkun> I can, moment
Neo---- has quit [Remote host closed the connection]
Neo---- has joined #nixos
<adisbladis> exarkun: And what's in tahoe-lafs.nix?
<exarkun> adisbladis: it's alongside in the repo
<adisbladis> Oh, I'm obviously blind
<exarkun> adisbladis: it's _mostly_ just copy/paste of nixpkgs tahoe-lafs but updated to a newer version and turned into a module instead of an application
<adisbladis> and/or an idiot
<exarkun> it's not exactly a minimal example, sorry about that
hoijui has joined #nixos
___laika has quit [Ping timeout: 272 seconds]
mexisme has joined #nixos
<adisbladis> That's ok
<adisbladis> I have a hunch, just confirming it
owickstrom has joined #nixos
erasmas has joined #nixos
Neo---- has quit [Remote host closed the connection]
Neo---- has joined #nixos
gentauro has quit [Quit: leaving]
<{^_^}> [hydra] @edolstra pushed 5 commits to notifications: https://git.io/fj536
Theuni2 has quit [Ping timeout: 250 seconds]
mexisme has quit [Ping timeout: 250 seconds]
<adisbladis> exarkun: I think this should work (you're gonna have to re-adapt your nixpkgs pinning) http://ix.io/1Rq2/nix
* exarkun reads
rndd has joined #nixos
<rndd> hi everyone
<rndd> have a question... cannot open new terminal in xmonad
dsiypl4 has joined #nixos
<rndd> tried shift+mod+enter
<adisbladis> https://github.com/exarkun/tahoe-lafs/blob/nix-dev-environment/nix/dev.nix#L6 this one is plain wrong, you're mixing package sets
<exarkun> adisbladis: I don't know if I quite understand that. On line 6, it would be better to do `with ps;` right? But isn't ps just exactly `pkgs.python27Packages`?
<adisbladis> exarkun: By default yes, but you want to create your custom package sets
realrokka has joined #nixos
* adisbladis should write a blog post or something about how to avoid all the sharp edges in python packaging
<exarkun> please do :)
<adisbladis> exarkun: Anyway, in my paste on line 6 I create my own package set, and that's `ps` on line 12
<simpson> adisbladis: Good luck. Last time I seriously worked on this, I ended up concluding that Python's module system made impossible, *and* also that there's no minimal modification to Python which fixes the problematic design elements.
<simpson> Or I guess you might mean Python in nixpkgs specifically. Yes, please do more of that.
<adisbladis> Yes, nixpkgs specifically
<adisbladis> I'm _not_ gonna fix the python module system ;)
<exarkun> adisbladis: I think I get it ... Sounds like a good rule of thumb is to never mix different versions of pythonPackages
<adisbladis> exarkun: Yeah :)
<adisbladis> And nixpkgs makes it far too easy to accidentally mix
<adisbladis> (or misunderstand)
<rndd> -_-
<adisbladis> simpson: Fixing the python module system would probably result in not-python
<andi-> dos buildPythonPackage require anything special for .pyx files? Should I "compile" them during the build phase?
<exarkun> okay trying to adapt this solution now
<exarkun> my first try did not succeed
zeta_0 has joined #nixos
<FRidh> andi-: nothing special
<FRidh> just add cython
<sphalerite> andi-: maybe adding pyrex to the build inputs
<FRidh> setup.py arranges the build
<sphalerite> oh
<exarkun> is there something wrong with this idiom? `withPackages (ps: [ (ps.callPackage ./tahoe-lafs.nix { }) ])`?
<sphalerite> yeah listen to FRidh , FRidh knows what FRidh is talking about. Unlike myself :D
<FRidh> exarkun: that's ok
<andi-> sphalerite: thanks
<rndd> guys
<rndd> pls help
<infinisil> rndd: This isn't an xmonad channel
<rndd> but I launched xmonad within nixos
<Taneb> rndd: try asking in #xmonad
<FRidh> exarkun: withPackages is just a thin wrapper around buildEnv to make it easier to use. There should be no reason you need ignoreCollisions, except for namespace packages in Python 2
ThatDocsLady_ has quit [Quit: Leaving]
<infinisil> rndd: You'd at least have to provide your config, it's almost impossible to help otherwise
<exarkun> FRidh: Twisted has this "dropin.cache" thing that always collides in a mostly meaningless way. I seem to need ignoreCollisions to get past that.
selfsymmetric-pa has joined #nixos
<FRidh> exarkun: which packages together give the collisions?
<exarkun> FRidh: eg twisted and nevow
<FRidh> ah, I think we need to remove the cache file during the build
<exarkun> fwiw my problems now seem to have to do with things other than the choice between buildEnv and withPackages
<{^_^}> [nixpkgs] @samueldr pushed commit from @rasendubi to release-19.03 « acpilight: add to module-list »: https://git.io/fj53F
<FRidh> had to do the same with pytest
<exarkun> FRidh: yea that'd be reasonable. particularly if then some buildEnv hook could generate a new one combined all the packages in the env ...
Neo--- has joined #nixos
noudle has joined #nixos
Neo---- has quit [Remote host closed the connection]
rndd has quit [Quit: WeeChat 2.5]
leothrix has quit [Ping timeout: 245 seconds]
<infinisil> I guess not
<zeta_0> infinisil: searching through nixos options i found the `lib` option in`nixpkgs.pkgs` is this the option that i need to set up in my home.nix ihaskell let expression, here is the code that i tried to build but had an error thrown: `attribute 'loPrio' missing`? https://nixos.org/nixos/options.html#nixpkgs.pkgs https://gist.github.com/zeta-00/d7753b2077c413bc4f5493f49bc71f09
ilikeheaps has joined #nixos
<infinisil> It's lowPrio, I only accidentally wrote loPrio at some point
o1lo01ol1o has quit [Remote host closed the connection]
dm9 has joined #nixos
o1lo01ol1o has joined #nixos
leothrix has joined #nixos
<enteee> I need android-studio with additional libraires in the fhs-env. I have created two scripts which are more or less copy & pasted from nixpkgs with minor additions. Can somebody have a quick look and maybe give me a pointer on how I can achive the same without copy & pasting from nixpkgs?
zeta_0 has quit [Quit: doing another rebuild]
___laika has joined #nixos
<enteee> * shell.nix: https://pastebin.com/9u0cw3k4 , * android-studio.nix: https://pastebin.com/V3TevXes
<enteee> my changes are in android-studio.nix at around line 136
Neo---- has joined #nixos
<adisbladis> exarkun: /buffer 53
<adisbladis> Sorry :)
<adisbladis> Damn weechat, horrible ux
Neo--- has quit [Ping timeout: 252 seconds]
<cransom> https://github.com/NixOS/nixpkgs/pull/63864 has languished for a while, anyone interested in an (afaict) easy merge?
<{^_^}> #63864 (by cransom, 6 weeks ago, open): datadog-agent: fix extraIntegrations
ThatDocsLady has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #66486 → zlib: Add comments regarding static/shared linking → https://git.io/fj7xr
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5sk
<{^_^}> [nixpkgs] @grahamc merged pull request #63864 → datadog-agent: fix extraIntegrations → https://git.io/fjo3D
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/fj5sm
Neo---- has quit [Remote host closed the connection]
ThatDocsLady_ has joined #nixos
dansho has joined #nixos
ThatDocsLady has quit [Ping timeout: 252 seconds]
Neo---- has joined #nixos
<ivegotasthma> hello, I have a python module that I fails to build because of django.settings not being found. Is there a way I can fix that? I tried injecting django / django-sr / django_compat but they have 0 effect.
erba has joined #nixos
<{^_^}> [nixpkgs] @Infinisil merged pull request #64309 → clight: init → https://git.io/fj62w
<{^_^}> [nixpkgs] @Infinisil pushed 6 commits to master: https://git.io/fj5sO
ixxie has joined #nixos
<erba> Can someone give me some insight when it comes to installing things with nix-env rather than through configuration.nix and nixos-rebuild? I've only modified configuration.nix (and my imported nix configs) as well as through shell.nix for some cases.
kenshinCH has joined #nixos
<sphalerite> erba: you mean when it's useful?
<{^_^}> [hydra] @edolstra opened pull request #668 → Turn hydra-notify into a daemon → https://git.io/fj5sW
<sphalerite> erba: it's useful on non-nixos platforms where you don't _have_ nixos-rebuild
<erba> sphalerite: yes, and does it not mutate the system state?
<sphalerite> it does have a number of drawbacks in its primary intended use case though
<sphalerite> ,imperative
<erba> sphalerite: oh
<{^_^}> nix-env has multiple drawbacks as an imperative package manager. nix-env -u will sometimes upgrade to the wrong thing; the outputs to install are very finicky to override; and packages that have been removed or are otherwise unavailable will remain in your profile without any warnings. Consider using a ,declarative setup instead.
<sphalerite> it can also be used by unprivileged users, which can be useful
<erba> {^_^}: Yeah I keep using declarative setup then ;)
MmeQuignon has quit [Ping timeout: 245 seconds]
<sphalerite> {^_^} is a bot ;)
<adisbladis> erba: {^_^} is a bot :)
<erba> sphalerite: Thanks, I didn't even consider non NixOS distros :P
<erba> adisbladis: lol xD
<{^_^}> [nixpkgs] @kalbasit merged pull request #66472 → prometheus-varnish-exporter: 1.5 -> 1.5.1, use buildGoModule → https://git.io/fj75c
<{^_^}> [nixpkgs] @kalbasit pushed commit from @WilliButz to master « prometheus-varnish-exporter: 1.5 -> 1.5.1, use buildGoModule (#66472) »: https://git.io/fj5sl
lsix has quit [Quit: Konversation terminated!]
noudle has quit []
<erba> sphalerite: lol ok xD
<erba> adisbladis: that last msg was meant for sphalerite :P I got confused
<sphalerite> erba: and it makes mixing nixpkgs versions less fiddly than nixos itself does, though nixos arguably still does it _better_ (in terms of declarativeness)
<sphalerite> erba: it has its uses, but if you're happy with system-wide config through the nixos configuraiton then stick with that :)
zeta_0 has joined #nixos
<erba> I see, thanks guys :)
drakonis has joined #nixos
<erba> sphalerite: I've been using that and shell.nix for some projects.
Lukas4452 has quit [Ping timeout: 244 seconds]
<zeta_0> infinisil: after fixing the typo i am still getting an error, do i need to add the nixpkgs.pkgs option in order for it to work?
<clever> zeta_0: what is nixpkgs.pkgs set to?
<infinisil> zeta_0: "getting an error", if you're getting an error, *show* the error, that should be obvious by now..
rauno has joined #nixos
drakonis_ has quit [Ping timeout: 268 seconds]
Lukas4452 has joined #nixos
<Miyu-chan> Is there a way to transform `:: Map k [v]` into `:: Map v [k]`? That is, it changes the values into keys, and keys into values.
wildtrees has joined #nixos
<Miyu-chan> I know that I can do it with recursiveUpdate, but the code's, uh, not too intuitive, IMO.
<zeta_0> clever: well that is the only place i see the `lib` option, i am trying to find a simple way to set package priorites because there is a collision between: `ghc-with-packages` and `ihaskell-with-packages`, is that the option i need to set?
wildtrees has quit [Max SendQ exceeded]
wildtrees has joined #nixos
<clever> > builtins.listToAttrs (lib.mapAttrsFlatten (k: v: { name = v; value = k; }) { key = "value"; })
<{^_^}> { value = "key"; }
<clever> Miyu-chan: ^^
<gchristensen> builtins.listToAttrs (lib.mapAttrsFlatten (k: v: { name = v; value = k; }) { key = "value"; oops = "value"; })
<clever> zeta_0: the biggest question is why your installing 2 haskell things, since they will both provide a ghc binary, and always collide
<gchristensen> > builtins.listToAttrs (lib.mapAttrsFlatten (k: v: { name = v; value = k; }) { key = "value"; oops = "value"; })
<{^_^}> { value = "key"; }
drakonis has quit [Ping timeout: 264 seconds]
<Miyu-chan> Uh, wow.
<Miyu-chan> Wait, let me give it a try.
<Miyu-chan> Because holy shit if that works.
<zeta_0> infinisil: `error: attempt to call something which is not a function but a set`
<Miyu-chan> Oh.
<zeta_0> clever: ihaskell does not build when i try to install it together with my other haskell packages, apparently something is broken in nixos 19.03
o1lo01ol1o has quit [Remote host closed the connection]
<exarkun> Does ... ugh
<exarkun> if a propagatedBuildInput isn't explicitly referenced is it removed from the closure?
o1lo01ol1o has joined #nixos
<mdash> exarkun: yes, closures only contain things referenced in the outputs
pietranera has quit [Quit: Leaving.]
<exarkun> How does this work with the python support though
<{^_^}> [nixpkgs] @mmahut merged pull request #65422 → teamspeak_server: 3.8.0 -> 3.9.1 → https://git.io/fjyca
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5sa
<mdash> exarkun: "propagated" means that it comes along as a build input to anything else that depends on the thing
<exarkun> "import hamcrest" is not clearly a reference to pyhamcrest
<mdash> i.e., 'foo.propagatedBuildInputs = [ baz ];' means that anything that does 'buildInputs = [ foo ];' gets baz as a build input too
<adisbladis> For python propagatedBuildInputs _are_ referenced in the output
<exarkun> it seems like pyhamcrest is incorrectly a twisted propagatedBuildInput when it should really be a checkInput but given that it is a propagatedBuildInput I don't understand why I can't "import hamcrest"
<mdash> adisbladis: ah, that's why it's so confusing
<adisbladis> mdash: They're in `$out/nix-support/propagated-build-inputs`
wfranzini has joined #nixos
<gchristensen> colemickens: ping when you're 'round?
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<exarkun> Does `nix-shell` change any of this?
<{^_^}> [nixpkgs] @worldofpeace merged pull request #66483 → calibre: wrap manually → https://git.io/fj7Fb
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fj5sr
<adisbladis> exarkun: nix-shell makes python deps importable via $PYTHONPATH, so I suggest you start looking there.
wfranzini has quit [Read error: Connection reset by peer]
<exarkun> I don't see any nix-support in this python-env output
<mdash> adisbladis: yeah, i remember this now.
<{^_^}> [nixpkgs] @mmahut merged pull request #65170 → tmpwatch: add fuser support → https://git.io/fjMlE
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5sK
o1lo01ol1o has joined #nixos
<adisbladis> exarkun: env derivatinos are not laid out the same
Lukas4452 has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @mmahut merged pull request #63686 → mlarchive2maildir: init at 0.0.6 → https://git.io/fjwoA
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5s6
<exarkun> here's my minimal example, finally, https://gist.github.com/exarkun/efde2f45626dda42c0c519075673482c
<exarkun> twisted has pyhamcrest as a propagatedBuildInput but you cannot import hamcrest in the nix-shell that results from that expression
hoijui has quit [Ping timeout: 264 seconds]
<andi-> FRidh: what if adding cython doesn't add any .pyx to the generated package
<exarkun> andi-: .pyx are the source files
<{^_^}> [nixpkgs] @mmahut merged pull request #63424 → seafile-shared: 6.2.11 -> 7.0.2 → https://git.io/fjaxn
<{^_^}> [nixpkgs] @mmahut pushed 3 commits to master: https://git.io/fj5si
<adisbladis> exarkun: Where do you see pychamrest being a propagatedBuildInput ? :S
<exarkun> `nix edit nixpkgs.pythonPackages.twisted`
<adisbladis> Oh ignore me
<adisbladis> I made a typo
<exarkun> that is good
<exarkun> I was about to lose it
wfranzini has joined #nixos
lambda-11235 has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #63600 → fail2ban: fix dovecot filter's journalmatch → https://git.io/fjVhc
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5sP
<zeta_0> clever: i sent you a message
<clever> zeta_0: i answered
<adisbladis> exarkun: Can it be as simple as `import pyhamcrest` -> `import hamcrest` ? ;)
<adisbladis> Because the latter works
<Miyu-chan> Seems like this has the most promise?
<Miyu-chan> Example:
lordcirth has quit [Remote host closed the connection]
<Miyu-chan> zipAttrsWith (name: values: values) [{a = "x";} {a = "y"; b = "z";}]
<exarkun> adisbladis: What nixpkgs are you on? 'import hamcrest' is what I tried, it doesn't work here.
<Miyu-chan> => { a = ["x" "y"]; b = ["z"] }
<adisbladis> exarkun: Master from this morning
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/878531fbdbb (from 71 minutes ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
ilikeheaps has quit [Ping timeout: 248 seconds]
<exarkun> So ... `nix edit ...`. What does this show me? Is it going to show me the express that's part of what I get from `import <nixpkgs> { }`?
<clever> exarkun: yeah
<clever> exarkun: another handy thing is, nix edit -f ~/nixpkgs hello
Ariakenom has joined #nixos
fendor has quit [Ping timeout: 245 seconds]
chloekek has joined #nixos
<adisbladis> exarkun: Could you show me the output of `nix run -f '<nixpkgs>' nix-info -c nix-info`
<exarkun> system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.2.2, channels(exarkun): "nixos-19.03.173144.973a2705351", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
<adisbladis> (I want to know which nixpkgs rev you're on)
<exarkun> that's not the nixpkgs I thought I was on :/
<exarkun> That's not the nixpkgs nixops says I'm on :/
ixxie has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @mmahut merged pull request #63654 → dotnet-sdk: 2.2.203 -> 2.2.300 (core 2.2.4 -> 2.2.5) → https://git.io/fjwRe
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5sH
<adisbladis> exarkun: And indeed it does not work on that rev
tkral has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @mmahut merged pull request #65147 → x42-plugins: 20190206 -> 20190714 → https://git.io/fjMcy
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5s7
obfusk__ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
wfranzini has quit [Read error: Connection reset by peer]
lucus216 has quit [Quit: lucus216]
wfranzini has joined #nixos
<adisbladis> It doesn't work at all on 19.03
<adisbladis> But works fine on unstable
<exarkun> I'm gonna cry
<etu> ,pinning exarkun
lordcirth has joined #nixos
<exarkun> etu: I know so much about pinning.
<exarkun> etu: Thank you for trying though.,
ilikeheaps has joined #nixos
<yorick> exarkun: try nixos-version
<yorick> that sounds like your nixpkgs channel is not the one you used the build nixpkgs
<yorick> build nixos*
<{^_^}> [nixpkgs] @Infinisil merged pull request #66503 → fetchurl: Make it overridable using `callPackage` → https://git.io/fj5vg
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fj5sA
<{^_^}> [nixpkgs] @mmahut merged pull request #63116 → opendune: support ALSA and pulseaudio (move to SDL2) → https://git.io/fj2Vj
wfranzini has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5sx
<exarkun> I think the problem I have is that some obscure part of the nixpkgs python infrastructure is broken on 19.03 and I have been using various revisions of 19.03.
<exarkun> and assuming all the while that the problem was my fault, not nixpkgs' fault.
Lukas4452 has joined #nixos
<exarkun> now I'll try switching my pin to something closer to master@HEAD and see what happens
<infinisil> zeta_0: Put the ")" after pkgs.ihaskell
<exarkun> adisbladis: That's consistent with your observations right?
<adisbladis> exarkun: Yep
<exarkun> ty for your help so far
obfusk__ has joined #nixos
<Miyu-chan> `lib.zipAttrs ((lib.mapAttrsToList (n: vs: lib.listToAttrs (map (v: lib.nameValuePair v n) vs))) xs)`
Neo--- has joined #nixos
<Miyu-chan> Does this look like it can be simplified? Eep
Neo---- has quit [Remote host closed the connection]
zeta_0 has quit [Quit: doing another rebuild]
<Miyu-chan> > lib.zipAttrs ((lib.mapAttrsToList (n: vs: lib.listToAttrs (map (v: lib.nameValuePair v n) vs))) { a = [ "x" ]; b = [ "x" ]; })`
<{^_^}> error: syntax error, unexpected $undefined, expecting ')', at (string):262:127
<{^_^}> [nixpkgs] @gnidorah opened pull request #66533 → musescore: use qt5's mkDerivation → https://git.io/fj5sj
<Miyu-chan> > lib.zipAttrs ((lib.mapAttrsToList (n: vs: lib.listToAttrs (map (v: lib.nameValuePair v n) vs))) {a = [ "x" ]; b = [ "x" ];})
<{^_^}> { x = <CODE>; }
<Miyu-chan> > :p lib.zipAttrs ((lib.mapAttrsToList (n: vs: lib.listToAttrs (map (v: lib.nameValuePair v n) vs))) {a = [ "x" ]; b = [ "x" ];})
<{^_^}> { x = [ "a" "b" ]; }
zeta_0 has joined #nixos
lucus16 has joined #nixos
<ornx> i am making a nix package for a python program, in my package there is a file that i would like to be in the store, but it isnt installed there - how do i install that file to the store in my package?
o1lo01ol1o has quit [Remote host closed the connection]
<adisbladis> exarkun: I tried, master, unstable and 19.03
<adisbladis> Only 19.03 is broken
<adisbladis> I don't have the energy to chase down why it's not in the env derivations site-packages right now
o1lo01ol1o has joined #nixos
<exarkun> ornx: probably change your setup.py or setup.cfg or MANIFEST.in or one of the other 78 python knobs for what's in a package
kleisli_ has joined #nixos
<exarkun> ornx: as a first step, see if you can get it into the archive created by `python setup.py sdist`
<ornx> ahh
<exarkun> adisbladis: that's cool. I briefly looked at the diff between 19.03 and master for the python support and it's huge. I'm not gonna dive into that either. If it works on master, that'll be good enough for now.
<ornx> its not actually my program so any changes i make to the source have to be done via patches
<exarkun> ornx: extra fun
<ornx> oh boy
<zeta_0> infinisil: looks like the that fixed the collision error, but now i am getting the same ihaskell is broken error again, i'm back at square one again? https://gist.github.com/zeta-00/eaf8dc8b9bcb2c61cc2db3eca704994a https://gist.github.com/zeta-00/15bbc8aea97a7347f055396569b063ac
sigmundv has quit [Ping timeout: 245 seconds]
<infinisil> OH well duh, you're declaring ihaskell twice
Soo_Slow has quit [Remote host closed the connection]
<infinisil> zeta_0: If pkgs.ihaskell didn't work, so you switched to the fetchtarball thing, why did you think pkgs.ihaskell would suddenly work?
<exarkun> adisbladis: finished build of recent master, replicated your success. now to go back from minimal to complete...
<infinisil> zeta_0: You're supposed to wrap the new ihaskell expression with lowPrio
<{^_^}> [nixpkgs] @mmahut merged pull request #62650 → azimuth: use the builtins install target → https://git.io/fjuLG
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5GY
<zeta_0> infinisil: that's what i was trying to do, that's why i had the right ) wrapped around the whole let in expression.
<infinisil> Yeah I see now
<infinisil> So delete the pkgs.ihaskell from the version where you wrapped the whole thing
kleisli_ has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @mmahut merged pull request #62825 → aseprite-unfree: 1.2.9 -> 1.2.11 → https://git.io/fjzuz
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5Gs
sudoforge has joined #nixos
wfranzini has joined #nixos
ris has joined #nixos
domogled has joined #nixos
gentauro has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
dm9 has quit [Quit: WeeChat 2.5]
ThatDocsLady_ has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @jtojnar merged pull request #66531 → gnome3.evolution-data-server: Hardcode more GSettings schemas → https://git.io/fj5Oy
<{^_^}> [nixpkgs] @jtojnar pushed 3 commits to master: https://git.io/fj5G0
mexisme has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #62337 → netbeans: 10.0 -> 11.0 → https://git.io/fjEtH
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5Gu
Lukas4452 has quit [Ping timeout: 245 seconds]
Lukas4452 has joined #nixos
Lukas4452 has quit [Client Quit]
bakakuna has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #66470 → prometheus-blackbox-exporter: 0.12.0 -> 0.14.0, run tests and check config → https://git.io/fj77j
<{^_^}> [nixpkgs] @Ma27 pushed 3 commits to master: https://git.io/fj5Gg
mexisme has quit [Ping timeout: 272 seconds]
zeta_0 has quit [Quit: doing another rebuild]
enuiarte has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
zeta_0 has joined #nixos
growpotkin has joined #nixos
jlv has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/79b28f5a537 (from 46 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
bakakuna has quit [Ping timeout: 245 seconds]
<jlv> When making a package, where would I put a dependency with an executable that is called at runtime?
<clever> jlv: makeWrapper
<lucus16> Hmm, how do I get the correct hash for a manually created fixed-output derivation?
<clever> ,tofu lucus16
<{^_^}> lucus16: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<lucus16> The error just says path is not valid
<{^_^}> [nixpkgs] @mmahut merged pull request #62182 → moosefs: 3.0.104 -> 3.0.105 → https://git.io/fj0eA
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5GX
<clever> lucus16: is $out a file or a directory?
<lucus16> dir
<{^_^}> [nixpkgs] @mmahut merged pull request #66498 → librelp: 1.3.0 -> 1.4.0 → https://git.io/fj5eD
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5G1
<clever> lucus16: what is the outputHashMode?
<lucus16> recursive
<clever> lucus16: can you gist both the nix expr and the error?
<zeta_0> infinisil: the rebuild worked without any errors, so it looks like like ihaskell is finally up and running: https://gist.github.com/zeta-00/e891e675c1611c44b841ab56ae7fad01
<lucus16> sure
<alienpirate5> how do `configureFlags` work?
<{^_^}> [nixpkgs] @fpletz pushed to master « nuspell: 2.2.0 -> 2.3.0 »: https://git.io/fj5GM
<clever> alienpirate5: the default configurePhase will run ./configure with the configureFlags
<alienpirate5> clever: what type are they?
<alienpirate5> is it an array of strings, or a single string?
<clever> alienpirate5: both work
<clever> alienpirate5: stdenv.mkDerivation will force all of its arguments down to just a key/value set, with strings as values, lists turn into space seperated strings
shibboleth has joined #nixos
<alienpirate5> i see
<alienpirate5> seemingly none of them work
<clever> lucus16: and what command are you running to cause the failure?
<clever> alienpirate5: is it giving an error?
<zeta_0> infinisil++
<{^_^}> infinisil's karma got increased to 118
<lucus16> clever: nix-build . -A minecraft-forge-server (with a trivial entry in all-packages)
<zeta_0> vaibhavsagar: finally got ihaskell up and running in home.nix
<zeta_0> vaibhavsagar++
<{^_^}> vaibhavsagar's karma got increased to 2
Jackneill has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @fpletz merged pull request #66476 → nixos/prometheus2: replace alertmanagerURL with new alertmanagers option → https://git.io/fj7dk
<{^_^}> [nixpkgs] @fpletz pushed 3 commits to master: https://git.io/fj5G9
<clever> lucus16: i would expect that to just work
<{^_^}> [nixpkgs] @mmahut merged pull request #63270 → itk: 4.13.2 -> 5.0.0 → https://git.io/fjaB3
<{^_^}> [nixpkgs] @mmahut pushed 3 commits to master: https://git.io/fj5GQ
o1lo01ol1o has joined #nixos
<clever> lucus16: i can reproduce the failure
<lucus16> Hmm, so it should properly complain the hash it found
<{^_^}> [nixpkgs] @mmahut closed pull request #61562 → slirp4netns: 0.3.0-alpha2 -> 0.3.0, deps → https://git.io/fjloc
owickstrom has quit [Quit: Connection closed for inactivity]
ixxie has joined #nixos
sudoforge has quit [Ping timeout: 252 seconds]
freeman42x has joined #nixos
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<zeta_0> infinisil: so what does that lowPrio mean, lower precedence when running a program?
Neo---- has joined #nixos
Neo--- has quit [Remote host closed the connection]
Okinan has joined #nixos
o1lo01ol1o has joined #nixos
<ivegotasthma> how do I set an env variable while packaging a package?
jlv has quit [Remote host closed the connection]
<clever> lucus16: oh
<clever> lucus16: fixed-output drvs shouldnt have any dependencies
<clever> scanning for references inside '/nix/store/pxlfgb5qf1628ydbsrj8yqbnw5b0izzl-minecraft-forge-server-1.12.2-14.23.5.2838'
<clever> found reference to 'y844c6i3l5ayhyv0g1as69dv3pwzmg3v' at offset '26'
<clever> lucus16: nix-store -rvvv foo.drv, as root, reveals it has dependencies
<clever> lucus16: ah, and yeah, you are creating something with deps, the shell script
stepcut has quit [Remote host closed the connection]
selfsymmetric-pa has quit [Remote host closed the connection]
<lucus16> clever: Thanks!
jlv has joined #nixos
selfsymmetric-pa has joined #nixos
Neo---- has quit [Remote host closed the connection]
Neo---- has joined #nixos
<alienpirate5> how do I override only a single value in a set?
<alienpirate5> specifically, I would like to override `xorg.libXres` in an overlay
growpotkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
<clever> alienpirate5: xorg = xorg.overrideScope' (xsuper: xself: { libXres = xsuper.libXres.override....; });
growpotkin has joined #nixos
<alienpirate5> thanks
selfsymmetric-pa has quit [Remote host closed the connection]
Guanin has joined #nixos
MmeQuignon has joined #nixos
zeta_0 has quit [Quit: taking a break]
gentauro has quit [Quit: leaving]
<gchristensen> the page on ZFS needs a serious scrub-down
selfsymmetric-pa has joined #nixos
wfranzini has quit [Remote host closed the connection]
<andi-> ,locate libavformat.pc
<{^_^}> Found in packages: libav.dev, ffmpeg.dev, ffmpeg-full, ffmpeg-sixel, ffmpeg_2.dev, ffmpeg_4.dev, libav_12.dev, libav_0_8.dev
o1lo01ol1o has quit [Remote host closed the connection]
<exarkun> I guess I'm getting closer. Now I can import hamcrest.
<exarkun> But I still can't import appdirs :(
jlv has quit [Remote host closed the connection]
Neo--- has joined #nixos
<alienpirate5> I am trying to overlay an updated version of libinput. Here is what I have so far:
shibboleth has quit [Quit: shibboleth]
<alienpirate5> This doesn't seem to work.
__red__ has quit [Quit: leaving]
Neo---- has quit [Ping timeout: 252 seconds]
wfranzini has joined #nixos
cheshircat has joined #nixos
mexisme has joined #nixos
<exarkun> So ... more propagatedBuildInputs shennanigans
orivej has joined #nixos
<exarkun> twisted propagatedBuildInputs has appdirs in it, tahoe propagatedBuildInputs has twisted in it, withModules (ps: [ tahoe ]).env does not have appdirs in it
domogled has quit [Quit: domogled]
o1lo01ol1o has joined #nixos
kreisys has quit [Quit: Textual IRC Client: www.textualapp.com]
<kraem> i'm trying to create a notification when my battery is low with these options https://bpaste.net/show/VqH3 - I can see that the script gets in the if statement and executing the echo but it won't send a notification to dunst. If I run the script with just a simple bash script file it works. Anyone have any pointers?
sigmundv has joined #nixos
<srhb> kraem: You should probably try adding set -x so you get an idea about the values of your various env vars
<srhb> kraem: At a guess, you're missing something that notify-send expects.
<srhb> kraem: Which you'll hopefully see with set -x
MmeQuignon has quit [Ping timeout: 245 seconds]
<kraem> srhb: ah smart, didn't think of that. i'll try with set -x
<srhb> kraem: It might also be a permission error in which case the log should already have something useful for you.
<kraem> the log shows exit code 0 success - trying with a nixos-rebuild and set -x right now
zupo has joined #nixos
<srhb> kraem: If I run notify-send in a pure shell I get no notification, so maybe you can skip a step and start bisecting your env until you find the relevant variable.
o1lo01ol1o has quit [Remote host closed the connection]
<srhb> Or maybe it has a useful man page that tells you what it uses :-)
<{^_^}> [nixpkgs] @ornxk opened pull request #66534 → rivalcfg: init at 3.6.0 → https://git.io/fj5Z9
<kaliumxyz> Why doesn't nix have deconstructing?
<srhb> kaliumxyz: What is "deconstructing"?
<ornx> hooray i made my first package/pull request https://github.com/NixOS/nixpkgs/pull/66534
<{^_^}> #66534 (by ornxk, 41 seconds ago, open): rivalcfg: init at 3.6.0
<srhb> ornx: Good job!
dsiypl4 has quit [Ping timeout: 246 seconds]
<kaliumxyz> `{a, b} = {a:5; b:9;}` resulting in `a` being set to 5 and `b` being set to 9
<exarkun> there's a lot of language features nix doesn't have
<exarkun> language development is a lot of work
<exarkun> why haven't you written a proposal to add destructuring binds to the language? :)
<srhb> kaliumxyz: Ah, sort of a pattern match on sets.
<kaliumxyz> For sure, just wanted to know if there was some eqv?
<mdash> kaliumxyz: it's not often needed since this can be done in function parameters
<kraem> srhb: how would i go about bisecting my env? :o
<kaliumxyz> pattern matching is different though.
<infinisil> > :p { inherit ({a = 5; b = 9; c = 10; }) a b; }
<{^_^}> { a = 5; b = 9; }
<srhb> kraem: dump env, unset everything, reset half of it, rinse and repeat? :)
<infinisil> kaliumxyz: This works ^^
<kaliumxyz> oh cool, thanks c:
<mdash> kaliumxyz: also --
<srhb> kraem: Or you can make some educated guesses at what may be relevant.
<mdash> :p ({a, b}: a + b) {a=5; b=9;}
<mdash> > :p ({a, b}: a + b) {a=5; b=9;}
<{^_^}> 14
<{^_^}> [nixpkgs] @eadwu opened pull request #66535 → nixos/raspberryPi: use buildPackages for extlinux → https://git.io/fj5nv
<mdash> so, this destructuring works in function parameters but not let bindings
<{^_^}> [nixpkgs] @kalbasit opened pull request #66536 → vimPlugins: turn filetype and syntax before sourcing the plugins → https://git.io/fj5nf
<mdash> but as infinisil shows, you can use 'inherit' in many scenarios
<kaliumxyz> I'd like it to work in let bindings to use for importing credentials as to not commit the credential file.
<infinisil> Yeah the `inherit` also works in let's
<kaliumxyz> Let me try that c:
<aminechikhaoui> Is there an stdenv/nixpkgs function like substituteAll but that doesn't require input/output files ?
<exarkun> You don't _need_ destructuring binds to be _able_ to do things, they just save some typing
<exarkun> > let x = {a = 5; b = 6;}; a = x.a; b = x.b; in a + b
<{^_^}> 11
o1lo01ol1o has joined #nixos
<ivegotasthma> how do I set an env variable while packaging a package?
zupo has quit [Ping timeout: 248 seconds]
<srhb> ivegotasthma: FOO=bar
<ivegotasthma> inside the nix expression?
<srhb> ivegotasthma: All nix vars in mkDerivation are available to the builder.
sigmundv has quit [Remote host closed the connection]
<srhb> As shell vars.
<mdash> ivegotasthma: string attributes on derivations are turned into env vars
<mdash> aminechikhaoui: you can just use string interpolation if it's not a file
<mdash> > :p let foo = "nix"; baz = "strings" in "example of ${baz} in ${foo}"
<{^_^}> error: syntax error, unexpected IN, expecting ';', at (string):262:34
o1lo01ol1o has quit [Remote host closed the connection]
<mdash> > :p let foo = "nix"; baz = "strings"; in "example of ${baz} in ${foo}"
<{^_^}> "example of strings in nix"
<mdash> heh i never put enough semicolons...
<kaliumxyz> :d exarkun I went with that solution.
<kaliumxyz> I always feel like its better to not add too much candy to a language :d
<kaliumxyz> ^ on pattern matching
<kaliumxyz> *I mean deconstructing
<kaliumxyz> :d
<kaliumxyz> though interesting that nix has pattern matching and not deconstructing.
<exarkun> it's a pretty limited form of pattern matching
<exarkun> it's only for sets. probably because most of what you do with nix is work with sets.
<ivegotasthma> mdash: srhb: thanks guys
sigmundv has joined #nixos
sigmundv_ has joined #nixos
<kaliumxyz> anyways, thanks c:
sigmundv has quit [Client Quit]
<elvishjerricco> A password has ended up in my system logs.
<kaliumxyz> I might take that suggestion of trying my hand at writing a deconstructing proposal actually, it makes sense given that pattern matching function arguements works in the same way.
<kaliumxyz> rip elvishjerricco :c
<elvishjerricco> I don't want to delete my whole log history, but I'd like to delete the part of the journal that has this password written to it
<elvishjerricco> Is there a way to do that with journalctl?
<gchristensen> better change the password
<kaliumxyz> lol
vButtner[m] has joined #nixos
<kaliumxyz> you can clear the units log (probably) instead of the entire thing.
vButtner[m] is now known as vdot0x23[m]
* kaliumxyz grabs the journald source code
klntsky has quit [Remote host closed the connection]
gxt has quit [Remote host closed the connection]
jtojnar has quit [Ping timeout: 245 seconds]
klntsky has joined #nixos
gxt has joined #nixos
selfsymmetric-pa has quit [Ping timeout: 246 seconds]
<kaliumxyz> I think you can find the specific line and remove it from the system.journal file.
<elvishjerricco> Could I just.... `rm system.journal`? :P
bakakuna has joined #nixos
liberiga has joined #nixos
dftxbs3e has quit [Quit: Leaving.]
rycee has left #nixos ["User left"]
rycee has joined #nixos
<srhb> kraem: (In case you didn't find it, the problem is likely DBUS_SESSION_BUS_ADDRESS)
orivej has quit [Ping timeout: 268 seconds]
<silver_hook> I have trouble with nixos-rebuild because it seems it times out on downloading nerd-fonts. I managed to download the full archive with wget, where should I copy it to, to successfully restart the build?
<Shyim[m]> Hey. I have an issue with nixos-install. With my configuration I get a c++ error. Same config nixos-rebuild works. In which repository do I have create an issue?
<srhb> silver_hook: nix-store --add-fixed sha256 yourfile
<silver_hook> srhb: Awesome, thanks:)
<srhb> silver_hook: Are you sure it timed out though? GitHubs release thing is really, really slow at times.
<srhb> And afaik that tarball is huge.
<silver_hook> It cancelled
<silver_hook> yeah, it is
<srhb> Oh :/
<silver_hook> s/cancelled/failed
<{^_^}> [nixpkgs] @knedlsepp opened pull request #66537 → mirrors: Add centos mirror → https://git.io/fj5nr
<srhb> silver_hook: Out of curiosity, do you have the error message from that?
drakonis has joined #nixos
<silver_hook> What’s the NixOS pastebin of choice?
<srhb> silver_hook: gist? Maybe. Not sure we have one :)
<{^_^}> [nixpkgs] @singron opened pull request #66538 → kernel generate-config.pl: Allow whitespace in values → https://git.io/fj5nK
<srhb> silver_hook: Aah, okay, that makes sense.
<kaliumxyz> elvishjerricco you can just edit the password out of the system.journal file
<kaliumxyz> inb4 this corrupts
<kaliumxyz> let me test
<kaliumxyz> yea that just werk
ilikeheaps has quit [Ping timeout: 244 seconds]
<kaliumxyz> just replace it with ******* lol
drakonis has quit [Ping timeout: 264 seconds]
doug457 has joined #nixos
___laika has quit [Ping timeout: 258 seconds]
<elvishjerricco> Looks like there's only a few days worth of logs in the active journals. I'm just gonna `journalctl --rotate` them and delete the archive files
<kaliumxyz> Just edit the password out
<kaliumxyz> You can do that easily.
<kaliumxyz> Turns out it stores messages in plain text.
dsiypl4 has joined #nixos
<doug457> any body have experience with installing NixOS in VirtualBox?
o1lo01ol1o has joined #nixos
<srhb> silver_hook: Oh, I forgot, you're probably going to have to unpack it too: nix eval '(builtins.fetchTarball "file:///path/to/tarball")'
<doug457> I keep running nixos-graphical-19.03.173251.56d94c8c69f-x86_64-linux.iso in VirtualBox v6.0.10 r132072, but it keeps hanging shortly after I select the installer option on grub
<srhb> doug457: Hanging how?
<silver_hook> srhb: Before or after
<doug457> CPU Usage spikes for 10 to 15 seconds, as I assume its loading the kernel/booting/whatever, but then CPU usage drops, and it just displays some info
jtojnar has joined #nixos
<doug457> Whoops that pic is blank/black, hold on
<srhb> silver_hook: Sorry, instead* ;-)
o1lo01ol1o has quit [Remote host closed the connection]
<ivegotasthma> is there an idiomatic way of dealing with python packages that throw ImproperlyConfigured for django configuration settings?
<ivegotasthma> I'm packaging a project and running the tests causes a failure
<doug457> srhb: I ran Installer (debugging) from grub, now its stuck here with no CPU usage: https://paste.pics/56f15b504fec32f76e679f7c1180bbad
o1lo01ol1o has joined #nixos
* silver_hook wonders why the whole massive Nerd Font meta package is needed in the first place. It is probably not using all the possible fonts.
<srhb> silver_hook: If there's a source for the individual fonts that would probably be way nicer, yes.
<doug457> Cut off power to VirtualBox VM, ran again Installer (debug), hangs/stops with different message: https://paste.pics/78176ca573fcc2517a9005ef691c17df
<colemickens> <gchristensen "colemickens: ping when you're 'r"> Should be back to my hotel room in 20 minutes or so.
<gchristensen> oh cool
<joepie91> beep beep matrix usage detected
<joepie91> :D
<doug457> My, I think my ISO is corrupting, SHA256 doesn't match... is there a torrent file for NixOS iso images?
<doug457> hmm, I think my ISO is corrupting, SHA256 doesn't match... is there a torrent file for NixOS iso images?
<lordcirth> doug457, I don't see one on the download page.
<lordcirth> The ISO changes pretty frequently, I think.
<gchristensen> interesting
<gchristensen> doug457: which ISO?
<doug457> lordcirth: you are correct, the SHA256 didn't match because I have an ISO I downloaded yesterday
<doug457> the one listed is for a new ISO they uploaded
<gchristensen> ah, good
<srhb> doug457: There's also some issue where the nomodeset option is needed in VirtualBox, but iirc that's at a different stage.. Cheap to try though
o1lo01ol1o has quit [Remote host closed the connection]
<doug457> srhb: running now, looks promising! thanks!
<{^_^}> [nixpkgs] @jslight90 opened pull request #66539 → nixos/gitlab: properly clear out initializers → https://git.io/fj5nx
<silver_hook> srhb: And there is! https://github.com/ryanoasis/nerd-fonts/releases
<srhb> silver_hook: I'm a bit puzzled that the sum of those doesn't seem to add up to the size of the full ball.
<srhb> silver_hook: Maybe there's even more unnecessary cruft in it?
<silver_hook> silver_hook: Noto is cca. 800 MiB
chloekek has quit [Ping timeout: 248 seconds]
<gchristensen> is there a way to make firefox and friends automatically detect my network printer and just print?
<gchristensen> I keep forgetting to put the cups config in a place not erased on each boot :P
<srhb> doug457: Oh, that was unexpected, but oh well :-)
fendor has joined #nixos
o1lo01ol1o has joined #nixos
orivej has joined #nixos
<andi-> gchristensen: let cups discover printers with avahi and make sure that something in your network advertises the printer? (most do that themselfs)
drakonis has joined #nixos
<gchristensen> oh cool
<gchristensen> I'll go look in to avahi :)
<makefu> andi-: i have yet to see avahi work without issues under NixOS. it seemed a lot of tools are missing avahi bindings to resolve .local addresses . at least that was my experience last year
<makefu> hopefully it got better :)
<andi-> I think I saw ONE printer in my list that was discovered
___laika has joined #nixos
doug457 has quit [Remote host closed the connection]
<srhb> I've never had issues with avahi and browsed stuff.
<fendor> small question, since I just noticed that nixos is on opencollective, are monthly contributions or yearly contributions better for the nixos project? E.g., fewer taxes in yearly contributions
<colemickens> gchristensen: I'm back online for an hour or two, what's up? :)
shabius has quit [Quit: Leaving]
o1lo01ol1o has quit [Remote host closed the connection]
zupo has joined #nixos
o1lo01ol1o has joined #nixos
<simpson> fendor: If you donate code, then you owe no taxes at all~
___laika has quit [Ping timeout: 272 seconds]
<fendor> simpson, would love to donate code, unfortunately, not yet ready to do it, but I am working on it :)
<fendor> however, servers need to be paid anyways
<{^_^}> [nixpkgs] @mmahut merged pull request #66058 → fcppt: 3.0.0 -> 3.2.2 → https://git.io/fjH5A
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5cL
<gchristensen> fendor: I don't think they make a difference either way
<fendor> gchristensen, the donations? why not?
<{^_^}> [nixpkgs] @JustinLovinger opened pull request #66540 → seadrive-gui: init at 1.0.7, seadrive-daemon: init at 1.0.6 → https://git.io/fj5ct
<alienpirate5> i wonder if it's possible to write an IRC bot in nix
<alienpirate5> I know IO is difficult
<gchristensen> ie, I don't think there is a taxes difference
<kraem> srhb: alright. i tried setting DISPLAY and XAUTHORITY. any thought of how i would source DBUS_SESSION_BUS_ADDRESS from my user?
<makefu> alienpirate5: just template a bash script together which is essentially run via $(nix-build)
<alienpirate5> I mean in actual Nix
<simpson> alienpirate5: Nix is not a good choice of language for IRC bots.
<srhb> kraem: So the problem is the approach in general, the debus session is a dynamic thing created at user login
<srhb> kraem: usually set by a session manager or something like that
<fendor> gchristensen, I see, thank you!
<srhb> kraem: A regular systemd service cannot have any knowledge of that
<kraem> srhb: yeah i saw that when doing echo $DBUS...
<alienpirate5> simpson: I am aware
<alienpirate5> wondering if it's possible to do at all
<kraem> srhb: so would you say i'd need to run it as a script under my user started by my wm instead?
<simpson> alienpirate5: Hopefully not.
___laika has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<srhb> kraem: How about as a systemd.user.services service?
<srhb> kraem: Depending on your exact setup that might just work out of the box (mine know about DBUS_SESSION_BUS_ADDRESS)
hodlwave has quit [Quit: Bye!]
<kaliumxyz> how do I allow a deriviation which makes an internet request in the install phase?
<symphorien> disable the sandbox
<kaliumxyz> I want to use npm to build something which has too many dependencies for node to nix to be realistic
<kaliumxyz> Is that not system wide?
<kaliumxyz> the sandbox
<symphorien> there is no other way that I know
zupo has quit [Ping timeout: 268 seconds]
<simpson> Or be fixed-output, which probably isn't possible here.
<simpson> The npm tree sucks and is slow, sure, but to what degree is that npm's fault?
<kaliumxyz> npm is horrible but I cannot get around having to use it right now.
<kaliumxyz> Its all fully npm corps fault.
<kaliumxyz> :c
<tokudan> kaliumxyz: would yarn be an option? yarn2nix worked better for me than node2nix
<judson_> I'm installing a NixOS laptop for the first time in a while, and I am ... amused by a couple of spots in the manual.
<simpson> kaliumxyz: Sure. So the recipe in the docs at https://nixos.org/nixpkgs/manual/#node.js-packages doesn't work, right? How doesn't it work?
<judson_> "Burn a DVD as you normally would" which, sure, but then Brasero insists that it cannot find the drive I want to use, and xorriso gives me unsupported media errors :)
<judson_> Also "the rules for swap size are no different than other distributions" is quite a punt.
shabius has joined #nixos
<kaliumxyz> Will check out that source in the nearby future. I don't really have the time budget to expiriment with using node2nix again right now, I'll check yarn2nix out on a project in the future. c:
fendor has quit [Ping timeout: 245 seconds]
<kaliumxyz> I'll make the derivation fail if you do not have a node_modules folder in the project root.
<kraem> srhb: would i substite systemd.<myownusername>.services ? or how do i define the user? i can't find anything in the nixos options
joshuagl has quit [Quit: Textual IRC Client: www.textualapp.com]
<simpson> kaliumxyz: Okay, but you're likely making things hard on yourself by not reading. The technique is to alter some JSON, call a batch script, and wait for a few minutes for nixpkgs to regenerate that portion of the tree. It's not fun, but it's not bad.
npmccallum has quit [Quit: npmccallum]
<kaliumxyz> This package has over 1000 dependencies.
<tokudan> kaliumxyz: which package?
niksnut has quit [Quit: Lost terminal]
<kaliumxyz> The one I'm building.
gyroninja_ has joined #nixos
gyroninja has quit [Ping timeout: 246 seconds]
shibboleth has joined #nixos
Neo---- has joined #nixos
Neo--- has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @mmahut merged pull request #66060 → ponyc: 0.28.1 -> 0.30.0 → https://git.io/fjHdX
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5cr
mexisme has quit [Ping timeout: 268 seconds]
turion has joined #nixos
<turion> I have a webserver running NixOS, nginx and nextcloud. I've written a webapp with Haskell & servant. I want to run it there, probably with nginx as reverse proxy. Is that possible so far?
drakonis has quit [Quit: Leaving]
hoijui has joined #nixos
<turion> cabal2nix generated a file from my .cabal. Can I include that in my config and start a systemd service somehow?
<srhb> kraem: No, it just exists for all users.
shibboleth has quit [Remote host closed the connection]
<infinisil> turion: Yeah, use services.nginx.virtualHosts.<name>.locations.<name>.proxyPass to proxy to localhost, systemd.services.<name>.serviceConfig.ExecStart = "${pkgs.haskellPackages.callPackage ./file.nix {}}/bin/foo" to run the service
<infinisil> (might need some more stuff, but those are the most important bits)
thc202 has quit [Ping timeout: 250 seconds]
<turion> infinisil: Awesome!
<turion> Is there a place to read up on that stuff? I couldn't find something like this in the nixpkgs manual
<turion> I sort of had the nginx part and some of the systemd figured out, but how to call my haskell executable was a mystery
<makefu> turion: for some things there is some extra info in https://nixos.wiki , options can generally be found via https://nixos.org/nixos/options.html#
<turion> makefu: Yes, that's where I got the Systemd and nginx stuff from
<infinisil> turion: Well how to call the cabal2nix generated nix file should be described in the cabal2nix readme or so
* infinisil checks
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos
ixxie has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @mmahut merged pull request #66539 → nixos/gitlab: properly clear out initializers → https://git.io/fj5nx
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5C3
dsiypl4 has quit [Ping timeout: 268 seconds]
bakakuna has quit [Ping timeout: 244 seconds]
<turion> infinisil: I can call it from a shell, but I didn't know how to include it in a config
<{^_^}> [nixpkgs] @mmahut merged pull request #66057 → dotnet.sdk: 2.2.300/2.2.5 -> 2.2.401/2.2.6 → https://git.io/fjH55
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5C0
sudoforge has joined #nixos
dsiypl4 has joined #nixos
<turion> infinisil: I got it to work: https://www.manuelbaerenz.de/
<turion> Thanks a lot!
mexisme has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #66071 → dogecoin: 1.10.0 -> 1.14.1 → https://git.io/fjHbt
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5CV
<{^_^}> [nixpkgs] @mmahut merged pull request #65557 → qbe: unstable-2019-05-15 -> unstable-2019-07-11 → https://git.io/fjSO6
drakonis has joined #nixos
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fj5Cr
eraserhd2 has joined #nixos
<{^_^}> [nixpkgs] @colemickens opened pull request #66541 → libinput 1.13.4 -> 1.14.0 → https://git.io/fj5Co
<infinisil> turion: Cool! You seem to be well versed in FRP :o
<turion> Less in nix though ;) but I'm learning
eraserhd has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @mmahut merged pull request #63735 → manual: remind to drop kernels that will get EOL'd → https://git.io/fjrvH
<{^_^}> [nixpkgs] @mmahut pushed 3 commits to master: https://git.io/fj5CK
<turion> One thing I don't understand: If I change my configuration.nix, then my haskell servant web app is sometimes recompiled even if I didn't change anything about its config
<kraem> srhb: i'm totally stuck. can
justanotheruser has quit [Quit: WeeChat 2.4]
<kraem> do you know anywhere i can read up on systemd services in nixos? the wiki isn't very exhaustive
<{^_^}> [nixpkgs] @mmahut closed pull request #62607 → riemann-tools: 0.2.13 -> 0.2.14, add more config options → https://git.io/fjEdv
<infinisil> turion: Probably because the cabal2nix file has `src = ./.` and you did a change in the directory it's in
_deepfire has quit [Remote host closed the connection]
<turion> Ah, true!
<infinisil> You could override src to some input that filters out everything you don't need
<turion> You're sure you didn't already hack into my server? Or how do you know these things? ;)
<infinisil> Hehe
<{^_^}> [nix] @zimbatm opened pull request #3041 → Fix for `unknown serve command 13` → https://git.io/fj5CP
<infinisil> Rather common issue
<infinisil> Oh that reminds me of nh2's #56985
<{^_^}> https://github.com/NixOS/nixpkgs/pull/56985 (by nh2, 22 weeks ago, open): sources: Add explicitFilterSource
<gchristensen> wow, zimbatm!
<zimbatm> ^_^
<gchristensen> way to go :D
<andi-> how many hours of debugging did get into that?
<andi-> *did go
hoijui has quit [Quit: Leaving]
<turion> infinisil: Hmmm... does that mean that all files I have in the source directory are also in the working directory for the servant process?
<infinisil> Nah the src = ./. just assigns the source for the haskell build
<infinisil> Has nothing to do with runtime
<turion> Ah
<turion> I mean, when I just start the servant web app from the console, I can tell it to serve some local files
<turion> That doesn't work anymore now, because it probably has a different working directory
<turion> It's a bit ugly to hardcode an absolute path, but well...
<{^_^}> [nixpkgs] @ivegotasthma closed pull request #56091 → vimPlugins.coc: init at 19.02.2019 → https://git.io/fhddS
justanotheruser has joined #nixos
<zimbatm> andi-: ~4 days faffin around. 1 day to build the repro and then 1 day for the fix. probably 1 more day for review and getting things merged
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/81e28b4e9ac (from 71 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<andi-> zimbatm: thanks for investing the time :) I've been through similar experiences :)
asymptotically has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<ij> would it take a restart for hardware.brightnessctl.enable = true to take effect?
mix has joined #nixos
<tokudan> is there a way to override the node package for yarn in a nix-shell? I've tried "(yarn { nodejs = nodejs-10_x; })" but it fails
<tokudan> erm... yeah. "yarn.override {nodejs = ... ;}"
<turion> Well, thanks again infinisil, that was a cool and fast way to bring up a website using nearly only functional programming
<ij> the answer is: yes
turion has quit [Quit: Leaving.]
<jgt> today I learned that NixOS makes some people very angry. I got kicked from the #nginx channel after this :P https://imgur.com/a/FqePyM6
<arianvp> Fun
<infinisil> jgt: Well you were rather provocative there
<infinisil> But yeah the other guy wasn't very nice..
o1lo01ol1o has quit [Read error: Connection reset by peer]
<jgt> infinisil: I thought I asked a fair question. Not sure why it was met with "WTF IS THIS?!"
o1lo01ol1o has joined #nixos
<infinisil> Yeah they overreacted :P
<arianvp> Some people in OSS are extremely... Idk the word for it. I had a similar interaction today in #systemd that was super unpleasant
<arianvp> Linus-on-mailinglisty
zeta_0 has joined #nixos
<jgt> arianvp: you could be a diplomat :)
<ivegotasthma> this guy who is reviewing my pull requests is showing some super cool tricks for packaging projects
<ivegotasthma> he's half man, half nix expression
liberiga has quit [Ping timeout: 260 seconds]
<arianvp> Haha
<jgt> oh wow… I just realised why the other guy wasn't very nice. Sometimes I forget that everyone has their own private hardships in life.
<simpson> And also you were pretty rude.
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.1]
<gchristensen> yeah that was really rude
<exarkun> simpson: People being rude to you on IRC is a common private hardship!
<jgt> saying that I guessed he was unfamiliar with NixOS?
cfricke has quit [Ping timeout: 258 seconds]
erasmas has quit [Quit: leaving]
<exarkun> jgt: You should probably reflect on it. If you realize it yourself you'll probably learn more.
<gchristensen> exarkun++
<{^_^}> exarkun's karma got increased to 1
<{^_^}> [nixpkgs] @matthewbauer opened pull request #66542 → mesa: add surfaceless egl platform → https://git.io/fj5Wm
<betaboon> jgt: "and now I
<jgt> betaboon: …you know these messages are in chronological order, right?
<betaboon> "and now I'd like to hear from someone who actually knows what they're talking about"
<betaboon> just pointing to the part that i would find rude
<jgt> betaboon: I understand that, but I didn't start out by being rude
<kaliumxyz> :d nginx mods kinda overreacted but life is hard
<gchristensen> it was certainly a bit on both sides, but definitely was escalated by that second to last comment
<kaliumxyz> no warning?
<gchristensen> at any rate, let's chalk that up to a learning moment, and please do remember to be polite, even in the face of rudeness
<gchristensen> and welcome to the channel :)
<jgt> no warning, but like I said, I understand now why that person may have less patience than the average person
<betaboon> jgt: yeah i saw that you didnt "start it". but well... in the end it doesnt matter who threw the first stone if everyone involved ends up with a slap in the face
<jgt> betaboon: well, I think I have to agree
<gchristensen> sounds good :)
erba has quit [Quit: WeeChat 2.4]
zeta_0 has joined #nixos
<betaboon> jgt: i guess i learned that the hard way in relationships with the other sex XD communication is sometimes even harder than reading code xD
Neo--- has joined #nixos
* jgt concurs
Neo---- has quit [Ping timeout: 252 seconds]
<andi-> jgt: that remind me of trying to get freeradius support without using the boilerplate default config…
<andi-> *reminds
growpotk- has joined #nixos
<jgt> in any case, I managed to fix the issue I was having. It helps that there are lots of good Nix examples on GitHub
<spacekookie> Does anyone know if I need to install something to make all the settings in the firefox print dialog show up? A bunch of them are just grayed out
<andi-> you mean in like page setup?
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.1]
<spacekookie> Yea, for example "pages per page" setting isn't available
<nh2> The best way to get stuff done on the Internet is to be always very polite in text chat. It is higly likely that some person one just pissed off is just the person one needs to answer a question, either a current one or another question a week later.
<nh2> A good response to "what's this weird system you're using" is to bring the discussion back on topic with something neutral and non-judging like "I think this doesn't really matter for this question, I care mainly about how nginx interprets this config file, not how it's being generated or what the file system structure is".
<nh2> Accusing ignorance to somebody will only make that person and everyone else not like you, not help you, and thus waste lifetime.
<spacekookie> And I have someone setting next to me who has several more tabs in there. But he's on Debian
<gchristensen> nh2++ so true
<{^_^}> nh2's karma got increased to 15
<andi-> spacekookie: that probably depends on the selected printer?
<jgt> nh2: I agree with you, but what I was met with was very much _not_ "what's this weird system you're using"
<gchristensen> jgt: the important takeaway is: it doesn't matter. always take the very polite route. it doesn't matter how they treated you, only how you treat them
<spacekookie> andi-: I'm just trying to print another PDF
<spacekookie> Which should support all the features
<jgt> gchristensen: yes, I conceded that earlier :)
<nh2> spacekookie: I am not sure but I observe that my Firefox and `eog` print dialogues look very similar (probably some standard GTK thing) but have different numbers of tabs. So it seems quite likely that you can install or configure something system-wide that affects how many tabs are shown. I also observe that the number of tabs changes depending on the printer chosen
<gchristensen> jtojnar: then I am confused by your "I agree with you, but"
<gchristensen> oops, sorry jtojnar. jgt ^
<spacekookie> nh2: Oh interesting, actually there seems to be a difference between "print to file" and "print to PDF" which this person has, but I don't
<jgt> gchristensen: because by misquoting the other person, it becomes a strawman argument, and it changes the narrative to one of me having overreacted. If the language were "what's this weird system you're using", I would have interpreted that as an innocent curiosity, and happily discuss further.
<spacekookie> I have service.printing or whatever enabled
o1lo01ol1o has quit [Remote host closed the connection]
<andi-> I think the keyword here is "portals" that is how those cross-application dialogs are implemented IIRC
Neo---- has joined #nixos
o1lo01ol1o has joined #nixos
<pie__> elvishjerricco: clever: looks like luks2 actually does the dual header thing https://gitlab.com/cryptsetup/cryptsetup/blob/master/docs/on-disk-format-luks2.pdf
<nh2> jgt: it can be anything from "what's this weird system", over "I don't like your system" or "XYZ is crap" to "I don't like your face". The best approach is to just ignore 100% of snark, and drive the conversation back to the topic as if you were a robot without feelings
<elvishjerricco> pie__: Dual header thing?
<pie__> elvishjerricco: zfs stores copies of metadata at both ends
freeman42x has quit [Ping timeout: 252 seconds]
<elvishjerricco> Right, the uberblock
<elvishjerricco> the label, more accurately
<Miyu-chan> I may be misremembering, but weren't there PRs(issues?) w.r.t. packaging Windows binaries with WINE?
Neo--- has quit [Ping timeout: 250 seconds]
<pie__> Miyu-chan: if yes, link me
<spacekookie> nh2: Oh, nixos is lacking a package for this: https://www.cups-pdf.de/
<pie__> hm apparently they dont duplicated the key storage area for security reasons but do put it at a higher offset
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<{^_^}> #10165 (by joepie91, 3 years ago, closed): WINE configuration?
<Miyu-chan> Thanks!
<nh2> spacekookie: maye time to make one!
<Miyu-chan> This was the specific one I was looking for. https://github.com/NixOS/nixpkgs/pull/7597
<{^_^}> #7597 (by jraygauthier, 4 years ago, closed): Added YNAB paid wine package.
<Miyu-chan> (Which is linked under the issue.)
<spacekookie> nh2: yea looking into it :P
<jtojnar> “CUPS-PDF requires root privileges since it has to modify file ownerships”
<jtojnar> *shudders
<gchristensen> ooof
Neo---- has quit [Remote host closed the connection]
Neo---- has joined #nixos
<pie__> 0_0
<pie__> SELINUX IMMEDIATELY
<gchristensen> omg
<gchristensen> a nix-build driver for cups, running all the scary scripts and stuff inside the build sandbox
<pie__> joepie91: did you link me this when i was playing with wine? :P
<pie__> gchristensen: hmm
<Miyu-chan> Um. Is this for distributing PDFs specifically? I have a "print to file" option on my own machine.
<Miyu-chan> (Heck, it's the only option I have, since I don't have a printer.)
<nh2> infinisil: would you mind having a look at my other `fetchurl` PR, https://github.com/NixOS/nixpkgs/pull/66506 ?
<{^_^}> #66506 (by nh2, 17 hours ago, open): fetchurl: Don't force-override curl's gssSupport to on unnecessarily
<nh2> infinisil: that addresses the original problem we found yesterday; I found that the force-overriding behaviour wasn't necessary, and probably an accidental side effect of a fix specific for Darwin/Windows
zeta_0 has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
<Miyu-chan> Well, I think linking WINE configuration just got it revived. :D
<Miyu-chan> ... commented 15 seconds ago
kenshinCH has quit [Ping timeout: 244 seconds]
<gchristensen> looks scary, nh2
<gchristensen> but that low in the bootstrapping phase spooks me :P
<Miyu-chan> I'm pushing this for visibility. It's still WIP, but I think it fits NixOS pretty well. https://github.com/NixOS/nixpkgs/pull/53600/files
<Miyu-chan> TL;DR, instead of adding what luks devices to mount, it instead mounts a file system as luks, and will luksOpen it before mounting.
<Miyu-chan> s/mounts a file system/marks a file system/
growpotkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
vika_nezrimaya has joined #nixos
<Miyu-chan> So you'll have `fileSystems."/" = { fsType = "ext4"; luksTarget = "root"; neededForBoot = true; }`
<gchristensen> nh2: your comment makes it less scary
<nh2> gchristensen: `10.rebuild-linux: 0` also makes it less scary
ixxie has joined #nixos
<infinisil> gchristensen: nh2: Yeah I think that PR is rather harmless, seems more like fixing an oversight
<{^_^}> [nixpkgs] @Infinisil merged pull request #66506 → fetchurl: Don't force-override curl's gssSupport to on unnecessarily → https://git.io/fj5JU
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fj5W5
mbrgm_ has joined #nixos
<nh2> infinisil: thanks!
<infinisil> Thanks for the PR :)
mbrgm has quit [Ping timeout: 264 seconds]
mbrgm_ is now known as mbrgm
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.1]
hodlwave has joined #nixos
slyfox_ has joined #nixos
slyfox has quit [Ping timeout: 258 seconds]
ixxie has quit [Remote host closed the connection]
growpotk- has quit [Ping timeout: 245 seconds]
Ariakenom has quit [Quit: Leaving]
growpotkin has joined #nixos
Neo---- has quit [Read error: Connection reset by peer]
Neo---- has joined #nixos
<pie__> who the heck coded that if its true https://gitlab.com/cryptsetup/cryptsetup/issues/440 0_0
zeta_0 has joined #nixos
wildtrees has quit [Quit: Leaving]
<pie__> you cant resize a luks2 partition if you have authenticated encryption enabled (which is one of the reasons to switch i think...) https://gitlab.com/cryptsetup/cryptsetup/issues/388
<pie__> * currnetly unsupported
ris has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @nh2 pushed 2 commits to texmacs-1.99.10: https://git.io/fj5lL
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.1]
ng0 has quit [Quit: Alexa, when is the end of world?]
xkapastel has quit [Quit: Connection closed for inactivity]
xkapastel has joined #nixos
<vaibhavsagar> how do I use `extraCommands` in `dockerTools` to create a home directory for a user?
<vaibhavsagar> I'm trying to do `chown -R user /home/user` but it isn't working because the user doesn't exist yet
<gchristensen> hi vaibhavsagar!
<gchristensen> specify the uid instead of the name
<gchristensen> but I think I have another sample for you
<gchristensen> vaibhavsagar: https://pastebin.com/raw/6rqLwK29 is what ikwildrpepper did to make jovyan work :)
jgt has quit [Ping timeout: 250 seconds]
<vaibhavsagar> I tried that too
<vaibhavsagar> still doesn't work
<vaibhavsagar> I'm currently trying `mkdir -m 1777 -p /home/user`
<gchristensen> yeah, afaik, you can't make files owned by a different user unless you're root (and you're not root in a build)
<vaibhavsagar> gchristensen: the `extraCommand` documentation says it runs as `root` in a build, is that false?
<vaibhavsagar> or am I just misunderstanding
<gchristensen> ehh
<gchristensen> I don't see extraCommand in the docs at all :/
<gchristensen> but thaht paste I linked to is known to work with buildLayeredImage
<gchristensen> and jovyan
<vaibhavsagar> how does it create the home directory?
<vaibhavsagar> and `/tmp`?
<gchristensen> I'd need to defer to ikwildrpepper, but maybe jovyan does it automatically since it has sudo
<gchristensen> or ... maybe not. I'd need to defer to ikwildrpepper
<vaibhavsagar> I might just go with a combination of your original thing + `extraCommands`
<gchristensen> super weird extraCommands isn't documented :/
<vaibhavsagar> with respect, I'm not that surprised :)
<vaibhavsagar> gchristensen: a combination of your earlier gist + some `mkdir -m 777` commands seems to work okay
kleisli_ has joined #nixos
<gchristensen> nice!
<vaibhavsagar> IHaskell has its own idiosyncracies in addtion to Jupyter's
<vaibhavsagar> which is why I feel the need to rediscover everything
<nh2> worldofpeace: in https://github.com/NixOS/nixpkgs/pull/59427#discussion_r275159522, why libplist? It's already a propagaged dep of libimobiledevice, and I think the idevicerestore deps just copy-pasted libimobiledevice's deps:
<worldofpeace> nh2: four months ago so, I'm not sure what I've mean't. Would you like me to look over everything again?
<nh2> worldofpeace: I don't think that's necessary, I can bring you up-to-date with some details:
growpotkin has quit [Ping timeout: 268 seconds]
<worldofpeace> nh2: We also realized that everything imobile related should be updated at once. so we need to try to match the dates of the commits from the packages already in nixpkgs
<nh2> In your comment, you had propsed that I add `libplist` to the dependencies of my newly added package `idevicerestore`. I suspect that you proposed that because the upstream project lists it as a dependency here:
<nh2> I believe that thus I don't need to list it in `idevicerestore`'s `buildInputs`, because it's already automatically pulled in.
<nh2> However, I think that the upstream project (idevicerestore being an executable), simply has it in that list because it's a dependency of its dependency library, `libimobiledevice`.
<nh2> Does that help with the memory refreshing? :)
<gchristensen> vaibhavsagar: okay