gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || 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
<gchristensen> what is your goal?
<worldofpeace> Lol, could the wallpaper be interferring?
aarvar has joined #nixos
<gchristensen> worldofpeace: could be :)
<ben> Uh, my goal is trying to track down why curl doesn't work but I'm a few steps off that I think
<gchristensen> worldofpeace: if we could make the font bigger and/or increase contrast, it would help
Rusty1_ has joined #nixos
<worldofpeace> gchristensen: There's an option for fonts right, that would affect sddm?
<gchristensen> I don't think it would impact the size of the font, even if it doees touch sddm
<ben> how do i manually unpack a .nar file?
Mateon3 has joined #nixos
<gchristensen> sounds like you're in something deep. I wish I could help, but I can't help much now.
<worldofpeace> I should like file a bug report before I get too far down this road
Mateon1 has quit [Ping timeout: 265 seconds]
Mateon3 is now known as Mateon1
<samueldr> sounds like a custom sddm theme could help
<worldofpeace> samueldr: Ahh, don't excite me
<samueldr> one that makes sure to set text and background in contrasting colours
<samueldr> phrasing!
<worldofpeace> sorry that did read a bit perverse
<joepie91> okay, so Hydra seems to have decided to just never build any variety of this job ever again: https://hydra.cryto.net/build/8
<joepie91> and queue it perpetually
<joepie91> what do I do now? :|
<joepie91> I can't find any debug information anywhere whatsoever
jperras has quit [Ping timeout: 256 seconds]
<gchristensen> joepie91: pastee `nix show-derivation /nix/store/gnsg6dpln02q4xjlwbnnz13q2qdz73pc-nix-2.1pre6148_a4aac7f.drv`
<{^_^}> [nixpkgs] @matthewbauer opened pull request #42312 → Fix Android-prebuilt ghc build → https://git.io/fCgbT
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<joepie91> gchristensen: where do I specify that? as far as I can tell, the 'buildMachines' option does not exist for the Hydra service in nixpkgs
LnL has quit [Ping timeout: 276 seconds]
<joepie91> (only buildMachinesFiles does, and that's empty in my cawse)
<joepie91> case*
<gchristensen> nix.buildMachines
<joepie91> oh, it's a Nix-wide thing
<joepie91> gchristensen: any other options I need to set to make Hydra use those settings?
<joepie91> or should this be enough?
<gchristensen> should be enough?
LnL has joined #nixos
<joepie91> gchristensen: build in progress!
<joepie91> aaaaand then hydra-server crashed
kreetx has joined #nixos
<joepie91> lol
<joepie91> this is going well
wangoe has quit [Ping timeout: 260 seconds]
<joepie91> still seeing these messages in journalctl: Jun 21 00:22:31 workbot hydra-queue-runner[20360]: notification sender: notification about build 8 failed: failed with exit code 255
<joepie91> but build is ongoing
<gchristensen> maybe you can pass -vvvvv to the queue runner
andymandias has quit [Ping timeout: 264 seconds]
jperras has joined #nixos
<joepie91> and then firefox broke
<gchristensen> or strace
<joepie91> apparently everything is just broken today
<joepie91> it's one of Those Days
kreetx has quit [Ping timeout: 265 seconds]
<ben> is there an easy way to download all build logs for a hydra job?
<joepie91> gchristensen: how do I set -vvvvv in my config?
<joepie91> given that it's NixOps-managed
<gchristensen> dunno, joepie91
andymandias has joined #nixos
<gchristensen> ben: `nix log $(which curl)`
<joepie91> maybe I should look at this tomorrow and call it a night :)
<joepie91> important package delivery in T minus 9 hours so need to sleep anyway
<gchristensen> something good?
<ben> gchristensen: i meant logs from all builds for that job, like, historically
<joepie91> gchristensen: package contains an air cleaning filtering thingem
<gchristensen> neat
<gchristensen> ben: I don't know
tzemanovic has quit [Remote host closed the connection]
<ben> https://github.com/NixOS/hydra/pull/441 where can i find these docs on the nixos website?
tzemanovic has joined #nixos
<samueldr> maybe the fuzziness in the font makes the difference
silver has quit [Read error: Connection reset by peer]
<worldofpeace> The f does look a little fuzzy :D
<worldofpeace> I'd argue it appears more readable. Yet again the test isn't a human reading a screen
<{^_^}> [nixpkgs] @Infinisil opened pull request #42313 → shadowfox-updater: init at 1.5.2 → https://git.io/fCVKr
<infinisil> Full black theme for firefox ^^
<worldofpeace> Perhaps blur is just confusing to text detection.
wangoe has joined #nixos
fragamus has joined #nixos
contrapumpkin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tenten8401> Hey, so if I'm making a package that needs write access to the folder it's installed in, what would be a good way to go about allowing something like that?
<tenten8401> As in the program being run tries to write to where it's installed to
<gchristensen> patch it to not do that
<infinisil> Yeah you don't want to allow that at all
<samueldr> tenten8401: something web-based? some users will manage the servers using nixos, but throw the towel and manage web apps the old fasioned stateful way :/
<tenten8401> It's a launcher for Minecraft
dbmikus_ has quit [Quit: WeeChat 2.1]
andreabedini has joined #nixos
<tenten8401> ahh wait, launcher has a --working-dir option now
<tenten8401> apparently
<infinisil> I looked a bit into minecraft versioning some time ago, and it would be possible to declaratively install specific minecraft versions, probably even with specific mods installed
<samueldr> if you write a wrapper, tenten8401, make sure that passing a second --working-dir overrides the first one
<samueldr> (that's a personal opinion)
<tenten8401> Is there a set place that program data goes?
ericsagn1 has joined #nixos
<tenten8401> could I end up just using $HOME as a variable when launching?
<tenten8401> because really it's supposed to store your stuff seperate from other users
<samueldr> $HOME may put some weird stuff at weird place
tzemanovic has quit [Remote host closed the connection]
<samueldr> but "${XDG_DATA_HOME:-$HOME/.local/share}/atlauncher" would look right to me
<gchristensen> samueldr++
<{^_^}> samueldr's karma got increased to 3
<tenten8401> So something like "${jre}/bin/java -jar $out/ATLauncher.jar --working-dir ${XDG_DATA_HOME:-$HOME/.local/share}/atlauncher" for the launch command?
<samueldr> make sure to quote including the quotes I said earlier
<tenten8401> ahh yeah whoops
<tenten8401> thanks for the link by the way
<samueldr> XDG standards are mostly good
<samueldr> (there's the menu standard that I don't really like)
<samueldr> (but it's mostly due to backwards compat I think)
<tenten8401> Getting an unexpected $undefined for some reason with that line in there
<samueldr> ah
<samueldr> yeah, that ${XDG_DATA_HOME} is for bash
<{^_^}> [nixpkgs] @jerith666 opened pull request #42314 → clementine: add gst_plugins to buildInputs so setup hooks work → https://git.io/fCV6S
<samueldr> use ''${XDG_DATA ...
<tenten8401> it's being echoed to a bash script
<samueldr> ''$ will escape it into doubly-quoted strings
<samueldr> oh
<tenten8401> trying to paste my build file but hastebin is being dumb
<samueldr> ,escape'' tenten8401
<{^_^}> tenten8401: '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
<samueldr> (I'm waiting for a bin before trying to explain, just in case I'm assuming wrongly)
<tenten8401> https://pastebin.com/KVSrn1gZ Line 41
<tenten8401> I know it's pastebin and loaded with ads, sorry about that
<samueldr> yup
<samueldr> eh, it works
<tenten8401> I tried hastebin and it was broke
<samueldr> so, you're into a nix string
<samueldr> in nix strings, ${} are antiquotation
<tenten8401> so would I just double layer them?
<tenten8401> or do the double single quote
<samueldr> wait a tiny second
<tenten8401> alright
<samueldr> » Since ${ and '' have special meaning in indented strings, you need a way to quote them. $ can be escaped by prefixing it with '' (that is, two single quotes), i.e., ''$. '' can be escaped by prefixing it with ', i.e., '''. $ removes any special meaning from the following $. Linefeed, carriage-return and tab characters can be written as ''\n, ''\r, ''\t, and ''\ escapes any other character.
jackdk has quit [Ping timeout: 248 seconds]
et4te has joined #nixos
<tenten8401> ahh so I would want the double single quote
<samueldr> well, you keep your line 41 exactly as it is, except you ADD two single-quotes before the dollar-sign for XDG_DATA_HOME
<samueldr> so: ... --working-dir "''${XDG_DATA_H ...
<samueldr> ot works a bit like the \" escape, but for double-single-quoted strings
<samueldr> or uh, the \$ escape ;)
<worldofpeace> grahamc: Thanks for being nice
Guanin has joined #nixos
<tenten8401> so I'd want 2 sets of 2 single quotes?
jackdk has joined #nixos
<tenten8401> oh wait one of those is a double quote
<tenten8401> I'm dumb
<samueldr> ah, non-monospaced font?
fader has quit [Ping timeout: 256 seconds]
<tenten8401> yeah
<samueldr> I think you got it then
<tenten8401> and now ATLauncher is throwing an ArrayIndexOutOfBoundsException... nice
<samueldr> well, at least it now starts :)
<samueldr> or tries to
<tenten8401> yeah
<infinisil> Imagine our IRC clients had some string interpolation mechanism and you had to explain Nix string escaping
<tenten8401> checked out the bash script
<samueldr> the nightmare
<tenten8401> it decided to substitute $HOME anyways
<tenten8401> --working-dir "/homeless-shelter/.local/share/atlauncher"
<samueldr> oh uh
<samueldr> re-pastebin that line?
<infinisil> tenten8401: Best would be to try out the escaping rules in a nix repl
<tenten8401> ahh yeah that's true
<infinisil> Makes it more easy to see what's going on
tzemanovic has joined #nixos
<samueldr> Ah!
<infinisil> Heh, it's the thing I mentioned earlier
<samueldr> nah, it's heredocs in bash in a string
<infinisil> You want the ' quotes in the bash script
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/625c0b35d43 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<samueldr> that's going to cost you
<infinisil> To escape '${
<infinisil> > '' ''\'''${XDG ... ''
<{^_^}> "'${XDG ... "
<tenten8401> oh my
<gchristensen> nah no need
<gchristensen> change cat > $out/bin/atlauncher << EOF
<gchristensen> to cat > $out/bin/atlauncher << 'EOF'
<samueldr> gchristensen++
<{^_^}> gchristensen's karma got increased to 7
<samueldr> that's what I was checking in the `man bash`
<infinisil> Why use heredoc at all though? Why not just writeScript?
<gchristensen> infinisil++
<{^_^}> infinisil's karma got increased to 8
<samueldr> I was going to as that infinisil
<tenten8401> would I have to singlequote the ending EOF too?
<samueldr> no
<tenten8401> that'd probably be why it wasn't working
<shachaf> If I run any nix-env command, I get this error: syntax error, unexpected $undefined, expecting IND_STR or DOLLAR_CURLY or IND_STRING_CLOSE, at /nix/store/2k6agi5zz3rlnc8i9l0bgvzz1vaiilj4-nixpkgs-18.09pre142966.91ca88b3e6b/nixpkgs/pkgs/applications/networking/remote/citrix-receiver/default.nix:212:34
<shachaf> Am I missing something? It doesn't look like that file was updated very recently
<tenten8401> looks like $out doesn't get substituted when using 'EOF'
<samueldr> shachaf: your nix version is?
tzemanovic has quit [Ping timeout: 256 seconds]
<shachaf> nix-env (Nix) 1.11.2
<samueldr> tenten8401: yeah, it wouldn't
<samueldr> shachaf: that's old, even for 1.11 standard iir
<samueldr> c
<samueldr> shachaf: ^
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has quit [Ping timeout: 248 seconds]
* samueldr thought he got confused with tab completion
<shachaf> OK, maybe I can figure out how to upgrade.
kreetx has joined #nixos
<shachaf> OK, that was pretty straightforward.
<samueldr> shachaf: how did you?
<shachaf> Is there something I can put in my .nixpkgs/config.nix to keep nix itself up to date? Or does it need to be installed differently?
<shachaf> I ran the installer.
<tenten8401> uhg, this is still getting substituted somehow with homeless-shelter
<samueldr> tenten8401: in that situation, I think one way to handle this is to have the script next to the derivation, with a @out@ placeholder, then use substituteAll or substituteAllInPlace https://nixos.org/nixpkgs/manual/#fun-substituteAll
<samueldr> something like cp ${./wrapper.sh} $out/bin/atlauncher ; substituteAllInPlace $out/bin/atlauncher
<{^_^}> [nixpkgs] @matthewbauer pushed 0 commits to always-static: https://git.io/fCViX
<samueldr> tenten8401: since the phases are bash, into one level of indirection (nix) this makes it important to understand where nix ends and where bash starts; and in your particular case, quoting rules and escaping rules for heredocs and strings :/
kreetx has quit [Ping timeout: 256 seconds]
<samueldr> as for the shebang, `#!/usr/bin/env bash`, it will be fixed in the fixup (I'm pretty sure)
<samueldr> oh, your LD_LIBRARY_PATH then becomes an issue too
<tenten8401> uhg
<gchristensen> soon you'll be an expert packager :)
<tenten8401> lol
tzemanovic has joined #nixos
andreabedini has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
etu has quit [Read error: Connection reset by peer]
Supersonic112 is now known as Supersonic
etu has joined #nixos
sir_guy_carleton has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fader has joined #nixos
et4te has quit [Ping timeout: 276 seconds]
<sir_guy_carleton> for any off you using NixOS on a desktop/laptop
<sir_guy_carleton> what backup programs do you use?
<{^_^}> [nixpkgs] @matthewbauer merged pull request #41485 → [RDY] Owamp : Get one way (network) latencies between synchronized computers → https://git.io/vhBIm
<{^_^}> [nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/fCVPy
<gchristensen> borgbackup
slack1256 has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #41478 → Small improvements to the docker registry module → https://git.io/vh4Dl
<{^_^}> [nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/fCVPS
<{^_^}> [nixpkgs] @matthewbauer merged pull request #41632 → leetcode-cli: init at 2.5.2 → https://git.io/vhucE
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fCVP7
schoppenhauer has quit [Ping timeout: 265 seconds]
<samueldr> I, too, use borg backup
alexteves_ has quit [Remote host closed the connection]
<sir_guy_carleton> what's so great about compared to rsync?
<sir_guy_carleton> *it
<{^_^}> [nixpkgs] @matthewbauer merged pull request #41313 → gams: move optgams and gamslice to $out/share/gams → https://git.io/vhZFg
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fCVXT
<samueldr> one thing, that I have tested, is to mount the backup to a mount point to fetch a specific file
<samueldr> it keeps multiple de-duplicated backups
<samueldr> I keep two computers synchronized
<samueldr> using the same borg backup repository, but different keys for the storage, files that are identical on both computers are de-duplicated
<catern> maaaan
<catern> dependencies are so bad in the rest of the world, without good ole Nix
<samueldr> the main feature section here https://borgbackup.readthedocs.io/en/stable/#main-features is pretty good
<catern> right now I'm figuring out how to embed an executable into a C library, so I can just link against the C library to get the executable
tenten8401 has quit [Ping timeout: 248 seconds]
<catern> since that will be easier than getting my user to set up PATH right
markus1189 has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @samueldr opened pull request #42316 → lastpass-cli: 1.2.2 -> 1.3.1 (18.03) → https://git.io/fCVX6
blonkhart has joined #nixos
markus1189 has joined #nixos
mounty has quit [Ping timeout: 260 seconds]
hph^ has quit [Ping timeout: 255 seconds]
mounty has joined #nixos
jperras has quit [Ping timeout: 265 seconds]
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andreabedini has joined #nixos
sbdchd has quit [Remote host closed the connection]
bpye has joined #nixos
sbdchd has joined #nixos
markus1189 has quit [Ping timeout: 268 seconds]
<bpye> Hey, so having just managed to get my home server setup on Ubuntu using Docker Compose I've decided it's a mess, monitoring is hard as everything is very isolated, backups are hard for similar reasons. I have read a bit about NixOS before but I was wondering if anyone has used NixOS similarly before and has their config on GitHub or such?
jackdk has quit [Ping timeout: 264 seconds]
<sir_guy_carleton> bpye: can't think off of anybody off the top of my head, but you might try the configuration collection on the NixOS wiki
sbdchd has quit [Ping timeout: 248 seconds]
spear2 has joined #nixos
<bpye> sir_guy_carleton Thanks I'll have a look through, just looking to get an idea of what I would be needing to do.
matthewbauer has joined #nixos
elasticdog has quit [Ping timeout: 264 seconds]
oldandwise has joined #nixos
elasticdog has joined #nixos
markus1189 has joined #nixos
spear2 has quit [Ping timeout: 245 seconds]
oldandwise has quit [Quit: leaving]
voidconf has joined #nixos
matthewbauer has quit [Read error: Connection reset by peer]
<voidconf> what's the reason again that NixOS did not use the full haskell syntax?
<voidconf> s/the full/compatible/\
markus1189 has quit [Ping timeout: 245 seconds]
<clever> voidconf: i'm guessing its the bootstrapping and compiler size problems
<clever> voidconf: ghc is over a gig in size
<clever> and have fun compiling ghc on a new platform :P
jperras has joined #nixos
<voidconf> i installed qtbase-5.9.3 in my userspace account, but i'm not getting the headers in ~/.nix-profile/include/
<clever> ,library
<{^_^}> Don't install libraries through nix-env or systemPackages. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<{^_^}> [nixpkgs] @jb55 opened pull request #42318 → clightning: init at 0.6rc1 → https://git.io/fCVMB
simukis has quit [Read error: Connection reset by peer]
simukis has joined #nixos
<voidconf> danke
jperras has quit [Ping timeout: 276 seconds]
andymandias has quit [Ping timeout: 264 seconds]
markus1189 has joined #nixos
kreetx has joined #nixos
reinzeldroid has joined #nixos
andymandias has joined #nixos
jb55 has joined #nixos
kreetx has quit [Ping timeout: 264 seconds]
<rizary> when doing development/production of web app using postgresql, how do you guys setting the postgresql? I mean, should we make `default.nix` in `database` folder and connect it into our derivation as let say `buildInputs`?
voidconf has quit [Quit: leaving]
<rizary> i'm seeing https://nixos.wiki/wiki/PostgreSQL but it seems the deployment is not made specifically for derivation. (Assuming `services.postgresql` is in `configuration.nix`)
markus1189 has quit [Remote host closed the connection]
srl295 has quit [Quit: Connection closed for inactivity]
sbdchd has joined #nixos
lassulus_ has joined #nixos
matthewbauer has joined #nixos
woodson has joined #nixos
lassulus has quit [Ping timeout: 248 seconds]
lassulus_ is now known as lassulus
markus1189 has joined #nixos
sbdchd has quit [Ping timeout: 264 seconds]
woodson has quit [Client Quit]
matthewbauer has quit [Ping timeout: 264 seconds]
Ridout has quit [Ping timeout: 256 seconds]
blankhart has quit [Read error: Connection reset by peer]
blankhart has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.0]
markus1189 has quit [Ping timeout: 256 seconds]
Fare has joined #nixos
inquisitiv3 has joined #nixos
markus1189 has joined #nixos
worldofpeace has quit [Ping timeout: 260 seconds]
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kreetx has joined #nixos
fragamus has joined #nixos
adam-6520493 has joined #nixos
inquisitiv3 has quit [Ping timeout: 248 seconds]
kreetx has quit [Ping timeout: 260 seconds]
markus1189 has quit [Ping timeout: 256 seconds]
markus1189 has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
sbdchd has joined #nixos
reinzelmann has joined #nixos
stepcut has joined #nixos
pikajude has quit [Ping timeout: 256 seconds]
sbdchd has quit [Ping timeout: 264 seconds]
igo95862 has joined #nixos
jb55 has quit [Ping timeout: 264 seconds]
inquisitiv3 has joined #nixos
shachaf has quit [Ping timeout: 248 seconds]
Aexoden has quit [Ping timeout: 265 seconds]
johnhamelink has quit [Ping timeout: 276 seconds]
nocoolnametom has quit [Ping timeout: 276 seconds]
markus1189 has quit [Ping timeout: 260 seconds]
roconnor has quit [Ping timeout: 268 seconds]
reinzeldroid has quit [Ping timeout: 255 seconds]
markus1189 has joined #nixos
inquisitiv3 has quit [Ping timeout: 255 seconds]
simukis has quit [Ping timeout: 248 seconds]
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
reinzelmann has quit [Quit: Leaving]
reinzeldroid has joined #nixos
Fare has quit [Ping timeout: 248 seconds]
Rusty1_ has quit [Quit: Konversation terminated!]
MercurialAlchemi has joined #nixos
justbeingglad has joined #nixos
markus1189 has quit [Ping timeout: 268 seconds]
markus1189 has joined #nixos
kreetx has joined #nixos
jackdk has joined #nixos
robstr has joined #nixos
justbeingglad has left #nixos [#nixos]
reinzeldroid has quit [Ping timeout: 255 seconds]
markus1189 has quit [Ping timeout: 264 seconds]
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
et4te has joined #nixos
Guanin has quit [Ping timeout: 264 seconds]
kreetx has quit [Ping timeout: 240 seconds]
fader has quit [Ping timeout: 260 seconds]
kreetx has joined #nixos
Guanin has joined #nixos
reinzeldroid has joined #nixos
semilattice has joined #nixos
markus1189 has joined #nixos
andymandias has quit [Ping timeout: 248 seconds]
reinzeldroid has quit [Ping timeout: 276 seconds]
Aexoden has joined #nixos
andymandias has joined #nixos
markus1189 has quit [Ping timeout: 240 seconds]
markus1189 has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 81 commits to staging: https://git.io/fCxUO
andreabedini has joined #nixos
<PolarIntersect> yo
<PolarIntersect> Does anyone know if there's a simple way to suid a file?
<{^_^}> [nixpkgs] @FRidh pushed 267 commits to python-unstable: https://git.io/fCxUg
<PolarIntersect> I expected the slock package to do it for me, but it doesn't
markus1189 has quit [Ping timeout: 260 seconds]
<PolarIntersect> I also tried overriding it w/ a postInstall but it says chmod isn't permitted in the postInstall phase
reinzeldroid has joined #nixos
<adisbladis[m]> PolarIntersect: You cannot (if you are not on nixos)
reinzelmann has joined #nixos
<PolarIntersect> I'm on NixOS
<adisbladis[m]> On NixOS there are modules for that sort of thing. Either application specific ones or through security.wrappers
blonkhart has quit [Quit: WeeChat 1.9.1]
hyper_ch2 has joined #nixos
<adisbladis[m]> Slock has a module
<adisbladis[m]> `programs.slock.enable = true;`
<adisbladis[m]> That will set up the suid wrapper for you
<PolarIntersect> oooh
<PolarIntersect> thanks <3
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
endformationage has quit [Quit: WeeChat 1.9.1]
<adisbladis[m]> Np <3
<PolarIntersect> IT WORKS
* PolarIntersect cries happy tears
markus1189 has joined #nixos
markus1189 has quit [Ping timeout: 256 seconds]
markus1189 has joined #nixos
philippD has joined #nixos
slack1256 has joined #nixos
reinzeldroid has quit [Ping timeout: 276 seconds]
markus1189 has quit [Ping timeout: 240 seconds]
markus1189 has joined #nixos
kreetx has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
sbdchd has joined #nixos
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
Ariakenom has joined #nixos
shachaf has joined #nixos
shachaf has quit [Changing host]
shachaf has joined #nixos
sbdchd has quit [Ping timeout: 260 seconds]
sorixelle has joined #nixos
markus1189 has quit [Ping timeout: 256 seconds]
MichaelRaskin has quit [Quit: MichaelRaskin]
semilattice has quit [Ping timeout: 276 seconds]
marc__ has joined #nixos
tzemanovic has quit []
winem_ has joined #nixos
hamishmack has joined #nixos
<teto1> nixpaste limit is quite low, I can't even copy my .config in there
igo95862 has quit [Quit: igo95862]
slack1256 has quit [Remote host closed the connection]
midchildan_ has quit [Ping timeout: 248 seconds]
akl has quit [Ping timeout: 268 seconds]
pikajude has joined #nixos
midchildan_ has joined #nixos
winem_ has quit [Ping timeout: 255 seconds]
akl has joined #nixos
NYXT has quit [Ping timeout: 256 seconds]
kyrre_ has quit [Ping timeout: 260 seconds]
terrorjack has quit [Read error: Connection reset by peer]
mgdelacroix has quit [Read error: Connection reset by peer]
kyrre_ has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
akl has quit [Ping timeout: 256 seconds]
periklis has joined #nixos
NYXT has joined #nixos
kyrre_ has quit [Max SendQ exceeded]
kyren_ has joined #nixos
akl has joined #nixos
tk__ has quit [Ping timeout: 256 seconds]
tk_ has joined #nixos
NYXT has quit [Max SendQ exceeded]
kyren has quit [Read error: Connection reset by peer]
NYXT has joined #nixos
mgdelacroix has joined #nixos
kyrre_ has joined #nixos
mgdelacroix has quit [Max SendQ exceeded]
karlguy has quit [Ping timeout: 260 seconds]
NYXT has quit [Max SendQ exceeded]
markus1189 has joined #nixos
thc202 has joined #nixos
akl has quit [Ping timeout: 245 seconds]
kyrre_ has quit [Max SendQ exceeded]
mmercier has joined #nixos
mmercier has quit [Client Quit]
akl has joined #nixos
jD91mZM2 has joined #nixos
nocoolnametom has joined #nixos
mmercier has joined #nixos
indika has quit [Read error: Connection reset by peer]
kreetx has joined #nixos
mgdelacroix has joined #nixos
indika has joined #nixos
NYXT has joined #nixos
terrorjack has joined #nixos
kyrre_ has joined #nixos
kyrre_ is now known as kyrre
kyrre has quit [Changing host]
kyrre has joined #nixos
johnw has quit [Quit: ZNC - http://znc.in]
johnw has joined #nixos
Ariakenom has joined #nixos
TacNuke has joined #nixos
karlguy has joined #nixos
Huddo121 has quit [Ping timeout: 248 seconds]
sbdchd has joined #nixos
ThatDocsLady has joined #nixos
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
philippD has joined #nixos
optikfluffel has joined #nixos
sbdchd has quit [Ping timeout: 268 seconds]
optikfluffel has left #nixos [#nixos]
agander has joined #nixos
reinzeldroid has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
asymmetric has joined #nixos
palo_ has joined #nixos
palo_ has quit [Changing host]
palo_ has joined #nixos
palo has quit [Ping timeout: 240 seconds]
blankhart has quit [Remote host closed the connection]
blankhart has joined #nixos
markus1189 has quit [Ping timeout: 256 seconds]
civodul has joined #nixos
<manveru> isn't it funny that even in 2018, IRC can't do p2p transfers reliably? :)
<ldlework> dcc doesn't work?
asuryawanshi has joined #nixos
asymmetric has quit [Ping timeout: 255 seconds]
<etu> manveru: Have anyone even touched the specs for that in the past 20 years? ;)
<manveru> apparently there's SDCC now, but no clue how i'd use that from irccloud ;)
* etu guess that S stands for Secure
reinzeldroid has quit [Ping timeout: 255 seconds]
asymmetric has joined #nixos
johnhamelink has joined #nixos
markus1189 has joined #nixos
__Sander__ has joined #nixos
<hyper_ch2> hmmmm, I have a git question: assuming I have a text file tracked in git. Now I want to overhaul some major parts but still leave original intact as long as the overhaul isn't done. So I branch out to e.g. "overhaul".... now I notice that the original text has some errors. I fix them directly in master and commit. But now I would also so see those fixes already in my "overhaul" branch. How to achieve that?
agander has quit [Ping timeout: 268 seconds]
<manveru> hyper_ch2: you can `git checkout master nameofyourfile`
<manveru> or `git rebase -i master`
<manveru> (make sure you committed everything first)
<hyper_ch2> manveru: could you explain in a bit more detail?
<manveru> the first copies the file over from the master branch
<manveru> the second inserts the master history before your commits in the other branch
Yaniel has quit [Remote host closed the connection]
<hyper_ch2> hmmm, I'll have to try :) thx
Yaniel has joined #nixos
lanelet has quit [Quit: lanelet]
slyfox has quit [Ping timeout: 240 seconds]
<hyper_ch2> branch names can also contain spaces and stuff right?
<hyper_ch2> (ah, no spaces)
slyfox has joined #nixos
reinzeldroid has joined #nixos
<hyper_ch2> manveru: why git checkout master filename? shouldn't you switch everything to master?
<manveru> i thought you only wanted one file
<hyper_ch2> manveru: what if change multiple files?
<manveru> then you probably want to merge or rebase instead
<{^_^}> [nixpkgs] @Mic92 merged pull request #42005 → libsixel: 1.7.3 -> 1.8.1 → https://git.io/vhi3N
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fCxm3
asuryawanshi has quit [Remote host closed the connection]
<hyper_ch2> manveru: ok, I have created a master and a branch and I'm in the branch right now.... but now i noticed I want to update something in master, so I checkout to master right. I do commit in master and then I checkout to branch again... once back in the branche, I just checkout master myfile... and then I do that rebase?
<{^_^}> [nixpkgs] @Mic92 merged pull request #42004 → libpfm: 4.9.0 -> 4.10.0 → https://git.io/vhiOK
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fChKU
<manveru> no need for rebase if you check out the file
<hyper_ch2> manveru: if changes in branch and master were made on the same file, better to use checkout or rebase?
<manveru> then i'd just checkout to avoid conflicts
<manveru> unless you want to keep some of those changes
<manveru> btw, there's #git too :)
<hyper_ch2> manveru: I just tried and didn't work as expected
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
philippD has joined #nixos
<hyper_ch2> ah... needed to commit first again :)
<hyper_ch2> thx
<Mic92> Let's say I build a set of packages and some fail to built, how can I programatically find out which packages successfully built?
<Mic92> I want to add this to my nix-review: https://github.com/Mic92/nix-review#usage
<asymmetric> i'm trying to acces a narinfo file but get a 404
<asymmetric> am i doing something wrong?
<asymmetric> just curling
<{^_^}> [nixpkgs] @Mic92 merged pull request #42235 → mate.mate-polkit: 1.20.0 -> 1.20.1 → https://git.io/fIltY
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fWntx
jackdk has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #42233 → mate.mate-power-manager: 1.20.1 -> 1.20.2 → https://git.io/fIYg1
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fWCkY
<{^_^}> [nixpkgs] @peti pushed 3 commits to master: https://git.io/fWC40
<{^_^}> [nixpkgs] @peti merged pull request #42312 → Fix Android-prebuilt ghc build → https://git.io/fCgbT
<hyper_ch2> Mic92: I want to limit arc becuase of the VMs with Qemu so that I have enough free ram/cache.... but now I get modinfo: ERROR: Module zfs_arc_max=6442450944 not found.
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fWWex
<{^_^}> [nixpkgs] @Mic92 merged pull request #42231 → mate.mate-media: 1.20.0 -> 1.20.1 → https://git.io/fki52
<hyper_ch2> Mic92: in my hardware-configuration.nix I have boot.kernelParams = [ "zfs.zfs_arc_max=6442450944" ];
<{^_^}> [nixpkgs] @Mic92 merged pull request #42229 → mate.marco: 1.20.1 -> 1.20.2 → https://git.io/fkoZt
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fW845
andreabe_ has joined #nixos
<Mic92> hyper_ch2: did you put the same line somewhere else but boot.kernelParams?
andreabedini has quit [Ping timeout: 245 seconds]
<hyper_ch2> it's commented out in boot.extraModprobeConfig
<hyper_ch2> or maybe I just need to use zfs_arc_max in the kernel Params instead of zfs.zfs_arc_max ?
asuryawanshi has joined #nixos
<Mic92> no
__monty__ has joined #nixos
<hyper_ch2> grep 6442450944 *nix --> only shows the kernel.bootParams
<Mic92> the offending line is probably still in /etc/modprobe.d/nixos.conf
<hyper_ch2> grep 6442450944 /etc/modprobe.d/nixos.conf --> doesn't return a result
asymmetric has quit [Ping timeout: 276 seconds]
marc__ has quit [Quit: Lost terminal]
asuryawanshi has quit [Ping timeout: 245 seconds]
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
MarcWeber has joined #nixos
andymandias has quit [Ping timeout: 260 seconds]
reinzeldroid has quit [Ping timeout: 260 seconds]
andymandias has joined #nixos
bbsl has joined #nixos
agander has joined #nixos
markus1189 has quit [Ping timeout: 256 seconds]
<bbsl> Im trying to use fetchGit to download a repo with git in a shell.nix (for nix-shell) but now that Iv done that Id like to build what was in said repo with pip but I cant figgure out how to access what I fetched: https://pastebin.com/00riABkR id like to run something like "pip install -e lala" in the shell hook
<{^_^}> [nixos-org-configurations] @edolstra pushed to master « Update provisioner IAM policy »: https://git.io/fWbko
philippD has joined #nixos
jtojnar has quit [Ping timeout: 256 seconds]
markus1189 has joined #nixos
<bbsl> ok I figgured it out if anyone ever wonders about this, you can refer to the attrs you assign in your mkDerivation from the shell as $attrs
blankhart has quit [Ping timeout: 240 seconds]
nschoe has joined #nixos
asuryawanshi has joined #nixos
<mpickering> Is there a way to see the "type" of a function?
reinzeldroid has joined #nixos
<mpickering> or at least how many arguments it is expecting?
<manveru> nope
<manveru> every function only takes one argument
<mpickering> ok, that's technically true
<LnL> heh, that's not a good excuse tho :p
<manveru> :D
<mpickering> I have wasted so many hours because there is no static type checking..
<manveru> i still don't think you can do a ton of introspection into functions
<mpickering> "value is a function while a set was expected" error
<manveru> yeah :(
<mpickering> not very helpful when you can't even inspect the type of anything...
phdoerfler has joined #nixos
<teto1> mpickering: I feel your pain
jtojnar has joined #nixos
<__monty__> mpickering: Dhall-to-nix is obviously the solution ; >
crmlt has joined #nixos
<bbsl> ya I wish nix el was a a bit more discoverable from a editor say or that it had some website where you could search for functions and the docs of said functions
orivej has quit [Ping timeout: 260 seconds]
<mpickering> my error was that I was overriding an attribute but gave it a different type by accident
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
crmlt has quit [Remote host closed the connection]
reinzeldroid has quit [Ping timeout: 256 seconds]
<adisbladis[m]> builtins.trace helps
blankhart has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #42321 → libdigidoc: update, remove qdigidoc → https://git.io/fWbWg
sbdchd has joined #nixos
andreabe_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
markus1189 has quit [Ping timeout: 256 seconds]
markus1189 has joined #nixos
jensens has joined #nixos
blankhart has quit [Ping timeout: 248 seconds]
blankhart has joined #nixos
sbdchd has quit [Ping timeout: 240 seconds]
der has joined #nixos
jensens has quit [Remote host closed the connection]
jaeckel has quit [Ping timeout: 268 seconds]
reinzeldroid has joined #nixos
agander has quit [Ping timeout: 276 seconds]
Guest69711 is now known as jbetz
der has quit [Client Quit]
agander has joined #nixos
markus1189 has quit [Ping timeout: 264 seconds]
markus1189 has joined #nixos
<leons> I've got 7.3 installed in my user env but need gcc 4.9 for one specific project. Therefore I'd like to start a shell like this: `nix-shell -p gcc49`. While this evaluates, I'm still stuck with the 7.3 version.
<leons> I know for nix dervivations there is overrideCC, but how is this done in a nix shell?
m0rphism has quit [Quit: WeeChat 1.9.1]
<LnL> nix-shell -p is a bit magic
mkoenig_ has quit [Remote host closed the connection]
<LnL> nix-shell -E 'with import <nixpkgs> {}; (overrideCC stdenv gcc49).mkDerivation { name = "shell-environment"; buildInputs = [ ]; }'
<joepie91> the upgrade to 18.03 seems to have broken my scroll wheel functionality somehow... but only in KDE applications... is this a known issue?
mkoenig has joined #nixos
<leons> LnL: Thanks, works like a charm!
<leons> I don't know whether I'd come up with some like this however 😕
<LnL> -p is essentially a shortcut for that and adds the arguments to buildInputs, but without a way to override the stdenv
Wharncliffe has joined #nixos
<{^_^}> [nixpkgs] @Mic92 closed pull request #42243 → libdigidoc: 3.10.1.1212 -> 3.10.4.1218 → https://git.io/ftrgV
blankhart has quit [Ping timeout: 248 seconds]
markus1189 has quit [Ping timeout: 256 seconds]
humanoyd has joined #nixos
mmercier has quit [Quit: mmercier]
mmercier has joined #nixos
<{^_^}> [nixpkgs] @Ekleog opened pull request #42322 → Opensmtpd backport fix → https://git.io/fWbRl
dhess has joined #nixos
reinzeldroid has quit [Ping timeout: 240 seconds]
mmercier has quit [Remote host closed the connection]
mmercier has joined #nixos
ericsagn1 has quit [Ping timeout: 276 seconds]
agander_ has joined #nixos
orivej has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #42323 → rancher-compose: remove → https://git.io/fWbRp
realrokka has quit [Ping timeout: 245 seconds]
mmercier has quit [Client Quit]
mmercier has joined #nixos
agander has quit [Ping timeout: 248 seconds]
fendor has joined #nixos
realrokka has joined #nixos
blankhart has joined #nixos
markus1189 has joined #nixos
toby1851 has joined #nixos
simukis has joined #nixos
TrentP has quit [Quit: ZNC - http://znc.in]
TrentP has joined #nixos
Twey has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #42274 → fwup: 1.1.0 -> 1.2.1 → https://git.io/fY1My
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fWbEn
<Twey> I haven't updated my system.stateVersion… ever
<Twey> trace: warning: The option `system.stateVersion' defined in `/etc/nixos/configuration.nix' has been renamed to `system.nixos.stateVersion'.
tzemanovic has joined #nixos
<Twey> system.stateVersion = "16.09";
<JasonGrossman> Twey: Right. That's a warning about a change of name.
<Twey> Is it safe to bump it?
<JasonGrossman> Twey: So you almost certainly want to change the name, but leave the value the same.
<JasonGrossman> Bump the name but not the value!
reinzeldroid has joined #nixos
<Twey> Does the value just stay the same forever now?
<JasonGrossman> Yes, probably.
<JasonGrossman> It *might* not, if a system database format changes, but there's no need to worry about that in advance. It's just a backstop safety thing.
<Twey> And there's no penalty associated with that?
<JasonGrossman> Right, none.
<JasonGrossman> It's only the format in which a bit of system data is stored.
<JasonGrossman> (And I think the format for 16.09 is the same as the latest format anyway.)
<Twey> I'd have assumed the state format changed for a reason
<Mic92> Twey: you can read the changelog to know what will change, if you upgrade stateVersion
<JasonGrossman> It DIDN'T change (I think). Its NAME changed.
<JasonGrossman> The warning says "has been renamed to". That's all.
<Twey> Oh, no, I know the warning is fine
<Mic92> higher stateVersions will receive different postgresql versions for example.
markus1189 has quit [Ping timeout: 268 seconds]
<Twey> It just drew my attention to the fact that this was set in 2016 and never changed
<JasonGrossman> Right.
markus1189 has joined #nixos
<{^_^}> [nixpkgs] @adisbladis merged pull request #42316 → lastpass-cli: 1.2.2 -> 1.3.1 (18.03) → https://git.io/fCVX6
<{^_^}> [nixpkgs] @adisbladis pushed 3 commits to release-18.03: https://git.io/fWbuu
<JasonGrossman> That's normal. (Good to check though.)
<Mic92> However since this usually requires manual intervention it is bound too stateVersion
blankhart has quit [Ping timeout: 248 seconds]
<manveru> anyone wanna help me package the gnome-latex editor? i got it building, but can't figure out how to let it find icons...
periklis has quit [Ping timeout: 256 seconds]
blankhart has joined #nixos
<Mic92> manveru: usually wrapGAppsHook + the default gnome icon theme does the job.
periklis has joined #nixos
<manveru> so i just add a theme to buildInputs?
<Twey> There's a comment somewhere: # You should change this only after NixOS release notes say you should
<Mic92> yes it will be picked up by wrapGAppsHook (the latter one goes to nativeBuildInputs)
<manveru> ok
<manveru> i'm using wrapGAppsHook already (or it wouldn't start)
<Twey> I don't know if some release notes have told me to change it at some point in the past
<manveru> i'll try this :)
<Twey> I'm on unstable anyway
<manveru> Mic92: thanks, that worked nicely
<LnL> Twey: yeah, you shouldn't change the value of stateVersion unless you read the changelog first and migrate things you use first
<manveru> also, it depends on latexmk, but i'm not sure which one to add to its PATH
<manveru> `texlive.combined.scheme-medium.out 572 x /nix/store/j5x6973gfc219ikc2a09n3krnnkrxh0k-texlive-combined-medium-2017/bin/latexmk`
<manveru> seems like the one
<Mic92> manveru: that one could be expanded: https://nixos.wiki/wiki/Packaging/Quirks_and_Caveats#GLib-GIO-Message:_Using_the_.27memory.27_GSettings_backend._Your_settings_will_not_be_saved_or_shared_with
<manveru> or maybe i let the user install mklatex... seems kinda huge
<Mic92> since users build there own latex distribution, this might be a good idea
<Mic92> there is texlive.combine
<manveru> hmm, ok
markus1189 has quit [Ping timeout: 255 seconds]
<manveru> maybe just prefixing PATH with scheme-small?
<manveru> that seems like the minimum
<manveru> i see other packages make it an argument you can pass
markus1189 has joined #nixos
<Mic92> I am not sure if scheme-small cover that.
tmaekawa has joined #nixos
<Mic92> also then other latex packages one needs might not be found.
<{^_^}> [nixpkgs] @Mic92 pushed to master « telegraf: 1.6.1 -> 1.7.0 »: https://git.io/fWbgz
tmaekawa has quit [Client Quit]
<{^_^}> [nixpkgs] @Mic92 pushed to master « telegraf: also remove old deps file »: https://git.io/fWbgr
chaker has joined #nixos
reinzeldroid has quit [Ping timeout: 240 seconds]
<manveru> so you can replace it
<manveru> but it works out of the box
<Mic92> but then one has to build the editor itself.
hiroshi has quit [Ping timeout: 240 seconds]
<Mic92> In R it might have only a limited responsibility
<Mic92> So the full tex package might be not required
phdoerfler has quit [Quit: Leaving.]
<{^_^}> [nixpkgs] @jtojnar opened pull request #42324 → udisks slimming → https://git.io/fWbg9
<Mic92> you also would not bind a compiler to a text editor,
<manveru> well, still seems like a bad first impression, but i guess lyx also does it that way
<manveru> texmacs has a tex argument
<Mic92> I am not quite sure, how texlive finds it packages.
<Mic92> Might be ok, if it picks it up from the profile
markus1189 has quit [Ping timeout: 265 seconds]
<manveru> i have no idea... i only use sharelatex.com :P
<manveru> last time i tried setting up latex on my machine it ended up in a big mess
<Mic92> in texmacs it is rather opt-in then added by default
<Mic92> manveru: you might https://tectonic-typesetting.github.io/en-US/ give a shot
hiroshi has joined #nixos
semihonest has joined #nixos
<manveru> that sounds awesome
andymandias has quit [Ping timeout: 264 seconds]
kreetx has quit [Ping timeout: 264 seconds]
<manveru> anyway, i'll leave it without modifying PATH for now, can always make a wrapper later
periklis has quit [Ping timeout: 264 seconds]
markus1189 has joined #nixos
andymandias has joined #nixos
<joko> Hey, is it possible to remove an attribute from a set? E.g. I have somewhere a nix file that I import and I want to remove an attribute from there
ericsagn1 has joined #nixos
kyren_ has quit [Ping timeout: 245 seconds]
<infinisil> > builtins.removeAttrs { foo = 1; } [ "foo" ]
<{^_^}> { }
<infinisil> joko: ^^
Neo-- has joined #nixos
periklis has joined #nixos
kyren has joined #nixos
oida has quit [Remote host closed the connection]
oida has joined #nixos
<{^_^}> [nixpkgs] @manveru opened pull request #42325 → Gnome-latex: init at 3.28.1 → https://git.io/fWbaA
<{^_^}> [nixpkgs] @Ekleog opened pull request #42326 → opensmtpd package and module: add nixos test → https://git.io/fWbax
nschoe has quit [Ping timeout: 276 seconds]
<manveru> alright, hope that PR is good... i'm really not sure about the buildInputs/nativeBuildInputs separation on that one
logzet has joined #nixos
markus1189 has quit [Remote host closed the connection]
markus1189 has joined #nixos
mmercier has quit [Quit: mmercier]
steell has joined #nixos
asymmetric has joined #nixos
alphor has quit [Ping timeout: 256 seconds]
Neo-- has quit [Ping timeout: 256 seconds]
alphor has joined #nixos
<infinisil> I wonder if there's a way to test whether something should be in buildInputs or nativeBuildInputs
<hodapp> anyone know much about this "FindOpenGL prefers GLVND" etc. warning at https://lpaste.net/2959919034646134784? I am running into this with 2 CMake builds, but the software appears to work okay
<etu> infinisil: I usually put it in buildInputs and then test the thingy and if it doesn't work I'll put it in nativeBuildInputs and test again. If it work I'm fine with it :p
pie_ has quit [Ping timeout: 260 seconds]
nek0 has quit [Quit: ZNC - http://znc.in]
<infinisil> Shouldn't it be the other way around?
<infinisil> Wait no, i don't see how that could work
<infinisil> Why would it break?
<hodapp> hm, I see there's libglvnd but no packages outside of mesa/bumblebee/primus/nvidia-x11 use it
sbdchd has joined #nixos
reinzeldroid has joined #nixos
blankhart has quit [Ping timeout: 255 seconds]
<etu> infinisil: I'm not having an understanding that is deep enough for me to understand the difference, but sometimes I've experienced that python packages needs propagatedBuildInputs (was the thing I was thinking about before)
<infinisil> Oh yeah that's something different
<etu> infinisil: The nativeBuildInputs I think about as "build time dependencies" and buildInputs I think about as "runtime dependencies"
raynold has quit [Quit: Connection closed for inactivity]
<infinisil> Yeah right, but you can't test that you chose the correct one without actually cross compiling afaik
kreetx has joined #nixos
pie_ has joined #nixos
sbdchd has quit [Ping timeout: 245 seconds]
<hodapp> there's no good way I can think of to test that something in nativeBuildInputs only needs to be in buildInputs, short of just trying it
steell has quit [Ping timeout: 264 seconds]
<gchristensen> sometimes you even need the same thing in both nativeBuildInputs and buildInputs
<hodapp> is nativeBuildInputs *not* available at build time?
<hodapp> otherwise why would you need both?
<gchristensen> it is, but it has to do with the architecture for which the package is built for ... I don't know, its a bit magic and I don't quite grok it.
<hodapp> huh
<gchristensen> stuff in buildInputs: provides a tool you execute during build time.
<gchristensen> nativeBuildInputs: provides a library linked to, iirc, during usage
<gchristensen> afaik
<hodapp> I guess that makes sense if you are cross-compiling
blankhart has joined #nixos
<hodapp> as buildInputs and nativeBuildInputs are then completely different architectures
<gchristensen> right
<gchristensen> and you may need to execute a bin from foopkg and also link to foopkg
<jD91mZM2> Oh crap, apparently I've mixed up buildInputs/nativeBuildInputs
<gchristensen> I might be wrong X)
<gchristensen> _I_ might have them mixed up
aexoxea has joined #nixos
<etu> gchristensen: I think it's the other way around than you wrote
<etu> think nativeBuildInput as "native" as in the host building the derivation
<gchristensen> I believe you :)
<etu> Not native as in host running it
<etu> I wish there would be better terminology for this
<etu> :D
<etu> Less confusing that way
schoppenhauer has joined #nixos
<infinisil> nativeBuildInputs = buildHostDeps
<jD91mZM2> Phheewwwwwwwwww
<infinisil> buildInputs = runHostDeps
<hodapp> o_O
bbsl` has joined #nixos
markus1189 has quit [Ping timeout: 256 seconds]
<gchristensen> everybodyJutsUsex86Deps
<etu> But the propagateBuildInputs, that's confusing me very much :D
<gchristensen> that one is no magic
<infinisil> Oh the propagated ones nobody understands I'm pretty sure
reinzeldroid has quit [Ping timeout: 264 seconds]
<LnL> lol
<etu> gchristensen: Then you explain it in plain English please :D
<infinisil> I tried to really get into the magic once, but I still didn't grok it
<jD91mZM2> propagated = All dependencies of dependencies etc also require these packages
bbsl has quit [Ping timeout: 245 seconds]
<jD91mZM2> So if x depends on y and y depends on (propagated) z, x depends on z.
<LnL> in general just don't use it
<infinisil> jD91mZM2: except it's only like 1 level deep in some cases, not transitive
<infinisil> Which is why i don't get it
<woffs> so w depending on x does not depend on z
phdoerfler has joined #nixos
<LnL> it's often used incorrectly imho
* jD91mZM2 forgets everything he thought he knew
jarlg has joined #nixos
andreabedini has joined #nixos
<infinisil> I might just have messed up in my tests though
<jD91mZM2> They should be renamed to dependencies, hostDependencies and recursiveDependencies IMO. Well, apart from the fact that they're not recursive apparently
<infinisil> I'd love for someone to put together a clear example of what propagated exactly does
<jarlg> I need some kernel module headers for C, and I'm trying `nix-shell -p linux.dev` which does provide the headers but I need to add them manually with -I to gcc. But then I get conflicting definitions with glibc.. Any suggestions?
markus1189 has joined #nixos
andreabedini has quit [Client Quit]
<{^_^}> [nixpkgs] @vcunat pushed to staging « unbound: 1.7.2 -> 1.7.3 »: https://git.io/fWb6u
<infinisil> jarlg: write a proper nix file for building your thing
reinzeldroid has joined #nixos
johanot has joined #nixos
<jarlg> infinisil: Alright. :)
blankhart has quit [Ping timeout: 255 seconds]
snape has joined #nixos
snape has left #nixos ["ERC (IRC client for Emacs 26.1)"]
johanot has quit [Quit: Leaving.]
<joko> infinisil: so, I'm trying networking.hosts = builtins.removeAttrs config.networking.hosts [ "x.x.x.x" ]; and I am obviously getting "infinite recursion encountered"
<joepie91> joko: config options are merged by a custom merging implementation, and are in principle add-only; there are a few methods like lib.mkDefault though to tell the merging implementation how to handle merges, and it's possible that there's also a 'remove an item' indicator
<joepie91> (the merging is handled on a nixpkgs level, not by Nix itself)
Wharncliffe has quit [Quit: Lost terminal]
<joko> joepie91: I am reading lib/modules.nix of nixpkgs, but I am not sure if there is a merging strategy which removes attributes that are set by other files
silver has joined #nixos
mmercier has joined #nixos
iyzsong has joined #nixos
Twey has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @NeQuissimus pushed 2 commits to master: https://git.io/fWbPW
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « linux: 4.14.50 -> 4.14.51 »: https://git.io/fWbP8
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « linux: 4.16.16 -> 4.16.17 »: https://git.io/fWbPB
toby1851 has quit [Ping timeout: 248 seconds]
toby1851 has joined #nixos
<infinisil> joko: Ah yeah you can't do that by default, the only way to get this in general is to not include the module that adds the thing you don't want
leo60228 has joined #nixos
<leo60228> Am I missing something, or is there no PDF printer in nixpkgs?
<leo60228> I can't find CUPS-PDF (which I found from googling) or cups-pdfdistiller (which I found in a tutorial, though for all I no they're the same thing).
sbdchd has joined #nixos
<leo60228> https://www.cups-pdf.de/cups-pdf-CURRENT/README is the README for CUPS-PDF, but I don't have a clue how to port it to nixpkgs.
<leo60228> Wait, can gutenprint do this?
alexteves has joined #nixos
toby1851 has quit [Ping timeout: 276 seconds]
sbdchd has quit [Ping timeout: 240 seconds]
roconnor has joined #nixos
<leo60228> I installed gutenprint, and I must be doing something wrong, because it's not showing up in CUPS.
sir_guy_carleton has joined #nixos
<infinisil> leo60228: https://nixos.wiki/wiki/Printing
<infinisil> I can't help with printing myself though, not using it
<leo60228> I set up my HP Inkjet without issues already, I'm trying to find a PDF printer. It looks like Gutenprint *might* support this, but I installed it and it's not appearing in the CUPS configuration page.
<symphorien> leo60228: the gtk printing dialog offers "print to a file"
<leo60228> i use kde. does this matter, or am i being stupid?
<symphorien> no idea
<symphorien> maybe try any gtk app to check
<leo60228> it appears
<leo60228> the thought that this is an xy problem *also* appears
<leo60228> what i actually need to do is scale down all pages in an (unevenly sized) pdf to be the same size as a given page
reinzeldroid has quit [Ping timeout: 240 seconds]
blankhart has joined #nixos
<leo60228> `gs -sOutputFile=ScaledAPG.pdf -sDEVICE=pdfwrite -sPAPERSIZE=usletter -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -dPDFFitPage APG.pdf` worked!
<leo60228> It's really slow, but it worked!
<leo60228> Actually, that might have to do with it being 338 pages
<etu> 338 pages is a whole lot of pages ;)
<{^_^}> [nixpkgs] @bkchr opened pull request #42327 → tests.plasma5: Fixes OCR in sddm by providing a custom theme → https://git.io/fl4wd
markus1189 has quit [Ping timeout: 256 seconds]
markus1189 has joined #nixos
ryantrinkle has joined #nixos
logzet has quit [Ping timeout: 245 seconds]
logzet has joined #nixos
markus1189 has quit [Ping timeout: 268 seconds]
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
<{^_^}> [nixpkgs] @lo1tuma opened pull request #42328 → nodejs: 10.4.1 -> 10.5.0 → https://git.io/flDyK
ThatDocsLady has quit [Ping timeout: 256 seconds]
hph^ has joined #nixos
hph^ has quit [Max SendQ exceeded]
hph^ has joined #nixos
markus1189 has joined #nixos
jb55 has joined #nixos
jaeckel has joined #nixos
ryantrinkle has quit [Ping timeout: 264 seconds]
logzet has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
logzet has joined #nixos
orivej has quit [Ping timeout: 248 seconds]
orivej has joined #nixos
markus1189 has quit [Ping timeout: 260 seconds]
smallville7123 has joined #nixos
markus1189 has joined #nixos
<hodapp> trying out cachix, here goes...
<hodapp> that first step is pulling a lot of files, hmm
<{^_^}> [nixos-hardware] @yegortimoshenko pushed to master « Add ThinkPad X270 profile »: https://git.io/flFYk
<{^_^}> [nixpkgs] @lsix merged pull request #42256 → gsl: 2.4 -> 2.5 → https://git.io/fYmzh
<{^_^}> [nixpkgs] @lsix pushed 2 commits to master: https://git.io/flFYO
<mpickering> What does ghcWithPackages do with the -doc output ?
<mpickering> Does it also combine those?
markus1189 has quit [Ping timeout: 240 seconds]
markus1189 has joined #nixos
jperras has joined #nixos
justan0theruser is now known as justanotheruser
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/cec9192c6d3 (from 74 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
reinzelmann has quit [Quit: Leaving]
asuryawanshi has quit [Ping timeout: 256 seconds]
andreabedini has joined #nixos
andreabedini has quit [Client Quit]
roconnor has quit [Ping timeout: 264 seconds]
reinzeldroid has joined #nixos
<bpye> Is there a good monitoring solution if I chose to run nixOS on a server? I'm using netdata currently but it seems netdata and NixOS are ideologically somewhat incompatible, though it seems you can make it work...
<{^_^}> [nixpkgs] @Mic92 merged pull request #42323 → rancher-compose: remove → https://git.io/fWbRp
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/flF3g
<{^_^}> [nixpkgs] @adisbladis merged pull request #42328 → nodejs: 10.4.1 -> 10.5.0 → https://git.io/flDyK
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/flF37
kreetx has quit [Ping timeout: 264 seconds]
reinzeldroid has quit [Ping timeout: 245 seconds]
markus1189 has quit [Ping timeout: 264 seconds]
reinzeldroid has joined #nixos
jensens has joined #nixos
jensens has quit [Remote host closed the connection]
<hodapp> wow, why does cachix installation involve building so much?
jensens has joined #nixos
andymandias has quit [Ping timeout: 260 seconds]
<Baughn> bpye: What do you need to monitor, and how soon?
<Baughn> I've been working (slowly) on getting machine statistics into a Prometheus module, but that's mostly for the sake of giving people a better overview of their own system.
<Baughn> CPU statistics, memory, SMART status, etc etc.
reinzeldroid has quit [Ping timeout: 260 seconds]
andreabedini has joined #nixos
<infinisil> The only thing I'm monitoring on my server is network traffic amount (it's really just that) with vnstat which has been working well
<Baughn> So, Prometheus (w/node-exporter) can do that. NixOS already has them, even if it isn't quite as automated as I'd like it.
<Baughn> Here's an example setup for you:
markus1189 has joined #nixos
<eisbaer-north> klar
<Baughn> infinisil: I'm running all of these as an unprivileged user. It doesn't need root access for anything I've found.
justbeingglad has joined #nixos
<Baughn> infinisil: Oh, and it has this interface, which is *useful*: https://status.brage.info/graph?g0.range_input=1h&g0.expr=go_memstats_heap_objects&g0.tab=0
<hodapp> ....wait a minute. I just did the cachix installation on another host, also 18.03, and it finished almost immediately
<hodapp> I am very confused
<Baughn> You can do almost arbitrary math in that.
<infinisil> (Baughn: I don't need any monitoring)
<Baughn> Geh.
<Baughn> bpye: ^
smallville7123 has quit [Quit: rosa]
periklis has quit [Remote host closed the connection]
periklis has joined #nixos
justbeingglad has left #nixos [#nixos]
chaker` has joined #nixos
MercurialAlchemi has quit [Ping timeout: 260 seconds]
chaker has quit [Ping timeout: 260 seconds]
bbsl` has quit [Remote host closed the connection]
lanelet has joined #nixos
<{^_^}> [nixpkgs] @obadz pushed commit from @Ekleog to release-18.03 « opensmtpd: revert non-retro-compatible 6.0.2p1 -> 6.0.3p1 upgrade »: https://git.io/flFni
<{^_^}> [nixpkgs] @obadz merged pull request #42322 → Opensmtpd backport fix → https://git.io/fWbRl
halfbit has quit [Ping timeout: 240 seconds]
<bpye> Baughn: SMART status, zpool status, zfs scrubs, backups, storage capacity,
agander_ has quit [Ping timeout: 256 seconds]
migy has quit [Quit: migy]
migy has joined #nixos
<bpye> I would obviously also want alerts
kreetx has joined #nixos
logzet has quit [Ping timeout: 276 seconds]
markus1189 has quit [Ping timeout: 260 seconds]
markus1189 has joined #nixos
sorixelle has quit [Ping timeout: 245 seconds]
<Baughn> Right. That's not implemented yet.
agander_ has joined #nixos
leo60228 has quit [Ping timeout: 260 seconds]
reinzeldroid has joined #nixos
tzemanovic has quit [Remote host closed the connection]
sbdchd has joined #nixos
chaker`` has joined #nixos
sbdchd has quit [Ping timeout: 240 seconds]
samrose has joined #nixos
chaker` has quit [Ping timeout: 248 seconds]
phdoerfler has quit [Quit: Leaving.]
sie_ is now known as sie
sie has quit [Changing host]
sie has joined #nixos
<hodapp> https://nixos.wiki/wiki/Nixpkgs#Hack_Nixpkgs why is this command just complaining that there is no default.nix in the directory I'm running in?
markus1189 has quit [Ping timeout: 268 seconds]
<symphorien> I usually do nix-build /path/to/checkout -A package
<tilpner> hodapp - nix-build '<nixpkgs>' -I nixpkgs=... -A package
<tilpner> Or just nix-build ... -A package
<hodapp> so that part of the wiki is just.. wrong? or what?
<symphorien> it might have been changed by nix2
<maurer> It certainly did not work in nix1
<maurer> I'm guessing they just forgot '<nixpkgs>' when writing the wiki >_>
<maurer> Ah, wait, I see
<maurer> their tutorial assume you are inside your nixpkgs checkout
<maurer> (there is a default.nix at the root of that)
jarlg has quit [Quit: WeeChat 1.9.1]
tzemanovic has joined #nixos
aexoxea has quit [Quit: Goodbye!]
tzemanovic has quit [Ping timeout: 240 seconds]
reinzeldroid has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @goertzenator opened pull request #42329 → add erlang-21.0 → https://git.io/flF4u
phdoerfler has joined #nixos
Ariakenom has quit [Ping timeout: 240 seconds]
<manveru> uhm, in the nixpkgs manual, wth does "This means a -1 host offset and 1 target offset from the new derivation's platforms" mean?
phdoerfler has quit [Quit: Leaving.]
markus1189 has joined #nixos
<manveru> https://nixos.org/nixpkgs/manual/#ssec-stdenv-dependencies that whole section, i don't understand half of it
<bpye> Baughn Which bit isn't done, alerts?
agander__ has joined #nixos
<bpye> I guess alerts should be easy with prometheus, I have just avoided prometheus so far as it seems pretty heavy and kinda complex
<Baughn> bpye: Mainly.
<Baughn> Nah, it's pretty easy to use.
<Baughn> But it doesn't give you a canned alerting solution, and alerting turns out to be a hard problem.
<bpye> Id be happy to just get emails or a ping over pushbullet or something
<bpye> Though they both rely on having network up
<Myrl-saki> Is there an attribute on python packaages that points to site-packages?
<Myrl-saki> cd ${jobs}/lib/*/site-packages
<Myrl-saki> Is what I'm doing right now.
<Myrl-saki> I'm not even sure if that will work.
<Myrl-saki> And it apparently did. Lol
agander_ has quit [Ping timeout: 260 seconds]
worldofpeace has joined #nixos
<Baughn> bpye: https://prometheus.io/docs/alerting/configuration/#%3Cemail_config%3E <- Emails, you can get.
<jtojnar> why are packages encouraged to use `stdenv.lib` instead of `lib` but modules the converse?
<Baughn> Assuming you have a functioning MTA on your system.
<Baughn> Or... any system.
<bpye> Baughn Yeah it looks like I should be able to just point that at gmail or fastmail or something and have it work
tenten8401 has joined #nixos
<tenten8401> Anyone know if there's a way I can evaluate nix expressions via the command line? For instance if I wanted to do "services.whatever.enable = true;" without rebuilding the entire system config?
<{^_^}> [nixpkgs] @NeQuissimus opened pull request #42330 → linux: Switch to schedutil governor → https://git.io/flF06
<Baughn> In principle. Be aware that gmail doesn't offer a true RFC-compliant interface.
<tilpner> tenten8401 - nixos-option services.whatever.enable
npmccallum has joined #nixos
<M-dpetranek> How do I raise the max open file limit for a non-root user? I can't seem to set the hard limit above 4096 with `ulimit -Hn 40960` => ulimit: open files: cannot modify limit: Operation not permitted
<tilpner> tenten8401 - If that doesn't work, nix-instantiate --eval -E 'with import <nixpkgs/nixos> {}; config.services.whatever.enable'
<M-dpetranek> If I open a root shell I can change it to whatever I want, but I don't want to run stuff as root
<Baughn> M-dpetranek: You can change the security.pam.loginLimits setting.
<tenten8401> yeah, looks like that only inspects currently running options
agander_ has joined #nixos
<bpye> Baughn Yeah I know that gmails IMAP sucks. I'm currently using an old free google apps account but I am thinking about moving to fastmail or maybe mailbox.org
<Baughn> tenten8401: There's no way to change the config settings of a running system without rebuilding the system config.
<tenten8401> ah dang
<Baughn> tenten8401: ...but everything you *don't* change is cached, so it shouldn't be a massive procedure. My own extremely heavyweight config still takes less than a minute to build.
<tenten8401> well, I left my NixOps configuration at home and forgot to gitlab it before I went
<tenten8401> and I'm gonna be away for around a week
<Baughn> bpye: I mean the mail submission protocol. It always sets the From address to that of your account, ignoring what you pass it.
xorkle has joined #nixos
<Baughn> Understandable, but not RFC-compliant.
<Baughn> tenten8401: Ah... unfortunately there's no way to recover that from a running system, unless you explicitly add it.
<tenten8401> yeah, I figured.
agander__ has quit [Ping timeout: 256 seconds]
<Baughn> You might be able to make use of nixos-option to recover some of it, but not the file per se.
<bpye> Baughn Oh i didnt know it did that, If you have a Google apps account it will still do it or can you set to other addresses under your domain?
andreabedini has quit [Quit: Textual IRC Client: www.textualapp.com]
<tilpner> Baughn - That shouldn't work
<tenten8401> Mainly just wanting to enable libvirtd to test something, but it seems that nix-env -i libvirt doesn't make a systemd service for it
<Baughn> tenten8401: If you want to avoid this in the future, borrow the first few lines of https://github.com/Baughn/machine-config/blob/master/modules/basics.nix#L8
<Baughn> bpye: Not sure, but I believe it will.
Peaker has joined #nixos
<Baughn> tilpner: Oh, you're right. It needs a configuration.nix to read.
__monty__ has quit [Quit: leaving]
kreetx has quit [Ping timeout: 256 seconds]
Ariakenom has joined #nixos
reinzeldroid has joined #nixos
<maurer> manveru: I don't fully understand it either, but my reading of it is that you can imagine it as offsets into the host-build-target list
ryantrinkle has joined #nixos
<maurer> or maybe it's ordered build-host-target?
<manveru> is that list somewhere
<maurer> I am inferring that list from how cross-compilation is done in not-nixos
<manveru> i'm now cross-compiling a gnome app to rasperryPi just to see what should be in buildInputs vs nativeBuildInputs :P
<Peaker> How do I pin nixpkgs to a version that contains ghc 8.4.3 ?
<maurer> manveru: buildInputs = software which should run on the raspberry pi or be linked in etc
<Peaker> I have "in with import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/f607771d0f5.tar.gz") { ..." in my default.nix file
<maurer> manveru: nativeBuildInputs = software which will run on the non-pi computer, but will not generate code
<bpye> I guess I'll try setting up nixos in a VM then hopefully it should be simple enough to copy my config over..
<manveru> maurer: yeah, i just have no clue which parts that are gonna be
<manveru> ideally there should be some way to figure this out after the build is finished, right?
<maurer> You can only infer some of it from the completed build
<maurer> ldd will tell you which things the resulting binary was directly linked against - anything in that list should go in normal dependencies
<maurer> manveru: Alternatively, you can try just putting everything in normal dependencies, and moving items to nativeBuildInputs, or depsBuildTarget or depsBuildBuild as appropriate
<manveru> seems like it failed as i thought :)
<maurer> (if the build completes with it in buildInputs, it's probably going to be fine)
<maurer> manveru: Are you adjusting an existing nixpkgs derivation?
<manveru> just a package i'm making atm
<maurer> yeah most of those should be regular buildInputs
<maurer> pkgconfig should be a nativeBuildInput
<manveru> yeah, i just need a fool-proof way to distinguish, which is why i'm cross-compiling to test it :)
<maurer> intltool should be a nativeBuildInput
<maurer> as should itstool
<maurer> I'm pretty sure everything else is a regular buildInput
<maurer> So, unless you're dealing with compilers/jits/plugins, the easy rule of thumb is this: Does this package run on the machine doing the build, or the machine running the software?
<maurer> If it's the machine doing the build, put it in nativeBuildInputs
<maurer> if it's the machine running the softwrae, put it in buildInputs
<adisbladis[m]> These should be nativeBuildInputs: wrapGAppsHook, pkgconfig, intltool, itstool
<adisbladis[m]> Pretty much everything else is a buildInput
<tenten8401> Anyone know if there's a way to get oVirt running under NixOS?
Twey has joined #nixos
hyper_ch2 has quit [Ping timeout: 260 seconds]
<hodapp> tenten8401: I am running it myself but would have to wait till I get home to see how I did it
adisbladis has joined #nixos
stepcut has quit [Remote host closed the connection]
<M-dpetranek> Baughn: that looks promising, but when I tried setting it I couldn't log in - after entering my password it would boot me back out to the display manager
adisbladis has quit [Changing host]
adisbladis has joined #nixos
<Peaker> does a default.nix file with "in with import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/f607771d0f5.tar.gz") {" make sense? Is this how you're supposed to use a particular version of nixpkgs?
<M-dpetranek> I set it to this: security.pam.loginLimits = [ { domain = "username"; item = "nofile"; type = "hard"; value = "unlimited"; } ];
<adisbladis> Peaker: Yes, makes sense :)
<tenten8401> hodapp: when do you think you'll be back home? I'll see if I can check back around that time
blankhart has quit [Read error: Connection reset by peer]
<Peaker> adisbladis, how do I know what URL to change to for ghc 8.4.3 ?
blankhart has joined #nixos
<hodapp> might not be till tonight (~9 hours) but I may be home sooner for a bit
<hodapp> Peaker: how is lamdu?
<Peaker> hodapp, that's what I'm trying to get to build in nix :-)
<hodapp> ooh :)
<maurer> Peaker: That works, but it might be good to make that an optional argument in your derivation, e.g. {nixpkgs ? import (builtins....
<Peaker> hodapp, it's making steady progress
<adisbladis> Peaker: You can also add a sha256 which makes the source fetching a fixed output derivation (among other things will cache the tarball differently)
<Peaker> maurer, I am a total nix noob - I don't yet know what I'm doing there, only got some contribution nix files that broke with the upgrade to ghc 8.4.3
<maurer> Peaker: You write a function with potentially inherited arguments by doing {arg, arg2, arg3}: body
<maurer> Peaker: You can use a ? to indicate a default value
<maurer> so {nixpkgs ? someexpr}: body
<maurer> will produce a function which can be passed a value for nixpkgs, but which otherwise will use someexpr to get it
agander_ has quit [Ping timeout: 245 seconds]
<Peaker> does that mean nixpkgs gets "someexpr" if unspecified?
<Peaker> ah ok
<maurer> Yeah, so basically if unspecified, you'll get your known working nixpkgs value that you've set there
reinzeldroid has quit [Ping timeout: 240 seconds]
<maurer> but if specified, it'll try to build with whatever nixpkgs was specified
<Peaker> I am not sure where I'd do that in https://github.com/lamdu/lamdu/blob/master/default.nix
srl295 has joined #nixos
<Peaker> maurer, I don't really know the nix language yet. I only look at examples and modify them
FRidh has joined #nixos
<maurer> Ah, in this case you probably don't need to bother making it overridable
<maurer> Since you are also specifying the config for it.
<Peaker> so now the question remains - how do I find the URL for nixpkgs that contains ghc 8.4.3
<hodapp> Peaker: are you just wanting to build it in nix, or get it into nixpkgs too?
sk8forether has joined #nixos
Twey has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @FRidh pushed 25 commits to python-unstable: https://git.io/flF2U
<Peaker> hodapp, just build it in nix
Twey has joined #nixos
jmeredith has joined #nixos
<{^_^}> [docker] @peti pushed 16 commits to master: https://git.io/flFVG
bebarker has joined #nixos
<{^_^}> [docker] @peti pushed to master « this code is licensed under GNU Lesser General Public License v2.1 »: https://git.io/flFV6
<{^_^}> [docker] @peti pushed 17 commits to master: https://git.io/flFVS
<hodapp> Peaker: at a guess, could you search for a git revision which uses 8.4.3 and turn that to an archive URL?
<hodapp> pinning versions isn't something I've done much of in Nix, at least not with something as central as GC
<hodapp> s/GC/GHC/
__Sander__ has quit [Quit: Konversation terminated!]
igo95862 has joined #nixos
<Peaker> hodapp, for example, the newest nixpkgs master?
<hodapp> no idea. does newest nixpkgs master use 8.4.3?
tenten8401 has quit [Ping timeout: 260 seconds]
samrose has quit [Quit: Page closed]
igo95862_ has joined #nixos
<tilpner> > haskell.compiler.ghc843.version
<{^_^}> "8.4.3"
<Baughn> Use `git log` on the appropriate directory, search for the version number?
igo95862_ has quit [Client Quit]
igo95862 has quit [Ping timeout: 276 seconds]
agander has joined #nixos
reinzeldroid has joined #nixos
asymmetric has quit [Remote host closed the connection]
asymmetric has joined #nixos
doyougnu has joined #nixos
<M-dpetranek> does anybody know why setting security.pam.loginLimits to [ { domain = "dan.petranek"; item = "nofile"; type = "hard"; value = "unlimited"; } ]; would prevent logging in?
humanoyd has quit [Quit: WeeChat 2.1]
inquisitiv3 has joined #nixos
<{^_^}> [nixpkgs] @FRidh opened pull request #42332 → llvm_6: add patch to fix missing header → https://git.io/flFif
asymmetric has quit [Remote host closed the connection]
asymmetric has joined #nixos
blankhart has quit [Ping timeout: 256 seconds]
<bebarker> Do folks that develop software that also has a derivation on nix somehow use the existing nix derivation to get an appropriate nix-shell, or is some degree of changing the nix expression warranted? Example: I see "curl" is an argument to a nix expression, but when I do nix-shell -p <my_software_package>, curl is not in the environment, which would suggest trying to manually build the software in this nix-shell would likely fail
pie_ has quit [Ping timeout: 255 seconds]
<LnL> nix-shell -p is different from a development shell
<electrocat> bebarker: curl might be a build time dependency not required at runtime
<electrocat> 'nix-shell -p <package>' only gives you everything to run <package>
endformationage has joined #nixos
iyzsong has quit [Read error: Connection reset by peer]
<bebarker> electrocat, makes sense - is there a way to also bring in the build time dependencies to the environment? seems like that would be super convenient for devs
<edef> nix-shell -f '<nixpkgs>' -A foo
<edef> `nix-shell -p foo` is just nix-shell -E 'with import <nixpkgs> {}; runCommand "shell" { buildInputs = [ foo ]; } ""'
iyzsong has joined #nixos
<edef> ie it goes into a build env for a fake package that has foo as a dependency
reinzeldroid has quit [Read error: Connection reset by peer]
reinhardt has joined #nixos
<mpickering> Is there a recommended way to distribute an overlay?
<bebarker> edef, oh awesome, looks like the -f isn't needed (or doesn't work with my nix-shell version)
halfbit has joined #nixos
mmercier has quit [Quit: mmercier]
<edef> whoops, yeah, you're right
<bebarker> edef, so maybe nix-shell '<nixpkgs>' -A singularity --pure is ideal for the actual build, though maybe leave off --pure in another terminal for dev work
<edef> yeah
reinhardt has quit [Ping timeout: 264 seconds]
<{^_^}> [docker] @peti pushed to master « README.md: manual uploading is no longer necessary »: https://git.io/flFPj
jb55 has quit [Quit: WeeChat 2.1]
jb55 has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<M-dpetranek> ok, mystery solved. for some reason you can't set the value to unlimited, I just chose a high number instead
blankhart has joined #nixos
Izorkin has quit [Read error: Connection reset by peer]
<illegalprime[m]> hey! I'm trying to get into kde dev and that means compiling a bunch of different kde packages on nixos! I thought NixOS would be awesome for this since I can keep my kde install and still compile the new stuff. For instance compiling `plasma-workspace` is fine except that all the packages I'm pulling in are older versions compared to what I need. I can change the line in CMakeLists.txt that sets the min
<illegalprime[m]> version:`set(KF5_MIN_VERSION "5.45.0")`. But that isn't super clean. What's the best way to do this?
sbdchd has joined #nixos
reinzeldroid has joined #nixos
<dmj`> Whats the build user name on osx, I’m trying to fetch a private repo, but it can’t read my ssh-config-file
Izorkin has joined #nixos
sbdchd has quit [Ping timeout: 264 seconds]
erasmas has joined #nixos
goibhniu has quit [Ping timeout: 245 seconds]
<illegalprime[m]> i guess is there a way to keep a bunch of up to date kf5 packages around separate from my main machine?
<nh2[m]> after `source env-vars`, should I be able to run just `buildPhase`? It says command not found for me
<infinisil> illegalprime[m]: What's exactly the problem/question?
<infinisil> Don't quiet get it
<infinisil> nh2[m]: buildPhase should be automatically available in a nix-shell
<nh2[m]> infinisil: I'm not in a nix-shell, I used --keep-failed, cd'd into the build directory, and ran `source env-vars`
<nh2[m]> env-vars has a a `declare -x buildPhase="ninja ....`
<illegalprime[m]> infinisil: kf5 apps in the stable channel are too outdated to be used as buildinputs for some of the latest upstream kf5 apps. Is there a way to reference packages from the unstable channel just for one derivation?
<nh2[m]> but I can't run it, I can't `eval` it, (fails with syntax error), but I can `echo $buildPhase`
<infinisil> ,unstable illegalprime[m]
jperras has quit [Ping timeout: 256 seconds]
<infinisil> ,pinning illegalprime[m]
iyzsong has quit [Ping timeout: 268 seconds]
<infinisil> I'd recommend pinning, it's much more flexible and pure
<infinisil> nh2[m]: Just typing "buildPhase" doesn't work?
<infinisil> nh2[m]: In a normal derivation it should work
<illegalprime[m]> infinisil: {^_^} : thank you!
MichaelRaskin has joined #nixos
<{^_^}> [docker] @peti pushed 2 commits to master: https://git.io/flFM8
kreetx has joined #nixos
<nh2[m]> infinisil: yes, dosn't work, `buildPhase: command not found`. I'm using the derivation for `chromium` in case you can confirm it on your side
<nh2[m]> it makes me feel a bit stupid because the `declare -x buildPhase` is right there in the file but somehow it doesn't do anything
reardencode has joined #nixos
<reardencode> anyone familiar with using node2nix with gulp?
jb55 has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @edolstra pushed to master « PULL_REQUEST_TEMPLATE.md: Ask for closure size impact »: https://git.io/flFDL
rihards has joined #nixos
asymmetric has quit [Ping timeout: 256 seconds]
grumble has quit [Quit: May your memory be the last of you]
periklis has quit [Remote host closed the connection]
masse is now known as MasseR
periklis has joined #nixos
grumble has joined #nixos
<infinisil> nh2[m]: chromium doesn't define a buildPhase, but defines the lower level buildCommand directly
matthewbauer has joined #nixos
fendor has quit [Remote host closed the connection]
<infinisil> ,ask reardencode
<{^_^}> reardencode: Just ask your question. It's the best way to know if anybody can help.
fendor has joined #nixos
reinzeldroid has quit [Ping timeout: 265 seconds]
<reardencode> in short, I have a gulp-based node project that I'm trying to get a development shell on - node2nix seems to work fine to facilitate `nix-build -A package` but when I try to do `nix-shell -A shell` gulp fails because node2nix seems to try to run the `npm rebuild` and `npm install` steps in $out without copying all of $src (including the gulpfile) over
<reardencode> trying to figure out what the intention behind the way `node2nix` generates the `shell` expression was so I can get it working.
smallville7123 has joined #nixos
fendor has quit [Ping timeout: 245 seconds]
roni has joined #nixos
jb55 has joined #nixos
kreetx has quit [Ping timeout: 248 seconds]
jperras has joined #nixos
inquisitiv3 has quit [Remote host closed the connection]
<{^_^}> [docker] @peti pushed 0 commits to 2.0.4: https://git.io/flF9A
periklis has quit [Ping timeout: 264 seconds]
stranger___ has joined #nixos
<bpye> Is there any good way of storing secrets in a nixOS config?
jperras has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @Hodapp87 opened pull request #42334 → luxcorerender: init at 2.0, embree: init at 2.17.4 → https://git.io/flFHB
reinzeldroid has joined #nixos
<{^_^}> [nix] @peti opened pull request #2243 → docker: move the docker file to https://github.com/NixOS/dockerhttps://git.io/flFH2
smallville7123 has quit [Remote host closed the connection]
dhess has quit [Remote host closed the connection]
smallville7123 has joined #nixos
<infinisil> bpye: There are ways, but not nice ones, it's a long-lasting weak point of Nix, see nix#8
<{^_^}> https://github.com/NixOS/nix/issues/8 (by edolstra, open): Support private files in the Nix store
<{^_^}> [nixpkgs] @Assassinkin opened pull request #42335 → pythonPackages.seekpath: init at 1.8.1 → https://git.io/flFHb
<infinisil> nh2[m]: Oh and btw, I can still run buildPhase in `nix-shell -A chromium` on master nixpkgs
<infinisil> It just defaults to `make` apparently
<stranger___> hi. how could i get config.* value in nix-build expression?
<{^_^}> [nixpkgs] @matthewbauer pushed to master « xcode: add 9.4 sdk »: https://git.io/flFQg
tzemanovic has joined #nixos
<stranger___> say i want to read what boot.extraModulePackages is set to in my configuration
kreetx has joined #nixos
knupfer has joined #nixos
<tilpner> stranger___ - - nixos-option boot.extraModulePackages
<tilpner> stranger___ - - If that doesn't work, nix-instantiate --eval -E 'with import <nixpkgs/nixos> {}; config.boot.extraModulePackages'
<stranger___> tilpner: thank you much!!!
tzemanovic has quit [Ping timeout: 265 seconds]
<hodapp> hm, no one bundled yafaray into nixpkgs yet either!
<hodapp> guess I could do that while I'm already doing luxcorerender & appleseed...
<tilpner> hodapp++
<{^_^}> hodapp's karma got increased to 3
<hodapp> tilpner: do you do 3D graphics? :P
<infinisil> stranger___: Or similarly `nix-instantiate --eval '<nixpkgs/nixos>' -A config.boot.extraModulePackages`
<tilpner> Hardly anymore, but I used to play around a lot with Blender and various renderers
<hodapp> tilpner: I used to do POV-Ray. I have used Blender numerous times for various things but had a hard time learning it and making it stick.
<hodapp> but the Cycles renderer that they rolled out 6-7 years ago is quite good
<tilpner> infinisil - I usually suggest the -E variant, because it's easier to massage the output into a consumable format. E.g. adding builtins.length or map (p: p.name)
<infinisil> True dat
matthewbauer has quit [Remote host closed the connection]
<tilpner> I still use Blender to edit videos and create icons c.c
<hodapp> huh, neat
<tilpner> "Why are you pathtracing a 64x64 logo?"
<hodapp> I need to pick it up again for some modeling
<tilpner> "I don't know GIMP"
<hodapp> https://imgur.com/a/Kyvm1Hh - that is a render I did from a test scene in Appleseed, and the quality of that render knocks my socks off
<hodapp> I messed with the materials a little bit but not much
<{^_^}> [docker] @peti pushed to setup-ci « travis.yml: verify that the generated image works »: https://git.io/flF5f
<tilpner> Looks good, but 2h5m :/
<hodapp> yeah, it's CPU-only
<tilpner> That's the part I don't miss
<hodapp> Cycles and LuxCoreRender both can do GPU
<infinisil> I once made a raytracer myself, hold on I'll find a pic of the result
<tilpner> Yeah, if only CUDA worked... :c
<hodapp> Lux at least uses OpenCL
<hodapp> but I'm told that cinema-quality raytracers still largely are CPU-only (and Appleseed is aiming right at that sort of thing)
<hodapp> and it partly makes sense... raytracing is very task-parallel but divergent and I think path tracing is the same deal
<tilpner> infinisil - Buggy pathtracers are pretty too: https://tx0.co/1g
<infinisil> tx0.co doesn't render png's very nice..
<{^_^}> [nixpkgs] @ookhoi closed pull request #41791 → 18.03-pcsc-lite-not-found - alioth.debian.org decommissioned: → https://git.io/vh2jW
reinzeldroid has quit [Ping timeout: 256 seconds]
<tilpner> Also limited GPU memory, has to fit all models and textures
<tilpner> infinisil - Huh? Please explain
reinzeldroid has joined #nixos
<{^_^}> [docker] @peti pushed to setup-ci « travis.yml: fix test »: https://git.io/flF5m
<infinisil> Displays as "�PNG���IHDR�����..." to me on the website
<tilpner> D:
<infinisil> I downloaded it though, looking good xD
<infinisil> Here is a result of my raytracer: https://infinisil.com/trace.jpg
logzet has joined #nixos
<hodapp> worked fine for me
<bpye> Is there a good way to deploy a nixos config remotely?
<bpye> Im currently trying to build a config for a server, or is rsyncing over the files my best bet?
<cransom> `nixos-rebuild switch --target-host <remote server>` works.
<tilpner> infinisil - Fixed it, forgot how to use my script
<bpye> cransom That requires I use nixos locally though right?
<{^_^}> [nixpkgs] @jfrankenau opened pull request #42336 → streamlink: 0.12.1 -> 0.13.0 → https://git.io/flF5l
kreetx has quit [Ping timeout: 265 seconds]
<tilpner> infinisil - Pretty! Are you intentionally saying "raytracer" instead of "pathtracer"?
<infinisil> Wait, let's go to #nixos-chat
<tilpner> bpye - nix copy, then $SYSTEM/bin/switch-to-configuration
<tilpner> Can write a small wrapper script around that, to make it neat
adisbladis has quit [Ping timeout: 240 seconds]
<{^_^}> [docker] @peti pushed to setup-ci « travis.yml: verify that the generated image works »: https://git.io/flF5g
reinzeldroid has quit [Ping timeout: 260 seconds]
<{^_^}> [docker] @peti pushed to master « travis.yml: verify that the generated image works »: https://git.io/flF5i
<{^_^}> [docker] @peti pushed 0 commits to setup-ci: https://git.io/flF5P
jperras has joined #nixos
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/68e02f8ff21 (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<stranger___> tilpner: btw what will happen if you import <nixpkgs/nixos> on non-nixos? :P
<tilpner> stranger___ - It will complain about missing nixos-config. If you provide one, it will work just fine
<stranger___> ah nice
orivej has quit [Ping timeout: 240 seconds]
<tilpner> You can build and deploy a NixOS system from a system that's not NixOS
jperras has quit [Ping timeout: 256 seconds]
<jD91mZM2> Does nixos-rebuild ever upgrade stuff even if you don't pass `--upgrade`?
<jD91mZM2> Because it just started rebuilding a bazillion packages
<tilpner> Depends on where you get packages, it can upgrade them
blankhart has quit [Ping timeout: 255 seconds]
<tilpner> E.g. if you put (import fetchTarball master {}).hello into your systemPackages
<jD91mZM2> They're from the nixos channel. Well, most of them
reinzelmann has joined #nixos
<tilpner> If they're all from nix-channel-managed sources, that should not happen
<jD91mZM2> It's been standing for hours because my internet connection is so incredibly slow currently
chaker`` has quit [Ping timeout: 240 seconds]
jperras has joined #nixos
Twey has quit [Ping timeout: 256 seconds]
<bpye> Does nixops work well with baremetal machines, it looks like it should manage the whole config remotely?
<stranger___> tilpner: cool. and what is the neat way to check whether it's a nixos distro or not? i mean to use check in shell script
<tilpner> stranger___ - if [ -e /etc/NIXOS ]; then
<tilpner> bpye - I'm not using nixops, but I've had no problems deploying to laptops (so... baremetal?)
grp has joined #nixos
<{^_^}> [nixpkgs] @ookhoi opened pull request #42337 → google-authenticator-failed-to-use-libqrencode - use libqrencode 4 → https://git.io/flFF2
Ariakenom has quit [Read error: Connection reset by peer]
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
justanotheruser has quit [Ping timeout: 264 seconds]
smallville7123 has quit [Quit: rosa]
<stranger___> tilpner: thx. is it possible to also bring nixpkgs in addition to nixpkgs/nixos to that expression? so i could access both configuration and packages in same expression
<stranger___> tilpner: ah i have pkgs. namespace there for that
kreetx has joined #nixos
<infinisil> I should make {^_^} not do that ^^
<tilpner> stranger___ - Sure, with import <nixpkgs> {}; with import <nixpkgs/nixos> {};
<tilpner> Or with import <nixpkgs/nixos> {}; with pkgs;
pie_ has joined #nixos
<stranger___> good, thx :)
<infinisil> tilpner: What client are you using that it's using "-" instead of ":" to mention nicks?
<tilpner> weechat
<tilpner> And yes, I should disable that
<woffs> infinisil, is , ok?
<{^_^}> [nixpkgs] @thanegill opened pull request #42338 → pythonPackages.ldap3: 2.4.1 -> 2.5 → https://git.io/flFNA
kreetx has quit [Ping timeout: 264 seconds]
<infinisil> woffs, Yes, woffs, , is ok :3
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/68e02f8ff21 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<woffs> infinisil, :-D
reinzelmann has quit [Quit: Leaving]
remo has joined #nixos
<{^_^}> [patchelf] @ezquat opened pull request #149 → Fix issue #66: ignore 0th section header when sorting, don't overwrite NOBITS → https://git.io/flFxf
genesis has quit [Read error: No route to host]
genesis has joined #nixos
Fare has joined #nixos
matthewbauer has joined #nixos
<remo> hello folks, I seek your help I'm kind of desperate. I have two EC2 NixOS instances in a VPC in the same subnet. nix-copy-closure (of any path) from one to the other, hangs for about 10 minutes before dying with error: unexpected end-of-file. Funny thing is, I can ssh into it no problem. Any idea what could be causing this?
FareTower has joined #nixos
Fare has quit [Ping timeout: 268 seconds]
inquisitiv3 has joined #nixos
schoppenhauer has quit [Ping timeout: 245 seconds]
<inquisitiv3> I'm reading section 4.2 in the Nix pills. Do I understand it correctly that the whitespaces surrounding the `-` character has significance?
<inquisitiv3> So is `a-b` a variable name, while `a - b` mean "subtract b from a"?
<joepie91> inquisitiv3: yeah
<LnL> remo: what version of nix?
<inquisitiv3> joepie91: Thanks!
<joepie91> inquisitiv3: or well, 'variable' isn't really the right term; 'binding', or more generically, 'identifier'
<joepie91> Nix doesn't exactly have variables as such
<PolarIntersect> hey y/all
logzet has quit [Ping timeout: 276 seconds]
<PolarIntersect> I did a ` nixos-rebuild switch --upgrade ` and now the password entry on boot for decrypting my root device doesn't work unless I use an ezternal keyboard
<inquisitiv3> joepie91: I'm not familiar with the terms "binding" and "identifier". Seen the terms used before, but I don't know what they are.
<PolarIntersect> seems like my laptop keyboard driver isn't loaded at stage 1 or something?...
<remo> LnL: on `from` machine nix (Nix) 2.0.2, on `to` machine nix (Nix) 2.0
<LnL> remo: I suspect you're running into https://github.com/NixOS/nix/issues/1681
<remo> LnL: if I nixops deploy an instance to a different VPC, it works. Also i tried nix-copy-closure of the smallest path
<PolarIntersect> Okay. Well, now I'm confused. Something must have been messed up w/ initrd. I ran sudo nix-collect-garbage -d && sudo nixos-rebuild switch --upgrade ` and it replaced initrd and fixed it
<LnL> remo: hmm ok, are you using ssh keys with command="..."?
justanotheruser has joined #nixos
<remo> LnL: no. my command is this: `NIX_SSHOPTS="-vvvvvvvvvv -i ./tsdb-rsa.pem" nix-copy-closure --to root@10.110.10.125 /nix/store/wq1wx8n3i23l35dz210as4wxm8xqphjx-microlens-0.4.8.3.drv -vvvvvvv`
<bpye> https://gist.github.com/benpye/2345a2de081bdea5a87d6368bd07ec9d Does anything look wrong with that, for some reason samba is crashing when rebuilding
reinzeldroid has joined #nixos
<LnL> I mean on the receiving end
<remo> LnL: I'm afraid I don't know what you mean
<bebarker> I admit I'm kind of a fan of https://nixos.org/nixos/packages.html#, but it doesn't seem to be updated too frequently. But, I'm not sure what the update procedure is
<{^_^}> [nixpkgs] @ookhoi opened pull request #42339 → 18.03-google-authenticator-failed-to-use-libqrencode - use libqrencod… → https://git.io/flFhV
<LnL> remo: probably not then, in authorized_keys you can make that key only usable for nix builds with command="nix-store --serve --write" ssh-rsa AAAAB3Nza... nix@builder
<joepie91> inquisitiv3: a 'binding' is the Nix term for what looks like a property of an object or a declaration in a `let ... in ...` block
<joepie91> inquisitiv3: 'identifier' is a more general term that's used between languages to mean a 'name' that can point at a variable, a property name, a binding, or whatever passes for a 'data pointer' in a given language
<bpye> nmbd doesnt give anything meaningful before it dies either
<joepie91> inquisitiv3: Nix' rules for what constitutes an identifier are a little broader than many other languages, which is where the weird a-b / a - b syntax ambiguity comes from; unlike in most other languages, identifiers in Nix can contain dashes
<LnL> remo: what if you run ssh root@foo -- nix-store directly?
<joepie91> bpye: fwiw, I use NixOps exclusively for managing non-magically-instantiated servers (ie. dedicated servers, per-month bog-standard VPSes, etc.)
<joepie91> bpye: deployment.targetHost is the magic option to point NixOps at an existing NixOS system
<PolarIntersect> :o
<PolarIntersect> joepie91: Where do you run NixOS servers?
<joepie91> PolarIntersect: as in, what providers?
<PolarIntersect> ya
<remo> LnL: looking at the debug output I get `debug1: Sending command: nix-store --serve --write` then a few more lines seemingly saying the the command was accepted, eventually `packet_write_wait: Connection to 10.110.10.125 port 22: Broken pipe`. If I run `ssh -i tsdb-rsa.pem root@10.110.10.57 -- nix-store` i get `error: no operation specified`
<inquisitiv3> joepie91: Thanks! I understand what the term "identifier" means. But your explanation of what a binding is flew little over my head.
<joepie91> PolarIntersect: currently I have 3 servers that I've NixOS-ified; all newly acquired ones, at Afterburst, Hetzner, and Ho-ost; but I have a pile of other VPSes/servers at other providers that still have to be migrated over to NixOS (and, in some cases, away from OpenVZ towards QEMU/KVM), eg. at RAM Host, RamNode, SecureDragon, OVH, anyNode, etc.
<inquisitiv3> Btw, why isn't `let` expressions allowed in the Nix REPL?
<PolarIntersect> Do those services offer nixos? or do you do some hax to make it work
<PolarIntersect> I tried making one of mine into NixOS but the only way I can maybe do it is rescue mode, and I don't know that's possible
<joepie91> inquisitiv3: so if you do `let foo = bar; in bar` then the `foo = bar` part is a binding; it 'binds' the `bar` expression to the `foo` identifier in the `let ... in` scope... similarly, when you do `{ foo = bar; }` it 'binds' the `bar` expression to the `foo` identifier in the 'attribute set' (object) that you create there
pie_ has quit [Ping timeout: 256 seconds]
FareTower has quit [Ping timeout: 264 seconds]
justanotheruser has quit [Ping timeout: 260 seconds]
<Baughn> inquisitiv3: They are. Try to write "let a = 2; in a", it'll work.
<bpye> joepie91 Thanks, that looks like it's probably what I'm wanting
<inquisitiv3> joepie91: Now I understand it.
<joepie91> PolarIntersect: varies by provider; with smaller providers you can generally just ask them to add an ISO for NixOS... that's how I've done it with Afterburst (which is a VPS). Ho-ost uses a different panel that lets you upload your own ISOs (also a VPS). for Hetzner (dedicated), I've just rented a lantronix spider for 2 hours, as the first 3 hours are free, and lantronix spiders have an 'ISO proxy' feature where it can emulate an optical drive that
<joepie91> points back at an ISO on your own system
<LnL> remo: strange, are both hosts running 2.0.2?
<Baughn> PolarIntersect: NixOps natively supports installing to Hetzner machines, although not with ZFS (last I checked). You can usually do a cross-install from a supported Distro, e.g. Debian.
<remo> no. from host is 2.0.2, to host is 2.0
<joepie91> Baughn: iirc that was a nixos-infect hack though
<joepie91> although I've been told that supposedly you should be able to netboot through their rescue system as well
<Baughn> Was it? Hum.
<inquisitiv3> Btw, what is a "attribute"? I've seen the terms "attribute sets" and just "sets", and I assume that they're the same thing?
<joepie91> and like, nixos-infect *works*, but I still prefer a clean installation :)
<Baughn> I installed NixOS by booting the Hetzner-supplied (Debian) system, and then booting the NixOS install CD through qemu with the physical disks connected to it.
<Baughn> That wouldn't work if they used UEFI, I think, but they don't.
<joepie91> inquisitiv3: an 'attribute set' is quite literally a set of 'attributes' (key/value mappings, like illustrated above); it's similar to what might be called an object or hashmap in other languages, although with Nix being immutable the characteristics are a little different
<Baughn> s/system/rescue system/
<remo> LnL: the fact that deploying to a different vpc works confuses me. What confuses me the most is that I can simply ssh into the `to` machinem but i can nix-copy-closure to it, and afaiu nix-copy-closure is just ssh
<joepie91> inquisitiv3: 'sets' are a more general concept that I don't believe Nix has, so if you see 'sets' in Nix, then it probably refers to attribute sets
<joepie91> Baughn: yeah, I think that's what somebody told me
<LnL> remo: well the commands don't seem to be failing so maybe there's an incompatibility with the protocol, I hope not tho
<nh2[m]> infinisil: thanks! How would I go about executing the `buildCommand` directly after I've sourced `env-vars`?
<joepie91> but I only found out after having used a spider :)
<LnL> remo: what about rsyncing some actual data
<inquisitiv3> Baughn: Why does the Nix pills say "Note: ignore the foo = "strval" assignment, special syntax in nix-repl" in section 4.3? Or was it introduced after the pills was written?
<joepie91> bpye: not sure if you were there when I linked it over in datahoarder, but https://git.cryto.net/joepie91/nixops-configuration may be useful as a reference
<joepie91> it's a bit messy but should be useful nevertheless
<Baughn> I'm sure Hetzner loved me. For a while I requested spiders about biweekly. :P
* PolarIntersect needs to Google NixOps
<joepie91> hehe
<joepie91> Baughn: from what I heard, they used to give you 15 minutes free instead of 3 hours
<nh2[m]> joepie91: just one data point but I've successfully converted OVH servers to NixOS with nixos-in-place (https://github.com/jeaye/nixos-in-place/issues/36)
<joepie91> I'd imagine that they eventually figured out that having a tech walk to and from the server to connect it would take more than the 15 minutes it's in use
<Baughn> I haven't used them that long, if so.
<joepie91> :p
<remo> LnL: I'll try
<joepie91> nh2[m]: right. my OVH box is a kimsufi server, and I _think_ they allow ISO upload through the panel
<joepie91> although I'm unsure
<joepie91> cross that bridge when I get there etc.
<inquisitiv3> joepie91: When you say "object" you mean a regular object in an OO-language like Java? Or does it have another meaning in the context of functional programming?>
<joepie91> inquisitiv3: more 'object' in the sense of JS
<joepie91> I think Python calls it a dict?
<joepie91> don't think Java really has an equivalent, but Java is a little weird anyway in its object model
<joepie91> although, it may have Maps
<inquisitiv3> joepie91: So an "object" is the equivalent to a dictionary in Python?
<joepie91> which are sorta kinda the same? ish?
<joepie91> inquisitiv3: in the context that I'm using it here, yes
<joepie91> terminology varies by language :P
<joepie91> 'object' also has a different definition that's more language-independent (the OOP definition) but that's not the one I'm using here
<inquisitiv3> Why can't there be a standard for these terms?
<nh2[m]> wow interesting, all messages from user `remo` don't appear in my IRC client (the matrix IRC bridge). remo, if you can read this, if you're out of memory, the issue that some other user linked you links to some PR that I made that might fix your problems
<Baughn> Java has everything. of course that includes maps.
<joepie91> inquisitiv3: well, there are standards... several of them :D
<bpye> Tempted to move from DO VPS to a Hetzner box... it's about 4x the cost but going from a 1GB RAM VPS to a box with 16 or 32GB of memory is tempting...
<LnL> nh2[m]: wut
<joepie91> inquisitiv3: more seriously, often the details vary by language, so while things may look similar between languages from a distance there can still be big differences in how you work with them
<Baughn> bpye: Look at cloud.hetzner.com too
<bpye> Hm, looks like I need to package the drivers for my printer, does NixOS have a good way to deal with RPM packages?
<remo> nh2[m]: i can read you, not sure what you mean
<bpye> Thankfully all the binaries inside are static linked
<Baughn> bpye: Of sorts. The rpm binary is packaged, so you can extract files from rpms in a reasonable manner. There are a few examples.
<inquisitiv3> joepie91: I don't know how dictionaries works, just how to use them. :P
<philippD> I'm currently using nix to build pdfs using pandoc. This works great except for one issue: I have to pull depend on texlive.combined.scheme-full which is huge. Not only does this make the first build on a system extremly small but more importantly it effectively keeps me from using travis-ci to build it. Is there a standard way of selecting what te
<philippD> xlive packages I want to use instead of using the predifend schemes?
kreetx has joined #nixos
<LnL> remo: he's referring to the memory issue I linked earlier, but as far as I can tell that's probably not the problem here
<nh2[m]> bpye: you can use use the Hetzner Cloud offerings if you want something comparable to DO
<joepie91> inquisitiv3: well, 'key-value mapping with unique keys' is probably the closest universal definition here that applies to all of the stuff I've mentioned
<Baughn> bpye: Of course the preference is to use the source code rather than the rpm, but that isn't always feasible.
<inquisitiv3> So I guess that helps me understanding attributes by not having any preconceptions regarding how they work.
<nh2[m]> oops
<nh2[m]> too late
<bpye> Baughn: Yeah unfortunately it's a stupid proprietary printer driver
<joepie91> inquisitiv3: incidentally, if you're curious about the *OOP* definition of object, have a look here: https://eev.ee/blog/2013/03/03/the-controller-pattern-is-awful-and-other-oo-heresy/
<bpye> One filter binary and a few ppds. I kinda thought about reverse engineering it before but I got bored, it's just very tedious
<Baughn> philippD: http://ix.io/1efO
<joepie91> I think I just imperatively shoved a ppd into my cups
<inquisitiv3> joepie91: So if I understand you correctly an "attribute" is a binding in an attribute sets?
<joepie91> to get the printer at $hackerspace to work
<Baughn> philippD: Something like that?
<inquisitiv3> set*
<joepie91> because I couldn't be bothered packaging it :P
<joepie91> inquisitiv3: pretty much, yeah
<nh2[m]> bpye: I use Hetzner Cloud with nixops (have a PR out there), works quite well; I first needed to do a nixos-inplace conversion upfront though. But soon that will also be a thing of the past once I or somebody else manages to use clever's kexec approach for it in nixops
<Baughn> philippD: But creating custom latex collections takes forever, so I'm using scheme-full anyway because the download is faster.
<bpye> joepie91: Kinda what I do at the moment
<worldofpeace> Hey can someone look to merge this? https://github.com/NixOS/nixpkgs/pull/42327 . It fixes the plasma5 test
justanotheruser has joined #nixos
<bpye> I like Hetzner cloud, but I like that DO has an external firewall
<inquisitiv3> joepie91: Someone needs to write an introduction to programming using Nix :P
<joepie91> inquisitiv3: I was about to link you it :)
<philippD> Baughn: hm, yeah I guess. Thank's. I don't think it's worth the effort then.
<Baughn> bpye: If you're running NixOS, it comes with a built-in firewall anyway..
<bpye> Baughn: Yeah, I don't use NixOS there yet though :)
<Baughn> philippD: If you're using latex more actively than me, it might be worth it. :P
<bpye> Want to switch my home server first, I have less moving parts. I just need samba, cups and backups to work and I can switch
<nh2[m]> bpye: what do you like about the external firewall? Does it give you some feature you're missing with nixos's firewall?
<bpye> My VPS needs PostgreSQL, Node, a reverse proxy, Miniflux... Then I can switch that.
<bebarker> what's the suggested way to enable doCheck with nix-build - I imagine this would be possible if I knew how to specify overrides to nix-build on the command line
<bpye> nh2[m]: Na, it just lets me manage firewall rules in a way that I am confident I haven't screwed it up, currently my VPS is on Ubuntu Server + Docker
<philippD> Baughn: I'm experimenting with nix and was trying to use it for every task I could. I should really spend more time on actually writing my thesis instead of playing with the buildsystem ;)
<joepie91> bpye: fwiw, firewall management is quite easy in NixOS so long as you don't need complex rules
<phry> so I just copied a random file to /etc/nixos/configuration.nix and I have no backup. do I have any hope?
<joepie91> deny-by-default
<inquisitiv3> joepie91: Thanks! I'll make sure to read it :)
<Baughn> philippD: You'll always have the option of shrinking the input set later on.
<nh2[m]> bpye: which part are you worrying about screwing up? If it's just allowing ports, I've found NixOS's quite easy, it's literally specifying the allowed port numbers in a list
<Baughn> Scheme-full is around 500MB. In some context that's nothing, in others it's a lot.
<bpye> joepie91: Yeah it seems pretty cool, kinda unfortunate that it seems a bit hit or miss if a service will have a way to punch through, though setting a port allowed is easy.
<joepie91> how do you mean?
<tilpner> philippD - You could combine Baughns suggestion with cachix to get the best of both worlds
<Baughn> cachix is what, now?
<bpye> It seems there are a handful of services with a service.xyz.openFirewall config
<philippD> Baughn: My dream is having a derivation for the pandoc latex template I'm using that exatly specifies it's dependencies
<Baughn> philippD: Doable.
* PolarIntersect realized her VPS provides a netboot nixos installer and maybe nixos-install will work in there
<tilpner> Baughn - https://cachix.org/
<nh2[m]> bpye: of course if you want to have private networking, where you have more ports allowed *between* your servers than externally, then you'll have to do a more sophisticated setup (e.g. using a vpn software like tinc)
<joepie91> bpye: ah, in the sense that it isn't consistent whether a service is exposed by default?
<nh2[m]> Baughn: cachix.org
<bpye> joepie91: Yeah exactly
<joepie91> right, that is true; I think we're currently erring on the side of caution in nixpkgs
<joepie91> but don't quote me on that
<Baughn> nh2[m]: Ah. That seems... scary.
<bpye> nh2[m] Thankfully I'm not there at the moment, though I might want to have some sort of VPN between my home server and my not-home server eventually
<Baughn> philippD: Absolutely doable, just maybe not worth the time.
<joepie91> nh2[m]: speaking of which, the tinc article on the wiki desperately needs updating :)
<joepie91> it describes a lot of manual steps that aren't necessary
<bpye> Does tinc work if one side has a non-static IP?
<joepie91> hmm.
<joepie91> I think so, but not sure
<nh2[m]> Baughn: which part is scary?
orivej has joined #nixos
<joepie91> bpye: quick google suggests it'll work so long as you don't have a ConnectTo line for the dynamically-addressed system
<joepie91> which would make sense
<joepie91> simply don't configure an address for the dynamic peer and expect the dynamic peer to connect to the static peer
<remo> LnL: rsync asks for root password and won't accept it. I think I might call it a day unless you have anything else I could try.
<nh2[m]> joepie91: I don't know the wiki article, but on https://github.com/nh2/nixops-gluster-example/ I have a fully automated nixops setup that deploys tinc (among a couple other things; one can just delete those if one is only interested in tinc)
<philippD> Baughn: I don't know. Wouldn't it be possible to scan the latex file for used packages and generate a nix expression from it? ... And call it latex2nix?
<inquisitiv3> gchristensen: I got a suggestion for solving some of my issues with the NixOS installation.
<joepie91> nh2[m]: right. I ended up figuring stuff out myself yesterday
<joepie91> lol
<Baughn> nh2[m]: The front page says you'd use a <name>.cachix.org domain.
<joepie91> I do have a working tinc setup now, though!
<LnL> remo: right, you need -o to pass ssh flags scp might be easier
<bpye> Oh, and am I better puttign nixOS on my ZFS pool as root, or is it more robust to stick NixOS on a different disk and just use the ZFS pool for application level stuff?
stepcut has joined #nixos
<joepie91> we have a whole wiki article on NixOS + ZFS I think
<Baughn> nh2[m]: What stops an intrepid cracker from using this to break into your system? I mean, maybe there is something, but...
<bpye> Yeah I saw that joepie91, it seems reasonable
<nh2[m]> all my Hetzners use this approach; I have all ports forbidden in the NixOS firewall except the external (e.g. HTTPS), and then just whitelist all ports on the tinc interface
<Baughn> remo: Are root SSH logins enabled on your system?
<bpye> I just wonder if it's possible I'll end up in a broken situation?
<remo> LnL: I can scp just fine when I pass the .pem certificate
<Baughn> remo: They're disabled for password logins by default. (And this is a good thing. Use an SSH key instead.)
<joepie91> nh2[m]: I use it for metrics collection primarily
kreetx has quit [Quit: Lost terminal]
<joepie91> but over time I might run other services over it too
<Baughn> bpye: No, root-on-ZFS for NixOS is about as safe as it can get.
<Baughn> bpye: It's well supported, and should just work.
<bpye> Baughn That's good to know. Most other distros seem to break on ZFS if you're not too careful.
<nh2[m]> Baughn: you mean "what stops somebody else to upload into your cache"? You own that `<name>` so only you can upload there
<Baughn> bpye: That's still kinda true. You do need to use mountpoint=legacy for everything.
<Baughn> nh2[m]: Imagine a DNS hijack.
<remo> Baughn: they might be. this is the ami-5e2b75b5, 18.03 nixos
<nh2[m]> joepie91: yeah that's also why I got it initially, many logging solutions just assume private networking. But now I'm happy to have it for other things as well; for example glusterfs has full SSL and client keys, but they recently accidentally coded a bug that would just allow any SSL cert to authenticate, so I was happy I was running that over tinc as well
<{^_^}> [nixpkgs] @pSub pushed to master « parallel: 20180522 -> 20180622 »: https://git.io/flbfc
<Baughn> remo: Unless password logins are explicitly enabled in configuration.nix, they're disabled.
<nh2[m]> Baughn: if you can be DNS hijacked, then using cache.nixos.org is also not safe
<nh2[m]> Baughn: of course you also still have signed packages in both cases, but I'm assuming you're meaning meaning unsafe for something that's not related directly to packages contents?
<remo> Baughn: got it
<Baughn> nh2[m]: cache.nixos.org uses cryptographic signatures on a key that's baked into the OS, though.
<nh2[m]> meaning meaning -> meaning
lanelet has quit [Quit: lanelet]
<Baughn> So the problem is solvable. I'm just wondering if it's *solved*.
<joepie91> nh2[m]: oooof.
<nh2[m]> Baughn: cachix.org uses the same system
<{^_^}> [nix] @edolstra merged pull request #2243 → docker: move the docker file to https://github.com/NixOS/dockerhttps://git.io/flFH2
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/flbfr
AluisioASG has quit [Ping timeout: 245 seconds]
<nh2[m]> if you use cachix, you sign all uploaded packages with your privkey, and you add the corresponding pubkey next to cache.nixos.org's pubkey
<stepcut> When I build the foundation library with ghc822 everything works, but when I try to build it with ghcjs, it fails because it can't find `sys/inotify.h`. Now clearly, the ghcjs code isn't actually going to be able to use inotify -- but I just need the library to build -- which it does on ubuntu
<stepcut> I am not quite sure how to track down why ghc can find sys/inotify.h but not ghcjs -- I think it is provided by libc? To add further complication, I am doing this all on darwin
AluisioASG has joined #nixos
<Baughn> philippD: Using scheme-mediun instead of scheme-full is probably a good start, by the way.
<nh2[m]> Baughn: so from what I can tell, conceptually, cachix.org should be exactly as safe as cache.nixos.org, if you trust the owner of cachix.org. Given that the owner of cachix.org has push rights to nixpkgs, the only remaining difference should be whether you think that one of cache.nixos.org/cachix.org is better operated / has less security bugs than the other
<Baughn> Righto. That's good.
<remo> LnL: thank you for your help, I'll continue the ordeal tomorrow
<Baughn> remo: Do you by chance know a Dual?
rihards has quit [Quit: rihards]
<remo> Baughn: no, don't even know if that's a name eh
rihards has joined #nixos
<nh2[m]> remo: ah finally, I can now read your messages
<Baughn> remo: Aww. Thought it might be a reference to this: https://www.youtube.com/watch?v=qu1fnhI65mk
<nh2[m]> remo: so I may not have fully kept up with your problem, but if your problem is that the 18.03 AMIs result in `out of memory` when you're using nixops, there is a solution
<nh2[m]> remo: the solution is: Tell nixops to use the 17.09 AMI for the initial deployment of the machine. In your config for the machine, configure the machine to use the version of nix from my PR (https://github.com/NixOS/nix/pull/2206). Then everything should work
<nh2[m]> remo: I will put out a branch for you, one moment
<philippD> Baughn: nope, I have tried all schemes. Full is the only one that works
<Baughn> philippD: Define "works". Any of the lesser ones may require you to explicitly add dependencies that were included in full.
<remo> nh2[m]: dont think thats the problem. I have two VPCs in my AWS. If a nixops deploy from one to the other it works, if I use the same subnetId/securitygroup then nix-copy-closure hangs. Which makes me think that either the routingtable or securitygroups are blocking, but I can ssh just fine so what gives. Even when I nix-copy-closure the smallest path it hangs. Regardless, I'm gonna try what you suggested and deploy an 17.03 ami
<philippD> Baughn: scheme-full is the only one that provides all dependencies out of the box
reinzeldroid has quit [Ping timeout: 248 seconds]
<Baughn> philippD: Yes. That's why it's called full.
hph^ has quit [Ping timeout: 256 seconds]
jensens has quit [Ping timeout: 240 seconds]
<{^_^}> [nixops] @nh2 opened pull request #972 → DO NOT MERGE: Nix 2 out of memory workaround → https://git.io/flbUL
<nh2[m]> remo: ah OK, then I missed something. What I propose should not fix hangs, only the explicit `out of memory` error from nixops. In any case, here's my workaround branch: https://github.com/NixOS/nixops/pull/972
smallville7123 has joined #nixos
<remo> nh2[m]: no problem. thanks a lot for doing the branch for me anyway
jperras has quit [Ping timeout: 256 seconds]
jperras has joined #nixos
stepcut has quit [Remote host closed the connection]
jD91mZM2 has quit [Quit: WeeChat 2.0]
<inquisitiv3> joepie91: I come up with another question regarding attributes. Are attributes only bindings in attribute sets, or are the term applicable also applicable for bindings in other situations?
pSub has joined #nixos
pSub has quit [Changing host]
pSub has joined #nixos
stepcut has joined #nixos
<joepie91> inquisitiv3: only in attribute sets
pSub has quit [Read error: Connection reset by peer]
<joepie91> inquisitiv3: I suspect that most people would even just understanding 'bindings' as the thing in `let ... in ...` blocks and not attribute sets
<joepie91> even though they are internally called bindings as well iirc
fragamus has joined #nixos
<fragamus> Hi I have a binary I downloaded and I want to open a shell with that binary on the PATH
<fragamus> There’s got to be a good way to do this
agander_ has joined #nixos
blankhart has joined #nixos
smallville7123 has quit [Quit: rosa]
<inquisitiv3> joepie91: So a binding in an `let ... in ...` block also an attribute?
agander has quit [Ping timeout: 260 seconds]
<joepie91> inquisitiv3: no, that's just a binding
fragamus has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @vbgl opened pull request #42342 → ocamlPackages.cppo: 1.5.0 -> 1.6.4 → https://git.io/flbky
periklis has joined #nixos
hph^ has joined #nixos
sk8forether has quit [Quit: Connection closed for inactivity]
periklis has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @Hodapp87 opened pull request #42343 → appleseed: init at 1.9.0-beta, osl: init at 1.9.9, seexpr: init at 2.11 → https://git.io/flbIz
<hodapp> guess I should do PRs for the other 3 packages I'm looking at, just to annoy the maintainers
aarvar has quit [Ping timeout: 248 seconds]
michiell2 has quit [Ping timeout: 265 seconds]
nuncanada has joined #nixos
nuncanada has quit [Client Quit]
<infinisil> fractal: Um, export PATH="/path/to/binary/parent:$PATH" ?
<inquisitiv3> joepie91: Thanks again
<infinisil> Oh fragmus is gone
Anthony_Bourdain has quit [Quit: Such jupe, many nick, w0w...]
<{^_^}> [nixpkgs] @LnL7 merged pull request #42329 → add erlang-21.0 → https://git.io/flF4u
<{^_^}> [nixpkgs] @LnL7 pushed 2 commits to master: https://git.io/flbqU
remo has quit [Ping timeout: 260 seconds]
<clever> infinisil: it may also be an XY problem, ./foo gives file not found
<infinisil> He'll show up again I'm pretty sure, he asked this like 3 times today
<clever> yeah
rihards has quit [Quit: rihards]
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
simukis has quit [Ping timeout: 256 seconds]
FRidh has quit [Quit: Konversation terminated!]
justanotheruser has quit [Read error: Connection reset by peer]
Ariakenom has joined #nixos
agander_ has quit [Ping timeout: 245 seconds]
<eliasp> when installing a pkg manually using `nix-env -i foo`, is it "recorded" in some file, similarly e.g. to /var/lib/portage/world on Gentoo?
<tilpner> eliasp - Yes, in ~/.nix-profile/manifest.nix
omarty has joined #nixos
<eliasp> tilpner: thx a lot
stranger___ has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @Ma27 opened pull request #42345 → python3Packages.git-annex-adapter: fix build → https://git.io/flbYj
roni has quit [Ping timeout: 256 seconds]
grp has quit [Quit: box shutting down...]
tzemanovic has joined #nixos
<worldofpeace> Who's the best person to beg for a reasonable merge? :D
tzemanovic has quit [Remote host closed the connection]
asuryawa_ has joined #nixos
pie_ has joined #nixos
asuryawa_ has quit [Remote host closed the connection]
goibhniu has joined #nixos
asuryawanshi has quit [Read error: Connection reset by peer]
justanotheruser has joined #nixos
<gchristensen> link?
<{^_^}> [nixpkgs] @Ma27 opened pull request #42346 → yabar: fix build → https://git.io/flbsn
asuryawanshi has joined #nixos
worldofpeace has quit [Quit: Konversation terminated!]
worldofpeace has joined #nixos
Wharncliffe has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #41855 → init androidenv.buildGradleApp → https://git.io/vhVMF
<{^_^}> [nixpkgs] @matthewbauer pushed 9 commits to master: https://git.io/flbsQ
asuryawanshi has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @Mic92 opened pull request #42347 → rustc: 1.26.2 -> 1.27.0 → https://git.io/flbsj
<{^_^}> [nixpkgs] @Mic92 closed pull request #42347 → rustc: 1.26.2 -> 1.27.0 → https://git.io/flbsj
<{^_^}> [nixpkgs] @Mic92 opened pull request #42348 → rustc: 1.26.2 -> 1.27.0 → https://git.io/flbGO
raynold has joined #nixos
<{^_^}> [nixpkgs] @ElvishJerricco opened pull request #42349 → Fix null deps in ghcWithHoogle → https://git.io/flbGh
xy2_ has quit [Ping timeout: 245 seconds]
smallville7123 has joined #nixos
rardiol1 has joined #nixos
Dezgeg has quit [Ping timeout: 256 seconds]
<elvishjerricco> Anybody have an example of copying files deployed with `deployment.keys` in nixops to persistent locations? I'm not too well versed in systemd
<gchristensen> I don't copy them, I refer to them in place
seanparsons has quit [Quit: ZNC 1.6.5 - http://znc.in]
seanparsons has joined #nixos
<gchristensen> but ... your use case is valid for sure
seanparsons has quit [Client Quit]
<{^_^}> [nixpkgs] @Ma27 opened pull request #42350 → pythonPackages.thumbor: 6.4.2 -> 6.5.1 → https://git.io/flbn8
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #42311 → haskell: make generic builder follow compiler’s shared config → https://git.io/fCTOc
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/flbnB
seanparsons has joined #nixos
Dezgeg has joined #nixos
Mateon3 has joined #nixos
<elvishjerricco> gchristensen: Yea they need to be persistent because these machines reboot unattended quite often. But, I just found `deployment.keys.<name>.destDir`, which seems to let you save the keys to persistent locations rather than memory. Is that correct?
<gchristensen> ln -sfn ${keyFile} ${destDir}/${name} looks like it still lives in /run
Mateon1 has quit [Ping timeout: 264 seconds]
Mateon3 is now known as Mateon1
knupfer has quit [Ping timeout: 265 seconds]
<elvishjerricco> gchristensen: Oh so the destDir is just a symlinked location? Odd
<{^_^}> [nixpkgs] @averelld opened pull request #42351 → qt5: 5.11.0 -> 5.11.1 → https://git.io/flbnP
<gchristensen> according to nix/keys.nix yeah
<elvishjerricco> gchristensen: Hm. I just tried it, and it placed a non-symlink file at destDir/name, and there is no /run/keys/name
<elvishjerricco> After an unattended reboot, the file is still present and has the right contents
<gchristensen> nice!
<{^_^}> [nixpkgs] @matthewbauer merged pull request #42327 → tests.plasma5: Fixes OCR in sddm by providing a custom theme → https://git.io/fl4wd
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/flbcD
trevthedev has joined #nixos
<trevthedev> hi
<worldofpeace> Yay the tests work again!
inquisitiv3 has quit [Ping timeout: 260 seconds]
m0rphism has joined #nixos
stepcut has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @catern opened pull request #42353 → pythonPackages.python-ptrcl: init at 1.7 → https://git.io/flbCn
<gchristensen> worldofpeace++
<{^_^}> worldofpeace's karma got increased to 2
<gchristensen> way to go!
tzemanovic has joined #nixos
smallville7123 has quit [Quit: rosa]
<{^_^}> [nixpkgs] @Mic92 opened pull request #42354 → gitAndTools.hub: remove go compiler from runtime closure → https://git.io/flbC8
asuryawanshi has joined #nixos
sbdchd has joined #nixos
asuryawanshi has quit [Ping timeout: 260 seconds]
sbdchd has quit [Ping timeout: 256 seconds]
hiroshi has quit [Ping timeout: 240 seconds]
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
trevthedev has quit [Quit: WeeChat 2.0]
yyadavalli has joined #nixos
trevthedev has joined #nixos
philippD has joined #nixos
roconnor has joined #nixos
trevthedev has quit [Quit: WeeChat 2.0]
trevthedev has joined #nixos
slyfox has quit [Quit: :)]
dmc has quit [Quit: WeeChat 2.1]
tmaekawa has joined #nixos
pie__ has joined #nixos
pie_ has quit [Read error: Connection reset by peer]
tmaekawa has quit [Client Quit]
dmc has joined #nixos
zaibitsu has joined #nixos
justanotheruser has quit [Ping timeout: 265 seconds]
ndowens04 has joined #nixos
<ndowens04> hey gchristensen
<elvishjerricco> Well that's disappointing. Removing `deployment.keys` entries does not delete the files. I guess that's a good reason for them to be in /run :/
<ndowens04> fpletz: sup? Remember me lol finally got my own place and internet again
blankhart has quit [Ping timeout: 240 seconds]
<trevthedev> Hi
igo95862 has joined #nixos
jperras has quit [Ping timeout: 265 seconds]
<ndowens04> hey to tou as well Mic92
<{^_^}> [nixpkgs] @Mic92 merged pull request #42354 → gitAndTools.hub: remove go compiler from runtime closure → https://git.io/flbC8
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/flxlD
<bpye> If I want to use a couple docker containers on NixOS to smooth my transition, is there any way to have this managed in my configuration.nix or do I need to manage these myself?
trevthedev has quit [Quit: WeeChat 2.0]
igo95862 has quit [Quit: igo95862]
<{^_^}> [nixpkgs] @Pneumaticat opened pull request #42355 → autokey: init at 0.94.1 → https://git.io/flhbJ
h0_ has joined #nixos
slyfox has joined #nixos
hiroshi has joined #nixos
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/68e02f8ff21 (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
erasmas has quit [Quit: leaving]
<infinisil> bpye: There is only an option to enable docker, other than that you have to manage it yourself
<infinisil> See first chapter here: https://nixos.wiki/wiki/Docker
stepcut has joined #nixos
asuryawanshi has joined #nixos
<h0_> Hi guys I'm trying to add a patch to my kernel but the options don't make it very clear
<h0_> from my understanding, you set boot.kernelPatches in the configuration file but the patch I'm trying to apply is a diff not a package
silver has quit [Read error: Connection reset by peer]
asuryawanshi has quit [Ping timeout: 264 seconds]
silver has joined #nixos
<{^_^}> [nixpkgs] @Ma27 opened pull request #42356 → nixos/thefuck: move init scripts to `programs.*.interactiveShellInit` → https://git.io/f8TeN
<elvishjerricco> h0_: If you have the diff in `foo.patch`, then you can do `boot.kernelPatches = [{ name = "foo"; patch = ./foo.patch; }];`
<elvishjerricco> NixOS has the easiest freakin kernel manipulation :P
jperras has joined #nixos
<h0_> Ok awesome thanks
kyren has quit [Ping timeout: 240 seconds]
<pikajude> hello
<pikajude> i'm using tinc exec $SHELL to try to enter a nix-shell for my project, but although I specify network == 2.7.0.0 in the cabal file, network 2.6 is in the build environment
<pikajude> what am i doing wrong
blankhart has joined #nixos
jperras has quit [Ping timeout: 264 seconds]
<PolarIntersect> yo
<pikajude> hi
<PolarIntersect> Does anyone here know why my bluetooth device wouldn't be detected? :o
<PolarIntersect> Bluetooth is enabled in my configuration
<PolarIntersect> Here's my configuration if it's helpful: https://gist.github.com/monokrome/586cbc21f34f5883a66cd1744c2d9e73
averell has quit [Quit: .]
halfbit has quit [Quit: WeeChat 2.1]
kyren has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer pushed to master « git: remove object file from closure »: https://git.io/f8Tva
ericsagn1 has quit [Ping timeout: 276 seconds]
kyren has quit [Remote host closed the connection]
kyren has joined #nixos
ryantrinkle has quit [Ping timeout: 255 seconds]
jackdk has joined #nixos