gchristensen changed the topic of #nixos to: NixOS 18.09 released https://discourse.nixos.org/t/1076 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018
o1lo01ol1o has joined #nixos
gagbo has quit [Quit: I'm out !]
peacememories has joined #nixos
<tnks> Double-checking, the Nix 2.x "nix" command doesn't intrinsically do anything with ~/.nix-defexpr, right?
erictapen has joined #nixos
<tnks> I believe ~/.nix-defexpr is only used by nix-channel and nix-env. But I appreciate corrections to my understanding.
colonel_john_by has joined #nixos
colonel_john_by has quit [Client Quit]
<gchristensen> right
o1lo01ol1o has quit [Ping timeout: 244 seconds]
o1lo01ol1o has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/3fa77297b59 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<tnks> gchristensen: thanks.
sir_guy_carleton has quit [Ping timeout: 268 seconds]
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
erictape1 has quit [Ping timeout: 246 seconds]
peacememories has joined #nixos
Soo_Slow has joined #nixos
peacememories has quit [Client Quit]
freeman42x has quit [Read error: Connection reset by peer]
peacememories has joined #nixos
freeman42x has joined #nixos
Makaveli7 has quit [Ping timeout: 245 seconds]
gagbo has joined #nixos
jmgai has joined #nixos
mizu_no_oto has joined #nixos
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ar1a> i have a runtime dependency for this package im adding. im so confused as to which variable i put it under. for the record it's jq
__monty__ has quit [Quit: leaving]
<simpson> ar1a: Maybe you want `propagatedBuildInputs`?
<ar1a> hmm no, that just includes the source i think. i need the binary to be available
azdle has joined #nixos
doyougnu has joined #nixos
<ottidmes> ar1a: you would need to give more information than just that you are adding a package that uses jq as a dependency, the way to go about it would depend on how the package is being run. Normally you would just add runtime dependencies to buildInputs, but if there is no hard dependency on it, it will not be included as an actual runtime dependency.
perique has joined #nixos
<ottidmes> ar1a: My guess is that you have a script, since that is where jq is most often used?
<ottidmes> ar1a: If so, you would need to wrap your script such that PATH is set to contain the bin path of jq
<ar1a> correct, its a shell script
<{^_^}> [nixpkgs] @thoughtpolice opened pull request #54347 → Tamarin 1.4.1 update → https://git.io/fhuG6
<ar1a> how would i do that ottidmes?
<ottidmes> ar1a: so I use makeWrapper to wrap the script, that generates a wrapper script around my script with a PATH export containing the bin paths of the packages I list at makeBinPath
o1lo01ol1o has quit [Remote host closed the connection]
<ar1a> makeBinPath wasn't imported. should it be?
<ar1a> nope. its throwing an error
<ottidmes> ar1a: if you have the with stdenv.lib; line
<ar1a> ahhhhh
<ar1a> hmm, wrappers with nix-build don't work. i think i have to nix-env install it huh
<ottidmes> ar1a: why should it not work, I am using that very package with nix-build and call the wrapper
peacememories has joined #nixos
<ar1a> oh nah still broken if i install. /nix/store/1zr8klg5qy3rf1rmkwkmsp6lpc40k5cy-pb_cli-1.0/bin/.pb-wrapped: line 64: .pb-wrapped: command not found
pareidolia has quit [Quit: ZNC 1.7.1 - https://znc.in]
<ottidmes> ar1a: could you share the package, via a pasting service such as GitHub gists?
pareidolia has joined #nixos
systemfault has left #nixos [#nixos]
peacememories has quit [Client Quit]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @swdunlop opened pull request #54348 → kak-lsp: init at 6.0.1 → https://git.io/fhuGA
Cale has joined #nixos
eadwu has joined #nixos
peacememories has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/3cac5996285 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<ar1a> no ideas? :'(
<ottidmes> ar1a: cannot reproduce it
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Soo_Slow has quit [Remote host closed the connection]
<ar1a> is there a way to clean my nix-build and try again?
<ottidmes> ar1a: after replacing your script with something simple (a shebang and echo) I just get the echo and every seem correct
<ottidmes> ar1a: could it be a bug in your script?
<ottidmes> ar1a: it says line 64 after all
<ar1a> line 64 is the final line of the wrapper that runs that eval
peacememories has joined #nixos
<ottidmes> ar1a: you sure everything that evals runs is on your PATH as well?
<ar1a> yeah how strange, echo works fine but when i put the pb.sh in it breaks
<ottidmes> ar1a: i.e. capture and maim
<ar1a> those shouldnt be called unless i tell it to record
<ar1a> oh maybe curl
<ar1a> no adding curl is still erroring
<ottidmes> no your eval is wrong, if I echo it instead I get: .pb-wrapped
hedning has quit [Quit: hedning]
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #54347 → Tamarin 1.4.1 update → https://git.io/fhuG6
<{^_^}> [nixpkgs] @thoughtpolice pushed 2 commits to master: https://git.io/fhuZc
<samueldr> ar1a: `eval " ${0##*/}" "$@"`
<mightybyte> Is there a way to programatically get a list of all the nix substituters?
<ottidmes> ar1a: which brings us back to the error message, which makes much more sense then
<mightybyte> (other than the obvious way of parsng nix.conf)
<samueldr> this is some bash trickery to self-call the script
shibboleth has joined #nixos
<samueldr> where it detects the wrapped filename
<samueldr> and *only* the filename, not the full path
travelion has quit [Quit: ZNC - https://znc.in]
<samueldr> so it ends up searching in PATH for that
<samueldr> this is... worryingly bad mho
<samueldr> imho*
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<ar1a> i tried installing it with nix-env though, and it st ill gave me that error
<ar1a> and nix-env its in the path
<samueldr> yeah, I think it's relying on that to call the pb() function
<ottidmes> ar1a: if you are going to build it, why not just use the absolute path?
hcs^ has joined #nixos
<samueldr> ottidmes: here it looks like the software itself is "bad"
<ar1a> i didn't write the wrapper?
<samueldr> it relies on the called script's name to be "pb" to work right AFAICT
<ar1a> im calling pb
<ottidmes> ar1a: see my substitute example, you can use --subst-var out instead and then use @out@ directly in your script
travelion has joined #nixos
<samueldr> ar1a: try this patch to pb_cli https://gist.github.com/884234ab086eb118a71fe5ccd120fa8c
<ottidmes> mightybyte: nix show-config --json | jq '.substituters.value'
<samueldr> the "eval" indirection isn't necessary and probably is worse than unnecessary
gagbo has quit [Ping timeout: 250 seconds]
<ar1a> cool. how should i add patches to a package?
<samueldr> their reliance on `eval` and the script name is terrible; imagine I had named the script "rm -rf *" (which is a valid name)
<mightybyte> ottidmes: Awesome, thanks!
<samueldr> ar1a: I won't, since I have no attachment to the program, but if it works fine, I would suggest you PR this explaining it as best as you understand
<samueldr> (to their project)
slack1256 has joined #nixos
<ar1a> i don't really understand why it's bad, so i might pass on that
<ar1a> thanks for the help
<ar1a> your patch worked
<samueldr> basically, in bash, like in many languages, eval is generally a bad idea, especially if you don't control the inputs. Here it uses the "weird" `${0##*/}` as an input
hellrazo1 has joined #nixos
<samueldr> `${0##*/}` in a bash script will take what (simplified) is "how you called the script", remove path elements (if any), and use that, so in most cases, the filename for the script (this is not an absolute truth, but works here)
<ottidmes> mightybyte: even better: nix show-config --json | jq '[.substituters.value[], ."trusted-substituters".value[]] | map(rtrimstr("/")) | unique'
<samueldr> eval will run the code passed as arguments, si using `${0##*/}` is just like running `pb` when the script is named `pb`. though here as we could see, it wasn't even seeing `pb` as the script was named `.pb-wrapped`
init_6 has joined #nixos
<samueldr> so first bug (1) cannot work if the script isn't named pb, for any good reason
o1lo01ol1o has joined #nixos
hellrazor has quit [Ping timeout: 246 seconds]
<samueldr> the "second bug", is a security issue; since `eval` will run the code, if I name the script `echo hello world`, running "./echo hello world" will make the script print "hello world"... not so bad until you consider that could be any command
<samueldr> (just like in your shell you can type `eval "echo hello world"`)
<ar1a> ill save that for later thanks
oy is now known as dmc
Lisanna has joined #nixos
<Lisanna> Have a laptop with Intel HD graphics connected over HDMI to a 4k monitor. KDE is only allowing me to set up to 1920 resolution for the display. Is there a driver I need to specify in my nixos configuration to enable the higher resolution support?
<clever> Lisanna: do you know for sure that the GPU is capable of 4k?
<Lisanna> Yeah, should be
<clever> and is the hdmi cable also rated for 4k?
<Lisanna> That I do not know.
<clever> 4k requires a higher bitrate, which older cables arent rated for
<Lisanna> HD Graphics 520
<Lisanna> okay, I'll try a different cable
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mightybyte> ottidmes: Ahh yes.
<Lisanna> I've tried with a cable that I know can support the resolution (works with my other laptop running fedora), and 1920 is still listed as the max
dsiypl4_ has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhuCi
<clever> Lisanna: what about `xrandr -q` ?
<Lisanna> only other thing I can think of other than drivers is that the HDMI port on the laptop is 1.2
<clever> Lisanna: yeah, i dont think 1.2 can do 4k
<Lisanna> I'm looking at the listed specs though and it should be a 4k compatible port
peacememories has joined #nixos
<Lisanna> I don't know what the HDMI version is
<{^_^}> [nixpkgs] @rasendubi merged pull request #54293 → gcc-arm-embedded: fix MANPATH → https://git.io/fh0c1
<{^_^}> [nixpkgs] @rasendubi pushed 2 commits to release-18.09: https://git.io/fhuCA
shibboleth has quit [Quit: shibboleth]
<Lisanna> maybe I'll try the nixos installer
peacememories has quit [Client Quit]
<clever> Lisanna: checking my media box to see what it says...
<clever> Jan 15 13:27:26 nas display-manager[23257]: (II) RADEON(0): Supported established timings:
<clever> Lisanna: check `journalctl -u display-manager` for a msg like this
<clever> Jan 15 13:27:26 nas display-manager[23257]: (II) RADEON(0): EDID for output HDMI-0
<clever> Jan 15 13:27:26 nas display-manager[23257]: (II) RADEON(0): Manufacturer: SNY Model: 4201 Serial#: 16843009
<clever> Jan 15 13:27:26 nas display-manager[23257]: (II) RADEON(0): Modeline "1920x1080i"x60.0 74.25 1920 2008 2052 2200 1080 1084 1094 1125 interlace +hsync +vsync (33.8 kHz e)
<samueldr> I almost ,pasted you :)
peacememories has joined #nixos
<Lisanna> Jan 19 17:27:21 arrow X[783]: (II) intel(0): Modeline "3840x2160"x0.0 594.00 3840 4016 4104 4400 2160 2168 2178 2250 +hsync +vsync (135.0 kHz eP)
peacememories has quit [Client Quit]
<{^_^}> [nixpkgs] @ar1a opened pull request #54349 → Pb cli and capture initialization → https://git.io/fhuWJ
<ar1a> wew, that took sooo much longer than i expected because of that weird eval error
<ar1a> i had to patch the other program the same too, probably written by the same guy
jmgai has quit [Ping timeout: 250 seconds]
<clever> Lisanna: not sure then
<Lisanna> clever: so you don't think there could be a driver issue?
<clever> Lisanna: the "intel(0)" in your msg says your using the right driver
<Lisanna> ok
<clever> Lisanna: all i can think of is to grab the EDID block, and paste it into an online EDID decoder
peacememories has joined #nixos
Lisanna has quit [Quit: Lisanna]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lisanna has joined #nixos
hamishmack has joined #nixos
peacememories has quit [Client Quit]
q6AA4FD has joined #nixos
peacememories has joined #nixos
Lisanna has quit [Read error: Connection reset by peer]
Lisanna has joined #nixos
freeman42x has quit [Ping timeout: 252 seconds]
peacememories has quit [Client Quit]
appleclusters has joined #nixos
<appleclusters> I just relaunched chrome/gnome and all of a sudden google-chrome-stable doesn't launch. gives an error `/nix/store/.../share/...: line 49: /home/max/chrome: No such file or directory. Was there a silent update that broke everything??
<{^_^}> [nixpkgs] @vkleen opened pull request #54350 → Support PowerPC in llvm → https://git.io/fhuWV
<Lisanna> clever: I manually added the modeline with xrandr and got it working
<Lisanna> sucks that it didn't autodetect it :/
<clever> Lisanna: definitely sounds like a bug in the drivers
<clever> Lisanna: maybe report it upstream
doyougnu has quit [Quit: WeeChat 2.0]
<Lisanna> not sure I know enough about the subject to file a competent report
<{^_^}> [nixpkgs] @dotlambda pushed to master « python.pkgs.pyaxmlparser: some files are licensed asl20 »: https://git.io/fhuWh
<Lisanna> I don't know a lot about how xrandr and modes work, but I noticed that display-manager reported two modelines for this resolution, and gave them the same identifier - one of them doesn't work though
<Lisanna> Jan 19 17:52:48 arrow X[783]: (II) intel(0): Modeline "3840x2160"x0.0 594.00 3840 4016 4104 4400 2160 2168 2178 2250 +hsync +vsync (135.0 kHz eP)
<Lisanna> Jan 19 17:52:48 arrow X[783]: (II) intel(0): Modeline "3840x2160"x0.0 297.00 3840 4016 4104 4400 2160 2168 2178 2250 +hsync -vsync (67.5 kHz e)
<simpson> Lisanna: Were there any warnings in dmesg? This is one of the drivers which does modesetting logic in the kernel, so the kernel log may have extra information.
<Lisanna> If I try to apply the first one the driver reports this error:
<Lisanna> Jan 19 18:00:26 arrow X[783]: (--) intel(0): HDMI max TMDS frequency 300000KHz
<Lisanna> Jan 19 18:00:26 arrow X[783]: (EE) intel(0): failed to set mode: Invalid argument [22]
<simpson> Ah, there you go. Not enough bandwidth; your HDMI connection isn't fast enough for the megapixel count you want.
<Lisanna> so I removed that mode from xrandr and added the second one I listed and it worked
<Lisanna> but I still had to manually add it
<simpson> Hm. Wonder why it's not automatically added.
<Lisanna> they're both identified as "3840x2160"x0.0
<Lisanna> no idea if that makes a difference
silver has quit [Read error: Connection reset by peer]
<appleclusters> Where can I begin to troubleshoot chrome not launching for the above error?
<simpson> 0.0 is a pretty weird FPS. Very strange.
dermetfan has quit [Ping timeout: 246 seconds]
<simpson> appleclusters: Sounds like you don't have a ~/chrome. Not sure what that would be used for, though. What did you change recently?
<ar1a> the only difference i can see is that vsync is off in one
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<Lisanna> ar1a: and one has a lower bandwidth
<simpson> ar1a: That is for vsync polarity; all modes will be vsync'd in terms of scanout.
<ar1a> oh
<simpson> It's a common misconception. "disabling vsync" is something that an application does, by drawing without waiting for the vsync signal.
<simpson> But the pixels themselves are highly sync'd when it comes to HDMI.
mizu_no_oto has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
MichaelRaskin has quit [Read error: No route to host]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
doyougnu has joined #nixos
rcshm has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
<appleclusters> @simpson: I switched to gnome from plasma and made some misc updates to my global nix config. However my installation of chrome is local to the environment. I have no clue how such a side effect could happen like that. Maybe if it got force closed somehow it forgot a nix specific override?
<simpson> appleclusters: No idea, sorry.
<appleclusters> My instinct is to reinstall, guess I have no choice
<appleclusters> nix-env -e google-chrome and then reinstalling does nothing. Is there something I should do to do a "clean" uninstall? Are there side effects unaccounted for?
d4g_ has joined #nixos
<{^_^}> [nix] @domenkozar merged pull request #2635 → manual: "sandbox" option default is "true" on Linux → https://git.io/fhlrR
<{^_^}> [nix] @domenkozar pushed 2 commits to master: https://git.io/fhu8J
d4g has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @expipiplus1 opened pull request #54352 → haskellPackages.monad-memo: remove unnecessary patch → https://git.io/fhu8k
rcshm has quit []
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
simukis has quit [Quit: simukis]
simukis has joined #nixos
simukis has quit [Remote host closed the connection]
<clever> appleclusters: the nix side of things is pure and would give you the exact same binaries, even if you fully deleted things
<clever> appleclusters: its either a config file in $HOME (which nix will never delete) or is just always broken (you need to debug and fix it)
<init_6> About https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/system/thinkfan/default.nix thinkfan-0.9.3 released 2016-05-05 and no any updates! There https://github.com/vmatare/thinkfan in a new fork. Why we don't use it?
<{^_^}> [nixpkgs] @worldofpeace pushed to master « discount: enable various configureFlags »: https://git.io/fhu8W
o1lo01ol1o has quit [Ping timeout: 268 seconds]
pacmeister has quit [Quit: Lost terminal]
Denommus has quit [Remote host closed the connection]
<iqubic> How many commits a day does Nixpkgs Master get?
<iqubic> This branch is 1 commit ahead, 18692 commits behind NixOS:master. I only forked this earlier today. The hell?!?!
<iqubic> Also... I think I should have created a separate branch for this nixpkgs pull request. Can I get some help here?
<iqubic> I've not actually made the PR yet, because I fear I should have made a new branch before making the commit to my own fork.
<clever> iqubic: `git checkout -b foo` will create a branch called foo, based on the current commit
o1lo01ol1o has joined #nixos
jmgai has joined #nixos
<iqubic> clever: But I've already made a commit on the master branch and pushed it to iqubic/nixpkgs online, which I know nw probably isn't how the nixpkg maintainers want their PRs.
<iqubic> clever: Can you help me out with this, before I make my PR to the official nixpkgs repo?
rcshm has joined #nixos
jmgai has quit [Ping timeout: 240 seconds]
goibhniu has quit [Ping timeout: 240 seconds]
<clever> iqubic: you can basically just ignore the master branch on your fork
<iqubic> Why is that?
<clever> its not really of any use
<iqubic> Is there a way to undo a commit that has been pushed online already?
vk3wtf has quit [Ping timeout: 252 seconds]
<clever> force-push a different commit
<iqubic> What does that mean?
rcshm has quit []
<clever> `git push --force master`
<clever> and it will force push whatever your current branch is, to the remote one
<iqubic> but I just want to remove this commit from my master branch, and not just replace it with something else.
<clever> `git reset --hard REV` to set a local branch to a given commit
doyougnu has quit [Ping timeout: 244 seconds]
<iqubic> `git push --force master` isn't working for me.
<iqubic> fatal: 'master' does not appear to be a git repository
<iqubic> fatal: Could not read from remote repository.
<clever> oh, `git push --force origin master`
rcshm has joined #nixos
rcshm has quit [Client Quit]
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 244 seconds]
lassulus_ is now known as lassulus
eadwu has quit [Ping timeout: 252 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<iqubic> So should I make a new branch on my local clone before making a PR?
o1lo01ol1o has joined #nixos
jb55 has quit [Quit: WeeChat 2.3]
fusion809 has quit [Remote host closed the connection]
jb55 has joined #nixos
<iqubic> clever: Should I make a new branch?
<clever> iqubic: yeah
<iqubic> What should call this branch?
<simpson> `nachos`
* simpson hungry
<simpson> Seriously, it's your branch on your repo on your machine. Come up with a name.
erictapen has quit [Ping timeout: 244 seconds]
<iqubic> but I'm going to be pushing this online and making a PR.
<iqubic> to nixpkgs.
<iqubic> Does that even mention making a new branch?
<simpson> I mean, it has many opinions, but the names of branches for PRs isn't one of them.
lopsided98 has quit [Ping timeout: 252 seconds]
lopsided98 has joined #nixos
perique has quit [Ping timeout: 244 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
jmeredith has quit [Quit: Connection closed for inactivity]
o1lo01ol1o has quit [Remote host closed the connection]
pie__ has joined #nixos
Zer000 has joined #nixos
pie___ has quit [Ping timeout: 268 seconds]
<iqubic> Alright.. Discord has finally hit unstable.
<iqubic> Except not the latest version appearantly.
<iqubic> How does one update a channel? `nix-channel --update "channel name"`?
countingsort has joined #nixos
<clever> iqubic: nix-channel --update, without anything else, updates all channels on the current user
<iqubic> Cool. So version 0.0.8 of Discord hasn't yet made it into nixos-unstable. I see.
strobelight has quit [Ping timeout: 245 seconds]
<Zer000> iqubic, you can always copy the definition from github, import it into your config and add it to your packages list. Is discord free software?
counting1ort has quit [Ping timeout: 250 seconds]
<clever> Zer000: unfree, and if an update is available, the old version refuses to work
<iqubic> Yeah.
<iqubic> So I just pulled the latest version from nixpkgs master, and installed that.
<iqubic> This commit was supposed to fix a gsettings crash, but that's not working for me. https://github.com/NixOS/nixpkgs/commit/ff2341afc9a10e4e59a7b62d31d93bc73b7d2e49
o1lo01ol1o has joined #nixos
<iqubic> I just verified to make sure I have the latest version of the Discord default.nix, and I do.
<iqubic> How can I make sure that the version of discord I install actually is using that default.nix?
<iqubic> And not something stored in my cache somewhere?
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<wedens> iqubic: "So I just pulled the latest version from nixpkgs master, and installed that" how exactly you did that?
<iqubic> "git clone Nixos/nixpkgs"
<iqubic> `cd nixpkgs`
<iqubic> `nix-build -A discord`
<iqubic> `nix-env -i ./result`
<iqubic> That is how.
<iqubic> and I'm still getting errors, which the latest commit to discord's default.nix claim to have fixed.
<Zer000> I have no idea how nix-env -i works on a path like that, but you can try to listerally copy the default.nix file into your config directory and have your packages be something like this: environment.systemPackages = [ (import ./discord.nix) ];
<iqubic> Zer000: I might just try that.
<Zer000> Or you need to be sure that the discord binary that you're running is living under the path that nix-build generates
<wedens> iqubic: what if you run it from ./result directly?
<Zer000> I think you can do this by following all symbolic links, starting at "which discord" or whatever
<iqubic> wedens: I'm not sure.
<wedens> iqubic: ?
<iqubic> Let me try that.
<clever> Zer000: the realpath binary does that for you, recursively
init_6 has quit [Ping timeout: 244 seconds]
<ottidmes> I use: which() { command which --skip-alias --skip-functions -- "$@" > >(command xargs --no-run-if-empty readlink --canonicalize); } because I did not like doing: readlink -f $(which program), every time
init_6 has joined #nixos
<ottidmes> hmm, apparantly I have being using the wrong command all this time "Note realpath(1) is the preferred command to use for canonicalization functionality." (from readlink's manpage)
<iqubic> wedens: Looks like I'm still getting this error when running it from ./result/bin/
jmgai has joined #nixos
<iqubic> I have no idea why that is. I assume that either 1. I am not installing that fix, or 2. The fix doesn't work for me.
Zer000 has quit [Remote host closed the connection]
jmgai has quit [Ping timeout: 272 seconds]
<iqubic> How do I get nix-shell to build a derivation for me?
init_6 has quit [Ping timeout: 240 seconds]
<iqubic> Like I'm just going to copy the discord default.nix to a different place, and then try installing it through there.
appleclusters has quit [Quit: Connection closed for inactivity]
Guest71835 has quit [Read error: Connection reset by peer]
sinner has joined #nixos
sinner is now known as Guest33457
Guest33457 has quit [Ping timeout: 246 seconds]
ottidmes has quit [Ping timeout: 272 seconds]
nikola__ has joined #nixos
nikola__ has quit [Client Quit]
nikola_ has joined #nixos
nikola_ has quit [Client Quit]
nikola_ has joined #nixos
nikola_ has quit [Client Quit]
nikola_ has joined #nixos
nikola_i has quit [Disconnected by services]
ilya-fedin has joined #nixos
<yl[m]> export nixops deployments has hardcode paths named nixExprs, makes it harder to share
nikola_ has quit [Quit: Leaving]
<yl[m]> how have you solved this problem? shell scripts around export/import?
nikola_i has joined #nixos
<clever> yl[m]: `nixops modify -d foo path/to/bar.nix` can alter a deployment, after importing
<yl[m]> clever: true, but that means that I have to wrap every deployment with a script to import/run/export the state
<yl[m]> seems wasteful, are there any plans to improve this?
<nikola_i> hello how do i change xkb keymap in nixos. i cannot find /usr/share/xkb/symbols directory
<yl[m]> clever: I like the idea of putting the state in S3 when using Terraform
<yl[m]> I might have some capacity to work on that
vonfry has joined #nixos
<clever> yl[m]: i only use export/import as a way to migration a deployment to another box, something that shouldnt be done often
<clever> yl[m]: and any time you try to do that, you ruin the lock file that is supposed to protect you from major merge conflict type problems
<yl[m]> clever: I'm trying to use nixops at the company to manage infra, what would recommend I do in this case?
<clever> yl[m]: have a dedicated machine that runs nixops, stores the state, and everybody ssh's into it
<clever> yl[m]: another problem, is that if you dont pin nixpkgs correctly, every person that deploys is going to (up/down)grade the entire cluster to a random version of nixpkgs
endformationage has quit [Quit: WeeChat 2.3]
<clever> and each user is going to have to re-download the entire closure of the cluster from a binary cache, before they can deploy anything
<yl[m]> I see
<yl[m]> clever: has anyone to your knowledge implemented a CI for this? It could make more sense if every developer tested with on virtualbox and the CI did the deployment on master
sinner has joined #nixos
<clever> yl[m]: most people i know only do deployments at controlled times, rather then at every push
sinner is now known as Guest70711
<yl[m]> clever: thanks!
<{^_^}> [nixpkgs] @domenkozar merged pull request #54331 → Fix megaparsec_6_5_0 and idris build → https://git.io/fhuJM
<{^_^}> [nixpkgs] @domenkozar pushed 3 commits to haskell-updates: https://git.io/fhuRu
nikola__ has joined #nixos
nikola_i has quit [Ping timeout: 240 seconds]
vonfry has quit [Quit: WeeChat 2.3]
random_yanek has quit [Ping timeout: 240 seconds]
nikola__ has quit [Ping timeout: 272 seconds]
<iqubic> so how does one turn a default.nix into a runnable binary using nix-shell?
knupfer has joined #nixos
orivej has joined #nixos
ddellaco_ has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @domenkozar merged pull request #54335 → kubectl: reduce closure size → https://git.io/fhukr
<{^_^}> [nixpkgs] @domenkozar pushed 2 commits to master: https://git.io/fhuRQ
random_yanek has joined #nixos
jmgai has joined #nixos
nikola_i has joined #nixos
jmgai has quit [Ping timeout: 240 seconds]
<ldlework> what
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @dtzWill opened pull request #54353 → bash_5: 5.0p0 -> 5.0p2 → https://git.io/fhu0J
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/5d9024da9b9 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<iqubic> ldlework: What confuses you?
<{^_^}> [nixpkgs] @dtzWill opened pull request #54354 → glib: more "trash mount points" fixes from upstream → https://git.io/fhu0q
<ldlework> iqubic: the question smacks of a misunderstanding
<wedens> why do I get "called without required argument 'gobject-introspection'" error when I do nix-build -E "(import <nixpkgs> {}).callPackage ./default.nix {}"? if I replace gobject-introspection with an alias gobjectIntrospection, it works fine, but it doesn't work if I nix-build the derivation as an attribute
<wedens> ah, seems like the name was changed in master
<{^_^}> [nixpkgs] @dtzWill opened pull request #54355 → libhandy: 0.0.6 -> 0.0.7 → https://git.io/fhu0E
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4e0f0790646 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<iqubic> ldlework: How so?
hoijui has joined #nixos
hoijui has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @etu opened pull request #54356 → linux-steam-integration: 0.7.2 -> 0.7.3 → https://git.io/fhu0i
<{^_^}> [nixpkgs] @dtzWill opened pull request #54357 → gcr: 3.28.0 -> 3.28.1 → https://git.io/fhu01
<{^_^}> [nixpkgs] @dtzWill opened pull request #54358 → libwebp: 1.0.1 -> 1.0.2 → https://git.io/fhu09
<{^_^}> [nixpkgs] @etu opened pull request #54359 → phpPackages.phpstan: 0.11 -> 0.11.1 → https://git.io/fhu07
<{^_^}> [nixpkgs] @dtzWill opened pull request #54360 → ispc: 1.9.2 -> 1.10.0 → https://git.io/fhu05
orivej has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #54361 → pychromecast: 2.3.0 -> 2.4.0 → https://git.io/fhu0F
<ldlework> iqubic: nix-shell doesn't turn default.nix into runnable binaries
<ldlework> the question doesn't make much sense
<ldlework> when you run nix-shell it puts you into a shell where the default.nix describes the build environment
<wedens> you can execute build steps manually in a nix-shell. but why?
<ldlework> well that's what it's for :P
<ldlework> in a sense
<{^_^}> [nixpkgs] @dtzWill opened pull request #54362 → fonttools: 3.34.2 -> 3.35.2 → https://git.io/fhu0A
<wedens> I mean it won't change anything in iqubic case
<ldlework> yea
rauno has quit [Remote host closed the connection]
rauno has joined #nixos
<{^_^}> [nixpkgs] @dtzWill merged pull request #53910 → mpop: 1.4.1 ->1.4.2 → https://git.io/fhn95
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fhuEL
<{^_^}> [nixpkgs] @etu opened pull request #54364 → Backport gitea: 1.6.3 -> 1.6.4 → https://git.io/fhuEm
IRCsum has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @dtzWill merged pull request #51232 → vimb: 3.1.0 -> 3.3.0 → https://git.io/fpV1H
<{^_^}> [nixpkgs] @dtzWill pushed 5 commits to master: https://git.io/fhuEs
<{^_^}> [nixpkgs] @domenkozar merged pull request #54352 → haskellPackages.monad-memo: remove unnecessary patch → https://git.io/fhu8k
<{^_^}> [nixpkgs] @domenkozar pushed 2 commits to master: https://git.io/fhuEG
sveitser has quit [Quit: WeeChat 2.2]
oida has joined #nixos
JosW has joined #nixos
<{^_^}> [nixpkgs] @dywedir opened pull request #54365 → alacritty: 0.2.5 -> 0.2.6 → https://git.io/fhuEF
orivej has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/555e7eb3753 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 250 seconds]
Mateon3 is now known as Mateon1
ddellacosta has joined #nixos
phreedom has quit [Ping timeout: 256 seconds]
ddellacosta has quit [Ping timeout: 250 seconds]
<joko> Hey, is anyone using ZFS native encryption? So far I have been using ZFS over LUKS to do so and I was wondering if native encryption would be better
mudrii has joined #nixos
jmgai has joined #nixos
JosW has quit [Ping timeout: 252 seconds]
<ivegotasthma> I see a vim plugin in vim-plugin-names, however, there is no generated code for it. I added a plugin that I needed to it, but the generated code was not generated. What could be the cause for this?
jmgai has quit [Ping timeout: 246 seconds]
<ivegotasthma> this section seems out-dated https://nixos.wiki/wiki/Vim#Adding_new_plugins am I right?
<sphalerite> Do ssh stores use compression at all for copying?
<sphalerite> ivegotasthma: I think that's still correct.
<sphalerite> ivegotasthma: it's horrible to do in practice though because it clones all the plugins
<ivegotasthma> sphalerite: I'm doing that twice now, because it doesn't generate code for the two plugins I mentioned above
<sphalerite> last time I wanted to do that I wrote only the name of the plugin I actually wanted into vim-plugin-names in a separate directory, then ran it, and patched the contents into the big one manually
<sphalerite> huh
<sphalerite> which plugins are they?
<ivegotasthma> one is vim-dirvish, which is already in the list, but not in the generated code
<ivegotasthma> second one is bufexplorer, which I added to the list, but it's not being generated
<sphalerite> joko: hyper_ch uses native encryption and likes it
mudrii has quit [Ping timeout: 256 seconds]
<ivegotasthma> hmm, maybe I have something wrong, because I checked on github and vim-dirvish is there
<joko> sphalerite: cool, https://github.com/sjau/nixos is his repo, right?
<sphalerite> joko: yep
gagbo has joined #nixos
simukis has joined #nixos
phreedom has joined #nixos
nD5Xjz has quit [Ping timeout: 268 seconds]
slack1256 has quit [Ping timeout: 245 seconds]
nikola_ has joined #nixos
sphalerite has quit [Quit: rebooting!]
nikola_i has quit [Ping timeout: 250 seconds]
sphalerite has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53782 → google-music-scripts: init at 3.0.0 → https://git.io/fhZ7w
<{^_^}> [nixpkgs] @worldofpeace pushed 12 commits to master: https://git.io/fhuzB
hedning has joined #nixos
jmgai has joined #nixos
jmgai has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @thefloweringash opened pull request #54366 → gocryptfs: 1.5 -> 1.6.1 → https://git.io/fhuzy
<{^_^}> [nixpkgs] @marsam opened pull request #54367 → lean: 3.4.1 -> 3.4.2 → https://git.io/fhugf
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<timokau[m]> How can I get gcc and static linking to work? I'm trying to compile a simple toy c file with a `printf` with `gcc -static test.c` but it "cannot find -lc"
<timokau[m]> I've put `glibc.static` in my environment
Makaveli7 has joined #nixos
<joko> Is there something wrong with nixops? Any deploy I do seems not to change the target host
knupfer has quit [Ping timeout: 264 seconds]
nikola_ has quit [Read error: Connection reset by peer]
nikola_i has joined #nixos
MichaelRaskin has joined #nixos
dermetfan has joined #nixos
nikola_i has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #54337 → nordic-polar: 1.3.0 -> 1.4.0 → https://git.io/fhukD
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhugP
<{^_^}> [nixpkgs] @dotlambda opened pull request #54368 → antimony: find boost::python3 → https://git.io/fhugX
<joko> Doh, nixops is very sensitive with absolute paths and this messed things up :S
knupfer has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #54333 → ant-theme: 1.2.0 -> 1.3.0 → https://git.io/fhukU
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhug7
<{^_^}> [nixpkgs] @7c6f434c merged pull request #54354 → glib: more "trash mount points" fixes from upstream → https://git.io/fhu0q
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to staging: https://git.io/fhug5
<{^_^}> [nixpkgs] @worldofpeace merged pull request #54336 → nordic: 1.3.0 -> 1.5.4 → https://git.io/fhukK
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhu2k
ddellacosta has joined #nixos
hedning has left #nixos [#nixos]
hedning has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #54269 → oraclejdk: 8u191 -> 8u201, 8u202 [Security fixes] → https://git.io/fhRWB
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fhu23
ddellacosta has quit [Ping timeout: 245 seconds]
<hyper_ch> sphalerite you mentioned me?
<joko> hyper_ch: yeah, I would like to know more about ZFS native encryption
<hyper_ch> it works :)
<joko> So, just before boot, you enter the password and all is taken for?
<hyper_ch> during the initrd phase you enter password for each seperately encrypted dataset
<joko> hyper_ch: have you also tried sending / receiving encrypted datasets?
<hyper_ch> I use tank/encZFS/{nixos,media,...}
<hyper_ch> since encryption is inherited, you only need to enter the password for the "encZFS" one in my example
<hyper_ch> joko: that works
<hyper_ch> joko: I wrote my own little zfs snapshot and send/recv tool https://github.com/sjau/easysnap
<joko> hyper_ch: cool!
<hyper_ch> I wrote that tool for my needs though
<joko> hyper_ch: and have you experimented with sending encrypted datasets with unlocking them to remote host just before sending them and re-locking them once you're done?
<hyper_ch> joko: there's the raw send option for encrypted snapshots... that will send snapshots as tehy are
<hyper_ch> e.g. if you want to make backup onto a 3rd party server that you don't trust
<hyper_ch> so all encryption etc. is taken from the snapshot source
<hyper_ch> e.g. you could send it to to a file and then move that file to google drive or something
<joko> hyper_ch: perfect!
<hyper_ch> non-raw send will need to have the dataset unlocked on the sending server
<hyper_ch> and it will required to be sent to a server that also has an encrypted dataset unlocked and it will use then the receiving encryption details
<hyper_ch> or you could send it to a non-encrypted dataset and then it won't be encrypted
_kwstas has joined #nixos
<{^_^}> zfsonlinux/zfs#4840 (by tcaputi, 2 years ago, closed): Raw Send Feature (Encrypted + compressed)
<{^_^}> [nixpkgs] @nlewo merged pull request #54270 → dockerTools: buildLayeredImage passthru imageTag → https://git.io/fhRlJ
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/fhu2B
<joko> hyper_ch: many thanks for the guidance
<joko> hyper_ch: last question, is it possible to force import a zpool with kernel's cmdline?
<hyper_ch> also, setup two vms and test it in those incl. send/receive
<hyper_ch> before actually using it
<joko> hyper_ch: good suggestion
<hyper_ch> during initrd phase you could fallback to terminal and force import
<hyper_ch> but not sure if that's what you need
Ariakenom has joined #nixos
<joko> hyper_ch: and how to fallback?
ng0 has joined #nixos
<joko> I would like to avoid booting from network / USB, but I think I cannot avoid it
<hyper_ch> not sure what you mean by that
<joko> hyper_ch: I had force import disabled and kind of messed my system by not exporting the zpool
<joko> hyper_ch: so now system cannot start
<hyper_ch> never had that issue
<joko> hyper_ch: obviously you were wise enough not to mess with boot.zfs.forceImport{Root,All}
<hyper_ch> you should read that as well
tikznut has joined #nixos
<joko> hyper_ch: And any comment with ZFS mounting? As far as I saw in your configs you do it manually
<hyper_ch> ?
<hyper_ch> what do I do manually?
thc202 has joined #nixos
__monty__ has joined #nixos
<joko> I meant to say declaratively
<joko> I typically create multiple datasets, e.g. /var, /srv, /home
<joko> and avoid setting mountpoint to legacy
<joko> Of course, there are exceptions
nikola_i has joined #nixos
<joko> e.g. /home, /var/log and /var/cache
erhandsome has quit [Read error: Connection reset by peer]
<mightybyte> I'm trying to use NIX_STORE_DIR and NIX_CONF_DIR to do a nix-build and put the dependencies somewhere other than /nix/store. But I'm having trouble getting it working. Is this doable?
<{^_^}> [nixpkgs] @pSub merged pull request #54298 → spin: 6.4.8 -> 6.4.9 → https://git.io/fh0hZ
<{^_^}> [nixpkgs] @pSub pushed 4 commits to master: https://git.io/fhu2y
<{^_^}> [nixpkgs] @jtojnar merged pull request #54324 → Vapi setup hook → https://git.io/fhEAb
<{^_^}> [nixpkgs] @jtojnar pushed 4 commits to staging: https://git.io/fhu2Q
<ivegotasthma> mightybyte: I've done it a while ago. You want to create a nix store, but you don't have root rights, correct?
<mightybyte> Right
tilpner has quit [Ping timeout: 250 seconds]
<mightybyte> I tried:
<mightybyte> NIX_STORE_DIR=/path/to/store NIX_CONF_DIR=/path/to/conf nix-build
<mightybyte> But that didn't work.
<ivegotasthma> mightybyte: I remember using https://nixos.org/nix/manual/#sec-building-source
<{^_^}> [nixpkgs] @Mic92 pushed commit from @taku0 to release-18.09 « oraclejdk: 8u191 -> 8u201, 8u202 »: https://git.io/fhu2x
<mightybyte> Woah. That seems a bit heavy.
<ivegotasthma> that's how I configured the build not need system access
<mightybyte> I definitely don't want to build from source.
<ivegotasthma> how did you install it already?
<mightybyte> It's already installed
<ivegotasthma> but it doesn't have a store?
<mightybyte> I just want to have my own store in my home directory.
<symphorien> mightybyte: there are a lot more variables to set: https://github.com/NixOS/nix/blob/master/tests/common.sh.in#L5-L13
<ivegotasthma> mightybyte: do you know about home-manager? https://github.com/rycee/home-manager
<mightybyte> ivegotasthma: Yes. I'm already using home-manager. :)
<ivegotasthma> mightybyte: I can't help you further :p good luck!
<mightybyte> symphorien: Interesting. Let me give that a try...
<symphorien> also, can you elaborate on how it does not work ?
<mightybyte> symphorien: Yep
<mightybyte> Assertion failed: (store->isStorePath(ctx)), function realiseContext, file src/libexpr/primops.cc, line 56.
<mightybyte> But let me try your idea first
LnL has quit [Quit: exit 1]
<mightybyte> symphorien: Oh ho! This looks promising!
<mightybyte> I also had to unset NIX_REMOTE, but there was a clue to that a couple lines down.
<{^_^}> [nixpkgs] @hedning merged pull request #54357 → gcr: 3.28.0 -> 3.28.1 → https://git.io/fhu01
<{^_^}> [nixpkgs] @hedning pushed 2 commits to staging: https://git.io/fhuam
<symphorien> :)
_kwstas has quit [Quit: _kwstas]
ottidmes has joined #nixos
LnL has joined #nixos
LnL is now known as Guest28061
Guest28061 has joined #nixos
Guest28061 has quit [Changing host]
b has quit [Ping timeout: 246 seconds]
philippD has joined #nixos
pointfourone has joined #nixos
pointfourone has quit [Remote host closed the connection]
<mightybyte> symphorien: I'm having trouble getting caching to work.
<mightybyte> When I try to add cache.nixos.org as a substituter I get:
<mightybyte> warning: binary cache 'https://cache.nixos.org' is for Nix stores with prefix '/nix/store', not '/Users/doug/store'
<symphorien> binary cache can't work with a different store path
<mightybyte> Why?
<mightybyte> That seems like a dumb restriction
inquisitiv3 has joined #nixos
<symphorien> because all glibc based elf executables hardcode the path to the elf interpreter for example
<symphorien> so a binary build in /nix/store hardcodes all sorts of paths to /nix/store
<mightybyte> Wow
<symphorien> and editing binaries to change paths is not possible in a reliable way
<symphorien> ==> you have to recompile everything
<mightybyte> So sad
<inquisitiv3> Is it Hydra I'll need to read up on to build NixOS ISOs? I'll probably receive my Power9 system in Q2 and would like to install NixOS on it.
jmgai has joined #nixos
<__monty__> symphorien: I wonder whether there's a state of builds that could be cached, like right before the binaries are actually produced. To reduce the impact of things like hardcoded paths.
<symphorien> __monty__: well, a lot of hardcoding happens at ./configure --prefix=hardcoded_path time, so it seems you cannot cache much
<inquisitiv3> symphorien: Thanks!
<__monty__> symphorien: The real hardcoding doesn't happen until those attributes are actually *used* though.
<__monty__> symphorien: Maybe at minimum there should be a way to indicate relocatable cache entries? For example in a python project you *should* be able to replace all the paths, since it's just text files.
<symphorien> right, but I guess you meant "what if we cache the object file" and object files can hardcode these paths
erhandsome has joined #nixos
jmgai has quit [Ping timeout: 250 seconds]
<symphorien> @python: right. I guess you need to patch nix for this, though
<__monty__> symphorien: Do they hardcode the paths in a similar way to binaries, so they're hard to change?
<symphorien> yes. hard to change means: you can change them only if the new path is shorter and you are lucky
<__monty__> Maybe things in the store should actually be run against something like a chroot? Would that help the relocatability?
<mightybyte> Yeah, I was just wondering that
dermetfan has quit [Ping timeout: 245 seconds]
<symphorien> no, the hardcoded path must be valid at runtime
<mightybyte> I guess if you could do that, the program wouldn't be able to interact with the filesystem in the same way.
<ottidmes> there is no, builtins.toNix right? i.e. a function to print a Nix value to a string containing a Nix expression representing that value, so toNix on a string would produce a string literal
simukis has quit [Quit: simukis]
orivej has quit [Ping timeout: 240 seconds]
<__monty__> symphorien: You can't use cgroups to make a binary think it's running from /nix/store?
<symphorien> you mean user namespaces ?
<symphorien> that's what nix-user-chroot does
<ar1a> does anyone have linked to their home.nix? seeing what i can add to my own
<__monty__> I have no idea what I mean. I know the problem is you can't easily change the path in the binaries. So I'm thinking of things that might let you fake a path as being the unchangeable path.
<mightybyte> __monty__: Would that help though? It seems like it's not about where the binary thinks it is running from. It's where it thinks root is since the paths are all /nix/store/...
<mightybyte> symphorien: What's nix-user-chroot?
<__monty__> mightybyte: Course it would, it's what containers and chroot do.
<symphorien> __monty__: the problem is: this is an OS-level solution. the user namespace propagates to children process and most distributions do not enable it by defaults; it is also linux-only
<__monty__> Ok, all good points.
<symphorien> and a binary cannot do it itself because we are talking about loading the libc, which before even main()
<mightybyte> Sigh...the rabbit hole goes really deep on this one.
orivej has joined #nixos
<__monty__> Maybe the default path of the cached /nix/store should be /nix/store-make-this-as-long-a-name-as-possible-without-going-over-platform-path-length-limits?
<__monty__> Then any place you might want to relocate the store to can probably be patched in : >
<mightybyte> lol
<__monty__> Let's call it a "pragmatic" solution?
<gchristensen> fwiw even Debian has made an exception for Nix to break the FHS and store in /nix, than put /nix somewhere else
<__monty__> gchristensen: They just lack the cojones.
<gchristensen> lol
<symphorien> __monty__: platform limits are surprisingly short in some corner cases: https://github.com/NixOS/nixpkgs/issues/34393
<{^_^}> #34393 (by symphorien, 50 weeks ago, closed): Nixos tests fails depending on its name
<ottidmes> to answer my own question, there no builtins, but there is lib.toPretty
xkapastel has joined #nixos
shibboleth has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/5ba532f9878 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<mightybyte> symphorien: Would it be possible to store all the crucial non-relocatable things like the elf interpreter, etc in /nix/store and then get relocatable binary caches for everything outside this core of fixed stuff?
<__monty__> symphorien: So the available space is 192 - hash length - longest package name - longest version string - a couple dashes?
<__monty__> For my store that'd leave approximately 70 characters for the "/nix/store" part.
<__monty__> Imo that's plenty.
<mightybyte> Yeah. 32 seems like it might be enough.
Makaveli7 has quit [Quit: Leaving]
smolboye_ has joined #nixos
smolboye has quit [Ping timeout: 240 seconds]
<symphorien> mightybyte: the thing is, the build system of a package could do anything. For example it could hash its install directory and refuse to run /proc/self/exe does not point to a directory with the right hash. The hash value would be hardcoded in the executable and not changed by sed s/old store/new store/
<symphorien> so it will never be reliable
<mightybyte> Turing completeness strikes again. :P
<symphorien> and since everyone uses /nix/store, very few people would use these unreliable hacks, and breakage would be frequent and silent
fusion809 has joined #nixos
<mightybyte> Yeah, that makes sense.
<{^_^}> [nixpkgs] @Gerschtli opened pull request #54371 → mdl: init at 0.5.0 → https://git.io/fhury
<{^_^}> [nixpkgs] @jtojnar merged pull request #54007 → Darwin GSettings support → https://git.io/fhWLl
<{^_^}> [nixpkgs] @jtojnar pushed 4 commits to master: https://git.io/fhurS
martin___ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
dermetfan has joined #nixos
<mightybyte> symphorien: Thanks for the in-depth explanation.
shibboleth has quit [Quit: shibboleth]
<inquisitiv3> I'm doing a new installation of NixOS in a VM. T
<inquisitiv3> The installation will be on a fully encrypted "disk". But I'm unsure about which partition code I should use for the encrypted partition.
<{^_^}> [nixpkgs] @dotlambda merged pull request #54368 → antimony: find boost::python3 → https://git.io/fhugX
<{^_^}> [nixpkgs] @dotlambda pushed to master « antimony: find boost::python3 (#54368) »: https://git.io/fhurb
<inquisitiv3> Linux LUKS (8309) or Linux LVM (8e00)?
<inquisitiv3> The ArchWiki links to the following section explaining `Linux LUKS` https://wiki.archlinux.org/index.php/Dm-crypt/Drive_preparation#Physical_partitions
<gchristensen> it should be the code for whatever is deepest on the stack
<gchristensen> so if it is drive -> LUKS -> LVM -> ... , you'd use LUKS
<inquisitiv3> gchristensen: Thanks!
<gchristensen> you're welcome!
<inquisitiv3> Would instructions about how to install NixOS on an encrypted drive be welcome to the manual, or should I submit it to the wiki?
sakalli_ has joined #nixos
shibboleth has joined #nixos
<laas> Is there any way to build nix expressions gotten from the nixpkgs repository?
<laas> e.g. I've downloaded sway/beta.nix, and it has a lot of arguments which it needs
<laas> I tried passing `import <nixpkgs> {}` to it, but then it complains about unexpected arguments
<ottidmes> laas: nix-build --expr 'with import <nixpkgs> { }; callPackage sway/beta.nix { }'
<laas> thanks!
<laas> yeah this works great
<ar1a> can someone link me something on nix-shell? i want to know how to do this sandboxing thing when i program. also love to see how i could play around with it for adding nixpkgs if thats possible too!
<__monty__> inquisitiv3: Isn't this already exactly that? https://nixos.wiki/wiki/Full_Disk_Encryption
<inquisitiv3> __monty__: Seems so. I didn't think of checking the Wiki, just read the manual because I know it had some instructions.
<inquisitiv3> I'll complement the instructions on the page you linked.
<__monty__> 👍
<Ke> gchristensen, inquisitiv3 did you find some application on linux that cares about partition type?
<Ke> I just use linux type for all linux stuff
<Ke> I guess systemd gpt mount generator might
eadwu has joined #nixos
_lawlesseel has quit [Ping timeout: 256 seconds]
shibboleth has quit [Quit: shibboleth]
<ar1a> hm, for some reason emojis aren't showing up using noto colour emoji. theyre the hollow black and white ones :(
<{^_^}> #53139 (by wedens, 2 weeks ago, open): fontconfig configs from derivations are not picked up
<wedens> ar1a: I haven't managed to make emojis work with penultimate fontconfig (enabled by default)
<wedens> ar1a: https://gist.github.com/wedens/ed9694027fe143ea4be8b2d159392d3e that's what I use with `fontconfig.penultimate.enable = false;`
<ar1a> so i disable penultimate and then... https://ptpb.pw/8dsr.png D:
<ar1a> well at least theyre coloured now... any ideas on this big ole font issue wedens ? :P
erictapen has joined #nixos
<__monty__> I like it this way, aligns with my sentiments : )
inquisitiv3 has quit [Remote host closed the connection]
<wedens> ar1a: no idea. perhaps bundled config has wrong priority. I've created derivation from what worked for me well in Arch
<__monty__> Though it *is* mighty tempting to just spam you with emoji now.
inquisitiv3 has joined #nixos
<ar1a> D:
<{^_^}> [nixpkgs] @fpletz merged pull request #54320 → youtube-dl: Change to ffmpeg_4 → https://git.io/fhEFm
<{^_^}> [nixpkgs] @fpletz pushed commit from @adisbladis to master « youtube-dl: Change to ffmpeg_4 »: https://git.io/fhuKu
<ar1a> on a slight subject change, in nixos/home-manager is there a way to delay a service starting up for a few seconds? the wm integration breaks if it launches as soon as i log in, i need to delay it maybe one or two seconds
<wedens> fontconfig is impossible to debug
<wedens> ar1a: which service?
<ar1a> polybar
<wedens> just add `systemctl --user restart polybar` to commands executed by WM :)
<ar1a> thats such a haaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaack
<ar1a> but it fixed it :(
<ar1a> i feel so dirty
<wedens> yeah, I think you can also add i3.service to After of polybar service
<wedens> or whatever wm you use
<wedens> if it has a service
<ar1a> it does not
<ar1a> launched by login manager
<ar1a> so what does penultimate do compared to ultimate? ive swapped to ultimate and oh my god my screen is eye ecstacy
<inquisitiv3> Ke: I don't think so. But I also don't want to screw up something that's in the "foundation" of the system.
<wedens> ar1a: beware that ultimate (upstream) is unmaintained for the last 2 or 3 years
sakalli_ has quit [Quit: Mutter: www.mutterirc.com]
<ar1a> yeah but the infinality patches are just so good
<wedens> most of it is already merged
freeman42x has joined #nixos
lawlesseel has joined #nixos
kenshinCH has joined #nixos
<kenshinCH> Haskell question. If I understand correctly, there are two ways to work with Haskell in nix: either using stack integration or using the packages provided by nix. Is that right? Which one would you suggest?
<srhb> kenshinCH: I have no good experiences with the stack integration. Also, it only deals with system dependencies and GHC, not haskell packages as such, iirc.
<srhb> If you like stack, it might be worth giving it a spin.
<srhb> When it works it's probably very similar to what you're used to.
<wedens> srhb: there are stack2nix and stackage2nix
<srhb> Yeah, I know.
tikznut has left #nixos [#nixos]
<kenshinCH> That's the point: I'm used to nothing, basically. Starting fresh with Haskell :P
<srhb> Heh, well, nix + haskell will be a bit of a mouthful whichever path you choose. :)
<kenshinCH> but using stack to get packages and duplicate them between projects, on nix, seems unnatural :p
<srhb> fwiw I know there's a lot of people in this channel (including me) that can help with the pure nix approach. I don't know if we have a lot of stack users, but maybe!
<kenshinCH> I see, so the usual way seems to be to use nix packages. Makes sense, and sounds like my answer right there :) Thanks!
<mightybyte> kenshinCH: If you're using Nix already and are starting with Haskell, definitely don't go with Stack.
<wedens> cabal2nix is the simplest, I think
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
dermetfan has quit [Quit: WeeChat 2.3]
<kenshinCH> mightybyte: OK, that's all new to me. I investigated around 1/1.5 years ago and the feeling I got was "stack is the future of enterprise-grade Haskell". But good to know. Thanks
marsam has joined #nixos
<mightybyte> kenshinCH: Yeah. Cabal has had a lot of progress since then.
<mightybyte> If you're already familiar with stack and have a workflow set up, then it's different. But if you're a blank slate AND you're using Nix...pretty clear choice IMO.
<kenshinCH> Reading throught that link seems like Nix (maybe not NixOS) is pretty prevalent among Haskellers. Is that fair?
<wedens> cabal was fine before and it's even better now with all this new-* stuff
<ar1a> so as someone new to haskell i should go with cabal?
<wedens> ar1a: I don't see any reason not to
jmgai has joined #nixos
<mightybyte> kenshinCH: I know a fair number of haskellers who use Nix. But I really don't know what the rate is across the whole Haskell community.
<wedens> if you decide to use stack for whatever reason, you can always do that
<hodapp> kenshinCH: sort of. for one thing, Stack can interface directly with Nix if it's present
sakalli_ has joined #nixos
<srhb> kenshinCH: Yeah, it's hard to get numbers but I have the same feeling. I think that Haskellers are drawn to declarative package management, and by extension a declarative OS.
<srhb> kenshinCH: Overlap of interests and priorities :)
<mightybyte> They're both purely functional
<hodapp> that and Haskell package management is its own sort of cesspool (or, at least, it was years ago), and Nix can be good at dealing with that
jmgai has quit [Ping timeout: 246 seconds]
<kenshinCH> cool, thanks everyone. I'll give it a try
<mightybyte> kenshinCH: One thing to keep in mind...if you're using cabal without nix, you definitely need to use the "new-" (aka "v2-") family of commands.
<mightybyte> They are going to become the default fairly soon, but it's been a slow migraton due to all the backwards compatibility concerns.
<mightybyte> Those commands use a purely functional nix-style approach and give a much better experience.
sakalli` has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
<mightybyte> If you're using nix to manage all your dependencies, then the old style "v1-" commands should work just as well but you might as well get used to the new behavior.
Ariakenom has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
<wedens> I think nix integration is still somewhat unclear with new-* command https://github.com/haskell/cabal/issues/4646
<{^_^}> haskell/cabal#4646 (by ElvishJerricco, 1 year ago, open): Nix integration is not supported in new-build.
Ariakenom has joined #nixos
hedning has quit [Remote host closed the connection]
dsiypl4_ has joined #nixos
hedning has joined #nixos
Ariakenom has quit [Quit: Leaving]
Ariakenom has joined #nixos
knupfer has quit [Quit: knupfer]
<mightybyte> Yeah, but I'm not talking about using cabal's nix integration. Just using `cabal new-build` inside a nix-shell.
<__monty__> Yeah, no need for integration, that'd just be convenient.
dermetfan has joined #nixos
<disasm> nixos never ceases to amaze me... after 10 mins trying to get a udev rule to allow users to run brightnessctl I found hardware.brightnessctl.enable = true; :)
<ar1a> i like light programs.light.enable = true;
<disasm> multiple ways to do the same thing ar1a :)
<ar1a> no of course, im not saying to swap to light, just my 2 cents :D
rawreraw has joined #nixos
<disasm> ar1a: does light work with wayland?
<ar1a> i couldn't tell you unfortunately
<ar1a> yes i think so
<ar1a> https://github.com/haikarainen/light says "Works even in a fully CLI-environment, i.e. it does not rely on X"
<disasm> nice
<disasm> I was initially running sudo bash -c "echo 2500 > /sys/class/backlight..." and then figured there had to be a better way. light looks nice :)
<__monty__> Cat + udev does the trick for me.
rawreraw has quit [Quit: WeeChat 2.3]
rawreraw has joined #nixos
endformationage has joined #nixos
rawreraw has quit [Read error: Connection reset by peer]
rawreraw has joined #nixos
<__monty__> Or echo actually.
_kwstas has joined #nixos
tilpner has joined #nixos
<{^_^}> [nixpkgs] @markuskowa merged pull request #54250 → alsaUtils: 1.1.7 -> 1.1.8 → https://git.io/fhBvn
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fhuXU
<ar1a> im like an addict i just need people to look at my pr
<ar1a> *scratch scratch* yes... contributing......
ddellacosta has joined #nixos
<MichaelRaskin> ,pr
<{^_^}> 0. Sorry. 1. If you complain about PR being in limbo, always provide a number («I have an unmerged PR (#23924)…»), bot will print PR title and it might bring you an impulse-merge. 2. Please look up who commits similar work and ping these people (or request-review), keeping up with all the PRs is not really possible.
mizu_no_oto has joined #nixos
<ar1a> not complaining its only been like 12 hours :P
ddellacosta has quit [Ping timeout: 240 seconds]
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
o1lo01ol1o has joined #nixos
dsiypl4_ has quit [Remote host closed the connection]
_kwstas has quit [Quit: _kwstas]
dsiypl4_ has joined #nixos
rawreraw has quit [Quit: WeeChat 2.3]
_kwstas has joined #nixos
_kwstas has quit [Client Quit]
dvim has joined #nixos
<{^_^}> [nixpkgs] @dywedir opened pull request #54375 → termtosvg: 0.7.0 -> 0.8.0 → https://git.io/fhuXg
sakalli` has quit [Remote host closed the connection]
tnks has quit [Quit: leaving]
mizu_no_oto has joined #nixos
JosW has joined #nixos
sakalli_ has quit [Quit: Mutter: www.mutterirc.com]
simukis has joined #nixos
winem_ has joined #nixos
WhittlesJr has joined #nixos
<WhittlesJr> When considering a backup / snapshot strategy, since your NixOS state is more or less fully reproducible, which parts of the filesystem are meaningless to back up? /nix/store seems to be the most obvious candidate to skip snapshotting, but is there anywhere else that would take up a lot of space but doesn't need backed up?
inquisitiv3 has quit [Ping timeout: 250 seconds]
<gchristensen> I back up /etc, /var, /home
<infinisil> I only backup /var/lib and /home
<simpson> My backup strategy isn't expressible as a selection of local directories. I have a few cryptographic secrets backed up.
inquisitiv3 has joined #nixos
<WhittlesJr> Thanks for the perspectives!
ixxie has joined #nixos
<cyris212> gchristensen: Is there anything other than configuration.nix in /etc that is worth to backup?
<__monty__> fstab, nginx setups, tons of configuration, really.
<schmittlauch[m]> According to https://howoldis.herokuapp.com/, successful channel hydra builds are switched to be the active channel by a periodic cron job. How often does this happen?
<symphorien> /etc/NetworkManager
<__monty__> schmittlauch[m]: The cron job's pretty frequent, like on the order of minutes iirc.
<cyris212> i see, thx
<gchristensen> cyris212: up to you to find out :) review these files: sudo find /etc -type f
<schmittlauch[m]> Asking because nixos-unstable has had a successful hydra build several hours ago, but still isn't fetched via `nix-channel --update` __monty__
<schmittlauch[m]> maybe it takes time to federate through the CDN?
<gchristensen> schmittlauch[m]: that build's evaluation needs to be completely done building before the channel updates: https://hydra.nixos.org/eval/1501242
<gchristensen> they don't need to all pass, but they do need to all be attempted
jmgai has joined #nixos
<ottidmes> is there a way to get the pkgs.path given only the package? i.e. if am given pkgs.hello, can I figure out from the hello package derivation what nixpkgs path defined it?
winem_ has quit [Ping timeout: 264 seconds]
<srhb> schmittlauch[m]: And once that's true, the check happens within 10 minutes.
<__monty__> schmittlauch[m]: Curious, where are you seeing the successful build?
<srhb> __monty__: Leftmost column of the tested set. https://hydra.nixos.org/job/nixos/trunk-combined/tested#tabs-constituents
<schmittlauch[m]> gchristensen: __monty__: "Finished at: 2019-01-20 13:05:52" https://hydra.nixos.org/build/87682009
<gchristensen> if you follow my link, you'll see there are still ~150 builds still queued
<{^_^}> [nixpkgs] @domenkozar merged pull request #54292 → springLobby: Fix TLS problems on map downloads → https://git.io/fh0cP
<{^_^}> [nixpkgs] @domenkozar pushed 2 commits to master: https://git.io/fhu14
<schmittlauch[m]> gchristensen: Then the "finished at" values is misleading
<gchristensen> no, the `tested` job has finished
<schmittlauch[m]> … but is only one build job of the whole evaluation. OK, I got it.
<gchristensen> right
nikola_i has quit [Ping timeout: 268 seconds]
<schmittlauch[m]> still think that either the hydra interface or probably the howoldis interface should make the distinction clear. Like: testing job successful, so as sonn as this evaluation (still running) finishes it will be published
<gchristensen> I totally agree
<schmittlauch[m]> do you kno whether there's an issue tracker for the latter project?
<schmittlauch[m]> ah, found it
<{^_^}> [nixpkgs] @ryantm merged pull request #54207 → freetds: 1.00.109 -> 1.00.110 → https://git.io/fh4uu
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fhu11
<gchristensen> excellent
dsiypl4_ has quit [Ping timeout: 268 seconds]
<ar1a> https://github.com/ar1a/fullwidth wrote my first haskell project with nix
<rain1> nice ar1a!
<ivegotasthma> I'm having trouble packaging a vim-plugin, can someone help me?
<ar1a> now how do i install this, do i *really* have to make a nixpkgs entry for it?
<ivegotasthma> the code for it is not being generated
Guanin has joined #nixos
<rain1> ar1a: for personal scripts I have a ~/Programming/bin/ folder I put them in, and a nix config line to add that to PATH
kp__ has joined #nixos
<ar1a> fair nuff, .local/bin i guess
<srhb> ar1a: environment.systemPackages = [ (pkgs.callPackage /path/to/your/nix/expr {}) ] -- depending on how you defined it :)
<srhb> ar1a: For a haskell project you cal probably get away with pkgs.haskellPackages.callCabal2nix
dsiypl4_ has joined #nixos
<srhb> ar1a: As in pkgs.haskellPackages.callCabal2nix "yourPackageName" /path/to/dir/with/cabal/file {}
dermetfan has quit [Quit: WeeChat 2.3]
<ar1a> with home-manager can i use ~ or do i have to write /home/aria
<srhb> > ~/foo
<{^_^}> /var/lib/nixbot/foo
<srhb> ar1a: ^ should be fine :)
<ar1a> so i tried like so: (pkgs.callPackage ~/projects/fullwidth/.styx/fullwidth.nix {}) and it gave me error "error: anonymous function at /home/aria/projects/fullwidth/.styx/fullwidth.nix:1:1 called without required argument 'mkDerivation', at /nix/store/mxbw0x6l5n8q250l029ba7k374jskj1j-nixos-19.03pre166887.db8e3654e2c/nixos/lib/customisation.nix:69:12" the fullwidth.nix file is here:
<ar1a> oops broken link
knupfer has joined #nixos
<srhb> ar1a: skip mkDerivation, use stdenv.mkDerivation
<srhb> ar1a: pkgs.callPackage fills in argset attrs with the top level namespace from pkgs.
<srhb> ar1a: but mkderivation is pkgs.stdenv.mkDerivation, not pkgs.mkDerivation
<ar1a> problem is, it's generated by styx
<srhb> Oh, hang on, this is a haskell package..
<srhb> I see, you should be using haskellPackages.callPackage then
<srhb> But really, try the callCabal2nix route :)
<srhb> It's pretty spiffy.
<ryantm> etu: I tried using https://github.com/nix-community/nixos-generators -f install-iso -c https://gist.github.com/ryantm/4756ab66852344007188c99a894aed51 and when I tried to boot from it on the new laptop, it said "Booting ...
<srhb> ar1a: And it only relies on the cabal file, so it'll always be in sync.
acarrico has joined #nixos
<ryantm> " then it froze with the same unblinking underscore
<ar1a> hmm, alright. haskell.callpackages is working great so ill go try cabal2nix
<srhb> ar1a: callCabal2nix basically works like this: It automatically runs cabal2nix on the source you specified, then builds the resulting expression.
<srhb> For local programs I find it's a very nice option. If you want to distribute, mangling a cabal2nix output manually makes more sense usually.
<srhb> ar1a: neat!
silver has joined #nixos
<ar1a> would it be worth making a nixpkg pr for this? all it does is https://ptpb.pw/qOAD.webm
marsam has quit [Ping timeout: 252 seconds]
JosW has quit [Ping timeout: 252 seconds]
drakonis has joined #nixos
<srhb> I find it difficult to gauge the demand for such things :P
<ar1a> lol
<srhb> Unrelatedly, you appear to be using the same prompt as me. pure? :)
<ar1a> yep
<srhb> Are you also experiencing issues where sometimes it'll make a zsh process spin wildly while browsing a git repo?
<srhb> I haven't identified the cause yet...
<ar1a> nixos puts cwd in my RPS1 though so i had to do this https://github.com/ar1a/dotfiles/blob/master/zsh/.zprezto/runcoms/zshrc#L47-L48
<srhb> Uhh.
<srhb> Mine certainly doesn't do that..
IRCsum has joined #nixos
<ar1a> how do you have zsh installed?
<srhb> Good question!
<srhb> programs.zsh.enable = true;
<srhb> ar1a: Could pkgs.zsh be different from /run/current-system/sw/bin/zsh ?
jmgai_ has joined #nixos
<ar1a> just removed that line from my zshrc and its still happening https://ptpb.pw/J5Dh.png
o1lo01ol1o has quit [Remote host closed the connection]
<srhb> My shell = "${pkgs.zsh}/bin/zsh"
<ar1a> aria:x:1000:100::/home/aria:/run/current-system/sw/bin/zsh
<srhb> Hum.
<srhb> No idea! Strange.
<ar1a> i think it might be the default value from programs.zsh.promptInit
<srhb> Actually I'm using the package directly: sarah:x:1000:100::/home/sarah:/nix/store/w8s1a45h0l7cqvqdq0fiz1vxp7nn7rc1-zsh-5.6.2/bin/zsh
jmgai has quit [Ping timeout: 246 seconds]
<srhb> But /run/current-system/sw/bin/zsh is a symlink to that..
<srhb> Ah
<ar1a> yep, set it to "" and that goes away. ty for rubber ducking
<srhb> Sure thing :)
dvim has quit [Ping timeout: 244 seconds]
civodul has joined #nixos
drakonis_ has joined #nixos
inquisitiv3 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @dotlambda merged pull request #54328 → Bump django-contrib, django-hijack, django-hijack-admin → https://git.io/fhExx
<{^_^}> [nixpkgs] @dotlambda pushed 5 commits to master: https://git.io/fhuM9
drakonis has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @primeos pushed to master « scdoc: 1.6.0 -> 1.6.1 »: https://git.io/fhuMd
drakonis_ has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
sheth has quit [Ping timeout: 240 seconds]
Lears has quit [Remote host closed the connection]
Lears has joined #nixos
sheth has joined #nixos
m0rphism has quit [Quit: WeeChat 2.2]
o1lo01ol1o has joined #nixos
m0rphism has joined #nixos
<symphorien> srhb: https://github.com/mafredri/zsh-async/pull/31 I found a bug where a zsh process would use 100% of a cpu and fixed it
<{^_^}> mafredri/zsh-async#31 (by symphorien, 5 weeks ago, merged): prevent infinite loop in case of broken zpty file descriptor
<symphorien> (it is used in pure)
<ar1a> any chance someone can take a look at #54349 ? its a pretty simple pr
<{^_^}> https://github.com/NixOS/nixpkgs/pull/54349 (by ar1a, 15 hours ago, open): Pb cli and capture initialization
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
<srhb> symphorien: Neat, thank you :)
fendor has joined #nixos
<gchristensen> ar1a: Hi, may I PM?
<ar1a> sure
<nh2> which gstreamer package provides gst-launch-1.0?
<samueldr> ,locate gst-launch-1.0
<{^_^}> Found in packages: gst_all_1.gstreamer.dev
<samueldr> this is backed by nix-index
leex has joined #nixos
inquisitiv3 has joined #nixos
<nh2> samueldr: I am confused, I did `nix-env -iA unstable.gst_all_1.gstreamer.dev`, it built /nix/store/xx1ikcrdla7gjkca6ifcgsb8iv7zhvyq-user-environment.drv, but if I `nix-store --realise` that and look inside, there's no gst* stuff in it
<leex> Hey there, I was wondering where I can get libudev from? Trying to compile a rust game lib (ggez) and I get: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "`\"pkg-config\" \"--libs\" \"--cflags\" \"libudev\"` did not exit successfully.
<samueldr> nh2: if you realise which path? the user-environment?
<nh2> samueldr: yes
<samueldr> hmm, can't say for sure, I would have thought it would be used in the context of a nix-shell or a derivation
<samueldr> e.g. this `nix-shell -p gst_all_1.gstreamer.dev --run gst-launch-1.0` seems fine
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #54377 → go: patch missing mimetype database → https://git.io/fhuDK
<leex> oh disregard me :D I was editing the wrong nix-shell config it seems...
<sphalerite> nh2: yeah it's in the dev output
<sphalerite> which nix-env doesn't install
<sphalerite> and nix-env is very hard to persuade to install other outputs
<nh2> hm. How do people use it then from the command line?
<nh2> and when I run /nix/store/1iiriqcmzi82r483zrh0g35d8696q1sp-gstreamer-1.14.4-dev/bin/gst-inspect-1.0 it doesn't list any installed plugins beyond "staticelements"
<sphalerite> nh2: with nix-shell I suppose.
<sphalerite> nh2: or not at all :p
<sphalerite> nh2: I use it with a custom nix-shell thing, hang on
<{^_^}> [nixpkgs] @nlewo merged pull request #54232 → debootstrap: 1.0.112 -> 1.0.114 → https://git.io/fh4QL
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/fhuDp
drakonis_ has joined #nixos
Izorkin has quit [Quit: ZNC 1.7.1 - https://znc.in]
acarrico has quit [Ping timeout: 240 seconds]
drakonis has quit [Ping timeout: 252 seconds]
Izorkin has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/eebeb363dad (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
knupfer has quit [Quit: knupfer]
<nh2> sphalerite: samueldr: I succeeded this way to make it pick them from unstable:
<nh2> NIX_PATH=$HOME/.nix-defexpr/channels/unstable nix-shell -p gst_all_1.gstreamer -p gst_all_1.gst-plugins-good -p gst_all_1.gst-plugins-base -p gst_all_1.gst-plugins-bad -p gst_all_1.gst-plugins-ugly --run gst-inspect-1.0
mizu_no_oto has joined #nixos
<nh2> next question, what's the easiest way to obtain build logs for the gstreamer package? Somehow on Hydra most likely, what's the fastest way to get to the right output?
<nh2> I want to see what configure flags were passed and what the build output said
<{^_^}> [nixpkgs] @risicle opened pull request #54379 → pythonPackages.django_reversion: disable checks → https://git.io/fhuyW
<gchristensen> nh2: nix log $(readlink $(which bash))
<{^_^}> [nixpkgs] @FRidh pushed 119 commits to staging-next: https://git.io/fhuy4
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
mizu_no_oto has joined #nixos
<jluttine> in post-installation fixup, i get: ".. contains a forbidden reference to /build/"
<{^_^}> [nixpkgs] @nlewo merged pull request #54191 → jackett: 0.10.566 -> 0.10.622 → https://git.io/fh4fz
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/fhuyg
<nh2> gchristensen: great, thanks!
<nh2> `nix log $(which gst-inspect-1.0)` did it for me
mizu_no_oto has quit [Client Quit]
<{^_^}> [nixpkgs] @nlewo merged pull request #54056 → remotebox: 2.5 -> 2.6 → https://git.io/fhlJZ
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/fhuyo
<{^_^}> [nixpkgs] @nlewo merged pull request #53924 → oci-image-tool: init at 1.0.0-rc1 → https://git.io/fhn77
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/fhuyX
inquisitiv3 has quit [Ping timeout: 246 seconds]
mizu_no_oto has joined #nixos
dvim has joined #nixos
acarrico has joined #nixos
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/5d9024da9b9 (from 16 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
<rain1> How shall I make a script run on boot up?
<gchristensen> systemd service
<gchristensen> oneshot
Izorkin has quit [Quit: ZNC 1.7.1 - https://znc.in]
<makefu> wantedBy = [ "multi-user.target" ];
Izorkin has joined #nixos
rpg has joined #nixos
acarrico has quit [Client Quit]
inquisitiv3 has joined #nixos
<rain1> is there an example I can copy? I don't really know what to do
<ar1a> can you do that in configuration.nix?
<sphalerite> yes
ambro718 has joined #nixos
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
mizu_no_oto has joined #nixos
eadwu has quit [Ping timeout: 268 seconds]
dermetfan has joined #nixos
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
<inquisitiv3> I'm having trouble with the network connection from a NixOS live (running from ISO) guest running on Libvirt/QEMU on a Debian Unstable host. It says that I got a wired connection inside the guest, but I don't receive any answers when I try to ping Google (`google.com`) and Cloudflare's DNS (`1.1.1.1`). No problems from the host. Tested with the three available drivers in virt-manager; `virtio`, `rtl8139` (hypervisor default) and
<inquisitiv3> `e1000e`. The network source is `Virtual network 'default': NAT`. Couldn't find any relevant info on the wiki. The network interface is detected according to `ip -a` in the VM. Tested to restart the `network-manager` service. Any idea what could be the problem?
<inquisitiv3> I don't think that I run any tunnel on the host that block network traffic. Uninstalled Wireguard after tried to get it running.
<{^_^}> [nixpkgs] @NeQuissimus pushed to staging « binutils: 2.30.0 -> 2.31.1 »: https://git.io/fhu9m
<{^_^}> [nixpkgs] @nh2 opened pull request #54380 → SRT support for gstreamer. See: → https://git.io/fhu9Y
<{^_^}> [nixpkgs] @NeQuissimus closed pull request #49324 → binutils: 2.30 -> 2.31.1 → https://git.io/fxHSb
lopsided98 has quit [Ping timeout: 240 seconds]
sakalli` has joined #nixos
<{^_^}> [nixpkgs] @gebner merged pull request #54367 → lean: 3.4.1 -> 3.4.2 → https://git.io/fhugf
<{^_^}> [nixpkgs] @gebner pushed 2 commits to master: https://git.io/fhu9l
b has joined #nixos
<{^_^}> [nixpkgs] @asymmetric opened pull request #54381 → acts: init at 1.3 → https://git.io/fhu9E
<rain1> https://bpaste.net/show/8b083e8ef748 I made this and rebooted but it didn't seem to work, do you know what i did wrong?
<ivegotasthma> how do I get a sha256 for nix about a github repository?
<ivegotasthma> it was not a sha256 of the zip but of something else, but I forgot which
<infinisil> ,tofu ivegotasthma
<{^_^}> ivegotasthma: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<samueldr> ivegotasthma: it's the sha256 sum of the *contents* of the zip, which is annoying to get; the easiest way is using TOFU to make nix handle it
lopsided98 has joined #nixos
rtjure has quit [Read error: Connection reset by peer]
mizu_no_oto has joined #nixos
<ivegotasthma> infinisil: samueldr: I'm trying to package a vim plugin but the code is not being generated. It doesn't check the sha256, even if it's wrong it doesn't matter.
<samueldr> (obviously) the first step would be finding out why it doesn't get to failing
<samueldr> I do not have experience with the vim plugins infra in nixpkgs, but I can try lending a hand: how are you using/building the plugin you're trying to package?
<ivegotasthma> samueldr: I'm using the steps described here: https://nixos.wiki/wiki/Vim#Adding_new_plugins
<ivegotasthma> but it seems outdated
<ivegotasthma> I'm not sure who to ask about it, I already asked here 3-4 times today.
rtjure has joined #nixos
<samueldr> just to better follow you along, what's the plugin name you're adding?
jmgai_ has quit [Ping timeout: 268 seconds]
eadwu has joined #nixos
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
<samueldr> found your earlier question, trying with jlanzarotta/bufexplorer
<samueldr> (I'm following the wiki article)
<ivegotasthma> samueldr: yes, exactly
<LnL> ivegotasthma: that's the old tooling
<ivegotasthma> LnL: what's the new tooling, can I update the docs as well?
<{^_^}> [nixpkgs] @veprbl merged pull request #54345 → epkowa: add s80 series driver → https://git.io/fhu3E
<{^_^}> [nixpkgs] @veprbl pushed 2 commits to master: https://git.io/fhu9j
<ivegotasthma> LnL: running update.py should fix it?
<rain1> it doesn't seem to be creating a systemd unit
<LnL> the changes are not in stable so the manual on the webstite doesn't include the new instructions yet
<rain1> where would I find the unit file ?
<LnL> let me find a link for master
IRCsum has quit [Remote host closed the connection]
<ivegotasthma> LnL: thanks!
<samueldr> (I stopped looking once someone who knew about the subject looked into it, though thanks!)
IRCsum has joined #nixos
<ivegotasthma> samueldr: you can leave it
<ivegotasthma> samueldr: ah, nice! :)
<rain1> systemctl status remove-mnt-directories.service says Loaded: bad-setting (Reason: Unit remove-mnt-directories.service has a bad unit file setting.)
reinhardt has joined #nixos
hoijui has joined #nixos
<LnL> this will be in the manual for 19.03
<rain1> ah its cause rmdir is not a full path
dsiypl4_ has quit [Ping timeout: 272 seconds]
Makaveli7 has joined #nixos
<iqubic> So I have a default.nix I want to build. What is the best way to do this?
<{^_^}> [nixpkgs] @ivegotasthma closed pull request #53698 → djangorestframework-jwt: init at 1.11.0 → https://git.io/fhZnD
<samueldr> what did you try? what are you concerns with what you tried?
knupfer has joined #nixos
<iqubic> samueldr: Is that directed at me?
<samueldr> yes
<iqubic> Well, I don't know how to do it in first place.
drakonis_ has quit [Ping timeout: 245 seconds]
<iqubic> Running `nix-shell` in the directory with the default.nix gives me an error.
<srhb> iqubic: If it's a pkgs ? import <nixpkgs> ... type default.nix, you can just nix-build. If it's using arguments from callPackage, make a pkgs ? <nixpkgs> type wrapper.nix that uses pkgs.callPackage ./default.nix {}. The very abridged version.
<iqubic> error: cannot auto-call a function that has an argument without a default value ('stdenv')
<srhb> iqubic: So, "it depends" :-)
<iqubic> I see.
<srhb> iqubic: Right, that'll be the wrapper case.
<iqubic> `nix-build` fails.
<iqubic> error: cannot auto-call a function that has an argument without a default value ('stdenv')
<srhb> You'll want something like: { pkgs ? import <nixpkgs> {} }: pkgs.callPackage ./default.nix {}
<iqubic> So how does the wrapper case work?
<iqubic> And where do I put that?
<srhb> iqubic: It uses callPackage to fill in the arguments of your default.nix
<Ralith> any nightly rust users experiencing segfaults?
<srhb> iqubic: In a file next to your default.nix
<iqubic> so like in a shell.nix?
<srhb> iqubic: You can call it whatever you like, but I'd avoid shell.nix and default.nix as those have intrinsic meaning.
<iqubic> Why is it bad if I call it shell.nix?
<srhb> That is the file that nix-shell will auto load given no filename argument.
<iqubic> So I should give this file a name like wrapper.nix?
<srhb> That's what I'd do.
<iqubic> And how will I build this?
<srhb> nix-build wrapper.nix
fresheyeball has joined #nixos
dsiypl4_ has joined #nixos
<fresheyeball> can I have more that one directory as src to a derivation?
Guest70711 has quit [Ping timeout: 246 seconds]
<qyliss> srcs
<fresheyeball> qyliss: so in the `installPhase` are the contents of both sources magically available?
<clever> fresheyeball: why do you need multiple srcs?
<fresheyeball> clever: I am organizing frontend code
<clever> fresheyeball: it would likely be simpler to just cp ${./foo} $out/bar in the install phase
<fresheyeball> that powers more than one interface
<iqubic> I'm really really confused by how Nix works right now.
<fresheyeball> clever: I need to build though
<clever> fresheyeball: then cp ${other-derivation} $out/bar
dermetfan has quit [Quit: WeeChat 2.3]
jmgai has joined #nixos
<iqubic> Yesterday I cloned nixpkgs and ran `cd /path/to/local/nixpkgs/; nix-build -A discord`
<iqubic> Which gave me GSettings errors. Which were supposedly fixed by the latest commit to this: https://github.com/NixOS/nixpkgs/blob/ff2341afc9a10e4e59a7b62d31d93bc73b7d2e49/pkgs/applications/networking/instant-messengers/discord/default.nix
<iqubic> Today I copied discord's default.nix to a different directory, not in my nixpkgs clone, and built it from there. Now the GSettings issue has been resolved.
orivej has quit [Ping timeout: 240 seconds]
<iqubic> I have no freaking clue what the difference is there.
<WhittlesJr> No matter what channel I use or checkout of nixpkgs I use, it always wants to build nvidia-persistenced and it always fails with a permissions issue. What could that be?
<clever> iqubic: the version of nixpkgs it uses to build discord
<iqubic> really? Is that the issue?
<clever> iqubic: its very likely to be the issue
<iqubic> What specifically changes if I change the build dir to a place outside of nixpkgs?
<clever> WhittlesJr: look at the order the derivations fail in at the end, it should say which depended on nvidia
dvim has quit [Ping timeout: 250 seconds]
<iqubic> When $PWD=local nixpkgs `nix-build -A discord` was used to build it. When $PWD=not nixpkgs I copied the latest discord default.nix and used the wrapper thing that srhb gave me just now.
<iqubic> I feel like I'm fundamentally misunderstanding how nix works.
<clever> iqubic: the `import <nixpkgs>` in the wrapper, will load the nixpkgs from $NIX_PATH
<clever> which then gives entirely different versions of all dependencies
<iqubic> I see. So building things from a local clone of nixpkgs just doesn't work as well?
<clever> it generally works fine
<iqubic> But why is this case different?
<clever> varies from case to case
<WhittlesJr> clever: it's seemingly just nixos-system -> system-path -> nvidia-persistenced
<clever> WhittlesJr: then nvidia is somehow in your environment.systemPackages, but it could also be the x11 drivers doing that
<mdash> think i'm gonna deploy nextcloud today
<WhittlesJr> clever: probably the x11 drivers. The specific error: `/build/nvidia-persistenced-415.27/_out/Linux_x86_64/gen-manpage-opts: Permission denied`
<mdash> i'm nervous about php so i'm gonna put it in a nixos-container and pretend that helps with security
jmgai has quit [Ping timeout: 268 seconds]
<fresheyeball> what does nix do with more than one source?
<fresheyeball> lets say I have srcs = [../foo ../bar];
<fresheyeball> what will be there in installPhase?
emilsp has quit [Ping timeout: 630 seconds]
<fresheyeball> what if these sources have directories or files that collide
<clever> fresheyeball: then things get overwritten
<clever> fresheyeball: which is why i said, its simpler to just cp ${otherthing} $out/bar/
<clever> then you can directly refer to the derivation, and not put it in srcs
<{^_^}> [nixpkgs] @NeQuissimus pushed to staging « kernelHeaders: 4.18.3 -> 4.19.16 »: https://git.io/fhu7L
hcs^ has quit []
<{^_^}> [nixpkgs] @ivegotasthma opened pull request #54382 → vimPlugins.bufexplorer: init at 2019-01-20 → https://git.io/fhu7l
abaiste^ has joined #nixos
<{^_^}> [nixpkgs] @jluttine opened pull request #54383 → [Help needed] Openmodelica 1.13.0 [WIP] → https://git.io/fhu7E
aanderse_ has quit []
jmgai has joined #nixos
<{^_^}> [nixpkgs] @veprbl merged pull request #53452 → qMasterPassword: init at 1.2.2 → https://git.io/fh3Pr
<{^_^}> [nixpkgs] @veprbl pushed 3 commits to master: https://git.io/fhu7D
mizu_no_oto has joined #nixos
acarrico has joined #nixos
Laalf has quit [Ping timeout: 240 seconds]
emilsp has joined #nixos
<{^_^}> [nixpkgs] @hedning merged pull request #54355 → libhandy: 0.0.6 -> 0.0.7 → https://git.io/fhu0E
<{^_^}> [nixpkgs] @hedning pushed commit from @dtzWill to master « libhandy: 0.0.6 -> 0.0.7 (#54355) »: https://git.io/fhu7A
peacememories has joined #nixos
_kwstas has joined #nixos
acarrico has quit [Client Quit]
<ivegotasthma> how much should one contribute to nixpkgs in order to become a contributor with merge access?
reinhardt has quit [Quit: Leaving]
<__monty__> ivegotasthma: You have to pledge your soul to gchristensen.
<simpson> ivegotasthma: Depends; what would you do with such power?
<LnL> lol
<gchristensen> __monty__: moi??
ixxie has quit [Ping timeout: 245 seconds]
<ivegotasthma> __monty__: hmm
<{^_^}> [nixpkgs] @Izorkin opened pull request #54385 → lego: 1.2.1 -> 2.0.1 → https://git.io/fhu5L
<ivegotasthma> simpson: I would use it to do good (tm)
<ivegotasthma> eg. silently merge sex jokes in the docs
<simpson> ivegotasthma: Mm. Fortunately for you, I have zero control over who has merge access.
<ar1a> grahamc[m]: so if you're not blocking on #54349 is it good to be merged in?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/54349 (by ar1a, 18 hours ago, open): Pb cli and capture initialization
ddellacosta has joined #nixos
<gchristensen> ar1a: aye, grahamc[m] is my alter-ego who I forgot how to tell to stop being here
<ar1a> oh thats you ok cool :D
shibboleth has joined #nixos
<gchristensen> just left some more feedback, otherwise looks pretty good
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ivegotasthma> grahamc[m]: mr. soul demon, can you check this 12 line vim plugin package? https://github.com/NixOS/nixpkgs/pull/54382
<{^_^}> #54382 (by ivegotasthma, 23 minutes ago, open): vimPlugins.bufexplorer: init at 2019-01-20
<ivegotasthma> woops ^ ping to gchristensen:
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ar1a> gchristensen: kk made that style change, might break the build though because i force pushed while it was cloning lol
lopsided98 has quit [Quit: Disconnected]
peacememories has joined #nixos
lopsided98 has joined #nixos
<{^_^}> [nixpkgs] @grahamc merged pull request #54382 → vimPlugins.bufexplorer: init at 2019-01-20 → https://git.io/fhu7l
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/fhu52
<ivegotasthma> thank you!
_kwstas has quit [Quit: _kwstas]
<fyuuri> Hi. NixOS is installing libreoffice from sources atm. What tiggers this? To which directory does nix download the sources? Are the source completely deleted after installing? Or after collect-garbage?
<clever> fyuuri: all things nix downloads always go to /nix/store/
<symphorien> to the store. You can collect garbage to get rid of them once the build is complete
<{^_^}> [nixpkgs] @grahamc merged pull request #54349 → Pb cli and capture initialization → https://git.io/fhuWJ
<{^_^}> [nixpkgs] @grahamc pushed 3 commits to master: https://git.io/fhu5w
peacememories has quit [Client Quit]
<__monty__> fyuuri: That's probably because the build failed. So your build will likely fail too afaik.
<fyuuri> clever: I thought it would be there, but I cant find it :(
<clever> fyuuri: it will tell you the path, as it downloads it
<fyuuri> __monty__ : that would be sad^^, i am waiting for a long time
markus1189 has quit [Ping timeout: 240 seconds]
markus1189 has joined #nixos
<__monty__> fyuuri: Yeah, this has come up before. It's a massive build and if hydra fails you're likely to fail as well.
<fyuuri> clever: it says the path is /build/....
<fyuuri> __monty__ thank you. In this case I will interrupt it
<__monty__> fyuuri: Wait until someone else confirms my blathering though.
<fyuuri> It might be better to install libreoffice via nix-env anyway.. just on the machines I really need it.
<fyuuri> __monty__ : But that is plausilbe. Only if hydra failes it sould try building from source
iqubic has left #nixos ["ERC (IRC client for Emacs 26.1)"]
<fyuuri> and I dont really need libreoffice that much. Only when im forces to look at some .docx ^^
iqubic has joined #nixos
rpg has joined #nixos
<fyuuri> __monty__ : but maybe you could just do nix-shell -p libreoffice to confirm?
<__monty__> I'm not on nixos, so we're probably on different channels.
<fyuuri> ok
iqubic has left #nixos ["ERC (IRC client for Emacs 26.1)"]
<clever> fyuuri: /build/ is a temporary directory for builds, where it unpacks the src, after having already downloaded it
<fyuuri> Still I want to find out where the sources are now, and whether they are cleaned up after a successfull install. Does anybody now?
<clever> fyuuri: its always in /nix/store/ and a nix-collect-garbage will get rid of it
<fyuuri> clever: where is /build? It is not really the absolute /build
<tilpner> clever: What about ~/.cache/nix/tarballs? When does that get cleaned up?
<clever> tilpner: those are only symlinks pointing into the nix store, its practically zero size
<clever> fyuuri: /build/ is mapped to something in /nix/store/ and deleted when the build fails
<fyuuri> clever: thx! so at least I am sure nothing will be left over even if I interrupt the build now
<fyuuri> clever : thx!
<tilpner> Ah, of course :)
<fyuuri> but do you know where exactly it is mapped to? I could not find it.
<clever> fyuuri: something like $out-chroot, based on what is currently being built
iqubic has joined #nixos
<fyuuri> clever: ....drv.chroot! Thx!! This can only be opened by root
<symphorien> fyuuri: what are you trying to do ?
<fyuuri> symphorien: I just want to understand how it installling from source works.
<fyuuri> symphorien: Because libreoffice suddenly started building from source.
<clever> fyuuri: /build/ is only the temp dir it unpacks the source to
<clever> fyuuri: the real source is already in /nix/store/
<fyuuri> thx
<__monty__> fyuuri: Hydra attempts to build it and on success adds it to the binary cache. If you fail to find it in the cache you start building it.
<fyuuri> __monty__ thx
<fyuuri> I need to read all the nix pills...^^
<__monty__> fyuuri: Personally I learned more from the manual.
<fyuuri> __monty__ Would you suggest reading the whole manual instead? Will it cover everything the pills cover as well?
<fyuuri> I wish to get a deep understanding of how everything works in nixos... yet, I need to find time to read ...
freedan42x has joined #nixos
kenshinCH has quit [Quit: Page closed]
<ivegotasthma> I newb question, after a PR with a new package has been merged, when could I expect it to be available on the 18.09 channel?
<ivegotasthma> s/I/A
<makefu> ivegotasthma: normally, no. it will arrive in nixos-unstable at some point. stable will only contain security updates and build fixes (citation needed)
<makefu> if you want to use unstable for some packages:
<makefu> ,unstable
<freedan42x> Heelp, please: when I try to install ghc-mod: Installation path ~/.local/bin not found on the PATH environment variable.
<__monty__> fyuuri: Reading the nix pills will be negligible compared to reading the nix and nixpkgs manuals so "Why not both? (\/);,,;(\/)" : )
<__monty__> freedan42x: Fwiw, I don't bother with ghcmod. Just ghcid.
<freedan42x> __monty__: ghc-mod is required by haskell-ide in Atom
dvim has joined #nixos
<__monty__> freedan42x: My fwiw holds : ) It just breaks way too often. I'd rather spend time fixing my code than fixing my editor setup. Horses for courses though.
<freedan42x> __monty__: ghc-mod is needed for Haskell REPL ._.
<clever> fyuuri: ghci is the haskell repl
<clever> freedan42x: ^^
<freedan42x> clever: but I want to have Haskell REPL in Atom :p
<__monty__> freedan42x: Yeah, ghci definitely doesn't need ghc-mod. And HIE might be an option for atom and also doesn't require ghc-mod afaik.
<__monty__> freedan42x: I'll get out of the way now so someone can actually help you though.
<{^_^}> [nixpkgs] @witkamp opened pull request #54386 → gcc-arm-embedded: fix MANPATH → https://git.io/fhudV
shibboleth has quit [Quit: shibboleth]
<nh2> jtojnar: in https://github.com/NixOS/nixpkgs/commit/0edae74119d5353dea7898f245e824c52ac48513, why was the gtk dependency of gstreamer not added unconditionally?
sakalli` has quit [Quit: ERC (IRC client for Emacs 26.1)]
<freedan42x> when I try to open Discord: http://i.imgur.com/0RQbMGT.png I can download archive, but what to do with it? How to update Discord?
<__monty__> freedan42x: Discord package is notorious for breaking because it won't run unless updated.
<__monty__> So either be patient or maintain your own version of the expression so you can bump the version easily.
<makefu> or patch out the check :)
<freedan42x> __monty__: how to "maintain own version" then?
<nh2> does JACK audio work on OSX?
<nh2> I'm considering enabling it for gstreamer 1.15.1
<clever> __monty__: i believe discord is already fixed in master
<worldofpeace> For those wondering about discord, so the discussion here also https://github.com/NixOS/nixpkgs/issues/54003
<{^_^}> #54003 (by tadeokondrak, 4 days ago, open): Discord has been updated, does not work anymore
<worldofpeace> * see
<__monty__> clever: Ah, but teach a man to fix his discord and he will have pointless internet discussions for a lifetime ; )
peacememories has joined #nixos
<clever> __monty__: find the default.nix for discord in nixpkgs, and check its git history
<freedan42x> clever: git history? Sorry, I'm a completely noob
peacememories has quit [Client Quit]
<clever> freedan42x: click the history button on github, when looking at the discord/default.ni
<clever> x
_kwstas has joined #nixos
<freedan42x> clever: what's next?
<clever> freedan42x: look at what changes other people have done, mostly in the version or src area, and then repeat them on your own clone of nixpkgs, with the new version#
<__monty__> Yep.
<{^_^}> [nixpkgs] @samueldr pushed to release-18.09 « Revert "Add ssh backdoor to VM tests infrastructure." »: https://git.io/fhuFZ
aswanson_ has quit [Quit: WeeChat 2.2]
<freedan42x> clever: or can I just replace my discord config with github's config?
<clever> freedan42x: that only works if the one on github has already been updated
<clever> and there are many ways to do that
worldofpeace has quit [Quit: worldofpeace]
worldofpeace has joined #nixos
<laas> so, when you're developing with nix, are you expected to use nix-shell somehow?
knupfer has quit [Remote host closed the connection]
<__monty__> laas: Not necessarily but probably.
<freedan42x> clever: can't even find where default.nix is located
<clever> freedan42x: did you try the github search, for "discord" ?
<laas> it's just because I couldn't find any way to install the latest unwrapped gcc that also ships `cc`
<__monty__> laas: Keep in mind that nix-shell was actually designed to work on nix expressions so it's not always a great fit.
<laas> ah yeah
<freedan42x> clever: I mean in my system
<clever> laas: if your installing gcc, then your doing it wrong
<freedan42x> clever: in my files
Jetien has joined #nixos
<laas> clever: what should I do then?
<laas> if I want to compile a meson proejct
<__monty__> Maybe the nixpkgs manual has a section on C development?
<clever> freedan42x: nix-instantiate --eval -E "with import <nixpkgs> {}; discord.meta.position"
Jetien has quit [Client Quit]
<clever> laas: nix-shell -p meson
appleclusters has joined #nixos
<clever> laas: that gives a shell with gcc and meson
<freedan42x> clever: thank you
<appleclusters> I cannot for the life of me figure out how to declaratively install packages for a specific user
<laas> __monty__: I can't find any
<laas> clever: ooooh
<laas> that's really helpful, thanks!
<appleclusters> environment.systemPackages is for the whole system, how would I declare one for a single user? Do you add a custom config.nix to .config/nixpkgs/config.nix?
lawlesseel has quit [Remote host closed the connection]
lawlesseel has joined #nixos
<__monty__> ,home-manager
<{^_^}> home-manager allows you to manage your per-user configuration similarly to NixOS' configuration.nix: https://nixos.wiki/wiki/Home_Manager
<__monty__> I'm sure there's other ways but that's pretty popular.
<clever> appleclusters: or users.users.<name?>.packages
<appleclusters> @__monty__: I was spooked by the warning:
<appleclusters> In some cases Home Manager cannot detect whether it will overwrite a previous manual configuration. For example, the Gnome Terminal module will write to your dconf store and cannot tell whether a configuration that it is about to be overwrite was from a previous Home Manager generation or from manual configuration.
<appleclusters> Because I use gnome
<freedan42x> clever: I can't modify default.nix cuz it's read-only
<clever> freedan42x: everything in /nix/store/ is read-only
<clever> freedan42x: you must either copy the whole nixpkgs, or just git clone it from github
hoijui has quit [Remote host closed the connection]
<freedan42x> clever: git clone?
ambro718 has quit [Ping timeout: 250 seconds]
<clever> freedan42x: `git clone https://github.com/nixos/nixpkgs`
<__monty__> clever: Couldn't he just copy the Discord part?
<freedan42x> clever: and where will it clone?
<clever> freedan42x: to the current directory
<clever> __monty__: depends on if its fixed upstream or if he is trying to edit it locally, and if he will be making a pr after fixing it
orivej has joined #nixos
<__monty__> appleclusters: Not that big a deal, just remember to configure it through home-manager. It *is* still experimental though. Just sharing what seems the most popular method.
<freedan42x> clever: `fatal: destination path 'default.nix' already exists and is not an empty directory.`
<clever> freedan42x: what command did you run?
<clever> freedan42x: that is not the command i gave you
<__monty__> clever: Shouldn't he be cloning a personal fork. As a matter of simplicity?
<clever> __monty__: yeah, that would save a step, but you can always add a remote to it
<freedan42x> clever: from where I need to type `git clone https://github.com/nixos/nixpkgs` then?
<freedan42x> and will it copy all packages, willn't it?
<clever> freedan42x: yes, it will download all packages
<clever> freedan42x: in any directory you have write access to
<freedan42x> clever: I don't need this
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/6fc8992e6d0 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<freedan42x> clever: Come on, I only need to update Discord
<clever> 2019-01-20 16:44:22 < __monty__> clever: Ah, but teach a man to fix his discord and he will have pointless internet discussions for a lifetime ; )
<clever> ah, mixed the 2 convos up
<clever> freedan42x: nix-env -f https://github.com/nixos/nixpkgs/archive/master.tar.gz -iA discord
<freedan42x> clever: I have `discord` in config.nix, willn't it conflict?
<clever> freedan42x: yes
<clever> freedan42x: nix-env -f https://github.com/nixos/nixpkgs/archive/master.tar.gz -iA discord --arg config '{}'
<clever> that tells it to ignore config.nix
<__monty__> freedan42x: clever was trying to get you a clone of nixpkgs so you could contribute your version bumps back to nixpkgs upstream. Many hands, light work and all.
<freedan42x> clever: command did nothing
<srhb> It's unfree software, and config '{}' wiped allowUnfree
<ghostyy> is there a way to include a specific package or program in the nixos initramfs
<clever> *doh*
<clever> freedan42x: nix-env -f https://github.com/nixos/nixpkgs/archive/master.tar.gz -iA discord --arg config '{ allowUnfree = true; }'
<ghostyy> i have to run partprobe for some bizarre reason but busybox partprobe doesnt work, only partprobe proper
davidak has quit [Quit: Leaving]
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sanscoeur has quit [Ping timeout: 244 seconds]
dvim has quit [Ping timeout: 272 seconds]
Laalf has joined #nixos
inquisitiv3 has quit [Ping timeout: 250 seconds]
sinner has joined #nixos
Laalf has quit [Remote host closed the connection]
sinner is now known as Guest99275
Laalf has joined #nixos
Laalf has quit [Client Quit]
<freedan42x> clever: thank you! ^^
Makaveli7 has quit [Quit: Leaving]
dermetfan has joined #nixos
dermetfan has quit [Client Quit]
<{^_^}> [nixpkgs] @hedning merged pull request #54180 → libdeflate: 1.1 -> 1.2 → https://git.io/fh85g
<{^_^}> [nixpkgs] @hedning pushed commit from @r-ryantm to master « libdeflate: 1.1 -> 1.2 (#54180) »: https://git.io/fhubF
<pbb> is there some trick to do systemd-nspawn on a nixos host?
<pbb> I keep getting `execv(/var/lib/machines/debian/) failed: No such file or directory`
mizu_no_oto has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<pbb> even though the file definitely exists
<pbb> *directory
<andi-> You can't execute a directory
<pbb> nevermind, I forgot that the first argument to systemd-nspawn is not the new root
doyougnu has joined #nixos
_kwstas has quit [Quit: _kwstas]
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<siers> "(cd doc; nix-shell --run make)" The docs aren't building. Am I doing it right or are they really not building?
jmeredith has joined #nixos
protocol has joined #nixos
winem_ has joined #nixos
protocol has quit [Client Quit]
protocol has joined #nixos
ddellacosta has quit [Remote host closed the connection]
abaiste^ has quit []
jmgai has quit [Ping timeout: 268 seconds]
__monty__ has quit [Quit: leaving]
sanscoeur has joined #nixos
vk3wtf has joined #nixos
<{^_^}> [nixpkgs] @tadeokondrak opened pull request #54388 → fff: init at 1.5 → https://git.io/fhuAM
shabius_ has quit [Quit: Leaving]
<{^_^}> [hydra] @edolstra merged pull request #619 → Adds error messages to lazy tabs → https://git.io/fpoyk
<{^_^}> [hydra] @edolstra pushed 3 commits to master: https://git.io/fhuAH
<Ashy> hmm, that's surprising, running `nixos-rebuild switch --upgrade` on my 18.09 system and it's building libreoffice from source
shabius has joined #nixos
jackdk has joined #nixos
joehh has joined #nixos
<siers> same here
shabius has quit [Quit: Leaving]
jmgai has joined #nixos
goibhniu has joined #nixos
<Ashy> ah ok, some hydra weirdness?
<clever> Ashy: the build probably failed
orivej has quit [Ping timeout: 272 seconds]
shabius has joined #nixos
ddellacosta has joined #nixos
<nh2> what I'm trying to package says `Dependency cuda-9.2 found: NO` despite `cudatoolkit` in `buildInputs`. May I have to depend on something else?
simukis has quit [Quit: simukis]
ddellacosta has quit [Ping timeout: 240 seconds]
winem_ has quit [Ping timeout: 264 seconds]
<clever> nh2: what i always do in situations like this, is read the configure script and find out how its detecting a package
<ryantm> https://github.com/NixOS/nixpkgs/issues/54378 does any one have suggestions for debugging a kernel hanging during boot? I tried using the "extreme debug" parameters here https://www.askapache.com/linux/linux-debugging/#Extreme_Debug but it added no information to the output before it hangs with a white underscore in the top left.
<{^_^}> #54378 (by ryantm, 5 hours ago, open): installer iso does not boot with AMD Ryzen 7 with Vega 10 integrated graphics
<symphorien> ryantm: maybe boot.crashDump.enable = true;
<symphorien> iirc in the default options it includes an agressive watchdog which should panic if the kernel feezes
<Ashy> argh firefox has gotten messed up on my other nixos machine now too
<Ashy> it's happened on two different machines now where firefox after a reboot forgets all my saved sessions and stops working properly
<Ashy> nothing seems to render in the actual html view, though i can interact with the tabbar and omnibox
<nh2> clever: yeah I'm on it; it's Meson in this case (which is arguably 3000x more readable than autoconf), but I'm still getting familiar with it
<Ashy> pinned tabs are all forgotten etc
Havvy has quit [Ping timeout: 250 seconds]
isHavvy has joined #nixos
<{^_^}> [nixpkgs] @adisbladis merged pull request #54359 → phpPackages.phpstan: 0.11 -> 0.11.1 → https://git.io/fhu07
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/fhupW
<nh2> clever: I've found the code that does it, but I'm not sure yet how exactly it searches
<clever> nh2: its calling a function called dependency
<clever> nh2: my first guess, try just adding pkgconfig to the nativeBuildInputs ?
<ivan> why do I keep seeing `error: stack overflow (possible infinite recursion)` when rebuilding my system and why does it go away after a while without me changing me anything
<ivan> (how do I increase the stack size?)
<clever> ivan: ulimit
<nh2> clever: is already in. I think the problem is that there exists this file in cudatoolkit-9.1 `cudatoolkit-9.1.85.1-lib/lib/libcudart.so` but it's nowhere to be found in `cudatoolkit-9.2.148.1`
<clever> nh2: ah, then you probably need the 9.1 version
<ivan> clever: thanks, I can build my system now
<ivan> the default stack size limit is just 8KB?
sanscoeur has quit [Remote host closed the connection]
<nh2> clever: clever but why should that fundamental file disappear from 9.1 to 9.2? Sounds suspicious
<clever> ivan: thats 8192kb, not 8192byte
<ivan> oh wow nix needs more than 8MB of stack
<clever> nh2: either 9.2 deviced to remove it, or the 9.2 package is broken
<clever> ivan: or you have a recursive import statement somewhere
tmaekawa has joined #nixos
<ryantm> symphorien: Okay, I'll try it!
<ivan> clever: well it works when I raise it to 20MB, does that still suggest I might have a recursive import statement?
<clever> ivan: if it was recursive, it would consume all stack without limit
<ivan> thanks
<clever> but it might be something weird youve done, that sometimes isnt recursive
freedan42x has quit [Read error: Connection reset by peer]
freedan42x has joined #nixos
sanscoeur has joined #nixos
<nh2> clever: ah the absence of the file is explained by https://github.com/NixOS/nixpkgs/blob/2b0efd5c5ae36204dfe745b109f6a3baa99210c2/pkgs/development/compilers/cudatoolkit/default.nix#L104-L107, and cudatoolkit.lib has it. But the meson still doesn't figure it out with both
<clever> nh2: strace time, see how its searching
seanparsons has quit [Ping timeout: 272 seconds]
eadwu has quit [Ping timeout: 252 seconds]
seanparsons has joined #nixos
carlosdagos has joined #nixos
muvlon has joined #nixos
rpg has joined #nixos
<nh2[m]> matthewbauer: FYI I'm working on gstreamer-1.15.1, just so you know to avoid duplicate work
appleclusters has quit [Quit: Connection closed for inactivity]
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/50f41ea2fcf (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<muvlon> i've got a pretty general question (i believe)
<nh2> clever: I think the problem is that our cudatoolkit packages somehow have no .pc files at all
isHavvy has quit [Ping timeout: 246 seconds]
<muvlon> if i have a piece of software written by myself, what's the easiest way to use that in a .nix file?
<muvlon> in this particular case, the software is a "service", so ideally i'd want systemd to handle it just like every other service on that nixos host
ddellacosta has joined #nixos
<muvlon> do i write a nix "package" for that software somehow?
Havvy has joined #nixos
<clever> muvlon: yes
<nh2> muvlon: are you familiar with writing systemd units in general?
<muvlon> i have written simple systemd units before (and this one would be simple as well)
<muvlon> it's basically a monolithic executable that just runs (and needs another service to be running)
<muvlon> the other service is mosquitto, which i've already added to the systemPackages and configured properly
<nh2> muvlon: OK, good. Then you should probably first write a nix package for the software (like the ones in the pkgs/ subdir of nixpkgs). Afterwards, you can write a nixpkgs module that contains a systemd service which uses your packaged executable. Here is an example for a Go program running as a systemd service that's also a pretty static executable:
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<muvlon> would i just put that in the same repo where i keep the other .nix files for that host?
<nh2> if you don't want to package it in this general fashion, and it's only for your computer and the exe sits at a known path, then you can also write the systemd service directly into your configuration.nix, like the part that starts in https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/misc/gogs.nix#L199
<muvlon> it's very hardware specific, so yeah, this is not really generally useful
<clever> muvlon: in this example i linked, setting one of the enable flags will automatically add an overlay to nixpkgs, which includes the custom package it needs
<{^_^}> [nixpkgs] @rycee opened pull request #54390 → eclipses: 4.9 -> 4.10 → https://git.io/fhuh0
<muvlon> i see
<muvlon> that doesn't look too bad!
<nh2> muvlon: then I woudl recommend get started directly with `systemd.services.yourservicename = { ... }` and get that working, with ExecStart pointing directly to the full absolute path to your exe. Afterwards you can decide whether to modularise more, or not
<nh2> (get started with `systemd.services.yourservicename = { ... }` in your configuration.nix for that machine)
<ivan> is anyone here running staging with an NVIDIA card? requesting help to test CUDA-accelerated mpv
<muvlon> what exactly is a nix "overlay"?
<elvishjerricco> etu: How do I configure my emacs to use the right indent function for nix-mode?
<muvlon> the docs i can find are extremely terse
sanscoeur has quit [Remote host closed the connection]
sanscoeur has joined #nixos
protocol has quit [Ping timeout: 245 seconds]
<muvlon> am i understanding correctly that it relates to nixpkgs only and not nix in general?
<clever> muvlon: yeah
<clever> muvlon: an overlay is a way to add multiple sets of overrides to nixpkgs
ddellacosta has quit [Remote host closed the connection]
Ariakenom has quit [Quit: Leaving]
<muvlon> i think i get it
<muvlon> in the qemu example you linked, nixpkgs.overlays is just set to a single value. does that override any other nixpkgs.overlays settings or will they somehow get merged?
<{^_^}> [nixpkgs] @averelld opened pull request #54391 → Rstudio fixes → https://git.io/fhuhb
<clever> list type options will always merge
<yl[m]> I'm getting a hash inconsistency linux/mac for the same archive from Github on https://github.com/NixOS/nixpkgs/pull/54277/checks?check_run_id=52403490
<yl[m]> LnL: how's this possible?
<muvlon> that's pretty cool
<adisbladis> elvishjerricco: You are looking for (setq nix-indent-function 'nix-indent-line) ?
<muvlon> is there a good place to learn about all this behavior of the nix language?
<clever> yl[m]: is it fetchurl or fetchzip?
<elvishjerricco> adisbladis: That looks right :)
leex has quit [Quit: Lost terminal]
iddt has joined #nixos
<yl[m]> clever: it's fetchFromGitHub
<clever> which calls fetchzip behind the scenes, should be good
<LnL> yl[m]: fetchzip (and thus fetchFromGitHub) hashes the unpacked content, which can be affected by the filesystem normalization of hfs+ / apfs
<iddt> i'm having trouble figuring out how to config nixos to recognize my touchpad. it should be using a plain old synaptics driver, but when i boot, i see this msg:
<clever> LnL: oh, case sensitive!
<adisbladis> Imho nix-indent-line should become the default very soon
<iddt> psmouse serio1: synaptics: Unable to query device: -1
<clever> yl[m]: are there potentially duplicate files, like foo and Foo in the repo?
<muvlon> daaaamn hfs+ case insensitivity
<iddt> any theories?
<muvlon> they still do that?
<yl[m]> damn
<LnL> clever: not case, but unicode normalisation
<yl[m]> so we should have linux/mac hashes?
<clever> yl[m]: we should kick apple out of the club for being crap :P
<yl[m]> lol
<yl[m]> I'm with you on that
logand has joined #nixos
<yl[m]> LnL: what's the suggested fix for the PR?
<clever> yl[m]: the hash will at least pass if you switch to fetchurl
<clever> yl[m]: you will want a URL like https://github.com/keybase/client/archive/v2.13.1.tar.gz
<LnL> the simples solution is to use fetchurl if a stable tarball is available
<yl[m]> LnL: what's the point of the move towards fetchFromGitHub then?
<clever> github is usually good at making a stable tarball
<yl[m]> should we migrate fetchGitHub from fetchzip to fetchurl?
<clever> yl[m]: some crap services, will generate a new zip/tar every time, with varying timestamps in the zip listing
<clever> which causes a new hash every time
<yl[m]> 'n
<yl[m]> oh@
<yl[m]> man I hate this keyboard
<yl[m]> clever: I see
<clever> fetchzip will hash the unpacked contents, so it doesnt care about how the zip describes the files
<clever> but, then its sensitive to what the FS on the host does, when you unpack X and then discover it turned into x
<yl[m]> clever: what if we unpack on a different volume (maybe nix controlled volume) on mac
<clever> you could also maybe find the problem file upstream, and file an issue about it
<clever> it may cause similar problems if any darwin user tries to clone the repo
<clever> yl[m]: need root for that
<{^_^}> [nixpkgs] @ivan opened pull request #54392 → ffmpeg, mpv: enable hardware-accelerated decoding with CUDA → https://git.io/fhujT
<yl[m]> clever: true but that's possible in multi-user mode
<yl[m]> I'll try fetchurl now
<LnL> depending on what's causing the problem you might be able to work around it, like https://github.com/NixOS/nixpkgs/commit/0ff914b6600c9eef4df03d2555238277f94a5bc1
erictapen has quit [Ping timeout: 240 seconds]
dsiypl4_ has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @rycee pushed to master « eclipses: 4.9 -> 4.10 »: https://git.io/fhujO
<{^_^}> [nixpkgs] @rycee closed pull request #54390 → eclipses: 4.9 -> 4.10 → https://git.io/fhuh0
<yl[m]> LnL: thanks for the link, not sure which files are causing this issue I'll just use fetchurl for this case
<yl[m]> Github returns a pretty consistent archive