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
nevermind has joined #nixos
<inkbottle> What is the difference between home-manager and https://gist.github.com/domenkozar/9071879#file-configuration-nix-L48-L73?
<gchristensen> one is a project with a bunch of contributors, the other is 25 line long snippet of shell script in a 6 year old gist
ilyagotfryd has joined #nixos
<emily> what is the difference between nix and gnu stow?
<emily> (not serious.)
<inkbottle> I'm only discovering nix for a fiew hours now
<gchristensen> in the end, home-manager probably does something similar to what that shel snippet does
<gchristensen> but with a fancier interface
<emily> it can also manage a lot more programs
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JenUi
<{^_^}> [nixpkgs] @jonringer merged pull request #69859 → python37Packages.pydns: 3.2.0 -> 3.2.1 → https://git.io/JeZ6R
jluttine has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @worldofpeace opened pull request #70041 → Fix certain desktop managers building together → https://git.io/JenUy
<worldofpeace_> and people maintain home-manager
jluttine has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #69857 → python37Packages.kconfiglib: 10.36.0 -> 12.12.1 → https://git.io/JeZ6G
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JenUd
anderslundstedt has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JenUN
tek has quit [Ping timeout: 276 seconds]
bhipple has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @ericdallo opened pull request #70042 → gnomeExtensions.drop-down-terminal: init at v24 → https://git.io/JenUx
<{^_^}> [nixpkgs] @worldofpeace closed pull request #69834 → gnomeExtensions.drop-down-terminal: init at v24 → https://git.io/JeZwj
ilyagotfryd has quit [Ping timeout: 268 seconds]
tek has joined #nixos
<{^_^}> [nixpkgs] @ajs124 opened pull request #70043 → apparmor: 2.13.1 -> 2.13.3 → https://git.io/JenTI
dansho has joined #nixos
kvda has joined #nixos
anderslundstedt has joined #nixos
drakonis has joined #nixos
growpotkin has joined #nixos
ng0_ has joined #nixos
worldofpeace_ has quit [Ping timeout: 240 seconds]
ng0 has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @arcnmx opened pull request #70044 → llvmPackages_9.compiler-rt: remove outdated crt patch → https://git.io/JenTW
<{^_^}> [nixpkgs] @jonringer merged pull request #69938 → quilter: 1.9.5 -> 2.0.0 → https://git.io/JeZH6
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JenTE
boxscape has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JenT2
<{^_^}> [nixpkgs] @jonringer merged pull request #69937 → qlcplus: 4.12.1 -> 4.12.2 → https://git.io/JeZHr
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/7a3083fef83 (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
ebzzry has quit [Ping timeout: 244 seconds]
tek has quit [Ping timeout: 276 seconds]
andreas303 has quit [Remote host closed the connection]
andreas303 has joined #nixos
rsoeldner has joined #nixos
selfsymmetric-mu has joined #nixos
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
<{^_^}> [nixpkgs] @romildo pushed 2 commits to master: https://git.io/JenTS
<{^_^}> [nixpkgs] @romildo merged pull request #69698 → numix-icon-theme-square: 19.02.22 -> 19.05.07 → https://git.io/JeZla
<{^_^}> [nixpkgs] @romildo pushed 2 commits to master: https://git.io/JenTQ
<{^_^}> [nixpkgs] @romildo merged pull request #69727 → papirus-icon-theme: 20190802 -> 20190919 → https://git.io/JeZ0J
danderson has quit [Ping timeout: 264 seconds]
danderson has joined #nixos
iyzsong has joined #nixos
zacts has joined #nixos
rsoeldner has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 245 seconds]
philr has joined #nixos
<{^_^}> [nixpkgs] @nagisa opened pull request #70045 → berglas: init at 0.2.0 → https://git.io/JenTA
worldofpeace_ has joined #nixos
worldofpeace_ has quit [Client Quit]
rsoeldner has joined #nixos
sovea has joined #nixos
tsrtiv^ has quit []
drakonis has left #nixos ["WeeChat 2.6"]
drakonis has joined #nixos
iyzsong has quit [Quit: ZNC 1.7.4 - https://znc.in]
nnst^ has joined #nixos
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
drakonis has quit [Quit: WeeChat 2.6]
drakonis has joined #nixos
felixfoertsch23 has joined #nixos
andreas303 has quit [Read error: Connection reset by peer]
felixfoertsch has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @jonringer merged pull request #69920 → python37Packages.validators: 0.13.0 -> 0.14.0 → https://git.io/JeZ9q
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JenkJ
andreas303 has joined #nixos
goodwill has quit [Quit: ...]
goodwill has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #70046 → zeek: 2.5.5 -> 3.0.0 → https://git.io/Jenkk
ilyagotfryd has joined #nixos
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #70014 → yder: 1.4.7 -> 1.4.8 → https://git.io/JeZNa
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jenkm
drakonis has quit [Quit: WeeChat 2.6]
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/7a3083fef83 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
drakonis has joined #nixos
Henson has joined #nixos
<Henson> this is a dumb question, but how do I convert an integer to a string. I've tried something like foo = 12; string = "hi ${foo} there" but it complains about coercing an integer to a string
<{^_^}> [nixpkgs] @marsam merged pull request #70038 → ffsend: 0.2.51 -> 0.2.52 → https://git.io/JenUv
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jenk0
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
Henson has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
<samueldr> > toString 1
<{^_^}> "1"
<samueldr> aw, they're gone
ilyagotfryd has quit [Ping timeout: 276 seconds]
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
<{^_^}> [nixpkgs] @jonringer closed pull request #69847 → python37Packages.opt-einsum: 2.3.2 -> 3.0.1 → https://git.io/JeZos
andreas303 has quit [Ping timeout: 260 seconds]
doublex has joined #nixos
rsoeldner has quit [Ping timeout: 246 seconds]
rsoeldner has joined #nixos
MinceR_ has joined #nixos
andreas303 has joined #nixos
sovea has quit [Remote host closed the connection]
MinceR has quit [Ping timeout: 265 seconds]
philr has quit [Ping timeout: 240 seconds]
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
abbe has quit [Quit: “Everytime that we are together, it's always estatically palpitating!”]
abbe has joined #nixos
reilithion has quit [Remote host closed the connection]
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
<{^_^}> [nixpkgs] @teto closed pull request #62762 → vis: leverage lua environments → https://git.io/fjuhL
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/99dd49fa6ed (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
Zer0xp has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
iyzsong has joined #nixos
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
<{^_^}> [nixpkgs] @kcalvinalvin opened pull request #70047 → nixos/cmt: Fix incompatibility with plasma5 → https://git.io/JenkH
chr15 has joined #nixos
mrCyborg has quit [Quit: The Lounge - https://thelounge.github.io]
mrCyborg has joined #nixos
sb0 has quit [Quit: Leaving]
fling has quit [Ping timeout: 245 seconds]
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
<{^_^}> Channel nixos-19.09 advanced to https://github.com/NixOS/nixpkgs/commit/7a3083fef83 (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-19.09)
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #69923 → eksctl: 0.5.2 -> 0.6.0 → https://git.io/JeZ9l
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JenIt
bokov has joined #nixos
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
abathur has quit [Ping timeout: 245 seconds]
<bokov> how can i make fetchurl to download a gitub release (which is a URL redirect): https://github.com/unisonweb/unison/releases/download/release%2FM1d/unison-linux64.tar.gz ?
iyzsong has quit [Ping timeout: 246 seconds]
<infinisil> bokov: Is there a problem with using that url directly?
sellout-1 has joined #nixos
sellout- has quit [Ping timeout: 240 seconds]
<bokov> ok, I see now. the problem is somewhere else. it downloads correctly, but then I get: `unpacking source archive /nix/store/kfpyy25xwb8jq2w2s0gf6ijikyr38dpr-unison-linux64.tar.gzunpacker appears to have produced no directories` . If I unpack this file manually there's indeed no directories, but just one file. how can I make this to be accepted as
<bokov> `src`?
rizan has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/9017f8c7cf3 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
Rusty1 has quit [Quit: Konversation terminated!]
rizan has quit [Remote host closed the connection]
iyzsong has joined #nixos
<infinisil> bokov: Try `unpackPhase = "mkdir source; cp $src source"`
<bokov> ``` unpackPhase = '' mkdir -p $out/bin tar -xzf $src -C $out/bin '';```
<bokov> this worked for me
<infinisil> Ah yeah that's better
<infinisil> Oh actually
<infinisil> bokov: Use fetchzip instead of fetchurl
<infinisil> Then don't set unpackPhase
infinee has joined #nixos
wfranzini has quit [Remote host closed the connection]
ilyagotfryd has joined #nixos
rsoeldner has quit [Ping timeout: 276 seconds]
orivej has joined #nixos
<infinisil> samueldr: Would be cool if that error included something like "did you mean to use toString?"
<{^_^}> [nixpkgs] @etu merged pull request #70034 → phpPackages.phpcbf: 3.4.2 -> 3.5.0 → https://git.io/Jenf6
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/JenIN
rsoeldner has joined #nixos
<{^_^}> [nixpkgs] @etu opened pull request #70048 → [19.09] phpPackages.phpcbf: 3.4.2 -> 3.5.0 → https://git.io/JenIh
<thefloweringash> what's the story for writing out of tree buildGoModule based packages? buildGo111Module and buildGo112Module require different modSha256 values. nixos-19.03 only has buildGo111Module and nixos-unstable only has buildGo112Module. Do I have to use { buildGo111Module ? null, buildGo112Module ? null }: ... and check which one was actually provided?
rsoeldner has quit [Ping timeout: 246 seconds]
rsoeldner has joined #nixos
<infinisil> thefloweringash: That's a very good question, and I don't know a good answer to it
<infinisil> I haven't ever thought about the sha256 being different for different versions
<infinisil> And if you use buildGoModule, you can't even control the version really
<thefloweringash> it also seems like it's going to surprise anyone who tries to change `buildGoModule =` from 111 to 112
fling has joined #nixos
ilyagotfryd has quit [Ping timeout: 265 seconds]
drakonis has quit [Quit: WeeChat 2.6]
gxt has quit [Remote host closed the connection]
johanot_ has joined #nixos
johanot_ has quit [Client Quit]
rsoeldner has quit [Ping timeout: 246 seconds]
johanot has quit []
lovesegfault has joined #nixos
<thefloweringash> oh, the PR that did that bumped all the hashes on the in-tree packages (#58103)
<{^_^}> https://github.com/NixOS/nixpkgs/pull/58103 (by kalbasit, 27 weeks ago, merged): buildGoModule: use go_1_12 instead of go_1_11
<lovesegfault> Does the concept of a developer and/or maintainer exist in the NixOS project? Akin to Gentoo developers or Arch's Trusted Users, etc?
<dminuoso> Mmm, Im running `programs.ssh.startAgent = true;` but it doesnt appear to be picked up. Every time I use ssh, I dont get any askpasswd screen - I have to manually re-add identities. Is this by design?
<infinisil> thefloweringash: Took me a while but a related issue is https://github.com/NixOS/nix/issues/2270
<{^_^}> nix#2270 (by edolstra, 1 year ago, open): Restrict fixed-output derivations
<infinisil> The thing described there would prohibit things like buildGoModule
<infinisil> thefloweringash: Hm although, why do the hashes of buildGoModule change really? Shouldn't it only download the dependencies without compiling?
gila has joined #nixos
<thefloweringash> the diff shows each package has two new files: list.lock and $version.lock
<infinisil> lovesegfault: Yeah there are people who can commit to nixpkgs (committers/nixpkgs members), those that can maintain packages (see the recent rfcs#39), and anybody can submit PRs and become a contributor
<{^_^}> https://github.com/NixOS/rfcs/pull/39 (by grahamc, 36 weeks ago, merged): RFC-0039: unprivileged maintainer team
Okinan has quit [Quit: Konversation terminated!]
johanot has joined #nixos
<infinisil> dminuoso: Did you export your ssh key to ~/.gnupg/sshcontrol?
<infinisil> I believe that's necessary
<lovesegfault> infinisil: I see, but there isn't a clear/structured NixOS dev. hierarchy then?
<lovesegfault> Other than commit access devs -> non-access devs -> passerby contributors
<simpson> lovesegfault: Such a hierarchy doesn't cleanly separate, since most of nixpkgs requires other parts of nixpkgs.
<lovesegfault> simpson: I'm not sure I understand what you mean
<simpson> We don't award special powers to those willing to touch glibc or gcc, AFAICT; we just have high expectations for the Nix expressions themselves.
<simpson> lovesegfault: You mentioned Gentoo and Arch. In those communities, it's possible for package maintainers to be extremely isolated and also to provide dependencies to other packages, creating a sort of power differential, and thus a hierarchy of responsibilities.
<simpson> But in nixpkgs, just keep stuff working. The package sets we build in CI reflect community usage patterns rather than some meritocratic ideal.
<lovesegfault> simpson: Yes, like in Gentoo the people maintaining the core packages have their actions ripple through all people maintaining everything else
<lovesegfault> But what if a pkg breaks? Who do I go complain to?
<simpson> lovesegfault: Sure. But in nixpkgs, the *packages* have changes in their literal code, and those changes ripple through other packages. The people are incidental.
<infinisil> lovesegfault: simpson: Well I guess there is edolstra as the unofficial head since he's the creator of Nix, and then there's a couple "head devs" if you will that are part of the NixOS organization
<simpson> Find out what changed, and you'll know how it broke.
<lovesegfault> (FWIW I'm asking this out of pure curiosity, I have no horse in this race and I'm not here to prove any sort of point)
<lovesegfault> (Disclosure: I maintain stuff for Gentoo)
<simpson> infinisil: Sure. Lucky 10000: Power and responsibility are formally dual. By having different repositories with different committers and release responsibilities, a power differental between Nix and nixpkgs naturally forms.
<lovesegfault> simpson: Okay, but if I'm an user the last thing I want is to spend my day going over some Nix expression to find out why something I had working broke, no?
<lovesegfault> Like, I don't think it's a good policy to tell users to fix their own problems or go home :P
<simpson> lovesegfault: No worries. I used to be a Gentoo contributor. I am hoping to get across a bit of a point about Nix itself. Nix's way of treating packages is (transitionally, imperfectly) fundamentally different than in other systems, and those technical differences are reflected in how people (can) interact with it.
<simpson> lovesegfault: Like, *why* did it break? With Nix, generally breakage is a result of user action.
<lovesegfault> simpson: E.g. a GCC bump broke it
<simpson> And those actions are reversible. nixpkgs can be pinned, and in fact can be manipulated directly via git. NixOS generations can be rolled back.
<lovesegfault> Or a revdep library had it's version bumped including ABI changes but the bump didn't bump the soname
<simpson> lovesegfault: Then rewind to before the GCC bump. That is a thing that you can do. You can also use git to revert just the GCC bump and keep other changes, although it's not guaranteed that that'll build (Nix isn't commutative).
<simpson> There's no revdep-rebuild. No need for it. Nix simply doesn't let those situations arise.
<lovesegfault> How does Hydra (that's the build automation thing, correct?) handle package settings?
<lovesegfault> Like, for n USE flags there are 2^n possible different pkg "configuration states"
<lovesegfault> I know they're not called USE flags in Nix, they're like settings on the formula that you override
<lovesegfault> (I remember seeing a PR a long time ago for global USE flags in Nix)
<infinisil> This one probably: https://github.com/NixOS/nixpkgs/pull/56227
<{^_^}> #56227 (by oxij, 31 weeks ago, open): Typed `nixpkgs.config` with Gentoo-like use-flags
<lovesegfault> (Disclosure: We use Nix at work and I work with a handful of people from Tweag I/O thus the Nix curiosity)
<infinisil> lovesegfault: nixpkgs doesn't build multiple configs of packages, it only builds the default
<lovesegfault> infinisil: Ah, I see, that avoids the problem :)
<infinisil> Well it builds all the packages in the top-level attribute set
<simpson> Most USE flags aren't desired at all, or are intrinsic. Nix specializes on the build triple, more or less, and that's enough for what most folks want.
<infinisil> So this means you can define `hello_with_feature` and `hello_without_feature` in the top-level set to have multiple configs
<simpson> Most speed-focused packages are moving to runtime CPU detection, blessedly, and that takes out the need for -march=native rebuilds.
<lovesegfault> infinisil: That makes me turn my nose for some reason :P
<simpson> There *will* be times when you'll want to tell a package to be built slightly differently, but they're rare.
endformationage has quit [Ping timeout: 240 seconds]
<jluttine> in a string like: ''foo ${${pkgs.bar}}'', how do i escape the outer $ so that nix won't evaluate it? i tried ''foo \${${pkgs.bar}}'' getting unexpected DOLLAR_CURLY error.. i want the resulting string to be ''foo ${/nix/store/....-bar-...}''
<simpson> The desired use cases are few. There might be `package` and `package_static`, or `package_3_95`, or `package_full`, or `package_barebones`.
<lovesegfault> jluttine: It's $$ IIRC?
<infinisil> > ''foo ''${${pkgs.hello}}''
<{^_^}> "foo ${/nix/store/rr3y0c6zyk7kjjl8y19s4lsrhn4aiq1z-hello-2.10}"
<lovesegfault> > ''foo $${pkg.hello}''
<{^_^}> "foo $${pkg.hello}"
<lovesegfault> Ah, right, $$ escapes $
<lovesegfault> simpson, infinisil does this tie in to why I sometimes see _wrapped pkgs?
<lovesegfault> like, wtf is neovim_wrapped?
<simpson> lovesegfault: Wrappers usually have to do with funky linking conventions that only correctly execute when the planets and environment variables align.
<simpson> For neovim, I'd guess either the Lua or the Python support requires a runtime wrapper.
<jluttine> lovesegfault infinisil: thanks!
<infinisil> lovesegfault: simpson: For neovim and a lot of other wrappers, they let you configure some additional things on top of the original package
<infinisil> Meaning that changing the wrapper configuration won't have to rebuild the non-wrapped derivation
<lovesegfault> infinisil: Can you give me an example of one such thing? (not necessarily on neovim)
<infinisil> lovesegfault: Well neovim is such an example, see https://nixos.wiki/wiki/Vim#Customizations for an example
<infinisil> vim_configurable is another
<simpson> infinisil: Ah, that's interesting. Good point.
<lovesegfault> infinisil: Oh oh oh
<lovesegfault> I think I get it!
<lovesegfault> neovim_wrapped is neovim + its configurable dependencies & it's config file defined at configuration-eval time?
<jluttine> does systemd service have the username in the environment or somehow that i could access it in ExecStart? i tried $USER but apparently that's not defined in that context
<lovesegfault> jluttine: %U?
<lovesegfault> Something like that
<infinisil> lovesegfault: There's only pkgs.neovim or pkgs.neovim-unwrapped :)
<infinisil> But yeah, pkgs.neovim is what you described as neovim_wrapped
<lovesegfault> infinisil: Got it :)
<lovesegfault> v. neat
<infinisil> jluttine: ExecStart isn't interpreted by a shell, so environment variables can't be read like that. You can use systemd.services.*.script to have some command executed in a shell
<jluttine> lovesegfault: yeah, thanks, %u did it!
graf_blutwurst has joined #nixos
<jluttine> infinisil: ok, thanks
<lovesegfault> jluttine: :)
<infinisil> lovesegfault: jluttine: Ah neat, didn't know about %u :o
<simpson> lovesegfault: The one final feature of Portage we'll map to Nix is eselect. Nix lets us simply parameterize whatever expressions we like, so e.g. selecting a Python version is a matter of rebuilding the entire Python package set upon a particular Python interpreter.
<simpson> > [ python3Packages.requests pypyPackages.requests ]
<{^_^}> [ <CODE> <CODE> ]
<lovesegfault> infinisil: :)
<infinisil> simpson: (prepend with :p for strict eval)
<lovesegfault> simpson: I do love eselect
<lovesegfault> I tried moving to NixOS a couple months back
<lovesegfault> But I had Wayland issues
<lovesegfault> and I found writing Nix to be quite hard
<infinisil> Reading what eselect does.. That sounds like a stateful nightmare!
<simpson> Do you *need* Wayland? It's possible to have a good life on standard Xorg.
<lovesegfault> Lots of times I wanted to write something, I'd google it, I'd write it, and it didn't work
<dminuoso> Is there any motivation to add Haskell-style `where` declarations to nix?
<lovesegfault> then I'd come here or ask a coworker who would say "Oh, yeah, we don't use that function in lib, it's broken"
<lovesegfault> infinisil: eselect is wonderful, as long as you don't maintain it :P
<manveru> dminuoso: doesn't `let` cover that already?
<lovesegfault> simpson: I _like_ wayland, that's all
<lovesegfault> I find it suits my HiDPI displays better
<infinisil> lovesegfault: Might want to check out https://github.com/colemickens/nixpkgs-wayland
<dminuoso> manveru: Well let forces you to supply the bindings first, and *then* mention the definition.
<dminuoso> manveru: where flips that around.
<manveru> dminuoso: yes, but i never understood why people like that :P
<dminuoso> manveru: Because you get to focus on the definition of something first, without going through supplementary bindings.
<manveru> dminuoso: and you'd need some `in ... where` construct, because you can't rely on indentation
<simpson> manveru: In Haskell, where-bindings have automatic scoping over themselves and the main definition, making recursion a little easier.
<lovesegfault> infinisil: I had seen that before, but I didn't understand its use; a lot of the pkgs there are already on nixpkgs?
m0rphism has joined #nixos
<simpson> dminuoso: ^^^ Because of `rec` in Nix, this might not be the best fit for where-bindings.
<manveru> simpson: ah, i never noticed that :)
<manveru> i'm still a haskell noob
<infinisil> lovesegfault: Probably, but nixpkgs is very slow with updates and likely not as focused on wayland as colemickens
gxt has joined #nixos
<infinisil> But yeah maybe nixpkgs works just fine
<infinisil> If I were to try out wayland, I'd use colemickens' repo anyways
<lovesegfault> infinisil: I mean, one can just use the unstable channel, right?
<simpson> manveru: No worries. Haskell's got an interesting design compared to many other MLs, in that there's a deliberate choice to have *pairs* of equivalent functionality. Both let- *and* where-bindings.
<infinisil> lovesegfault: Unstable channel just means whatever updates were committed to nixpkgs arrive in it without a long delay
<graf_blutwurst> Good morning. I was wondering if someone could tell me how I can target a specific minor version of the kernel? the current 4.19.75 leads to a kernel panic on my system. Right now I'm way ahead on 5.3.1 but that's not quite working right.
<simpson> We might say that Nix is in the "expression" style of ML. let-bindings, case analysis, calling methods to delegate functionality.
<infinisil> lovesegfault: But that doesnt' mean the updates committed upstream get committed to nixpkgs
<infinisil> So packages can lag behind updates a lot
<lovesegfault> graf_blutwurst: https://nixos.org/nixos/manual/options.html#opt-boot.kernelPackages
<lovesegfault> infinisil: Wait, now you confused me :P
<lovesegfault> I thought unstable was 'cut' from git master?
<lovesegfault> At some high frequency
<infinisil> lovesegfault: Upstream releases new version -> Somebody notices the new version and makes a PR to nixpkgs (master) -> PR gets merged -> hydra builds everything until everything builds -> new channel gets released
<infinisil> Yeah that's right
gxt has quit [Client Quit]
<lovesegfault> :O
<lovesegfault> But there's like 50k pkgs!
<infinisil> But the whole process there can take quite some time, which is why unstable doesn't mean packages are up to date
<lovesegfault> Stuff must break all the time
<infinisil> lovesegfault: Ah yeah correction, it's only a small subset needed for the channel to advance, lemme see..
<graf_blutwurst> lovesegfault: That's how I currently set my kernel as per https://nixos.wiki/wiki/Linux_kernel problem is that I can't seem to list the available kernel packages. They all get listed as "marked as broken"
gxt has joined #nixos
<lovesegfault> infinisil: Aha! This makes more sense :)
<lovesegfault> infinisil: Doesn't sound like it's too bad to get those to build :)
<lovesegfault> Speaking of which: has the patchelf bump happened yet?
<infinisil> It does include a lot more if you go through the transitive dependencies, not sure how I could count that though, hmm..
<infinisil> lovesegfault: Yes but no, has been reverted :(
<graf_blutwurst> ah never mind the broken packages issue was just me being stupid. but still can't figure out how to specify a minor version
<infinisil> Last time I checked anyways
Ariakenom has joined #nixos
<lovesegfault> infinisil: Oh no, why?
<{^_^}> #69213 (by yorickvP, 1 week ago, open): regressions due to patchelf: 0.9 -> 0.10
<dminuoso> simpson: Im not sure I understand. Having `rec` does not immediately seem like a reason not to have where.
<lovesegfault> infinisil: Oh, damn, that's pretty bad :P
<infinisil> I feel a bit bad for booxter, who I think I originally motivated to do the 0.10 upgrade, and they worked hard on it, only for the PR to be ignored for months, then finally merged, and a week later reverted again
wfranzini has joined #nixos
<infinisil> :(
<lovesegfault> infinisil: Yes, that must be incredibly frustrating
<simpson> dminuoso: In the ML tradition, it usually is. I happened to be reading an SPJ presentation where he talks about this, and after he mentioned it I found myself unable to name any other MLs besides Haskell with both types of bindings.
<infinisil> Well I shouldn't say the PR was ignored, it's just that so little peoply can help with it
<infinisil> And there's so many other PR's too
<lovesegfault> infinisil: Is Nix in need of maintainers?
<eyJhb> lovesegfault: I think Nix is always in need of people reviewing
<infinisil> ^^
<eyJhb> I don't know if that includes PRs, but in general there is SO MUCH to do...
<infinisil> eyJhb: Unfortunately only issues :(
<eyJhb> I do however wish, I could get dream killer powers, for my duplicate / not needed PRs anymore, so I could start closing them :D
<eyJhb> Damn.. There should be something for PRs as well, as there is a TON of them...
<lovesegfault> I'll be honest, I feel less motivated to contribute to NixOS than to Gentoo; just because with Gentoo I feel like my contributions amount to some longterm "personal gain" of becoming a dev and getting ownership of the packages I care about
<infinisil> eyJhb: I did use random numbers to select random PRs before :P
<lovesegfault> The ad-hoc maintainership model of NixOS feels weird to me
<eyJhb> lovesegfault: you become a maintainer of the package?
<dminuoso> simpson: Well granted, it's redundant if you wanted where in order to declare recursive bindings. I just like the order of `where` in that you get to focus on the meaning of a binding before mindstepping through potentially dozens of bindings.
<eyJhb> infinisil: seems like a good idea! At some point there should be a policy for stale issues/PRs, because I am 100% sure, we can close a good amount of them
<lovesegfault> eyJhb: Sure, but that doesn't mean I commit access, right?
<infinisil> eyJhb: Well.. rfcs#51
<eyJhb> It does not, and that is still a good thing that it doens't. As everything should be reviewed :)
<{^_^}> https://github.com/NixOS/rfcs/pull/51 (by ryantm, 5 weeks ago, open): [RFC 0051] Mark stale nixpkgs issues
<dminuoso> simpson: nix to some degree promotes making bindings too global in order to order your bindings the way you want.
<ivan> maintainers having full ownership of their packages doesn't make that much sense when you're running a massive software integration project which is what a linux distribution really is
<eyJhb> infinisil: that is true! And we have some rfcs#53 , that might help as well
<{^_^}> https://github.com/NixOS/rfcs/pull/53 (by mrVanDalo, 1 day ago, open): RFC-0053: defining pull-request workflow
<infinisil> lovesegfault: You can still have a maintainership of nixpkgs packages by listing yourself as a maintainer for it, the bot will then ping you for PRs that touch it and you can review them
<eyJhb> ivan: yeah, but you don't have push access to any repos on the master branch, etc. or nixpkgs in general
<dminuoso> I mean in the current state of affairs, doing something like `{ foo = let ... in someShortdef; bar = let ... in anotherShortDef; }` is rather tedious (when you have to abuse attrsets as modules in particular)
<infinisil> lovesegfault: (see rfcs#39)
<{^_^}> https://github.com/NixOS/rfcs/pull/39 (by grahamc, 36 weeks ago, merged): RFC-0039: unprivileged maintainer team
<dminuoso> And I think I missed some semicolons there. :-)
<eyJhb> Also, if you are a maintainer you do become a member of NixOS, and you have extra access to the bot for your own packages :D
<simpson> lovesegfault: That's a feature, not a bug. nixpkgs is far more important to its many many users than to any one maintainer's vanity.
<infinisil> dminuoso: simpson: manveru: Btw we'd have #nix-lang for discussions on the language itself :)
<dminuoso> infinisil: Ahh! Great to know. Cheers/.
cinimod` has quit [Ping timeout: 276 seconds]
<eyJhb> Can't decide if I should make a little web app, for my PRs that might be worth looking at thingy
ris has quit [Ping timeout: 240 seconds]
<lovesegfault> simpson: See, you say that, and as a user I like it but as a maintainer I hate it :P
<lovesegfault> It's very conflicting
Heirlung has quit [Quit: ZNC 1.6.5+deb1+deb9u2 - http://znc.in]
<eyJhb> Well, most people want to contribute because the actively use NixOS, and want to make it better/see faults or packages that they need and want added
Heirlung has joined #nixos
tek has joined #nixos
Jackneill has joined #nixos
<simpson> lovesegfault: Good.
ng0_ has quit [Quit: Alexa, when is the end of world?]
ng0 has joined #nixos
RIOTIM[m] has joined #nixos
<gyroninja> I think the problem with postgresql not starting up was due to not having system.stateVersion defined
[Leary] has joined #nixos
<gyroninja> It seems like every nixops example online seems to leave it out so I thought you didn't need it
Lears has quit [Read error: No route to host]
<infinisil> gyroninja: nixops stores stateVersion in the deployment state, which then gets included for the build, so you shouldn't need it
Okinan has joined #nixos
<gyroninja> I tried to bisect the postgresql issue, but than ran into https://github.com/NixOS/nixpkgs/issues/64922
<{^_^}> #64922 (by yorickvP, 10 weeks ago, open): systemd-timesyncd fails at step STATE_DIRECTORY on semi-clean install
tek has quit [Quit: leaving]
<gyroninja> I added `system.stateVersion = "19.03";` and then it fixed that issue and allowed me to use postgresql on master
<gyroninja> instead the unit startup hanging
dansho has quit [Ping timeout: 240 seconds]
<gyroninja> *instead of
dansho has joined #nixos
civodul has joined #nixos
alexoundos[m] has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
Tucky has joined #nixos
ilyagotfryd has joined #nixos
xwvvvvwx has quit [Quit: ZNC 1.7.4 - https://znc.in]
Guest7377 has joined #nixos
xwvvvvwx has joined #nixos
<alexoundos[m]> Hello. How can I check that the attribute is a list? This attempt fails with syntax check `if drv.url ? [0]`. Probably it's because list element is not an attribute.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil> alexoundos[m]: lib.isList drv.url
zupo has joined #nixos
Guest7377 has quit [Quit: WeeChat 2.4]
thc202 has joined #nixos
<alexoundos[m]> <infinisil "alexoundos: lib.isList drv.url"> Thank you! How could I find this by myself? Google on "nix lib" doesn't point to anything useful.
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
fenedor has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4eaf7d8143c (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
veske has joined #nixos
FRidh has quit [Ping timeout: 268 seconds]
dermetfan has joined #nixos
ilyagotfryd has quit [Ping timeout: 240 seconds]
nathanruiz has quit [Ping timeout: 276 seconds]
nathanruiz has joined #nixos
asymptotically has joined #nixos
<gyroninja> Is there a reccomended way to do continuous deployment? Hydra does not seem to offer the ability to deploy what it's built.
<talyz> alexoundos[m]: https://nixos.org/nix/manual/#ssec-builtins documents the builtin functions (isList is one) and https://nixos.org/nixpkgs/manual/#sec-functions-library documents the library functions
joshuagl has joined #nixos
<dminuoso> gyroninja: Well presumably you could rig something yourself and nixops.
domogled has joined #nixos
pie__ has joined #nixos
<andi-> (I have never even tried to use it)
<jluttine> am i doing this patching wrong? i get some errors when i try to add a patch with overlay: https://gist.github.com/jluttine/13bb07ba4bbe452dc0834d2bf52a3ca2
pie_ has quit [Ping timeout: 240 seconds]
<jluttine> (gist contains both the overlay and the error)
<jluttine> ah, nevermind!
logzet has joined #nixos
<andi-> jluttine: I guess the patch just doesn't apply to whatever src points at
<jluttine> nixpkgs contains old version, so i cannot patch that..
<andi-> You can fetch the sources of that PR and override the `src` attribute
FRidh has joined #nixos
<jluttine> andi-: yep, thanks!
mexisme has quit [Ping timeout: 246 seconds]
<gyroninja> I think I might just abandon hydra and get ci/cd working using jenkins
<gyroninja> hail sounds a little overcomplicated than what I want, but I'll reevaluate my options tomorrow
mexisme has joined #nixos
Makaveli7 has joined #nixos
dermetfan has quit [Ping timeout: 240 seconds]
FRidh has quit [Ping timeout: 276 seconds]
FRidh has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #70022 → pythonPackages.phonenumbers: 8.10.17 -> 8.10.19 → https://git.io/JeZxB
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/Jentx
pie__ has quit [Ping timeout: 240 seconds]
zupo has joined #nixos
dm9 has joined #nixos
o1lo01ol1o has quit [Ping timeout: 240 seconds]
cfricke has joined #nixos
aszlig has quit [Quit: Kerneling down for reboot NOW.]
philr has joined #nixos
aszlig has joined #nixos
<kandinski> If any NixOS/Spacemacs person can help, I'll appreciate it: JavaScript framework layers for Spacemacs suggest you on stall npm modules and command line tools globally: `npm install -g tern`. What is the correct way of doing this under NixOS? I have different nix-shells for different languages/projects, and run Spacemacs under my user's profile.
dermetfan has joined #nixos
FRidh has quit [Ping timeout: 246 seconds]
FRidh has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
ubert has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dermetfan> gyroninja: I'd give hail a try, works fine for me
FRidh has quit [Ping timeout: 240 seconds]
o1lo01ol1o has quit [Ping timeout: 245 seconds]
domogled has quit [Quit: domogled]
graf_blutwurst has quit [Remote host closed the connection]
<teto> is generators.toINI not supposed to work with submodules ? If I pass a plain attrset, it works, if I pass the same with submodules, generators.toINI complains about "The option ... does not exist."
<eyJhb> gchristensen arahael - it is the difference between MariaDB and MySQL apparantly.. So MySQL can do the query in 0.18s, MariaDB 12.86s
mexisme has quit [Ping timeout: 245 seconds]
joshuagl has quit [Quit: Textual IRC Client: www.textualapp.com]
<eyJhb> Oh wrong channel, sorry
sigmundv_ has joined #nixos
chris1 has quit [Quit: WeeChat 2.4]
gila has joined #nixos
psyanticy has joined #nixos
lovesegfault has quit [Ping timeout: 276 seconds]
ciil has quit [Remote host closed the connection]
pie_ has joined #nixos
fenedor has quit [Read error: Connection reset by peer]
ciil has joined #nixos
growpotkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
pie_ has quit [Ping timeout: 265 seconds]
Makaveli7 has quit [Quit: WeeChat 2.6]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @romildo opened pull request #70051 → matcha: 2019-09-23 -> 2019-09-30 → https://git.io/Jenmq
ebzzry has joined #nixos
divansan` has joined #nixos
alex`` has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<divansan`> Hi All. A lot of nix apps are working for me. But chromium,vivaldi and google-chrome all have corrupt looking icons like so http://paste.debian.net/1103347/
<divansan`> Any idea how to fix this?
<{^_^}> [nixpkgs] @Ma27 merged pull request #70048 → [19.09] phpPackages.phpcbf: 3.4.2 -> 3.5.0 → https://git.io/JenIh
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to release-19.09: https://git.io/Jenmc
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ilyagotfryd has joined #nixos
logzet has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pie_ has joined #nixos
<Taneb> Is there a way to get Hydra to report evaluation errors to GitHub?
infinee has quit [Quit: WeeChat 2.3]
<{^_^}> [nixpkgs] @lheckemann pushed commit from @fpletz to release-19.09 « nixos/systemd: pick more upstream tmpfiles confs »: https://git.io/Jenmw
pie_ has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @romildo opened pull request #70052 → Update a few mate packages → https://git.io/Jenm9
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/Jenm7
dermetfan has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage2nix: disable failing builds that break evaluation on Hydra »: https://git.io/JenmN
orivej has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jenmp
fendor has joined #nixos
ilyagotfryd has quit [Ping timeout: 245 seconds]
Phillemann has joined #nixos
<Phillemann> I've downloaded the graphical ISO and booted it.
<Phillemann> Shows me a login screen.
<Phillemann> What's the login data?
<Phillemann> I've tried root and an empty password, but no luck
waleee-cl has joined #nixos
<Phillemann> demo/demo doesn't work either
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
__monty__ has joined #nixos
<Phillemann> Nevermind. This is wild. I didn't boot from the USB stick at all, I just had an old NixOS installed on the machine. :D
<Ashy> haha
<DigitalKiwi> doesn't it auto login
<{^_^}> [nixpkgs] @peti opened pull request #70053 → drop obsolete ghcjs 8.4.x version → https://git.io/JenY3
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @edolstra merged pull request #69534 → rustc: 1.37.0 -> 1.38.0 → https://git.io/JeGM3
<{^_^}> [nixpkgs] @edolstra pushed 4 commits to master: https://git.io/JenYW
<eyJhb> DigitalKiwi: it should yeah
veske2 has joined #nixos
pie_ has joined #nixos
<Taneb> Is there an accepted way of secrets in configuration.nix?
<inkbottle> I was trying the method, not necessarily good, of putting my .bashrc directly in my configuration.nix through environment.interactiveShellInit; This bashrc was containing shell functions, with variables; the build ended with error *undefined variable*.
veske has quit [Ping timeout: 265 seconds]
<inkbottle> What is the mechanism "behind" those variables in configuration.nix?
<inkbottle> Is it possible to have my functions in configuration.nix nevertheless?
o1lo01ol1o has joined #nixos
NinjaTrappeur has quit [Quit: WeeChat 2.5]
<{^_^}> [nixpkgs] @timokau merged pull request #64193 → sage: 8.8 -> 8.9 → https://git.io/fjK52
<{^_^}> [nixpkgs] @timokau pushed 15 commits to master: https://git.io/JenYV
o1lo01ol1o has quit [Ping timeout: 268 seconds]
NinjaTrappeur has joined #nixos
jb55 has quit [Ping timeout: 260 seconds]
NinjaTrappeur has quit [Client Quit]
jb55 has joined #nixos
captn3m0- has quit [Ping timeout: 240 seconds]
p01ar has joined #nixos
<p01ar> ayylmao
<p01ar> whats up gamers
<evanjs> Any thoughts on where to check first with random sleeps? Getting "normal" messages like "System is rebooting" but I'm not sure what is triggering it...
<teto> timokau[m]: good job on sage !
<hyperfekt> is this the p01ar, from twitter?
<evanjs> Wait... gdm autoSuspend is enabled on my desktops.... though I have things like Plex running on one of them, but I'm not sure what "autoSuspend" entails
<p01ar> it sure fuckin is
<p01ar> the one and only
<p01ar> IIIITS THE BIG SHOOW
<p01ar> teto wtf are yall doing sage for ew disgusting
<hyperfekt> welcome! c:
<p01ar> hyperfekt ty ^^
<p01ar> thought id work more on the meson port today
<p01ar> get it building/running tests
<p01ar> but for some reson on my laptop i get cannot find libeditline.so.1 but i dont get that on my other pc
<p01ar> :||||
<worldofpeace> evanjs: I believe when gdm locks it has an non user configuratable autosuspend feature to comply with EU power regulations
NinjaTrappeur has joined #nixos
<timokau[m]> Thanks teto, much appreciated :)
<hyperfekt> meson port? as in packaging or as in meson2nix?
<worldofpeace> so for example, users have ssh access enabled on their machine and they step away. can't login it's suspended
<{^_^}> [nixpkgs] @vcunat pushed 28 commits to release-19.09: https://git.io/JenYb
<p01ar> kyperfekt porting the nix package manager from autotools to meson
<worldofpeace> ooh meson ✨
<p01ar> ye
captn3m0 has joined #nixos
<evanjs> worldofpeace: that.... sounds exactly like what has been happening to me... 😕
logzet has joined #nixos
<worldofpeace> right, think we talked before :) p01ar
<evanjs> Guess I'll just disable it globally for the time being, then
<worldofpeace> evanjs: I've been rethinking chaging it's default to false because it's not great for users
<worldofpeace> * its
jboy has quit [Remote host closed the connection]
captn3m0 has quit [Ping timeout: 245 seconds]
<domenkozar[m]> Blog post on recent cachix downtime and what we're doing to address it: https://blog.hercules-ci.com/2019/09/30/recent-cachix-downtime/
captn3m0 has joined #nixos
<p01ar> worldofpeace ye
silver has joined #nixos
<evanjs> worldofpeace: I was sort of happy to see it but got nervous when I noticed it wasn't configurable... Guess I can rest assured it's not, at least for now
jboy has joined #nixos
das_j has quit [Remote host closed the connection]
<worldofpeace> evanjs: yeah, we've taken special measure to have a nice workaround in nixos
das_j has joined #nixos
dermetfan has joined #nixos
pie_ has quit [Ping timeout: 245 seconds]
fusion809 has quit [Remote host closed the connection]
Jenz has joined #nixos
<Jenz> Hmm; I'm wondering whether or not I should move over to NixOS
<gchristensen> what is on your mind?
<Jenz> Frankly I dunno, there's just something about nixos pulls my attention, but I barely know anything about it, so it's a wholly immature problem
l33333 has quit [Ping timeout: 240 seconds]
<gchristensen> fair enough! you could try it in a VM?
<Jenz> Yeah that'd be smart
<inkbottle> environment.interactiveShellInit = '' f (){ a=$1; echo ${a}; } '' => error: undefined variable 'a'; but OK with echo $\{a\}
<gchristensen> inkbottle: ${...} is Nix interpolating a variable
<inkbottle> OK, tx
<gchristensen> ,escape''
<{^_^}> '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
<{^_^}> [nixpkgs] @peterhoeg merged pull request #69375 → thinkfan: 0.9.3 -> 1.0.2 (replaces #55895) → https://git.io/JeGTI
<{^_^}> [nixpkgs] @peterhoeg pushed 7 commits to master: https://git.io/JenOO
* Jenz :o
<{^_^}> [nixpkgs] @peterhoeg closed pull request #55895 → thinkfan: 0.9.3 -> 1.0.1 → https://git.io/fh5ZA
<Jenz> Nice bot
<gchristensen> ,botsnack
<{^_^}> Oh thanks, have a cookie yourself
doublex has quit [Ping timeout: 245 seconds]
<inkbottle> gchristensen: Is there an associated page of the manual.. bot is being quite terse here (I get the idea, but not so much the details)
<gchristensen> > let a = "foo"; in '' echo ${a}; ''
<{^_^}> "echo foo; "
<gchristensen> > let a = "foo"; in '' echo ''${a}; ''
<{^_^}> "echo ${a}; "
<gchristensen> "Since ${ and '' have special meaning in indented strings..." in https://nixos.org/nix/manual/
<inkbottle> OK, I'll know where to search then, tx
<inkbottle> I know*
<{^_^}> [nixpkgs] @domenkozar pushed to haskell-updates « cachix: comment why boost is needed »: https://git.io/JenOC
MinceR_ is now known as MinceR
ilyagotfryd has joined #nixos
doublex has joined #nixos
<{^_^}> [nix] @domenkozar merged pull request #3106 → Update garbage-collection.xml readability → https://git.io/JesKf
<{^_^}> [nix] @domenkozar pushed 2 commits to master: https://git.io/JenOW
<{^_^}> [nix] @domenkozar pushed 2 commits to master: https://git.io/JenO8
<{^_^}> [nix] @domenkozar merged pull request #3080 → docs: Note that tryEval doesn't do deep evaluation → https://git.io/fjpdc
<{^_^}> [nix] @domenkozar merged pull request #2338 → mention `nix-store --query --roots` when a path cannot be deleted → https://git.io/fN9Ug
<{^_^}> [nix] @domenkozar pushed 2 commits to master: https://git.io/JenO0
ilyagotfryd has quit [Remote host closed the connection]
ilyagotfryd has joined #nixos
hmpffff has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/b443d2cd665 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
hyper_ch2 has joined #nixos
FRidh has joined #nixos
<hyper_ch2> can't get displayport via usb type-c to work in nixos (and kubuntu) :(
monsieurp has quit [Ping timeout: 240 seconds]
<gchristensen> weird, works here -- what hardware?
ng0 has quit [Remote host closed the connection]
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/ad36169300e (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
* etu uses his laptop with a USB-C <-> DisplayPort cable right here right now
ng0 has joined #nixos
<emilsp> how do I kill a failed build so that I get my slots/locks back?
<emilsp> ah, by just killing the process
Shell has quit [Quit: ZNC 1.7.4 - https://znc.in]
qyliss has quit [Quit: bye]
Shell has joined #nixos
qyliss has joined #nixos
<hyper_ch2> gchristensen: I tried with two notebooks: lenovo and hp.... usb-c to usb tocking station and from there dp to the monitor
<hyper_ch2> gchristensen: if I run windows, it all works just fine, when I switch to linux, I do get power supply, ethernet, usb devices and also hdmi from the docking station
<hyper_ch2> but the DP just won't work
<gchristensen> is the docking station secretly thunderbolt
l33333 has joined #nixos
<hyper_ch2> gchristensen: from what I read the lenovo notebook does not have thunderbolt
<hyper_ch2> so I assume the docking station isn't using thunderbolt either
<hyper_ch2> gchristensen: https://i-tec.cz/en/produkt/catriple4kdockpd-2/ that's the docking station
<hyper_ch2> it seems it has thunderbolt
mexisme has joined #nixos
<{^_^}> [nixpkgs] @andir merged pull request #70045 → berglas: init at 0.2.0 → https://git.io/JenTA
<{^_^}> [nixpkgs] @andir pushed 2 commits to master: https://git.io/Jen3T
monsieurp has joined #nixos
<hyper_ch2> gchristensen: it seems someone said on the amazon questions page that the dock uses DisplayLink for the DP and not USB Alternate
l33333 has quit [Quit: Lost terminal]
mexisme has quit [Ping timeout: 252 seconds]
<Ariakenom> yes nobody has gotten DisplayLink to work on linux at work
<Ariakenom> (I also found it somewhat laggy on windows)
dm9 has quit [Quit: WeeChat 2.6]
hmpffff has quit [Quit: nchrrrr…]
<hyper_ch2> but on amazon some other user said he got it working on ubuntu
<hyper_ch2> :(
<hyper_ch2> also another question would be how to get that ethernet up during initrd
<hyper_ch2> (btw, typec and typec_displayport kernel modules are loaded)
<gchristensen> maybe there are github issues or discourse posts about displaylink
<Ariakenom> there is broken support in nix
<srhb> Getting it to work is doable, if very awkward with the rather crappy ubuntu packages
<srhb> But once it works, it's just ridiculously slow and unstable.
<srhb> You're better off getting a different dock
<gchristensen> cool cool
<hyper_ch2> srhb: any recommendation?
<srhb> Something that's not Displaylink
<{^_^}> [nixpkgs] @Mic92 merged pull request #68321 → pythonPackages.sanic: 19.3.1 -> 19.6.3 (and fix websockets and other issues) → https://git.io/JeehX
xkapastel has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed 5 commits to master: https://git.io/Jen3c
<srhb> Anything, really.
<evanjs> Uhhh any reason `nix-env -f <path-to-nixpkgs> -iA gitkraken` is trying to install rust as well? Just trying to test a gitkraken bump on my nixpkgs fork on master...
<hyper_ch2> srhb: that's what I tried - and failed ;)
<srhb> Then plug everything into the laptop directly.
<srhb> Down the path of displaylink lies only sorrow.
spacekookie has quit [Quit: **agressive swooshing**]
<evanjs> `nix-env -f . -iA gitkraken -b` prevents anything from being built...
<{^_^}> [nixpkgs] @shahrukh330 opened pull request #70055 → pythonPacakges.qds_sdk: init at 1.12.0 → https://git.io/Jen3W
spacekookie has joined #nixos
selfsymmetric-mu has quit [Remote host closed the connection]
<gchristensen> evanjs: what makes you think it is trying to install rust? it may just need to fetch rust for gitgraken
<Ariakenom> also with the dock I tried the keyboard didnt work in bios. so meh
<evanjs> Gitkraken has no dependencies on Rust :D
<gchristensen> something gitkraken depends on might
<symphorien> it may depend on gtk and librsvg so rust ?
<evanjs> Ahhhhhhhhh
<evanjs> I totally forgot about librsvg
<evanjs> Yeah thanks
Khetzal has quit [Quit: \o/]
<gchristensen> I assume you have to build librsvg? since librsvg probably shouldn't actually depend on rust after it is built
<evanjs> `/nix/store/ijs8ng5xc14dc7jl0sbqbfqm8nv8i3l1-librsvg-2.44.15.drv`
<evanjs> Yeah sorry I totally forgot about librsvg exploring Rust and etc lately
<evanjs> Though, is there any way I can have it not try to use the one on my local fork which is not in cachix/cache.nixos.org yet?
<{^_^}> [nixpkgs] @peterhoeg merged pull request #69684 → mu: 1.2 -> 1.3.3 → https://git.io/JeZcZ
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/Jen38
<evanjs> e.g. Not build rust from source...
Khetzal has joined #nixos
<evanjs> s/e.g./i.e./
<evanjs> I guess I could just put it in my overlay and test from there..?
<evanjs> Wasn't sure if that's okay in terms of testing before I make a PR
Blessjah has quit [Ping timeout: 265 seconds]
turion has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #69839 → python37Packages.pydantic: 0.31 -> 0.32.2 → https://git.io/JeZr2
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/Jen3z
<turion> npm ERR! network request to https://registry.npmjs.org/jupyterlab-ihaskell failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
<turion> But I can access it with wget or my browser. I don't have a proxy.
<turion> Relatedly, or unrelatedly, the ihaskell package is broken and I have no idea why.
<evanjs> gchristensen: symphorien: Welp it works via my overlay. Thanks for answering my stupid questions once again, guys :B
<hyper_ch2> srhb: you have a usb-c docking station?
cfricke has quit [Quit: WeeChat 2.6]
<srhb> I used to.
<{^_^}> [nixpkgs] @evanjs opened pull request #70056 → gitkraken: 6.2.0 -> 6.2.1 → https://git.io/Jen36
<evanjs> Realllllly need to automate that bumping process...
<hyper_ch2> srhb: what changed?
<srhb> hyper_ch2: Different job :)
<hyper_ch2> :)
ng0 has quit [Quit: Alexa, when is the end of world?]
<evanjs> So I say this https://github.com/NixOS/nixpkgs/issues/67867#issuecomment-536558766, but how just how easy is it to test nixpkgs for a Darwin environment without a Mac?
<evanjs> I have one, just wanted to see if there's anything I can do with my main system(s)
<turion> Further down, npm says:
<turion> npm ERR! A complete log of this run can be found in:
<turion> Where can I find that log? Obviously, I don't have a /build directory.
<turion> npm ERR!     /build/.npm/_logs/2019-09-30T13_16_49_709Z-debug.log
<turion> What's the temporary build directory?
<srhb> turion: It sounds like you're trying to get network access from within a sandbox, which you can only do with fixed output derivations
<srhb> turion: If you use --keep-failed, the build directory will be dumped in /tmp
<turion> Ah! That makes more sense
<turion> srhb: How do I find out what the offending non-fixed output derivation is?
<srhb> turion: The one that fails. :)
<turion> I have two build directories kept, so two failed..?
ilyagotfryd has quit [Remote host closed the connection]
<gchristensen> is there a way to add extra kernel configuration options without explicitly defining which version I want to override? right now I do this: https://github.com/nix-community/aarch64-build-box/blob/master/configuration.nix#L68-L80 but Linux 5.1 is quite old
<turion> Ah, one is empty
ilyagotfryd has joined #nixos
<gchristensen> my understanding is overriding just `pkgs.linux` won't propagate to linuxPackages
<turion> srhb: Weird, it's the build directory of a haskell package, but it was NPM that failed
jophish has joined #nixos
<hyperfekt> Wait are Nix' let expressions not recursive? :o
<hyperfekt> No, they are. This error I'm getting simply doesn't make any sense :<
<{^_^}> [nixpkgs] @jonringer opened pull request #70057 → Bump jenkins job → https://git.io/Jenss
<etu> > let a = let b = "c"; in c; in a
<{^_^}> { _type = "option"; declarations = <CODE>; default = <CODE>; definitions = <CODE>; description = <CODE>; example = <CODE>; files = <CODE>; highestPrio = <CODE>; isDefined = <CODE>; loc = <CODE>; optio...
<gchristensen> lol
ilyagotfryd has quit [Ping timeout: 265 seconds]
<etu> Hmmm, not the response I expected there :p
<turion> srhb: I had one place where there was fetchGit, but no rev. I added a rev, but that didn't change anything.
<hyperfekt> > let a = let b = "c"; in b; in a
<{^_^}> "c"
<turion> I can't figure out which one actually is the failing derivation
<{^_^}> [nixpkgs] @hedning pushed 199 commits to gnome-3.34: https://git.io/Jensc
AluisioASG has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
ilyagotfryd has joined #nixos
<turion> I've put up the output of nix-shell here: https://pastebin.com/7GxcJzgn
<etu> hyperfekt: ah, yeah, I referenced c instead of b there. But the thing you got there is expected :)
<{^_^}> [nixpkgs] @jonringer merged pull request #69828 → python37Packages.libversion: 1.1.4 -> 1.2.0 → https://git.io/JeZwn
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JensR
<teto> gchristensen: I think modifying linux will propagate to linuxPackages but apart from changing common-config.nix you can't do it for all kernels
<teto> I was hoping to introduce a boot.kernel.structuredConfig
<gchristensen> I just tried overriding `linux` and it doesn't propagate to linuxPackages
<{^_^}> [nixpkgs] @jonringer merged pull request #69822 → python37Packages.azure-mgmt-cosmosdb: 0.7.0 -> 0.8.0 → https://git.io/JeZV6
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/Jensg
ddellacosta has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
<hyperfekt> Someone see where the 'The option `cfg' defined in `nixos/modules/services/x11/redshift.nix' does not exist.' could be coming from? I've been poring over this forever: https://gist.github.com/hyperfekt/ab6595330ec71fb0178d75488717a221
<gchristensen> wow, this is seems advanced
ilyagotfryd has quit [Ping timeout: 245 seconds]
<teto> gchristensen: I've wanted to improve doc and remove extraConfig for structured configs but this is slow. For instance https://github.com/NixOS/nixpkgs/pull/69013
<{^_^}> #69013 (by teto, 1 week ago, open): really check requiredKernelConfig
<hyperfekt> Also, why does that error not give you a position?
AluisioASG has joined #nixos
<hyperfekt> Can the module system not track code positions at all?
<gchristensen> hyperfekt: you're defining the value to an option called 'cfg' here: https://gist.github.com/hyperfekt/ab6595330ec71fb0178d75488717a221#file-redshift-nix-L101
<{^_^}> [cabal2nix] @peti pushed to master « Recognize boost_context for cachix. »: https://git.io/Jensw
dansho has quit [Ping timeout: 240 seconds]
<gchristensen> but you probably just want to do `redshift.location-provider`, not `cfg.config.redshift.location-provider`
<{^_^}> [nixpkgs] @teto opened pull request #70058 → vscode-extensions.python-language-server: init → https://git.io/JensK
<hyperfekt> gchristensen: Actually I think that's what I want - this is a rewrite of the redshift module in the spirit of rfcs#42
<{^_^}> https://github.com/NixOS/rfcs/pull/42 (by Infinisil, 27 weeks ago, open): [RFC 0042] NixOS settings options
Jenz has quit [Ping timeout: 245 seconds]
<gchristensen> there is no option called `cfg`, so why are you trying to set a value on an option called `cfg`?
<boolman> Hi, how can I pass arguments to the script called by nix-shell?
<hyperfekt> Aaah, I see it now.
<gchristensen> cool :)
<{^_^}> [nixpkgs] @ttuegel merged pull request #70025 → More closure size improvements for NixOS 19.09 → https://git.io/JeZjc
<{^_^}> [nixpkgs] @ttuegel pushed 5 commits to staging-19.09: https://git.io/Jensi
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JensP
<boolman> for example nix-shell -p python3Packages.requests --run /my/script.py <some input>
<hyperfekt> It was defined earlier in the let and my mushbrain had somehow forgotten that you can only use that for getting config values, not for setting them.
Jenz has joined #nixos
<hyperfekt> Thank you for bearing with me! c: gchristensen++
<{^_^}> gchristensen's karma got increased to 155
Blessjah has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « cachix: it's no longer necessary to add boost manually »: https://git.io/JensS
<{^_^}> [nixpkgs] @jonringer merged pull request #69798 → python37Packages.azure-mgmt-batch: 6.0.0 -> 7.0.0 → https://git.io/JeZ29
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/Jens9
<teto> gchristensen: I always use linuxPackagesFor my_fancy_kernel but interesting to know how to do it :)
<{^_^}> [nixpkgs] @jonringer merged pull request #69797 → python37Packages.azure-mgmt-cognitiveservices: 4.0.0 -> 5.0.0 → https://git.io/JeZ2D
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/Jens5
<{^_^}> [nixpkgs] @jonringer merged pull request #69801 → python37Packages.affine: 2.2.2 -> 2.3.0 → https://git.io/JeZ2A
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JensN
<turion> Given a shell.nix, how do I find out whether nix-shell tries to build any non-fixed output derivations?
<gchristensen> I'm curious what you're thinking w.r.t. non-fixed output derivations?
ilyagotfryd has joined #nixos
zacts has quit [Ping timeout: 276 seconds]
Jenz_ has joined #nixos
Jenz has quit [Ping timeout: 240 seconds]
AluisioASG has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
Jenz_ is now known as Jenz
veske2 has quit [Quit: This computer has gone to sleep]
Cubic has joined #nixos
growpotkin has joined #nixos
Cubic is now known as Guest59678
alex`` has quit [Ping timeout: 240 seconds]
dansho has joined #nixos
Guest59678 is now known as Cubicle
<{^_^}> [nixpkgs] @hedning pushed to gnome-3.34 « fixup! vte-ng: move inside termite »: https://git.io/JenGq
pie_ has joined #nixos
<{^_^}> [nixpkgs] @jonringer opened pull request #70059 → pythonPackages.rasterio: add setuptools → https://git.io/JenGY
Cubicle is now known as HSteffenhagen
alex`` has joined #nixos
hyper_ch2 has joined #nixos
<hyper_ch2> gchristensen: srhb: I just noticed there's displayLink packaged in nixos... so I'll give it a try
<inkbottle> Awesome definition of "antiquotation": https://www.smlnj.org/doc/quote.html
<{^_^}> [nixpkgs] @jonringer merged pull request #69877 → rofi-mpd: init at 1.1.0 → https://git.io/JeZPl
<{^_^}> [nixpkgs] @jonringer pushed 3 commits to master: https://git.io/JenGZ
<srhb> hyper_ch2: It's broken.
<srhb> hyper_ch2: (And if you fix it, you will still be sad)
<hyper_ch2> srhb: how so?
drakonis has joined #nixos
<srhb> It's laggy and unstable even when fixed. :)
<HSteffenhagen> hi, I'm sorry to be a bother but has anyone found a good way to work with a CMake/C++ combo with nix? On principle I'd expect it to work reasonably well, but a lot of packages seem to be broken (at least w.r.t. to cmake) in several ways, for example fmtlibs config is pointing at the wrong location for libraries, and SDL2 seems to be missing runtime
<HSteffenhagen> dependencies
growpotkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
<HSteffenhagen> maybe I'm just being silly and am just not looking at the right thing though
<hyper_ch2> srhb: ok
<inkbottle> (with the bit saying that ML is the metalanguage of LCF, the latter being the object language, or OL; awesome)
<{^_^}> [nixpkgs] @jonringer closed pull request #69804 → python37Packages.blis: 0.2.4 -> 0.4.0 → https://git.io/JeZaq
<mdash> HSteffenhagen: hm, the one in nixpkgs is broken?
<{^_^}> [nixpkgs] @jonringer merged pull request #69794 → python37Packages.azure-datalake-store: 0.0.45 -> 0.0.47 → https://git.io/JeZ2r
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JenGX
<{^_^}> [nixpkgs] @jonringer merged pull request #69796 → python37Packages.azure-mgmt-datamigration: 2.2.0 -> 3.0.0 → https://git.io/JeZ2X
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JenG1
<HSteffenhagen> I'm pretty new to nix but I'm pretty sure I'm looking at the one from nixpkgs-unstable. I'm actually not sure if it's still true for SDL2 (although that has a different problem of just not exporting its targets in the first place because it uses the ./configure build instead of cmake), but the last time I've check for that one was just 2 weeks ago
<HSteffenhagen> or so
<{^_^}> [nixpkgs] @marler8997 opened pull request #70060 → maintainers: add jonathanmarler → https://git.io/JenGd
endformationage has joined #nixos
<{^_^}> [nixpkgs] @jonringer opened pull request #70061 → librsvg: 2.44.15 -> 2.46.0 → https://git.io/JenZT
<{^_^}> [nixpkgs] @Infinisil merged pull request #69419 → mkRemovedOptionModule: assert on removed options → https://git.io/JeG4E
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/JenZI
<logzet> Is there a way to use FUSE inside a nixos-container?
drakonis has quit [Ping timeout: 252 seconds]
divansan` has quit [Ping timeout: 268 seconds]
drakonis has joined #nixos
<logzet> I figured that I need to use something like allowedDevices = [ { modifier = "rw"; node = "/dev/fuse"; } ]; in the container configuration (it's declarative)
<ilyagotfryd> What would I normally use to templetize a configuration for a module I am installing?
zacts has joined #nixos
<infinisil> HSteffenhagen: Would probably be good to show the code that doesn't work along with the error. Usually cmake stuff should work pretty well
<{^_^}> [nixpkgs] @jlesquembre opened pull request #70062 → kube3d: build as GoModule instead of GoPackage → https://git.io/JenZg
<HSteffenhagen> There's not much code to show - basically, `find_package(fmt REQUIRED)` will fail because the default cmake exports look for exported libraries in directories relative to the config files, but fmts config files are in a `-dev` output and the libraries are in a non-dev output
<HSteffenhagen> so it'll fail, complaining about missing files
ng0 has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace pushed to gnome-3.34 « fixup! gnome3.gnome-shell-extensions: 3.32.1 → 3.34.0 »: https://git.io/JenZ2
doublex has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @lheckemann pushed commit from @globin to release-19.09 « mkRemovedOptionModule: assert on removed options »: https://git.io/JenZa
<{^_^}> [nixpkgs] @jonringer closed pull request #70061 → librsvg: 2.44.15 -> 2.46.0 → https://git.io/JenZT
<{^_^}> [nixpkgs] @jonringer opened pull request #70063 → [staging]librsvg: 2.44.15 -> 2.46.0 → https://git.io/JenZo
<HSteffenhagen> as for SDL2, the example I had isn't crashing anymore but because it's using the `./configure` script to configure instead of CMake it's not exporting the targets, i.e. the SDL2Config file will only have the `SDL2_LIBRARIES`, `SDL2_INCLUDE_DIR` etc variables but not the targets like `SDL2::SDL2` or `SDL2::SDL2main`
qqlq has joined #nixos
<HSteffenhagen> i.e. the configure script will generate SDL2Config from this file: https://github.com/spurious/SDL-mirror/blob/master/sdl2-config.cmake.in, whereas the cmake build would export this file pointing at the exported targets: https://github.com/spurious/SDL-mirror/blob/master/SDL2Config.cmake
doublex has joined #nixos
<HSteffenhagen> but then again it'd probably be broken if it's doing the -dev/not -dev distinction. I don't believe cmakes export functions allow you to export to two separate locations
sauyon has joined #nixos
talqu has joined #nixos
talqu has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @worldofpeace pushed to gnome-3.34 « libproxy: build with spidermonkey_60 »: https://git.io/JenZS
hyper_ch2 has quit [Remote host closed the connection]
<exarkun> Can Nix help me build a manylinux wheel of a Python package for other Linux platforms and for macOS?
<exarkun> (I'm sure Windows is too much to hope for.)
talqu has joined #nixos
talqu has quit [Remote host closed the connection]
apv has quit [Ping timeout: 260 seconds]
jmeredith has joined #nixos
<hyperfekt> How can I check if a config value is set while defining another config value if they're in the same attribute set?
<{^_^}> [nixpkgs] @jonringer opened pull request #70064 → python3Packages.gsd: 1.7.0 -> 1.9.1 → https://git.io/JennY
doublex has quit [Ping timeout: 240 seconds]
<exarkun> hyperfekt: x?y
<gchristensen> > { foo = "bar" } ? foo
<{^_^}> error: syntax error, unexpected '}', expecting ';', at (string):266:15
<emily> hyperfekt: put `rec` in front of { too
bitmapper has joined #nixos
<gchristensen> > { foo = "bar"; } ? foo
<emily> so you can refer to other fields
<{^_^}> true
<gchristensen> > { foo = "bar"; } ? bar
<{^_^}> false
azdle has quit [Remote host closed the connection]
<hyperfekt> exarkun: Well, I get infinite recursion and I think it's because config.x.y = config.x ? z can't work because it relies on the value of config.x which is affected by this definition
doublex has joined #nixos
<hyperfekt> Maybe it's just impossible...
<{^_^}> [nixpkgs] @jonringer merged pull request #67716 → pythonPackages.blis: 0.2.4 -> 0.4.0, pythonPackages.thinc: 7.0.8 -> 7.1.0 → https://git.io/fjxV9
<{^_^}> [nixpkgs] @jonringer pushed 4 commits to master: https://git.io/JennG
<hyperfekt> If I was defining the one value myself like in y'alls' examples, it wouldn't have the problem in the first place. But this is a config value.
<infinisil> hyperfekt: More context?
<{^_^}> [nixpkgs] @markuskowa merged pull request #69720 → openiscsi: 2.0.877 -> 2.0.878 → https://git.io/JeZBN
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/Jennl
ddellacosta has quit [Quit: WeeChat 2.2]
<hyperfekt> infinisil: Mmh, I think the config.x.y = config.x ? z is the essence of it, but I'm trying to update the redshift PR and need to check whether dawn/dusk times are set to know whether to set the location provider: https://gist.github.com/hyperfekt/ab6595330ec71fb0178d75488717a221/b4d283254f5a3d0e358a8ddd4c751ee93a7f8b74
<{^_^}> [nixpkgs] @worldofpeace opened pull request #70065 → [19.09] libproxy: build with spidermonkey_60 → https://git.io/Jenn0
Tucky has quit [Quit: WeeChat 2.6]
<{^_^}> [nixpkgs] @markuskowa pushed 3 commits to master: https://git.io/JennE
<{^_^}> [nixpkgs] @markuskowa merged pull request #70015 → halide new release 2018/02/15 -> 2019/08/27 → https://git.io/JeZNS
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/Jennu
<{^_^}> [nixpkgs] @jonringer merged pull request #69779 → python37Packages.azure-mgmt-servicefabric: 0.3.0 -> 0.4.0 → https://git.io/JeZgn
<hyperfekt> infinisil: You'll see that dawn-time and dusk-time are in the same attribute set in the config as location-provider
zacts has quit [Quit: WeeChat 2.4]
nikola_i has joined #nixos
<infinisil> Hmm lemme try
<{^_^}> [nixpkgs] @teto merged pull request #70059 → pythonPackages.rasterio: add setuptools → https://git.io/JenGY
<{^_^}> [nixpkgs] @teto pushed commit from @jonringer to master « pythonPackages.rasterio: add setuptools »: https://git.io/Jennr
<infinisil> hyperfekt: How can i reproduce the error?
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @hedning to master « librsvg: 2.44.14 → 2.46.0 »:
<{^_^}> [nixpkgs] @worldofpeace closed pull request #70063 → [staging]librsvg: 2.44.15 -> 2.46.0 → https://git.io/JenZo
<hyperfekt> infinisil: This is my config: services.redshift = { enable = true; config.redshift = { dawn-time = "05:00-06:00"; dusk-time = "22:00-23:00"; }; };
<infinisil> hyperfekt: "The option `location.latitude' is used but not defined."
orivej has quit [Ping timeout: 245 seconds]
<hyperfekt> infinisil: Ah yes that's the other thing I gotta fix. You probably wanna comment out lines 102-105.
bitmapper has quit [Read error: No route to host]
<HSteffenhagen> OK so at least the fmtlib one can be resolved by just using `overrideAttrs` to merge all the outputs. I'm guessing the same would be true for a lot of cmake projects that use the default export
<infinisil> Ah got it
<teto> gchristensen: can the eval error be a transient one ? https://github.com/NixOS/nixpkgs/pull/69637
<{^_^}> #69637 (by teto, 3 days ago, open): add pdfrw and pagelabels
Jenz has left #nixos [#nixos]
<gchristensen> I ... don't know
<gchristensen> shouldn't be
doublex_ has joined #nixos
doublex has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @jonringer merged pull request #69808 → python37Packages.azure-mgmt-sql: 0.12.0 -> 0.13.0 → https://git.io/JeZan
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/Jennb
<infinisil> hyperfekt: Hm I'm afraid that's not possible like that
<infinisil> hyperfekt: Reason is that Nix is strict in attribute names, meaning for it to know whether `config.x ? z`, it will try to evaluate all attribute names of `config.x`, but if whether `y` from `config.x.y` is included depends on `config.x` itself, that's the infinite recursion
ddellacosta has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
yumasi has joined #nixos
<infinisil> hyperfekt: A decent solution to get around this is to add `nullOr` to the type, such that a value of null translates to no value being set in the config file
<infinisil> hyperfekt: Then you can do `config.redshift.dawn-time = mkOptionDefault null` and use `config.redshift.dawn-time == null` instead of `config.redshift ? dawn-time`
nikola_i has quit [Ping timeout: 250 seconds]
<infinisil> Using `nullOr` is always a good idea anyways because it allows users to unset values (even without #63553)
<{^_^}> https://github.com/NixOS/nixpkgs/pull/63553 (by rhendric, 14 weeks ago, open): lib/modules: add mkUnset, mkOverrideUnset
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
ubert has quit [Quit: Leaving]
Okinan has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @shyim opened pull request #70066 → phpPackages.phpstan: 0.11.15 => 0.11.16 → https://git.io/Jencc
<gchristensen> is it possible to get the date a store path was added to the Nix database?
<ilyagotfryd> User management question. I am adding Redis to my qcow2 image and I need to configure "redis" group and user. Is there any good sample I could use for that or could you point me in the right direction to see examples?
<infinisil> gchristensen: Something like this? sudo sqlite3 /nix/var/nix/db/db.sqlite -csv -noheader "select registrationTime from ValidPaths where path = '/nix/store/rr3y0c6zyk7kjjl8y19s4lsrhn4aiq1z-hello-2.10';"
<gchristensen> spooky but sure :P
<gchristensen> thanks, infinisil!
<infinisil> :D
<{^_^}> [nixpkgs] @shyim opened pull request #70067 → phpPackages.php-cs-fixer: 2.15.1 => 2.15.3 → https://git.io/JencW
<infinisil> I wonder if the new nix command exposes this
<yumasi> Hi! Is there anyone here using NixOS and nixops for kernel development ? I'd like to have a NixOS vm that uses a kernel I built myself from sources.
<infinisil> gchristensen: It does!
AluisioASG has joined #nixos
<gchristensen> :o
<infinisil> nix path-info /nix/store/rr3y0c6zyk7kjjl8y19s4lsrhn4aiq1z-hello-2.10 --json | jq '.[].registrationTime'
<gchristensen> nice!
<infinisil> ilyagotfryd: Are you not using the NixOS module for redis? That one automatically configures a redis use
<gchristensen> infinisil: nix path-info --json /run/booted-system | jq .[0].registrationTime
<infinisil> r
wfranzini has quit [Remote host closed the connection]
<ilyagotfryd> infinisil: I am. I guess I need to look at what it stands up out of the gate. I am trying to port my Vagrant Redis configuration to that, so I am sure I am producing a number of overlaps.
<infinisil> gchristensen: Neat, date -d @$(nix path-info --json /run/booted-system | jq '.[0].registrationTime') for conversion
<Taneb> gchristensen: you can put a "todate" in the jq to get it in a more human-readable for
<Taneb> m
<infinisil> Ah!
<gchristensen> nice!
<infinisil> Although, the result differs between date and todate
<infinisil> timezone
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/cfd28136c90 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
* Taneb looks at the jq manual some more
<infinisil> todate seems to use UTC, while date uses your local timezone
<gchristensen> I do want the raw timestamp though :)
<infinisil> Good point, gotta get used to reading unix epoch!
<Taneb> infinisil: "localtime" uses the local timezone but doesn't output a list...
<gchristensen> hehe
<Taneb> *doesn't output a string, it does output a list of components
AluisioASG has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
dkibi has quit [Read error: Connection reset by peer]
dkibi has joined #nixos
gagbo has joined #nixos
doublex_ has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @shyim opened pull request #70068 → phpPackages.pcov: init at 1.0.6 → https://git.io/JencP
AluisioASG has joined #nixos
sk8forether has joined #nixos
Ariakenom has quit [Quit: Leaving]
Ariakenom has joined #nixos
<edcragg> hi, are there any rules of thumb on where to place configuration files - i.e. when to put in /etc/ vs. writing the file to the pakage's nix store?
Ariakenom has quit [Remote host closed the connection]
<simpson> Use Nix for everything, right?
<simpson> When would you *not* want to manage configuration with Nix?
Ariakenom has joined #nixos
<{^_^}> [nixpkgs] @shyim opened pull request #70069 → Add psalm → https://git.io/JencM
<{^_^}> [nixpkgs] @7c6f434c pushed to master « A band-aid workaround for 68384. The situation should not be possible, not clear whether there is a missed detail about … »: https://git.io/JencD
<ilyagotfryd> infinisil: i am using https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/nosql/redis/default.nix and I can't say that I see Redis being added in that configuration.
<Taneb> simpson: it's not a great idea to put plain-text credentials in the nix store
iqubic has quit [Ping timeout: 240 seconds]
<HSteffenhagen> another maybe silly question; How do I prepend something to `CMAKE_PREFIX_PATH` before `cmake` is run on my build? I did try to do something like `export CMAKE_PREFIX_PATH="myPath:${CMAKE_PREFIX_PATH}"` in a preConfigure script but that didn't seem to have any effect
Ariakenom has quit [Remote host closed the connection]
<infinisil> Which configures a user on line 197
erasmas has joined #nixos
<{^_^}> [nixpkgs] @Ma27 opened pull request #70070 → nixos/borgbackup: add option to allow removable devices → https://git.io/Jenc7
drakonis has quit [Quit: WeeChat 2.6]
wildtrees has joined #nixos
<ilyagotfryd> infinisil: that makes more sense
<ilyagotfryd> thx
sigmundv_ has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @jtojnar pushed to gnome-3.34 « fixup! glib: 2.60.7 -> 2.62.0 »: https://git.io/Jencx
ixxie has joined #nixos
<ixxie> hey folks
bokov has quit [Ping timeout: 260 seconds]
<ixxie> this is probably a stupid idea but, would it be possible to create a nixos-based blockchain which would allow decentralized verification that a particular system runs a particular stack?
<Shell> no.
<PyroLagus> that sounds cursed
<ixxie> cursed? xD
<PyroLagus> also, what would the practical application be?
<mdash> ixxie: it would not
<PyroLagus> 3
boxscape has joined #nixos
<Shell> ixxie: you're looking for Intel's Trusted Execution Technology, jsyk. which is basically that a key embedded in the processor only known to Intel signs that a machine is running specific code.
xkapastel has quit [Quit: Connection closed for inactivity]
dermetfan has quit [Ping timeout: 264 seconds]
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/00f495f973b (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
Navi is now known as Church-
<Mic92> ixxie: In my current research I am working with Intel SGX
<ixxie> PyroLagus: usecase is in certifying certain software is run as-is instead of tampered; so for example, say you create software that monitors CO2 emissions on idustrial machinary, it wouldn't be gamed.
<Mic92> It has some limitations one has to be aware of.
Church- is now known as legion
l33 has joined #nixos
<l33> hi, what package do i need for gui network management in nix?
<Mic92> l33: networking.networkmanager.enable in configuration.nix
<ixxie> Shell, Mic92 - interesting this intel stuff
<Mic92> and nm-applet in your user environment.
<Mic92> ixxie: it only allows a single process atm. And the encrypted memory is limited to ~100 MB, more memory means "swapping" to non-encrypted, which is sort of slow.
<l33> Failed assertions:
<l33> (use '--show-trace' to show detailed location information)
<l33> - You can not use networking.networkmanager with networking.wireless
<Mic92> however my branch uses SPDK/DPDK for better performance, which might require some special hardware.
<ixxie> well I was just curious
<Mic92> l33: yes. you need to disable networking.wireless.enable in that case.
<ixxie> not sure what I would even do with this stuff :P
legion is now known as Church-
Ariakenom has joined #nixos
doublex has joined #nixos
ilyagotfryd has quit [Remote host closed the connection]
ilyagotfryd has joined #nixos
judson__ has joined #nixos
<{^_^}> [nixpkgs] @pacien opened pull request #70071 → [security] exim: 4.92.2 -> 4.92.3 → https://git.io/JenCX
judson has joined #nixos
Ariakenom_ has joined #nixos
l33 has quit [Ping timeout: 276 seconds]
Chiliparrot has joined #nixos
<{^_^}> [nixpkgs] @pacien opened pull request #70072 → [19.03] [security] exim: 4.92.2 -> 4.92.3 → https://git.io/JenCH
<{^_^}> [nixpkgs] @zimbatm pushed 2 commits to cargofetch-lock: https://git.io/JenCQ
fendor has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @jonringer merged pull request #69856 → python37Packages.pyftdi: 0.29.4 -> 0.30.0 → https://git.io/JeZ6J
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JenCF
l33 has joined #nixos
Ariakenom has quit [Ping timeout: 245 seconds]
<l33> that worked!
rsoeldner has joined #nixos
<Notkea[m]> should security updates be backported to the release-19.09 branch or are they already taken from master?
<Chiliparrot> Hi there! I'm configuring a server (IMAP -> dovecot), and surprisingly, I couldn't find decent instructions how to deal with certificates :-(
ilyagotfryd has quit [Remote host closed the connection]
<Chiliparrot> Any hints how to do that the right way?
l33_ has joined #nixos
ilyagotfryd has joined #nixos
l33 has quit [Remote host closed the connection]
<PyroLagus> ixxie: ah
<l33_> ok..
<PyroLagus> in that case blockchain is really useless
<PyroLagus> you need some kind of hardware module
<PyroLagus> both intel and amd have their own versions afaik
<PyroLagus> dunno about arm
<PyroLagus> but the iphone also does some tamper protection afaik, and that uses arm
<samueldr> Notkea[m]: yes they should; there is no automatisation to do so, so if you see something missing, please ping the relevant people
<Notkea[m]> ok :)
l33_ has quit [Remote host closed the connection]
l33_ has joined #nixos
<{^_^}> [nixpkgs] @jonringer opened pull request #70073 → pythonPackages.supervisor: fix tests → https://git.io/JenWt
<{^_^}> [nixpkgs] @pacien opened pull request #70074 → [19.09] [security] exim: 4.92.2 -> 4.92.3 → https://git.io/JenWq
<{^_^}> [nixpkgs] @jonringer merged pull request #69853 → python37Packages.Logbook: 1.4.3 -> 1.5.2 → https://git.io/JeZKz
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JenW3
johnw has quit [Remote host closed the connection]
witchof0x20 has quit [Quit: WeeChat 2.4]
witchof0x20 has joined #nixos
<{^_^}> [nix-pills] @tssm opened pull request #117 → Fix inherit URL in pill 7 → https://git.io/JenWW
sigmundv_ has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
drakonis has joined #nixos
lovesegfault has joined #nixos
eraserhd has quit [Ping timeout: 240 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
eraserhd has joined #nixos
<{^_^}> [nixpkgs] @hedning pushed 198 commits to gnome-3.34: https://git.io/JenWX
dansho has quit [Ping timeout: 240 seconds]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 265 seconds]
gxt has quit [Ping timeout: 260 seconds]
drakonis has quit [Ping timeout: 268 seconds]
ilyagotfryd has quit [Remote host closed the connection]
idf has quit [Ping timeout: 265 seconds]
<HSteffenhagen> I've now also "solved" my SDL2 problem by just yoinking the .nix file from github and throwing away all the stuff I didn't need in there
ilyagotfryd has joined #nixos
<HSteffenhagen> is that the "normal" way this is supposed to work?
ilyagotfryd has quit [Ping timeout: 240 seconds]
sigmundv_ has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #69789 → python37Packages.django-allauth: 0.39.1 -> 0.40.0 → https://git.io/JeZ28
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JenlR
chloekek has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
philr has quit [Ping timeout: 276 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
dermetfan has joined #nixos
ris has joined #nixos
o1lo01ol1o has joined #nixos
<martyet-o> Hi everyone! I didnt found any mention or NixCon this year at Brno. Tickets are almost sold, but if anyone from there will be interested, pm me. I will be happy to welcome any contributor at conference :-) See 2019.nixcon.org
<martyet-o> and CfP is still open, so if you want share something in your talk, dont be late with signup :)
<drakonis> ah, it looks so sleek
<drakonis> nixcon's website that is
<martyet-o> same layout as previous years :-)
<l33_> yeah, thinking of comming along
<martyet-o> there will be also stream, so if you really cant attend, you can join us online, but atmosphere is the best part on conferences, so dont think about it twice :)
ng0 has quit [Ping timeout: 260 seconds]
<l33_> the only think i can contribute is that i'm a new user of 4 days
<drakonis> thinking of the schedule here
<drakonis> hmm, perhaps it is that i'm using global dark mode, everything looks great under dark mode
<martyet-o> program is available here, but is still updated these days - https://cfp.nixcon.org/nixcon2019/schedule/
ng0 has joined #nixos
<hyperfekt> infinisil: Your suggestion earlier made total sense to me but the problem persists ó.Ò https://gist.github.com/hyperfekt/ab6595330ec71fb0178d75488717a221/ba1bde350a5a97dd284f5947a4813647eac63969
ilyagotfryd has joined #nixos
rsoeldner has quit [Ping timeout: 246 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @joachifm merged pull request #70043 → apparmor: 2.13.1 -> 2.13.3 → https://git.io/JenTI
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to staging: https://git.io/Jen8J
<infinisil> hyperfekt: Oh darn..
srhb has quit [Quit: ZNC 1.7.4 - https://znc.in]
<infinisil> Yeah I guess it's still a problem because to check whether an attribute name exists it needs to strictly evaluate all of them, not only the one you're asking for :/
<hyperfekt> I'm really out of my depth here. I thought I understood the module system much better at this point, but I have no idea why this would still be occurring.
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @etu merged pull request #70066 → phpPackages.phpstan: 0.11.15 => 0.11.16 → https://git.io/Jencc
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/Jen8T
<hyperfekt> infinisil: That doesn't seem right to me, NixOS being strict within modules?
<infinisil> That's just how Nix works
<{^_^}> [nixpkgs] @abrenk opened pull request #70078 → nixos/sshguard: use nftables backend if enabled → https://git.io/Jen8I
Izorkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
Izorkin has joined #nixos
<{^_^}> [nixpkgs] @Vskilet opened pull request #70079 → jackett: 0.11.687 -> 0.11.751 → https://git.io/Jen8t
<infinisil> hmm..
leo_ has joined #nixos
<infinisil> > fix (cfg: { x = 10; } // optionalAttrs (cfg ? x) {})
<{^_^}> infinite recursion encountered, at (string):266:41
<infinisil> hyperfekt: Here's the simplest example of this problem ^^
<infinisil> hyperfekt: Oh!
<hyperfekt> Ah but we're not checking for existence of an attribute anymore, just for its value...
<infinisil> hyperfekt: To know its value we need to know whether the attribute exists at all
<{^_^}> [nixpkgs] @globin merged pull request #69942 → roundcube: 1.3.9 -> 1.3.10 → https://git.io/JeZHA
<{^_^}> [nixpkgs] @globin pushed 2 commits to master: https://git.io/Jen8c
<infinisil> I think I got the solution though
<infinisil> > :p fix (cfg: { x = 10; y = if cfg ? x then 20 else null; })
<{^_^}> { x = 10; y = 20; }
<{^_^}> [nixpkgs] @globin pushed commit from @r-ryantm to release-19.09 « roundcube: 1.3.9 -> 1.3.10 »: https://git.io/Jen8l
<infinisil> hyperfekt: Now that you can set null to have values unset, you can do location-provider = if ... then lcfg.provider else null
<leo_> Hey.
<hyperfekt> infinisil: that's what i'm doing, mkIf vs normal if has the same result it turns out.
<hyperfekt> mkIf is only responsible for pushdown
<infinisil> In the current gist you're using mkIf though
<hyperfekt> I still don't understand where the recursion is coming from, because we are depending on one value for the value of another, something which happens all the time in NixOS.
<leo_> Do I have to reference store paths or use patchShebang etc if I want a `writeScriptBin` to be called by a systemd service?
<hyperfekt> infinisil: True, I just changed it just to make sure that that's not where the problem lies.
<infinisil> hyperfekt: In NixOS we usually do that with options, and option values always exist (though accessing the value might fail)
Havvy has quit [Read error: Connection reset by peer]
<leo_> So every command in this script has to have a `${pkgs.something}/bin/something` prefix?
<infinisil> So the list of attribute names is always the same and isn't dependent on anything
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/fc5c7f33253 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<infinisil> Hm I'll look into why it still fails without a mkIf
<hyperfekt> leo_: That, or you could use a wrapper to add the approriate binaries to the PATH.
<leo_> hyperfekt: How so?
<leo_> I'm gonna read that just now! :)
<leo_> Thank you.
Havvy has joined #nixos
<leo_> I already used wrappers but not for this purpose.
hmpffff has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #70044 → llvmPackages_9.compiler-rt: remove outdated crt patch → https://git.io/JenTW
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/Jen8p
idf has joined #nixos
gxt has joined #nixos
o1lo01ol1o has joined #nixos
ilyagotfryd has quit [Ping timeout: 246 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
Jackneill has quit [Remote host closed the connection]
Lears has joined #nixos
[Leary] has quit [Read error: No route to host]
<l33_> hydra needs a better logo.
<HSteffenhagen> and yet another stupid question: I'm trying to override my C++ compiler for a project (and recursively for its dependencies). I keep reading I'm supposed to be able to do that with an overlay, but if when I'm trying to do something like `withGCC9 = self: super: with super; { stdenv = overrideCC stdenv gcc9; };` I'm getting complaints I've
<HSteffenhagen> apparently introduced infinite recursion
<l33_> what project is it? and why do you want to override?
<symphorien> probably gcc9 is build with the default gcc, so with your override it is built with gcc9
[Leary] has joined #nixos
<infinisil> hyperfekt: Okay I think I understand what's happening now (again lol)
<HSteffenhagen> I tried adding something like `inherit (super) gcc9` but that didn't do anything
o1lo01ol1o has joined #nixos
selfsymmetric-pa has joined #nixos
ee1943 has quit [Read error: Connection reset by peer]
<selfsymmetric-pa> How do I install Emacspeak on NixOS?
o1lo01ol1o has quit [Remote host closed the connection]
Lears has quit [Read error: No route to host]
ee1943 has joined #nixos
<hyperfekt> infinisil: i'm all ears!
<{^_^}> [nixpkgs] @knedlsepp opened pull request #70080 → hdf4: Disable some flaky tests → https://git.io/Jen4B
<infinisil> hyperfekt: Here's a simple file you can evaluate to get an infinite recursion like that
<{^_^}> [nixpkgs] @Lassulus merged pull request #70060 → maintainers: add jonathanmarler → https://git.io/JenGd
<{^_^}> [nixpkgs] @Lassulus pushed commit from @marler8997 to master « maintainers: add jonathanmarler »: https://git.io/Jen40
<infinisil> config.settings.foo = config.settings ? bar;
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
* infinisil thinks about how to explain it the best
<selfsymmetric-pa> I can see Emacspeak here but I don't know how to install it: https://github.com/NixOS/nixpkgs/pull/17022/files
<infinisil> hyperfekt: So to know whether `? bar`, it needs to know all attribute names of `settings`, because Nix is strict in attribute names
<selfsymmetric-pa> Emacspeak does not appear in the NixOS package search here: https://nixos.org/nixos/packages.html?channel=nixos-19.03
<infinisil> hyperfekt: But this includes knowing whether `foo` is part of the attribute names too
<selfsymmetric-pa> `pkgs.emacspeak` does not resolve, and neither does `pkgs.emacsPackagesNg.emacspeak`. Hrm.
<selfsymmetric-pa> I've never seen this `emacs-mode` thing used directly. Not sure what that's about.
<infinisil> hyperfekt: In order for it to know whether `foo` exists, it needs to look at the value of the definition of `foo` to see if `mkIf` or so was used, because if there was, `foo` might not be there
<selfsymmetric-pa> And `emacspeak` is in `all-packages.nix`, so I'm not sure why `pkgs.emacspeak` doesn't resolve. Maybe it's special somehow? Or maybe it was removed?
<infinisil> hyperfekt: So it needs to evaluate the *value* of `foo` to check for that, but in this case, the value needs to know whether `bar` exists
<infinisil> And that's where the recursion is
<selfsymmetric-pa> Oh hm. Maybe it was removed. I can't see any references on `master`. If that's the case I wonder what the rationale was...
page has joined #nixos
o1lo01ol1o has joined #nixos
<infinisil> hyperfekt: Does that make sense?
<hyperfekt> infinisil: But the idea is we solved that by using null instead. But this also gives an infinite recursion: https://gist.github.com/hyperfekt/1d8868a0810cd14e9a656784b1136c87/51a72e59d7bab7ff3a191064f5de7486cdced7c1
<infinisil> hyperfekt: The infinite recursion always happens as long as you evaluate the list of attribute names, which is needed with config.settings.bar too
<infinisil> (which is like a shorthand for `if config.settings ? bar then config.settings.bar else throw "No such attribute"`)
<infinisil> hyperfekt: And the module system doesn't know that we won't use mkIf's
<infinisil> It still needs to check for that
o1lo01ol1o has quit [Remote host closed the connection]
fendor has joined #nixos
<infinisil> hyperfekt: I have two solutions for that, both not really optimal though
<hyperfekt> Oooh, now I get it. I was thinking in Nix' language semantics but the module system 'changes' them.
<infinisil> Yeah
<hyperfekt> Okay, so the NixOS module system can't calculate a config attribute's value without strictly looking at the attribute set's members' names.
<hyperfekt> That's bad for RFC 42 :<
leo_ has quit [Ping timeout: 245 seconds]
<infinisil> A bit yeah
<infinisil> hyperfekt: The first workaround I'll suggest is to use mkOption's `apply` to modify the final option value
<infinisil> That's actually one of the rare use cases where apply might be needed
leo_ has joined #nixos
<infinisil> Well it's a hack, so it doesn't really qualify as a good usage of apply
<infinisil> hyperfekt: But essentially in `apply` you can give a function that modifies the final result of all option definitions merged together, without it feeding back into the module system
mexisme has joined #nixos
<hyperfekt> infinisil: I see. And that's where I would calculate any attribute that depends on another attribute.
<{^_^}> [nixpkgs] @vbgl merged pull request #69321 → ocamlPackages.camlpdf, ocamlPackages.cpdf: 2.2.1 → 2.3 → https://git.io/Jesyk
<{^_^}> [nixpkgs] @vbgl pushed 2 commits to master: https://git.io/Jen46
<infinisil> hyperfekt: Yeah
<infinisil> hyperfekt: In this case you could do `apply = value: { foo = value ? bar; } // value`
asymptotically has quit [Quit: Leaving]
<infinisil> The disadvantage is that you can't have mkMerge and such in it though
<hyperfekt> What's the second suggestion? This approach doesn't seem like something we want to expose generally.
<infinisil> The second suggestion is even hackier imo
<infinisil> I've seen this in #57123 originally, namely lazyAttrsOf, which doesn't really work with `mkIf`'s and such, but doesn't need to evaluate attribute values in turn
<{^_^}> https://github.com/NixOS/nixpkgs/pull/57123 (by oxij, 29 weeks ago, open): Typed `nixpkgs.config` married to NixOS
<hyperfekt> Interesting. If I'm not wrong anyone can do what we're intending without apply or introducing a new type simply by taking the merged attribute set, and transforming it to a new one that actually gets used. It's like a manual apply but probably simpler to use for module writers. Still no mkIf etc but I can't think of a solution rn that allows that (or if one can even exist).
<hyperfekt> Will you add this info to the manual (or the type documentation?) for RFC 42 so other people won't stumble upon the same issue?
<infinisil> hyperfekt: Hm yeah that's possible but not optimal, because then only the module that does this modification can see the change
jboy has quit [Remote host closed the connection]
<infinisil> hyperfekt: Yeah I'll make a note to add this info
jboy has joined #nixos
iqubic has joined #nixos
<hyperfekt> infinisil: That's true, people will have to design the modules accordingly. But the alternative is telling every module user to put part of the what should be the module implementation into their config (by doing the depending calculation manually).
rsoeldner has joined #nixos
<infinisil> hyperfekt: `apply` is specified in the module itself though?
<infinisil> Oh you mean if users want to do such changes in their own config
<iqubic> So I'm on Nixos and I'm having this issue where certain GUI programs, (mosty just Discord) are refusing to open URLs in at all. Like a month or so ago, I could click on a URL in Discord and it would be opened in Firefox. Now it seems that no URLs are being opened.
growpotkin has joined #nixos
<iqubic> Anyone know how I, an i3 user, could fix this?
<hyperfekt> infinisil: Ah you're right, I was too quick and thought it was part of the type. Nevermind that then.
<hyperfekt> infinisil: Thanks for helping me get to the bottom of this and understand it! :D infinisil++
<{^_^}> infinisil's karma got increased to 143
<infinisil> :D
Confuseduck has joined #nixos
bgamari_ has quit [Ping timeout: 246 seconds]
<Confuseduck> Not able to adjust brightness on my KDE plasma5 installation. Powerdevil, upower seem to be running. It used to work earlier, the slider in the battery panel, as well as the brightnes keys. The slider has stopped appearing in the applet completely. I'm pretty stumped.
bgamari has joined #nixos
<iqubic> So I have no idea what to do here. I'm really really confused.
<hyperfekt> infinisil: My thinking would be to output a warning if apply changes something so users can understand what is happening and why instead of magical effects outside the module system's rules of mkForce etc...
chrishill has joined #nixos
o1lo01ol1o has joined #nixos
<infinisil> hyperfekt: You mean like a warning that gets output every time the user builds their system? Can't really do that because it's not silencable
<Ashy> iqubic: tried swapping to sway? :p
<chrishill> Hey, how's PHP development with Nix? It seems that there aren't a lot of PHP packages in nixpkgs. I basically have to figure out how to build this project:
<{^_^}> [nixpkgs] @Vskilet opened pull request #70136 → nexcloud: 16.0.4 -> 16.0.5 → https://git.io/JenBc
<{^_^}> [nixpkgs] @wucke13 closed pull request #69894 → imagescan: init at 3.59.2 → https://git.io/JeZ1u
<chrishill> And I'm using NixOS right now. I'm wondering if I can set up this Laravel app on NixOS without too much work. So far I haven't been that successful. I am using PHP, composer, Node JS (for npm) and python. Those are the only Nix packages. I'm using a pure nix-shell inside the project's directory. I have to set up a database and stuff like that and I wonder if things will silently fail because I'm trying to do stateful
<chrishill> things and the Nix filesystem won't let me do that... or something like that.
<iqubic> Ashy: I don't think that's cause of my issue.
Havvy has quit [Ping timeout: 240 seconds]
knupfer has joined #nixos
HSteffenhagen has quit [Remote host closed the connection]
chloekek has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @michaelpj opened pull request #70137 → pam: fix variable substitution → https://git.io/JenBB
Confuseduck has quit [Remote host closed the connection]
<iqubic> this is just a really silly issue. I have no idea how to get GUI applications to use Firefox to open URLs.
<iqubic> Currently no URLs are being opened in any browser.
<simpson> iqubic: What does xdg-open do? I think that you'll want to use the XDG mechanism.
psyanticy has quit [Quit: Connection closed for inactivity]
<iqubic> How do I test that XDG is doing the right thing?
<iqubic> Is there a way to ask XDG to open google.com for me?
<simpson> xdg-open
o1lo01ol1o has quit [Remote host closed the connection]
<iqubic> xdg-open is doing the right thing from the command line.
<iqubic> It's just the messaging app discord isn't using it at all.
<simpson> Aha. You could go complain to them, then. I wouldn't hold my breath; Discord's a dumpster fire when it comes to community interaction. ISTR that their app uses Electron, so maybe there's a sneaky standard way to go below Discord's offering and tweak their client platform directly.
<simpson> Also totally possible that one of your XDG environment variables is wrong. Getting that stuff right can be non-trivial.
Havvy has joined #nixos
<iqubic> How do I chec what my XDG evironment variables?
<iqubic> Also, yeah. Discord does use Electron.
fusion809 has joined #nixos
growpotkin has quit [Ping timeout: 240 seconds]
<simpson> $(env | grep XDG) probably. I'm not sure what's actually wrong, though, so I don't know how to make it right.
<leo_> How do I reference a script I created with writeScriptBin?
<ivan> iqubic: strace the thing to see what it's trying to launch and intercept that with PATH
<iqubic> Well, that's an issue.
<leo_> Outside the module it's defined.
<leo_> pkgs.myscript doesn't cut it.
<iqubic> That seems like an issue.
<iqubic> Not sure how to fix this.
<l33_> does nix-build honour nice setttings?
<l33_> i.e. nice --20 nix-build ?
<iqubic> So, I'm at a loss here.
<leo_> iqubic: I'm a newb.
growpotkin has joined #nixos
<leo_> Maybe you can wrap the discord bin to use the xdg paths you want?
gila has joined #nixos
<leo_> I wrap autorandr setting xdg_config_home to configure it, for instance.
selfsymmetric-pa has quit [Remote host closed the connection]
<iqubic> leo_: I thought that's what the derivation already did.
<iqubic> In fact, it does already do that.
<leo_> For the browser, I set ff as the default with xdg-settings in my sessionCommands.
<leo_> It works like a charm.
orivej has joined #nixos
<iqubic> right... But I'm not using LightDM or anything like it.
Blessjah has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @Infinisil opened pull request #70138 → lib/types: Introduce lazyAttrsOf → https://git.io/JenRq
<iqubic> I'm using startx to do it.
Blessjah has joined #nixos
<iqubic> leo_: What does the relevant part of your sessionCommands do?
Jackneill has joined #nixos
rsoeldner has quit [Ping timeout: 246 seconds]
<leo_> `xdg-settings set default-web-browser firefox`
<{^_^}> [nixpkgs] @jonringer merged pull request #70073 → pythonPackages.supervisor: fix tests → https://git.io/JenWt
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JenRW
<iqubic> Running that on the commnd line gives me this error: "xdg-settings: invalid application name"
<leo_> Install xdg-utils.
<infinisil> hyperfekt: Alright I posted a huge comment in https://github.com/NixOS/rfcs/pull/42#issuecomment-536747403 and opened #70138 to add lazyAttrsOf
<{^_^}> https://github.com/NixOS/nixpkgs/pull/70138 (by Infinisil, 9 minutes ago, open): lib/types: Introduce lazyAttrsOf
<iqubic> xdg_utils has been installed. I'm still getting the same error.
<iqubic> So I'm realy really confused right now.
selfsymmetric-pa has joined #nixos
domogled has joined #nixos
<hyperfekt> infinisil: Awesome, I like that this will not just be a weird edge case you have to ask the chat about but actually documented.
<Ashy> case sensitive application name? try Firefox
noudle has joined #nixos
sigmundv_ has joined #nixos
<Ashy> The *. desktop files are usually capitalised I think
<iqubic> Nope. Still getting an error there.
<iqubic> Same error too.
o1lo01ol1o has joined #nixos
<iqubic> The issue is that I don't have a Desktop folder.
<leo_> Ouch! Overlays is what I was looking for.
<{^_^}> [nixpkgs] @jonringer opened pull request #70139 → pythonPackages.ephem: 3.7.6.0 -> 3.7.7.0 → https://git.io/JenRo
Jackneill has quit [Remote host closed the connection]
Ariakenom_ has quit [Quit: Leaving]
<michaelpj> iqubic: your XDG_DATA_DIRS looks fine. I think there's a known issue where the GNOME library firefox uses doesn't actually follow the XDG spec, which is very annoying. If xdg-open does the right thing, then the problem is not with you, it's with the application
<infinisil> iqubic: Did you try `xdg-settings set default-web-browser firefox.desktop`?
<simpson> michaelpj: XDG interactions with Firefox are usually Just Working with my setup (which I'm not currently in front of), and we normally try to get this stuff working Out of The Box. So I suspect it's a local configuration issue rather than a problem in how we package the application.
<simpson> Or, of course, a problem with non-free software~
<michaelpj> simpson: I spent a while digging into this some time ago and I definitely found a case where firefox was ignoring one of the XDG files, I think it was maybe an `.defaults` file or something. I've forgotten the details now
<infinisil> Also: xdg-mime default firefox.desktop x-scheme-handler/{http,https}
<infinisil> I think I've had to set this for firefox to be used ^^
<infinisil> iqubic: ^
<infinisil> And here's a super short xdg-mime tutorial: https://discourse.nixos.org/t/how-to-set-the-xdg-mime-default/3560/3?u=infinisil
<{^_^}> #44866 (by michaelpj, 1 year ago, closed): plasma/xfce/enlightenment: improve detection of application mime types for apps that use GIO (firefox)
<michaelpj> so I'd be interested in whether people who have issues with this have `/share/applications/mimeinfo.cache`
<leo_> Notifies X on low battery, for who might be interested.
<{^_^}> [nixpkgs] @jonringer merged pull request #69782 → python37Packages.cupy: 6.2.0 -> 6.3.0 → https://git.io/JeZgH
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JenR5
selfsymmetric-pa has quit [Remote host closed the connection]
knupfer has quit [Ping timeout: 245 seconds]
lord| has quit [Ping timeout: 265 seconds]
leo_ has quit [Ping timeout: 240 seconds]
leo_ has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #69781 → python37Packages.azure-mgmt-devtestlabs: 3.0.0 -> 4.0.0 → https://git.io/JeZgR
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/Jen0I
iqubic` has joined #nixos
lord| has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #69772 → python37Packages.azure-mgmt-network: 4.0.0 -> 5.0.0 → https://git.io/JeZz9
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/Jen0G
ilyagotfryd has joined #nixos
mexisme has quit [Ping timeout: 250 seconds]
iqubic has quit [Ping timeout: 268 seconds]
ilyagotfryd has quit [Ping timeout: 240 seconds]
<alex``> did you test opera?
<alex``> it always crash
<alex``> I try to load an unpacked extension and it crashes
<alex``> always
<hyperfekt> okay, last hurdle: how do i check whether an option is set?
iqubic` has quit [Ping timeout: 240 seconds]
<mdash> hyperfekt: from where?
<hyperfekt> mdash: from the config part of a module.
<{^_^}> [nixpkgs] @kalbasit merged pull request #70062 → kube3d: build as GoModule instead of GoPackage → https://git.io/JenZg
<{^_^}> [nixpkgs] @kalbasit pushed commit from @jlesquembre to master « kube3d: build as GoModule instead of GoPackage (#70062) »: https://git.io/Jen0a
<gchristensen> whoa we rolled over 70,000!
ng0 has quit [Quit: Alexa, when is the end of world?]
psyanticy has joined #nixos
pcarrier has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer opened pull request #70140 → kwallet-pam: wrap pam_kwallet_init → https://git.io/Jen0S
<{^_^}> [nixpkgs] @dywedir merged pull request #70029 → zola: 0.8.0 -> 0.9.0 → https://git.io/Jenel
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/Jen07
<{^_^}> [nixpkgs] @samueldr merged pull request #69865 → sdImage: add option to enable bzip2 compression → https://git.io/JeZ69
<{^_^}> [nixpkgs] @samueldr pushed 2 commits to master: https://git.io/Jen0d
endformationage has quit [Quit: WeeChat 2.6]
endformationage has joined #nixos
<hyperfekt> The answer was .isDefined
AluisioASG has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
endformationage has quit [Quit: WeeChat 2.6]
endformationage has joined #nixos
drakonis has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @mmahut opened pull request #70141 → jormungandr: 0.5.2 -> 0.5.4 → https://git.io/JenET
__monty__ has quit [Quit: leaving]
<infinisil> hyperfekt: Bingo
<hyperfekt> infinisil: I was pushing the PR when you wrote that :b
<hyperfekt> Finally done, that's enough module system for the next week for me
<infinisil> Which PR?
<infinisil> There's actually one that does something like that already: https://github.com/NixOS/nixpkgs/pull/57975
drakonis has joined #nixos
<hyperfekt> infinisil: Yeah but I don't like it ^^
<infinisil> Hehe same
<leo_> infinisil: I learned a bunch from your config. Thank you for sharing.
<infinisil> hyperfekt: Ahh I got it
<infinisil> leo_: Glad it helped you :D
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
nathanruiz has quit [Ping timeout: 245 seconds]
doublex has quit [Ping timeout: 264 seconds]
<shyim> How can i clear the nix cache?
<shyim> I have cleared everything from my binary cache
<shyim> and pushed new the files. But it tries still the old file
<clever> /nix/var/nix/binary-cache-v3.sqlite
<clever> /root/.cache/nix/binary-cache-v6.sqlite
<clever> shyim: those files are used to cache what is in the cache
<shyim> can i safe delete them? 🤔
gyroninja has quit [Quit: WeeChat 2.5]
<clever> shyim: yep
<clever> nix will automatically remake them, and re-populate from the caches
doublex has joined #nixos
<hyperfekt> infinisil: Do you wanna review and see if we can get it merged now (given you have time) or do you wanna wait for the RFC to be merged?
<shyim> Ohh my god
<shyim> its working
AluisioASG has joined #nixos
<shyim> I am trying since 2 hours, why its not working :D
<shyim> @clever: Thanks i love you <3
<infinisil> hyperfekt: Wait you opened a PR?
<hyperfekt> infinisil: No, I updated a PR open since about a year :b
<hyperfekt> #50979
<{^_^}> https://github.com/NixOS/nixpkgs/pull/50979 (by hyperfekt, 44 weeks ago, open): nixos/redshift: rework to use config file
<infinisil> hyperfekt: Oh lol I'm blind sorry, for some reason I thought that PR was closed
<infinisil> Didn't even scroll up from the comment
<infinisil> Or down
<clever> shyim: by default, the positive ttl is in the days
<hyperfekt> It's gotten a lot leaner now that locale.nix is responsible for the manual location provider cause there's no common abstraction anymore. I've closed the relevant review comments, and left those open that are up to you.
<clever> shyim: so if you didnt clear the cache, it wont recover for multiple days
<clever> [root@amd-nixos:~]# nix show-config | grep narinfo-cache
<clever> narinfo-cache-positive-ttl = 2592000
<clever> narinfo-cache-negative-ttl = 3600
<clever> > 2592000 / 3600 / 24
<{^_^}> 30
<hyperfekt> infinisil: I guess it can get very easy to lose sight of all the many PRs you're listed as maintainer for.
<clever> shyim: 30 days, to be specific!
<infinisil> hyperfekt: Hm I don't have time to review now, I'll leave it in my notifications for now
<hyperfekt> infinisil: Absolutely, no hurry. It wouldn't make it into 19.09 anyhow.
<shyim> ahh okay thanks :)
<infinisil> hyperfekt: Some quick feedback here: I'd call the option `settings` instead of `config` (was chosen in the rfc), the list of possible types should probably include float and maybe bool too (can use types.oneOf for that), multi-line examples should use literalExample (see other modules for examples), extraOptions needs mkRemovedOptionModule
leo_ has quit [Ping timeout: 240 seconds]
<hyperfekt> ah, good points. that's why i got you looking over this stuff
<infinisil> :)
<gchristensen> do we have any builds which take >24h to run?
* gchristensen hopes not
<clever> gchristensen: chromium is the closest i can think of
<gchristensen> how long is that one?
<clever> gchristensen: either 12 or 48 hours, cant remember exactly
<gchristensen> because yesterday I setup most of the builders to be replaced every day
fendor has quit [Read error: Connection reset by peer]
mexisme has joined #nixos
hmpffff has quit [Quit: nchrrrr…]
erasmas has quit [Quit: leaving]
gyroninja has joined #nixos
hmpffff has joined #nixos
hmpffff has quit [Client Quit]
hmpffff has joined #nixos
hmpffff has quit [Client Quit]
xkapastel has joined #nixos
logzet_ has joined #nixos
logzet has quit [Ping timeout: 264 seconds]
isHavvy has joined #nixos
Havvy has quit [Ping timeout: 268 seconds]
freeman42x has joined #nixos
<freeman42x> got NixOS installed on Surface Pro 6 but got lots of issues, which are solved by this: https://github.com/jakeday/linux-surface
<freeman42x> any way to get that kernel running on my NixOS? without me having to write Nix preferably...
wildtrees has quit [Quit: Leaving]
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 264 seconds]
mbrgm_ is now known as mbrgm
<l33_> freeman42x , that's going to need some nix knowhow.
m0rphism has quit [Ping timeout: 245 seconds]
ddellacosta has quit [Ping timeout: 240 seconds]
<clever> gchristensen: hmmm, maybe the hydra slaves are more powerful, it took 7h there
<l33_> i think i'm gettig my head around nixops
<l33_> is there a sane guide to hydra anywhere? the learning curve seems like everest.
lucasvo has joined #nixos
dermetfan has quit [Ping timeout: 240 seconds]
<l33_> 7 hours....software is toooooooo big!
<lucasvo> I'm trying to install mullvad-vpn which works when pulling it from unstable but I can't figure out how I can get it to add the service to systemd: https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/mullvad-vpn/default.nix
<clever> lucasvo: is there a nixos module for it already?
<lucasvo> it copies the system service definition to $out/etc/systemd/system/ but I don't see how I can enable it
<lucasvo> clever: yes, see the above link, it's in unstable and I got it to install, I am just a bit lost how systemctl doesn't know about it
<clever> lucasvo: thats not a module, thats a package
Havvy has joined #nixos
<lucasvo> ok, sorry my ignorance, so I guess there isn't?
<lucasvo> that's the only file I found for it
<clever> lucasvo: https://nixos.org/nixos/options.html#systemd.packages might help, try adding the package to that option
<l33_> i guess you need a service for it.
<lucasvo> clever: thanks
isHavvy has quit [Ping timeout: 276 seconds]
<lucasvo> clever: I'm going off of actkbd (https://github.com/NixOS/nixpkgs/blob/139924308181c0ad1b7b27d1e22e15e25b04f7ba/nixos/modules/services/hardware/actkbd.nix) or is there a resource on how to figure out how to add a service?
<{^_^}> [nixpkgs] @jonringer merged pull request #69771 → python37Packages.flask-restplus: 0.12.1 -> 0.13.0 → https://git.io/JeZzD
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/Jenu4
<clever> lucasvo: the nixos manual should explain everything you need to know
<l33_> i think i might hate systemd ....is this normal?
<clever> l33_: https://www.youtube.com/watch?v=o_AIw9bGogo "The Tragedy of systemd"
taylskid has quit [Ping timeout: 245 seconds]
<l33_> I've seen it clever.
<l33_> :-(
<l33_> ls -la
<clever> l33_: i was also anti-systemd before i switched to nixos
<l33_> whoops
<clever> now ive learned to put up with it :P
<l33_> hahahahaha LOL.
dermetfan has joined #nixos
<clever> l33_: ive also managed to crash pid1 when playing with systemd-nspawn and fuse, so it definitely seems to be over-reaching in its goals
noudle has quit []
<lucasvo> clever: mkService is the right option, correct? nixos manual doesn't mention anything about it
<clever> lucasvo: you generally just assign values to systemd.services.something
<clever> lucasvo: mkService would be a function you write, if you want to generate many service
<clever> s
<clever> lucasvo: this is the most basic example
<lucasvo> thanks
drakonis has quit [Ping timeout: 276 seconds]
taylskid has joined #nixos
o1lo01ol1o has quit [Ping timeout: 245 seconds]
dermetfan has quit [Ping timeout: 276 seconds]
ilyagotfryd has joined #nixos
kreisys has joined #nixos
Okinan has joined #nixos
kreisys has quit [Remote host closed the connection]
kreisys has joined #nixos
psyanticy has quit [Quit: Connection closed for inactivity]
pcarrier has quit [Quit: Connection closed for inactivity]
lovesegfault has quit [Ping timeout: 268 seconds]
<notgne2> I don't mean to go all radical centrist in the SystemD debate, but I kinda like everything it's going for, I just don't like the "all or nothing" sort of ideology behind it, where you can't really pick and choose utility as easily, and very few components are externally re-usable
<notgne2> in most contexts I'd love to have SystemD, but I don't like it for the times I wouldn't, which makes things very difficult
<red[m]1> I loathe and detest systemd, nixos helped me ignore it
<notgne2> people got mad recently about systemd-homed stuff, which actually sounds like a super good idea to me, I just wish it wasn't part of systemd
<red[m]1> it's like kudzu, or the plague
<clever> notgne2: they also ate udev whole
<clever> notgne2: if you want udev in the initrd (ethernet if naming), you must put the entire systemd in the initrd, and the package is pretty hefty
<red[m]1> binary logs are what turned me
<notgne2> I just had to write a few hundred odd (would be less if I knew how Nix worked) lines to approximate SystemD services into a bash entrypoint for Docker lol
<simpson> As relates to the channel, I often feel like systemd is a very weak part of NixOS; while it enables hotloading and live reloading of units, I know that other init systems can also do that and it's not always so prone to breakage.
<simpson> But, at the same time, rewriting basically all of NixOS sounds daunting.
<notgne2> and it's not even fully tested, so I bet I'll need to write more
<clever> notgne2: ive been working on the reverse i think, i translate systemd service definitions (in nixos modules) into very simple scripts, that runit can then run
<red[m]1> right
orivej has quit [Ping timeout: 240 seconds]
<clever> notgne2: then i package it all up into a docker image, so i can just run any nixos service
<clever> including multiple services at once
<red[m]1> and anything we do for nixos we'd arguably have to support for other distros
lucasvo has quit [Ping timeout: 240 seconds]