andi- changed the topic of #nixos to: NixOS stable: 19.09 \o/ https://discourse.nixos.org/t/nixos-19-09-release/4306/2 || 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
bhipple has quit [Ping timeout: 260 seconds]
<Orbstheorem> So far, I've patched the dts, but the samsung spi driver is icky
<energizer> i'm installing nixos on a computer. how do i get my config onto it?
<zeta_0> clever: ok, i'll test it out, also, i commented out the: # returnShellEnv = false; , that you recommended yesterday, do i need to un-comment it and set it th either true or false, in order for withHoogle to work?
<Orbstheorem> energizer: I usually clone my git repo ^^
<clever> zeta_0: should be able to leave it as it is in my example
<energizer> Orbstheorem: git is not on PATH
<Orbstheorem> energizer: Do you have another computer and a network cable at hand?
<Orbstheorem> You could perhaps send the files using netcat: https://nakkaya.com/2009/04/15/using-netcat-for-file-transfers/
<Orbstheorem> Or if the configuration you want is available somewhere online, perhaphs you could wget it
<{^_^}> [nixpkgs] @schmittlauch opened pull request #84956 → gst-plugins-bad: disable zbar by default → https://git.io/Jvh8M
<{^_^}> [nixpkgs] @marsam opened pull request #84957 → python3Packages.gst-python: fix build on darwin → https://git.io/Jvh8D
<{^_^}> [nixpkgs] @marsam merged pull request #84948 → [20.03] nginx-sso: 0.24.0 -> 0.24.1 → https://git.io/JvhWN
<{^_^}> [nixpkgs] @marsam pushed 2 commits to release-20.03: https://git.io/Jvh8y
ZoomZoomZoom has quit [Read error: Connection reset by peer]
jgeerds has quit [Ping timeout: 260 seconds]
pamplemousse[m] has joined #nixos
<pie_[bnc]> IIRC theres a better way to do this?: "${hello}" + ./bin/hello
<pie_[bnc]> well ok you can just do hello + ./bin/hello
<cole-h> `"${hello}/bin/hello"`?
<pie_[bnc]> but IIRC I didnt need the +
<clever> > "${hello}/bin/hello"
<{^_^}> "/nix/store/7hz2ms6mxdbfwj8bl4fcd171lly4l9wx-hello-2.10/bin/hello"
<pie_[bnc]> oh yeah there we go
<clever> > hello + "/bin/hello"
<{^_^}> "/nix/store/7hz2ms6mxdbfwj8bl4fcd171lly4l9wx-hello-2.10/bin/hello"
<clever> you had quotes on the wrong end
rail__ has joined #nixos
orivej has joined #nixos
<vika_nezrimaya> it looks like with nixFlakes, nix build flake#something --store $mountPoint requires nixFlakes first to be copied onto the target Nix store...
jbrock has quit [Quit: jbrock]
<vika_nezrimaya> which is interesting, since it wasn't like that with vanilla nix
jbrock has joined #nixos
<clever> --store has a lot of edge cases like that
<clever> file an issue and it will get fixed eventually
rail__ has left #nixos ["User left"]
jbrock has quit [Client Quit]
jbrock has joined #nixos
<jmcasey> So I tripped over NixOS this week and it seems super cool, I just want to check my understanding - I'm playing with NixOS in a soft vm. When I'm happy with my my configuration.nix, can I just use that on a real machine? I'm trying to understand what --show-hardware-config is telling me
fusion809 has quit [Remote host closed the connection]
<energizer> i have ` imports = [ /etc/nixos/hardware-configuration.nix` but of course that doesn't work because i'm using root=/mnt . my solution was to ln -s /mnt/etc/nixos/hardware-configuration.nix /etc/nixos/
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jvh4q
<energizer> which works, but this all feels pretty ad hoc and awkward. is there a nicer way to do an installation?
<energizer> ideally a declarative and reproducible way
<{^_^}> [nixpkgs] @drewrisinger closed pull request #84945 → python3Packages.retworkx: init at 0.3.3 → https://git.io/JvhCT
nschoe has quit [Ping timeout: 264 seconds]
<energizer> jmcasey: yes, assuming the networking and filesystem attributes dont need to be changed
<ixxie> clever: I still can't figure out how to make the method in your nixops issue to work; the problem is in the end still getting the initial nixos boot support ssh, but I guess I can do that with a custom iso
<zeta_0> clever: i tested it out and it's throwing an error: https://dpaste.org/yWMv https://dpaste.org/C0Ga
<jmcasey> Thanks energizer - Can you point me to any reading on that? In my case it would depend on which attributes are impactful
<energizer> jmcasey: https://nixos.org/nixos/manual/ under 'networking' and 'filesystems'
<zeta_0> clever: for some reason developPackage now thinks it's a set and not a function, so i don't know why it doesn't like that syntax
abathur has quit [Ping timeout: 256 seconds]
<vika_nezrimaya> clever: Done! https://github.com/NixOS/nix/issues/3486
<{^_^}> nix#3486 (by kisik21, 1 minute ago, open): nixFlakes wants itself in the target store when building from a flake with --store
<zeta_0> clever: i found something similar to my issue, but i'm not able to change it without a syntax error being thrown: https://nix-dev.science.uu.narkive.com/V2IFp1vA/attempt-to-call-something-which-is-not-a-function-but-a-set
chloekek has quit [Ping timeout: 256 seconds]
jbrock has quit [Quit: jbrock]
jbrock has joined #nixos
<{^_^}> [nixos-planet] @garbas pushed to dev-mode « fix netlify notification of mixed content »: https://git.io/Jvh40
<{^_^}> [nixos-planet] @garbas opened pull request #2 → fix netlify notification of mixed content → https://git.io/Jvh4E
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84958 → python27Packages.smart_open: 1.9.0 -> 1.11.0 → https://git.io/Jvh4u
jbrock has quit [Client Quit]
morgrimm has joined #nixos
pamplemousse has quit [Quit: leaving]
<morgrimm> Anyone know if fetchpatch or fetchFromGitHub would be better practice for a patch living in a git repo?
<gchristensen> fetchpatch
<morgrimm> I guess either way when you update it, you'll have to update either the rev or the link
<morgrimm> and the hash
<morgrimm> gchristensen: Any particular reason? Just the cleanup that fetchpatch does on top of fetching?
<gchristensen> fetchpatch is more likely to have a stable hash
<morgrimm> Really? I didn't know that
<zeta_0> why is it that on line 26 when that withHoogle is inserted there, developPackage thinks it's a set and not a function? is it because of the pkg part(a similar error i found online said it had to do with that)? https://dpaste.org/Z92H
<{^_^}> [nixos-planet] @garbas pushed to dev-mode « some more fixes »: https://git.io/Jvh4i
jluttine has quit [Ping timeout: 256 seconds]
ixxie has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @nh2 opened pull request #84960 → release notes: Explain how to run nginx master as root → https://git.io/Jvh4X
rtjure has joined #nixos
broccoli has quit [Remote host closed the connection]
<{^_^}> [nixos-planet] @garbas pushed to master « fix netlify notification of mixed content (#2) »: https://git.io/Jvh4y
<{^_^}> [nixos-planet] @garbas merged pull request #2 → fix netlify notification of mixed content → https://git.io/Jvh4E
<{^_^}> [nixos-planet] @garbas pushed 0 commits to dev-mode: https://git.io/Jvh4S
init_6 has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #84962 → bazel-buildtools: 1.0.0 -> 2.2.1 → https://git.io/Jvh47
jluttine has joined #nixos
h0m1 has quit [Ping timeout: 260 seconds]
<zeta_0> yes, it's because of the `pkg` part on line 26, but when i remove it, another syntax error gets thrown
h0m1 has joined #nixos
dgpratt has joined #nixos
jmcasey has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<zeta_0> gchristensen: trying to get this withHoogle working in my default.nix has been painful, but i'll keep trying
Emantor has quit [Quit: ZNC - http://znc.in]
reis-r has joined #nixos
neeasade has joined #nixos
Emantor has joined #nixos
markus1189 has joined #nixos
thc202 has quit [Ping timeout: 260 seconds]
pikajude- is now known as pikajude
pikajude has joined #nixos
pikajude has quit [Changing host]
<pikajude> are setup hooks run for every downstream dependency or just the immediate ones?
edomfjp[m] has joined #nixos
<nh2> aanderse: do you think my release notes PR is good? Then I'd merge + cherry-pick it now as to not hold things back
markus1199 has quit [Ping timeout: 260 seconds]
<nh2> (or rather, to make sure it makes it in)
ottidmes has quit [Ping timeout: 265 seconds]
* aanderse looks again
nino34 has quit [Quit: Leaving]
<aanderse> yeah i liked that
nino34 has joined #nixos
morgrimm has quit [Ping timeout: 264 seconds]
<aanderse> thanks for writing that up
<aanderse> I'll be sure to copy+paste it for httpd in 20.09 ^_^
<nh2> aanderse: if you review-approve, I will merge
<aanderse> nh2: awesome!
<{^_^}> [nixpkgs] @nh2 merged pull request #84960 → release notes: Explain how to run nginx master as root → https://git.io/Jvh4X
<{^_^}> [nixpkgs] @nh2 pushed 2 commits to master: https://git.io/JvhBm
<{^_^}> [nixos-search] @garbas pushed to remove-hourly-build « Remove hourly build »: https://git.io/JvhBY
<{^_^}> [nixos-search] @garbas opened pull request #2 → Remove hourly build → https://git.io/JvhBO
<{^_^}> [nixpkgs] @nh2 opened pull request #84963 → [20.03] release notes: Explain how to run nginx master as root → https://git.io/JvhBG
<nh2> aanderse: thanks!
<aanderse> nh2++
<{^_^}> nh2's karma got increased to 16
freeman42x has quit [Quit: Leaving]
freeman42x has joined #nixos
<{^_^}> [nixpkgs] @nh2 merged pull request #84963 → [20.03] release notes: Explain how to run nginx master as root → https://git.io/JvhBG
<{^_^}> [nixpkgs] @nh2 pushed 2 commits to release-20.03: https://git.io/JvhBr
abathur has joined #nixos
<peelz> what's the easiest way to find out which derivation `/nix/store/.../path/to/file` comes from? (trying to automate for a shell script)
<peelz> oh nvm, I just had to stare at the manpages a little longer :^)
<peelz> `nix-store --query --deriver /nix/store/.../path/to/file`
dsg has quit [Ping timeout: 256 seconds]
dsg has joined #nixos
<peelz> is there a stable interface for `nix show-derivation`?
hoplaahei has quit [Quit: Konversation terminated!]
bastion-tester has quit [Quit: ZNC 1.7.4 - https://znc.in]
bastion-tester has joined #nixos
psymin has quit [Quit: Leaving]
<peelz> guess not
<{^_^}> [nixos-search] @garbas merged pull request #2 → Remove hourly build → https://git.io/JvhBO
<{^_^}> [nixos-search] @garbas pushed to master « Remove hourly build (#2) »: https://git.io/JvhRe
<{^_^}> [nixos-search] @garbas pushed 0 commits to remove-hourly-build: https://git.io/JvhRf
<zeta_0> i posted this error and nix code on stack overflow, if anyone wants to help fix it: https://stackoverflow.com/questions/61151192/configuring-withhoogle-in-default-nix
ddellacosta has quit [Ping timeout: 260 seconds]
<vika_nezrimaya> ,locate bin gdk-pixbuf-query-loaders
<{^_^}> Found in packages: gdk-pixbuf.dev
<{^_^}> [nixpkgs] @romildo merged pull request #84711 → matcha: 2020-04-03 -> 2020-04-08 → https://git.io/JvxRu
<{^_^}> [nixpkgs] @romildo pushed 2 commits to master: https://git.io/JvhRt
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<cole-h> I wish there was an incremental mode for Nix that one could use when building + testing local changes...
<cole-h> So I don't have to rebuild the entire project for a one-line change :P
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84964 → python37Packages.snapcast: 2.0.10 -> 2.1.0 → https://git.io/JvhR3
captjakk has quit [Remote host closed the connection]
m0rphism has quit [Ping timeout: 250 seconds]
<energizer> i'm doing nixos-rebuild --verbose -j3 and it's pegging a cpu but idk what it's doing, no log messages. been going for >10min. what can i do?
<cole-h> Wait, or `strace` it, or keep adding `-v` (`--verbose`) until you see what you want, I imagine.
<vika_nezrimaya> how can one add support for SVG to an app using gdk-pixbuf (the package librsvg helpfully provides the needed loader)? assume a home-manager-like environment
<vika_nezrimaya> the package in question is mako
<jtojnar> using wrapGAppsHook
<energizer> aha. i had configuration.nix symlinked to itself
<cole-h> haha
<jtojnar> vika_nezrimaya it sets GDK_PIXBUF_MODULE_FILE in a wrapper
<{^_^}> [nixpkgs] @cole-h opened pull request #84965 → qimgv: enable video support → https://git.io/JvhRV
<cole-h> ^ I'm so happy I figured it out
<cole-h> Turns out, for a library to be loaded, it needs to be able to be found....
<julm> :D
<vika_nezrimaya> jtojnar: nativeBuildInputs or buildInputs?
xelxebar has quit [Ping timeout: 240 seconds]
<vika_nezrimaya> i assume native since hook needs to be executed on build time
felixfoertsch has quit [Ping timeout: 265 seconds]
felixfoertsch23 has joined #nixos
xelxebar has joined #nixos
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
felixfoertsch23 is now known as felixfoertsch
aw has joined #nixos
spacefrogg has joined #nixos
<{^_^}> [nixpkgs] @iblech opened pull request #84966 → ttyd: 1.5.2 -> 1.6.0 → https://git.io/JvhR6
reis-r has quit [Ping timeout: 264 seconds]
SumnerEvans[m] has joined #nixos
<jtojnar> vika_nezrimaya yup
sumner has joined #nixos
Darkmatter66_ has joined #nixos
Darkmatter66 has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @worldofpeace pushed to worldofpeace-patch-1 « bug_report.md: ask to notify maintainers »: https://git.io/JvhRM
<{^_^}> [nixpkgs] @worldofpeace opened pull request #84967 → bug_report.md: ask to notify maintainers → https://git.io/JvhRD
<{^_^}> [nixpkgs] @worldofpeace merged pull request #84950 → [20.03] python3Packages.nose2: 0.9.1 -> 0.9.2 and fix build for ZHF → https://git.io/Jvhl6
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to release-20.03: https://git.io/JvhRy
<{^_^}> [nixpkgs] @worldofpeace merged pull request #84849 → nextcloud: Review installation upgrade warning wording → https://git.io/Jvpga
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JvhR9
pjt_014 has joined #nixos
<{^_^}> [nixpkgs] @andersk opened pull request #84968 → openafs_1_8: 1.8.5 -> 1.8.6pre1, add upstream patches for Linux kernel 5.6 support → https://git.io/JvhR7
<{^_^}> [nixpkgs] @peterhoeg merged pull request #84885 → freerdp: 2.0.0-rc4 -> 2.0.0 → https://git.io/Jvp5B
<{^_^}> [nixpkgs] @peterhoeg pushed commit from @lheckemann to master « freerdp: 2.0.0-rc4 -> 2.0.0 (#84885) »: https://git.io/JvhRd
<{^_^}> [nixpkgs] @kisik21 opened pull request #84969 → mako: wrap with wrapGAppsHook → https://git.io/JvhRN
<vika_nezrimaya> jtojnar: opened a PR :3
zaeph1 has joined #nixos
CMCDragonkai has quit [Ping timeout: 268 seconds]
<vika_nezrimaya> gchristensen: changed my GPG key, what's the best way to update maintainers.nix? sign with old or new key?
<vika_nezrimaya> doesn't look like I can sign with both
bhipple has joined #nixos
zaeph has quit [Ping timeout: 256 seconds]
<freeman42x> run into this issue: error: Package ‘webkit2gtk3-javascriptcore-0.14.3.0’ in /nix/store/9r1vhvri4ba913g4vyg5jqrhg6pb9amn-source/pkgs/development/haskell-modules/hackage-packages.nix:244981 is marked as broken, refusing to evaluate.
<freeman42x> any idea what solutions there are for it?
<pjt_014> vika_nezrimaya: I'd suggest signing with the old key, noting the new key's fingerprint in the commit message, and then using the new one
rogue_koder_ has joined #nixos
<freeman42x> guess I could try allow broken but...
<pjt_014> check the unstable channel too, things tend to be fixed there first
CMCDragonkai has joined #nixos
<{^_^}> [nixpkgs] @teto merged pull request #84944 → pingus: move cmake to nativeBuildInputs → https://git.io/Jvhca
<{^_^}> [nixpkgs] @teto pushed commit from @woffs to master « pingus: move cmake to nativeBuildInputs »: https://git.io/Jvh0T
<pjt_014> for example the futhark language has been broke on the main channel for some time but it's fine on unstable
<freeman42x> pjt_014, I do not know how to do that. That error is given by nix-shell
pjt_0141 has joined #nixos
<jtojnar> freeman42x what command are you running?
evertedsphere has joined #nixos
<freeman42x> I added { allowBroken = true; } to ~/.config/nixpkgs/config.nix but nix-shell is still not installing the broken package
pjt_0141 has quit [Client Quit]
<freeman42x> jtojnar, nix-shell in root of this project: https://github.com/fairy-tale-agi-solutions/haskell-editor-setup
pjt_014 has quit [Ping timeout: 250 seconds]
<freeman42x> I am streaming right now, if that helps helping: https://www.twitch.tv/freeman42x
<jtojnar> freeman42x looks llike they are pinning something https://github.com/fairy-tale-agi-solutions/haskell-editor-setup/blob/master/default.nix
pjt_014 has joined #nixos
<vika_nezrimaya> The only thing I still don't like about flakes: if a flake doesn't provide an output for an unsupported arch, say, armv7l-linux, the only way to go is to fork it and add it
kaychaks has quit [Remote host closed the connection]
<jtojnar> freeman42x they are getting nixpkgs from miso github
<freeman42x> jtojnar, ah, I see, yeah, that was needed to do at some point since he did not publish yet a change
<freeman42x> will try rolling that back
<freeman42x> jtojnar++
<{^_^}> jtojnar's karma got increased to 38
captjakk has joined #nixos
justanotheruser has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84970 → python27Packages.shodan: 1.22.0 -> 1.23.0 → https://git.io/Jvh0s
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
mounty has quit [Ping timeout: 256 seconds]
captjakk has quit [Ping timeout: 265 seconds]
<cjpbirkbeck> does anybody here use user.user.<name>.packages as opposed to systemPackages? would anybody recommend one over the other?
<pie_[bnc]> has anyone seen an example of override on buildrustpackage?
<pie_[bnc]> i just get a weird error
<pie_[bnc]> error: attempt to call something which is not a function but a set, at /nix/store/f4ayff5y71cv9vd5jbw9d0bapa2574hs-nixpkgs-channels-9b0d2f3/pkgs/stdenv/generic/make-derivation.nix:318:55
<pjt_014> cjpbirkbeck: If you need packages for only one user (as opposed to systemwide) then yes that'd be the way to go.
waleee-cl has quit [Quit: Connection closed for inactivity]
<pjt_014> I've never had that need personally
<pie_[bnc]> ok i think i just ran across the thing ignoring some phases or something
<pie_[bnc]> got a couple streams crossed here
ericsagnes has quit [Quit: WeeChat 2.6]
rtjure has quit [Quit: Leaving]
rtjure_ has joined #nixos
<freeman42x> any idea why adding { allowBroken = true; } to ~/.config/nixpkgs/config.nix would still not affect nix-shell?
bhipple has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #83181 → gcc: move .dll.a* outputs to $lib → https://git.io/JvDFq
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to staging: https://git.io/Jvh0P
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
justanotheruser has joined #nixos
<cole-h> vika_nezrimaya: btw, I'd reword your "updating gpg key" commit to say whose gpg it is ("my" is kinda usesless in the commit log)
<cole-h> I'd just do "maintainers: update GPG key for <username>" and the fp, if it were me
ericsagnes has joined #nixos
<{^_^}> [nixpkgs] @Emantor opened pull request #84971 → nixos/relrease-notes/rl-2003.xml: remove section on intel GPU workaround → https://git.io/Jvhuv
<{^_^}> [nixpkgs] @samueldr pushed to release-20.03 « nextcloud: Review installation upgrade warning wording »: https://git.io/JvhuT
<energizer> cjpbirkbeck: i use home-manager for managing my user config
<cjpbirkbeck> energizer: okay, i've been switching to home-manager slowly - do you put your programs in user packages or systemPackages?
<energizer> cjpbirkbeck: in home.packages
numkem has quit [Ping timeout: 265 seconds]
orivej has quit [Ping timeout: 265 seconds]
<cjpbirkbeck> energizer: oh, how does that differ from user.user.<name>.packages, beyond one being defined in home-manager and other in NixOS?
<energizer> cjpbirkbeck: i'm not sure. #home-manager would know better
<cjpbirkbeck> eh, it's probably not that important, seems pretty much the same
chagra has joined #nixos
<energizer> for one thing, you dont need root to edit home.packages
<cjpbirkbeck> hmm, well i've symlinked to contents on my configuration files into a directory in my home directory, so that's not a problem for me.
chagra_ has quit [Ping timeout: 256 seconds]
<energizer> what do i need to do to have access to the nixos modules in nixpkgs master?
mounty has joined #nixos
<energizer> i just tried services.tailscale.enable=true but that option doesnt exist despite being defined here https://github.com/NixOS/nixpkgs/pull/82537/files#diff-27908d2da6301a01d23fc7fb53d097c5R10
aleph- has quit [Read error: Connection reset by peer]
<energizer> am i missing a channel or update or something?
<energizer> i do have access to the package (i can run nix run nixpkgs.tailscale) but i don't have access to the module
LysergicDreams has quit [Ping timeout: 250 seconds]
LysergicDreams has joined #nixos
nino34 has quit [Remote host closed the connection]
nino34 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84972 → qpdf: 9.1.1 -> 10.0.0 → https://git.io/Jvhuy
aleph- has joined #nixos
mniip has quit [Remote host closed the connection]
shafox has joined #nixos
<{^_^}> [nixpkgs] @glittershark opened pull request #84973 → aadict: init at 0.2.3 → https://git.io/Jvhuj
<glitters`> if I'm submitting PRs for adding packages in a dependency chain, is it better to open all as separate PRs based on each other and rebase as things are merged, or all in one PR?
glitters` is now known as glittershark
<glittershark> or is it up to the reviewer?
<hyper_ch> are the packages optional? if so, make one commit for each one but you can probably make a PR on it all
<glittershark> not optional
<hyper_ch> no idea :)
<glittershark> ok
<glittershark> yeah it feels silly to make a series of PRs here
<glittershark> gonna just make one
<hyper_ch> for adding new packages you still want to make a seperate commit for each one
<glittershark> of course
<hyper_ch> but then make one PR
<hyper_ch> if reviewer don't like it, they'll tell you :)
<glittershark> heh, sure
<glittershark> also wow pkgs/top-level/python-packages.nix is a mess lol
<glittershark> alphabetization what
<hyper_ch> lol, I was just checking status of one of my PRs... it got merged a week ago.. somehow I must have missed the message
<hyper_ch> glittershark: python is evil ;)
<glittershark> you're telling me
<hyper_ch> it's mostly alphabetical-ish
<glittershark> I have to write it for a living
<glittershark> but also the top-level
<glittershark> lol
<glittershark> and of course sorting it is a completely foregone conclusion at this point
<glittershark> because of all the PRs that'd need to be rebased
<glittershark> ;n;
<hyper_ch> I'm pretty sure there's some good reason behind that sorting
<mkg20001> where can I get where is libgnomekbdui from? is there a package?
<hyper_ch> mkg20001: what's that for?
xO1 has joined #nixos
<hyper_ch> nox couldn't find anything like that
<peelz> does `nixpkgs.config` work?
<hyper_ch> find . -iname *gnomekbd* --> did find only ./pkgs/development/libraries/libgnomekbd
<mkg20001> hyper_ch: packaging https://github.com/elementary/installer - libgnomekdb is found, afterwards it complains about libgnomekbdui
<peelz> nixpkgs.config is explained here but I don't really understand how this is affects stdenv derivations: https://nixos.org/nixos/nix-pills/nixpkgs-parameters.html#idm140737319754800
<hyper_ch> mkg20001: no idea
<mkg20001> odd... /nix/store/w7asqf5bk39sjbrhf5jllhsxzn5386zr-libgnomekbd-3.26.1/lib/libgnomekbdui.so.8.0.0 it's part of libgnomekbd but not found
<hyper_ch> open bug report?
Mateon3 has joined #nixos
endformationage has quit [Quit: WeeChat 2.6]
Mateon1 has quit [Ping timeout: 256 seconds]
Mateon3 is now known as Mateon1
<mkg20001> hyper_ch: Solved it, they were using find_library, added it to LIBRARY_PATH manually via preConfigure. Is that a bug or just some specific workarround?
drakonis has quit [Quit: WeeChat 2.8]
<hyper_ch> I have no idea what you just said :)
<hyper_ch> I'm just an average computer user
<colemickens> sounds like the pc file for pkg-config for that lib isn't fully setup right?
<colemickens> maybe?
nino34 has quit [Quit: Leaving]
palo1 has joined #nixos
palo has quit [Ping timeout: 256 seconds]
palo1 is now known as palo
<hyper_ch> why does this give an error with current unstable: boot.extraModulePackages = with config.boot.kernelPackages; [ wireguard ]; --> error: The option value `boot.extraModulePackages.[definition 1-entry 1]' in `/etc/nixos/hardware-configuration.nix' is not of type `package'.
<hyper_ch> especially since the wiki also has this: https://nixos.wiki/wiki/Linux_kernel#Custom_kernel_modules
<colemickens> maybe because WG isn't an external module anymore in latest kernel?
<colemickens> just a guess?
<hyper_ch> good guess :)
<colemickens> not a very helpful message though :|
<colemickens> I just seem to have wireguard.enable = true; so maybe the module is taking care of it for me.
<hyper_ch> well, it seems to rebuild fine now
everteds1here has joined #nixos
evertedsphere has quit [Remote host closed the connection]
everteds1here has quit [Remote host closed the connection]
evertedsphere has joined #nixos
glittershark has quit [Ping timeout: 264 seconds]
<evils> anyone interested in mce-test? (hardware error handling testing)
<pie_[bnc]> freeman42x: check if syntax errors do anything, if yes, the file is being evaluated
<hyper_ch> another problem. dropbear was dropped and openssh is being used now for the initrd... I generated a key, added now to config hostKeys = [ "/root/initrd-openssh-key" ]; and try to rebuild, but it complains with: cp: cannot stat '/root/initrd-openssh-key': No such file or directory . However that file exists: -rw------- 1 root root 227 Apr 4 07:18 /root/initrd-openssh-key
<pie_[bnc]> freeman42x: or at least im assuming it will error...
<{^_^}> [nixos-homepage] @garbas pushed to download-page « Download page refresh »: https://git.io/JvhzX
<energizer> can anyone explain why i'm getting option `services.tailscale.enable` does not exist?
<{^_^}> [nixos-homepage] @garbas opened pull request #386 → Download page refresh → https://git.io/Jvhz1
<pie_[bnc]> energizer: is your nixpkgs new enough?
<energizer> pie_[bnc]: how would i know?
sumner has left #nixos ["The Lounge - https://thelounge.chat"]
<pie_[bnc]> energizer: I dont actually know off the top of my head if theres an easy way to check with channels
<pie_[bnc]> energizer: but if you havent updated your channels in several months that could explain why
vk3wtf has quit [Quit: WeeChat 2.7.1]
<energizer> pie_[bnc]: doesn't help
<energizer> just updated
<pie_[bnc]> ah, you can look at the /nix/var/nix/profiles/per-user/root/channels/manifest.nix files in $NIX_PATH
<pie_[bnc]> hm
<mkg20001> Cole Mickens: The pkg-config actually is correct and doing dependency(libgnomekbdui) works. They were using find_library for some weird reason tho. Guess it's just specific hackery
<pie_[bnc]> energizer: I guess I'd start poking around with nixos-option too
<pie_[bnc]> but this sounds weird
<pie_[bnc]> i havent actually used tailscale myself
alexherbo2 has joined #nixos
<pie_[bnc]> energizer: check if this file is in your nix path just in case https://github.com/NixOS/nixpkgs/blob/release-19.09/nixos/modules/services/networking/tailscale.nix
<energizer> pie_[bnc]: it's not there
<energizer> syncthing.nix, tcpcrypt.nix, but no tailscale.nix
<{^_^}> [nixpkgs] @marsam opened pull request #84974 → shellcheck: fix build → https://git.io/Jvhz9
<pie_[bnc]> energizer: so its not a new enough nixpkg
<pie_[bnc]> s
<pie_[bnc]> or you have some other funky thing goinf on
vk3wtf has joined #nixos
<energizer> pie_[bnc]: i literally just ran `nix-channel --update`
<{^_^}> [nixpkgs] @Maxdamantus opened pull request #84975 → Polyphone → https://git.io/Jvhz7
<pie_[bnc]> energizer: might have to sudo it
<energizer> it's doing something
<energizer> btw talk about poor discoverability...
<pie_[bnc]> yeah idek if ive personally seen that explained anywhere
<pie_[bnc]> and then at some point a lot of people migrate to a local checkout anyway
<{^_^}> [nixpkgs] @matthewbauer merged pull request #84860 → generic/setup.sh: allow clobbering env-vars file → https://git.io/Jvpog
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to staging: https://git.io/JvhzA
<pie_[bnc]> might check for docs on the channels and see if its mentioned
<pie_[bnc]> nixos manual or something
hoplaahei has joined #nixos
<pie_[bnc]> might be worth opening an issue or checking if there is one already
<hoplaahei> Is there any way to get KDE to stop recreating ~/.config/kxkbrc and re-enabling the 'Configure layouts' preference of 'Keyboard'. It keeps overriding my xmodmap settings. I've tried making a systemd user service for graphical target to run xmodmap as well, but I can't figure out how to get it to run after KDE parses its configs.
<pie_[bnc]> or writing a patch that tells the user there are unupdated channels or something because they belong to another user
jmcasey has joined #nixos
<pie_[bnc]> hoplaahei: in my limited experience kde is pretty bad to configure,the existence of documentation is hit and miss for internals
<pie_[bnc]> either that or ive just missed a whole world of informatoin somehow
<pie_[bnc]> so i personally can only suggest a lot of maybe-not-pointless googling, and checking the kde source..
jmcasey has quit [Client Quit]
<pie_[bnc]> (i should listen to my own advice on that note)
<pie_[bnc]> maybe starting with figuring out what component is even responsible for that, because theres stuff like kglobalaccel5 and i have no idea if thats related
<{^_^}> [nixos-homepage] @garbas pushed 24 commits to landing-page: https://git.io/JvhgI
<pie_[bnc]> probably lots of dbus involved too
<{^_^}> [nixos-homepage] @garbas opened pull request #387 → Landing page → https://git.io/JvhgL
<hoplaahei> pie_[bnc]: yes this isn't the only problem I'm having with it reactivating settings I have unchecked. Some sound settings reactivate too unless I install gnome3-dconf service. I just want to override it somehow. services.xserver.displayManager.sessionCommands is too early.
<pie_[bnc]> maybe theres some kind of contention going on
<pie_[bnc]> heck knows :(
<hoplaahei> So is services.xserver.displayManager.setupCommands. And I don't know the syntax or what systemd target I could hook onto.
<energizer> is it just me or does vscode disregard the ssh-agent
<pie_[bnc]> energizer: does it have the env vars?
<energizer> pie_[bnc]: i dont see why it wouldn't, all the other programs do. but i dont know how to check
<pie_[bnc]> energizer: i dont either, maybe theres a plugin that will letyou see what env vars its running with
<pie_[bnc]> energizer: maybe easier: if you can open some kind of command shell in the editor, you can look at what vars it inherits
<pie_[bnc]> hoplaahei: this is the part where i start making wild guesses; have you tried making the file read only? are you copying it from the store?
duckonomy has joined #nixos
fydai has joined #nixos
<pie_[bnc]> kde probably has some reason its trying to overwrite it
<hoplaahei> Tried making ~/.config/kxkbrc read-only so KDE can't write to it? I've thought of doing that, but I feel there must be a better way.
<hoplaahei> I could write a systemd timer that waits till after KDE starts up I suppose. Not very reliable though.
<hoplaahei> I need to find the latest systemd target that runs. Hopefully it runs after KDE has done its configs.
<evertedsphere> fydai: here
<evertedsphere> maybe all you gotta do is like use some kinda extraPackages argument
jmcasey has joined #nixos
domogled has joined #nixos
rotaerk has quit [Ping timeout: 260 seconds]
xelxebar has quit [Ping timeout: 240 seconds]
klntsky has quit [Ping timeout: 240 seconds]
est31 has quit [Quit: No Ping reply in 180 seconds.]
xelxebar has joined #nixos
<{^_^}> [nixpkgs] @ehmry opened pull request #84977 → nixos/hydra: wrap systemPackages with hydra envvars → https://git.io/Jvhg2
est31 has joined #nixos
<pie_[bnc]> joepie91: Ericson2314: any idea how to get a rust compiler (with the mozilla overlay) that will compile to bare metal?
<pie_[bnc]> ive been suggested i386-elf
<pie_[bnc]> matthewbauer: ?
klntsky has joined #nixos
fydai has quit [Remote host closed the connection]
hoplaahei has quit [Quit: Konversation terminated!]
page has quit [Quit: leaving]
cjpbirkbeck has quit [Quit: cjpbirkbeck]
mallox has joined #nixos
cjpbirkbeck has joined #nixos
<pie_[bnc]> the thing is i dont even want stf
<pie_[bnc]> *std
<pie_[bnc]> hm xargo has a no_std section
dminuoso has quit [Ping timeout: 258 seconds]
rurt91 has joined #nixos
rurt91 has left #nixos ["Leaving"]
Havvy has quit [Read error: Connection reset by peer]
Havvy has joined #nixos
page has joined #nixos
<pie_[bnc]> so slowly im pieceing together how to do this independent of the nix infrastructure
<pie_[bnc]> still dont know about in it though...
kaliumxyz has quit [Ping timeout: 260 seconds]
<evertedsphere> this seems silly: the file referred to definitely exists
<evertedsphere> /build/android/build.xml:90: Cannot find /nix/store/j29ys0ah356v1kvb7fn2l566h6kcirmq-androidsdk/libexec/android-sdk/tools/ant/build.xml imported from /build/android/build.xml
klntsky has quit [Ping timeout: 240 seconds]
cantstanya has quit [Ping timeout: 240 seconds]
gxt has quit [Ping timeout: 240 seconds]
KeiraT has quit [Ping timeout: 240 seconds]
klntsky has joined #nixos
KeiraT has joined #nixos
gxt has joined #nixos
maddo has joined #nixos
snicket has joined #nixos
cole-h has quit [Quit: Goodbye]
<freeman42x> any idea what I need to change to this: https://gist.github.com/razvan-flavius-panda/1ca7ba125d4cbd06a1f99f8cff809755 so that glib-networking dependency gets installed?
orivej has joined #nixos
<evils> freeman42x: maybe put it in `buildInputs`? i believe `nativeBuildInputs` is for build-time dependencies
Naptra has joined #nixos
<freeman42x> evils, unfortunately that still did not install it
anderslundstedt has joined #nixos
cantstanya has joined #nixos
anderslu1dstedt has quit [Ping timeout: 260 seconds]
citrinitas has quit [Quit: leaving]
<{^_^}> [nixpkgs] @gnidorah opened pull request #84978 → mame: 0.219 -> 0.220 → https://git.io/Jvh2H
<pie_[bnc]> evertedsphere: check that its actually visible in the build sandbox
<freeman42x> evils, libraryPkgConfigDepends does not work either
mallox has quit [Quit: WeeChat 2.8]
<pie_[bnc]> jD91mZM2: did you ever get xargo working in a packaged variant?
mallox has joined #nixos
zeenk has joined #nixos
<{^_^}> [nixpkgs] @cdepillabout merged pull request #84217 → ghcHEAD: bump to 8.11.20200403 → https://git.io/JvbcU
<{^_^}> [nixpkgs] @cdepillabout pushed commit from @ggreif to haskell-updates « ghcHEAD: bump to 8.11.20200403 (#84217) »: https://git.io/Jvhae
<{^_^}> [nixpkgs] @cdepillabout merged pull request #84974 → shellcheck: fix build → https://git.io/Jvhz9
<{^_^}> [nixpkgs] @cdepillabout pushed 2 commits to master: https://git.io/Jvhav
eoli3n__ has joined #nixos
thibm has joined #nixos
Darkmatter66_ has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @raboof closed pull request #76494 → vscodium: allow using vscode extensions → https://git.io/JebO2
cjpbirkbeck has quit [Remote host closed the connection]
<joepie91> pie_[bnc]: please hold
Darkmatter66 has joined #nixos
bqv has quit [Ping timeout: 246 seconds]
* joepie91 uploaded an image: Selection_898.png (19KB) < https://pixie.town/_matrix/media/r0/download/pixie.town/TWgXNrIBIkufKbLIgLalrNsY >
<joepie91> pie_[bnc]: ^ this seems to be all I'm doing
<joepie91> I think rust-src is the needed thing? not sure
* joepie91 is not very awake nor in a very good mood, having gotten waken up by a damn leafblower, so can't really assist more atm
bqv has joined #nixos
<ehmry> leafblowers should be banned
<joepie91> +100
<joepie91> ehmry: worst part is this is *probably* the city's maintenance dept doing it too
<joepie91> I think I'm going to have a stern phone call with the city next week
zupo has joined #nixos
<joepie91> they can use a damn rake if they want to remove leaves, a leafblower isn't even easier!
dminuoso has joined #nixos
zupo_ has joined #nixos
zupo has quit [Ping timeout: 264 seconds]
arjen-jonathan has joined #nixos
rotaerk has joined #nixos
<pjt_014> ma27[m]: If you're here, I've made the relevant change to my PR: https://github.com/NixOS/nixpkgs/pull/84078
<{^_^}> #84078 (by petersjt014, 1 week ago, open): catcli: init at 0.5.13
<freeman42x> I do not have a .bashrc in home on NixOS, is that normal?
<pjt_014> checking...nope, I don't got one either.
<{^_^}> [nixpkgs] @hedning merged pull request #84695 → Gnome 3.36.1 staging → https://git.io/JvxZk
<{^_^}> [nixpkgs] @hedning pushed 7 commits to staging: https://git.io/JvhaE
<thibm> freeman42x: just create it?
<pjt_014> That config data's *gotta* be stored elsewhere...somewhere
<freeman42x> thibm, just curious if it is normal to not be there
arjen-jonathan has quit [Ping timeout: 265 seconds]
<energizer> i dont have one
<thibm> me neither
freeman42x has quit [Quit: Leaving]
ixxie has joined #nixos
freeman42x has joined #nixos
zaeph1 is now known as zaeph
dermetfan has joined #nixos
jmcasey has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<the_pumpkin_man[> It u do not have one by default in your home, because it is for storing your personal parameters
medvid_ has joined #nixos
<the_pumpkin_man[> * It is normal you do not have one by default in your home, because it is for storing your personal parameters
<the_pumpkin_man[> If you only want the default parameters, then don't need one, else just create it and put what you need
<thibm> He left
medvid has quit [Ping timeout: 256 seconds]
snajpa has left #nixos [#nixos]
o1lo01ol1o has joined #nixos
arjen-jonathan has joined #nixos
noudle has joined #nixos
snajpa has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #84078 → catcli: init at 0.5.13 → https://git.io/JvdxJ
<ixxie> heya folks; is there a way to build a nix file passed as a string?
<{^_^}> [nixpkgs] @Ma27 pushed 3 commits to master: https://git.io/Jvhay
<ixxie> I've tried nix-build -E but I get error: expression does not evaluate to a derivation (or a set or list of those)
<ma27[m]> pjt_014: merged, thanks!
<pjt_014> woohoo 1st package yeah!
<ixxie> congrats pjt_014++ !
<{^_^}> pjt_014's karma got increased to 1
<thibm> ixxie: what do you mean?
omfgwhofarted has joined #nixos
<thibm> what did you pass to -E ?
<pjt_014> ixxie: thanks ! ^^
thc202 has joined #nixos
<omfgwhofarted> howdy. nixos newb here, trying to get it installed into a VM in virtualbox for the first time. whenever i edit my /etc/nixos/configuration.nix file, i'm getting the following error, "sytnax error, unexpected '=', expecting $end, at /etc/nixos/configuration.nix:2:11" can anyone shed some light onto this?
dermetfan has quit [Ping timeout: 260 seconds]
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<thibm> omfgwhofarted: you have a syntax error in your configuration.nix
<thibm> can you paste it somewhere? (not here)
<ixxie> thibm: this is what I am trying: https://pastebin.com/89VvBsTL
<ixxie> thibm: hack to get ~ to expand
<ixxie> thibm: maybe there are smarter ways to do that :D
boothead has joined #nixos
<thibm> ixxie: it works but evaluate to a function, not a derivation
<omfgwhofarted> thibm: i'll try that in a minute here. i'm starting over from scratch. i really do appreciate the help.
<thibm> sure
sogatori has joined #nixos
<thibm> (ixxie: ps: cat is useless)
<boothead> Any haskellers around? I've seen a few newish looking options for haskell dev environments and was wondering what people are using nowadays? haskell.nix? Vanilla nixpkgs? Cabal or stack? I've been out of the loop for a little while :-)
<omfgwhofarted> thibm: i'm going to try following the manual directions once more from the top as well before i paste my.....conundrum.
<ixxie> thibm: so I need to build a derivation from the function because -E expects that
<thibm> ixxie: in fact, your function cannot evaluate to a derivation
<{^_^}> [nixpkgs] @Ma27 pushed to master « nixos/release-notes: fix minor spelling mistake in the Nextcloud section »: https://git.io/Jvhab
<ixxie> thibm: how do I solve it?
<ixxie> thibm: I'm open the alternative approaches, just trying to have a script build an iso with the ssh key of the build machine as a authorized key
<thibm> omfgwhofarted: look at your fle line 2 column 11, the syntax error is (probably) here. Try tompare with syntax you find on the manual (in examples)
<omfgwhofarted> thibm: before i start this all again, should i enable the "Enable EFI" option in virtualbox? or should i just stick with trying to get this up and running with legacy BIOS?
<thibm> thibm: what are you trying to do?
medvid has joined #nixos
<thibm> omfgwhofarted: is the virtualbox just for trying Nixos out?
<omfgwhofarted> thibm: yes.....and building confidence.i realize that there is a nixOS virtual appliance already configured, but i want to learn this stuff and know what i'm actually doing.
<eyJhb> How many hours away are we from 20.03?
opticnerve has joined #nixos
medvid_ has quit [Ping timeout: 240 seconds]
<thibm> omfgwhofarted: in that case don't bother abouf EFI/legacy BIOS I guess
<{^_^}> [nixpkgs] @Ma27 pushed to release-20.03 « nixos/release-notes: fix minor spelling mistake in the Nextcloud section »: https://git.io/Jvhaj
<omfgwhofarted> being someone who is really just still getting used to even navigating *NIX systems, this certainly has been an exercise in frustration. i'm used to it though. i went through it with learning(ish?) arch about 7-8 years ago.
<omfgwhofarted> thibm: so enable EFI or just don't and stay with BIOS?
<energizer> it's common to use efi
<thibm> omfgwhofarted: in which mode do the installation system booted?
<omfgwhofarted> thibm: the installation media has been booting without the EFI enabled....but then i realized that the EFI option is there and wondered if it make sense to enable it.
<omfgwhofarted> woah...i just enabled EFI and booted the installation media.....its like a whole new world.........
<omfgwhofarted> not really, but boot splash screen was different haha
<omfgwhofarted> thibm: brb, gonna trudge through the manual setup one more time following the directions before i start slamming my head into my desk and begging for help again. ;-)
<thibm> omfgwhofarted: trying yourself is the best way to figure out :p especially in a VM. Yes, the bootloader is not the same in two modes
zeenk has quit [Quit: Konversation terminated!]
<thibm> ixxie: your function evaluates to an attrset. Look at https://nixos.wiki/wiki/Creating_a_NixOS_live_CD to build an ISO image (for instance) using your configuration
<thibm> note the -A paramater and the -I nixos-config parametre
evertedsphere has quit [Ping timeout: 264 seconds]
ATuin has joined #nixos
<ixxie> thibm: aaah so I need the -A as well as the -E
noudle has quit []
<hyper_ch> hmmmm, boot.initrd.ssh is now broken since the switch to OpenSSH :(
<thibm> ixxie: well, try to figure out what you want to do and how to do it with nix-build. Building things like ISO can appear like black magic, but it's not. The config.system.build.isoImage attribute path is defined in <nixpkgs/nixos>
<thibm> An the argument configuration in this file (<nixpkgs/nixos>/default.nix) uses <nixos-config>, thus using whatever you give in -I nixos-config
nschoe has joined #nixos
<freeman42x> I know I should not do this but... I want to test a generated .deb file installation on NixOS. Anyone know what I need to do that?
<thibm> I would grep .deb in nixpkgs to find examples
<thibm> The unpack phase should be something like "dpkg -x $src ./"
<omfgwhofarted> ehhh....think ima find a different IRC webclient real quick and reconnect. never been a huge kiwi fan.
<freeman42x> thibm, ah yeah, I see there is a nix dpkg package and I already tried it before
jgeerds has joined #nixos
m0rphism has joined #nixos
<freeman42x> I see it's looking in the wrong place, dunno what the fix would be though
<thibm> Well, I cannot help beyond that. Switching from .deb distros to pacman was a relief, switching to Nix was a pleasure
xelxebar has quit [Remote host closed the connection]
xelxebar has joined #nixos
<ixxie> thibm: I feel like I never properly understood the fundamentals of nix, so its even hard to follow your explanation
mallox has quit [Quit: WeeChat 2.8]
mallox has joined #nixos
<thibm> Well, I guess it takes time
<thibm> You should also explains what you are trying to do, instead of the problem you're facing (problem XY)
<thibm> like, I still don't know what's your objectif with your configuration file
o1lo01ol1o has joined #nixos
<thibm> I just guessed
fendor has joined #nixos
<ATuin> anyone having problems with stumpwm after sbcl was upgraded?
<ATuin> it takes ages to load modules now
<nschoe> Hi everyone, I´m trying to use Suckless st terminal in my system.environmentPackages. I´d like to apply a few patches to configure it. I see in the nix expression here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/st/default.nix that there is ´inherit patches´, and the derivation takes a ´patches ? []´ argument. How can I supply patches?
<{^_^}> [nixpkgs] @doronbehar opened pull request #84979 → nerdfonts: update.sh: parse HTML to generate shas → https://git.io/Jvhwl
<nschoe> Should ´patches´ contains a list of files? Or should I use `builtins.readFile`s, or something else?
johnjay has quit [Ping timeout: 250 seconds]
<thibm> nschoe: st.override { patches = [ your patches ]; }
<thibm> Yes, files, in any form
<thibm> (I mean anything that evaluates to a file)
duckfat has joined #nixos
omfgwhofarted has quit [Remote host closed the connection]
<nschoe> thibm, thanks for your answers. I figured I had to use st.override, but my question is: hsould I have `patches = [ builtins.readFile /path/to/patch1.diff builtins.readFile /path/to/patch2.diff ]` or `patches = [ /path/to/patch1.diff /path/to/patch2.diff ]` ?
<duckfat> alright, thibm, it's me, "omfgwhofarted". back from making coffee, gonna try a fresh install again with EFI enabled.
<thibm> You could also use nixpkgs.config.st.patches = [ things ]. But be aware that this is not the standard way to add patches. This had been added "manually" and is not usual
<thibm> nschoe: (builtins.readFile /file) can just be /fine. And then you don't need parenthesis
<thibm> */file
<thibm> Sorry, I was wrong
<thibm> builtins.readFile return a string. Here you need a file
freeman42x has quit [Ping timeout: 246 seconds]
<nschoe> thibm, oh right, that makes sense. So plain old /path/to/patch.diff
<nschoe> thibm, and this is the ¨best¨, correct way to add it, right? the thing about nixpkgs.config.st.patches, you said it was unconventional?
<thibm> Yes. Or fethcurl stuff, or whatever
<nschoe> ah yes, indeed.
<thibm> nschoe: both things are unconventional: having a patches argument, and adding `patches = config.st.patches or [];' in the pkgs st definition
<nschoe> thibm, ohhhh actually fetch url might be very interesting because that would allow to pull the patch directly from their website, automatically computing the name, etc... I like this :)
<thibm> (That links to nixpkgs.config)
<nschoe> thibm, oh? Both unconventional? What would be the ¨correct¨, conventional way then?
<thibm> nschoe: yes that's the point. Except if the patch is specific to nixpkgs, it's usually downloaded somewhere
<duckfat> dammit my machine is going nuts brb
<thibm> nschoe: usually one just uses st.overrideAttrs (old: { old.patches ++ [ the patches ]; })
<thibm> More verbose, but don't need anything special in the package file
duckfat has quit [Quit: The Lounge - https://thelounge.chat]
<nschoe> thibm, yes, I was planing to download the patch file in my home dir and use direct path, but this is better
<thibm> And there's no link to config.nixpkgs usually. I guess there was no consensus on how to use it
<nschoe> thibm, ah yes I see.
<thibm> So it's not much used
<nschoe> thibm, since st does have a ´patches´ argument, I think I´ll use it.
<thibm> sure
tpanum has quit [Read error: Connection reset by peer]
<nschoe> thibm, stupid question (yes I know I lack a lot of nixOS knowledge :/) the <package>.overrideAttrs function: is that the way to change the arguments in any derivation, especially when tyou have packages that have things like `withQt5 ? false`, or `widescreen ? true`, etc ?
tpanum has joined #nixos
<thibm> (I guess the packager did that because suckless things are configured at build time. So it needs a conf argument, which can be provided by nixpkgs.config.st.conf. I guess it's usuall to patch st, so the pacakger added the same thing for patches and libs)
<thibm> nschoe: no, this is .override
<srk> nschoe: overrideAttrs is for overriding attributes like src
<thibm> .override sets the function arguments. overrideAttrs sets the attributes
<nschoe> thibm, as for the conf thing, I tried this: I copied their config.def.h in my home dir, OI used st.override { conf = builtins.readFile /path/to/config.h } and it crashed and faild to build. I don get why as it was the default config.f file :/
<thibm> nschoe: same, remove readFile
<nschoe> thibm, okay for .override vs. overrideAttrs
<thibm> files are first-class citizen in Nix, you usually don't need to go through a string
<nschoe> thibm, ah! thanks for the PDF,. I´ll read this, it should help:)
<thibm> wait, I'm wrong (again). It expects a string
<nschoe> thibm, oh yes, so conf needs a file, not a string then.
<thibm> nschoe: but you're missing a ; before the }
<nschoe> thibm, no n I just wrote quickly on IRC, but I do have the ;
<thibm> OK
<nschoe> Hum, this is is weird. Well first let´s try to apply a patch with fetchurl
<thibm> How the build failed? Maybe your config was bad?
duckfat has joined #nixos
<nschoe> thibm, I don´t think so, since I straight copied their config.def.h, renamed it config.h and used it as-if. Precisely to test that I was able to override st. I tried to use the default .h file not to introduce my own errors.
<nschoe> Anyway I´m trying the patch first. One problem at a time.
<nschoe> I´ll let you know how it went
pbogdan has joined #nixos
kaushikc has joined #nixos
knupfer has joined #nixos
grumble has quit [Quit: even though the storm calmed down, the bitter end is just a matter of time]
chloekek has joined #nixos
duckfat has quit [Quit: The Lounge - https://thelounge.chat]
grumble has joined #nixos
<thibm> Just tried to build st with overriding to the default config, it worked.
<nschoe> thibm, hum I´ve just tried this: (st.override { patches = [ builtins.fetchurl { url = ¨http://xxx.diff¨; } ]; }) and nixos-rebuild fails with ¨cannot coerce a set to a string¨ :/
<nschoe> og apparently it was the quotes around the url ( url = ¨https://¨ vs url = http://). So I removed them, but now it fails with ¨cannot coerce the built-in function ´ftehcurl´to a string¨
rnhmjoj has quit [Changing host]
rnhmjoj has joined #nixos
rnhmjoj has joined #nixos
<thibm> nschoe: add parenthesis
<thibm> it's parsed as [ (builtins.fetchurl) ({...}) ]
<thibm> and fetchurl cannot be coerced to a string
<nschoe> Ah it worked!
<nschoe> Thanks!
<nschoe> And the patch actually works. Awesome, thanks
__monty__ has joined #nixos
<nschoe> Thx for sticking with me and helping ^^
linarcx has joined #nixos
<{^_^}> [nixpkgs] @ggreif opened pull request #84980 → compilers/ghc: grooming various versions → https://git.io/Jvhrm
<thibm> Well, I'm working right now but each iteration takes time, so I have a bit of extra time…
<nschoe> My gain :)
awatanabe[m] has joined #nixos
<nschoe> I have to fly now, I´ll be back later, probably with new issues. Thanks again :)
astrofog has joined #nixos
<{^_^}> [nixpkgs] @jtojnar merged pull request #84969 → mako: wrap with wrapGAppsHook → https://git.io/JvhRN
<{^_^}> [nixpkgs] @jtojnar pushed 3 commits to master: https://git.io/Jvhrn
work_ has joined #nixos
linarcx has quit [Ping timeout: 260 seconds]
pjt_014 has quit [Ping timeout: 265 seconds]
duckfat has joined #nixos
o1lo01ol_ has joined #nixos
o1lo01ol1o has quit [Ping timeout: 256 seconds]
<ixxie> thibm: my objective is to build a minimal iso with ssh and the build machine's ssh key as an autherized key; this is for a scripted kexec based conversion of a VM to a nixos machine
<{^_^}> [nixpkgs] @flokli merged pull request #84930 → nixos/release-notes/rl-2003.xml: add highlights → https://git.io/JvhsU
<{^_^}> [nixpkgs] @flokli pushed 3 commits to release-20.03: https://git.io/Jvhrz
<thibm> ixxie: the attributes config.system.build.isoImage of <nixpkgs/nixos> builds the ISO. It needs the NixOS configuration, which can be passed by a variable environment ($NIXOS_CONFIG) or a nix path (-I nixos-config=.. or even $NIX_PATH=nixos-config=...)
iyzsong has joined #nixos
<thibm> Or even given directly to the <nixpkgs/nixos> function
pbogdan has quit [Read error: Connection reset by peer]
pbogdan has joined #nixos
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/Jvhrr
<ixxie> thibm: I guess that much is clear, but the part I am not understanding is how to pass it as a string instead of having to save a file
<ixxie> thibm: I thought this was the idea with -E
<thibm> Well, easiest way is to build a file from the string (use writeText)
LysergicDreams has quit [Ping timeout: 256 seconds]
<thibm> You could also patch you file in the shell and invoke nix-build on the patched file
xelxebar has quit [Remote host closed the connection]
xelxebar has joined #nixos
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LysergicDreams has joined #nixos
<ixxie> well the string is in bash at that point, so I don't know how to pass it into the nix-build invocation
<ixxie> I guess I can live with the patching approach
<ixxie> its what I did now
<ixxie> but its a bit annoying saving a temporary file
<clever> ixxie: have you seen my kexec scripts?
<hyper_ch> clever's kexec scripts <3
<ixxie> clever: I've seen them a while back, and my approach is based on them
zupo has joined #nixos
<ixxie> clever: if they have been updated in the last year, I would love a link them
<ixxie> link to them*
<thibm> ixxie: quick answer: 'pkgs.writeText "file.nix" thestring'. But it's like patching a patch. You should see the big picture and how to implemnet it
<clever> ixxie: last modified 10 months ago
<clever> ixxie: line 69 may be your problem, it forcibly stops auto-start of sshd
johnjay has joined #nixos
<ixxie> aha! I think I understand what went wrong... at some point I forgot I really need to use your special kexec iso for this and tried to use the normal minimal iso, and now I ended up redoing this from scratch
<ixxie> but there isn't really a need for me to reinvent the wheel because you have everything needed there...
NightTrain has quit [Ping timeout: 260 seconds]
<clever> ixxie: the kexec tarball is meant to be used when you can already boot linux on a remote box, but cant boot a disk image
<pinkieval> I'm trying to run 'nix-shell -p nixpkgs-review --run "nixpkgs-review wip"' to contribute a patch on a small python package, but it allocates 1.8GB and then crashes because it's out of memory. Is this to be expected?
<clever> pinkieval: do you have any overlays setup?
<pinkieval> no
<clever> pinkieval: what happens with `nix-shell -p nixpkgs-review --arg config {} --arg overlays '[]' --run "nixpkgs-review wip"` ?
<ixxie> clever: this seems to be the case in hetzner cloud
<pinkieval> (uh also, it undid my local change to the tree)
<clever> pinkieval: `git status` ?
<pinkieval> one sec
<pinkieval> yeah your command crashes too
<{^_^}> [nixpkgs] @prusnak opened pull request #84981 → electron: fix wrapGAppsHook usage → https://git.io/Jvhrh
<thibm> clever: I'm wondering why are you asking if pinkieval has overlays?
<clever> pinkieval: what does dmesg say?
<clever> thibm: was thinking that nix-shell got stuck in a recursive loop
ottidmes has joined #nixos
<pinkieval> clever: dmesg says nothing
<clever> pinkieval: `git status` ?
mallox has quit [Quit: WeeChat 2.8]
mallox has joined #nixos
<pinkieval> clever: it undid my changes, so there are currently none
<clever> pinkieval: check `git reflog` to find the commit
<pinkieval> it's on commit 4e4e57bdd3bbfaaf27eab08c6502530c0f52d448 (master yesterday)
<pinkieval> I didn't commit or stage the change
<pinkieval> but I have the file somewhere else, that's not an issue
<clever> pinkieval: `git stash list` ?
johnjay has quit [Ping timeout: 260 seconds]
<pinkieval> but even with no change in the worktree, it OOMs
<pinkieval> oh yeah it was staged
<clever> pinkieval: oh, i think that step just naturally needs a lot of ram
<pinkieval> that might have been me, sorry
<pinkieval> oh yeah it was me
<pinkieval> how much RAM?
<clever> not sure, but enough to eval every single package in nixpkgs
<{^_^}> [nixpkgs] @7c6f434c merged pull request #84918 → [nixos-20.03] pingus: 0.7.6 -> unstable → https://git.io/Jvhqq
<{^_^}> [nixpkgs] @7c6f434c pushed 3 commits to release-20.03: https://git.io/JvhoW
cr4y1_ has joined #nixos
<pinkieval> let's try with some swap
<qyliss> I want to run sendmail from a systemd DynamicUser service. When it runs /run/wrappers/bin/sendmail, it fails here: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/security/wrappers/wrapper.c#L204
<qyliss> I'm guessing this is to do with setuid/setgid permissions/capabilities. What do I need to do to let a DynamicUser service run a wrapped binary?
fusion809 has joined #nixos
<yorick> > The getegid() function shall always be successful and no return value is reserved to indicate an error.
<{^_^}> error: syntax error, unexpected ')', at (string):296:13
<yorick> qyliss: do you know if it fails on the first or second branch of that ||?
<ixxie> clever, are those scripts licensed somehow?
<clever> ixxie: the kexec ones i wrote arent
<qyliss> yorick: it's the second branch
<qyliss> or, well, it's an or
<qyliss> so they both fail
<qyliss> the sendmail wrapper is setgid, but the wrapper process's effective gid doesn't match the wrapper program's gid
<qyliss> But I don't understand how it ever would
<qyliss> Oh, right, it happens because the binary is setgid
<ixxie> clever: oh wait there is an apache license file inside
<clever> there is?
<clever> ah, i forgot i added that, lol
<qyliss> I've tried adding cap_setgid and cap_setuid but that didn't do anything.
<MichaelRaskin> I would expect that systemd caps access to setuid/setgid binaries!
<puck> qyliss: is NoNewPrivileges set?
johnjay has joined #nixos
<qyliss> MichaelRaskin: hence adding those capabilities
<qyliss> puck: I don't think so?
<puck> set it to false
<puck> by default, DynamicUser sets it to true
<qyliss> aha!
<qyliss> will try that
<puck> which blocks setuid/setgid
<puck> oh
<puck> > Furthermore NoNewPrivileges= and RestrictSUIDSGID= are implicitly enabled (and cannot be disabled)
<puck> :v
<{^_^}> error: syntax error, unexpected '=', expecting ')', at (string):296:28
<qyliss> I see
<qyliss> so I just can't sendmail from a DynamicUser service?
<puck> .. apparently?
<MichaelRaskin> «implicitly enabled» — wow, I fully agree with systemd defaults on something? — «and cannot be disabled» — ah no
<MichaelRaskin> Well, you could have a localhost-only daemon…
<MichaelRaskin> Hopefully you would be able to connect to it
jakobrs has joined #nixos
<puck> qyliss: so
<qyliss> I don't really want to write a mail daemon
<puck> > We locked this down, since there are some (mostly theoretical) ways to create a suid binary under the dynamic user id and have it stick around when we don't turn off suid handling.
<{^_^}> error: syntax error, unexpected ',', expecting ')', at (string):296:20
<jakobrs> Is there any syntactic sugar for builtins.elemAt?
<qyliss> jakobrs: I don't believe so
<qyliss> it's not a hugely common operation though
<MichaelRaskin> qyliss: I believe there are some existing ones, though
<jakobrs> Yeah, apparently it (builtins.elemAt) wasn't even added before Nix 1.2
thibm has quit [Quit: WeeChat 2.6]
yopatate[m] has joined #nixos
<{^_^}> [nixpkgs] @globin pushed 3 commits to structured-attrs: https://git.io/Jvhod
astrofog has quit [Quit: Quite]
<yourfate> so, do you usually split configs for different servcies into separate files? like I want to set up nexcloud, so I'd put the config for that and the database it uses into a separate file?
CRTified has quit [Ping timeout: 250 seconds]
<pinkieval> clever: the answer seems to be about a little below 6GB
michaelpj[m] has joined #nixos
<clever> yourfate: you can just add more files to the imports list, and nixos will merge the files for you
benedikt93 has quit [Quit: benedikt93]
<{^_^}> [nixpkgs] @endocrimes opened pull request #84982 → nomad: 0.10.5 -> 0.11.0 → https://git.io/Jvhox
<ixxie> hmm is there a function to read a string from an env var?
<qyliss> MichaelRaskin: I suppose I could do local SMTP
<MichaelRaskin> > builtins.getEnv
<{^_^}> <PRIMOP>
benedikt93 has joined #nixos
<yourfate> clever: yes, I've done that before, I just wanted to know if it's good practice
<yourfate> I for example made a file with all the packages I want installed
<clever> yourfate: i try to keep everything split up, and all in the imports list
srxl[m] has joined #nixos
<yourfate> do you make the config dir user writable?
<clever> yourfate: i just use sudo
<clever> yourfate: this file for example, sets a bunch of settings including systemPackages
<yourfate> is there a minimal example to get nextcloud set up with nginx and let's encrypt certs?
<ixxie> thanks MichaelRaskin
<yorick> jakobrs: let __mul = builtins.elemAt; in [ 1 2 3 ] * 1
<jakobrs> you can do that?
<jakobrs> probably not a good idea though
<clever> jakobrs: * is just an alias to __mul
<jakobrs> > let __mul = builtins.elemAt; in [ 1 2 3 ] * 1
<{^_^}> 2
<yorick> you can use __div if you like that better
fusion809 has quit [Quit: Leaving]
<jakobrs> How do I check if a path was produced by a fixed-output derivation?
<clever> jakobrs: `nix-store -q --deriver` and `nix show-derivation`
<srxl[m]> I'm currently trying to package an Elixir application (elixir-ls), but part of it's build process is to call a custom-defined Mix task, which requires all of the application's dependencies to be installed with Mix. How can I package this under nixpkgs?
<jakobrs> In that case, the default empty directory used by services.httpd when documentRoot is not set is *not* a fixed-output derivation
<jakobrs> Should it be one?
<jakobrs> > pkgs.runCommand "empty" { preferLocalBuilt = true; } "mkdir -p $out"
<{^_^}> "<derivation /nix/store/bv60c7xj7g7bjhrs6c3m8314fijh35h9-empty.drv>"
<{^_^}> [nix] @domenkozar merged pull request #3447 → improve toFile error message when containing potential drv path → https://git.io/JvSWQ
<{^_^}> [nix] @domenkozar pushed 2 commits to master: https://git.io/JvhKn
fusion809 has joined #nixos
johnjay has quit [Ping timeout: 265 seconds]
freeman42x has joined #nixos
fusion809 has quit [Remote host closed the connection]
johnjay has joined #nixos
fusion809 has joined #nixos
yopatate[m] has left #nixos ["User left"]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84984 → strawberry: 0.6.8 -> 0.6.9 → https://git.io/JvhKi
<yourfate> on linuxes I used so far every user also had a group named after that user, it seems like that's not the case on nixos?
<yourfate> (by default that is)
<xfix> yeah, NixOS defaults to using `users` group
<{^_^}> [nixpkgs] @junjihashimoto closed pull request #83605 → Ignore error of symlink → https://git.io/JvQcG
<xfix> having a group named after that user is known as "user private groups"
evertedsphere has joined #nixos
jordan[m] has joined #nixos
<yourfate> I did it differently, I created a "configurators" group that now owns /etc/nixos
<yourfate> and my user is in it
<yourfate> which makes remote editing easier for me with emacs tramp mode, as sudo with it over ssh is annoying
<xfix> from what i understand, i don't think NixOS has support user private groups, but it seems like configurators group is good enough for you, so it's fine :)
<xfix> has support for user private groups *
jordan[m] is now known as jordandoyle
jordandoyle has joined #nixos
jordandoyle has joined #nixos
jordandoyle has quit [Changing host]
<jakobrs> `nixos-rebuild test` creates a result symlink in the current directory,but `nixos-rebuild switch` does not. Is this a bug?
<{^_^}> [nixpkgs] @junjihashimoto opened pull request #84985 → Fix the error of making symlink in setupCompilerEnvironmentPhase. → https://git.io/Jvh6T
<xfix> no
<jakobrs> Why does nixos-rebuild test create a symlink then?
<xfix> to avoid GC
<jakobrs> Doesn't nixos-rebuild test change /run/current-system?
<srk> jakobrs: switch creates /run/current-system symlink
<jakobrs> So does test
nschoe has quit [Remote host closed the connection]
<jakobrs> According to the manpage, the only difference between them is that one does not add it to the grub boot menu
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84986 → strace: 5.5 -> 5.6 → https://git.io/Jvh6G
nschoe has joined #nixos
<{^_^}> [nixpkgs] @sikmir opened pull request #84987 → gpsbabel-gui: init at 1.6.0 → https://git.io/Jvh6n
<srk> TIL!
* srk never used test
<jakobrs> You might be thinking of `nixos-rebuild build`
<jakobrs> I like test because I don't get a dozen separate boot entries when trying to get something to work
<srk> yeah, makes sense
pbogdan has quit [Ping timeout: 258 seconds]
<jakobrs> And then I can "finalise" the changes using a single nixos-rebuild build (or /run/current-system/bin/switch-to-configuration switch)
<jordandoyle> hey, anyone managed to get KDE global menus working on NixOS? :) Managed to get appmenu-gtk-module building but getting "Settings schema 'org.appmenu.gtk-module' is not installed" from every application even with the XDG_DATA_DIRS set, don't really want to put more hours into it if this isn't the big fix to all my problems 😁
<jtojnar> jordan are you setting it correctly? Nix moves the schemas to a subdirectory to avoid conflicts
<xfix> I guess it may be a bug, but at this point it's more of a feature
<jakobrs> Found NixOS/nixpkgs
<jakobrs> NixOS/nixpkgs#12665
<{^_^}> https://github.com/NixOS/nixpkgs/issues/12665 (by peti, 4 years ago, closed): nixos-rebuild pollutes current directory with "result" symlink
<xfix> for nixos-rebuild.sh, test behaves more like build
<xfix> than switch
<jakobrs> Although that one is for boot and not test
<xfix> elif [ "$action" = test -o "$action" = build -o "$action" = dry-build -o "$action" = dry-activate ]; then
<evertedsphere> how do i debug a "cannot find file or directory" error when trying to run an executable? i call gradle and it calls aapt2 and the latter fails for some reason
<evertedsphere> strace?
<evertedsphere> more to the point does anyone know how to directly use gradle to build android apps on nixos (without android-studio that is)
<clever> evertedsphere: you probably need to use the copy from nixpkgs or patchelf the binary
<jakobrs> Argument handling ... in bash.
<jakobrs> I feel sorry for whoever maintains nixos-rebuild.sh
<evertedsphere> clever: i see
<evertedsphere> i also tried the "official" gradle-less method described in the nixpkgs docs but that failed with a ridiculous error from ant
<evertedsphere> saying it couldn't find an xml file that clearly existed in the nix store
<evertedsphere> does Sander van der Burg hang around here?
<bqv[m]> Interested in disnix?
<bqv[m]> Me too.
<evertedsphere> waaaaait. it worked this time
<evertedsphere> bqv[m]: yes! but this time around it's not that, it's bc they wrote the android-on-nix stuff in nixpkgs afaict
<evertedsphere> i would like to play with disnix(os) though
<bqv[m]> Ah, ok
<jakobrs> Why was it so important to remove the perl dependency from nixos?
<jakobrs> Reading throught nixos-rebuild.sh I feel like pretty much anything would be better than bash
<clever> jakobrs: ive been wanting to be able to remove perl and python entirely from nixos
<clever> if nothing depends on either, you can reduce the minimal closure size further
<bqv[m]> I think python for tests is worth it
michaelpj[m] is now known as michaelpj[m]1
CRTified has joined #nixos
<xfix> tests are fine, a NixOS installation doesn't have to run tests
<bqv[m]> Everythink else, sure, but bash is pain
michaelpj[m]1 is now known as michaelpj[m]2
johnjay has quit [Ping timeout: 256 seconds]
<bqv[m]> Exactly
pbogdan has joined #nixos
zeenk has joined #nixos
johnjay has joined #nixos
CRTified has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84988 → samba: 4.12.0 -> 4.12.1 → https://git.io/Jvh67
<{^_^}> [nixpkgs] @Ma27 merged pull request #84986 → strace: 5.5 -> 5.6 → https://git.io/Jvh6G
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/Jvh65
<evertedsphere> wait. instead of my envrc shenanigans... couldn't i just niv to pin everything
johnjay has quit [Ping timeout: 250 seconds]
wavirc22 has joined #nixos
<jakobrs> Around line 418 in nixos-rebuild.sh
<jakobrs> Is there not a chance of a race condition if someone replaces the out link before pathToConfig="$(readlink -f $outLink)"
<clever> jakobrs: probably
<jakobrs> Oh, right, temp dirs probably have 700 permissions
michaelpj has quit [Quit: ZNC 1.7.5 - https://znc.in]
<jakobrs> Could still happen with `build, test, dry-build and dry-activate`, though
johnjay has joined #nixos
<jakobrs> I'm not sure if that's as much of a problem, however
chagra has quit [Ping timeout: 240 seconds]
<nh2> anybody know what I have to install to get syscall/libc manpages on NixOS? E.g. `man 2 recv`
<yourfate> anyone set up nextcloud on their nixos and wants to share the config?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jakobrs> nh2: Something like documentation.dev.enable = true; maybe
<infinisil> nh2: I think it's the `manpages` package
<nh2> I'll try those two out, one moment!
<{^_^}> [nixpkgs] @ProgVal opened pull request #84989 → python: limnoria: Add optional dependencies and enable tests. → https://git.io/JvhiG
<jakobrs> I might open an issue
domogled has quit [Remote host closed the connection]
domogled has joined #nixos
<{^_^}> [nixpkgs] @sorki opened pull request #84990 → spring: 104.0.1-1477-g8ecf38a -> 104.0.1-1480-gc9377ac → https://git.io/Jvhic
johnjay has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @jluttine opened pull request #84991 → liblinphone: fix missing vcard_grammar → https://git.io/JvhiB
<{^_^}> [nixpkgs] @Ma27 merged pull request #84940 → roundcube: use pspell for spellchecking → https://git.io/Jvhny
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/Jvhi0
piezoid has joined #nixos
o1lo01ol_ has quit [Remote host closed the connection]
duckfat has quit [Quit: duckfat]
lorimer has joined #nixos
<{^_^}> [nixpkgs] @sikmir opened pull request #84992 → gpxsee: 7.27 -> 7.28 → https://git.io/JvhiV
cosimone has joined #nixos
johnjay has joined #nixos
zarel has quit [Ping timeout: 264 seconds]
pbb has quit [Ping timeout: 265 seconds]
<jakobrs> Fun fact: You can do nixos-rebuild test --rollback, but not nixos-rebuild dry-activate --rollback
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
zarel has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #82507 → hydra: wrap executables with hydra env vars → https://git.io/Jvifk
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JvhiS
<{^_^}> [nixpkgs] @Ma27 closed pull request #84977 → nixos/hydra: wrap systemPackages with hydra envvars → https://git.io/Jvhg2
knupfer has quit [Ping timeout: 256 seconds]
palo has quit [Quit: WeeChat 2.7.1]
zeenk has quit [Quit: Konversation terminated!]
Naptra has quit [Quit: Leaving]
<jakobrs> I'm pretty much finished with the patch; should I submit it?
johnjay has quit [Ping timeout: 265 seconds]
<jakobrs> Alternatively I could open an issue asking if how it behaves currently is really correct and if it should be fixed
<{^_^}> [nixpkgs] @marsam merged pull request #84962 → bazel-buildtools: 1.0.0 -> 2.2.1 → https://git.io/Jvh47
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jvhi7
johnjay has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #84810 → jetbrains: update → https://git.io/Jvp34
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/Jvhi5
<{^_^}> [nixpkgs] @talyz opened pull request #84993 → php.extensions.pdo_mysql: Set default socket location → https://git.io/Jvhid
<esclear> I'm wondering: Is there a way to continue a failed build, if nix-build was run with the --keep-failed parameter? I.e. can one force nix to use the same build directory?
<clever> esclear: that wouldnt be pure, but you can continue it under nix-shell
<clever> esclear: run `nix-shell` on the drv that failed, then cd into what --keep-failed left behind and run `make`
<{^_^}> [nixpkgs] @domenkozar merged pull request #84990 → spring: 104.0.1-1477-g8ecf38a -> 104.0.1-1480-gc9377ac → https://git.io/Jvhic
<{^_^}> [nixpkgs] @domenkozar pushed 3 commits to master: https://git.io/JvhiN
<esclear> I'm currently building tensorflow and I ran out out memory >1 hour into the build. So yeah, for really long jobs this is pretty painful.
vika_nezrimaya is now known as kisik21
<esclear> clever: Thanks, I might try that if that happens again.
kisik21 is now known as vika_nezrimaya
<clever> esclear: if you want the product in /nix/store, then you have to restart the entire build from scratch
<esclear> Aww, okay :/
johnjay has quit [Ping timeout: 256 seconds]
* niso wonders if it's okay to push "general-used-optiosn" rather than "rfc-compliant options"
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84994 → spidermonkey_68: 68.4.2 -> 68.7.0 → https://git.io/JvhPe
o1lo01ol1o has joined #nixos
<jakobrs> I need instructions: Should I open an issue, a pull request, or neither?
o1lo01ol1o has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
<clever> jakobrs: id say open a pr, and people can comment on if it should be fixed or not
<jakobrs> I'll do that then
<jakobrs> Note that I haven't been able to test the flake-specific part
morgrimm has joined #nixos
eoli3n__ has quit [Ping timeout: 256 seconds]
pbb has joined #nixos
johnjay has joined #nixos
dermetfan has joined #nixos
kaliumxyz has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
aveltras has joined #nixos
elux has joined #nixos
<elux> hey all
<elux> just wondering if anyone has had success installing linux 5.6.2 with unstable channel?
morgrimm has quit [Ping timeout: 256 seconds]
jrddunbr has joined #nixos
pbb has quit [Remote host closed the connection]
<elux> make: *** [../Makefile:180: sub-make] Error 2 builder for '/nix/store/m8sc2w8dk2jj4vdzrs6xa0djk7vk394i-linux-5.6.2.drv' failed with exit code 2 error: build of '/nix/store/7m2z01k3ldc9yqkylh54zasjhyizhdw4-nixos-system-pakd-20.09pre220429.9b0d2f3fd15.drv' failed
zeenk has joined #nixos
<jluttine> my nixos-rebuild started suddenly giving stack overflow, but --show-trace doesn't show any trace. perhaps some nix file got corrupted while my disk got full? any ideas what could be the reason? i was expecting to see some trace at least.. https://github.com/NixOS/nixpkgs/issues/84995
<{^_^}> #84995 (by jluttine, 8 minutes ago, open): nixos-rebuild: stack overflow without trace
lukegb has joined #nixos
<lukegb> ,channels
<{^_^}> Largest Nix-related channels: #nixos, #nixos-dev, #nix-darwin, #nixos-chat, #nixos-aarch64, #nixos-wiki, #nixos-borg, #nixos-security, #nix-core
<{^_^}> [nixpkgs] @jakobrs opened pull request #84996 → nixos/installer: Make nixos-rebuild test and dry-activate not create a symlink in the current directory → https://git.io/JvhPu
<jakobrs> ^ This is the pr
dermetfan has quit [Ping timeout: 265 seconds]
zupo_ has joined #nixos
<maddo> A bit of a niche question: I'm thinking of selfhosting an email server and I found this https://gitlab.com/simple-nixos-mailserver/nixos-mailserver
nino34 has joined #nixos
<maddo> is anyone using it here and if yes are there any opinions about it?
morgrimm has joined #nixos
<simpson> TIL, interesting.
<morgrimm> Morning folks - what would be the best way to override parts of a fetcher?
<morgrimm> For example, overriding the GH base url for the github fetcher
<gchristensen> maddo: a bunch of people surely are, though not sure I could point to them :)
<morgrimm> I guess I can just override the args actually, couldn't I - since it comes with a githubBase arg
<lukegb> hooray, I managed to configure my rube-goldberg-machine IRC setup to get back in here
jakobrs has left #nixos ["WeeChat 2.7.1"]
klntsky has quit [Ping timeout: 240 seconds]
<infinisil> maddo: I'm using it! Pretty happy with it :)
<maddo> gchristensen haven't looked deeply into it yet for time-constraints but it seems less of a headache to setup (tho I'm fairly ignorant of the modern postfix alternatives, folks have been claiming about OpenSMTPD)
<gchristensen> yeah :) give it a go!
klntsky has joined #nixos
rtjure_ has quit [Quit: ZNC 1.6.5 - http://znc.in]
ngiger has joined #nixos
numkem has joined #nixos
<maddo> I'm still fairly new to the whole Nix world (asked a question here sometime ago about installing Nix on a NAS and got tremendous help). Now I only need to switch my desktop to full-time nix
michaelpj[m]2 is now known as michaelpj
rtjure has joined #nixos
<maddo> btw nix seems to be a very hassle-free way to manage servers without necessarily going down the docker way, so I'm quite happy about it. I'll hold my judgement for the desktop part as I've yet to fully switch to it tho
<maddo> so thank you everyone!
pbb has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
civodul has joined #nixos
chagra has joined #nixos
<{^_^}> [nixpkgs] @jcpetruzza opened pull request #84997 → apfs-fuse: Let mount find apfs-fuse → https://git.io/JvhXe
ottidmes has quit [Quit: WeeChat 2.7.1]
ottidmes has joined #nixos
<nschoe> Hi everyone, I´m trying to use Suckless st terminal in my systemPackages. I can successfuly override it and apply patches that I get with fetchurl from suckless.org. This works perfectly. But now I´m trying to use the `conf` argument to use my own config.h file (derivation is here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/st/default.nix). So I currently have something like: st.override { conf = (builtins.readFil
<nschoe> e /home/nschoe/.config/st/config.h) ; ... } but when it fails and canot build. Reporting lots of errors. The thing is: the config.g file I´m using is a strsigth copy of their config.def.h, unmodified.
<nschoe> So I am wondering if maybe I messed up nix syntaxt with the builtind.readFile or something
cizra has quit [Read error: Connection reset by peer]
nickchow[m] has joined #nixos
betaboon has quit [Ping timeout: 265 seconds]
ecou[m] has joined #nixos
dermetfan has joined #nixos
betaboon has joined #nixos
nickchow[m] is now known as kcin[m]
captjakk has joined #nixos
<ixxie> clever, somehow the kexeced NixOS is asking for a password when I try and login again
<clever> ixxie: what config did you build it from?
<DamienCassou> hi
<DamienCassou> I need to install 2 instances of couchdb on my nixos laptop. Can I do that with plain services? Should I use nixops to manage docker/podman containers?
<julm> maddo: if you want another example of multi-domains mailserver setup to cherry-pick from, here's mine using postfix+dovecot+rspamd+openldap+knot: https://git.sourcephile.fr/sourcephile-nix.git/tree/HEAD:/servers/mermet
<clever> DamienCassou: you can also use nixos containers in configuration.nix
<ixxie> clever: basically based it off of yours https://pastebin.com/QbTuLHeV
<srxl[m]> Did the conversations in https://github.com/NixOS/nixpkgs/issues/53834 ever end up going anywhere?
<{^_^}> #53834 (by k32, 1 year ago, closed): [Suggestion] State of the Erlang ecosystem in NixOS
<clever> ixxie: and its asking for a pw over ssh? on which user?
<ixxie> clever: oh, just found a bug in the script so I think I forgot to declare the ssh_key env var so that is probably the issue
<DamienCassou> clever: you mean container.couchdb1 and container.couchdb2?
<clever> DamienCassou: yeah
<DamienCassou> any recommendation? Any pros/cons for each approach?
<clever> DamienCassou: nixos containers are probably the simplest
<DamienCassou> good, thank you
<DamienCassou> I will investigate that first then
benedikt93 has quit [Quit: benedikt93]
benedikt93 has joined #nixos
dermetfan has quit [Ping timeout: 246 seconds]
nino34_ has joined #nixos
nino34 has quit [Ping timeout: 256 seconds]
pbb has quit [Quit: No Ping reply in 210 seconds.]
pbb has joined #nixos
phirsch has joined #nixos
work_ has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84998 → uftp: 4.10.1 -> 4.10.2 → https://git.io/Jvh1Y
<evertedsphere> does "nixos containers" mean lxc/lxd?
nino34 has joined #nixos
<bqv[m]> no
<bqv[m]> internally it currently uses nspawn
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ambroisie has quit [Ping timeout: 265 seconds]
nino34_ has quit [Ping timeout: 260 seconds]
<amf> tried `nix-env -i perl5.30.0-IO-Socket-SSL && perl -MIO::Socket::SSL -le 0`, but perl can't find it in @INC... is there a better way to install perl modules? I do have unstable in my user nix-channels and wondering if that is interferring
<amf> as `nix-env -i perl` installs 5.31 but i don't know how to ask for 5.30
<aanderse> amf: perl.withPackages (p: with p; [ SocketSSL ]) will give you a perl interpreter with perlPackages.SocketSSL installed
<amf> aanderse: (still quite new) how do i eval that?
<ixxie> clever: looks like its still asking the pw... its the root user :/
<clever> ixxie: how did you authorize the ssh key?
<jordandoyle> anyone with hydra knowledge know when nixos-unstable will next be released? :P trying to navigate it not really sure where to look, need to know when I can nix-channel --update and enable my nixos-hardware config again since acpi_call is currently broken in unstable (but fixed in master)
<clever> jordandoyle: https://status.nixos.org/
zarel has quit [Ping timeout: 260 seconds]
<clever> jordandoyle: when the job linked in here goes green
<jordandoyle> gave up with the overlay heh, couldn't figure out how to override a linuxPackage
mallox has quit [Quit: WeeChat 2.8]
<jordandoyle> ah lovely that's what i was looking for, thanks :)
zarel has joined #nixos
mallox has joined #nixos
nino34 has quit [Quit: Leaving]
<jluttine> nixos-unstable broken for anyone else? https://github.com/NixOS/nixpkgs/issues/84995#issuecomment-612433169
mallox has quit [Client Quit]
mallox has joined #nixos
knupfer has joined #nixos
zeorin36 has joined #nixos
waleee-cl has joined #nixos
<zeorin36> Hey all! New NixOS user here. I'm setting up my fonts and I can't for the life of me get _rid_ of Noto Color Emoji.
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<zeorin36> I've disabled fonts.enableDefaultFonts (manually adding all the fonts that that would have enabled _except noto-fonts-emoji).
<waleee-cl> zeorin36: in your user enivronment? Maybee .fonts or .local/share/fonts related, I'd go with one of the fc-* commands
<waleee-cl> s/Maybee/Maybe/
<ixxie> clever: I based it on the commented line in your template, but tries to import the ssh key from an env var: https://pastebin.com/KYywryjA
<aanderse> amf: the best answer depends on what you're doing. perl development?
<clever> ixxie: if you watch the build output, you should see it building a root-authorized_keys file, double-check the contents to make sure they are correct
<zeorin36> But it's still there after a rebuild: `fc-match 'Noto Color Emoji'` returns `NotoColorEmoji.ttf: "Noto Color Emoji" "Regular"` If I set `FC_DEBUG=1` when running it, it tells me that the matched file is at `file: "/nix/store/7whisf45mza1729ll67c9g2nqa27bndf-noto-fonts-emoji-2018-08-10-unicode11/share/fonts/noto/NotoColorEmoji.ttf"(w)`, so it's
<zeorin36> definitly something from the nix store.
<zeorin36> `nix why-depends /run/current-system nixpkgs.noto-fonts-emoji`: https://pastebin.com/KmHmX6uP
<MichaelRaskin> I wonder if it is Fontconfig cache…
<MichaelRaskin> Ah no, still in config
<zeorin36> I'm not sure how to interpret the output of why-depends.
<{^_^}> [nixpkgs] @maxeaubrey opened pull request #84999 → pico-8: init at 0.1.12c → https://git.io/Jvh1A
<MichaelRaskin> Hm
<vika_nezrimaya> How to deduplicate a list in Nixlang? I have a list of strings and sometimes strings might be repeatedd
<vika_nezrimaya> I need each string to appear only once in a list
<MichaelRaskin> https://nixos.org/nixos/options.html#emoji fonts.fontconfig.defaultFonts.emoji
eof has quit [Quit: eof]
<zeorin36> That's set to `[ "Twitter Color Emoji" ]`
<aanderse> amf: if you just want a quick and easy shell which has that perl in it try something like this:
<aanderse> Dumper DBDmysql DBI TermReadKey ])'
<aanderse> nix-shell -p 'perl.withPackages (p: with p; [ Data
gustavderdrache has joined #nixos
<MichaelRaskin> zeorin36: try setting it with mkForce
<MichaelRaskin> Just setting _appends_ lists
eof has joined #nixos
<zeorin36> from `twemoji-color-font`, not `twitter-color-emoji`, because the latter *installs `noto-fonts-emoji`*' too
<zeorin36> I see. Hmm.
<MichaelRaskin> Hmmm
<MichaelRaskin> Ouch
<MichaelRaskin> if enableDefaultFonts is true, noto-fonts-emoji is included…
<clever> MichaelRaskin: the default value is "Noto Color Emoji" so if you simply `fonts.fontconfig.defaultFonts.emoji = [];` it will loose the default value
<clever> MichaelRaskin: any non-default value, causes the default to be list
<MichaelRaskin> I guess you can set it to false and add the other default fonts…
<ixxie> I'm trying to delete the old build, but it nix-store --delete says its 'still alive'... how do I figure out where its used?
<zeorin36> Would that need to be `mkForce [ "Twitter Color Emoji" ]` or `mkForce "Twitter Color Emoji"`
<clever> ixxie: nix-store -q --roots
<clever> zeorin36: i think you just want `= [ "Twitter Color Emoji" ]`
<clever> zeorin36: you can confirm using nixos-option
<zeorin36> clever that's what it already is
<clever> ixxie: also, why are you trying to delete the file?
fenedor has joined #nixos
<clever> zeorin36: can you confirm the final value, with nixos-option?
<MichaelRaskin> vika_nezrimaya: Argh. There is lib.uniqList and lib.unique
<zeorin36> I don't like the Noto Emoji. Some websites will explicitly put Noto Color Emoji in their font stack (since it's the default on many Android devices). If that's the case, fontconfig will match Noto Color Emoji over Twitter Color Emoji
<zeorin36> But if it's not installed, then it will have to use Twitter Color Emoji.
<zeorin36> Also for some reason fontconfig is preferring Noto Color Emoji over Twitter Color Emoji atm.
<zeorin36> Even for other emoji matches
<MichaelRaskin> vika_nezrimaya: the first one is deprecated because of n^2 complexity, but the second _also_ has n^2 complexity.
<vika_nezrimaya> lol
ZoomZoomZoom has joined #nixos
<vika_nezrimaya> if I have two lists, how can I get a list of all stuff that's at least in one list?
<vika_nezrimaya> can it be less complex possibly?
<MichaelRaskin> Do you need order?
konobi has quit [Remote host closed the connection]
<vika_nezrimaya> nope
<amf> aanderse: oh neat, very helpful, thanks!!
<vika_nezrimaya> i'm gonna be generating an attribute set from them anyway
fendor has quit [Ping timeout: 264 seconds]
<bqv> then just concat them
<vika_nezrimaya> duplicates
<ZoomZoomZoom> Hey, could anyone please merge #84687? Need it a lot for update before the week is started.
<{^_^}> https://github.com/NixOS/nixpkgs/pull/84687 (by jonringer, 3 days ago, open): linuxPackages_testing_bcachefs.fwts-efi-runtime: remove failing patch
<bqv> so?
<clever> vika_nezrimaya: just concat everything up and listToAttrs
<MichaelRaskin> Maybe just generate the attrsets first and // them
<clever> vika_nezrimaya: the duplicates will be ignored
Nazral has joined #nixos
<clever> vika_nezrimaya: + and listToAttrs is probably cheaper then //
<vika_nezrimaya> ok great
zupo_ has joined #nixos
<aanderse> amf: np :)
<Nazral> Hi, sorry for the basic question but I am trying to install elixir with nix-env and I only get version 1.9.2 despite https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/interpreters/elixir having version 1.10.2 ready, I did update the channel
<nschoe> Hi again, where can I see in what orders the ¨phases¨ (I believe this is the term) are run in stdenv.mkDerivation?
zupo_ has quit [Client Quit]
<zeorin36> clever: `nixos-option fonts.fontconfig.defaultFonts.emoji`: https://pastebin.com/UQ7XaDXq
<gchristensen> nschoe: ^
<vika_nezrimaya> clever: oops, I meant listToAttrs (map f list) where list shouldn't contain duplicates
<vika_nezrimaya> can it be somehow rewritten maybe to be more efficient if a list contains duplicates?
<clever> zeorin36: yeah, it no longer contains noto
<nschoe> I´ve finally managed to override the `conf` argument ins st (https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/st/default.nix) but now the `pactches` are not applied. So I believe this is because they are applied before the `preBuild` which must override the config.g file again.
<nschoe> gchristensen, thanks.
<gchristensen> yep!
<vika_nezrimaya> f returns name: { inherit name; value = f' name; }
<nschoe> ah yes patchPhase is run before preBuild ^^
<ixxie> clever: I see a root-authorized-keys.drv
<clever> ixxie: run nix-store -r on that, then look at the result
<zeorin36> `FC_DEBUG=1 fc-match 'emoji'`: https://pastebin.com/rmmAsF4H
ambroisie has joined #nixos
<ixxie> clever: yeah seems to be empty :/
<clever> ixxie: then the getEnv didnt work right, repeat until it does show up
<zeorin36> `fc-list | grep -i emoji`: https://pastebin.com/wLsLdP20
<nschoe> gchristensen, thanks for the link. Since patchPhase is run immediately after unpackPhase, is it wise to hijack unpackPhase to copy the config.h file before the patches are applied? Otherwise, is there a way I can ¨chain¨ the .override calls? Somethin like ((st.override {conf = ...}).override { patches = ...})?
<vika_nezrimaya> attr1: attr2: listToAttrs (map (name: { inherit name; value = { attr1 = attr1.${name} or null; attr2 = attr2.${name} or null; }; }) dedup (builtins.concatLists (map builtins.attrNames [attr1 attr2])) - if there are duplicates will there may or may not be time wasted on computing them. Since Nix is lazy I assume there won't be a lot of time wasted but maybe it can be optimized?
<vika_nezrimaya> assuming dedup is a function that somehow deduplicates lists
<vika_nezrimaya> but can be replaced with no-op for testing
<vika_nezrimaya> I'm a bit confused now >.<
<gchristensen> nschoe: how about prePatch ?
chagra has quit [Ping timeout: 260 seconds]
<MichaelRaskin> vika_nezrimaya: just how expensive is your mapped function?
<MichaelRaskin> Attrset construction is probably the cheapest way of deduplicating anyway
<vika_nezrimaya> well since Nix is lazy I don't assume it'll be too big
<nschoe> gchristensen, -_- I had not seen this. I just saw the first list, did not scroll down. Sorry :/ That´s what I am looking for indeed.
<gchristensen> no worries! :)
<vika_nezrimaya> it's assigning two values comparable to whole NixOS configurations to two attributes
<vika_nezrimaya> and then it constructs a script mentioning these two values' inner attribute
<vika_nezrimaya> so it might be comparabl to evaluating a NixOS config twice?
<vika_nezrimaya> I'm not good at profiling Nixlang
* gchristensen isn't sure anyone is great at it
zupo has joined #nixos
<vika_nezrimaya> I'm just hoping Nix is lazy enough
<srxl[m]> How do I set the interpreter on a shell script in a derivation?
<srxl[m]> Right now I'm just using sed to replace the whole first line which doesn't feel right
<vika_nezrimaya> I seriously doubt it'll need to evaluate the value when doing builtins.listToAttrs
<gchristensen> srxl[m]: what is the first line?
<symphorien> srxl[m]: maybe you can use patchShebangs ?
<srxl[m]> what package provides that?
jasom has quit [Quit: WeeChat 2.5]
<clever> srxl[m]: its part of the stdenv, so all derivations have it
<srxl[m]> Oh, cool
CptCaptain has joined #nixos
<srxl[m]> Yep, that one worked
<zeorin36> clever: just did a garbage collection without deleting old generations, and it's still there.
<CptCaptain> Is there a way to concatenate or combine paths in Nix?
zaeph1 has joined #nixos
chagra has joined #nixos
<CptCaptain> Or is converting a string to a path the only way?
<clever> CptCaptain: path + string results in a path
<clever> CptCaptain: so you can do ./. + "/foo}
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zaeph has quit [Ping timeout: 256 seconds]
<vika_nezrimaya> Nix quiz, part i-don-t-know: error: path '/nix/store/<hash>-attribute' is not valid on nix copy --to $mountPoint $FLAKE#attribute - why? :3
<vika_nezrimaya> am I not understanding how nix-copy works or is nix-copy bugged?
<clever> vika_nezrimaya: try `--to local?root=/mnt` ?
<vika_nezrimaya> clever: nope!
<vika_nezrimaya> same err
ATuin has quit [Ping timeout: 265 seconds]
<clever> vika_nezrimaya: probably a bug then
<vika_nezrimaya> I've encountered a similar issue and reported it, might be related
zupo_ has joined #nixos
fenedor is now known as fendor
<sphalerite> Why do we have symlinkJoin? What differentiates it from buildEnv?
bennofs has quit [Ping timeout: 256 seconds]
<CptCaptain> clever: Then I get: "trace: warning: types.string is deprecated because it quietly concatenates strings
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/JvhMF
<{^_^}> [nixpkgs] @peterhoeg merged pull request #84964 → python37Packages.snapcast: 2.0.10 -> 2.1.0 → https://git.io/JvhR3
<clever> CptCaptain: you want types.str not types.string
<MichaelRaskin> sphalerite: promise not to do the complicated environment-building stuff
<{^_^}> [nixpkgs] @peterhoeg merged pull request #84984 → strawberry: 0.6.8 -> 0.6.9 → https://git.io/JvhKi
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/JvhMA
pbb has quit [Remote host closed the connection]
kleisli_ has quit [Remote host closed the connection]
kleisli_ has joined #nixos
kleisli_ has quit [Remote host closed the connection]
kleisli_ has joined #nixos
<{^_^}> [nixpkgs] @iblech opened pull request #85002 → tikzit: 2.1.4 -> 2.1.5 → https://git.io/JvhDL
<nh2> jakobrs infinisil clever: `documentation.dev.enable = true;` does not do it, but `manpages` and `man-pages` both give me `man 2`, and clever's gist includes that and also gives the other POSIX man pages (man 0, 1 and 2) and others
morgrimm has quit [Ping timeout: 256 seconds]
zaeph1 is now known as zaeph
<CptCaptain> clever: How do I force something to be of a type? Is there documentation on the difference?
<nh2> slight correction I just found, `man-pages` also gives me sections 0, 1, 2 etc, but the POSIX man pages are something else (sections "0p", "1p" etc.)
<clever> CptCaptain: what exactly are you trying to set in the nix?
<zeorin36> BTW I managed to sort out why `noto-font
<zeorin36> was included: enableDefaultFonts is defaulted to true by the xserver option
<zeorin36> Not obvious at all.
<{^_^}> [nixpkgs] @veprbl pushed 2 commits to master: https://git.io/JvhDl
<sphalerite> MichaelRaskin: is it really that complicated though?
zeorin36 has quit [Remote host closed the connection]
Thra11 has joined #nixos
<maddo> thanks julm
<julm> :]
<MichaelRaskin> sphalerite: I think you cannot opt out of propagation handling?
morgrimm has joined #nixos
<nschoe> gchristensen, It´s taken a bit of time (the time for me to remember how to build derivations, etc.) but I´ve tested and using `prePatch` instead of `preBuild` works like a charm: now both overriding the conf file and applying patches work as intended :)
<nschoe> I´ll open an issue on st.
<ixxie> clever: thanks for the debugging tips... I figured it out. But now I am back to the issue of how to run the kexec in the script and immediatly exist the SSH connection
<clever> ixxie: <enter>~. will force the ssh client to hang up
<CptCaptain> clever: Something like this myPath = ./prefix + "/${myVar}";
<{^_^}> [nixpkgs] @pvgoran opened pull request #85003 → Redmine server options → https://git.io/JvhDw
sn3rd has joined #nixos
<clever> CptCaptain: yeah, that should work just fine
<ixxie> clever: I need to do this in a script though :/
<CptCaptain> That's where I get the error
<ixxie> clever: i've been trying ./kexec_nixos & disown; exit
<CptCaptain> Anyway, it works. But the warning is a bit nasty
<clever> ixxie: you may need a script that wraps ssh, or use something like screen+nohup to launch something on the remote end, which keeps running after you close the ssh
<clever> ixxie: there is also `systemctl kexec`
<sphalerite> MichaelRaskin: oh, true.
<ixxie> clever: been trying to somehow wrap ssh, but probably not doing it right
<clever> ixxie: have you seen `systemctl kexec` ?
<sphalerite> MichaelRaskin: iirc symlinkJoin also does a less efficient tree, where only the files are actually symlinks and the rest is all "real" directories
<ixxie> clever: looking into it now
<ixxie> clever: is it as simple as running that command and logging out?
<MichaelRaskin> sphalerite: yep, it just uses lndir
<clever> ixxie: i believe you do the `kexec -l`, skip doing `kexec -e`, and instead do `systemctl kexec`
CptCaptain1 has joined #nixos
<clever> ixxie: systemd will then do a full and clean shutdown, causing ssh to get killed, and when its fully stopped, it will `kexec -e` for you
<{^_^}> [nixpkgs] @emilazy opened pull request #85004 → nixos/stage-1: check secret paths before copying → https://git.io/JvhDo
<{^_^}> [nixpkgs] @symphorien opened pull request #85005 → hdapsgl: 0.5.0 -> 0.7.0 → https://git.io/JvhDK
igghibu has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<sphalerite> MichaelRaskin: do you know of a reason to prefer that?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85006 → verilator: 4.030 -> 4.032 → https://git.io/JvhDP
CptCaptain has quit [Ping timeout: 265 seconds]
abathur has quit [Ping timeout: 250 seconds]
pbb has joined #nixos
<MichaelRaskin> sphalerite: the behaviour being prohibitively expensive to change, obviously! I mean, the value of symlinkJoin is that you know exactly what you are getting…
<{^_^}> [nixpkgs] @veprbl pushed 2 commits to release-20.03: https://git.io/JvhDQ
cosimone has quit [Quit: Quit.]
<{^_^}> [nixpkgs] @bhipple merged pull request #84880 → fcppt: 3.2.2 -> 3.5.0 → https://git.io/Jvp7d
<{^_^}> [nixpkgs] @bhipple pushed 3 commits to master: https://git.io/JvhDb
drakonis has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
o1lo01ol1o has joined #nixos
igghibu has quit [Quit: Textual IRC Client: www.textualapp.com]
kleisli_ has quit [Remote host closed the connection]
kleisli_ has joined #nixos
o1lo01ol1o has quit [Ping timeout: 264 seconds]
ambroisie has quit [Remote host closed the connection]
ambroisie has joined #nixos
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JvhyY
<{^_^}> [nixpkgs] @bhipple merged pull request #85002 → tikzit: 2.1.4 -> 2.1.5 → https://git.io/JvhDL
griff__ has joined #nixos
jeromelanteri has joined #nixos
cjpbirkbeck has joined #nixos
<jeromelanteri> hey guys, i'm trying to make a YT video to explain what is NixOS and how to use it. So i'm testing it (fresh new user me), and i have question allready about a command: nix-env -qas
<jeromelanteri> show me a list of packages avaiable with --- as IPS possibly present.
<jeromelanteri> well... i get some "coreutils-8.31" packages on 3 lines (2 are -PS and 1 is ---". But why ?
<gchristensen> I'm not understanding the IPS part of your question?
<jeromelanteri> I for installed, P for present and S for substitute flag
<{^_^}> [nixpkgs] @nh2 opened pull request #85007 → gitAndTools.git-bug: 0.6.0 -> 0.7.0 → https://git.io/Jvhyc
<jeromelanteri> but why is there 3 lines about coereutils-8.31 packages and not only one line output there ?
<LnL> if I recall correctly it means a it's not installed but a substitute is available
<LnL> ie. you won't have to build it yourself locally
<gchristensen> interesting. I haven't used nix-env in so long :D
<LnL> yeah same, so I'm not entirely sure
gnxlxnxx[m] has joined #nixos
<jeromelanteri> LnL, this i understand good. it means there is some packages used it inside own /nix/store package directory... but why is there 3 lines ? does it mean that 2 packages used one and 1 line for said that, i do not install it myself ?
<gchristensen> jeromelanteri: interestingly and probably counter intuitively, probably most NixOS users don't use nix-env very much :)
<MichaelRaskin> gchristensen: I don't believe you! you use it on every nixos-rebuild!
<jeromelanteri> gchristensen, i like the idea of NixOS to do things isolate. But i really would like to add a nice video to show how to use nixos tools, so i have to well understand
<{^_^}> [nixpkgs] @Gabriel439 opened pull request #85008 → Upate `buildDhallPackage` to use default version of Dhall → https://git.io/Jvhyu
<jeromelanteri> MichaelRaskin, so nixos-rebuild is an alias command like call ?
<gchristensen> jeromelanteri: usually when I want to find a package to install, I use nixos.org/nixos/packages.html or run the command I want: $ ucm
<gchristensen> The program ‘ucm’ is currently not installed. You can install it by typing:
<gchristensen> nix-env -iA nixos.unison-ucm
<gchristensen> and then instead of nix-env -iA, I will use `nix-shell -p unison-ucm` and that will get me in to a shell with the program I wanted, ready to use -- but not globally installed
philr has quit [Ping timeout: 256 seconds]
<jeromelanteri> does nix-env -i unison would works the same ?
<gchristensen> if I want it globally installed, I will add it to /etc/nixos/configuration.nix, in `environment.systemPackages`
<{^_^}> [nixpkgs] @symphorien opened pull request #85009 → pdfarranger: 1.3.1 -> 1.4.2 → https://git.io/Jvhya
<gchristensen> ,-A
<{^_^}> You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<gchristensen> ,-A jeromelanteri
pbb has quit [Ping timeout: 246 seconds]
<{^_^}> jeromelanteri: You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<MichaelRaskin> jeromelanteri: nixos-rebuild is a script that uses nix-env --set internally
<jeromelanteri> ok
<gchristensen> MichaelRaskin is confusing the matter :)
<jeromelanteri> is there a nice link who is demonstrate all of these use case or do i have to read man pages and try mùyself ?
<jeromelanteri> MichaelRaskin, ok. Where i can find this script to read inside ?
<gchristensen> oh no
<LnL> jeromelanteri: present or installed doesn't necessarily imply a substitute is available, a user might have built it himself
<jeromelanteri> LnL, we can build we own ?
pbb has joined #nixos
<LnL> as for nix-env --set, that's not really an operation for users it's more of an internal plumbing command
<jeromelanteri> LnL this is also an other use case where, for example, i would git clone my app repo, then i can build and start from source repo position. But how to then install it for the logged user ?
<MichaelRaskin> LnL: it is ~ same level as nix-build, and has nice use cases
<LnL> ah for that you'd uses the -f flag
gustavderdrache has quit [Quit: Leaving.]
<gchristensen> MichaelRaskin: I'm worried you're going a bit too nitty gritty for someone wanted to get the 10 minute view :)
<jeromelanteri> ok, -f flag... i would read it
<LnL> nix-env -f /path/to/project -i
<jeromelanteri> gchristensen, i would like to make a 1 hour view, with some timing indicate for people who want to jump on target.
<jeromelanteri> Lnl, i notice it, thank you
<LnL> similarly it can also be used to install things from a different release
<jeromelanteri> then the project path should be inside the $HOME user path to be accessible... correct ?
<LnL> nix-env -f 'channel:nixos-19.09' -iA hello
<ixxie> clever: would it be something like this: https://pastebin.com/Bfh0gMhC
<clever> ixxie: yeah, but now it relies on the target being systemd based
<ixxie> clever: target is guaranteed to be ubuntu
<ixxie> clever: so its okay
<ixxie> clever: unfortunately this doesn't seem to work... wondering if I need to instantial reboot myself
<clever> ixxie: what happens when you run it? what do you see on the console?
morgrimm has quit [Ping timeout: 265 seconds]
<jeromelanteri> ok, i can see i have xfwm-4.12 installed, so if i want xfwm4-14, how to indicate this inside my confuguration.nix file ?
<jeromelanteri> version = 4.14 ?
morgrimm has joined #nixos
<symphorien> it is the default on 20.03
<jeromelanteri> i'm on 19.09
<jeromelanteri> but, nevermind, i would like to understadn how to indiocate the version i want from my configuration.nix file.
Mateon1 has quit [Read error: Connection reset by peer]
Mateon1 has joined #nixos
morgrimm has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @Ma27 merged pull request #84931 → minikube: 1.8.1 -> 1.9.2 → https://git.io/JvhsX
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JvhSc
captjakk has quit [Remote host closed the connection]
elux has quit [Quit: leaving]
captjakk has joined #nixos
<jeromelanteri> i aslo do not understand what is a channel for NixOS. When i do nixos-channel --list, i have empty output on stdout
<jeromelanteri> what is a channel ?
griff__ has quit [Quit: griff__]
<jeromelanteri> i was supposed to have a channel for my nixos distro (something like nixos-09.09 in the list...
captjakk has quit [Ping timeout: 256 seconds]
Henson has joined #nixos
arjen-jonathan has quit [Ping timeout: 260 seconds]
<Henson> I noticed that in the Nix package search engine for a particular package the "Nix Expression" field now says "Not Specified", whereas only a couple weeks ago it would have a link to the nix expression in the git source tree. Is there a reason for that?
<ixxie> clever: seems to hang here: https://pastebin.com/23fWxmhX
<clever> ixxie: try running it in an ubuntu vm locally?
<simpson> jeromelanteri: I think that the system channels, which the root user sees, are different from each user's channels.
<ixxie> clever: well, that will take me a while because I never ran my own vm
<clever> ixxie: just boot the ubuntu iso in something like virtualbox
<hyperfekt> is there any way to include something like a hosts file in a build environment? i'm trying to package software that wants to resolve a hostname in its tests
eoli3n__ has joined #nixos
<clever> hyperfekt: libredirect
<{^_^}> [nixos-homepage] @davidak pushed to davidak-newsx « clean up news »: https://git.io/JvhSp
<{^_^}> [nixos-homepage] @davidak opened pull request #388 → clean up news → https://git.io/JvhSh
freeman42x has quit [Ping timeout: 265 seconds]
captjakk has joined #nixos
sn3rd has quit [Quit: Leaving]
cole-h has joined #nixos
ZoomZoomZoom has quit [Quit: Leaving]
justanotheruser has quit [Ping timeout: 265 seconds]
captjakk has quit [Remote host closed the connection]
morgrimm has joined #nixos
domogled has quit [Ping timeout: 260 seconds]
InvisibleRasta has quit [Ping timeout: 265 seconds]
ixxie has quit [Quit: Lost terminal]
pbb has quit [Ping timeout: 265 seconds]
pbb_ has joined #nixos
<miscellaneousbus> how do i source powerline bindings for bash?
morgrimm has quit [Ping timeout: 260 seconds]
OrangeTetra has joined #nixos
domogled has joined #nixos
<cole-h> Anybody have a free moment and want to try an image viewer's video support? https://github.com/NixOS/nixpkgs/pull/84965
<{^_^}> #84965 (by cole-h, 14 hours ago, open): qimgv: enable video support
<{^_^}> [nixpkgs] @eadwu closed pull request #81456 → mlpack: init at 3.2.2 → https://git.io/Jv2Ld
<Thra11> I'm trying to use https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/containers-macvlans.nix as an example to create a container with its own IP address via macvlan. Here's my attempt: https://gist.github.com/Thra11/801d8f5dc146e4b62732d659639b734c When I import this into my configuration.nix, I get a container, with the right IP address, but I can't ping it from the host, and it can't ping
<Thra11> anything. (wlan0 is a real interface on the host)
kreetx has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #84998 → uftp: 4.10.1 -> 4.10.2 → https://git.io/Jvh1Y
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/Jvh9r
<kreetx> how does one include regular files (images) when deploying an app with nixops?
cosimone has joined #nixos
<kreetx> i.e I have a folder that I would like to include, but it's not sent with the binary
work_ has joined #nixos
<kreetx> *not sent with the entire machine definition
captjakk has joined #nixos
justanotheruser has joined #nixos
captjakk has quit [Remote host closed the connection]
morgrimm has joined #nixos
captjakk has joined #nixos
slack1256 has joined #nixos
shabius_ has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @orivej-nixos merged pull request #84543 → gst_all_1.gst-plugins-good: enable jack plugin → https://git.io/JvAZr
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « gst_all_1.gst-plugins-good: enable jack plugin (#84543) »: https://git.io/Jvh91
<manveru> kreetx: put them into a derivation?
waleee-cl has quit [Quit: Connection closed for inactivity]
captjakk has quit [Ping timeout: 256 seconds]
<kreetx> manveru: you mean make a derivation for static files and then depond on it in the application?
xO1 has quit [Ping timeout: 240 seconds]
<infinisil> kreetx: Yeah, ideally packages should be as self-contained as possible
<kreetx> yes, but it's part of the same package
xO1 has joined #nixos
<kreetx> ideally I would like to include them with the current package
<{^_^}> [nixpkgs] @danielfullmer opened pull request #85011 → zoneminder: 1.34.3 -> 1.34.9 → https://git.io/Jvh9j
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85012 → zita-ajbridge: 0.8.2 -> 0.8.4 → https://git.io/JvhHT
pbb_ has quit [Ping timeout: 246 seconds]
<pie_[bnc]> joepie91: any idea about running xargo in a build sandbox
captjakk has joined #nixos
<joepie91> pie_[bnc]: none, sorry
<joepie91> I messed a little with the 'operating system in rust' article series, and that worked
<{^_^}> [nixpkgs] @vcunat pushed to release-19.09 « Merge #84773: thunderbird*: 68.6.0 -> 68.7.0 (security) »: https://git.io/JvhHt
<joepie91> but I definitely didn't spend much time on a Proper(tm) setup for it
<pie_[bnc]> ok
<pie_[bnc]> i just had the idea of searching github so i might have some uck
<pie_[bnc]> i only got it from rustup, wasnt even sure it was perpackaged anywhere
<pie_[bnc]> this infra is alien to me
<jeromelanteri> simpson, thank you. From your own link, who is an html page copy from man nix-channel, i find this: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.nixpkgsVersion'
<clever> jeromelanteri: nix eval nixpkgs.lib.version
<jeromelanteri> who, from my user (not root) does find the version of the nixos installed version
<jeromelanteri> yes, nixpkgsVersion is deprecated but the man page has not been updated
<pie_[bnc]> clever: good to know, i needed that yesterda
<jeromelanteri> but then, i can get nixos version from user (not root), but still don't have any nix-channel (same from root user).
kisonecat has quit [Quit: ZNC 1.7.5 - https://znc.in]
captjakk has quit [Ping timeout: 265 seconds]
<jeromelanteri> do i have to add a channel ? after to read the manual page (that i already do), i can not understand more.
kisonecat has joined #nixos
<clever> jeromelanteri: you usually have a channel setup to manage the version of <nixpkgs> in use
kisonecat has quit [Client Quit]
<jeromelanteri> i don't have any.
<esclear> Is anyone here who has tensorflow 2.1.0 running successfully using nixpkgs-unstable.Python37Packages.tensorflow-bin_2 ?
<clever> jeromelanteri: you may want to add a channel then, if its using nix-daemon, then the channel should probably be on root
<jeromelanteri> so do i may have one ? And do i may have one to be able to manage version of nixos (and nixos only or any other packages then ?)
<jeromelanteri> clever, nothing on root
<clever> jeromelanteri: run `nix-channel --list` as each user
ottidmes has quit [Quit: WeeChat 2.7.1]
<jeromelanteri> clever, ho sorry, yes, i have ot on root user...
<jeromelanteri> clever, so this is only for track nixos version or is it also possible to get some other packages ?
<clever> jeromelanteri: that channel contains both nixos and nixpkgs
<jeromelanteri> ok, so nixpkgs is inside nixos channel ? or is it something different ?
<clever> jeromelanteri: yeah, the nixos channel is just a specific version of the nixpkgs repo
<jeromelanteri> ok
<jeromelanteri> so for example, i can add a nixos channel with the last 20.03 unstable version and make the label name "nixos-20.03" ? Then switch from one to an other...
<clever> jeromelanteri: yep
<jeromelanteri> very good.
<jeromelanteri> and then nix-channel serve nothing in any use case from other users than root.
ixxie has joined #nixos
ottidmes has joined #nixos
ottidmes has quit [Client Quit]
Mateon1 has quit [Ping timeout: 265 seconds]
Mateon1 has joined #nixos
ottidmes has joined #nixos
<{^_^}> [nix] @domenkozar merged pull request #2688 → Fix nix-build --check -K in sandbox w/o root → https://git.io/fhdgJ
<{^_^}> [nix] @domenkozar pushed 3 commits to master: https://git.io/JvhHb
<jeromelanteri> i can see (if i well understand), that i can rollback to any "generation" linked to each user linked "profile". The default user profile is inside ~/.nix-profile, and then each generation is a step of current package installation (or maybe configuration to) administred.
<jeromelanteri> each user default profile (or any new one created) is in charge to link applications to isolated package installed...
shibboleth has joined #nixos
morgrimm has quit [Ping timeout: 256 seconds]
<jeromelanteri> (tellme if i'm wrong, if not that's fine)
<pie_[bnc]> arcnmx: do you use the mozilla rust overlay? can you recommend a way to make a buildRustPackage for xargo? I hung up on the fact that is the mozilla overlay already has a cargo index or whatever, i shouldnt need to write my own src fetch expression
<{^_^}> [nixpkgs] @invokesus opened pull request #85013 → perlPackages.PDL and dep → https://git.io/JvhHj
<yorick> can I disable nix-daemon?
<yorick> I don't need nix on this system
<{^_^}> [nixpkgs] @bcc32 opened pull request #85014 → megacmd: 1.1.0 -> 1.2.0 → https://git.io/JvhQJ
<pie_[bnc]> arcnmx: or what would be even better is if theres some kind of rustPackages somewhere that already just lists the crates that exist
avn has joined #nixos
slack1256 has quit [Remote host closed the connection]
<jeromelanteri> failed to find how to change xfwm version used for get xfce-4.14 from my configuration.nix file.
<avn> looks like TMPDIR strikes back... nix-build have TMPDIR=/var/buildroot, but builds still happens in /tmp
<arcnmx> hm, I'm not aware of the mozilla overlay doing anything that nixpkgs doesn't, except for providing binary rust/cargo/std/cross/etc packages. I haven't used xargo with it.
<avn> (I checked /proc/$pid/environ if it matters)
<arcnmx> I use a custom/rewritten rust overlay instead because it doesn't mesh that well with nixpkgs cross stdenvs
<arcnmx> hm, so buildRustCrate uses a package index generated by carnix and whatever superceded it...
<arcnmx> buildRustPackage uses a different approach that downloads all crates from crates.io as part of the build
<{^_^}> [nixpkgs] @marsam merged pull request #84957 → python3Packages.gst-python: fix build on darwin → https://git.io/Jvh8D
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvhQt
<arcnmx> and vendors them. I'm not sure if the specs generated by (not?)carnix are usable in any other way though. If you're trying to cross compile rust, you should be able to use either buildRustPackage or buildRustCrate with a typical cross stdenv
<ixxie> clever: is there an easier way to get an ubuntu virtualbox going besides manually installing it?
<arcnmx> just have to replace rustc with an appropriate cross one
<{^_^}> [nixpkgs] @bbigras opened pull request #85015 → starship: 0.39.0 -> 0.40.0 → https://git.io/JvhQs
<{^_^}> [nixpkgs] @marsam merged pull request #84992 → gpxsee: 7.27 -> 7.28 → https://git.io/JvhiV
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvhQG
<clever> ixxie: find a pre-installed virtualbox image
jluttine has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #84982 → nomad: 0.10.5 -> 0.11.0 → https://git.io/Jvhox
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvhQc
<arcnmx> but generally for buildRustCrate the crate list is autogenerated from the Cargo.lock for a project, and with buildRustPackage isn't not needed at all
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<avn> clever: have you any ideas regarding TMPDIR?
<clever> avn: when using nix-daemon, its the daemons TMPDIR, not nix-build's
jluttine has joined #nixos
<cole-h> yorick: Wouldn't stopping the socket disable the daemon?
<cole-h> e.g. `systemctl stop nix-daemon.socket`
<avn> clever: sure, I checked daemon's one
<clever> avn: but if you run nix-build as root, it wont use the daemon
<avn> clever: I haven't idea why this issue strike me back
<avn> ahh, that can affect then
<avn> clever: can I force root' nix to try to use daemon first?
<clever> avn: NIX_REMOTE=daemon
<avn> I want to have 'nixos-rebuild build` and 'sudo nixos-rebuild switch' have same default behavior
init_6 has quit [Ping timeout: 240 seconds]
palo has joined #nixos
<avn> ahha, I got it. Will try, thank you
<clever> avn: if NIX_DAEMON isnt set, it defaults to auto
<clever> avn: and auto will test if you can write to something under /nix, then decide between local and daemon
<pie_[bnc]> arcnmx: oh hi didnt see you reply (ive got too much stuff open, i gotta get highlighted x) )
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85016 → amber: 0.5.3 -> 0.5.4 → https://git.io/JvhQz
<{^_^}> [nixpkgs] @domenkozar merged pull request #85008 → Upate `buildDhallPackage` to use default version of Dhall → https://git.io/Jvhyu
<{^_^}> [nixpkgs] @domenkozar pushed 2 commits to master: https://git.io/JvhQ2
<arcnmx> pie_[bnc]: mm sorry, I don't always trust my client to translate names properly. I think I'm just not entirely sure what you're asking, how to build xargo, how to run xargo, or how to use xargo in a build?
<pie_[bnc]> arcnmx: fwiw im confused , clueless, and trying to do 10 things at once, because if something doesnt work i try something eles
<pie_[bnc]> arcnmx: so heres some background:
<{^_^}> [nixpkgs] @veprbl pushed to master « herwig: 7.2.0 -> 7.2.1 »: https://git.io/JvhQa
<arcnmx> if you're cross-compiling rust with nix, xargo shouldn't really be necessary? but probably easier than customizing std, not sure
<pie_[bnc]> arcnmx: the bottom line is im trying to devlop a process for writing grub modules in rust, because why not, I started looking at some tutorials for getting rust building against bare metal, i dont know my way around the rust ecosystem
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85017 → android-udev-rules: 20191103 -> 20200410 → https://git.io/JvhQr
<pie_[bnc]> arcnmx: everyone says to use xargo to build a different core/std/whatever for a different target triple, none of my target triples are in mozilla or the base nixos stuff, but i dont know how to use nixos cross either, other than some random examples of setting a target triple
<pie_[bnc]> i tried some variations of setting a rust target triple in the mozilla overlay, and one in the nixpkgs cross setting, and it didnt work
<pie_[bnc]> thats basically where I stand
o1lo01ol1o has joined #nixos
<pie_[bnc]> so i figured, well uhh ok i can try running xargo in a nix build sandbox or something
<pie_[bnc]> btw im trying to build against i686-unknown-none, or i686-none-elf or something like that
<evanjs> pie_[bnc]: have you tried doing the whole thing with the cross repo yet? Not like that’s super pure 😝
<pie_[bnc]> but in theory shouldnt i be able to select an arbitrary target and just get stuff to work?
<pie_[bnc]> evanjs: no i didnt know cross exists until you told me earlier
<pie_[bnc]> some people say xargo isnt even needed anymore, but when i tell cargo to use a triple thats not in the list it just says, lolno
<arcnmx> pie_[bnc]: mm cross nix stuff is um, fun. generally you might want to aim for 2 things: 1) have a proper cross stdenv for your target. 2) compile libstd for your target, which xargo can presumably be used
<{^_^}> [nixpkgs] @jonafato opened pull request #85018 → pythonPackages.ofxtools: unbreak → https://git.io/JvhQM
<evanjs> pie_[bnc]: there’s also this if you haven’t seen it, yet https://github.com/NixOS/nixpkgs/issues/68804#issuecomment-581026053
<evanjs> Basically just overriding targets on the rust you pull in from the moz overlay
<arcnmx> at that point you can use nixpkgs buildRustPackage or buildRustCrate, but you'll have to override rustc to point to one with your libstd included
<arcnmx> mozilla overlay just does this but downloads binary libstd instead
<pie_[bnc]> arcnmx: so several questions 1) should i look at your overlay stuff 2) why isnt there some attrset where I can just rustPackages.xargo :( 3) all the things about building xargo, or not building xargo, or whatever, but really i just want to build my binary and the solution doesnt matter
<pie_[bnc]> thanks, reading scroll
<pie_[bnc]> ive seen it and it complains that it doesnt want to use my target triple because its not in some list <evanjs> pie_[bnc]: there’s also this if you haven’t seen it, yet https://github.com/NixOS/nixpkgs/issues/68804#issuecomment-581026053
<arcnmx> pie_[bnc]: there is I guess NUR.arc.pkgs.xargo{,-unwrapped} fwiw if that's why you poked me
<evanjs> pie_[bnc]: oh well that makes sense then
<evanjs> What’s your triple btw?
<pie_[bnc]> evanjs: 1) i dunno lol 2) i686-elf and variants with unknown/none
oranginal has joined #nixos
<arcnmx> which should be usable for building a cross libstd
<evanjs> I take it it doesn’t appear in eg `rustup target list` or whatever it was?
<{^_^}> [nixpkgs] @sorki opened pull request #85019 → spring: 104.0.1-1480-gc9377ac -> 104.0.1-1482-gc4e1654 → https://git.io/JvhQS
<pie_[bnc]> arcnmx: thanks for shedding at least some light <3 ;_;
<pie_[bnc]> arcnmx: any of this stuff ever gonna end up in main?
<evanjs> If it does I’d imagine it should be in there, I feel like I recall the triples maybe being named differently in the rust area vs NixOS cross
<pie_[bnc]> arcnmx: do you have any suggestions on how to uhh...be less dumb about this stuff
<{^_^}> [nixpkgs] @domenkozar merged pull request #85019 → spring: 104.0.1-1480-gc9377ac -> 104.0.1-1482-gc4e1654 → https://git.io/JvhQS
<{^_^}> [nixpkgs] @domenkozar pushed 2 commits to master: https://git.io/JvhQH
<arcnmx> though I haven't myself used it yet because my targets happen to be covered by the official rust binary builds
<pie_[bnc]> evanjs: it takes the parameters in a separate place but even then the problem is it seems that it just doesnt build stuff itself?
wavirc22 has quit [Ping timeout: 258 seconds]
<pie_[bnc]> i should write a damn faq about this
<pie_[bnc]> though at the end of this hopefully ill have a fully declarative nix file that i can just dump somewhere as well
OrangeTetra has quit [Ping timeout: 250 seconds]
wavirc22 has joined #nixos
<pie_[bnc]> arcnmx: can we make #nixos-rust a thing
morgrimm has joined #nixos
<arcnmx> dunno, I'm not that interested in xargo in particular because nixpkgs already has its own cross infra, there's not much point in using a helper tool long-term when you can just kind of build pkgs.pkgsCross.arm-embedded.libstd or whatever instead.
<pie_[bnc]> arcnmx: thats fine
<pie_[bnc]> arcnmx: im not tied to xargo
<pie_[bnc]> arcnmx: ideally id like to avoid any secondary tools
<pie_[bnc]> arcnmx: theres github issues saying xargo should have been merged into cargo like 2 years ago
<pie_[bnc]> and some saying its not even needed anymore, but i havent seen how
<pie_[bnc]> strangely enough andi seems to be all alone in nixos-rust
<pie_[bnc]> evanjs: get in here lol
<andi-> pie_[bnc]: I don't remember why I was in there o.o
<pie_[bnc]> andi-: do you want to register te channel? :P i dont care to figure that stuff out
knupfer has quit [Quit: knupfer]
<andi-> pie_[bnc]: don't see much of a need
knupfer has joined #nixos
<pie_[bnc]> true
<pie_[bnc]> samueldr: can we get a bot in nixos-rust
knupfer has quit [Client Quit]
knupfer has joined #nixos
<samueldr> the logging bot I presume?
<pie_[bnc]> yes
<{^_^}> [nixpkgs] @prusnak opened pull request #85020 → freerdp: re-enable tests → https://git.io/JvhQp
{`-`} has joined #nixos
<pie_[bnc]> joepie91: Ericson2314: jD91mZM2: fwiw im attempting to make #nixos-rust a thing, so if you know any interested parties...
<pie_[bnc]> samueldr: thx \o/
morgrimm has quit [Ping timeout: 240 seconds]
<pie_[bnc]> arcnmx: I cant remember why i poked you originally, i think i saw some stuff in the github search
<pie_[bnc]> sooo...probably nur
<arcnmx> I mean I do a lot of cross rust stuff with nix, just haven't yet needed to compile std from source. Been meaning to get around to it, but...
<visl> I'm setting up nixos for the first time using my laptop. i want to install some packages for my user like resilio-sync, keybase. it seems like the nixos preferred way is to do this in the user environment. what's the best way to define a configuration so it's reproducable?
<hyperfekt> clever: can't seem to get it to work...
<pie_[bnc]> visl: a lot of people prototype it with nix-build / nix-shell and then put it in configuration.nix, but theres also home-manager
<pie_[bnc]> visl: for starters you probably just want to try putting stuff in configuration.nix and then progress towards more complicated stuff
jojojojojo has joined #nixos
<pie_[bnc]> the simple case is no big deal, just put something from pkgs in the appropriate config option
noam has joined #nixos
<pie_[bnc]> not sure if i really answered anything there?
<pie_[bnc]> oh by user environment did you mean nix-env?
<visl> well, what's the appropriate config option for installing something as the visl user
<pie_[bnc]> yeah in practice the first thing everybody gets told when they show up here is "dont use nix-env" xD but you *can*
<visl> resilio-sync, for example, is annoying with ubuntu's package because it sets up a system level service as the resilio user. what i actually want is for the daemon to run as my user, so my synced files are owned as me
<pie_[bnc]> visl: you can search options here or by looking at man configuration.nix or by poking around and tab completing in nixos-option
<pie_[bnc]> theres also nix search i thik
<energizer> visl: i like home-manager
<pie_[bnc]> anyway the ecosystem is kind of complicated right now
<visl> pie_[bnc]:thanks
<pie_[bnc]> visl: you can find a lot of examples of varying complexity all over the place by searching github https://github.com/search?q=language%3ANix+filename%3Aconfiguration.nix
<pie_[bnc]> visl: the information tends to be outdated bt theres nevertheless some good things on nixos.wiki, and also worth searching github issues sometimes on nixpkgs
<visl> ok. i'll dig around some more and come back with more specific questions
<visl> is nix-env the thing for managing a user environment?
<clever> visl: yeah
<pie_[bnc]> visl: the short answer to your question is stick it in environment.systemPackages, which is listed in the original example configuration you get when installing
<{^_^}> [nixpkgs] @veprbl pushed 2 commits to release-20.03: https://git.io/Jvh7W
<pie_[bnc]> visl: i also highly recommend playing with `nix repl`
<visl> ok cool. will do
<pie_[bnc]> well, when you need to nayway
<visl> thanks
<pie_[bnc]> *thumbs up*
<pie_[bnc]> good luck
<{^_^}> [nixpkgs] @oxalica opened pull request #85021 → osu: init at 2020.408.1 → https://git.io/Jvh74
<energizer> visl: if you're asking for user packages, user.user.<name>.packages seems like a more direct answer than environment.systemPackages
<{^_^}> Channel nixos-19.09 advanced to https://github.com/NixOS/nixpkgs/commit/02f2241354a (from 28 hours ago, history: https://channels.nix.gsc.io/nixos-19.09)
<{^_^}> [nixpkgs] @bhougland18 closed pull request #84305 → windowchef: init at 0.5.0 → https://git.io/JvbhK
<visl> energizer: ok i'll look into that as well. thanks
lovesegfault is now known as lovejobsecurity
InvisibleRasta has joined #nixos
lovejobsecurity is now known as lovesegfault
dermetfan has joined #nixos
inkbottle has quit [Quit: Konversation terminated!]
inkbottle has joined #nixos
<kreetx> infinisil: hi, infinisil -- I re-read what I wrote previously and accidentally wrote something that may have sounded mean (repeating the word "ideally"). I was on the phone and wasn't paying attention..
shabius has joined #nixos
jojojojojo has quit [Remote host closed the connection]
jojojojojo has joined #nixos
captjakk has joined #nixos
jojojojojo has quit [Client Quit]
linarcx has joined #nixos
<{^_^}> [nixpkgs] @etu merged pull request #84993 → php.extensions.pdo_mysql: Set default socket location → https://git.io/Jvhid
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/Jvh5f
<{^_^}> [nixpkgs] @jtojnar merged pull request #84956 → gst-plugins-bad: disable zbar by default → https://git.io/Jvh8M
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to staging: https://git.io/Jvh5T
linarcx has quit [Read error: Connection reset by peer]
<hyperfekt> clever: nvm, i got it
<hyperfekt> clever++
<{^_^}> clever's karma got increased to 387
<hyperfekt> thanks a lot for the hint
<clever> hyperfekt: what was the issue?
morgrimm has joined #nixos
<hyperfekt> clever: it wasn't inherited to children
<clever> hyperfekt: ah
dermetfan has quit [Ping timeout: 265 seconds]
<Athas> What's a good way to use Nix to build a tarball of my program in CI? Right now I'm moving in the direction of writing a default.nix that produces a package that contains a directory, which I will then tar up using the CI script itself.
<pikajude> cross compilation is actually pretty complicated :(
<clever> Athas: you can just run tar in a derivation using pkgs.runCommand
<{^_^}> [nixpkgs] @veprbl pushed to release-20.03 « herwig: 7.2.0 -> 7.2.1 »: https://git.io/Jvh5m
<pikajude> is there a section on addEnvHooks in the manual? i can't find one
<pikajude> i need the setup hook for a nativeBuildInput to do one thing and the setup hook for a buildInput to do a different thing
<Athas> clever: I also need to build the tarball contents first, which requires some buildInputs. I couldn't find good documentation how to do that with pkgs.runCommand.
<pikajude> but addEnvHooks "$targetOffset" foo and addEnvHooks "$hostOffset" bar end up running both hooks about 100 times
morgrimm has quit [Ping timeout: 256 seconds]
<pikajude> for the same package
<clever> Athas: you can build the program normally with stdenv.mkDerivation
<miscellaneousbus> I believe the powerline package is broken and does not work with modules like python_gitstatus
<miscellaneousbus> anyone use this before?
<clever> Athas: and then reference that result in pkgs.runCommand "name.tar" {} "tar -cvf $out ${theapp}"
arjen-jonathan has joined #nixos
<Athas> clever: right. But I need to do some *additional* work apart from just building the normal program derivation (specifically, build documentation, and that requires some Python dependencies).
linarcx has joined #nixos
<Athas> But maybe I should roll that into the program derivation itself...
<infinisil> kreetx: Ohh don't worry about it, I didn't take it as sounding mean :)
<clever> Athas: yeah, that can be done
<infinisil> kreetx: I didn't quite get what you were saying with this though. If you need help with your question still I suggest providing more info
<clever> Athas: of note, any ELF binaries you build with nix, will fail if you just copy them to a non-nix machine
noam has quit [Quit: Leaving]
sogatori has quit [Remote host closed the connection]
<pikajude> ohh, things in addEnvHooks are run for every dependency
<pikajude> that didn't occur to me for awhile
<pikajude> i have this backwards, then. so addEnvHooks belongs in like, a cc wrapper or something
<{^_^}> [nixpkgs] @garbas merged pull request #85015 → starship: 0.39.0 -> 0.40.0 → https://git.io/JvhQs
<{^_^}> [nixpkgs] @garbas pushed 2 commits to master: https://git.io/Jvh52
zupo_ has joined #nixos
<{^_^}> [nixpkgs] @garbas merged pull request #85014 → megacmd: 1.1.0 -> 1.2.0 → https://git.io/JvhQJ
<{^_^}> [nixpkgs] @garbas pushed 2 commits to master: https://git.io/Jvh5a
rogue_koder has joined #nixos
joko has quit [Quit: WeeChat 2.6]
<pikajude> lol, is that supposed to be helpful
knupfer has quit [Quit: knupfer]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #84933 → build-bazel-package: fix linkopt flags → https://git.io/JvhGO
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/Jvh5w
<clever> pikajude: line 442 is the native inputs, and 452 is the normal inputs
<clever> pikajude: native is -1 0, while normal is 0 1
<pikajude> yes, i see that
<{^_^}> [nixpkgs] @garbas merged pull request #85011 → zoneminder: 1.34.3 -> 1.34.9 → https://git.io/Jvh9j
<pikajude> ok, ty
<{^_^}> [nixpkgs] @garbas pushed 2 commits to master: https://git.io/Jvh5r
<clever> local -ri hostOffset="$2"
<clever> local -ri targetOffset="$3"
rogue_koder_ has quit [Remote host closed the connection]
<clever> and those then get mapped to those vars, on line 342
<jeromelanteri> i'm trying to add a partition (i did formated an ext4 partiotion) for my /home use repo. So i do add the config inside hardware-configurations.nix file. But at rebuild timle i get an error said that fileSystems./home.fstype does not exist
<clever> jeromelanteri: fsType
<jeromelanteri> how to add this new partition then move /home users data from original /home content of root partition ?
<clever> pikajude: not sure what they actually do though
<pikajude> me neither :)
<jeromelanteri> clever, oh well... do he moved the data from original one to new partition or do i first have to mount then copy ?
<clever> jeromelanteri: you may need to boot into single-user or use a bootable usb, to move everything from the old /home to the new fs
<jeromelanteri> clever, ok, understand. I will mount it and copy...
<clever> jeromelanteri: you could mount the new one to the "wrong" place like /mnt, then copy everything over, and reboot
<jeromelanteri> yes
<clever> jeromelanteri: and if you mount the / device a second time, you can see the /home under the real /home, to rm
<clever> jeromelanteri: but it will be simpler if booted from a usb stick
OrangeTetra has joined #nixos
LysergicDreams has quit [Ping timeout: 240 seconds]
<kreetx> infinisil: ah, great. :)
<DamienCassou> there are some xml files in nixpkgs with documentation inside. Where can I read the generated doc?
<jeromelanteri> clever, i'm under a Qemu VM. NixOS is the guest
<jeromelanteri> i also find how to get xfce4-14 instead of 4.12 version...
oranginal has quit [Ping timeout: 256 seconds]
waleee-cl has joined #nixos
<jeromelanteri> inside the setting configuration.nix, instead of xfce.enable = ture, it is xfce4-14.enable = true
<clever> jeromelanteri: then you could skip the usb, just shutdown, losetup -P the disk image, and mount both FS's, and mv the files
ixxie has quit [Quit: Lost terminal]
eoli3n__ has quit [Ping timeout: 250 seconds]
LysergicDreams has joined #nixos
<kreetx> infinisil: well, my issue was that I have a web app in haskell, and there are image files that I would like to serve. (I serve them through the haskell app so no nginx or such.) But if I use nixops to deploy it on digital ocean then the content of the assets folder is not included with the binary
<kreetx> infinisil: which this makes sense. But how do I send the assets to the prod machine seems not to be easy :)
aveltras has quit [Quit: Connection closed for inactivity]
o1lo01ol1o has quit [Remote host closed the connection]
cosimone has quit [Remote host closed the connection]
OrangeTetra has quit [Remote host closed the connection]
cosimone has joined #nixos
OrangeTetra has joined #nixos
<infinisil> kreetx: Ah, I think this is what you want then: https://cabal.readthedocs.io/en/latest/cabal-package.html#pkg-field-data-files
OrangeTetra has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @symphorien opened pull request #85023 → ihatemoney: 4.1 -> 4.1.3 → https://git.io/Jvh5H
OrangeTetra has joined #nixos
o1lo01ol1o has joined #nixos
bqv has quit [Ping timeout: 265 seconds]
<jeromelanteri> clever, just mount on /mnt/home then rsync -rv did the job good... maybe better next to effectively remove /home from the partition where data remained...
<clever> jeromelanteri: i'm always paranoid about missing files, so i tend to just use plain `mv`, it deletes after copying, so it only deletes if the copy finished
o1lo01ol1o has quit [Ping timeout: 265 seconds]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fydai has joined #nixos
bqv has joined #nixos
<jeromelanteri> clever, yes. i usually do rclone files and verbose to check all stuff done well.
<fydai> /msg NickServ VERIFY REGISTER fydai dcszuduwkhtc
<fydai> uh
<etu> time to change password?
<fydai> that was the registration code
<clever> fydai: well, at least changing the pw will be easy, its not registered yet!
<clever> oh, verify, yeah, one-time code then
<evertedsphere> oof
<peelz> lol
<Athas> clever: the whole point of my exercise is to build static executables. Surely those will work?
<clever> Athas: yeah, static would be fine
<evertedsphere> it's just a trick to get us to want to make friends with him, pratfall effect or whatever
<Athas> Ugh, I forget... how do I fish out a file from a dependency in my installPhase? I thought that if I had 'buildInputs [ foo ]', then I could do 'cp $foo/bin/whatever ...' in my installPhase, but it seems not to work.
<etu> Athas: cp ${pkgs.foo}/bin/whatever $out/bin/wherever
<clever> Athas: cp $(which whatever) $out/bin/whatever
<etu> Athas: This actually doen't require foo to be in buildInputs either :)
<clever> buildInputs just adds it to PATH
<Athas> Yeah, I can do use 'which', but only for binaries! There might be other files, too.
<clever> `inherit foo` would make a $foo env var
<clever> but you can also ${foo} instead, like etu said
<Athas> etu: and if the dependency isn't from nixpkgs, it's just '${foo}/bin/whatever'?
<etu> Athas: Sure
<Athas> ALright, makes sense.
OrangeTetra has quit [Quit: Leaving]
zupo has joined #nixos
<energizer> what directory does `pkgs.writeText "foo" "bar"` put the foo file in?
<gchristensen> it'll be named /nix/store/somehash-foo
<energizer> ah
<clever> energizer: and the function returns that path
<energizer> alright
<cole-h> Anybody have time to waste and wanna review my PR enabling video support in qimgv? https://github.com/NixOS/nixpkgs/pull/84965
<{^_^}> #84965 (by cole-h, 17 hours ago, open): qimgv: enable video support
<cole-h> You'll get internet points if you do!
bqv has quit [Ping timeout: 260 seconds]
bqv has joined #nixos
<kreetx> infinisil: great, the files are now in /nix/store/$package/share/x86_64-linux-ghc-8.6.5, I wonder how can I find that from the haskell code
<infinisil> kreetx: The page I linked mentions that
<{^_^}> [nixpkgs] @symphorien opened pull request #85025 → libinsane: 1.0.3 -> 1.0.4 → https://git.io/JvhdT
<ottidmes> cole-h: wanted to use the package cause it has video support only to find out the Nix package had not, so I will review it
<cole-h> ottidmes: Hehe. I finally got around to looking into why it was busted because it seems like 0.9.0 is right around the corner.
<cole-h> ottidmes++
<{^_^}> ottidmes's karma got increased to 32
konobi has joined #nixos
<{^_^}> [nixpkgs] @talyz opened pull request #85026 → [WIP] php.buildEnv: Make the exported php package overridable → https://git.io/JvhdI
InvisibleRasta has quit [Ping timeout: 256 seconds]
linarcx has quit [Quit: WeeChat 2.8]
zupo has quit [Ping timeout: 264 seconds]
freeman42x has joined #nixos
<{^_^}> [nixpkgs] @timokau opened pull request #85027 → python3.pkgs.pymc3: unbreak; update arviz, tensorflow-probability → https://git.io/Jvhdt
<fydai> does the nix expression language have a "compiled" version of some sort?
<clever> fydai: not currently
<fydai> enough information to build the package but does't depend on the local filesystem or whatever
<clever> fydai: ah, the drv files are sort of that
<clever> fydai: basically, the functional language boils down to calls to builtins.derivation, giving it a flat key=value; set, which then gets hashed to create the $out, and serialized into a .drv file
zupo has joined #nixos
<fydai> hmm thanks, I'll take a look at that
<clever> fydai: but it looses all dynamic/expression features at that point, its just a static build plan
<{^_^}> [nixpkgs] @hyperfekt opened pull request #85028 → nym: init at 0.6.0 → https://git.io/JvhdG
<fydai> is "pulling from network" before or after drv generation?
shafox has quit [Remote host closed the connection]
<hyperfekt> i swear there is an iron law that no matter how many times you look over a patch you will notice a typo only after having opened the PR. and github even announces your mistake now smh
<ottidmes> cole-h: it builds fine, and your reasoning with the wrapProgram seems fine, however I get a black screen, but I doubt thats your doing, seems like an theme issue once again
<hyperfekt> fydai: that's after unless you use builtins.fetch*
<cole-h> It doesn't appear to work with mkv's from what I've found
jeromelanteri has quit [Quit: Leaving]
<cole-h> But webms and mp4s work fine
<hyperfekt> fydai: or do import-from-derivation and related mechanisms
<cole-h> ottidmes: If you download a youtube video with youtube-dl, you should be able to play it in qimgv now
<ottidmes> cole-h: if I first fix: QApplication: invalid style override passed, ignoring it.
<evertedsphere> fydai: maybe there's an X/Y problem here and you'd be better served just saying what you want this for
bqv has quit [Ping timeout: 246 seconds]
<cole-h> ottidmes: Hmm... is that something I should fix?
<ottidmes> cole-h: not at all, its on my end, should be fixed any minute
<cole-h> OK, phew :P
<ottidmes> whatever happened to breeze-qt4?
bqv has joined #nixos
jumper149 has joined #nixos
o1lo01ol1o has joined #nixos
<cole-h> btw ottidmes about to force-push
<cole-h> Figured it would be better to call wrapQtApp manually instead of wrapping the wrapper...
<ottidmes> cole-h: Hopefully it also fixes my issues, cause even with a theme and without warnings it fails with a black screen
<cole-h> Maybe, but probably not...
jumper149 has quit [Client Quit]
fydai has quit [Remote host closed the connection]
evertedsphere has quit [Ping timeout: 265 seconds]
<cole-h> ottidmes: OK, it's up now. Ignore the mass of force-pushes.
<ottidmes> cole-h: I am rebulding :)
<cole-h> Fingers crossed
ngiger has quit [Remote host closed the connection]
luc65r has joined #nixos
<luc65r> Hi
<ottidmes> no luck, I run it like: /nix/store/lybd5w17yqxfjs0a5cgry49i8zblqyzf-qimgv-0.8.9/bin/qimgv -style Breeze, no error, yet I see a rendering artifact followed by a black screen, a reboot might fix it, but don't want to do that :(
<luc65r> I'm trying to build a customized Iosevka
<{^_^}> [nixpkgs] @Mic92 merged pull request #85007 → gitAndTools.git-bug: 0.6.0 -> 0.7.0 → https://git.io/Jvhyc
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/Jvhd1
<luc65r> ```nix
<cole-h> ,paste
<{^_^}> Use a website such as [ https://gist.github.com/ http://ix.io/ https://hastebin.com/ http://sprunge.us/ https://paste.ee/ ] or similar services to share anything that's longer than a couple lines.
<pikajude> so i'm experimenting with making a rust crate builder in nix
<cole-h> ottidmes: What about `-style Adwaita`?
<pikajude> https://gist.github.com/pikajude/20bfcaad08870e1f01d48fe3b5d0f33d this feels like it should be able to be accomplished much more ergonomically
<pikajude> but i don't know where to put this code... a setup hook?
fusion809 has quit [Read error: Connection reset by peer]
fusion809 has joined #nixos
<luc65r> `fonts.fonts = [ pkgs.iosevka.override({ set = "custom"; }) ];`
<{^_^}> [nixpkgs] @timokau merged pull request #85027 → python3.pkgs.pymc3: unbreak; update arviz, tensorflow-probability → https://git.io/Jvhdt
<{^_^}> [nixpkgs] @timokau pushed 4 commits to master: https://git.io/JvhdH
<Pwnna> So I'm in a nix-shell with an qt + python app that I built. I'm using libsForQt5.callPackages and then mkDerivationWith python37Packages.buildPythonApplication. However, the python "development mode" installed binary are crashing when initializing QT while if i use result/bin/whatever it seems to work
<energizer> pikajude: have you looked at some of the existing tools like https://github.com/nmattia/naersk ?
<luc65r> I get The option value `fonts.fonts.[definition 1-entry 1]' in `/etc/nixos/devices/flash.nix' is not of type `path'.
<energizer> luc65r: perhaps you need parens around that
<Pwnna> https://paste.ubuntu.com/p/FJjFbYVx2z/ is what I have, but I can't get the development binary to work
jumper149 has joined #nixos
jumper149 has quit [Client Quit]
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
<luc65r> energizer Thanks
<pikajude> this is mostly a learning experience energizer
<Pwnna> The error is qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
<Pwnna> This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
<pikajude> although, fun fact, i actually work with nicolas and naersk is really good
luc65r has quit [Remote host closed the connection]
<energizer> pikajude: cool
<ottidmes> cole-h: sorry to say, even with adwaita installed it fails with a black screen for me
<cole-h> You are pointing it at a video file, right?
<pikajude> problem with naersk is that it builds an entire workspace as one derivation, so the derivation eventually becomes too large
<ottidmes> cole-h: I am pointing it at nothing... I assume its opening some sort of browser, no?
<cole-h> No
<cole-h> Well, yes, but only in the current folder, I believe
<cole-h> And only if it has image files, etc
<cole-h> And it doesn't recurse
<energizer> pikajude: it doesn't create a derivation for each dependency?
<cole-h> ottidmes: So if you have pictures in ~/Pictures, `qimgv ~/Pictures` should bring those up. If you run `qimgv /some/path/to/video.mp4`, it should open up and play that video file
<pikajude> no, it creates a derivation for every non-workspace dependency, and one for the workspace
<pikajude> it's a limitation of cargo unfortunately, you can't do dependency resolution in nix without IFD which naersk is designed to not use
<energizer> pikajude: what's a non-workspace dependency?
<pikajude> like, a crate from crates.io that isn't in pwd
<ottidmes> cole-h: Caught Exiv2 exception '/admin/xfr/video.webm: The file contains data of an unknown image type' Cannot load libcuda.so.1
<cole-h> Those should be safe
<pikajude> or rather, to clarify, you *can* do it, but it will break if you try to cross compile (which my usecase does)
<cole-h> Exiv2 exception is fine because it only detects images... obviously, a webm isn't an image
<ottidmes> <cole-h> But webms and mp4s work fine
<cole-h> Great, that's what I was hoping for :P One final force-push since apparently I can just use `qtWrapperArgs` instead of manually calling `wrapQtApp`
<ottidmes> cole-h: no, I was quoting you XD, you say its should error because it isnt an image, but I found it weird if you say it supports webm's
<ottidmes> cole-h: and that libcuda error seems relavant, no?
<{^_^}> [nixpkgs] @marsam merged pull request #84979 → nerdfonts: update.sh: use releases api to generate shas → https://git.io/Jvhwl
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvhFJ
<cole-h> Are you saying the webm *ISN'T* working?
<energizer> pikajude: whereas you want to make a derivation per file or something, like snack?
<pikajude> just per crate
<ottidmes> cole-h: I haven't gotten them to work. They show a player thing, but no video
<chloekek> Is it possible to specify per derivation that it should not be taken from a substitute?
<cole-h> OK, I think I'm missing something then. If I run it in a pure shell, I get errors as well. One moment.
jumper149 has joined #nixos
jumper149 has quit [Client Quit]
<peelz> How does the nixpkgs.config option work? If I understand correctly, you can use that to configure certain packages... but how does it work?
<peelz> It's briefly mentioned in the nix pills but I don't get how derivations make use of it
arjen-jonathan has quit [Quit: WeeChat 2.8]
<ottidmes> peelz: i.e. it is passed to nixpkgs which then use it to configure all packages
jumper149 has joined #nixos
jumper149 has quit [Client Quit]
<peelz> ottidmes: what does "configure all packages" mean?
<{^_^}> [nixpkgs] @danielfullmer opened pull request #85029 → nixos/systemd-boot: Add basic test → https://git.io/JvhFV
<peelz> ottidmes: I'm not sure what happens to `nixpkgs.config` after it makes it to pkgs/top-level/default.nix
<ottidmes> peelz: its made available as a top-level attribute, just like stdenv
<ottidmes> peelz: you can just track it from there, I did the same to verify what I was saying, if you search for accept_license you can see examples of some packages using it, allowUnfree can be seen used in stdenv/generic, all just get it as part of their other arguments
<{^_^}> [nixpkgs] @eadwu opened pull request #85030 → rtkit: 0.11 -> 0.13 → https://git.io/JvhFy
<bqv[m]> > nixpkgs-19.09.gcc9
<{^_^}> undefined variable 'nixpkgs-19' at (string):296:1
<bqv> is gcc9 in nixpkgs-19.09?
jmcasey has joined #nixos
<peelz> ottidmes: ah so the derivation must explicitly reference `config`. I thought it somehow allowed overriding derivation parameters received by callPackage. That makes a lot more sense.
drewr has quit [Ping timeout: 260 seconds]
<peelz> ottidmes++
<{^_^}> ottidmes's karma got increased to 33
jmcasey has quit [Client Quit]
jmcasey has joined #nixos
<b42> anyone knows why does https://nixos.org/nixpkgs/manual/ have subtitle "Version 19.09pre-git"?
morgrimm has joined #nixos
<bqv> why on earth is llvmPackages set to llvmPackages_7 when llvmPackages_10 is already in nixpkgs
<{^_^}> #84099 (by primeos, 1 week ago, open): llvmPackages and llvmPackages_latest are outdated
morgrimm has quit [Ping timeout: 265 seconds]
jumper149 has joined #nixos
jumper149 has quit [Client Quit]
bqv has quit [Ping timeout: 260 seconds]
gustavderdrache has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bqv has joined #nixos
drewr has joined #nixos
xO1 has quit [Ping timeout: 265 seconds]
zupo has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85031 → hcloud: 1.16.1 -> 1.16.2 → https://git.io/Jvhbu
<{^_^}> [nixpkgs] @bqv opened pull request #85032 → llvmPackages: 7 -> 8 → https://git.io/Jvhbz
<{^_^}> [nixpkgs] @bqv opened pull request #85033 → llvmPackages: 7 -> 9 → https://git.io/Jvhbg
<{^_^}> [nixpkgs] @bqv opened pull request #85034 → llvmPackages: 7 -> 10 → https://git.io/Jvhb2
kleisli_ has quit [Ping timeout: 265 seconds]
jumper149 has joined #nixos
<cole-h> ottidmes: Can you strace your qimgv invocation for me? I can't reproduce in a pure shell
<{^_^}> [nixpkgs] @bqv closed pull request #85032 → llvmPackages: 7 -> 8 → https://git.io/Jvhbz
<{^_^}> [nixpkgs] @bqv closed pull request #85033 → llvmPackages: 7 -> 9 → https://git.io/Jvhbg
<bqv> huh, i broke ofborg...
zupo has quit [Ping timeout: 256 seconds]
CptCaptain1 has quit [Quit: WeeChat 2.7.1]
<cole-h> Logs show it's running fine
<cole-h> Just that your PRs are busted
<{^_^}> #85034 (by bqv, 5 minutes ago, open): llvmPackages: 7 -> 10
<bqv> it said it had an error
<cole-h> Ope
<{^_^}> #67780 (by ivan, 32 weeks ago, closed): mpv cannot find libcuda.so.1
<cole-h> I missed that one, one sec
dermetfan has joined #nixos
<ottidmes> cole-h: although I am using the amdgpu driver
<cole-h> I mean, I get the same thing, but it still runs fine for me.
jumper149 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85035 → hugo: 0.68.3 -> 0.69.0 → https://git.io/Jvhb1
jumper149 has quit [Client Quit]
<cole-h> bqv++ Thanks. GitHub breaking their API once again.
<{^_^}> bqv's karma got increased to 2
<bqv> :D
<ottidmes> cole-h: how do I run it in nix-shell, just with -p?
<cole-h> ottidmes: If you have a checkout of my PR, then yeah, that should be it.
<cole-h> The real reason I was running nix-shell is so I could use `--pure` and make sure it wasn't an impurity on my non-NixOS system
<peelz> why does this happen? I can't delete those store entries even though the processes are clearly not alive anymore. https://0x0.st/iSGB.png
<infinisil> > nixos-19_09.gcc9
<{^_^}> "<derivation /nix/store/rkx4kjx6wg850i078arvzhaff6svl28m-gcc-wrapper-9.2.0.drv>"
<infinisil> bqv: ^
<peelz> garbage collecting gets rid of it though
buggymcbugfix has joined #nixos
<bqv> ah that's the syntax, ty
<infinisil> Maybe there should be a `channels` attribute set with all channels in it
<infinisil> Then one could do `channels."nixos-19.09"...`
<cole-h> Would be nice :P I always forget the syntax
<ottidmes> infinisil: I have that on my system :P
growpotkin has joined #nixos
zupo has joined #nixos
evanjs has quit [Quit: ZNC 1.7.5 - https://znc.in]
<ottidmes> > nux eval 'channels."nixos-19.09"' -> "/nix/store/n72vxx92n0ki3f8p7s2x7msn8n6gmnsd-nixos-19.09.git.ce9f1aa" (nux is just some convenience wrapper for me, that also includes my lib by default)
<{^_^}> error: syntax error, unexpected $undefined, expecting ')', at (string):296:10
evanjs has joined #nixos
__monty__ has quit [Quit: leaving]
nschoe has quit [Ping timeout: 256 seconds]
kreetx has quit [Ping timeout: 250 seconds]
<ottidmes> cole-h: I am sorry I cannot be more of a help, but I seem to be missing the necessary lib: https://github.com/NixOS/nixpkgs/commit/46cbb8453afa5b74612ffd795cfbcab71e3d141a#diff-d74a2a224ede4db1e9a37b8b80afaedcR190 although you said you were getting errors too, did that include the libcuda one?
<cole-h> Yes, I also get the libcuda "error"
<ottidmes> did a strace BTW but good luck finding stuff in it
<{^_^}> [nixpkgs] @r-ryantm opened pull request #85036 → i2pd: 2.30.0 -> 2.31.0 → https://git.io/JvhNG
<ottidmes> you might want to find another victim :P to see if its just me
<cole-h> see if `addOpenGLRunpath $out/bin/.qimgv-wrapped` does anything in a postFixup
<cole-h> (need addOpenGLRunpath in args and nativeBuildInputs)
<cole-h> If still no dice, I will indeed find another victim :P I appreciate you at least taking a look, though. ottidmes++
<{^_^}> ottidmes's karma got increased to 34
<peelz> Is there a way to reference an inpure path without causing it to get added to the nix store? e.g. "${./.}"
<ottidmes> cole-h: no dice I am afraid, but again, it might be something amiss in my system/environment, so definitely get a second opinion
<cole-h> >"${toString ./.}"
<cole-h> > "${toString ./.}"
<{^_^}> "/var/lib/nixbot/state/nixpkgs"
<cole-h> ottidmes: :/ Unfortunate. Thanks again.
<peelz> cole-h: ah of course. thanks
<cole-h> Np. I had the same issue -- it's what I use to link my secrets into place
<peelz> makes sense
zeenk has quit [Quit: Konversation terminated!]
<ottidmes> I also have an option added called path, such that I can say when creating and installer copy them over to the /nix/store, and otherwise just use their local paths (but thats not used for secrets of course, you dont want those in your installer generally)
jumper149 has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/0af01aa8d1f (from 19 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
jumper149 has quit [Client Quit]
jumper149 has joined #nixos
jumper149 has quit [Client Quit]
Thra11 has quit [Quit: WeeChat 2.7.1]
jumper149 has joined #nixos
jumper149 has quit [Read error: Connection reset by peer]
<peelz> cole-h: what kind of secrets are you referencing that way? nix files containing strings or e.g. ssh key files, etc?
km_ has joined #nixos
<cole-h> peelz: atm I'm only doing that in my hm config. Secrets include my IRC credential file, my gitauth file, and my imgur credentials (for uploading all screenshots to a private album)
<peelz> cole-h: would you say it's a bad idea to have your secrets in the store?
<cole-h> Considering it's world-readable: yes.
<peelz> gotcha
zupo has quit [Quit: Textual IRC Client: www.textualapp.com]
<peelz> is there no way to control the permissions on certain store entries? I remember seeing some "{censored}" entries getting listed by the nix gc
zupo has joined #nixos
<clever> peelz: that happens if its in the env vars of a process running as another user
<clever> peelz: running as root will reveal all secrets
<peelz> ah
WilliamHamilton has joined #nixos
<WilliamHamilton> what should I do to activate qemu so that I can run a VM in nixos? I tried `virtualization.libvirtd.enable = true;` and `boot.kernelModules = [ "kvm-amd" "kvm-intel" ];` but I get `Could not access KVM kernel module: No such file or directory`
<peelz> clever: any idea why this happens? https://0x0.st/iSGB.png
<peelz> running the gc gets rid of it though
<clever> peelz: its in sudo's env vars
<clever> peelz: you must use `sudo -i` and then run -q --roots without the sudo infront of it
<clever> peelz: also, --delete never needs root, so you dont have to sudo the --delete
<peelz> clever: huh, why is it in sudo's env vars?
<clever> peelz: because it was in the cmdline of sudo
<peelz> what's "it"?
<Athas> Is there a convenient way to express 'src' as a list, or better yet, a list of wildcards?
<clever> peelz: when you `sudo foo /nix/store/bar` then sudo is depending on /nix/store/bar until sudo quits
<cole-h> How do you mean wildcards?
<clever> peelz: its part of how nix checks if any running program is using any store path
<Athas> cole-h: like, docs/*.rst
<peelz> clever: ohh... so it's checking the file descriptors (like lsof would)?
<clever> peelz: yeah
<Athas> Actually, I guess I don't need that. I could probably work with just specific folders and files.
<peelz> clever++ makes sense, thanks!
<{^_^}> clever's karma got increased to 388
<clever> peelz: it checks mapped files, file descripors, env vars, and the cmdline
<peelz> that makes sense
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @ryantm merged pull request #85016 → amber: 0.5.3 -> 0.5.4 → https://git.io/JvhQz
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JvhAR
jumper149 has joined #nixos
jumper149 has quit [Client Quit]
Henson has quit [Ping timeout: 256 seconds]
chloekek has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @bqv closed pull request #85034 → llvmPackages: 7 -> 10 → https://git.io/Jvhb2
o1lo01ol1o has quit [Ping timeout: 256 seconds]
fendor has quit [Read error: Connection reset by peer]
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
piezo has joined #nixos
piezoid is now known as Guest34983
Guest34983 has quit [Ping timeout: 256 seconds]
justanotheruser has quit [Ping timeout: 256 seconds]
mallox has quit [Quit: WeeChat 2.8]
<{^_^}> [nixpkgs] @Evils-Devils opened pull request #85039 → Rasdaemon: init at v0.6.5 → https://git.io/JvhAF
Soo_Slow has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/dd0c85d546c (from 13 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
piezoid is now known as Guest67661
piezoid has joined #nixos
<blibberblob> Does anyone here use steam on nixos? I'm getting an error on startup `glXChooseVisual failed`
Guest67661 has quit [Ping timeout: 256 seconds]
philr has joined #nixos
justanotheruser has joined #nixos
<energizer> is it expected that `nixos-rebuild test` as a normal user gives `write_file '/run/systemd/restart-list' - sysopen: Permission denied at /nix/store/al04k3z7wp7kyxwzh0ncmbplnks1n7rj-nixos-system-beta-20.09pre219796.f601ab37c2f/bin/switch-to-configuration line 128.`?
<blibberblob> nm, I think I got it, just needed `hardware.opengl.enable = true;`
<lovesegfault> Does anyone know why does this not work? Namely, none of the pkgs I added in that overlay show up
<lovesegfault> if I do nix-shell ./nix/default.nix -p crate2nix it says it doesn't exist
cosimone has quit [Ping timeout: 260 seconds]
dermetfan has quit [Ping timeout: 265 seconds]
<clever> lovesegfault: -p and giving a file dont mix right
<lovesegfault> :(
<clever> lovesegfault: you likely want `nix-shell -p '(import ./nix).crate2nix'
* lovesegfault tries
fusion809 has quit [Read error: Connection reset by peer]
<clever> lovesegfault: internally, `-p foo` translates into `-E 'with import <nixpkgs> {}; stdenv.mkDerivation { name = "name"; buildInputs = [ (foo) ]; }`
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<energizer> does `nixos-rebuild test` usually require sudo?
<lovesegfault> clever: Ah, that worked :)
<clever> energizer: yes
piezoid has quit [Remote host closed the connection]
<energizer> ok
dermetfan has joined #nixos
fusion809 has joined #nixos
piezo has joined #nixos
piezo is now known as piezoid
<energizer> what did i do wrong? https://bpaste.net/7D7A
InvisibleRasta has joined #nixos
<peelz> energizer: what NixOS version are you on?
blibberblob has quit [Quit: WeeChat 2.7.1]
<energizer> 19.09.2393.60c4ddb97fd (Loris)
<peelz> you need to use the 19.09 home-manager channel then
<peelz> master is built against unstable
<peelz> s/built/developed/
snicket has quit [Ping timeout: 240 seconds]
<energizer> oh. i think i want to be on unstable. how do i change that?
<peelz> you need to change nixos channel on root
<peelz> check with `sudo nix-channel --list`
<misuzu> energizer: sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos && sudo nix-channel --update nixos && sudo nixos-rebuild boot
<misuzu> and reboot
<energizer> is it reasonable to be on nixos master, or will that be inconvenient?
<peelz> you wanna use a channel that hydra maintains, not directly on master or you risk having to compile a bunch of derivations yourself
<misuzu> energizer: you probably don't want git master, unstable channel should be fine
<clever> peelz: being on master can also corrupt your grub, and leave it unable to boot
<energizer> what's the appropriate home-manager channel when i'm using nixos-unstable?
morgrimm has joined #nixos
<hexa-> energizer: master
<peelz> clever: :O how so?
<energizer> doesn't that mean i'll have to build a bunch of stuff myself like peelz was saying?
<peelz> energizer: no, I was talking about nixpkgs' master branch, not home-manager's master branch
<energizer> ok
<{^_^}> [nixpkgs] @das-g opened pull request #85040 → prevo: init at 0.2 → https://git.io/JvhxH
<energizer> am i supposed to `nix-channel --add https://github.com/rycee/home-manager/archive/master.tar.gz home-manager` as root?
<clever> peelz: it could be a bug in grub itself, or it could be a bug in the code that generates the grub config file
<clever> peelz: hydra tests all of that in qemu, and only if it passes, will nixos-unstable update
<lovesegfault> andi-: are you still up?
<peelz> clever: is the GRUB issue that you're talking about the one in the 20.03 milestone?
<clever> peelz: na, its something that happened several years ago
jjakob_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<peelz> clever: gotcha, good to know
<clever> peelz: somebody made a mistake in the grub config generation, and nixos-unstable correctly didnt update
<peelz> ouch
<clever> peelz: but then half a dozen people running nixos from nixpkgs-unstable came out of the woodwork, because it bricked their machines
<peelz> on more reason to stay on stable channels :P
<clever> peelz: thats why you use the nixos channels on nixos
morgrimm has quit [Ping timeout: 256 seconds]
<clever> peelz: nixos-unstable tests things, and didnt update, protecting users
jjakob has joined #nixos
work_ has quit [Quit: Connection closed for inactivity]
<clever> peelz: nixpkgs-unstable isnt meant for nixos use, so it doesnt test grub
<peelz> clever: ohh you're talking about nixos-unstable vs nixpkgs-unstable, gotcha
<clever> peelz: yep
<energizer> are all these channels gonna be replaced by flakes soon?
<peelz> not sure about "soon", afaik flakes are still very experimental
<clever> energizer: if you want nixos to use the home-manager module, then the channel must exist on root
<gchristensen> the same thinsg will probably exist as flakes
<energizer> clever: ok
morgrimm has joined #nixos
<buggymcbugfix> To install fonts [the wiki](https://nixos.wiki/wiki/Fonts) gives an example like `fonts.fonts = with pkgs; [ foo bar baz ];`. How do I find out what are valid values to put in that list? Not just for fonts but in general, e.g. for `time.timeZone`, where do I look up all allowed values?
<clever> buggymcbugfix: for fonts, its any package that contains a font file, so its a bit fuzzy
<clever> buggymcbugfix: for timezones, i just run tzselect and it gives an answer
<buggymcbugfix> clever: so say you wanted to install Inconsolata. How would you look for what variable to put in? Just `nix search inconsolata`?
<clever> ,locate Inconsolata
<{^_^}> Found in packages: riot-web
<clever> wut? lol
<clever> fontforge.out 84,868 x /nix/store/8nkmkg8dm4khchrqcabli1gp0gjp6awp-fontforge-20160404/share/fontforge/pixmaps/Inconsolata-Regular.ttf
<energizer> buggymcbugfix: pkgs.inconsolata
<clever> buggymcbugfix: its also in fontforge, so thats what you would add
<clever> inconsolata-lgc.out 53,852 r /nix/store/51c7i9wk41wwn63p8v5wd3ymhd9y9886-inconsolata-lgc-git-2015-04-18/share/fonts/truetype/Inconsolata-LGC.ttf
<clever> > pkgs.inconsolata
<{^_^}> "<derivation /nix/store/94c4zp96n092g2r4hy14g3mqlrlg4hfh-inconsolata-2019-07-14.drv>"
<clever> ah, and there is also pkgs.inconsolata and pkgs.inconsolata-lgc too
<colemickens> inconsolata is not hard to find I guess ha
<buggymcbugfix> thanks. how'd you find these? trying to learn how to fish here...
<colemickens> `nix-env -qaP > /tmp/pkgs; nvim /tmp/pkgs` is my approach
<energizer> i guessed and checked
<energizer> nix search inconsolata
morgrimm has quit [Ping timeout: 260 seconds]
<buggymcbugfix> is there a general method for discovering what are valid values for a given key or do you need to know how it is implemented?
<clever> ,locate
<{^_^}> Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended) https://github.com/bennofs/nix-index
<clever> buggymcbugfix: i used nix-locate locally
<clever> its a cmd within nix-index
<colemickens> buggymcbugfix: depends on the option. Some options have enums, some sort of implicitly require you knowing where it's going to land in the usual Linux ecosystem.
<colemickens> like timezone, the option should hopefully at least have help text on how to list acceptable values but I don't know if it does.
<buggymcbugfix> colemickens: makes sense. Where would you look for these enums?
<colemickens> buggymcbugfix: I use the html page, but I think I'm a bit odd in that regard
<energizer> there's the nixos-option command
<colemickens> buggymcbugfix: so for this option, https://nixos.org/nixos/options.html#services.openssh.permi, you can see there is a list of valid values.
<colemickens> ^ CLI output is very similar :)
<buggymcbugfix> colemickens: ah cool, that's very helpful, what is the CLI tool that would give the equivalent information?
<gchristensen> man configuration.nix
<buggymcbugfix> nix search?
<energizer> buggymcbugfix: nixos-option
<buggymcbugfix> gchristensen: *universe brain*
<{^_^}> [nixos-homepage] @garbas merged pull request #388 → clean up news → https://git.io/JvhSh
<{^_^}> [nixos-homepage] @garbas pushed commit from @davidak to master « clean up news (#388) »: https://git.io/JvhpT
<buggymcbugfix> might suggest adding that to the manual
<{^_^}> [nixos-homepage] @garbas pushed 0 commits to davidak-newsx: https://git.io/Jvhpk
maddo has quit [Quit: See ya]
<energizer> sudo nixos-rebuild test -> 'error: file 'home-manager/nixos' was not found in the Nix search path' even though home-manager appears in `sudo nix-channel list`. i thought it might be a profile issue so i re-logged in in a tty and got the same thing
<energizer> do i need to reboot or something?
Darkmatter66 has quit [Ping timeout: 250 seconds]
<energizer> just worried that if i reboot and it can't find the channel i'll be left with a broken system
Intensity has quit [Remote host closed the connection]
mbrgm_ has joined #nixos
<energizer> rebooted, not broken
jlv has joined #nixos
slack1256 has joined #nixos
<cole-h> ottidmes: Found my issue
Darkmatter66 has joined #nixos
<cole-h> ottidmes: qimgv hardcodes the path to mpv as `/usr/bin/mpv` lol
<cole-h> `sed`ing it to `${mpv}/bin/mpv` and it works fine in my VM.
<energizer> here's all the info https://bpaste.net/TFOQ
mbrgm has quit [Ping timeout: 258 seconds]
mbrgm_ is now known as mbrgm
<ottidmes> cole-h: if you force push, I am willing to try one last time
<cole-h> I did :)
<cole-h> ottidmes++ Thanks for your patience
<{^_^}> ottidmes's karma got increased to 35
xavierm02 has joined #nixos
<energizer> aha, i missed --update
<energizer> implicit global state strikes again
<ottidmes> cole-h: its working!
<cole-h> WOOOHOOO!
<cole-h> So it wasn't just you ^^;
<cole-h> Sorry for making you doubt your sanity.
<ottidmes> :P
morgrimm has joined #nixos
kleisli_ has joined #nixos
<jlv> How can I disable a default PulseAudio module?
<ottidmes> cole-h: webm thumbs are now working too, still annoying that it shows warnings that it caught correct behavior (those exiv2 exceptions)
<cole-h> The real issue is: Exiv2 is an image library
<cole-h> Not a video library
<cole-h> So if it tries to open a video like an image, of course it'll fail
rogue_koder has quit [Ping timeout: 265 seconds]
<cole-h> Not to say they aren't annoying (and a red herring in most cases)
thc202 has quit [Ping timeout: 260 seconds]
justsomeguy has joined #nixos
<ottidmes> cole-h: so I consider it a bug of qimgv, it should simply not report it, I get a whole bunch of noise, but that unrelated to vid support, great job getting it to work!
<ottidmes> cole-h++
<{^_^}> cole-h's karma got increased to 21
<cole-h> Agreed. Maybe I'll get around to reporting it when I'm not busy procrastinating^W working on coursework
<cole-h> (would also be real neato if you left an r+ ;^) )
<ottidmes> r+, you mean review?
morgrimm has quit [Ping timeout: 256 seconds]
rogue_koder has joined #nixos
Soo_Slow has quit [Quit: Soo_Slow]
rogue_koder has quit [Ping timeout: 250 seconds]
bhipple has joined #nixos