sphalerite changed the topic of #nixos to: NixOS stable: 19.03 \o/ https://discourse.nixos.org/t/nixos-19-03-release/2652 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018
<{^_^}> [nixpkgs] @c0bw3b merged pull request #59532 → haproxy: 1.9.3 -> 1.9.6 → https://git.io/fjmML
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fjOHh
<lordcirth> Hello, I'm trying to install NixOS (in a VM atm) with /dev/vda2 being a dm-integrity volume, with ext4 on top for /. I made /dev/vda1 a plain ext4 for /boot. The device UUID is not found during boot. What do I need to add to make the initramfs scan for dm-integrity devices?
linarcx has quit [Quit: WeeChat 2.4]
jluttine has joined #nixos
<lordcirth> I did add "dm-integrity" to boot.initrd.availableKernelModules
m0rphism has quit [Ping timeout: 255 seconds]
<wolfman154_> Can someone paste bin there syntax for setting up screen-locker in home.nix?
work_ has quit [Quit: Connection closed for inactivity]
drakonis1 has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @romildo opened pull request #59939 → deepin.deepin-mutter: fix paths related to plugins and desktop files → https://git.io/fjOQJ
<wolfman154_> I’m trying to lock screen after 10 minutes of not being used (preferably with xmonad)
drakonis_ has joined #nixos
wolfman154_ has quit [Quit: Mutter: www.mutterirc.com]
drakonis1 has joined #nixos
drakonis2 has joined #nixos
jasongro` has joined #nixos
drakonis has quit [Ping timeout: 255 seconds]
o1lo01ol1o has joined #nixos
jasongrossman has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @romildo opened pull request #59940 → deepin.deepin-wm: fix paths related to plugins and desktop files → https://git.io/fjOQq
drakonis has joined #nixos
drakonis_ has quit [Ping timeout: 252 seconds]
drakonis1 has quit [Ping timeout: 258 seconds]
thePirateKing has joined #nixos
<lordcirth> Ok, so I got 1 step further - I used boot.initrd.preLVMCommands to run 'integritysetup', but it's not in the initrd. How do I add an executable to initrd?
drakonis2 has quit [Ping timeout: 257 seconds]
jasongro` has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjOQs
<symphorien> lordcirth: make it run ${pkgs.something}/bin/integritysetup instead, I guess
<lordcirth> symphorien, the pkgs dir exists in initrd?
<symphorien> No but the initrd builder computes the closure of the initrd and patchelfs everything iirc
thc202 has quit [Ping timeout: 244 seconds]
<symphorien> You may have to read the code in nixpkgs to be sure, though
jasongrossman has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #59225 → cc-wrapper: make machine configuration configurable → https://git.io/fjtbM
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to staging: https://git.io/fjOQZ
<iceypoi> gah... i686 Linux package set can only be used with x86 family.
<iceypoi> but it won't tell me what package, lol
alienpirate5 has joined #nixos
alienpirate5 has joined #nixos
alienpirate5 has quit [Changing host]
<{^_^}> [nixpkgs] @romildo opened pull request #59941 → deepin.dde-polkit-agent: set plugins dir from environment variable → https://git.io/fjOQn
stepcut has joined #nixos
<lordcirth> symphorien, ok, I'll try it, but I doubt it will autodetect an executable name in my supplied string
<{^_^}> [nixpkgs] @Ekleog merged pull request #59880 → nixos/matrix-synapse: correct trusted_third_party_id_servers default → https://git.io/fjOl4
<{^_^}> [nixpkgs] @Ekleog pushed 2 commits to master: https://git.io/fjOQc
<{^_^}> [nixpkgs] @erictapen opened pull request #59942 → neopg: 0.0.4 -> 0.0.5.2018-11-10 → https://git.io/fjOQC
mounty has quit [Ping timeout: 246 seconds]
stepcut has quit [Ping timeout: 250 seconds]
taktoa has joined #nixos
<taktoa> anyone have experience debugging opengl / rust issues? I've written a program that indirectly uses glutin and it crashes with "both libglx and libEGL are not present" despite those libraries being in LD_LIBRARY_PATH
jluttine has quit [Ping timeout: 255 seconds]
<taktoa> to reproduce, clone https://github.com/taktoa/chemsim
<taktoa> and then inside a nix-shell run `cargo run`
<symphorien> For some reason this option is internal
<lordcirth> symphorien, I used "${pkgs.cryptsetup}/bin/integritysetup ..." and it worked! Thanks!
<iceypoi> how can I tell what package is complaining? apparently, I'm trying to install an i686 package on ARM, but I don't know which one
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
mabel has quit [Ping timeout: 245 seconds]
drakonis_ has joined #nixos
jluttine has joined #nixos
<{^_^}> [nixpkgs] @romildo opened pull request #59943 → nixos/deepin: use only one module for deepin services → https://git.io/fjOQa
rprije has joined #nixos
lielazivee has joined #nixos
nD5Xjz has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #59435 → nixos: fix system-tarball → https://git.io/fjmun
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjOQr
<{^_^}> [nixpkgs] @romildo closed pull request #59544 → nixos/dde-api: init → https://git.io/fjmD4
o1lo01ol1o has joined #nixos
drakonis has quit [Ping timeout: 258 seconds]
mwilsoncoding has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @romildo closed pull request #59560 → nixos/deepin-turbo: init → https://git.io/fjmyM
freeman42y has quit [Ping timeout: 258 seconds]
hellrazo1 has joined #nixos
hellrazor has quit [Ping timeout: 246 seconds]
lielazivee has quit [Ping timeout: 245 seconds]
mounty has joined #nixos
<lordcirth> Hmm, if I give the VM 1GB of RAM, the installer works fine, but 'nix-env -i cryptsetup' fails
Supersonic has quit [Ping timeout: 268 seconds]
nD5Xjz has joined #nixos
myskran has joined #nixos
Supersonic has joined #nixos
tomberek has joined #nixos
<DigitalKiwi> needs moar ram
buffet_ has joined #nixos
buffet has quit [Ping timeout: 244 seconds]
<DigitalKiwi> or swap
alexherbo2043 has quit [Quit: The Lounge - https://thelounge.chat]
<parsnip> lordcirth: what's the exact message about memory?
<parsnip> *error message
<lordcirth> parsnip, "error: unable to fork: cannot allocate memory"
<lordcirth> I get that when running "nix-env -i tmux" with 2GB of RAM. Adding 1GB swap works for tmux, at least
<Ashy> nix requires a lot of memory, i consider it a bug but it's probably a nightmarish amount of work to change that
<lordcirth> I see a number of PRs and issues detailing progress in that regard, but yes, it's still a lot.
<Ashy> the workaround is either to add memory, add swap or you can remotely build the config and push it to the vm
<Ashy> nixops is probably easiest to do that
<lordcirth> Well, in this case I'm using the VM for testing; I don't (currently) intend to deploy a bunch of NixOS VMs
<Ashy> ah yeap, easiest fix would be to add ram
<Ashy> or spin up a cloud instance if you don't have enough for the local vm
<Ashy> or buy more ram, prices seem to have come back down to reasonable levels recently
stepcut has joined #nixos
<lordcirth> I have 32GB RAM here on my PC, I just found it odd that NixOS couldn't really function headless with 2GB.
<parsnip> yeah, such is high level languages
<parsnip> similar for building haskell programs
<DigitalKiwi> my pi only has 1gb ram and a 2gb swap file and it's slow sometimes obviously but usually works
<lordcirth> DigitalKiwi, how's the ARM build working for you?
mabel has joined #nixos
<DigitalKiwi> don't even get me started hahaha
<DigitalKiwi> i built my own
<lordcirth> lol. I was considering the Odroid HC2
<lordcirth> Ok, so I ran 'nix-env -i neovim' but it doesn't show up as 'vi', 'vim', or 'neovim'. How do I get it in my PATH?
<DigitalKiwi> anyway it works fine i just make things harder on myself
<lordcirth> DigitalKiwi, why'd you build it yourself? Trying to make it smaller?
alexherbo2043 has joined #nixos
<Ashy> lordcirth: is it `nvim`?
<taktoa> figured it out: I needed to add libGL_combined to my nix shell
taktoa has quit [Quit: taktoa]
<DigitalKiwi> for fun and learning
<lordcirth> Ashy, ah, you're right, it is! On Ubuntu installing it makes 'vi' link to it
<DigitalKiwi> and i don't have a monitor
jasongro` has joined #nixos
sindrip has joined #nixos
romildo has quit [Quit: Leaving]
jasongrossman has quit [Ping timeout: 246 seconds]
iceypoi has quit [Quit: WeeChat 2.4]
jasongro` has quit [Ping timeout: 264 seconds]
silver has quit [Quit: rakede]
alex``` has joined #nixos
kaliumxyz has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
<kaliumxyz> ping
<ToxicFrog> So I have a few generations in nix-env --list-generations. How do I make one of them a gc root so that it is never collected?
<gchristensen> they're all gc roots and won't be garbage collected unless you delete the generation
<ToxicFrog> Right; I want to make sure that nix.gc.automatic won't collect it.
ng0 has quit [Quit: Alexa, when is the end of world?]
<gchristensen> you're safe :)
winem_ has joined #nixos
<ToxicFrog> Ok, in that case, what is the mechanism that causes only the last few generations to be kept when system.autoupgrade is enabled?
<ToxicFrog> Because I want to disable it or, at least, cause one specific generation that is known to be good to not be removed
<gchristensen> I don't know of any mechanism which deletes generations due to autoupgrade
<gchristensen> which is a bit concerning, since it'll eat your space
<ToxicFrog> gchristensen: found it
<gchristensen> oh?
<ToxicFrog> nix.gc.options can include --delete-older-than, which will invoke nix-env --delete-generations as needed
<gchristensen> ah, sure
<ToxicFrog> So it is nix.gc that causes it, it just doesn't use the nix-gc command for it
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<ToxicFrog> And I can't find a way to "pin" specific generations so they become exempt from that
<gchristensen> you want to do this by hand?
<DigitalKiwi> ToxicFrog: hi :3
jmgai_ has joined #nixos
<ToxicFrog> gchristensen: If necessary
<gchristensen> ToxicFrog: nix-store -r $(readlink /nix/var/nix/profiles/system-18-link) --add-root /home/grahamc/system-18 --indirect
<ToxicFrog> Like, what's happened here is that I have a system with generations 39, 40, 41, and 39 boots, and 41 doesn't, and I want to make sure 39 sticks around
<gchristensen> this will make it undeletable by --delete-older-than
<gchristensen> interesting
<gchristensen> NixOS will never delete the system you booted
<gchristensen> clever: will --delete-older-then skip deleting a profile which you booted?
<ToxicFrog> That is good to know
<gchristensen> (see /run/booted-system/)
<ToxicFrog> So perhaps add-root is unnecessary here! Thank you!
<gchristensen> well here is the big question in my head
<gchristensen> you booted 18, you're on 19, will `nix-collect-garbage --delete-older-than` delete the profile entry for 19?
<gchristensen> you booted 18, you're on 19, will `nix-collect-garbage --delete-older-than` delete the profile entry for 18?
jmgai has quit [Ping timeout: 255 seconds]
<gchristensen> because if yes, and you then install the bootloader, it won't have a boot entry for 18 despite not having been GC'd
<sindrip> I'm writing an overlay, and I am changing the source. The original package uses fetchFromGithub, I am a bit confused as to how I should reach for such utility functions in an overlay nix file (what is the correct way that is)
<sindrip> for context this is what I am working with currently: https://pastebin.com/JzEg40VW
<ToxicFrog> Right, and I want it to keep the boot entry and the underlying store paths no matter what
kvda has joined #nixos
<alienpirate5> I'm currently writing a nix overlay for tilp and gfm
<alienpirate5> Here's a link to the git repo: https://github.com/dkudriavtsev/tilp-nix
<alienpirate5> I'm having trouble building gfm and can't understand why
<alienpirate5> Can someone help me debug it?
drakonis has joined #nixos
jasongrossman has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drakonis_ has quit [Ping timeout: 250 seconds]
drakonis_ has joined #nixos
kleisli has joined #nixos
<kleisli> hey all, sorry if this is a silly question
<kleisli> i want to create a python dev environment with a pypi package that's not in python-modules in nixpkgs
<kleisli> what's the best way to do this?
drakonis has quit [Ping timeout: 258 seconds]
drakonis has joined #nixos
drakonis1 has joined #nixos
<Ashy> it's not the best way but last time i was in that situation i spun up an ubuntu vm after struggling and failing to get it working with nix :/
Ariakenom has quit [Quit: Leaving]
<thePirateKing> a slightly bettery way than that is to put a pipenv in your nix-shell
<thePirateKing> works just fine
drakonis_ has quit [Ping timeout: 258 seconds]
<thePirateKing> theres likely a much more elegant way than having an extra layer lol
<thePirateKing> but pipenv is nice
<thePirateKing> kleisli
kreisys has joined #nixos
drakonis has quit [Ping timeout: 264 seconds]
<kleisli> ty
<thePirateKing> if you find a better solution please ping me :)
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<Ashy> the best fix will be to learn how to package pip packages, i just ran out of time last time
<Ashy> there's a fair amount of info here: https://nixos.wiki/wiki/Python
<dsx> Is there a good reason why networking.nameservers are completely ignored if unbound is running locally?
<alienpirate5> question, what should i do if my question is completely ignored?
<thePirateKing> alienpirate5, I think wait a bit and try again
<alienpirate5> It's been half an hour, can I repost it?
<thePirateKing> idk
jasongrossman has quit [Ping timeout: 245 seconds]
mexisme has joined #nixos
<thePirateKing> wait till like there is some activity by people who dont seem clueless like me lol
<alienpirate5> I'm currently writing a nix overlay for tilp and gfm. Here's a link to the git repo: https://github.com/dkudriavtsev/tilp-nix I'm having trouble building gfm and can't understand why. Can someone please help me debug it?
qualiaqq has joined #nixos
<Ralith> you may have better luck attracting interest if you concisely describe the specific problem you're having
<Ralith> few people are going to be inclined to go clone some random git repo just to see if your problem is maybe something they know anything about
<alienpirate5> Ok
drakonis has joined #nixos
<alienpirate5> I am getting errors during the build, like this one:
<alienpirate5> > /nix/store/za7z01w97i0zk974cc3vjmn799dnmn2d-libticalcs-unstable-2019-01-04/include/tilp2/ticalcs.h:29:10: fatal error: ticables.h: No such file or directory
<{^_^}> error: syntax error, unexpected ':', expecting ')', at (string):252:99
<alienpirate5> where is this?
jasongrossman has joined #nixos
<alienpirate5> I looked at the build commands and it seems like libticalcs is not being included for some reason?
<{^_^}> [nixpkgs] @samueldr opened pull request #59945 → nixos/virtualbox: Fixes configuration to evaluate → https://git.io/fjO72
<alienpirate5> i mean it's not in the include path
<Ralith> what're the output files of the libticables build?
<alienpirate5> let me check
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
alex``` has quit [Ping timeout: 246 seconds]
kreisys has quit [Ping timeout: 244 seconds]
<alienpirate5> Ralith: http://ix.io/1DXb
<alienpirate5> oh heck you use matrix
<Ralith> alienpirate5: from an environment where libticables is available, what does `pkg-config ticables2 --cflags` output?
<Ralith> you're sure you were in the correct environment?
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/77916109edd (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<alienpirate5> Ralith: I did run `nix-shell -p libticables`
<Ralith> I don't think that counts, confusingly
<alienpirate5> then what would?
<Ralith> try the build environment of one of the libs that depends on it
<alienpirate5> Ok
<alienpirate5> How do I enter a build environment again?
<{^_^}> [nixpkgs] @samueldr merged pull request #59945 → nixos/virtualbox: Fixes configuration to evaluate → https://git.io/fjO72
<{^_^}> [nixpkgs] @samueldr pushed 2 commits to master: https://git.io/fjO76
<Ralith> `nix-shell <expr> -A <path>`
<alienpirate5> Also how do I stop the bot's embeds from being auto expanded?
<alienpirate5> sadly enough that command means nothing to me
<Ralith> riot has a toggle in the per-room settings accessed via the gear icon next to the topic
<alienpirate5> Just did it, thanks
<Ralith> `<expr>` is the path to a nix expression that contains the package you want to diagnose; `<path>` is the attribute path of that package
<alienpirate5> attribute path?
<Ralith> if `<expr>` is a file that contains { foo = ...; }` then you might do `-A foo`
<Ralith> often `<expr>` is the literal string `<nixpkgs>`, e.g. if you have this repo configured as an overlay in your config.nix
<Ralith> unfortunately it's kind of a pain to debug overlays in-place
<alienpirate5> makes sense
o1lo01ol1o has quit [Remote host closed the connection]
<alienpirate5> so I ran `nix-shell <nixpkgs> -A tilp` since tilp depends on libticables
<Ralith> that should do nicely
<kleisli> i'm trying to use python36.pkgs.fetchPypi, but I can't figure out how to get the sha256 for the pypi package i want
<Ralith> modulo shell escaping issues with the angle brackets
o1lo01ol1o has joined #nixos
<Ralith> ,tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<Ralith> kleisli: ^
<thePirateKing> oh wait that is way easier than the way i do things
<kleisli> hm, i was calling nix-shell to build the derivation and it doesn't tell me what it expects the hash to be
<Ralith> alienpirate5: so what's pkg-config print in that env?
<kleisli> nevermind i'm bad at reading
<alienpirate5> -I/nix/store/shpzsn3w4vdjqn2xpzr0x831ml6aqf7i-libticables-unstable-2019-01-04/include/tilp2
<alienpirate5> looks like tilp's env is different from gfm's for some reason
<alienpirate5> one second
<alienpirate5> ...no, it works in gfm's env as well
<Ralith> sounds like gfm's build system isn't querying pkg-config, then
<alienpirate5> it clearly is, because it can find all the other libraries it needs, like ticonf
<alienpirate5> ticonv*
<alienpirate5> it's just ticables that it can't find
o1lo01ol1o has quit [Ping timeout: 268 seconds]
<Ralith> perhaps it is only failing to query pkg-config for ticables
<alienpirate5> that is true
<alienpirate5> that is exactly what is happening
o1lo01ol1o has joined #nixos
<alienpirate5> how do i patch a file with nixos?
<alienpirate5> how do i patch a file with nix*
<Ralith> you can supply a list of patch files in the `patches` argument to `mkDerivation`
<alienpirate5> Ok
<alienpirate5> What should these patch files look like?
<Ralith> the output of `git diff` works well
<alienpirate5> I know how to generate them, what should the paths in them be?
<alienpirate5> Oh, I can just use git diff
<alienpirate5> got it
<Ralith> that's how I always do it, anyway
<Ralith> wrangling patch files by hand for me involves a lot of brute force :P
mexisme has quit [Ping timeout: 240 seconds]
stepcut has quit [Remote host closed the connection]
gagbo has quit [Ping timeout: 246 seconds]
stepcut has joined #nixos
<alienpirate5> I was just going to use regular `diff`
stepcut has quit [Remote host closed the connection]
<alienpirate5> Apparently my patch did not work.
<alienpirate5> I can pastebin it
<Ralith> what does "not work" mean
<alienpirate5> http://ix.io/1DXh
<alienpirate5> I am still getting the same build error
<Ralith> I am pretty sure you need to actually read from those new variables you introduced for them to do anything
<Ralith> grep around for wherever TICALCS_CFLAGS and TICALCS_LIBS are used and imitate them
<alienpirate5> Ok
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
<alienpirate5> Did that, building now
<alienpirate5> Same error...
<alienpirate5> Oh didn't add it in one spot
stepcut has joined #nixos
<alienpirate5> IT BUILDS
<alienpirate5> Ralith: thank you!
<alienpirate5> and it runs!
<Ralith> \o/
<alienpirate5> now to figure out how to set gtk2 theme
* alienpirate5 uploaded an image: image.png (30KB) < https://matrix.org/_matrix/media/v1/download/matrix.org/fATsbbDXsdSBUkkRuXoNDTRp >
<Ralith> I like home-manager's gtk module for that
<alienpirate5> because atm it looks like this
<alienpirate5> I've been meaning to start using that
<alienpirate5> thanks for the tip
wfranzini has quit [Remote host closed the connection]
<Ralith> the alternative is manually synchronizing poorly documented gtk dotfiles with your nix environment, which is no fun at all
<Ralith> I have `gtk = { enable = true; theme = { name = "Breeze-Dark"; package = pkgs.breeze-gtk; }; };`
<{^_^}> [nixpkgs] @lightbulbjim opened pull request #59946 → hyperrogue: add .desktop file and icon → https://git.io/fjO79
<alienpirate5> it's that easy?
<alienpirate5> might as well switch now lol
<siraben> What's the equivalent of /usr/share/zoneinfo?
stepcut has quit [Remote host closed the connection]
<siraben> In NixOS
<Ralith> the easiness is the point, yeah ^^
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
<Ralith> siraben: what are you trying to do?
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
drakonis has quit [Quit: WeeChat 2.4]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
<alienpirate5> now is there a way to declaratively specify what overlays you want and where to get them?
stepcut has joined #nixos
wfranzini has joined #nixos
stepcut has quit [Remote host closed the connection]
<Ralith> alienpirate5: see also the `nixpkgs.overlays` option documented in `man home-configuration.nix` if you have home-manager set up
<alienpirate5> I'm trying to get them to be part of the system configuration
<Ralith> `man configuration.nix` then :P
<alienpirate5> ok
<alienpirate5> i didn't know that existed :/
<Ralith> note that this will not affect your user environment, however
<alienpirate5> that's fine, i want them to be installed in the system environment
o1lo01ol1o has quit [Remote host closed the connection]
<siraben> Ralith: find timezones
<siraben> something like that
<Ralith> siraben: the documentation for the `time.timeZone` NixOS option cites https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
<siraben> Ralith: is that list built-in somewhere?
<DigitalKiwi> siraben: i just do tzselect and then cancel when i find the one i want
<Ralith> if you want to know where it comes from, you can look at the implementation in nixpkgs
<siraben> Ralith: DigitalKiwi I see. Thanks!
<clever> gchristensen: --delete-older-then will delete the booted profile, but booted-system itself is a root, so it cant actually GC it after deleting the generation
<siraben> DigitalKiwi: wow that's a lot of timezones you keep track of
<clever> Ralith: i just run tzselect in a shell
<alienpirate5> Is there just a configuration entry where I can clone an overlay from git
<Ralith> `pkgs.fetchGit`
<Ralith> but prefer `fetchFromGitHub` if applicable
* DigitalKiwi knows people
<Ralith> they work the same way in configuration.nix as they do elsewhere
<alienpirate5> but if it's an overlay, how do I add it
<Ralith> you put it in your nixpkgs.overlays list
<alienpirate5> I can just `nixpkgs.overlays = [ (pkgs.fetchFromGitHub {...}) ];`?
<Ralith> yep
<alienpirate5> Makes sense
<Ralith> nix is magic like that
<alienpirate5> Trying
<alienpirate5> that's amazing actually
<alienpirate5> The option value `nixpkgs.overlays.[definition 1-entry 1]' in `/etc/nixos/configuration.nix' is not of type `nixpkgs overlay'.
<alienpirate5> help
<Ralith> oh, sorry, you need to wrap it in `import`
<alienpirate5> ah
<alienpirate5> cannot coerce a built-in function to a string, at /etc/nixos/configuration.nix:246:4
<Ralith> god I hate that error
<alienpirate5> ah, used too few parentheses
<alienpirate5> it seems to be working
<alienpirate5> yay
<alienpirate5> now how would i go about getting these packages into nixpkgs?
<alienpirate5> Is there a way to add udev rules?
<alienpirate5> Through a package
<{^_^}> [nixpkgs] @strager opened pull request #59947 → oraclejdk: use working mirror for download → https://git.io/fjO7h
<Ralith> add the package to the `udev.packages` NixOS option
<alienpirate5> ?
<Ralith> assuming the package places the rules in the usual path beneath its prefix
<alienpirate5> It doesn't
<Ralith> then fix it til it does :P
<alienpirate5> it's not udev aware, it accesses devices through libusb
<Ralith> for example, libu2f-host installs `$out/lib/udev/rules.d/70-u2f.rules`
varjag has joined #nixos
<alienpirate5> can i manually add a udev rules file in the package?
<Ralith> it's okay to add files wholesale to a package if it makes sense
<Ralith> as a patch, or manually in `postInstall` or similar
o1lo01ol1o has joined #nixos
sindrip has quit [Quit: WeeChat 2.4]
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<lordcirth> I see that in the nixpkgs default.nix for ceph, "fetchgit" is given a sha256sum of the git tag. But git uses sha1. How exactly is this sha256sum calculated?
<gyroninja> Is there a good way to install nixos over my previous operating system (Gentoo)? Would my best bet be booting the liveusb and putting the old root into a folder and then start installing nix? Do you think that would cause any problems?
<gyroninja> *into folder on the same partition I'm installing nixos into
<thePirateKing> you could try something like this https://github.com/jeaye/nixos-in-place
sb0 has joined #nixos
<Ralith> lordcirth: for one thing, nix hashes aren't in base16
<Ralith> they also don't include git metadata
<lordcirth> Ralith, so, what command do I need to run on the git repo to get the correct hash?
* Ralith shrug
<Ralith> ,tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<lordcirth> {^_^}, ok, thanks!
<Ralith> > botsnack
<{^_^}> undefined variable 'botsnack' at (string):252:1
wfranzini has quit [Remote host closed the connection]
<Ralith> aw
wfranzini has joined #nixos
<DigitalKiwi> {^_^}++
<{^_^}> {^_^}'s karma got increased to 156
<kleisli> @{^_^}, i'm still having trouble getting the sha expected by python36.pkgs.fetchPypi
<gyroninja> thePirateKing: Maybe I'm misunderstanding it but that does not look very clean
<kleisli> nix gives me the hash it's expecting for my derivation, but I think this is different than the one it expects for fetchPypi
<gyroninja> or maye the description is weird
<gyroninja> It looks like it installs it in /nixos, rather than installing it in root like normal
<kleisli> here is my shell.nix if anyone can help: https://paste.ee/p/sFUxu
<thePirateKing> ah i see what you are saying
<thePirateKing> yeah i think your way makes sense too, why are you trying to preserve your old root folder though?
<thePirateKing> jw
<gyroninja> because it contains my /home too
<thePirateKing> ah
<thePirateKing> ngl i am not one with much expertise on preserving folders lol
<gyroninja> I just wanted some sort of confirmation that the installer wouldn't do something crazy
<gyroninja> I assume it would just leave it alone as long as it wasn't named something like bin or another conflicting name
<thePirateKing> I believe your assumption i correct (95%)
<thePirateKing> is
jmeredith has quit [Quit: Connection closed for inactivity]
<kleisli> nevermind, figured it out
xkapastel has joined #nixos
mexisme has joined #nixos
endformationage has quit [Ping timeout: 268 seconds]
b has quit [Quit: Lost terminal]
kreisys has joined #nixos
jerrytgarcia has quit [Quit: jerrytgarcia]
<alienpirate5> {^_^}++
<{^_^}> {^_^}'s karma got increased to 157
<alienpirate5> is the bot written in nix?
tigos2 has joined #nixos
mexisme has quit [Ping timeout: 259 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4b201f6c579 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
kreisys has quit [Ping timeout: 268 seconds]
palo1 has joined #nixos
palo has quit [Ping timeout: 246 seconds]
palo1 is now known as palo
jrn has joined #nixos
linarcx has joined #nixos
<kleisli> i wrote a shell.nix that uses python35.withPackages
<kleisli> it's taking a ton of time to run some tests, is there any way to avoid this?
linarcx has quit [Ping timeout: 246 seconds]
linarcx has joined #nixos
InFlames has joined #nixos
retrry[m] has joined #nixos
linarcx has quit [Ping timeout: 255 seconds]
gagbo has joined #nixos
linarcx has joined #nixos
varjagg has joined #nixos
varjag has quit [Read error: Connection reset by peer]
m0rphism has joined #nixos
linarcx has quit [Ping timeout: 268 seconds]
mexisme has joined #nixos
linarcx has joined #nixos
ixxie has joined #nixos
mexisme has quit [Ping timeout: 268 seconds]
tigos2_ has joined #nixos
linarcx has quit [Ping timeout: 255 seconds]
linarcx has joined #nixos
tigos2 has quit [Ping timeout: 255 seconds]
linarcx has quit [Ping timeout: 244 seconds]
linarcx has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @joachifm merged pull request #53038 → riko4: init at 0.1.0 → https://git.io/fhI5o
<{^_^}> [nixpkgs] @joachifm pushed 3 commits to master: https://git.io/fjOdg
kvda has joined #nixos
ixxie has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @joachifm merged pull request #53863 → osxfuse: init at 3.8.3 → https://git.io/fhnVE
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/fjOd2
<{^_^}> [nixpkgs] @Izorkin opened pull request #59949 → Update nginx modules → https://git.io/fjOda
<{^_^}> [nixpkgs] @joachifm merged pull request #59605 → git-annex-remote-dbx: init at 1.0.3 → https://git.io/fjmNH
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/fjOdV
tigos2_ has quit [Quit: Leaving]
kreisys has joined #nixos
slyfox has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
<{^_^}> [nixpkgs] @joachifm merged pull request #59932 → startx: fix typos for startx option description → https://git.io/fjOSL
<{^_^}> [nixpkgs] @joachifm pushed commit from @mlvzk to master « nixos/display-managers/startx: fix typos for startx option description »: https://git.io/fjOd6
linarcx has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @joachifm merged pull request #53087 → lxqt-archiver: init at 0.0.96 → https://git.io/fhLMu
knupfer has joined #nixos
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/fjOdX
knupfer has quit [Ping timeout: 245 seconds]
jomik has joined #nixos
<siers> wouldn't it be cool if nix or something knew how to fix sha hashes in source?
ATuin has joined #nixos
jomik has quit [Client Quit]
Ariakenom has joined #nixos
zupo has joined #nixos
ATuin has quit [Quit: WeeChat 2.1]
hoijui has joined #nixos
kreisys has quit [Ping timeout: 245 seconds]
tomberek has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to master: https://git.io/fjOdx
fendor has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed to release-19.03 « Merge #58631: djview: fix mozilla plugin path »: https://git.io/fjOdp
jomik has joined #nixos
<jomik> Anyone here using light-locker? Where are you starting the light-locker daemon?
fendor has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @Izorkin opened pull request #59950 → nginxMainline: 1.15.10 -> 1.15.12 → https://git.io/fjOdh
varjagg is now known as varjag
winem_ has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @vcunat merged pull request #58631 → djview: fix mozilla plugin path → https://git.io/fjkPW
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ng0 has joined #nixos
leat has quit [Quit: WeeChat 2.3]
phreedom_ has quit [Remote host closed the connection]
phreedom has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jomik has quit [Quit: WeeChat 2.4]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
ng0 has quit [Quit: Alexa, when is the end of world?]
Fulgen has joined #nixos
mexisme has joined #nixos
Jetien has joined #nixos
__monty__ has joined #nixos
romildo has joined #nixos
gagbo has quit [Ping timeout: 255 seconds]
qualiaqq has quit [Remote host closed the connection]
<coderobe> hrm, nixos-unstable-small doesn't build
<kaliumxyz> how do you guys run backup jobs on your nixos?
<{^_^}> [nixpkgs] @primeos pushed to master « lf: 11 -> 12 »: https://git.io/fjOFu
basvandijk has joined #nixos
lovesegfault has quit [Quit: WeeChat 2.4]
ashkitten has quit [Remote host closed the connection]
kleisli has quit [Remote host closed the connection]
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/73c885246fc (from 25 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
InFlames has quit [Ping timeout: 268 seconds]
Alling has joined #nixos
InFlames has joined #nixos
<{^_^}> [nixpkgs] @taku0 opened pull request #59951 → adoptopenjdk-bin: 11.0.2 -> 11.0.3 [Security fixes] → https://git.io/fjOFM
hoijui has quit [Ping timeout: 252 seconds]
<Alling> Hello channel! Running into a weird problem with nix-build.
<Alling> I have a default.nix:
<Alling> { pkgs ? import <nixpkgs> {}, compiler ? "ghc844" }:
<Alling> pkgs.haskell.packages.${compiler}.developPackage { root = ./.; }
silver has joined #nixos
kaliumxyz has quit [Ping timeout: 255 seconds]
<Alling> I also have a shell.nix which adds cabal-install so that I can run cabal new-build etc in the shell.
<Alling> nix-build works. But if I then enter a nix-shell, run cabal new-build, and exit the nix-shell, then nix-build doesn't work anymore.
<Alling> ghc: can't find a package database at /home/alling/.cabal/store/ghc-8.4.4/package.db
<Alling> And I notice that cabal new-build creates a file .ghc.environment.x86_64-linux-8.4.4; if I remove it, nix-build works again.
<Alling> It contains this line: package-db /home/alling/.cabal/store/ghc-8.4.4/package.db
<Alling> That directory exists (outside the nix-shell).
thc202 has joined #nixos
kreisys has joined #nixos
<Fulgen> hello, I'm trying to start another X instance on another VT. as it complains about missing libinput, I run it with nix-shell -p libinput --run startx. it starts up fine, however, neither mouse nor keyboard input work. how can I fix this issue?
Jackneilll has joined #nixos
<basvandijk> Alling: the problem is you are including .ghc.environment.x86_64-linux-8.4.4 in your source code. Apparently GHC takes this file into account. nix-build will then fail because builds are executed in a sandbox where /home/alling/.cabal/store/ghc-8.4.4/package.db doesn't exists. To fix this filter this file from your source code with a function like sourceByRegex or something similar.
spacekookie has quit [Quit: **more agressive swooshing**]
LogicAside is now known as ThatOtherGuy
<Alling> basvandijk: You mean I implicitly include that file in the Nix build? Where/how would I use sourceByRegex?
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/454eea84a75 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
kreisys has quit [Ping timeout: 246 seconds]
sb0 has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @nyanloutre opened pull request #59952 → jellyfin: 10.2.2 -> 10.3.0 and module init → https://git.io/fjObL
mthst has quit [Remote host closed the connection]
mthst has joined #nixos
mabel has quit [Ping timeout: 268 seconds]
knupfer has joined #nixos
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/454eea84a75 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
alexherbo20430 has joined #nixos
eqyiel has joined #nixos
alexherbo2043 has quit [Ping timeout: 255 seconds]
eqyiel- has joined #nixos
<eqyiel-> can someone help me understand this? https://github.com/NixOS/nixops/issues/561 one of my ec2 instances was rebooted, and now I can't unlock it using the key that nixops uploaded after starting it again. I think this issue is saying that there is some kind of ephemeral storage where nixops stores a passphrase that is also required to unlock the volume. is this not also saved in the deployments file?
<{^_^}> nixops#561 (by AmineChikhaoui, 2 years ago, open): Recover encrypted EBS volumes upon spot instance kill/termination
mexisme_ has joined #nixos
Lears has joined #nixos
eqyiel has quit [Ping timeout: 255 seconds]
mexisme_ has quit [Client Quit]
eqyiel- has quit [Remote host closed the connection]
eqyiel has joined #nixos
mexisme has quit [Ping timeout: 268 seconds]
[Leary] has quit [Ping timeout: 255 seconds]
regulus- has quit [Ping timeout: 244 seconds]
[Leary] has joined #nixos
mexisme has joined #nixos
<{^_^}> [nixpkgs] @romildo opened pull request #59953 → [WIP] deepin.deepin-manual: init at 2.0.19 → https://git.io/fjObl
Lears has quit [Ping timeout: 255 seconds]
eqyiel has quit [Ping timeout: 255 seconds]
jtojnar has joined #nixos
regulus- has joined #nixos
<{^_^}> [nixpkgs] @joachifm pushed to master « nixos/hardened: split description of allowUserNamespaces into paras »: https://git.io/fjObu
<{^_^}> [nixpkgs] @lightbulbjim opened pull request #59954 → brogue: add .desktop file and icon → https://git.io/fjObz
<{^_^}> [nixpkgs] @Profpatsch merged pull request #56203 → writeC: fix finding of libraries → https://git.io/fjOb2
<{^_^}> [nixpkgs] @Profpatsch pushed commit from lassulus to master « writeC: fix finding of libraries »: https://git.io/fjOba
regulus- has quit [Ping timeout: 268 seconds]
<lassulus> Profpatsch: can you also backport to 19.03?
mabel has joined #nixos
regulus- has joined #nixos
Shouou has joined #nixos
Lears has joined #nixos
[Leary] has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @joachifm opened pull request #59955 → nixos/hardened: option to use hardened-malloc systemwide → https://git.io/fjObX
knupfer has quit [Ping timeout: 246 seconds]
regulus- has quit [Ping timeout: 250 seconds]
ashkitten has joined #nixos
ashkitten has quit [Client Quit]
jtojnar has quit [Ping timeout: 246 seconds]
ashkitten has joined #nixos
<Profpatsch> lassulus: Why the heck are you not an orga member oO
<Profpatsch> ocharles: ^ can we make lassulus a member?
<Profpatsch> Wait, I think it was domenkozar that manages that
<aanderse> Profpatsch: there is a thread
<aanderse> sec... finding
mthst has quit [Quit: the bouncer died]
<{^_^}> #50105 (by Infinisil, 23 weeks ago, open): New nixpkgs committers requirements/process
<aanderse> you can nominate there
mthst has joined #nixos
<Profpatsch> aanderse: thank you, done
<aanderse> np :)
<Izorkin> How to need to merge PR #56255
<{^_^}> https://github.com/NixOS/nixpkgs/pull/56255 (by Izorkin, 8 weeks ago, open): nginx: do not run anything as root
<Profpatsch> Izorkin: I suggest going through the history of the file you are modifying and pinging some of the authors
<Profpatsch> If Mic doesn’t have the time.
<aanderse> Izorkin: in regards to my latest comment, and your reply, i really don't think one data point (ie. you have nginx with php and roundcube working) is sufficient evidence :\
<Izorkin> how else can you test?
<aanderse> i don't much anything about nginx, but i fear if your change gets accepted for nginx it will be support to do the same for apache, without proper testing
arjen-jonathan has joined #nixos
<aanderse> so let me start with saying i really want your change to happen
<aanderse> i've been thinking of an adequate plan for apache
<aanderse> step 1. run on my personal web server which doesn't receive any traffic outside me and my friends/family
<aanderse> step 2. run on a public website i manage in my hobby time
<aanderse> step 3. convince my boss to let me run that on a low traffic server at work
<aanderse> step 4. convince my boss to let me run that on a high traffic server at work
<aanderse> on top of that, though
ris has joined #nixos
<aanderse> you need to make sure you have enough coverage across use cases
<aanderse> there are countless ways to utilize apache
<aanderse> modules, features
<aanderse> you need to say that you have an adequate spread of tests
<aanderse> for apache that means using at least all the major mod_*s included with nixos
<aanderse> and testing several that aren't included
<aanderse> using apache as a proxy server is a common enough usecase
<aanderse> so that would need to be tested
<aanderse> etc...
ricekrispie2 has joined #nixos
<Izorkin> I do not use apache, so I can not test something
<aanderse> so i think the first thing you need do is find volunteers with a wide variety of use cases to test this in production
<Profpatsch> lassulus: Do you know whether we have any instructions on how to backport things?
<Profpatsch> lassulus: I think if you cherry-pick the commit locally, you can create another PR that is merged into the 19.03 branch.
f0i has joined #nixos
ricekrispie has quit [Ping timeout: 250 seconds]
* Profpatsch is not really much of a nixpkgs power-contributor
jasongrossman has joined #nixos
<Izorkin> aanderse: really add to https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/nginx.nix build nginx with all modules?
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<aanderse> Izorkin: i wish i could offer more concrete feedback on the nginx side, but i really don't know much about it
<aanderse> is running nginx as a regular user common? no idea
<aanderse> it certainly isn't that common in apache, though
<aanderse> i'm not aware of any distro that has apache setup to run that way
Glider_IRC_ has joined #nixos
o1lo01ol1o has joined #nixos
<Izorkin> root rights are required only to open the port (poor translation)
<aanderse> Izorkin: i get that. but given how big apache is, and how it was meant to run as root, there are just too many unknowns for you to confidently say it won't break
<Izorkin> And if you try to ask on the channel #nginx ?
Glider_IRC__ has quit [Ping timeout: 246 seconds]
kisik21 has quit [Ping timeout: 268 seconds]
<aanderse> asking for real world production stories of people running nginx as non root would be a good idea
o1lo01ol1o has quit [Remote host closed the connection]
<aanderse> if you can show that running nginx as non root is common enough, it definitely supports your PR
sigmundv has joined #nixos
o1lo01ol1o has joined #nixos
Have-Quick has quit [Ping timeout: 244 seconds]
ashkitten has quit [Quit: WeeChat 2.4]
Anton-Latukha has quit [Ping timeout: 250 seconds]
arjen-jonathan has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @lightbulbjim opened pull request #59956 → dosbox: add XDG icon → https://git.io/fjONZ
xkapastel has joined #nixos
Alling has quit [Ping timeout: 256 seconds]
b42 has joined #nixos
otulp has quit [Remote host closed the connection]
ashkitten has joined #nixos
basvandijk has quit [Remote host closed the connection]
sigmundv has quit [Ping timeout: 246 seconds]
rprije has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @risicle opened pull request #59957 → devpi-server: fix build by forcing use of pytest_3 → https://git.io/fjONC
o1lo01ol1o has quit [Remote host closed the connection]
arjen-jonathan has joined #nixos
ashkitten has quit [Quit: WeeChat 2.4]
ashkitten has joined #nixos
leat has joined #nixos
kreisys has joined #nixos
_kwstas has joined #nixos
_kwstas has quit [Quit: _kwstas]
varjag has left #nixos ["ERC (IRC client for Emacs 26.1)"]
jmeredith has joined #nixos
stepcut has joined #nixos
kvda has joined #nixos
kvda has quit [Client Quit]
zupo has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b pushed to revert-59626-auto-update/osinfo-db « Revert "osinfo-db: 20190301 -> 20190319" »: https://git.io/fjOAq
<{^_^}> [nixpkgs] @c0bw3b opened pull request #59958 → Revert "osinfo-db: 20190301 -> 20190319" → https://git.io/fjOAO
work_ has joined #nixos
Alling has joined #nixos
<Alling> Hm. If I have my default.nix which uses developPackage, and a cabal file which specifies that my package needs hspec == 2.0, shouldn't Nix automatically install hspec 2.0 then?
<Alling> I thought developPackage would read my cabal file and figure out what Nix should install.
<clever> Alling: nixpkgs will just provide any version of hspec, so whatever is in nixpkgs
<Alling> clever: OK. But I thought version bounds were very important when working with Haskell and Hackage. They recommend setting lower and upper bounds on dependencies; that's what I'm trying to do.
<Alling> And it doesn't sound Nixy at all that I shouldn't be able to build a Haskell package which requires some older dependency.
<clever> Alling: if you want nix to respect the version bounds, then you need something like stack2nix, and then youll have to recompile nearly all haskell packages
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/ea9161e0955 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<Alling> clever: Only those I depend on, or _all_ of them, including GHC etc?
stepcut has quit [Ping timeout: 255 seconds]
o1lo01ol1o has joined #nixos
stepcut has joined #nixos
<clever> the ghc version will be cached, but it will likely have to rebuild eveyr single haskell package
<clever> you can also use overrides in the nix file to force a version for just one thing
<lordcirth> Ralith++
<{^_^}> Ralith's karma got increased to 3
<__monty__> Alling: It's actually not as much of a problem as you might think. Nixpkgs' haskell infrastructure is based on stackage so for packages on there there'll be no version mismatches.
<Alling> I started out with cabal2nix, but I was told that I should use developPackage and Nix would handle stuff for me.
<clever> ive not used developPackage before
kreisys has quit [Ping timeout: 255 seconds]
* clever reads its source
<Alling> __monty__: OK, but how do I know what version bounds to put in my cabal file for dependencies, e.g. hspec?
<__monty__> Alling: Nix+haskell does involve plenty of overrides with doJailbreak and dontCheck and callHackage invocations in my experience.
<clever> Alling: basically all developPackage does, is run callCabal2nix for you!
<clever> and if you use nix-shell, add a .env at the env
<__monty__> Alling: Good question, something everyone seems to struggle with : ) I don't have a good answer.
<Alling> clever: Can't. shell.nix: (import ./default.nix { inherit pkgs compiler; }).overrideAttrs (old: { nativeBuildInputs = old.nativeBuildInputs ++ [ pkgs.cabal-install ]; })
<Alling> I thought Nix was supposed to make Haskell development great again. :(
<__monty__> Alling: It does, but not without effort.
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<Alling> __monty__: It seems there's a never-ending collection of different "how to Haskell and Nix" out there; I don't know where to start or end.
<clever> Alling: if you refer to the .env of a cabal2nix'd derivation, you basically dont need developPackage
<__monty__> clever: Is the iohk haskell infrastructure any better with regard to these quirks?
<Alling> clever: From where do I get a cabal2nix'd derivation?
<clever> Alling: foo = haskellPackages.callCabal2nix "name" ./name {};
<clever> __monty__: we are currently switching over from stack2nix to haskell.nix, since it adds cross-compile support
<clever> but the haskell.nix stuff still needs some things ironed one, recently found that nix-shell support isnt working at all
<__monty__> That would include direnv/lorri support, right?
<Alling> clever: It sort of worked. nix-build seems to work, and cabal new-build inside a nix-shell as well. But not cabal new-test:
<Alling> cabal: Cannot test the package easy-rewriting-1.0.0 because none of the components are available to build: the test suite 'spec' is not available because the solver did not find a plan that included the test suites
<Alling> So I guess that just means I can't have old dependencies.
<clever> Alling: the cabal new- family of commands have issues under nix
<clever> they tend to ignore the versions nix provides, download their own source, and build things directly
<clever> and then that fails, because nix-shell didnt provide the deps of your deps
<clever> because your not supposed to be building your own deps
<Alling> clever: OK. But I think I've had issues with every single thing I've tried thus far.
<clever> what about `runhaskell Setup.hs build` and then test?
<Alling> Now nix-build works, but it doesn't run the test suite like it did before. :s
<Alling> Setup.hs:1:1: error: Could not find module ‘Distribution.Simple’
<clever> are you in the .env shell?
<clever> what does `type ghc` return?
<Alling> ghc is /nix/store/lsj0xp87zzv8nwbbyjqn6r0y1fx9avw4-ghc-8.4.4-with-packages/bin/ghc
<clever> ghc-pkg list | grep -i cabal
<Alling> I don't know if I'm in the env shell. I have .env in default.nix which I then import in shell.nix and there I use overrideAttrs.
<clever> default.nix shouldnt use .env, that will break nix-build
<Alling> WARNING: there are broken packages. Run 'ghc-pkg check' for more details. Cabal-2.2.0.1
<clever> only shell.nix needs .nv
<clever> what does check say?
acarrico has joined #nixos
<Alling> I have to go, sorry. :(
<Alling> But I removed .env so nix-build works again.
<Alling> See you!
<clever> yep
arjen-jonathan has quit [Ping timeout: 268 seconds]
Alling has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @c0bw3b merged pull request #59958 → Revert "osinfo-db: 20190301 -> 20190319" → https://git.io/fjOAO
<{^_^}> [nixpkgs] @c0bw3b pushed to master « Revert "osinfo-db: 20190301 -> 20190319" (#59958) »: https://git.io/fjOAD
<{^_^}> [nixpkgs] @CrazedProgrammer opened pull request #59960 → wf-recorder: unstable-2019-03-12 -> unstable-2019-04-21 → https://git.io/fjOAy
<{^_^}> [nixpkgs] @c0bw3b pushed 0 commits to revert-59626-auto-update/osinfo-db: https://git.io/fjOAQ
o1lo01ol1o has joined #nixos
kreisys has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b merged pull request #50911 → sky: init at 2.1.7369 → https://git.io/fpBeK
<{^_^}> [nixpkgs] @c0bw3b pushed commit from @Scriptkiddi to master « sky: init at 2.1.7369 (#50911) »: https://git.io/fjOAx
Shouou has quit [Ping timeout: 246 seconds]
_kwstas has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @xrelkd opened pull request #59961 → gifsicle: 1.91 -> 1.92 → https://git.io/fjOxm
Mr_Keyser_Soze has joined #nixos
lionello has joined #nixos
Shouou has joined #nixos
zupo_ has joined #nixos
<lionello> Hi, any dlang fans here? Could use an extra set of eyes on this new project of mine https://github.com/lionello/dub2nix
<lionello> It's my first major Nix derivation, so wonder if I'm doing it 'by the book'
<lionello> Realize I need a README
<simpson> lionello: Cool work.
zupo has quit [Ping timeout: 246 seconds]
<lionello> simpson: thx!
<lionello> Pushed a minimal README
<{^_^}> [nixpkgs] @xrelkd opened pull request #59962 → http-parser: 2.9.1 -> 2.9.2 → https://git.io/fjOxu
xkapastel has quit [Quit: Connection closed for inactivity]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vid has joined #nixos
zupo has joined #nixos
endformationage has joined #nixos
<lionello> I think there's still something wrong. If I use dockerTools to create an image from the `${getBin pkg}/bin/exe` it pulls in gcc and evrything
<symphorien> to get the dependencies on a store path, use nix-store -qR
<symphorien> then you can use nix why-depends foo bar to get an idea of what happens
<symphorien> maybe the resulting binaries are not stripped?
zupo has quit [Client Quit]
Mr_Keyser_Soze has quit [Ping timeout: 255 seconds]
<symphorien> this could happen if you override the fixupPhase instead of using postFixup
myskran has quit [Ping timeout: 244 seconds]
<lionello> hmm
<lionello> symphorien: let me try
<lionello> Yeah, nix-store -qR shows all the build dependencies
<lionello> I suppose it shouldn't?
<symphorien> No it should not
o1lo01ol1o has quit [Remote host closed the connection]
<lionello> How do I use why-depends? `nix why-depends -f container.nix nixpkgs.ldc` tells me `error: more arguments are required`
<{^_^}> [nixpkgs] @yrashk opened pull request #59963 → pforth: init at 28 → https://git.io/fjOx1
<clever> lionello: it also works with raw storepaths
<clever> nix why-depends /nix/store/foo /nix/store/bar
<clever> why does foo depend on bar?
<lionello> clever: works!
<lionello> oh that's cool. There's string resource in the executable that refers to a man page, pulling in dev dependencies
<clever> aha
<clever> man pages should be in the -doc output, if it has one
<clever> (and it if doesnt, create one)
<clever> or the -man output
<lionello> ...how
<lionello> haven't used multiple outputs before
<clever> the nix expression for the package has to be modified
<clever> is it in nixpkgs, or a custom one?
<lionello> custom
<clever> in your derivation, you can set `outputs = [ "out" "man" ];`
<clever> then you must put files into `$out` and `$man` when in the installPhase
<lionello> aha
<clever> dev stuff could be in $dev if you want that
<clever> (and add it to outputs)
<lionello> that's it?
<clever> the outputs can depend on eachother, but no cycles allowed
<lionello> dev stuff = libs and headers and such?
<clever> so dev can depend on out, but then out cant depend back on dev
<clever> dynamic libs can either be in $out or $lib, depending on your preference
<clever> executables in $out or $bin, depending on preference
<clever> the `getBin pkg` you pasted above, will read .bin if it exiss, and .out if bin is missing
<lionello> got it
<clever> split output stuff allows for magic like this
<clever> setting documentation.man.enable = false;, means systemPackages wont include the $man output from packages
<clever> so the documentation just goes away, without having to edit any packages
<lionello> nice
<lionello> Alright. Looks like I'll have to change `nixpkgs.dmd` though
<infinisil> Does anybody happen to have an example of a NixOS config for automatically rolling back to the previous generation if the new one doesn't work for some reason?
<clever> infinisil: untested, but grub has options to change the default entry both at grub-time and normal runtime
<infinisil> clever: It's for when the server fails miserably, such that i can't connect to it anymore
<clever> reading grub.cfg, i can see that it loads the grubenv file, and there is a comment explaining grub-reboot
<clever> the idea, would be to modify the default entry, so when booting generation X, it flags X-1 as the default
<clever> then when X comes online fully, it modifies grubenv to make X the default again
<clever> if things go wrong, and you somehow reboot the machine, it will boot X-1 instead
<clever> X-1 could then also flag X-1-1 as the default (within grub)
<infinisil> Won't work if the error is during sshd initialization or so
<clever> yeah, you would need some watchdog thing to verify its 100% working, before claiming so in grub
<infinisil> There was a presentation at the last NixCon about something like this
<clever> one idea ive wanted to work on, is to replace the boot menu, with a custom kernel+initrd pair, that brings up sshd, and waits 15 seconds
<clever> then you can ssh in and choose an option
kisonecat has joined #nixos
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
lionello has quit [Ping timeout: 255 seconds]
<clever> it would also be more flexible and you could program in custom rollback logic
tomberek has joined #nixos
<infinisil> Neat
<infinisil> Man I can't find the Nixcon talk
o1lo01ol1o has joined #nixos
<infinisil> Ah found it!
<infinisil> Was in 2017
kisonecat has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @Lassulus opened pull request #59964 → [19.03] writeC: fix finding of libraries → https://git.io/fjOpf
kisonecat has joined #nixos
<clever> infinisil: ah, that only works if the machine is still online, and can rollback itself
_kwstas has quit [Quit: _kwstas]
<infinisil> Yeah it doesn't guard against grub failing I guess, but that's not my biggest worry
lionello has joined #nixos
<infinisil> clever: I think that should work as long as systemd can start, which is pretty much the first thing after grub I think
<clever> grub runs linux, linux then runs stage-1 in the initrd, stage-1 then runs stage-2, and stage-2 runs systemd AFTER the activation scripts
<clever> i have seen somebody brick the machine by doing network in the activtions scripts, so systemd never ran
<infinisil> Hmm
<infinisil> Eh I think that'll be fine, I'll be fine for most problems caused in regards to networking
kisonecat has quit [Ping timeout: 246 seconds]
<lionello> Found another issue: one of the dependencies generates a (header) file during build, which fails because `dub` cannot write.
orivej has quit [Ping timeout: 268 seconds]
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<clever> infinisil: yeah, which method you use depends heavily on what type of fault you want to recover from
<lionello> How can I patch a repo from `fetchgit`?
<clever> and you could mix methods
<symphorien> lionello: dub must write in the sources ?
<clever> lionello: you can still use the patches array to apply patches
<lionello> it's a custom build step in one particular package: it fetches the version of `openssl` and creates a header file with it, supposedly for runtime version check
<lionello> clever: ah! I can apply patches to `fetchgit`?
Neo-- has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
<clever> lionello: patches goes into the stdenv.mkDerivation of anthing with a src=
<{^_^}> [nixpkgs] @dywedir merged pull request #59960 → wf-recorder: unstable-2019-03-12 -> unstable-2019-04-21 → https://git.io/fjOAy
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fjOpl
<lionello> clever: Currently I only have `fetchgit` for the dependencies. Looks like I'll have to wrap it in a mkDerivation, using fetchgit for src?
<clever> lionello: yeah
Shouou has quit [Ping timeout: 246 seconds]
<clever> lionello: i think your problem is that you are trying to build directly from the fetchgit output, which is read-onl
<clever> but if you use stdenv and src=, it will copy that to . and make it writable, and then it will just work
<lionello> clever: OK, cool. Would you suggest to always use mkDerivation, even if I just do src = fetchgit?
<clever> lionello: depends on what your doing, you can sometimes use unpackPhase in runCommand, but mkDerivation is usually what you want
<aanderse> i did a quick look around for a backport policy and just found a closed RFC which said "sounds like too much red tape"
<aanderse> i was hoping for something a bit more than that
<lionello> clever: my latest actually does always do mkDerivation, so I need to add a way to override that particular dependency. doable.
<lionello> clever: symphorien: thx for the help!
* lionello is off to bed
lionello has quit [Quit: leaving]
Neo-- has quit [Ping timeout: 258 seconds]
jmgai_ has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @gebner pushed to master « lib3mf: fix pkg-config file »: https://git.io/fjOpD
<{^_^}> [nixpkgs] @FredeEB opened pull request #59965 → seasocks: seasocks websocket library 1.4.2 → https://git.io/fjOpy
jmgai has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
Tiez has joined #nixos
fusion809 has quit [Remote host closed the connection]
sindrip has joined #nixos
vid has quit [Ping timeout: 255 seconds]
<sindrip> When I run a test environment with nixos-rebuild build-vm, it is insanely slow. What do I need to configure to get it to more native speeds (I'm a complete qemu/kvm novice)
<clever> sindrip: does /dev/kvm exist?
work_ has quit [Quit: Connection closed for inactivity]
fendor has joined #nixos
<sindrip> under the host system?
<clever> yeah
jmgai has quit [Ping timeout: 250 seconds]
<sindrip> Yeah, it exists
<sindrip> I have the kvm-intel kernelmodule on the host system
<clever> and what are the permissions on it?
<clever> [root@system76:~]# ls -l /dev/kvm
<clever> crw-rw-rw- 1 root kvm 10, 232 Apr 12 08:32 /dev/kvm
<clever> mine is 666
<sindrip> same as yours
<sindrip> crw-rw-rw-
<clever> then it should automtically use kvm and run faster
<clever> while the vm is running, check `ps aux | grep qemu`, and look for a `-enable-kvm` in its args
<sindrip> there's one difference actually between mine and yours
jmgai has joined #nixos
<sindrip> crw-rw-rw- 1 root root
<clever> group doesnt matter much if the last part is +rw
drakonis has joined #nixos
<sindrip> Yeah it has the enable-kvm flag
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> then it should be running as fast as the hardware allows
<clever> sindrip: within the guest, how does ram usage look?, `free -m`, what about cpu? `top`
<sindrip> Well, I'm seeing now it only has 400mb assigned :)
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<{^_^}> [nixpkgs] @romildo opened pull request #59966 → mate: 1.20 -> 1.22 → https://git.io/fjOhO
drakonis1 has quit [Ping timeout: 255 seconds]
<clever> sindrip: `virtualisation.memorySize = 2048;` add that to the configuration.nix
<Orbstheorem> Hello, how can I combine a list of attribute sets in nix?
<Orbstheorem> i.e. [ {a = 1;} {b = 3;} ] => {a = 1; b = 3;}
<clever> > :p [ {a=1;} {b=2;} {c=3;} ]
<{^_^}> [ { a = 1; } { b = 2; } { c = 3; } ]
<clever> Orbstheorem: one min...
<clever> > builtins.foldl' (a: b: a // b) {} [ {a=1;} {b=2;} {c=3;} ]
<{^_^}> { a = 1; b = 2; c = 3; }
<clever> Orbstheorem: that work?
<Orbstheorem> Yep ^^
<Orbstheorem> I'm surprised there's no function in the lib though
jmgai has quit [Ping timeout: 255 seconds]
ferriswheel has joined #nixos
kreisys has joined #nixos
drakonis_ has joined #nixos
jmgai has joined #nixos
<Orbstheorem> Are there pairs in nix?
<Orbstheorem> I just realized I'm trying to map to a function that takes two arguments
<Orbstheorem> I could double map on two lists, but seems less readable?
<clever> Orbstheorem: simpler to make it a list of sets, then map ({ a, b }: a * b)
<sindrip> clever: I have searched through nixos options and I'm just not finding the one you're referencing
drakonis has quit [Ping timeout: 258 seconds]
<clever> sindrip: so its missing from the normal docs
<clever> sindrip: its in qemu-vm.nix, which is only included when you run build-vm
<sindrip> clever: I found the option, I went searching because I'm getting an error about the option not existing. Which is weird because the default value of the option was the memorysize of my vm
<clever> thats because it doesnt exist when nixos-rebuild is building nix, only nixos
<clever> you can safely ignore that error
<clever> its a bug within nixos-rebuild
jmgai has quit [Ping timeout: 245 seconds]
<sindrip> clever: Working much better now, thanks for the help
fendor_ has joined #nixos
linarcx has joined #nixos
[Leary] has joined #nixos
xkapastel has joined #nixos
OutLaw has joined #nixos
Lears has quit [Ping timeout: 245 seconds]
jmgai has joined #nixos
hellrazo1 has quit [Ping timeout: 245 seconds]
o1lo01ol1o has joined #nixos
hellrazo1 has joined #nixos
hoijui has joined #nixos
<{^_^}> [nixpkgs] @LinArcX opened pull request #59967 → nixbox: init at unstable-2019-04-20" → https://git.io/fjOhw
o1lo01ol1o has quit [Ping timeout: 244 seconds]
OutLaw has left #nixos [#nixos]
jmgai has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @markuskowa opened pull request #59968 → guake: fix by setting strictDeps to false → https://git.io/fjOhK
slyfox has joined #nixos
jmgai has joined #nixos
steve-chavez has joined #nixos
ferriswheel has quit [Ping timeout: 255 seconds]
jmgai has quit [Ping timeout: 268 seconds]
jmgai has joined #nixos
ATuin has joined #nixos
gyroninja has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @pSub merged pull request #59871 → calibre: 3.40.1 -> 3.41.3 → https://git.io/fjOcE
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/fjOhb
<{^_^}> [nixpkgs] @pSub pushed 0 commits to update-calibre: https://git.io/fjOhN
ray has joined #nixos
ray is now known as Guest68599
<linarcx> Hi guys. i create a project called nixbox to manage nixos operations in one single application: https://github.com/LinArcX/nixbox
jmgai has quit [Ping timeout: 246 seconds]
jmgai has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #59969 → fix bootstrap when platform.gcc.arch=="skylake" → https://git.io/fjOjk
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/83e778c7aaa (from 28 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
slyfox has quit [Ping timeout: 268 seconds]
jmgai has quit [Ping timeout: 244 seconds]
jmgai has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #59970 → bash_5: 5.0-p2 -> 5.0-p7 → https://git.io/fjOjW
hellrazo1 has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @dtzWill opened pull request #59971 → teeworlds: 0.7.2 -> 0.7.3 → https://git.io/fjOjR
jmgai has quit [Ping timeout: 268 seconds]
hellrazor has joined #nixos
BlessJah has quit [Ping timeout: 240 seconds]
Guest68599 has quit [Quit: leaving]
<{^_^}> [nixpkgs] @c0bw3b merged pull request #59790 → aws-okta: 0.19.0 -> 0.20.1 → https://git.io/fjY5Q
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fjOjz
<{^_^}> [nixpkgs] @dtzWill opened pull request #59972 → shadowfox: 1.5.2 -> 1.7.20, move to buildGoModule → https://git.io/fjOjg
<{^_^}> [nixpkgs] @aanderse opened pull request #59973 → superTuxKart: 0.9.3 -> 1.0 → https://git.io/fjOja
<{^_^}> [nixpkgs] @dtzWill opened pull request #59974 → nghttp2: 1.37.0 -> 1.38.0 → https://git.io/fjOjV
_kwstas has joined #nixos
_kwstas has quit [Client Quit]
kleisli has joined #nixos
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
gyroninja has joined #nixos
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
sondr3 has joined #nixos
slyfox has joined #nixos
polman has quit [Read error: Connection reset by peer]
polman has joined #nixos
jmgai has joined #nixos
fl0_id has quit [Ping timeout: 268 seconds]
hedning_ has joined #nixos
hedning_ has quit [Client Quit]
jmgai has quit [Ping timeout: 246 seconds]
hedning_ has joined #nixos
drakonis has joined #nixos
jmgai has joined #nixos
drakonis_ has quit [Ping timeout: 258 seconds]
fl0_id has joined #nixos
jmgai has quit [Ping timeout: 255 seconds]
slyfox has quit [Ping timeout: 246 seconds]
kisonecat has joined #nixos
kleisli has quit [Remote host closed the connection]
kleisli has joined #nixos
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/454eea84a75 (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
Acou_Bass has quit [Ping timeout: 255 seconds]
Acou_Bass has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/694f07be2ef (from 71 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
sindrip has quit [Quit: WeeChat 2.4]
acarrico has quit [Ping timeout: 255 seconds]
Acou_Bass has quit [Ping timeout: 246 seconds]
drakonis1 has joined #nixos
_ris has joined #nixos
ris has quit [Read error: Connection reset by peer]
Acou_Bass has joined #nixos
rauno has joined #nixos
jerrytgarcia has joined #nixos
<infinisil> Mic92: Can you update ZFS unstable to the latest rc? A fourth one has been released a couple days ago with Linux 5.0 support
<Orbstheorem> Would anyone kindly code-review me? :) https://paste.gnugen.ch/raw/3eOP
<Orbstheorem> I coudn't manage to make something “less hacky” for the expression `wireguardPeers`
buffet_ is now known as buffet
<{^_^}> #59791 (by adisbladis, 3 days ago, merged): zfsUnstable: 0.8.0-rc3 -> 0.8.0-rc4
slyfox has joined #nixos
<infinisil> adisbladis: Oh!
rauno has quit [Ping timeout: 250 seconds]
<infinisil> I only searched for "zfs" in the PRs, which apparently doesn't list "zfsUnstable"..
<infinisil> Orbstheorem: builtins.getAttr hostname secrets.machines == secrets.machines.${hostname}
<adisbladis> infinisil: Same thing has bit me a few times
<infinisil> Orbstheorem: For the wireguardPeers, I think you could use `lib.genAttrs`, check out its docs
stepcut has quit [Remote host closed the connection]
f0i has quit [Ping timeout: 246 seconds]
stepcut has joined #nixos
<infinisil> Orbstheorem: Or I think just `wireguardPeers = mapAttrs (name: value: mkWireguardPeer name) servers;`
Tiez has quit [Quit: WeeChat 2.4]
<Orbstheorem> `mapAttrs` \o/
thePirateKing has quit [Remote host closed the connection]
f0i has joined #nixos
zupo has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jmgai has joined #nixos
<Orbstheorem> infinisil: Thanks !
<infinisil> :)
jmgai has quit [Ping timeout: 245 seconds]
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
jmgai has joined #nixos
<{^_^}> [nixpkgs] @ttuegel merged pull request #59751 → knotes: init → https://git.io/fjYVn
<{^_^}> [nixpkgs] @ttuegel pushed 2 commits to master: https://git.io/fj3eh
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
infinisil has joined #nixos
slack1256 has joined #nixos
jmgai has quit [Ping timeout: 246 seconds]
Jackneilll has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @risicle opened pull request #59975 → pythonPackages.ColanderAlchemy: fix build by pinning to colander 1.6.0 → https://git.io/fj3vU
jmgai has joined #nixos
mabel has quit [Ping timeout: 246 seconds]
mabel has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #59976 → rrdtool: add passthru.perlModule → https://git.io/fj3vI
jmgai has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @ttuegel pushed 3 commits to master: https://git.io/fj3vL
<{^_^}> [nixpkgs] @ttuegel merged pull request #59504 → kdeFrameworks: 5.56 -> 5.57 → https://git.io/fjmiI
iktomi has joined #nixos
<iktomi> Hi all
<iktomi> I'm trying to get PHP-FPM + nginx set up... I'm at the point where I'm no longer getting any errors from nginx or php-fpm, but it's still not working
jmgai has joined #nixos
<iktomi> I started with the example PHP config at https://nixos.wiki/wiki/Nginx#Sample_setups
<{^_^}> [nixpkgs] @volth opened pull request #59978 → nix.perl-bindings: add passthru.perlModule → https://git.io/fj3vY
<iktomi> Ended up with "Primary script unknown" from php-fpm in the journal
<iktomi> Now I have this config, and requests with ".php" in them return HTTP 200 but no content: https://gist.github.com/joseph-long/948699f35649793f3044c85894a29923
<iktomi> Does anyone have suggestions?
<infinisil> adisbladis: Oh man, nixos-19.03 has rc4 already, while nixos-unstable doesn't!
<infinisil> I guess it makes sense, considering the number of updates on master, and only a small part of them being backported, but it's still a bit odd
jmgai has quit [Ping timeout: 246 seconds]
gagbo has joined #nixos
jmgai has joined #nixos
apeyroux has joined #nixos
_ris has quit [Ping timeout: 255 seconds]
<adisbladis> Yeah, funky =)
Anton-Latukha has joined #nixos
orivej has joined #nixos
zupo has joined #nixos
mkoenig has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #59979 → [demo, do not merge] nix-serve: $PERL5LIB -> perl.withPackages → https://git.io/fj3vV
alexherbo204302 has joined #nixos
alexherbo20430 has quit [Ping timeout: 246 seconds]
kleisli_ has joined #nixos
kleisli has quit [Ping timeout: 268 seconds]
kisonecat has quit [Ping timeout: 246 seconds]
Izorkin has quit [Quit: ZNC 1.7.3 - https://znc.in]
johanot has joined #nixos
<infinisil> Nixops adds its own keys on its own right?
Izorkin has joined #nixos
<infinisil> Because for some reason a long time ago I added nixops ssh keys to authorizedKeys manually, but I can't remember anymore why
phreedom_ has joined #nixos
mexisme has quit [Ping timeout: 244 seconds]
phreedom has quit [Ping timeout: 256 seconds]
Izorkin has quit [Quit: ZNC 1.7.3 - https://znc.in]
Izorkin has joined #nixos
Izorkin has quit [Client Quit]
_kwstas has joined #nixos
Izorkin has joined #nixos
zupo has quit [Quit: Textual IRC Client: www.textualapp.com]
Makaveli7 has joined #nixos
cyraxjoe has quit [Quit: No Ping reply in 180 seconds.]
cyraxjoe has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #59980 → perl: 5.28.1 -> 5.28.2 → https://git.io/fj3v9
<{^_^}> [nixpkgs] @adisbladis opened pull request #59981 → WIP: Add discourse package & nixos module → https://git.io/fj3vd
acarrico has joined #nixos
lovesegfault has joined #nixos
mexisme has joined #nixos
kisonecat has joined #nixos
zupo has joined #nixos
hoijui has quit [Ping timeout: 240 seconds]
silver_hook has quit [Quit: ZNC 1.6.5+deb1+deb9u1 - http://znc.in]
<linarcx> How to search option from terminal not https://nixos.org/nixos/options.html?
silver_hook has joined #nixos
<symphorien> man configuration.nix
<{^_^}> [nixpkgs] @markuskowa merged pull request #59899 → steamrt: fix update script → https://git.io/fjOEe
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fj3ft
xkapastel has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @ivan opened pull request #59983 → prometheus-statsd-exporter: 0.4.0 -> 0.9.0 → https://git.io/fj3fq
bikes has joined #nixos
justanotheruser has quit [Ping timeout: 264 seconds]
<linarcx> symphorien: Oh, there are 88125 lines in there! with which keyword i get more specific results?
ferriswheel has joined #nixos
jmgai has quit [Ping timeout: 246 seconds]
Anton-Latukha has quit [Ping timeout: 268 seconds]
jmgai has joined #nixos
hoijui has joined #nixos
ATuin has quit [Quit: WeeChat 2.1]
marusich has joined #nixos
hoijui has quit [Ping timeout: 250 seconds]
alexherbo2043021 has joined #nixos
alexherbo204302 has quit [Ping timeout: 246 seconds]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
johnw_ has joined #nixos
gyroninja has quit [Ping timeout: 255 seconds]
jmgai has quit [Ping timeout: 246 seconds]
<xorAxAx> hmm, why does nox' cache refresh need so much memory? likewise, a nix-env -qas doesnt complete here
jmgai has joined #nixos
johnw has quit [Ping timeout: 268 seconds]
tboston_ has joined #nixos
slack1256 has quit [Ping timeout: 268 seconds]
marusich has quit [Remote host closed the connection]
jmgai has quit [Ping timeout: 255 seconds]
jmgai has joined #nixos
ferriswheel has quit [Quit: Leaving]
ferriswheel has joined #nixos
ferriswheel has quit [Client Quit]
ferriswheel has joined #nixos
<adisbladis> xorAxAx: I'm not so sure exactly what nox does, but presumably also a full eval
<{^_^}> [nixpkgs] @Lassulus opened pull request #59985 → WIP: nixos/syncthing: add options for declarative device/folder config → https://git.io/fj3JW
<symphorien> linarcx: you can use / to search
<xorAxAx> adisbladis, hmm, and that takes more than 2 GB of ram apparently
gyroninja has joined #nixos
fendor_ has quit [Ping timeout: 250 seconds]
_kwstas has quit [Quit: _kwstas]
mexisme has quit [Ping timeout: 255 seconds]
<xorAxAx> hmm, i wonder - would it be possible to run unstable-small but use the cache files from unstable "if they had the same name"?
<xorAxAx> i presume -small has less cache files because hydra is configured like that?
<LnL> they use the same cache
<LnL> but unstable doesn't update until the cache for everything in that revision in populated
<xorAxAx> ah, so -small just publishes the newest channel revision as early as possible while nonsmall waits for all builds?
alexherbo2043021 has quit [Quit: The Lounge - https://thelounge.chat]
<LnL> yep
jmgai has quit [Ping timeout: 255 seconds]
<LnL> so the longer you wait after a -small update the more will be available
_ris has joined #nixos
jmgai has joined #nixos
<xorAxAx> hmm, makes sense. ideally i would want a -mixed channel type: a kind of auto-merged tree that refers to the small version of the nix expr as soon as the cache is populated for that package
<xorAxAx> would that make sense if it existed?
<{^_^}> [nixpkgs] @Mic92 reopened pull request #58795 → zfsUnstable: 0.8.0-rc3 -> 2019-04-01 → https://git.io/fjInp
<{^_^}> [nixpkgs] @adisbladis closed pull request #58795 → zfsUnstable: 0.8.0-rc3 -> 2019-04-01 → https://git.io/fjInp
BlessJah has joined #nixos
shibboleth has joined #nixos
<LnL> in theory yes
winem_ has joined #nixos
tboston_ has quit [Ping timeout: 246 seconds]
__monty__ has quit [Quit: leaving]
<{^_^}> [nixpkgs] @ivan opened pull request #59986 → snscrape: 0.1.3 -> 0.2.0 → https://git.io/fj3JH
<xorAxAx> of course the auto-merge might fail, yielding problems while evaluating. but it would repair itself
mexisme has joined #nixos
<xorAxAx> over time
leotaku has quit [Quit: ZNC 1.7.2 - https://znc.in]
tmaekawa has joined #nixos
<xorAxAx> hrm, GC Warning: Out of Memory! Heap size: 6419 MiB. Returning NULL! -- error: out of memory
<xorAxAx> on nix-env -qas
Jetien has quit [Ping timeout: 258 seconds]
<clever> xorAxAx: you may have infinite recursion in our expr
kisonecat has quit [Ping timeout: 255 seconds]
justanotheruser has joined #nixos
leotaku has joined #nixos
mexisme has quit [Client Quit]
<LnL> operations that go over all packages in nixpkgs like that are a bit memory hungry
<LnL> it's not machine readable, but --dry-run will show how much has to be built locally vs substituted
<xorAxAx> clever, how can i track that down?
<xorAxAx> is there a verbose evaluation mode?
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<xorAxAx> LnL, same problem with dry-run
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lovesegfault has quit [Quit: WeeChat 2.4]
tmaekawa has quit [Quit: tmaekawa]
<LnL> I mean eg. nixos-rebuild dry-build
<xorAxAx> LnL, thats a noop: # nixos-rebuild dry-build
<xorAxAx> building the system configuration...
<LnL> well yes, if there are no changes to build/substitute it won't change anything
<xorAxAx> so, yes, the system is built in accordance to the configuration.nix, but nix-env -qas doesnt work
<LnL> something like nixos-rebuild dry-build -I nixpkgs=channel:nixos-19.03-small would compare to the latest channel instead of your current
kreisys has joined #nixos
<xorAxAx> ah, i know. i want to get a -qas output, though :-)
<xorAxAx> can somebody check how much ram is necessary for nix-env -qas?
<{^_^}> [nixpkgs] @timokau opened pull request #59987 → python.pkgs.gmpy2: backport upstream bugfixes → https://git.io/fj3Ue
<xorAxAx> bumped to 12 GB system memory, 9242328 RES
<{^_^}> [nixpkgs] @danielfrankcom opened pull request #59988 → nixos/config: add user configuration homeMode option → https://git.io/fj3UU
gagbo has quit [Ping timeout: 245 seconds]
<clever> xorAxAx: -vvvvv
gagbo has joined #nixos
<LnL> I see it going up to almost 4.8g
<xorAxAx> yeah, i seem to have 2 channels active
<LnL> ah right, you can select one with eg. -f '<nixpkgs>'
<{^_^}> [nixpkgs] @andir merged pull request #57017 → cargo-vendor: 0.1.13 -> 0.1.23 → https://git.io/fhp6i
<{^_^}> [nixpkgs] @andir pushed 4 commits to master: https://git.io/fj3UO
<clever> having 2 channels may double the usgae
fendor has quit [Quit: Leaving]
<xorAxAx> hmm, i just managed to implode my nixos by changing the nixos channel, updating the nixos channel, and gc -d
_fw has joined #nixos
<pie_> xorAxAx doin all the stress testin \o/
<xorAxAx> i mean, it uses much less storage now
<pie_> depending on what oyu mean by implode
<xorAxAx> yeah, i assumed i would have broken it
<xorAxAx> still works
zupo has joined #nixos
<pie_> changing a channel shouldnt be able to implode in the brea ksense, you should still have gc roots for all still in use stuff
<pie_> i would assumee (hope) transitions are atomic as expected
<clever> xorAxAx: the GC will never delete something that is currently in use
<{^_^}> [nixpkgs] @timokau merged pull request #59950 → nginxMainline: 1.15.10 -> 1.15.12 → https://git.io/fjOdh
<{^_^}> [nixpkgs] @timokau pushed commit from @Izorkin to master « nginxMainline: 1.15.10 -> 1.15.12 (#59950) »: https://git.io/fj3UG
ferriswheel has quit [Ping timeout: 255 seconds]
<xorAxAx> clever, thats good :)
<{^_^}> [nixpkgs] @timokau merged pull request #59987 → python.pkgs.gmpy2: backport upstream bugfixes → https://git.io/fj3Ue
<{^_^}> [nixpkgs] @timokau pushed to master « python.pkgs.gmpy2: backport upstream bugfixes (#59987) »: https://git.io/fj3UZ
<{^_^}> [nixpkgs] @timokau opened pull request #59989 → [WIP] sage: 8.7 -> 8.8 → https://git.io/fj3Un
thc202 has quit [Ping timeout: 246 seconds]
stepcut_ has joined #nixos
polman has quit [Ping timeout: 250 seconds]
stepcut has quit [Ping timeout: 255 seconds]
steve-chavez has quit [Ping timeout: 256 seconds]
thc202 has joined #nixos
<{^_^}> [nixpkgs] @basvandijk opened pull request #59990 → Support patching nixpkgs → https://git.io/fj3Uz
thc202 has quit [Ping timeout: 245 seconds]
jmgai has quit [Ping timeout: 246 seconds]
Acou_Bass has quit [Ping timeout: 246 seconds]
Piece_Maker has joined #nixos
Piece_Maker is now known as Acou_Bass
jmgai has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stepcut has joined #nixos
stepcut_ has quit [Ping timeout: 250 seconds]
Makaveli7 has quit [Quit: WeeChat 2.4]
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/d2602779281 (from 5 days ago, history: https://channels.nix.gsc.io/nixos-unstable)
m0rphism has quit [Ping timeout: 250 seconds]
Acou_Bass has quit [Ping timeout: 268 seconds]
johanot has quit [Quit: WeeChat 2.4]
Acou_Bass has joined #nixos
oborot has joined #nixos
<oborot> Hey folks, I'm trying to setup firejail binary wrapping liked shown in the B.2.1 Highlights, using the example that's provided I', getting an "undefined variable 'lib'" error.
<oborot> Is there anywhere I can find a working example?
<oborot> Just trying to wrap firefox.
MarkOtaris has joined #nixos
Lears has joined #nixos
jluttine has quit [Ping timeout: 255 seconds]
[Leary] has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @risicle opened pull request #59993 → pythonPackages.box2d: fix build by moving swig2 to nativeBuildInputs → https://git.io/fj3Tq
justanotheruser has quit [Ping timeout: 246 seconds]
sheeldotme has joined #nixos
stepcut_ has joined #nixos
<{^_^}> [nixpkgs] @dtzWill merged pull request #59813 → zstd: 1.3.8 -> 1.4.0 → https://git.io/fjYxg
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/fj3TR
stepcut has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @dtzWill merged pull request #59971 → teeworlds: 0.7.2 -> 0.7.3 → https://git.io/fjOjR
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fj3Tu
<{^_^}> [nixpkgs] @dtzWill merged pull request #59970 → bash_5: 5.0-p2 -> 5.0-p7 → https://git.io/fjOjW
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fj3Tz
gagbo has quit [Ping timeout: 246 seconds]
jluttine has joined #nixos
Piece_Maker has joined #nixos
Acou_Bass has quit [Ping timeout: 244 seconds]
Piece_Maker is now known as Acou_Bass
<{^_^}> [nixpkgs] @worldofpeace pushed to master « lightlocker: compile schemas »: https://git.io/fj3TD
_ris is now known as ris
Piece_Maker has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace pushed to release-19.03 « lightlocker: compile schemas »: https://git.io/fj3TS
ddellacosta has joined #nixos
mbrgm_ has joined #nixos
Acou_Bass has quit [Ping timeout: 255 seconds]
mbrgm has quit [Ping timeout: 244 seconds]
mbrgm_ is now known as mbrgm
Piece_Maker has quit [Ping timeout: 268 seconds]
Acou_Bass has joined #nixos
jerrytgarcia has quit [Quit: jerrytgarcia]
rprije has joined #nixos
wfranzini has quit [Ping timeout: 246 seconds]
gentauro has quit [Read error: Connection reset by peer]
Piece_Maker has joined #nixos
Acou_Bass has quit [Ping timeout: 246 seconds]
gentauro has joined #nixos
kleisli_ has quit [Ping timeout: 245 seconds]
Glider_IRC__ has joined #nixos
wfranzini has joined #nixos
Acou_Bass has joined #nixos
bikes has quit [Ping timeout: 255 seconds]
Piece_Maker has quit [Ping timeout: 245 seconds]
justanotheruser has joined #nixos
Mr_Keyser_Soze has joined #nixos
vk3wtf has quit [Ping timeout: 245 seconds]
Glider_IRC_ has quit [Ping timeout: 246 seconds]
ayerhart has quit [Quit: ayerhart]
wfranzini has quit [Ping timeout: 255 seconds]
ayerhart has joined #nixos