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