worldofpeace_ changed the topic of #nixos to: NixOS stable: 20.03 ✨ https://discourse.nixos.org/t/nixos-20-03-release/6785 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || use ,channels for a list of Nix* related channels || nixcon videos: https://tinyurl.com/nixcon2019 || Link to the output of nix-info
justanotheruser has joined #nixos
stites has quit [Ping timeout: 240 seconds]
<lovesegfault> .-.
<lovesegfault> uname -r?
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
aleph- has quit [Quit: WeeChat info:version]
aleph- has joined #nixos
noudle has quit []
<jtojnar> lovesegfault 5.4.0-40-generic
<duairc> I see that in the documentation of Nixos options there is often markup like <literal> or <filename>
<duairc> Is there an exhaustive list of the tags that are supported and their intended use documented anywhere?
<jtojnar> especially the reference part: https://tdg.docbook.org/tdg/5.1/part2.html
<duairc> jtojnar: Wow okay, there's loads of them! Thanks though ;0
<duairc> (that was supposed to be :) but my shift key is sticky)
emys has quit [Ping timeout: 264 seconds]
proofofkeags has quit [Ping timeout: 240 seconds]
<jtojnar> duairc basically anything that can be in paragraphs: https://tdg.docbook.org/tdg/5.1/para.html
<{^_^}> [nixpkgs] @ndarwincorn opened pull request #93449 → vim-plugins: add 13 plugins → https://git.io/JJnSI
<lovesegfault> jtojnar: Yeah, idk what's up
proofofkeags has joined #nixos
o1lo01ol1o has joined #nixos
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
o1lo01ol1o has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @ardumont opened pull request #93450 → mediatomb: Improve service + add gerbera support and tests → https://git.io/JJnS3
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
drakonis has quit [Quit: WeeChat 2.8]
emys has joined #nixos
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
proofofkeags has quit [Ping timeout: 256 seconds]
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/02d1989f8c1 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JJnSK
emys has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @edef1c opened pull request #93451 → nixos/users-groups: don't consider a system with Google OS Login inaccessible → https://git.io/JJnS6
emys has joined #nixos
<Raito_Bezarius> is it expected to rebuild nsd each time I change little stuff in the config?
<jtojnar> lovesegfault one weird thing I forgot to mention, I have bluetooth connected to usb headers
<jtojnar> apparently, PCIe cannot handle two devices at once
<lovesegfault> jtojnar: huh
<lovesegfault> wat
* lovesegfault does lsusb
<lovesegfault> interesting, I don't see the bluetooth device there
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/566982e0ee2 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
Maxdamantus has quit [Quit: Lost terminal]
<jtojnar> lovesegfault I have tp-link ax3000, it has a cable attached that you hae to plug to usb header
<jtojnar> for bluetooth to work
Maxdamantus has joined #nixos
<jtojnar> (it is not a naked ax200)
<lovesegfault> fascinating
<lovesegfault> hm
<jtojnar> sorry, should have mentioned that earlier, as it might be relevant
<jtojnar> just was too tired and forgot
<lovesegfault> no worries
<lovesegfault> AIUI there's no similar thing in the raw m.2 connectin
<jtojnar> yeah, m.2 should support that
cosimone has joined #nixos
<{^_^}> Channel nixpkgs-20.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/02d1989f8c1 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.03-darwin)
iceypoi has joined #nixos
<lovesegfault> Going to get the AX201 and see what happens
<lovesegfault> brb, switching to old card
icey_ has quit [Ping timeout: 246 seconds]
emys has quit [Ping timeout: 240 seconds]
<codygman___> Is there some way to view the expected arguments of a function in nix repl?
drakonis has joined #nixos
emys has joined #nixos
chrmb has quit [Read error: Connection reset by peer]
<codygman___> Put another way: Is there a way to see what values I can override using pkgs.ripgrep.override({someval = null}) where someval is invalid and I want to find valid values?
<jtojnar> codygman___ look at callPAckage definition
<jtojnar> it uses lib.functionArgs
<codygman___> jtojnar: Thanks! Taking a look now
stites has joined #nixos
<jtojnar> > lib.functionArgs (import (lib.head (lib.splitString ":" pkgs.ripgrep.meta.position)))
<{^_^}> { Security = false; asciidoctor = false; fetchFromGitHub = false; installShellFiles = false; pcre2 = true; rustPlatform = false; stdenv = false; withPCRE2 = true; }
<jtojnar> maybe there is some nicer way to extract it from callPackage
<jtojnar> > lib.functionArgs pkgs.ripgrep.override
<{^_^}> { Security = false; asciidoctor = false; fetchFromGitHub = false; installShellFiles = false; pcre2 = true; rustPlatform = false; stdenv = false; withPCRE2 = true; }
<jtojnar> yeah, that works too
emys has quit [Ping timeout: 256 seconds]
<jtojnar> init_6 it will not be unless someone decides to backport it
chrmb has joined #nixos
cosimone has quit [Quit: Quit.]
justanotheruser has quit [Read error: Connection reset by peer]
m_hackerfoo has quit [Quit: killed]
HackerFoo has quit [Quit: killed]
<{^_^}> [nixpkgs] @euank opened pull request #93453 → libappindicator: 12.10.0 -> 12.10.1+20.10.20200706.1 → https://git.io/JJn9l
zeta_0 has joined #nixos
<infinisil> > lib.functionArgs pkgs.ripgrep.override
<{^_^}> { Security = false; asciidoctor = false; fetchFromGitHub = false; installShellFiles = false; pcre2 = true; rustPlatform = false; stdenv = false; withPCRE2 = true; }
<infinisil> codygman___: ^
<infinisil> Oh
<infinisil> Sorry jtojnar already showed this
drakonis has quit [Quit: WeeChat 2.8]
philr has joined #nixos
Rusty1 has joined #nixos
HackerFoo has joined #nixos
m_hackerfoo has joined #nixos
gustavderdrache has quit [Quit: Leaving.]
m_hackerfoo has quit [Client Quit]
HackerFoo has quit [Client Quit]
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
HackerFoo has joined #nixos
m_hackerfoo has joined #nixos
c74d has joined #nixos
emys has joined #nixos
<codygman___> infinisil: thanks for the example too!
ninjin has quit [Ping timeout: 240 seconds]
justanotheruser has joined #nixos
<codygman___> Can anyone help me figure out how to override pkgs.diagrams-builder's underlying haskell dependency version of haskell-src-exts required? I've been at it a couple days on and off and I'm stuck: https://discourse.nixos.org/t/help-overriding-a-derivations-runtime-haskell-dependencies-reproducible-pinned-nix-file-included/8184/4
m0rphism has quit [Ping timeout: 264 seconds]
ninjin has joined #nixos
emys has quit [Ping timeout: 264 seconds]
emys has joined #nixos
justanotheruser has quit [Read error: Connection reset by peer]
markus1189 has joined #nixos
markus1199 has quit [Ping timeout: 240 seconds]
o1lo01ol1o has joined #nixos
emys has quit [Ping timeout: 256 seconds]
h0m1 has quit [Ping timeout: 260 seconds]
h0m1 has joined #nixos
o1lo01ol1o has quit [Ping timeout: 260 seconds]
emys has joined #nixos
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
codygman___ has quit [Ping timeout: 246 seconds]
knerten1 has joined #nixos
codygman has quit [Read error: Connection reset by peer]
knerten has quit [Ping timeout: 258 seconds]
patagonicus6 has joined #nixos
codygman has joined #nixos
patagonicus has quit [Ping timeout: 256 seconds]
patagonicus6 is now known as patagonicus
emys has quit [Ping timeout: 264 seconds]
justanotheruser has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
nikita_ has joined #nixos
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
aw has joined #nixos
spacefrogg has joined #nixos
nikita` has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #93442 → barlow: init at 1.422 → https://git.io/JJnPA
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JJnQo
<{^_^}> [nixpkgs] @marsam merged pull request #93440 → visualvm: 2.0.2 -> 2.0.3 → https://git.io/JJniP
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JJnQP
quinn has joined #nixos
pjt_014 has joined #nixos
zeta_0 has joined #nixos
<zeta_0> could any of you check this shell.nix file to make sure that i installed JobFunnel correctly from github? https://dpaste.org/0BaX
<zeta_0> webdriver-manager was not in nixpkgs, so i had to install that directly from github as well, also running nix-shell on that shell.nix file worked without any errors, so i could you check to make sure i did this correctly, i don't want to have to backtrack later
<zeta_0> webdriver-manager, the python pkg that is
emys has joined #nixos
proofofkeags has joined #nixos
quinn has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @zowoq opened pull request #93455 → aerc: fix GOFLAGS → https://git.io/JJnQp
quinn has joined #nixos
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
<zeta_0> when i type: `funnel --help`, the terminal returns: command not found, how strange
<zeta_0> hmm
<{^_^}> [nixpkgs] @berbiche opened pull request #93456 → sgtk-menu: init at 1.4.1 → https://git.io/JJn7Z
proofofkeags has quit [Ping timeout: 240 seconds]
emys has quit [Ping timeout: 260 seconds]
drakonis has joined #nixos
proofofkeags has joined #nixos
emys has joined #nixos
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
emys has quit [Ping timeout: 240 seconds]
emys has joined #nixos
drakonis has quit [Quit: WeeChat 2.8]
MarkRBM has quit [Quit: Connection closed for inactivity]
justanotheruser has quit [Ping timeout: 260 seconds]
codygman___ has joined #nixos
emys has quit [Ping timeout: 246 seconds]
justanotheruser has joined #nixos
kl3 has left #nixos [#nixos]
<{^_^}> [mobile-nixos] @noneucat opened pull request #188 → [WIP] pine64-pinephone-braveheart: implementation of Crust → https://git.io/JJn5q
Supersonic112 has joined #nixos
quinn has quit [Ping timeout: 260 seconds]
Supersonic has quit [Ping timeout: 256 seconds]
Supersonic112 is now known as Supersonic
pjt_014 has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @ju1m opened pull request #93457 → apparmor: fix and improve the service → https://git.io/JJn5W
pjt_014 has joined #nixos
quinn has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/98c9ae41de7 (from 73 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<alienpirate5> can't rebuild
<alienpirate5> I get this:
<alienpirate5> mkdir: cannot create directory '/nix/store/zfsgh92pfq7n6yc0ws55q6z9dl692hq0-etc/etc/dconf/db/local.d': Permission denied
<alienpirate5> building '/nix/store/3zb438z3n1yapd26fx09i12v8v69jac7-etc.drv'...
<alienpirate5> what could this mean?
drakonis has joined #nixos
drakonis has quit [Client Quit]
drakonis has joined #nixos
pjt_014 has quit [Ping timeout: 246 seconds]
emys has joined #nixos
<jtojnar> alienpirate5 can you check the value of programs.dconf.packages or programs.dconf.profiles using nixos-option?
quinn has quit [Quit: ZNC 1.7.5 - https://znc.in]
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #nixos
emys has quit [Ping timeout: 272 seconds]
Orbstheorem has quit [Ping timeout: 272 seconds]
Orbstheorem has joined #nixos
pjt_014 has joined #nixos
<pjt_014> alienpirate5: that's...that's a weird one. Never seen it before. Can you try manually changing the permission?
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
proofofkeags has quit [Ping timeout: 240 seconds]
emys has joined #nixos
Rusty1 has quit [Quit: WeeChat 2.3]
<{^_^}> [nixpkgs] @gnidorah opened pull request #93459 → rambox: add wrapGAppsHook → https://git.io/JJndK
disasm has quit [Ping timeout: 246 seconds]
drakonis has quit [Quit: WeeChat 2.8]
drakonis has joined #nixos
zupo has joined #nixos
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
<bqv> `nix shell 'nixpkgs#catt' -c catt scan` working for anyone?
codygman___ has quit [Ping timeout: 264 seconds]
tmaekawa has joined #nixos
emys has quit [Ping timeout: 272 seconds]
emys has joined #nixos
o1lo01ol1o has joined #nixos
sangoma has joined #nixos
o1lo01ol1o has quit [Ping timeout: 246 seconds]
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
troydm has joined #nixos
emys has quit [Ping timeout: 246 seconds]
Izorkin has quit [Quit: ZNC 1.8.1 - https://znc.in]
emys has joined #nixos
Izorkin has joined #nixos
chimay has joined #nixos
<alienpirate5> "pjt_014" (https://matrix.to/#/@freenode_pjt_014:matrix.org): I can't, it's dynamically created during the rebuild
emys has quit [Ping timeout: 240 seconds]
palo1 has joined #nixos
palo has quit [Ping timeout: 258 seconds]
palo1 is now known as palo
emys has joined #nixos
tmaekawa has quit [Quit: tmaekawa]
yochai[m] has joined #nixos
<bqv> so add a chmod to the build script
emys has quit [Ping timeout: 256 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Izorkin has quit [Quit: ZNC 1.8.1 - https://znc.in]
emys has joined #nixos
Izorkin has joined #nixos
zupo has joined #nixos
mariatsji has joined #nixos
mariatsji has quit []
fmzakari has joined #nixos
<fmzakari> Giving this a shot over discord :)
drakonis has quit [Quit: WeeChat 2.8]
emys has quit [Ping timeout: 260 seconds]
kreyren has joined #nixos
stree has quit [Excess Flood]
stree has joined #nixos
callahad87074 has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @danieldk merged pull request #93406 → gama: init at 2.09 → https://git.io/JJnGj
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JJnNf
<{^_^}> [nixpkgs] @danieldk merged pull request #93392 → fedora-coreos-config-transpiler: use upstream vendor → https://git.io/JJnm2
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JJnNk
user_0x58 has quit [Quit: Leaving]
Heirlung has quit [Read error: Connection reset by peer]
Heirlung has joined #nixos
callahad87074 has joined #nixos
stites has quit [Ping timeout: 240 seconds]
stites has joined #nixos
chimay has quit [Ping timeout: 260 seconds]
Guest84 has joined #nixos
knupfer has joined #nixos
<Guest84> Hi, if I have no channel named `nixpkgs`, which version of `nixpkgs` is actually getting used when I do an `import <nixpkgs>` inside shell.nix or a repl. And what happens when I *do* have a a nixpkgs?
knupfer has joined #nixos
chimay has joined #nixos
alexherbo2 has joined #nixos
orivej has joined #nixos
emys has joined #nixos
nikita_ is now known as nikita`
simba2 has joined #nixos
tv has quit [Ping timeout: 272 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srhb> Guest84: Look at $NIX_PATH
zupo has joined #nixos
zupo has quit [Client Quit]
<srhb> Guest84: <nixpkgs> is the first path within that that either is called nixpkgs or contains a directory called nixpkgs.
<srhb> Guest84: Fo instance, you may have an (unnamed) path entry called /home/youruser/.nix-defexpr/channels -- if channels contains a nixpkgs, then that is <nixpkgs>. Or you may have a (named) path nixpkgs=somepath within $NIX_PATH. Then that is <nixpkgs>
emys has quit [Ping timeout: 260 seconds]
pjt_014 has quit [Ping timeout: 258 seconds]
<srhb> Guest84: The logic gets slightly worse for some other tools that don't respect $NIX_PATH directly, but go thrugh ~/.nix-defexpr, but for nix repl this should mostly be the gist of it.
<{^_^}> [nixpkgs] @nixos-channel-bot closed pull request #72160 → darktable: move documentation to it's own directory → https://git.io/JeuZv
<srhb> Guest84: Or to be more explicit about your question: try `nix repl <nixpkgs>` and then enter `path` on the repl.
emys has joined #nixos
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/a5cc7d31977 (from 15 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
asheshambasta has joined #nixos
emys has quit [Ping timeout: 240 seconds]
tv has joined #nixos
stites has quit [Ping timeout: 256 seconds]
stites has joined #nixos
<srhb> Hmm. Can I the "self" flake input from a "calling" flake? I want to add an attribute that the callee flake uses.
<srhb> Specifically, the nixpkgs flake uses self.lastModified, which is not present in my flake lockfile (because of the nixpkgs flakeref type I'm using)
<srhb> So I'd like to inject that.
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to staging: https://git.io/JJnAM
<{^_^}> [nixpkgs] @vcunat merged pull request #92345 → man: 2.9.2 -> 2.9.3 → https://git.io/JJIZw
orivej_ has joined #nixos
simba2 has quit [Ping timeout: 272 seconds]
<Guest84> srhb: Wow, thank you for such a detailed answer.
orivej has quit [Ping timeout: 256 seconds]
<srhb> Guest84: Sure. :)
simba2 has joined #nixos
<{^_^}> [nixpkgs] @markus1189 opened pull request #93462 → jo: 1.3 -> 1.4 → https://git.io/JJnAF
orivej_ has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
<Guest84> srhb: So that you don't have to repeat this next time- I added https://nixos.wiki/wiki/FAQ/nixpkgs
<Guest84> Thank you again :)
Guest84 has quit [Quit: Connection closed]
Ariakenom has joined #nixos
<srhb> Guest84: Maybe a link to https://nixos.org/nix/manual/#sec-common-env would suffice
o1lo01ol1o has joined #nixos
<srhb> .. too slow :)
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
justanotheruser has quit [Ping timeout: 272 seconds]
m0rphism has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/5b55f257b58 (from 77 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
<{^_^}> [nixpkgs] @Oro opened pull request #93463 → python3Packages.HAP-python: 2.8.1 -> 2.9.2 → https://git.io/JJnx7
Extends has joined #nixos
<{^_^}> [nixpkgs] @danieldk merged pull request #93351 → gfan: fix clang build on non-Darwin → https://git.io/JJZX2
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JJnxx
ixxie has joined #nixos
<ixxie> arianvp, arcnmx - does Hydra build the DO ISO you merged with https://github.com/NixOS/nixpkgs/pull/66978
<{^_^}> #66978 (by arcnmx, 47 weeks ago, merged): nixos/digital-ocean-image: init (rebase)
<arianvp> No I don't think so
<arianvp> Does it not build anymore?
<ixxie> well, I didn't test
knupfer has quit [Quit: knupfer]
<ixxie> I'm just trying to research
knupfer1 has joined #nixos
<{^_^}> nix-community/nixops-digitalocean#3 (by ixxie, 4 days ago, open): Replace `nixos-infect` with image-based droplet instantiation
<arianvp> Would be cool if it did though
<ixxie> We just merged a PR to update the plugin to NixOps 2.0
<jackdk> ,where libGL.so.1
<arianvp> I don't know what the policy is for this stuff or how it's build for e.g. nixops
<arianvp> I'm not familiar enough with hydra.
<arianvp> (i.e. how are EC2 Amis built; I don't know)
<arianvp> I'd happily review and merge a PR that adds it to CI though
<{^_^}> [nixpkgs] @Oro opened pull request #93464 → python3Packages.aioharmony: 0.2.3 -> 0.2.5 → https://git.io/JJnpI
knupfer1 is now known as knupfer
<ixxie> arianvp: to which CI?
<arianvp> Hydra... If that's a useful place. I think it makes sense?
<ixxie> yes it does
<arianvp> But if you don't know either how to do it. Let's poke somebody who does e.g. gchristensen
<ixxie> it also makes sense to build it with the plugin
<arianvp> Yeh totally
<ixxie> I think both are valid approaches, but it may be easier in some ways to leverage Hydra
<arianvp> That's why I made the digitalocean image in the first place :) in the hope somebody would add nixops support
<ixxie> Its gonna happen :)
<{^_^}> [nixpkgs] @srhb merged pull request #93448 → steam-runtime: 0.20200417.0 -> 0.20200604.0 → https://git.io/JJnDW
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/JJnpq
<ixxie> arianvp: DigitalKiwi is planning to also add other features, like volume support and floating IPs
__monty__ has joined #nixos
nikita` has quit [Quit: leaving]
ericsagnes has quit [Quit: WeeChat 2.7.1]
nikita` has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 12 commits to staging: https://git.io/JJnpw
<{^_^}> [nixpkgs] @vcunat merged pull request #92805 → libevent: 2.1.11 -> 2.1.12 → https://git.io/JJm0n
<{^_^}> [nixpkgs] @vcunat merged pull request #92499 → libgcrypt: 1.8.5 -> 1.8.6 → https://git.io/JJLVt
<{^_^}> [nixpkgs] @vcunat merged pull request #92282 → curl: 7.71.0 -> 7.71.1 → https://git.io/JJkKH
<{^_^}> [nixpkgs] @vcunat merged pull request #92128 → wayland: documentation outputs → https://git.io/JJT0J
<{^_^}> [nixpkgs] @vcunat merged pull request #90731 → libdrm: 2.4.100 -> 2.4.102 → https://git.io/JfFUo
slack1256 has quit [Remote host closed the connection]
dermetfan has joined #nixos
<Extends> Hello, how can I replace a character with another with Nix ? I saw lib.replaceChars but idk how to use it
kapil_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
<{^_^}> [nixpkgs] @zowoq merged pull request #93391 → etcd_3_4: 3.4.9 -> 3.4.10 → https://git.io/JJnmR
<{^_^}> [nixpkgs] @zowoq pushed to master « etcd_3_4: 3.4.9 -> 3.4.10 »: https://git.io/JJnpS
kapil_ has joined #nixos
patagonicus has quit [Read error: Connection reset by peer]
<srhb> > builtins.replaceStrings [ "o" ] [ "a" ] foo
<{^_^}> "blablablabl"
<__monty__> Extends: lib.replaceChars is obsolote. Works exactly the same as builtins.replaceStrings.
<srhb> {^_^}: Liar.
<srhb> Extends: The above will yield "faa" :)
<__monty__> Extends: There's also stringsAsChars :: (String -> String) -> String -> String, which applies the function you pass to each character of the string in turn.
patagonicus has joined #nixos
<__monty__> *lib.stringsAsChars
<Extends> thanks everyone!
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
noudle has joined #nixos
dermetfan has quit [Ping timeout: 260 seconds]
alexherbo2 has quit [Ping timeout: 240 seconds]
xelxebar has quit [Remote host closed the connection]
xelxebar has joined #nixos
<sephii> I'm trying to tell nixops to generate a file if it doesn't exist, with the contents being the output of a command. I know this makes in non-deterministic, but the command generates a key that I can't put in the derivation. I found https://discourse.nixos.org/t/is-there-a-way-to-work-with-files-outside-nix-in-nixops/3220 to create files outside of /nix, which works well, but I can only give a fixed string as
<sephii> contents for the file. Is there a way to do this?
<srhb> sephii: The usual approach is to use tmpfiles, systemd units etc. to have a service on the machine do the imperative logic.
sangoma has quit [Ping timeout: 246 seconds]
<srhb> sephii: As an example, you can always create a systemd service that executes an arbitrary script. There may be better, less general solutions for your specific case though.
slack1256 has joined #nixos
sangoma has joined #nixos
slack1256 has quit [Remote host closed the connection]
<srhb> sephii: Yes, for instance.
<sephii> srhb: I'll try that, thanks!
<cmk_zzz> what is the best solution to 4add my own packages to nixos? overlays? my own channel? I want to be able to have them configured in configuration.nix
<bqv> overlays and/or inline in your configuration
<cmk_zzz> thanks, i'll give it a whirl
ericsagnes has joined #nixos
Philipp[m]5 has joined #nixos
ScottHDev has joined #nixos
delan has quit [Quit: ZNC - http://znc.in]
delan has joined #nixos
asheshambasta has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @primeos merged pull request #93415 → scons: 4.0.0 -> 4.0.1 → https://git.io/JJnWn
<{^_^}> [nixpkgs] @primeos pushed to staging « scons: 4.0.0 -> 4.0.1 (#93415) »: https://git.io/JJnj8
<{^_^}> [nixpkgs] @primeos merged pull request #93353 → gpgme: 1.13.1 -> 1.14.0 → https://git.io/JJZ1M
<{^_^}> [nixpkgs] @primeos pushed to staging « gpgme: 1.13.1 -> 1.14.0 (#93353) »: https://git.io/JJnjR
sangoma has quit [Ping timeout: 246 seconds]
xeijin has joined #nixos
syd has joined #nixos
<syd> How can I generate docs for a nixos module type? I have some modules that I want to show docs to my users for.
knupfer has quit [Ping timeout: 260 seconds]
sangoma has joined #nixos
<alienpirate5> pjt_014: After creating the folder and symlink manually, the rebuild successfully finished.
<alienpirate5> Jan Tojnar programs.dconf.packages is an empty array. programs.dconf.profiles is `{ gdm = «derivation /nix/store/ii0pvndrx25c9myhmq65rwnl0m32s77y-dconf-gdm-profile.drv»; }`
_ris has joined #nixos
<xeijin> hello, I have a question - I want to keep my NixOS config files in a folder structure like this: https://pastebin.com/raw/e86xYSkY
<xeijin> each `default.nix` imports the folders underneath until it gets to the module declarations
<syd> xeijin I think you can do this
<syd> you can definitely write the imports manually
orivej has quit [Ping timeout: 265 seconds]
<syd> but there's also builtins.readDir that you can use
orivej_ has joined #nixos
<xeijin> then in `hosts/cloud-vps/default.nix` I want to be able to enable a 'role' (or even a part of it) by doing something like `roles.remote.enable = true;` or `roles.remote.ssh.enable = true;`
<syd> Right, you have to write some of your own modules then :)
<xeijin> syd yes indeed, which is what the `ssh.nix` would be
<srhb> xeijin: Generally, not having your most host specific file be the top-level one that is rebuild by the NIxOS machinery soon leads you to want conditional imports, which is not a thing. I recommend against that.
<srhb> s/rebuild/rebuilt
<syd> srhb yes that makes sense. I still use a top-level file per machine, but they all import the same `main` and set flags in a top-level module like `this machine has speakers` and `this machine is a build cache` etc.
<srhb> Yeah, that's fine.
<xeijin> srhb not sure I follow, wouldnt I just point nixos to the specific host file for a rebuild?
<srhb> xeijin: Oh, sure, you can absolutely do that. Then that's the "top level file"
<srhb> The directory structure itself is of no consequence.
<srhb> It's just my experience that the structure that you're showing tends to be one step short of "now I want to conditionally import a module" -- which you can't -- so it was just a word of warning :)
domogled has joined #nixos
<xeijin> got it srhb, and sorry, my inexperience showing here but can still conditionally enable a module right?
<srhb> Conditionally enable is fine, yes.
<xeijin> syd do you have an example config up on github that I could take a look at?
<srhb> It's specifically imports you can't make conditional.
<syd> That's right. You can still have `enable` flags but evaluation will take longer
<syd> xeijin no my config is not public, sorry
<syd> Client NDAs and such :)
<xeijin> thanks both - yeah longer evaluation is fine with me
<xeijin> haha ofc I'm having some trouble with my own config which ironically is also private hence these conceptual questions
<xeijin> so the bit I'm confused about that the manual hasn't cleared up for me is where and how I need to specify the option declarations that will let me do `roles.remote.enable = true;` and `roles.remote.ssh.enable = true;`
<syd> srhb I have a few of my own modules as well
<srhb> xeijin: But for quick one-offs, you can skip the option definitions and use the top level `config.lib` option, where you can set arbitrary values.
<syd> how do I generate the docs for them?
<srhb> syd: Generally you just build the NixOS manual and they'll get included
<syd> nono I've got public modules in a public project that's not part of nixos
<syd> one os-level module and one home-manager-level module
<srhb> There's no standalone mechanism for generating those that I know of, but I may be mistaken.
<syd> oh really? :(
<srhb> syd: Maybe take a look at how NixOS/home-manager generates their manuals and see if there's something reasonably detached to plug into.
<syd> I had a look but it doesn't look to be public
<syd> oh wait I looked on github not gitlab
<syd> this may still be possible
<srhb> xeijin: That is, one module can set `lib.remote = true` and then in another module, you can check the value of `config.lib.remote`
<srhb> xeijin: And act on that :)
<srhb> syd: Hmm, did home-manager move?
AluisioASG has quit [Ping timeout: 256 seconds]
<syd> not sure, what do you mean?
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
<srhb> afaik it lives on github.
<syd> oh yes but the doc generator is on gitlab, see the link I sohwed
<srhb> Ah, right, understood.
<srhb> syd: Yeah, looks like nmd will happilly generate standalone docs for you.
orivej has joined #nixos
<syd> that's what I'll try next!
<xeijin> srhb where would be best create the option declaration for each layer? i.e. if I have a `mkOption` declaration for `enable` in `roles/remote/default.nix`, and then the same in `roles/remote/ssh.nix` would that be enough for me to do `roles.remote.enable = true;` AND `roles.remote.ssh.enable = true;`
<xeijin> I did read that part of the manual, but having trouble getting my head round this with the nested folder structure I've created
<srhb> xeijin: You should be able to merge those two options sets just fine, yes.
<xeijin> right, and I probably need to brush up on my nix expressions, but the merge how and at which 'layer' would that happen?
<srhb> As long as the modules are imported and the option definitions don't conflict, the module system takes care of merging for you (just like you can set config options in various modules, it's the same system)
leotaku has quit [Ping timeout: 256 seconds]
leotaku_ has joined #nixos
<xeijin> thanks that's helpful, one last question
orivej has quit [Quit: No Ping reply in 180 seconds.]
<xeijin> would I also need an option declaration for the root `roles` option? I want to avoid having a `roles.enable` declaration as that wouldnt make much sense, will nix just infer this when it sees the declarations at the lower levels?
orivej has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed to staging « nss_3_44: bring back this older branch for firefox-esr »: https://git.io/JJcep
asymptotically has joined #nixos
sangoma has quit [Read error: Connection reset by peer]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
<srhb> xeijin: Pretend each entry in the modules list is a separate file
<srhb> xeijin: The entire file will evaluate to the string "foobar"
<srhb> xeijin: Notice that I have not mentioned `roles` itself except as as a parent to `a` and `b`
<srhb> xeijin: Does that help?
<srhb> xeijin: You can use this file as a quick framework for testing out your assumptions about the module system, just add more modules to the list as you go.
zfnmxt has quit [Quit: Bye!]
zfnmxt has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #nixos
<sphalerite> huh, since when can the zfs utilities only be run as root?
<srhb> sphalerite: Since never! :)
<srhb> (As in, doesn't seem that way to me)
<{^_^}> [nixpkgs] @vcunat pushed 356 commits to staging-next: https://git.io/JJcvx
<{^_^}> [nixpkgs] @vcunat opened pull request #93465 → Staging next → https://git.io/JJcfq
nikita` has quit [Quit: leaving]
<sphalerite> srhb: are you on a recent nixos-unstable?
sangoma has joined #nixos
<{^_^}> [nixpkgs] @geistesk closed pull request #71257 → pyscroll: init at 2.19.2 → https://git.io/Je48r
Extends has quit [Ping timeout: 258 seconds]
rajivr has joined #nixos
<srhb> sphalerite: a5cc7d3 :)
<{^_^}> [nixpkgs] @geistesk opened pull request #93466 → golangci-lint: 1.28.1 -> 1.28.3 → https://git.io/JJcJf
<sphalerite> huh, that's more recent than me.
<sphalerite> crw------- 1 root root 10, 249 Jun 29 13:10 /dev/zfs
<sphalerite> it wasn't always this way
<srhb> crw-rw-rw- 1 root root
<srhb> That's weird to me too.. w for other?
<{^_^}> [mobile-nixos] @s1ng0c closed pull request #185 → Upgrade to kernel 5.6 → https://git.io/JJGFY
<sphalerite> it makes sense for it to be permissive, since the kernel module does its own permission checks
<sphalerite> that way zfs allow and stuff works
<srhb> Right, okay.
nonickname has quit [Ping timeout: 256 seconds]
nonickname has joined #nixos
buffet has joined #nixos
joey_tribbiianii has joined #nixos
<{^_^}> [nixpkgs] @geistesk opened pull request #93467 → watson: 1.9.0 -> 1.10.0 → https://git.io/JJcJa
<colemickens> when I nix-tree my system's closure, I see "systemd-boot-builder.py". Shouldn't that only be used at build time? It is shown as a top-level thing, but I suspect it's pulled in by something like nixos-rebuild? Can I configure the system to exclude those scripts?
waleee-cl has joined #nixos
<xeijin> srhb thank you very much, the gist is really helpful
noudle has quit []
hoijui has joined #nixos
ixxie has quit [Remote host closed the connection]
orivej_ has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
Extends has joined #nixos
sangoma has quit [Ping timeout: 258 seconds]
bkv has joined #nixos
bqv has quit [Ping timeout: 260 seconds]
bkv is now known as bqv
syd has quit [Quit: Connection closed]
<manveru> colemickens: i don't seem to have that, but it seems to be a dependency of systemd-boot which i don't use
orivej_ has joined #nixos
<srhb> xeijin: Great :)
orivej has quit [Ping timeout: 240 seconds]
morr has quit [Quit: WeeChat 2.7.1]
<srhb> colemickens: Not without losing the ability to activate the boot config, no.
<colemickens> I'm okay with that though
<srhb> colemickens: Your intuition is correct, each nixos system has a bin/switch-to-configuration which has the (necessary) reference to systemd-boot-builder
<srhb> colemickens: In that case, you'd have to blank out that reference after activating the config.
<srhb> It's not very pluggable though
davidv7 has quit [Remote host closed the connection]
<srhb> colemickens: (Out of curiosity, why do you want to do this?)
<colemickens> okay, I'm using make-disk-image.sh and am already having to patch around a bug anyway so I don't mind digging in.
bkv has joined #nixos
davidv7 has joined #nixos
<srhb> Ah, ok.
<colemickens> srhb: it accounts for nearly 1/5 of my VM image.
<{^_^}> [nixpkgs] @erictapen opened pull request #93469 → haskellPackages.hcoord: fix build → https://git.io/JJcUD
<{^_^}> [nix] @edolstra merged pull request #3834 → Add newline to profile sourcing line #3393 → https://git.io/JJn0n
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/JJcUy
<srhb> colemickens: You'll need to alter the top level activation scripts
<srhb> colemickens: See modules/system/activation/top-level.nix and try to identify a place where you can plug it.
<colemickens> Okay, will do. Thank you very much for the pointers :)
morr has joined #nixos
bqv has quit [Ping timeout: 260 seconds]
bkv is now known as bqv
<typetetris> When I accidentally clicked this chasing arrows beside an approved review, so the review gets requested again, can I undo that somehow?
<srhb> colemickens: (btw, an mbr boot loader might trivially remove that dep for you)
<srhb> typetetris: I don't think so.
<colemickens> grub was big too, about the same size iirc
<srhb> colemickens: Aw.
<colemickens> lilo briefly popped in my head?
<srhb> colemickens: Could you disable all boot loaders? Do you need them? :D
<colemickens> Hm! Sadly I doubt it. It's azure/hyperv so I doubt it supports efistub.
<colemickens> Or is there another way you're thinking of maybe?
<srhb> No, not really. I'm not sure getting rid of this script is easy. installBootloader is guarded (for good reason) and it would have to happen through some sideband...
<srhb> Like, you can make it a no-op, but then it's up to you to make everything bootable
<colemickens> srhb: well, I don't want to get ahead of myself but my last riir went well...
<colemickens> srhb: what if someone rewrote nixos-rebuild and systemd-boot-builder.py in rust?
<srhb> haha
<srhb> You don't need to rewrite nixos-rebuild at all.
<srhb> The reference is in switch-to-configuration, and is pluggable via installBootLoader
<srhb> (It is supposed to be a script that takes a nixos closure and make it bootable)
<srhb> as in, `make-bootable (/nix/store/some-nixos-system)`
<srhb> colemickens: installBootLoader is substituted into switch-to-configuration.pl at build time.
<colemickens> Yeah I see it
<srhb> ok :)
<colemickens> I had noticed it when I was eyeballing these for the rewrite. systemd-boot-builder does similar build time interpolations
<colemickens> I hadn't thought about tyring to re-use this point though
<srhb> I doubt there's much to win from eliminating further up at least.
<colemickens> however it's also used inside make-disk-image, so I think I see the trick
<srhb> nixos-rebuild is just a shell script, switch-to-configuration is just a perl script..
* colemickens nods
<colemickens> but,
<colemickens> perl5.30.3-Net-DBus-1.2.0 107.81 MiB (477.82 KiB)
<colemickens> nix-tree shows me that with only the system closure as a parent
<srhb> Yeah, okay. But the question is how much of perl you can reasonable eliminate from just removing that.
<srhb> Ah ok
<{^_^}> [nixpkgs] @geistesk opened pull request #93470 → pytmx: 3.21.7 -> 3.22.0 → https://git.io/JJcTY
<srhb> Then maybe, yes. :)
<colemickens> so I'm thinking perl+python might be sorta dead weight
<srhb> Could be. Maybe count references to it.
<colemickens> 200/600 is a decent enough win that I'm willing to spend a day or two on it :)
<srhb> (as in, check the other way around)
<colemickens> I think that's what nix-tree is showing? "Immediate parents" ?
<eyJhb> Is it possible to wrap/overlay a package, without rebuilding it to add a directory to the store path?
<srhb> colemickens: Right, but more scripts might be pointing to it from that root. nix-store --query --referrers might make that clearer
<srhb> colemickens: Looks like you're probably right though :)
<colemickens> aha, I was just thinking about that, I didn't know I could query that
<srhb> eyJhb: Sure, just runCommand and copy/symlink with reckless abandon.
orivej_ has quit [Ping timeout: 260 seconds]
<eyJhb> srhb: No better way?
Extends has quit [Remote host closed the connection]
<srhb> eyJhb: I find it hard to make a value judgment about that. I think it's a pretty good way. :P
orivej has joined #nixos
<eyJhb> Would be nice with a easy-to-do wrapper, but I guess not :p
<srhb> To be honest I've missed a nix-level makeWrapper quite a few times, maybe I'm not the only one.
<srhb> But it does sort of encourage duplication at a bad level.
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<Yaniel> is it possible to somehow monitor specific changes in staging?
<Yaniel> like, following what keeps a mesa update from getting propagated to nixos-unstable
<eyJhb> srhb: yeah, maybe. But recompiling firefox, to add 10 bytes of text to something that is needed at runtime is no fun either
<eyJhb> :p
<srhb> Yaniel: Not trivially. But if you're talking about the recent build, it's only in staging yet iirc.
<srhb> eyJhb: Yeah, definitely wrapping with symlink or something for that.
isHavvy has joined #nixos
<Yaniel> yeah, I'm aware (just updated my channel)
<Yaniel> just wondering if I can track it somehow to see if it's waiting for something
qolen has joined #nixos
<srhb> Right right. It would be nice to track a commit,
<srhb> Well, we can manually check..
puffnfresh_ has joined #nixos
evhan` has joined #nixos
dongcarl9 has joined #nixos
mbrgm_ has joined #nixos
captn3m0- has joined #nixos
marble_visions_ has joined #nixos
Baughn_ has joined #nixos
andymandias_ has joined #nixos
rustybolt has joined #nixos
davidv7_ has joined #nixos
plp_ has joined #nixos
alexbakker_ has joined #nixos
benedikt93_ has joined #nixos
xqsl_ has joined #nixos
<rustybolt> Has someone succeeded in disabling username/password prompts from kwallet? I'm not a big fan of them
markus1199 has joined #nixos
betaboon_ has joined #nixos
signaryk_ has joined #nixos
aszlig_ has joined #nixos
dev4 has joined #nixos
__monty_1 has joined #nixos
kaptin_ has joined #nixos
dsg_ has joined #nixos
gthm_ has joined #nixos
jtobin_ has joined #nixos
sveitser1 has joined #nixos
orion_ has joined #nixos
arianvp_ has joined #nixos
AstroBadger_ has joined #nixos
<srhb> Yaniel: It's in staging-next now, so as soon as that's built and has few failures, it'll merge to master, fwiw. https://hydra.nixos.org/jobset/nixpkgs/staging-next
<srhb> Yaniel: Triggered just 1h ago
<srhb> Yaniel: Lots and lots of builds to go though :-)
corvid has joined #nixos
<Yaniel> yea
<Yaniel> and the last unstable update took almost 10h after passing the builds/tests too
davidv7 has quit [*.net *.split]
__monty__ has quit [*.net *.split]
orion has quit [*.net *.split]
Havvy has quit [*.net *.split]
mbrgm has quit [*.net *.split]
andymandias has quit [*.net *.split]
philr has quit [*.net *.split]
dongcarl has quit [*.net *.split]
markus1189 has quit [*.net *.split]
mzan has quit [*.net *.split]
jtobin has quit [*.net *.split]
plp has quit [*.net *.split]
captn3m0 has quit [*.net *.split]
rooke has quit [*.net *.split]
kaptin has quit [*.net *.split]
mla has quit [*.net *.split]
pinkieval has quit [*.net *.split]
kgz has quit [*.net *.split]
__red__ has quit [*.net *.split]
nisstyre has quit [*.net *.split]
catern has quit [*.net *.split]
dev3 has quit [*.net *.split]
signaryk has quit [*.net *.split]
dsg has quit [*.net *.split]
betaboon has quit [*.net *.split]
eeva has quit [*.net *.split]
puffnfresh has quit [*.net *.split]
dominikh has quit [*.net *.split]
Baughn has quit [*.net *.split]
AstroBadger has quit [*.net *.split]
aszlig has quit [*.net *.split]
xqsl has quit [*.net *.split]
arianvp has quit [*.net *.split]
benedikt93 has quit [*.net *.split]
radvendii has quit [*.net *.split]
sveitser has quit [*.net *.split]
alexbakker has quit [*.net *.split]
gthm has quit [*.net *.split]
evhan has quit [*.net *.split]
marble_visions has quit [*.net *.split]
dongcarl9 is now known as dongcarl
mbrgm_ is now known as mbrgm
Baughn_ is now known as Baughn
<srhb> Yaniel: Well, all packages must be (attempted) built before the bump happens.
__red__ has joined #nixos
alexbakker_ is now known as alexbakker
<{^_^}> [nixpkgs] @Lassulus opened pull request #93471 → [20.03] nixos-generators: 1.0.0 -> 1.1.0 → https://git.io/JJcTD
pinkieval has joined #nixos
philr has joined #nixos
nisstyre has joined #nixos
dominikh has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
kgz has joined #nixos
mzan has joined #nixos
Heirlung has quit [Ping timeout: 260 seconds]
<eyJhb> srhb: any idea how such a wrapper could be made? Considering just doing a find . -level 1 etc. and then just cp -R the files
<eyJhb> But I am unsure if that will work, because of the patching phase? Doen't it hardcode the final path into some bin?
<srhb> eyJhb: Depends on the application in question and what you're trying to replace
<srhb> eyJhb: Worst case you'll either have to patch the binary to replace a store path (yuck) or rebuild. Best case it's just working from the "root" of its store path. Experiment. :)
Rusty1 has joined #nixos
Heirlung has joined #nixos
catern has joined #nixos
<eyJhb> I really just hoped there was a one-size-fits-all wrapper that could be made
<eyJhb> But yes, I need to experiment with this
<eyJhb> Hoping for more hours in a day soo
<eyJhb> soon* those 24 hours a day is not enough
<srhb> eyJhb: Yeah, not, it's application specific, no one-size-fits-all. I'd definitely just try copying/symlinking everything over initially though, since that only takes like five minutes to try out.
<eyJhb> The easiest way to do that, would be to create a shell right? some shell.nix file?
<srhb> I always do it in a proper build because shells are fickle and leaky
<eyJhb> Slowly working my way up, to be better at Nix, but hell there is a long way
<srhb> so some nix file that overlays in the new package.
<eyJhb> Proper build?
<srhb> As in nix-build yourfile.nix
<eyJhb> Ahh
<eyJhb> I suck at both
<eyJhb> So either would work
<srhb> Well, no, only nix-build will work
<srhb> You don't get to create a store path from within a nix-shell.
<eyJhb> I need a bigger desk to play and code
<eyJhb> When you have a nix-shell default.nix, don't you have the ability to create new store paths?
<srhb> Unless you meant including your output package in the shell or something.
<srhb> It depends what you mean
<srhb> nix-shell '<nixpkgs>' -A hello will not allow you to realize the hello store patj
<srhb> nix-shell -p hello _will_ create a shell that includes that store path
<eyJhb> n
<srhb> So, yes, if you meant creating a shell that just has the final package in its env, sure, you can do that. The dependency will be built.
<eyJhb> I think I understand it somehow, I will rock a nix-build
<eyJhb> Also, do you have a nice way of testing modules? ;p
<srhb> sure, drop them in my nixpkgs and switch my system. ;)
bahamas has joined #nixos
<eyJhb> Damn
<srhb> Sometimes I go crazy and build a vm or something.
<eyJhb> The only other I heard where nix-build on a VM
<eyJhb> You craazy gal!
<srhb> Usually cba though. :P
<{^_^}> [nixpkgs] @dawidsowa opened pull request #93473 → play-with-mpv: init at 2020-05-18 → https://git.io/JJck2
<eyJhb> True
<eyJhb> But isn't there a easy way to do it?
<srhb> I think that's pretty easy.
<srhb> Sometimes I even write a nixos test for it, that's also great for testing modules.
bkv has joined #nixos
<srhb> You can always copy one of the simple ones.
<srhb> Or better, one that has similar prerequisites.
<eyJhb> Writing tests... Ohh you srhb :p - Still getting the hang of everything
<eyJhb> Had a recursive type yesterday, that needed to be able to nest infinitely
<eyJhb> Not.. Fun...
<srhb> eyJhb: Sure. But take a look at.. I don't know, nixos/tests/i3wm.nix or something one day, to see how simple it is :)
<eyJhb> Will do :D
bqv has quit [Ping timeout: 272 seconds]
bkv is now known as bqv
<eyJhb> Python?
<{^_^}> [nixpkgs] @tnias opened pull request #93474 → nixos/wireguard: fix typos and unify formatting → https://git.io/JJckS
<srhb> eyJhb: We have both a perl and a python framework, python is going away in 20.09 (maybe)
<srhb> er, perl is going away*
<eyJhb> You scared me
nadley has joined #nixos
<eyJhb> My perl is not good
<srhb> Mine either.
<eyJhb> I feel like most of this is, me saying I can't do anything. I can actually do Python and Go well! And PHP
<srhb> Practice makes... Capable :)
noudle has joined #nixos
<eyJhb> Practice in Nix makes infinite recursive functions
<eyJhb> At least for me
<srhb> Happens to everyone every once in a while :P
<eyJhb> I really wish, we had something like the options page just for functions, like the lib
<eyJhb> I really really miss something like this - https://sm.alliedmods.net/api/
<eyJhb> So nice to search and work with.
<eyJhb> Not sure how nice it would be to parse lib/, although. Isn't that how the manual works?
keving[m] has joined #nixos
simba2 has quit [Ping timeout: 272 seconds]
simba2 has joined #nixos
<{^_^}> [nixpkgs] @danieldk opened pull request #93475 → blas: do not report an empty line for every checked symbol → https://git.io/JJcIE
<srhb> eyJhb: Right, nixos options are enriched with metadata that has documentation in it
<srhb> eyJhb: lib could too, but no one has done that.
<srhb> (That I know of)
<eyJhb> But the manual has the lib documented? I think there are numerous places that have parsed them, it is just the presentation sadly :/
chimay has quit [Ping timeout: 240 seconds]
chimay has joined #nixos
<srhb> Ah, I forgot about that. I just use the source.
<{^_^}> [nixpkgs] @cdepillabout opened pull request #93476 → break-time: init at 0.1.1 → https://git.io/JJcI5
<benschza> Is there any way to disable tests for the propagated build inputs of "buildPythonPackage"? Using "doCheck" you can disable it for the actual package, but not the dependencies.
<eyJhb> srhb: need to repatch it
<eyJhb> cp and ln uses the other patch
<eyJhb> path*
<jlv> Will it break anything if I edit a NixOS managed file, like /etc/hosts ? There are times when I want to make a temporary change to hosts, and I want the change overridden when I next realize my NixOS configuration.
<{^_^}> [nixpkgs] @vcunat pushed commit from @ajs124 to staging-next « firefox: 77.0.1 -> 78.0.1 (security) »: https://git.io/JJcLJ
<bqv> jlv: it'll just get nuked when you next switch
<hazel[m]> you can't edit a Nix managed file they're read only
<hazel[m]> it will absolutely break things if you change perms to edit it
<jlv> hazel: That's what I mean't, temporarily changing permissions to write.
<jlv> bqv: that sounds like what I want.
<clever> jlv: thats worse
<clever> jlv: you want to delete the symlink at /etc/hosts, and replace it with a normal file, with the contents you want (which can be a copy of the old one)
<hazel[m]> i usually add lines to my config and rebuild
<clever> changing the permissions will break things in a worse way, it wont always be able to undo it
<hazel[m]> and then delete the lines and rebuild again
<bqv> jlv: to be clear, i was imagining what clever said, obviously editing stuff in the store is a bad idea (though not impossible)
<hazel[m]> the sha there is base16 and the sha that nix uses is base32 iirc
<jlv> clever: ya, I wouldn't change things in the store itself.
<TheSirC[m]> hazel: Ok thanks !
<hazel[m]> `cp /etc/hosts ~/tmp; rm /etc/hosts; mv ~/tmp /etc/hosts`
<hazel[m]> and then edit
<hazel[m]> the host file is still in the nix store
<hazel[m]> make sure you're only removing the symlink and not the file in the store though
asymptotically has quit [Quit: Leaving]
<bqv> This assumes ~/tmp does not already exist :p I have that as a directory
<clever> hazel[m]: my trick is to just `cd /etc/ ; cat hosts > hosts.temp ; rm hosts ; mv hosts.temp hosts`
<bqv> Essentially the same thing
<bqv> cp dereferences by default
<hazel[m]> yeah that works
<TheSirC[m]> Is there any procedure I did not find to update/reinstall my video drivers under Xorg on NixOS ?
jjakob has quit [Ping timeout: 272 seconds]
<clever> TheSirC[m]: they will update automatically when you update the channel and nixos-rebuild
<o1lo01ol1o> I've got postgresql_12 in my system packages but pg_restore shows it's using 10.4. What's the right way to use pg_restore 12?
<clever> o1lo01ol1o: when you do `type pg_restore`, and then run realpath on that path, what does it output?
<TheSirC[m]> clever: Interesting because I am facing a problem I can not diagnose on my GPU... and I did that and did not solve it
<o1lo01ol1o> clever: derp. It was pinned to version 10 in home manager.
<o1lo01ol1o> cleve++
<o1lo01ol1o> clever++
<{^_^}> clever's karma got increased to 477
<clever> TheSirC[m]: are you on a version of nixpkgs that includes the updates you want? check `nix-instantiate --find-file nixpkgs`
<clever> o1lo01ol1o: there will be a second problem after you fix that
<clever> o1lo01ol1o: lines 257 and 11
<clever> o1lo01ol1o: the nixos service will also install its own copy, that matches the daemon
<o1lo01ol1o> clever: hm, seems to be ok as I've got postgres configured as a service following the NixOS wiki. pg_restore of my backup data seems to be working now anyway . . .
<Jake[m]> Is there a good way to run phoronix test suite benchmarks on nixos? I can install the `phoronix-test-suite` tool, but then there other dependencies and even when I think I've installed them, it failed with an error like `gcc: -isystem: no such file`.
stites[m] has joined #nixos
<infinisil> ,libraries Jake[m]
<{^_^}> Jake[m]: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<infinisil> Very likely this is the problem
jjakob has joined #nixos
<Jake[m]> I didn't install libraries through "nix-env" I think, I made a "shell.nix" with "phoronix-test-suite" and other dependencies and ran "nix develop -f shell.nix"
<clever> Jake[m]: what is the full command that it ran, when having that error?
<infinisil> I see
sghir_med[m] has joined #nixos
__monty_1 is now known as __monty__
rustybolt has quit [Remote host closed the connection]
aszlig_ is now known as aszlig
<rnhmjoj> what is the best way to signal a nixos option is mandatory? i mean, better that the "underfined variable" you see by default
nikita` has joined #nixos
<infinisil> You mean the "option was used but not defined"?
<clever> rnhmjoj: just use it somewhere, and dont give it a default
<infinisil> clever: That's exactly what I think they're trying to avoid, this gives the error message I mentioned
<infinisil> You can use an assertion that checks `options.foo.isDefined` instead, but that often doesn't work due to things being evaluated before the assertions
<rnhmjoj> clever: that's what i'm doing now and i get "error: undefined variable 'musicFolder'" when not defined
<clever> rnhmjoj: undefined variable means you have an error in the nix, not an undefined option
<infinisil> ^
<rnhmjoj> uuh, right. made a typo
<rnhmjoj> anyway, an assertion is a good idea. thanks
Ariakenom has quit [Quit: WeeChat 2.7.1]
<{^_^}> [nixpkgs] @ryantm merged pull request #92755 → bsequencer: 1.4.2 -> 1.6.0 → https://git.io/JJq5f
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JJcm4
chimay has quit [Ping timeout: 260 seconds]
meh` has joined #nixos
<buffet> hey, im considering using one big config across multiple nixos machines (to reuse configurations etc). atm im thinking of making the configuration in modules, and then enabling those on a per-machine basis. is there any nice way to give nixos-rebuild a parameter of some sort that i can access from inside the config?
<buffet> like nixos-rebuild switch --machine=whatever
chimay has joined #nixos
eeva has joined #nixos
jumper has joined #nixos
<cab404[m]> buffet: nixos-rebuild -I machine=whatever switch
<cab404[m]> but I would've split it into multiple modules and imported them in machine specific configs
<buffet> im thinking to have machines/{desktop1,desktop2,server}/default.nix
<buffet> the alternative wouldve been to symlink that to machines/current or something, but im not really a fan of that
<buffet> thank you
Rusty1 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
hoijui has quit [Ping timeout: 260 seconds]
asheshambasta has joined #nixos
<hexa-> hm, how can I access the source directory during checkPhase?
matthewcroughan has quit [Quit: Connection closed]
alp has joined #nixos
inkbottle has quit [Quit: Konversation terminated!]
<clever> hexa-: the unpackPhase unpacks it to . for you, so its just .
<hexa-> huh ok
<hexa-> it's a python package, I'm executing ./uranium test
<hexa-> and I get no such file or dir
<hexa-> ah well
<clever> try throwing a `pwd ; ls -ltrh` into the checkPhase, what does it show?
<hexa-> maybe it's just not part of the pip package <.<
asheshambasta has quit [Ping timeout: 272 seconds]
<hexa-> thanks, it's probably that ^
zebrag has joined #nixos
<hexa-> pyipp takes the cake
<hexa-> the setup.py wants to open("requirements.txt"), which is not part of the pypi package
alp has quit [Ping timeout: 272 seconds]
luna has joined #nixos
<{^_^}> [nixpkgs] @Sohalt opened pull request #93477 → moodle: fix typo → https://git.io/JJcYE
rardiol has joined #nixos
tinhead has joined #nixos
<luna> What is the proper proceedure for changing a package's name?
tinhead is now known as tinhead77
<tinhead77> hello
<tinhead77> any avr experts around?
<tinhead77> can't figure out how to get avr-gcc
<clever> tinhead77: one minute
<clever> you can either run nix-shell on that, or nix-build if you have a Makefile with a default target that produces an avr.bin
<tinhead77> ah I see ... that's great for compiling a certain project
<tinhead77> I suppose I could run tinygo in such a shell
<tinhead77> my ... yeah unusual use case
kl3 has joined #nixos
nadley_ has joined #nixos
nadley has quit [Read error: Connection reset by peer]
<srhb> luna: As in, politically? Usually either just start a discussion on the PR that does the change.
<srhb> ... I was going to write "or open an issue first to discuss it" -- but decided against it. And then I forgot to remove the "either". :D
orivej has joined #nixos
<luna> Not politically, srhb. I just found this PR https://github.com/NixOS/nixpkgs/pull/93276 and am not sure if it was the best place to put a rename of protonvpn-cli-ng
<{^_^}> #93276 (by offlinehacker, 3 days ago, open): protonvpn-linux-gui: init at 2.1.1
<luna> I understand why he did it, just.. Kind of thought it should be in its own PR.
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
<{^_^}> [nixpkgs] @teto merged pull request #93449 → vim-plugins: add 13 plugins → https://git.io/JJnSI
<{^_^}> [nixpkgs] @teto pushed 17 commits to master: https://git.io/JJcOT
<kl3> hi, since patch submission via mail/discourse is still broken and I don't use github, here's a little patch for nftables: would someone be so kind and take a look or even merge it? http://ix.io/2s4U
turlando has joined #nixos
j0hax[m] has joined #nixos
<srhb> luna: At least it's clearly split in commits, so the reviewer will be able to make that judgment easily.
<srhb> luna: THe description is also pretty clear. I don't think it's a problem. :)
<{^_^}> [nixpkgs] @kalbasit merged pull request #93466 → golangci-lint: 1.28.1 -> 1.28.3 → https://git.io/JJcJf
<{^_^}> [nixpkgs] @kalbasit pushed commit from @geistesk to master « golangci-lint: 1.28.1 -> 1.28.3 (#93466) »: https://git.io/JJcOn
<luna> srhb: makes sense. thanks.
stites has quit [Read error: Connection reset by peer]
stites has joined #nixos
codygman___ has joined #nixos
<tinhead77> clever thanks I think you put me on the right track
qolen has quit [Quit: ZNC 1.7.5 - https://znc.in]
stites has quit [Ping timeout: 240 seconds]
radvendii has joined #nixos
asymptotically has joined #nixos
bahamas has quit [Ping timeout: 256 seconds]
user_0x58 has joined #nixos
bahamas has joined #nixos
bahamas has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @06kellyjac opened pull request #93479 → nixos/containers: correct isNormaUser to isNormalUser → https://git.io/JJc3C
taikatutto has joined #nixos
taikatutto has quit [Remote host closed the connection]
<numkem> the latest change to mark gst-plugins-base as broken made my system not build anymore
taikatutto has joined #nixos
<numkem> even setting nixpkgs.config.allowBroken = true; doesn't make a difference
<clever> numkem: are you building it with nix-build, nix-env, or nixos-rebuild?
<numkem> clever: nixos-rebuild
<clever> are you importing a 2nd nixpkgs?
<gchristensen> does it not make a difference in that it still doesn't build, or it still produces the "it is broken" error?
<numkem> it says it won't build because it's marked as broken
<numkem> I think I might have that problem because I'm importing it again through niv for an overlay
<gchristensen> sounds likely
<gchristensen> that said, marking it as not broken won't help you: it won't build
<clever> numkem: when you re-import nixpkgs, it ignores nixpkgs.config, and instead obeys the config.nix in $HOME
<{^_^}> #39975 (by jtojnar, 2 years ago, open): Remove old GStreamer
<clever> numkem: you want to either `import sources.nixpkgs { config = config.nixpkgs.config; }` to make it respect the option, ot you can `{ config.allowBroken = true; }` to have a 2nd copy of config
<numkem> clever: setting that didn't help, but I've fixed it by changing my overlay import
<{^_^}> [nixpkgs] @PanAeon opened pull request #93480 → add noisetorch → https://git.io/JJcsk
<numkem> is there a way to know which package needs it for my system?
<numkem> clever: thanks! clever++
<{^_^}> clever's karma got increased to 478
<{^_^}> [nixpkgs] @marsam opened pull request #93481 → tflint: 0.17.0 -> 0.18.0 → https://git.io/JJcs3
MarcWeber has joined #nixos
tinhead77 has quit [Remote host closed the connection]
<MarcWeber> https://dpaste.com/9WUF4H6CM Does chromedriver work for you? I get 'tab crashed'
knupfer has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #93222 → flashplayer: 32.0.0.387 -> 32.0.0.403 → https://git.io/JJGzF
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JJcsg
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #nixos
nil is now known as but
<{^_^}> [nixpkgs] @marsam pushed commit from @taku0 to release-20.03 « flashplayer: 32.0.0.387 -> 32.0.0.403 »: https://git.io/JJcs6
<numkem> I'm not totally sure but it seems like it's vivaldi-ffmpeg-codecs that is causing the problem for me (related to gst-plugins-base being broken)
nckx has quit [Quit: Updating my Guix System — https://guix.gnu.org]
nckx has joined #nixos
chimay has quit [Ping timeout: 258 seconds]
but is now known as nil
jumper149 has joined #nixos
<jumper149> Hi, where is pkgs.callCabal2nix defined? I can't seem to find it in the nixpkgs repo.
<Taneb> jumper149: it's in pkgs/development/haskell-modules/make-package-set.nix
<Taneb> There's some indirection involved
turlando has quit [Ping timeout: 256 seconds]
nckx has quit [Quit: Updating my Guix System — https://guix.gnu.org]
nckx has joined #nixos
orivej_ has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
bahamas has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #93462 → jo: 1.3 -> 1.4 → https://git.io/JJnAF
jjakob has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JJcsN
jjakob has joined #nixos
bahamas has quit [Ping timeout: 256 seconds]
<numkem> it turned out to be vivaldi itself, the fix is pretty simple, just need to override gst-plugins-base with gst_all_1.gst-plugins-base
<{^_^}> [nixpkgs] @marsam merged pull request #93386 → python37Packages.limnoria: 2020.04.11 -> 2020.07.01 → https://git.io/JJnTB
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JJcGt
<jumper149> Taneb++
<{^_^}> Taneb's karma got increased to 17
<{^_^}> [nixpkgs] @marsam merged pull request #93481 → tflint: 0.17.0 -> 0.18.0 → https://git.io/JJcs3
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JJcGO
orion_ has quit [Quit: ""]
cosimone has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
<MarcWeber> jumper149: ./pkgs/development/haskell-modules/make-package-set.nix|217| callCabal2nix = name: src: args: self.callCabal2nixWithOptions name src "" args;
<jumper149> MarcWeber: Ty I got it already
o1lo01ol_ has joined #nixos
o1lo01ol1o has quit [Read error: Connection reset by peer]
<MarcWeber> jumper149 Can you do me a favour and just run the 3 command see dpaste above ?
<MarcWeber> Cause it fails for me and want to understand whether it's my system or whether chromedriver is generally broken on nixos for whatever reason.
noudle has quit []
<jumper149> MarcWeber: Was it before I joined?
<MarcWeber> Was 3min before you joined. It should just provide shell with chromium and python. Then when running python you can import selenium and as it start a chrome window. If that works test is complete. Because this already fails on my machine.
pamplemousse has joined #nixos
turlando has joined #nixos
<jumper149> I am currently only logged in via ssh on my machine with nix, so I guess it wouldnt be of much help?
antifuchs has joined #nixos
<eyJhb> All the update scripts we have in nixpkgs, are the easiest to setup Python? Wondering if I could make one in go
<eyJhb> But unsure if that is "good"
fendor has joined #nixos
<{^_^}> [nixpkgs] @Lassulus merged pull request #93477 → moodle: fix typo → https://git.io/JJcYE
<{^_^}> [nixpkgs] @Lassulus pushed commit from @Sohalt to master « moodle: fix typo »: https://git.io/JJcGx
<MarcWeber> eyJhb You either use pythonXPackages.xxx eg with -nix-shell or you can try pypi2nix tool. depending on depnedencies one or the other might be easier.
<eyJhb> What about if I wanted to do something Go like?
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/27f514ac0d2 (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @vbgl merged pull request #92683 → coqPackages.math-classes: 8.9.1 → 8.11.0 → https://git.io/JJqJt
<{^_^}> [nixpkgs] @vbgl pushed to master « coqPackages.math-classes: 8.9.1 → 8.11.0 »: https://git.io/JJcZe
orivej has quit [Quit: No Ping reply in 180 seconds.]
<MarcWeber> |In the end 'good is' what works.
meh` has quit [Ping timeout: 265 seconds]
orivej has joined #nixos
<MarcWeber> eyJhb: Typciall the process is 1) get dependency tree of packages youw want to installe 2) create nix expressions from them 3) merge C dependencies (eg mysql library) -> hope it compiles and works
<MarcWeber> You may want to find out who the go maintaners are and also ask them. I don' tknow whether anybody has been working on such ..
<eyJhb> Think I will just work my Python fo :p
<MarcWeber> And if you're unlucky some packgaes require additoinal build depnedencies such as parser generators etc.
<MarcWeber> Probably Go has it's own pcakage manager which just works ? Depends on your goals.
bahamas has joined #nixos
chimay has joined #nixos
<eyJhb> Just to be clear, it is scripts like this - https://github.com/NixOS/nixpkgs/blob/master/pkgs/misc/vim-plugins/update.py in go MarcWeber
bahamas has quit [Ping timeout: 258 seconds]
philr has quit [Ping timeout: 258 seconds]
bahamas has joined #nixos
<MarcWeber> eyJhb: Just to be clear: You might hit issues wehre project A requires C-1.0 ubt B requires C-2.0 .. THus how to package both ?
<MarcWeber> That's why tools like pypi2nix create different sets of dependencies for each target.
<MarcWeber> In the Vim case .. well .. it's hopend that it just works mixing latest versions to my knowledge (didn't follow it for some time).
<MarcWeber> About update scripts -> if this chat doesn't help you try the discord messaging app or the mailinglist if it still exists or checkout nixpkgs history to see what tools are still in use. There have been multiple implementatnios/propsolas over time> don't know hat is current.
<eyJhb> Just wanted to ensure, we were not speaking past each other. :)
<MarcWeber> So what you're looking for (put all libraries into a huge .nix file and hope it works) is an approximation which will work for very well maintaned current packages.. But maybe not for everything you find on Github using whatever strange combinaiton of versions.
<eyJhb> But I would imagine, that then it would require a shell.nix, where one can fire off update, or something like that
<eyJhb> When we talk about pypi2nix
<MarcWeber> I haves something for ruby like this: Try to create an env for packages A,B,C and use latest versions and add dependencies.
<MarcWeber> The result is a 'build env from sources' nix code which worked well enough for thone 20 ruby packages I need. but it's by no means perfect.
orivej has quit [Quit: No Ping reply in 180 seconds.]
<MarcWeber> The update command in fact is pypi2nix which then writes .nix files whith versions from pip and urls and hashes of those packages.
<MarcWeber> with some recursive magic to allow overwriting stuff easily.
orivej has joined #nixos
pamplemousse has quit [Ping timeout: 246 seconds]
acarrico has joined #nixos
<MarcWeber> eyJhb: Can you do me favour as well and test these 3 actions ? https://dpaste.com/9WUF4H6CM
<eyJhb> MarcWeber: works fine, why? :)
<eyJhb> Might have to get a hold of adamCS
<eyJhb> adisbladis:
<eyJhb> Sorry adamCS
<MarcWeber> Because Chrome crashes on my two laptops thus must be my env or seutp or whatever.
<eyJhb> It is just waiting for data on mine :p
lunatera has joined #nixos
ddellacosta has joined #nixos
luna has quit [Ping timeout: 258 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/949d39135bb (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
gustavderdrache has joined #nixos
Mateon2 has joined #nixos
codygman has quit [Ping timeout: 240 seconds]
codygman has joined #nixos
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
Mateon1 has quit [Ping timeout: 256 seconds]
Mateon2 is now known as Mateon1
turlando has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @marsam opened pull request #93482 → icu: 64 -> 67 → https://git.io/JJcnc
mallox has joined #nixos
codygman___ has quit [Ping timeout: 260 seconds]
knupfer has quit [Ping timeout: 260 seconds]
<duairc> I have a module which defines a couple of NixOS options, A and B, but certain values of A are only valid for a particular value of B. Where do I put a check for that?
<infinisil> duairc: Needs more context
knupfer has joined #nixos
<duairc> Like, I know I can override the check function for a type in a single option, but that function only takes the value of that option
<duairc> I need a check function that depends on the values of two different options
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<duairc> if !isNull A && B != "foo" then throw "You need to set B to "foo" if you want to use A" ... something like that
<duairc> I'm pretty sure I've seen other NixOS modules do those kinds of checks but I'm just not sure where that code needs to live
<{^_^}> [nixpkgs] @berbiche closed pull request #93456 → sgtk-menu: init at 1.4.1 → https://git.io/JJn7Z
<antifuchs> so I just started with NixOS, and it's feeling really great! My main confusion right now is around code organization - if I put package declarations in another file that I import, why do I suddenly get errors (even though they seem to pull in the same namespaces)?
<clever> duairc: nixos has a special "option" called assertions, it takes a list of { assertion = bool; message = "something"; }
<clever> duairc: the difference vs using the nix assert statement, is that nixos can report multiple errors at once
<duairc> clever: Aha, yes, that's probably it!
<srhb> antifuchs: That's difficult to answer without an example
<srhb> antifuchs: Where and how did it work, how did you move it?
<duairc> clever: Thanks, that's exactly what I'm looking for
<antifuchs> srhb: I imagine! I mostly am wondering if there's a tree of examples that I can refer to... or an understanding of how the snippets in nixpkg docs should be used in actual code
<srhb> antifuchs: nixpkgs is probably the greatest example repo there is. :)
<antifuchs> actually, I found out why I was getting errors - I hadn't pulled in the `config` namespace
<srhb> antifuchs: We tend to call that an attrset, or an argument (in the context of NixOS modules)
<antifuchs> ah!
<Graypup_> is there a way to diff the build inputs of two derivations so I can figure out why my derivation keeps needing rebuild?
<srhb> Graypup_: Yes, nix-diff is very useful for that.
<Graypup_> sweet, thanks!
<Graypup_> I'll go read up on it
<srhb> Graypup_: It's literally nix-diff path-to-drv1 path-to-drv2 :)
<{^_^}> [nixpkgs] @primeos merged pull request #92935 → intel-media-driver: 20.1.1 -> 20.2.0 → https://git.io/JJYo6
<{^_^}> [nixpkgs] @primeos pushed to master « intel-media-driver: 20.1.1 -> 20.2.0 (#92935) »: https://git.io/JJcnp
<antifuchs> (the modularity section in the nixos manual actually helped me out a lot right now - I have some reading to do, it seems!)
pamplemousse has joined #nixos
<Graypup_> ok I have something confusing happening to me in the nix repl: deps = {exportReferencesGraph = [ "foo" d.server ]; } then builtins.toJSON deps returns error: getting status of '[...]/myproject/nix/default.nix': no such file or directory, which is very curious to me because I don't have any imports that point at that
<Graypup_> jk I screwed up
<Graypup_> I should figure out what I screwed up lol
<Graypup_> hm I screwed up a callPackage pretty badly. interesting
syd has joined #nixos
<srhb> antifuchs: I pasted this gist earlier today, maybe it's useful for you too -- pretend each element in the module list is a different file (as in imports = [ ... ]) https://gist.github.com/srhb/9e458a08f0230d239b584e497da90cad
<{^_^}> [nixpkgs] @marsam merged pull request #68120 → elasticsearchPlugins: add icu & phonetic analysis → https://git.io/fjhNw
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JJccs
<antifuchs> srhb: ahh! that makes a lot more sense. I was treating these modules as way more of a freeform bit of data than it should be
<srhb> antifuchs: The section on writing nixos modules in the manual can be really helpful to understand, especially wrt. the "canonicalized" module.
<antifuchs> right! bookmarking that to refer back to it (:
<syd> Does anyone have a moment to help me with https://github.com/input-output-hk/haskell.nix/issues/771 please cc srhb
<{^_^}> input-output-hk/haskell.nix#771 (by NorfairKing, 12 minutes ago, open): Tests aren't being run unless I specifically build a test suite component.
<antifuchs> thanks a lot, I'm making much better progress now (:
<gchristensen> my dmesg is full of logs about a device called `sdi`. Is there a way to get information about `sdi`? it doesn't have a symlink in /dev/, and the only way I could know what disk it is would be if I wrote down all the serial numbers for thedisks I can see and used process of elimination
codygman___ has joined #nixos
<srhb> gchristensen: is it not in /sys/devices/virtual/block either?
<srhb> (or in /sys/block)
<gchristensen> it isn't in either
<srhb> meh.
<clever> gchristensen: can you pastebin the whole dmesg?
mariatsji has joined #nixos
<gchristensen> [709604.954486] sd 8:0:5161:0: [sdi] Read Capacity(16) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
<gchristensen> for example
<Raito_Bezarius> just to be sure, lsblk shows nothing right?
<Raito_Bezarius> (it uses /sys/block I suppose)
<gchristensen> lsblk doesn't, correct
<clever> gchristensen: maybe there is a msg after that one, saying sdi disconnected?
<mariatsji> can plain files be made into a nix derivation (in order to include them in dockerTools.buildImage { contents = .. } ?
<gchristensen> no: [709604.954820] sd 8:0:5161:0: [sdi] Attached SCSI disk
<clever> gchristensen: the error with read capacity, may prevent it from creating a device node
<Graypup_> hm, so I am overriding the `haskell.packages.ghc865.pango` with callPackage on a cabal2nix output file and I'm getting infinite recursion. My assumption is that what might be going on is that the cabal2nix output actually generates `pango` as one of the parameters to the derivation and perhaps it's grabbing itself rather than the native pango library but I don't know how callPackage works in the haskell infra too well
<gchristensen> clever: right, yeah
noudle has joined #nixos
<Graypup_> welp that is exactly it! it is called with inherit (pkgs) pango in the nixpkgs sourfce
<srhb> syd: Sorry, I'm not very familiar with the haskell.nix ecosystem, nor stack.
<Graypup_> which presumably I need todo
<{^_^}> [nixpkgs] @danieldk merged pull request #93356 → exim: 4.93 -> 4.94 → https://git.io/JJZ9k
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JJcco
<clever> Graypup_: yeah, self.callPackage ./something.nix { inherit (pkgs) pango; }
kreyren has quit [Remote host closed the connection]
kreyren has joined #nixos
<srhb> syd: Is the dependency-upgrade branch supposed to be buildable?
orivej_ has joined #nixos
orivej has quit [Read error: Connection reset by peer]
<syd> it could be that it should fail, but the nix build passes (see CI)
alp has joined #nixos
<syd> you should be able to run `nix-build` or at least `nix-build nix/pkgs.nix -A smosPackages`
<srhb> syd: Ah, I know what's wrong. My config is leaking in.
cole-h has joined #nixos
pamplemousse has quit [Ping timeout: 265 seconds]
dermetfan has joined #nixos
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
<gchristensen> clever: I did process of elimination and found it quickly enough (only 9 drives.) my system booted in 10 minutes less time after taking that drive out
ardumont has quit [Ping timeout: 256 seconds]
sangoma has joined #nixos
ixxie has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
ixxie has quit [Client Quit]
ardumont has joined #nixos
orivej has joined #nixos
inkbottle has joined #nixos
zebrag has quit [Ping timeout: 264 seconds]
ixxie has joined #nixos
xlei has joined #nixos
bahamas has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @danieldk merged pull request #93330 → kpt: init at v0.31.0 → https://git.io/JJZc5
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JJcC4
aabm[m] has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
<{^_^}> [nixpkgs] @danieldk merged pull request #93419 → convos: fix tests → https://git.io/JJn84
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JJcCg
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has joined #nixos
knupfer has quit [Client Quit]
Kritnich has quit [Quit: Bye bye.]
knupfer has joined #nixos
<{^_^}> [nixpkgs] @danieldk merged pull request #93479 → nixos/containers: correct isNormaUser to isNormalUser → https://git.io/JJc3C
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JJcC6
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
ui has joined #nixos
Kritnich has joined #nixos
stree has quit [Excess Flood]
<kl3> coredumpctl(1) has a `debug' command which executes gdb(1), but gdb is not installed by default alongside coredumpctl; would others find it reasonable to do so?
stree has joined #nixos
<ui> is it possible to customize the qemu command run from nixos-rebuild build-vm? i want to give it more memory and add a few devices
<kl3> just wanted to debug a crash on a system without network, so installing gdb was not an option
<clever> kl3: i tend to just run it under `nix-shell -p gdb`
<clever> ahh, but without network, i see
Kritnich has quit [Quit: Bye bye.]
ardumont_ has joined #nixos
<kl3> yeah, bad out-of-the-box experience
<clever> you would need to fix the network first, or smuggle a gdb in with `nix copy --from local?root=/mnt/` and a usb stick
Kritnich has joined #nixos
<evanjs> okay so I was looking at the hoogle module and... looks like it just start a local server, and can't be configured as such? 😒 I figure that would be a low-resistance change, just not entirely sure how I'd handle it
<evanjs> like, if it was set to 127.0.0.1, okay, cool, let them specify the IP and default to that
ardumont has quit [Ping timeout: 272 seconds]
<evanjs> but idk, probably overthinking things again 😃
<clever> evanjs: ive noticed a security issue with that hoogle server, its sharing all of the store, possibly the entire / dir
<evanjs> ughhhhh
<evanjs> so i should leave it alone, then?
<evanjs> until that is addressed, at least
<clever> evanjs: or find another more secure way to host the server
<evanjs> bah. I mean I was just planning on not having it port forwarded but yeah, that seems sort of iffy
<evanjs> like setting up an open HTTP port to each device at / ? 😕
<evanjs> and I doubt https + setting up letsencrypt will help much 😝
<evanjs> though, come to think of it, wow, the letsencrypt/acme/etc modules must make this stuff 1000x easier to manage.
<evanjs> If you plan on using the same cert and etc for multiple services, at least
<Graypup_> can you inherit in a let binding?
<Graypup_> reason I ask is I have a whole bunch of let a = super.haskell.lib.a; b = super.haskell.lib.b; etc that would look nicer if I did that
<evanjs> seems to work on my end
<evanjs> would "self: super:" help any in this case? random question without knowing any additional context lol
<Graypup_> huh it didn't work the other day
<Graypup_> but looks valid now
<evanjs> that's what usually happens lol
<evanjs> "I swear it wasn't working 5 mins ago"
ixxie has quit [Quit: Lost terminal]
<evanjs> clever: btw, where did you see hoogle exhibit that behavior?
<{^_^}> [nixpkgs] @ttuegel merged pull request #92883 → granatier: init at 19.12.3 → https://git.io/JJYk0
<{^_^}> [nixpkgs] @ttuegel pushed 5 commits to master: https://git.io/JJcW8
<clever> evanjs: look at the URL when using that hoogle server, youll see store paths in the addr bar
rajivr has quit [Quit: Connection closed for inactivity]
davidv7_ has quit [Quit: Konversation terminated!]
pamplemousse has joined #nixos
<evanjs> clever: looks like it's just passing a buildEnv result to `hoogle server`
davidv7 has joined #nixos
ixxie has joined #nixos
<evanjs> so if it showed something like "http://localhost:8471/file/ghc-8.8.3-doc/ghc/html/libraries/containers-0.6.2.1/Data-Set-Internal.html#v:insert" instead of "http://localhost:8471/file/<nix-store-ghc-8.8.3-doc>/share/doc/ghc/html/libraries/containers-0.6.2.1/Data-Set-Internal.html#v:insert", that would be better?
<evanjs> figuring this would have to be on the web server side if we don't want to totally disassociate the store paths/dependencies
<clever> evanjs: yeah
prsteele has joined #nixos
pamplemousse has quit [Ping timeout: 240 seconds]
AWizzArd has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @vcunat pushed to staging-next « thunderbird: fix build after nss update »: https://git.io/JJcWy
<prsteele> Hello everyone. I'm trying to get started with Nix, and I'm hitting a wall pretty quickly. I've installed `cabal` through Nix, along with `zlib`, but `cabal install hpack` complains about not being able to find `zlib.h` (which exists in ~/.nix-profile/include). The bug page https://github.com/NixOS/nixpkgs/issues/44144 suggests that `nix-shell`
<prsteele> could resolve this, but I don't know what incantation would be required. Any thoughts?
<{^_^}> #44144 (by kindaro, 1 year ago, open): zlib headers are not linked in ~/.nix-profile/include.
lunatera has quit [Ping timeout: 246 seconds]
<mudri> I haven't recompiled xmonad for a while (on NixOS), and now when I do I get this linker error. What can I do about it? https://www.irccloud.com/pastebin/jN5JwhCs/
<symphorien> prsteele: with nix, you don't install libraries
<{^_^}> [nixpkgs] @dywedir merged pull request #93245 → rssguard: 3.6.2 -> 3.7.0 → https://git.io/JJGXg
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/JJcW5
<evanjs> clever: dang. you were right
<symphorien> you prepare a nix-shell where the libraries are "magically available"
<evanjs> re the whole store at least it seems lol
<symphorien> so run `nix-shell -p zlib` and zlib.h should be found by the C compiler
<symphorien> cabal may have something specific in this regard, though, I don't know about haskell
<symphorien> ,libraries prsteele
<{^_^}> prsteele: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<clever> symphorien: xmonad itself, also includes wrappers, so `xmonad --reload` can recompile itself
<evanjs> not seeing anything outside of it so far, but still 😕
archH has joined #nixos
<prsteele> symphorien thanks, reading
<mudri> clever: I think there are separate questions from me and prsteele.
<archH> Anyone know how I can get fractional scaling in Gnome with Nvidia?
<archH> display scaling
<clever> mudri: ah, 2 haskell questions at once!
<tpw_rules> i had bad nouveau drivers do that for me once :D
<symphorien> prsteele: for easy cases `nix-shell -p pkg-config lib1 lib2 lib3` should work
<evanjs> clever: nvm... was forgetting the file part...
<evanjs> dang
<mudri> But yes, it's nice to have confirmation about how xmonad is packaged.
<evanjs> that's... pretty severe
nadley_ has quit [Quit: No Ping reply in 180 seconds.]
<clever> mudri: those linker errors look weird, like something is out of date
<prsteele> Presumably this approach will work, and if not I have some reading that should help. Assuming it does... are there any suggested idioms for getting this to work nicely? As an example, is there an idiomatic way for someone cloning my repo to know what commands to run to get `hpack` installed? Or should I just say "run this shell script" which
<prsteele> invokes `nix-shell` and then runs the necessary commands?
kapil_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
<prsteele> I suppose one answer is "make a derivation for `hpack`" so you can avoid needing to compile it with cabal...
nadley has joined #nixos
archh75 has joined #nixos
kapil_ has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to master: https://git.io/JJclk
<symphorien> prsteele: you can create a `shell.nix` at the root of the repo
<prsteele> Broader question: is it generally acceptable to shove something in ~/.nix-profile/bin ? (In this case, I need to specify where `cabal install hpack` generates an executable. Ordinarily I'd just say something like ~/.local/bin, but I'm trying to adopt Nix idioms)
archH has quit [Ping timeout: 265 seconds]
<prsteele> symphorien thanks
<symphorien> then people only have to run `nix-shell`, this opens a shell with all the libs you requested
<symphorien> prsteele: about putting something in ~/.nix-profile/bin: it's read only, so you can't
<{^_^}> [nixpkgs] @vcunat merged pull request #92783 → gperftools: 2.7 -> 2.8 → https://git.io/JJmtD
<prsteele> so just shove it elsewhere, and remember that I need the current Nix env active to make the executable work?
ui has quit [Quit: Connection closed]
<symphorien> executables built inside nix-shell will eventually break when you run nix-collect-garbage
hoijui has joined #nixos
<symphorien> to have something long term, you need to package your program properly with nix and build it manually with nix-build or with something more "integrated" like NixOS or home-manager
<Graypup_> I am missing something trivial I am sure, but how can I get the derivation path for a given nix store path?
<symphorien> nixpkgs has a pretty advanced haskell packaging infra, so I can't really help you in this regard
quinn has joined #nixos
<symphorien> Graypup_: nix-store --query --deriver
<prsteele> that is unfortunate (but probably makes sense once I understand Nix better). It sounds like I shouldn't be using this to build packages, then, because I would be relying on ephemeral tooling
<Graypup_> thanks! I was reading the man page but missed it
<prsteele> so unless I misunderstood what you said, I can't use Nix to make an executable that would work for someone not using Nix?
<symphorien> prsteele: nix-shell is meant for developers only, not for end users
<symphorien> you can, but with nix-build, not nix-shell
<prsteele> ah. Then I might be in luck... I think I need nix-shell to make hpack, which allows me to actually call nix-build
<symphorien> prsteele: you might be interested in https://github.com/matthewbauer/nix-bundle
pamplemousse has joined #nixos
<prsteele> that certainly sounds useful
<prsteele> thanks again
<danderson> hey, so https://nixos.org/nixos/options.html#networking.wireless seems to be broken. It's trying to do a cross-origin request to releases.nixos.org, and the server isn't providing the right CORS headers.
<danderson> ... which means I can't look up any options :/
<symphorien> danderson: man configuration.nix has them all
jbgi has joined #nixos
<archh75> How can I do this in configuration.nix ? $ gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
syd has quit [Quit: Connection closed]
chimay has quit [Ping timeout: 258 seconds]
mariatsji has quit [Remote host closed the connection]
mariatsji has joined #nixos
<evanjs> clever: got redirected from #haskell to #haskell-infrastructure lol. wonder if we'll hear anything back~
<clever> heh
<clever> havent seen that one yet
<colemickens> danderson: can you add on here: https://github.com/NixOS/nixos-homepage/issues/497
<{^_^}> nixos-homepage#497 (by colemickens, 3 days ago, open): NixOS Options Search - CORS is misconfigured
<colemickens> danderson: it works and doesn't work at different hours of the day for me.
<evanjs> yeah same lol
<dminuoso> evanjs: #haskell-infrastructure is not a very busy place. Sometimes it takes a few hours to get a response. :)
<dminuoso> But the people responsible do read it.
<evanjs> dminuoso: ah gotcha, thanks!
mariatsji has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @ttuegel merged pull request #89846 → qt5.qtserialbus: init at 5.12 → https://git.io/JfDAb
<{^_^}> [nixpkgs] @ttuegel pushed 2 commits to master: https://git.io/JJclP
<evanjs> didn't want to spam it, just wanted to make sure I provided all the necessary info
prsteele has quit [Remote host closed the connection]
<mudri> clever: Do you know whether there'd be anywhere better to ask about these linker errors, or is it just tricky?
<clever> mudri: probably here, but i'm not sure who would know more
<mudri> I'll keep on fiddling, then.
<mudri> Maybe changing the GHC version it uses would force it to do something different?
<{^_^}> [nixpkgs] @numkem opened pull request #93483 → nixos/espanso: init module → https://git.io/JJclN
Kritnich has quit [Quit: Bye bye.]
pamplemousse has quit [Ping timeout: 265 seconds]
<TheSirC[m]> Would anyone have an idea of why I am getting "error: infinite recursion encountered, at undefined position" after switching to a new generation successfully ?
simba2 has quit [Ping timeout: 272 seconds]
<dminuoso> "at undefined position" thats neat
<cole-h> Try looking through the `--show-trace` output.
Kritnich has joined #nixos
echel0n[m] has quit [Quit: Idle for 30+ days]
Kritnich has quit [Client Quit]
o1lo01ol_ has quit [Remote host closed the connection]
<TheSirC[m]> dminuoso: right?
slby[m] has quit [Quit: Idle for 30+ days]
thequux[m] has quit [Quit: Idle for 30+ days]
<TheSirC[m]> cole-h: for which command because anything with nix sends back that except nixos-rebuild
interro[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
xfix has quit [Quit: Idle for 30+ days]
<cole-h> Do it with `nixos-rebuild.`
<TheSirC[m]> cole-h: wait
<TheSirC[m]> I tried `nix-shell -p hello --show-trace`
<TheSirC[m]> Ça renvoie ça : https://paste.rs/FO7
<cole-h> Have you messed with any overlays recently?
lsix has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #93474 → nixos/wireguard: fix typos and unify formatting → https://git.io/JJckS
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JJc8E
<TheSirC[m]> I did
<cole-h> Then that sounds like a good candidate for inspection.
<TheSirC[m]> Darn but which one...
<cole-h> Process of elimination is what I'd use.
<clever> TheSirC[m]: can you pastebin all of the overlays?
<TheSirC[m]> All of them ?
ambro718 has joined #nixos
<{^_^}> [nixpkgs] @veehaitch opened pull request #93484 → istioctl: init at 1.6.5 → https://git.io/JJc8X
<cole-h> If you want us to help find which one is problematic, yeah. But if you think you can do it yourself, no need.
<TheSirC[m]> I am definitely not up to the task. Give me a sec then
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #nixos
coderobe has quit [Quit: Ping timeout (120 seconds)]
ATuin has joined #nixos
daGrevis has quit [Quit: Ping timeout (120 seconds)]
daGrevis has joined #nixos
coderobe has joined #nixos
<clever> TheSirC[m]: types.nix is fishy, what happens if you disable it?
<cole-h> clever: Would it not be the fact that `nixpkgs.overlays` is getting set? IIRC, aren't the contents of ~/.config/nixpkgs/overlays always imported as an overlay?
<clever> cole-h: the error happens with `nix-shell -p hello` which ignores the nixpkgs.overlays entry in configuration.nix
<cole-h> But that's not in configuration.nix, it's in default.nix, which is in ~/.config/nixpkgs/overlays (according to that paste, at least)
<TheSirC[m]> Oh no it is not
<clever> TheSirC[m]: ah, you can temporarily change $NIX_PATH to bypass the error, until you find the true cause
Aljosha[m] has joined #nixos
<TheSirC[m]> I use this to import my overlays : https://paste.rs/Wn4
<{^_^}> [nixpkgs] @danderson opened pull request #93485 → tailscale: 0.99.1-0 -> 0.100.0-153 → https://git.io/JJc4q
<gueorgui> Hi guys, has anyone figured this out? https://github.com/NixOS/nixpkgs/issues/68489
<{^_^}> #68489 (by l0b0, 44 weeks ago, open): localtimed fails to set time zone
<gueorgui> I'm having the same issue, rebooting doesn't help, and `systemctl status localtime` says "failed to set timezone"
<clever> gueorgui: i think the only way to set the timezone is via configuration.nix
<gueorgui> Same thing for running localtimed manually, same thing with sudo
<gueorgui> clever: Ah I see, so I need to update my configuration.nix when I move between countries? (admittedly, not an urgent concern in 2020..)
<clever> gueorgui: yeah
<clever> time.timeZone
<gueorgui> Gotcha, thanks. I do set it, but it would be nice to set it automatically form locaiton
dermetfan has quit [Ping timeout: 256 seconds]
quinn_ has joined #nixos
dermetfan has joined #nixos
xeijin has quit [Remote host closed the connection]
quinn_ has quit [Client Quit]
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
<gueorgui> Another question: I'm trying to mount a SD card via a USB-C card reader. Both in Digikam and in Gnome Disks I get the same error: "Error mounting /dev/sda1 at /run/media/gueorgui/disk: wrong fs type, bad superblock on /dev/sda1/ missing codepage or helper program, or other error (udisks-error-quark, 0)"
<gueorgui> Googling the error doesn't yield many good ideas
<gueorgui> Any clue what might be wrong?
<gueorgui> (The card is valid and can be mounted by both the camera and an ipad)
<clever> gueorgui: what does `blkid /dev/sda1` report?
Kritnich has joined #nixos
<gueorgui> clever: Permission denied when ran without sudo, no output when ran with sudo
<clever> gueorgui: `sudo fdisk -l /dev/sda` ?
knupfer has quit [Ping timeout: 260 seconds]
<gueorgui> clever: Seems ok as well: /dev/sda1 * 32768 124735487 124702720 59.5G 7 HPFS/NTFS/exFAT
<clever> gueorgui: `sudo hexdump -C /dev/sda1 | head -n30` ?
shibboleth has joined #nixos
<gueorgui> clever: Not sure what I'm supposed to see in the hexdump, but the first line does say v.EXFAT which seems ok
<clever> not sure then
<quinn> can someone tell me where buildGoModule is defined? ripgrep is not helping weirdly
<clever> > builtins.unsafeGetAttrPos "buildGoModule" pkgs
<{^_^}> { column = 3; file = "/var/lib/nixbot/nixpkgs/master/repo/pkgs/top-level/all-packages.nix"; line = 15618; }
<clever> quinn: read that line of that file
<cole-h> 15588: buildGoModule = buildGo114Module;
<cole-h> 15581: buildGo114Module = callPackage ../development/go-modules/generic {
stree has quit [Excess Flood]
<gueorgui> clever: This happens on several cards from different cameras, so it's not an issue with the card but with nixos
sangoma has quit [Ping timeout: 240 seconds]
<gueorgui> (it seems...)
<clever> gueorgui: what about `blkid /dev/sda` ?
<gueorgui> Could some helper software be missing?
stree has joined #nixos
<clever> (as root)
<gueorgui> clever: Still no output
<clever> weird
<quinn> clever++ ahh. thanks a bunch
<{^_^}> clever's karma got increased to 478.99999999999994
<superbaloo> is there a documentation about propagatedBuildInputs somewhere?
kapil_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
o1lo01ol1o has joined #nixos
aabm[m] has left #nixos ["User left"]
<superbaloo> ha well nevermind, it's on the manual online but I can find it in my local checkout :x
<quinn> superbaloo: lol that was actually the exact thing i was having a problem with that's funny
<quinn> xml tags may impede your grepping
<superbaloo> indeed
<{^_^}> [nixpkgs] @siriobalmelli closed pull request #91173 → pc-ble-driver: init at 4.1.1 → https://git.io/Jfbym
<clever> gueorgui: it sounds like the SD card is formatted with something weird
<superbaloo> here is was just a pebkac thought :D
kapil_ has joined #nixos
<superbaloo> I'm trying to make sense of propagated dependencies with a musl / static build
<gueorgui> I'm really sorry, it was my own stupid fault
archh75 has quit [Ping timeout: 246 seconds]
archH has joined #nixos
<clever> superbaloo: they should be appearing in the $out/nix-support/ of each build
<gueorgui> The directory where it was trying to mount the cad simply didn't exist
<superbaloo> for some reason glibc creeps in my output, and I'm not sure what's the best approach is to fix this
<clever> gueorgui: (facepalm), the one thing you never think to check!
<superbaloo> clever: huuum
<gueorgui> Sorry for wasting your time and thanks for your helps!
MichaelRaskin has quit [Quit: MichaelRaskin]
<gueorgui> clever++
<{^_^}> clever's karma got increased to 480
<superbaloo> clever: indeed
orivej has quit [Quit: No Ping reply in 180 seconds.]
jumper has quit [Quit: Vision[0.10.3]: i've been blurred!]
<superbaloo> clever: so I have a clevis build, which have two references: cryptsetup (expected) and curl (which should not be there afaik)
orivej has joined #nixos
<superbaloo> curl is needed for build (obviously), but it is not needed in runtime
<superbaloo> so I'd like to get rid of it
nikita` has quit [Quit: leaving]
lsix has quit [Ping timeout: 256 seconds]
<clever> superbaloo: check the `nix show-derivation` for its drv, does it show curl?
<superbaloo> yeah, in the propagatedBuildInputs
<clever> superbaloo: then youll want to modify the expr that is defining that derivation
<mudri> clever: In case you're interested, rolling back to ghc865 worked around my strange linker issues.
<clever> mudri: ah, weird
AluisioASG has joined #nixos
alp has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @LouisDK1 opened pull request #93486 → MythTV: 30.0 -> 31.0 → https://git.io/JJcBa
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
<{^_^}> [nixpkgs] @siriobalmelli opened pull request #93487 → pc-ble-driver: fix Darwin build → https://git.io/JJcBX
<superbaloo> clever: here is the catch: the derivation does not list any propagatedBuildInputs
<mudri> Maybe I can now garbage-collect the old one and reinstall it.
<armin> https://uno.m2m.pm/bla.txt <- anyone a clue why i still get the nixos-20.03 channel output? i removed it with nix-channel --remove and nix-channel --list doesn't show it anymore.
pamplemousse has joined #nixos
<superbaloo> I don't understand how the build adds those references
<clever> mudri: reinstalling wont make any difference at all
<clever> mudri: nix will give you binary identical replacements, which should function in the identical way
<mudri> clever: Aah, I didn't know it was so identical. I probably should report an issue, then.
<{^_^}> [nixpkgs] @siriobalmelli closed pull request #90100 → python3Packages.scikit-build: 0.10.0 -> 0.11.1 → https://git.io/JfSFf
<duairc> I recall there being a way to annotate a derivation to make it always build locally (e.g., for large file downloads), does anyone know if I'm recalling correctly?
<qyliss> preferLocalBuild?
mallox has quit [Quit: WeeChat 2.8]
<duairc> Yeah, I think that's it
orivej has quit [Ping timeout: 240 seconds]
<clever> superbaloo: is it using bare stdenv.mkDerivation?
<clever> superbaloo: can you pastebin the output of `show-derivation`?
orivej has joined #nixos
growpotkin has joined #nixos
<duairc> So if I have a derivation that downloads a 10GB file that has preferLocalBuild set, and I embed the output path of that derivation in a config file on a system I deploy with NixOps, will I end up downloading 10GB to my local system (only to then upload it to the server I'm deploying to), or will the download be run directly on the server?
<duairc> And if preferLocalBuild doesn't do that, is there anything else that does?
<clever> duairc: nixops always wants the entire closure on the machine running nixops
<duairc> That's what I feared
<clever> duairc: so that central machine will download the file, then upload it to the remote boxes
<clever> superbaloo: and what is the expr that is generating that drv?
<superbaloo> I just updated it
<superbaloo> sorry
lsix has joined #nixos
<duairc> I think I'll probably end up creating a one-shot systemd service that downloads the file to a fixed location and then just make sure that it starts before the services that need it
<superbaloo> as you see, the propagatedBuildInputs gets additional members in the show-derivation
<clever> superbaloo: i think something is detecting that your doing static builds, and it moves all of the buildInputs to propagatedBuildInputs
<superbaloo> and I dont understand where they come from
<clever> superbaloo: youll notice in the show-derivation, that buildInputs is entirely empty
<superbaloo> ha, that's a very good point
leungbk has joined #nixos
<clever> superbaloo: so you would need to remove curl from the normal buildInputs
<superbaloo> huum, it wont build then
<superbaloo> or add it back in the configure options?
<clever> why does it need curl to build, but shouldnt propagate curl further?
<{^_^}> [nixpkgs] @sikmir opened pull request #93488 → asuka: 0.8.0 -> 0.8.1 → https://git.io/JJcRB
<superbaloo> well, it only consumes the lib
<superbaloo> and because it's a static lib, the needed part of the lib are builtin the output binary
<superbaloo> and because it's a static build, the needed part of the lib are builtin the output binary
<clever> superbaloo: double-check with objdump, did it actually embed curl into its output library?
<superbaloo> well, there is no linker anyway
<superbaloo> so I'm not too sure how it could refer to it any other way
<clever> superbaloo: usually, static libraries arent linked at all, its just an ar archive containing every .o you just built, but not your dependencies
pamplemousse has quit [Ping timeout: 256 seconds]
<clever> superbaloo: only the final step in the build, the executable does linking, and that needs curl to be propagated
AluisioASG has quit [Read error: Connection reset by peer]
<superbaloo> yeah, well, for the binary it goes through the linker right?
<superbaloo> so it does not need to be propagated any further
<clever> yeah
<clever> but if the derivation is providing a static lib, it needs to propagate everything the static lib depends on
<superbaloo> yeah, that derivation only outputs binaries
<superbaloo> (and that binary depends on cryptsetup binary itself)
<clever> ah, then you can just delete the file in $out/nix-support, in a postInstall hook
AluisioASG has joined #nixos
<superbaloo> which is why it would only need to propagate cryptsetup dependency
<clever> or overwrite it with just 1 path
<superbaloo> clever: ha. I was looking for a better way to do this
<superbaloo> I thought I was missing something
<superbaloo> but okay :) postInstall it is
ATuin has quit [Ping timeout: 256 seconds]
<clever> making the automatic stuff smarter, would involve recursively discovering the libraries needed by every static lib
<clever> and knowing with storepath each maps to
<superbaloo> yup, that totally makes sense.
<clever> also, propagated inputs dont survive at runtime
<clever> so you wont have cryptsetup available at runtime
<superbaloo> I actually build an initrd
<clever> it will only be available in other derivations, at build time
<superbaloo> with that
<superbaloo> which is why I'm trying to slim things down
<clever> ah
<clever> have you seen the existing nixos initrd stuff? using ldd to copy just whats used
<superbaloo> I did
<superbaloo> just experimenting something else :)
<clever> ive also done experimenting, i made an initrd with a single static elf and nothing else
<superbaloo> I'm reusing part of the current nixos build
alp has joined #nixos
<superbaloo> clever: yeah, I have an efi with kernel + initrd, and I'm trying make it interact with TPM
<superbaloo> yeah, well that's very similar to what I'm doing haha :D
domogled has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @Mic92 pushed commit from @tnias to release-20.03 « nixos/wireguard: fix typos and unify formatting »: https://git.io/JJcRF
shibboleth has quit [Quit: shibboleth]
<immae> Hello there, how can I add an entry in fstab that concerns a FUSE entry (namely bindfs)? Do I need to put bindfs in the systemPath, or is there another way?
<clever> immae: one sec
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/f6e6a2915b3 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
bvdw has joined #nixos
<immae> Ah I can give the fullPath
<immae> Cool, thanks clever++
<{^_^}> clever's karma got increased to 481
<{^_^}> [nixpkgs] @siriobalmelli opened pull request #93490 → python3Packages.pc-ble-driver-py: fix Darwin build → https://git.io/JJcRj
<superbaloo> clever: that works :)
<superbaloo> had to use a postFixup but I got my initrd :)
<superbaloo> thank you!
<clever> superbaloo: ah yeah, i think its a fixup hook that makes nix-support
<evanjs> anybody else experiencing issues with fsnotifier for jetbrains programs on nixos-unstable?
asymptotically has quit [Quit: Leaving]
user_0x58 has quit [Ping timeout: 260 seconds]
<evanjs> Getting "File watcher failed to start" whenever I launch CLion or etc
lsix has quit [Quit: WeeChat 2.8]
leungbk has quit [Ping timeout: 260 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/9cfca087776 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
kreyren has quit [Remote host closed the connection]
<evanjs> executing it directly seems to work fine. Hrm...
<hexa-> if I have an optional attribute in an attrset, how would I write a check that does something based on it being est?
<hexa-> set?*
jbgi has quit [Ping timeout: 256 seconds]
<infinisil> > { foo = 10; } ? foo
<{^_^}> true
<infinisil> > { } ? foo
<{^_^}> false
<infinisil> hexa-: ^
leungbk has joined #nixos
<hexa-> thx
poro8[m] has joined #nixos
<clever> > ({}).foo or "fallback"
<{^_^}> "fallback"
<poro8[m]> Is NixOS based?
<clever> hexa-: you can also use this syntax to provide a default when the attr is missing
pamplemousse has joined #nixos
xkapastel has joined #nixos
hoijui has quit [Ping timeout: 260 seconds]
<hexa-> yay
<hexa-> thanks!
pamplemousse has quit [Ping timeout: 260 seconds]
<cole-h> poro8[m]: ?
<{^_^}> [nixpkgs] @aszlig pushed to master « nixos/wireguard: Fix mismatched XML tag »: https://git.io/JJc0P
antifuchs has left #nixos [#nixos]
ixxie has quit [Remote host closed the connection]
<poro8[m]> based as in Rome 2.0 based
<cole-h> what
__monty__ has quit [Quit: leaving]
<fmzakari> I'm looking to give a presentation to teach but mostly sell nix to some colleagues.
dermetfan has quit [Ping timeout: 256 seconds]
<fmzakari> anyone have some prior-art I can start from
fendor has quit [Quit: Leaving]
<poro8[m]> reminds me of the time I first learned about nix
archH has quit [Quit: Connection closed]
<poro8[m]> I was in a dark alley in Paris late at night and this homeless looking dude keep whispering at me from a corner and when he saw I wasnt going to go there he came to me and his breath stank, he had his hands inside his sweater but he showed one of his hands and it had a dirty old usb pendrive in it and he said "yo bro do you wanna buy some nix, It's good shit"
<poro8[m]> * I was in a dark alley in Paris late at night and this homeless looking dude kept whispering at me from a corner and when he saw I wasnt going to go there he came to me and his breath stank, he had his hands inside his sweater but he showed one of his hands and it had a dirty old usb pendrive in it and he said "yo bro do you wanna buy some nix, It's good shit"
cjpbirkbeck has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #93488 → asuka: 0.8.0 -> 0.8.1 → https://git.io/JJcRB
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JJcEO
camsbury has joined #nixos
<leungbk> Would anyone mind reviewing my PR from a couple weeks ago? Everytime it has fallen too far behind the base branch, I have had to fetch the entire NPM registry to resolve the merge conflict.
<leungbk>
<{^_^}> #92391 (by leungbk, 1 week ago, open): nodePackages.pyright: init at 1.1.49
shibboleth has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #93229 → libcrafter: 0.3 -> 1.0 → https://git.io/JJG2B
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JJcED
<{^_^}> [nixpkgs] @marsam merged pull request #93225 → k6: 0.26.2 -> 0.27.0 → https://git.io/JJGgK
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JJcES
<infinisil> leungbk: Unfortunately that happens every time any nodePackage PR gets merged, it's pretty bad yeah
Rusty1 has joined #nixos
buffet has quit [Ping timeout: 240 seconds]
buffet has joined #nixos
pamplemousse has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
cr4y1 has joined #nixos
<{^_^}> [nixpkgs] @Infinisil merged pull request #92391 → nodePackages.pyright: init at 1.1.49 → https://git.io/JJIwT
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/JJcuC
proofofkeags has joined #nixos
orivej has joined #nixos
buffet2 has joined #nixos
<infinisil> Merged now :)
buffet has quit [Ping timeout: 240 seconds]
buffet2 is now known as buffet
pamplemousse has quit [Ping timeout: 265 seconds]
<leungbk> infinisil: Thanks :)
<{^_^}> [nixpkgs] @marsam merged pull request #93207 → bdf2sfd: 1.1.2 -> 1.1.3 → https://git.io/JJGR3
<{^_^}> [nixpkgs] @marsam pushed 3 commits to master: https://git.io/JJcu0
codygman___ has quit [Ping timeout: 264 seconds]
orivej has quit [Ping timeout: 246 seconds]
realrokka has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
shibboleth has quit [Quit: shibboleth]
<{^_^}> [nixpkgs] @marsam merged pull request #93241 → pistol: 0.1.2 -> 0.1.4 → https://git.io/JJG63
<{^_^}> [nixpkgs] @marsam pushed 3 commits to master: https://git.io/JJcuw
<{^_^}> [nixpkgs] @marsam merged pull request #93144 → flatbuffers: 1.11.0 -> 1.12.0 → https://git.io/JJsYg
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JJcur
<hanetzer> is it possible to install nixpkg/nixos on a distro without some form of root access?
drakonis1 has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #93159 → sslh: 1.20 -> 1.21 → https://git.io/JJsEE
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JJcu1
gustavderdrache has quit [Quit: Leaving.]
realrokka has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
lambda-11235 has joined #nixos
cosimone has quit [Ping timeout: 256 seconds]
ambro718 has quit [Quit: Konversation terminated!]
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
proofofkeags has quit [Remote host closed the connection]
philr has joined #nixos
proofofkeags has joined #nixos
bukkitgerman8608 has joined #nixos
<hololeap> that would be roughly equivalent to gentoo's "prefix" install (i don't know if nixos has this)
proofofkeags has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #93200 → elvish: 0.13.1 -> 0.14.0 → https://git.io/JJGLd
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JJcz8
cosimone has joined #nixos
orivej has quit [Ping timeout: 265 seconds]
orivej_ has joined #nixos
leftfold[m] has joined #nixos
Soarin[m] has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #93320 → fanficfare: 3.19.0 -> 3.21.0 → https://git.io/JJZ3M
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JJcz6
mbrgm has quit [Ping timeout: 260 seconds]
<cole-h> hanetzer: I don't think so.
mbrgm_ has joined #nixos
<hanetzer> sorry to ask an answered question, but looks like its yes-ish? https://nixos.wiki/wiki/Nix_Installation_Guide#Installing_without_root_permissions
mbrgm_ is now known as mbrgm
<cole-h> Happy to be proven wrong :P
<infinisil> hanetzer: Yeah just wanted to link to that
<infinisil> It's possible
<hanetzer> yee. I'm thinking to put together a bastard chromebook distro :)
codygman___ has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #93282 → bcompare: 4.3.4.24657 -> 4.3.5.24893 → https://git.io/JJGAY
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JJcz5
leungbk has quit [Remote host closed the connection]
<hanetzer> https://i.imgur.com/nWVcUic.jpg gonna cook new firmware & rootfs :)
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #93071 → libfilezilla: 0.22.0 -> 0.23.0 → https://git.io/JJOxK
<{^_^}> [nixpkgs] @marsam pushed 3 commits to master: https://git.io/JJcgc