<clever> simpson: i dont think it has a limit on which line it has to appear on
marusich has joined #nixos
<simpson> clever: Oh interesting. Thanks.
<clever> if i'm reading it right, you could probably even put it on the last line of the time
<simpson> Appears to work, thanks.
takle has joined #nixos
[0x4A6F] has quit [(Ping timeout: 258 seconds)]
[0x4A6F] has joined #nixos
ryantrinkle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
<boxofrox> how are users in containers supposed to work? I created a user:group (container:container) on my nixos host, then I created a declarative container for apache where I set services.httpd.user = container. when the container starts, apache fails to run complaining about uid 'root.container' not found.
<boxofrox> fyi, using nixos 16.09
takle has joined #nixos
<clever> boxofrox: the containers have their own set of users
<boxofrox> i define those inside containers.<name>.config?
Avogadro has joined #nixos
<clever> yep
<boxofrox> will try. thanks!
<boxofrox> much obliged
takle has quit [(Ping timeout: 260 seconds)]
ktosiek has quit [(Remote host closed the connection)]
ryanartecona has joined #nixos
ktosiek has joined #nixos
eacameron has quit [(Remote host closed the connection)]
takle has joined #nixos
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
marusich has quit [(Ping timeout: 260 seconds)]
indi_ has joined #nixos
<boxofrox> it works \o/
ixxie has quit [(Ping timeout: 240 seconds)]
<boxofrox> i'm finding a symbolic link (result) in /var/www/web1 which is my documentRoot. I ran `nixos-rebuild switch` in /var/www/web1. did it create that link and is it ok to remove it?
indi_ has quit [(Ping timeout: 268 seconds)]
<clever> boxofrox: thats usualy made by things like 'nixos-rebuild build'
<boxofrox> ah. i did `nixos-rebuild test` in that folder also.
<copumpkin> cstrahan: around to take a look?
marusich has joined #nixos
<ryantrinkle> is there any info on how to add a python package to nixpkgs?
<ryantrinkle> i'm trying to package pgadmin4, but i'm not too familiar with python stuff
marusich has quit [(Ping timeout: 252 seconds)]
eacameron has joined #nixos
codeape has joined #nixos
<calvertvl> ryantrinkle: take a look at the nixpkgs manual, it has a whole section on Python packaging
<ryantrinkle> calvertvl: oh, of course; i keep forgetting that manual exists :P
codeape has quit [(Remote host closed the connection)]
eacameron has quit [(Quit: Leaving...)]
<NixOS_GitHub> [nixpkgs] amiloradovsky opened pull request #24941: dale: init at 0.1 (master...dale) https://git.io/vS5Ck
codeape has joined #nixos
takle has quit [(Remote host closed the connection)]
zeus_ has joined #nixos
codeape has quit [(Remote host closed the connection)]
ebzzry has joined #nixos
kyren has quit [(Ping timeout: 240 seconds)]
mbrgm has quit [(Ping timeout: 268 seconds)]
kyren has joined #nixos
mbrgm has joined #nixos
mbrgm has quit [(Changing host)]
mbrgm has joined #nixos
<gchristensen> ryantrinkle: to make it harder, there are 3 manuals that can be useful, NixOS, Nixpkgs, and Nix!
<ryantrinkle> gchristensen: haha yeah
<gchristensen> though _usually_ I can guess which one it'll be in...
<ryantrinkle> i'm not sure the nixpkgs manual existed when i was learning nix, though
<gchristensen> fair
<ryantrinkle> nixos and nix i at least remember *exist* :P
<ryantrinkle> pypi2nix seems to be hanging for me
ryanartecona has quit [(Quit: ryanartecona)]
<ryantrinkle> oh, no, it was just insanely slow
<ryantrinkle> stayed hung there for maybe 2 minutes
kyren has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub> [nixpkgs] snyh opened pull request #24942: buildGoPackage: fix preFixup failing (master...go-modules) https://git.io/vS5Cb
kyren has joined #nixos
iyzsong has joined #nixos
MP2E has joined #nixos
Avogadro has quit [(Ping timeout: 260 seconds)]
johnsonav has joined #nixos
mkoenig has quit [(Read error: Connection reset by peer)]
derjohn_mob has quit [(Ping timeout: 258 seconds)]
Supersonic112 has quit [(Disconnected by services)]
ebzzry has quit [(Ping timeout: 260 seconds)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
ndowens08 has joined #nixos
ebzzry has joined #nixos
mkoenig has joined #nixos
derjohn_mob has joined #nixos
takle has joined #nixos
ndowens08 has quit [(Remote host closed the connection)]
takle has quit [(Ping timeout: 240 seconds)]
ebzzry has quit [(Ping timeout: 258 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
exarkun has quit [(Ping timeout: 255 seconds)]
exarkun has joined #nixos
indi_ has joined #nixos
stepcut has joined #nixos
indi_ has quit [(Ping timeout: 268 seconds)]
drasich has quit [(Ping timeout: 258 seconds)]
drasich has joined #nixos
matthewbauer has joined #nixos
mizu_no_oto has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 252 seconds)]
hexagoxel has quit [(Ping timeout: 260 seconds)]
mguentner2 has quit [(Quit: WeeChat 1.7)]
<ryantrinkle> garbas:
<ryantrinkle> just wondering if it's normal for pypi2nix to sit for quite some time without seeming to do anything
<ryantrinkle> (perhaps it's something specific about my situation?)
<ryantrinkle> this has been running for about 10 mins: pypi2nix -v -v -V 3.5 -e unittest2==1.1.0
mguentner has joined #nixos
takle has joined #nixos
hexagoxel has joined #nixos
<ryantrinkle> hmm, ok; it appears to have been hanging while trying to establish a connection with ipv6
<ryantrinkle> disabling ipv6 system-wide prevented the hanging
<ryantrinkle> perhaps this is a general issue with my nixos setup?
sigmundv_ has joined #nixos
<ryantrinkle> (or perhaps with ipv6 support from pypi)
takle has quit [(Ping timeout: 260 seconds)]
myguidingstar has joined #nixos
praduca has quit [(Ping timeout: 252 seconds)]
berric has joined #nixos
mguentner2 has joined #nixos
takle has joined #nixos
mguentner has quit [(Ping timeout: 252 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
hamishmack has quit [(Ping timeout: 240 seconds)]
<timclassic> I'm using dockerTools to create a Docker image and I notice that /nix within the image is all owned by my UID (which owns /nix/... on the host). Is there a way to make sure that everything in /nix is owned by root:root within the image?
schoppenhauer has quit [(Ping timeout: 258 seconds)]
takle has joined #nixos
<timclassic> (I may have just figured it out...)
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<clever> timclassic: is it using tar to build the docker files?
schoppenhauer has joined #nixos
hamishmack has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
systemfault has joined #nixos
<timclassic> Ah thanks
<timclassic> I'm not invoking tar directly myself, but instead letting dockerTools do the work
<timclassic> This is good inspiration, though, maybe it will get me where I need to go.
c0dehero has quit [(Ping timeout: 240 seconds)]
marusich has joined #nixos
<clever> timclassic: i think the dockerTools expressions inside nixpkgs need to be fixed to force uid/gid 0/0
<timclassic> clever: Seems that way--/nix is just bind-mounted so I'm not allowed to change ownership of those files.
<timclassic> I'll try to patch it. I don't think I'm the only person that would want this.
<clever> but the commandline in make-system-tarball will make tar store uid 0 in the tar, and ignore the uid on-disk
<clever> so you dont need root to fix things
<timclassic> Agreed, the --owner/--group options may be useful. The relevant tar command is at https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/docker/default.nix#L343
<clever> it should be easy to test, just git clone that repo, edit the file, and run nix-build -I nixpkgs=/home/clever/nixpkgs to use the modified dockerTools
<timclassic> Agreed (and I'm already working within a clone, so I'm in good shape)
<clever> :)
elninja44 has quit [(Remote host closed the connection)]
<timclassic> I'll let you know what I find
<timclassic> I don't think I want to force it in the tar, in case the layer author wants some files set as a different uesr
justanotheruser has quit [(Ping timeout: 240 seconds)]
<timclassic> Though you could argue that /nix should always be set to root:root within a Docker container.
<timclassic> (though I haven't thought very hard about it)
justanotheruser has joined #nixos
<clever> and /nix/store must always be root:root and read-only on any proper nix machine
<clever> that rule is only broken when you install nix on another os, and you lack root to do things well
<timclassic> And that's the state I'm in as you've probably guessed
<timclassic> But I don
<timclassic> But I don't want to limit my Docker image building to NixOS-only
<clever> adding --owner=0 to the docker tools will make it work the same on both nixos and other
<timclassic> But then you remove the option to set any files outside of /nix in the layer as non-root, which may be desirable.
<timclassic> (Agreed that it would make the behavior consistent, though)
<clever> ah yeah, though nixos is capable of booting with only a /nix/store
<clever> so there may wind up being zero files outside of that dir
matthewbauer has quit [(Remote host closed the connection)]
matthewbauer has joined #nixos
sigmundv_ has quit [(Remote host closed the connection)]
exarkun has quit [(Ping timeout: 252 seconds)]
exarkun has joined #nixos
takle has joined #nixos
sigmundv has joined #nixos
justbeingglad has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
zeus_ has quit [(Remote host closed the connection)]
pie_ has joined #nixos
myguidingstar has quit [(Remote host closed the connection)]
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vS5Bu
<NixOS_GitHub> nixpkgs/master fe7fc0b Peter Hoeg: calibre: 2.82.0 -> 2.83.0
pie_ has quit [(Ping timeout: 240 seconds)]
stepcut has quit [(Remote host closed the connection)]
myguidingstar has joined #nixos
justbeingglad has left #nixos []
indi_ has joined #nixos
systemfault has quit [(Quit: Bye!)]
iyzsong has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
indi_ has quit [(Ping timeout: 268 seconds)]
johnramsden has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
sigmundv has quit [(Read error: Connection reset by peer)]
matthewbauer has quit [(Ping timeout: 240 seconds)]
matthewbauer has joined #nixos
MP2E has quit [(Quit: leaving)]
iyzsong has joined #nixos
drp has joined #nixos
calvertvl has quit [(Quit: leaving)]
takle has joined #nixos
matthewbauer has quit [(Ping timeout: 240 seconds)]
<timclassic> clever: I *think* I've got it fixed up
systemfault has joined #nixos
<timclassic> Also found a bug--the time on /nix wasn't being properly set to the epoch
matthewbauer has joined #nixos
takle has quit [(Ping timeout: 252 seconds)]
<NixOS_GitHub> [nixpkgs] ahmedtd opened pull request #24944: Make makewrapper picky (master...make-makewrapper-picky) https://git.io/vS5Rd
exarkun has quit [(Ping timeout: 258 seconds)]
exarkun has joined #nixos
davidak has quit [(Quit: Leaving.)]
johnsonav has quit [(Ping timeout: 258 seconds)]
davidak has joined #nixos
marusich has quit [(Quit: Leaving)]
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vS50m
<NixOS_GitHub> nixpkgs/master 58db209 Peter Hoeg: spotify: 1.0.52.717 -> 1.0.53.758...
matthewbauer has quit [(Ping timeout: 260 seconds)]
nicknovitski has quit [(Ping timeout: 252 seconds)]
simukis__ has joined #nixos
takle has joined #nixos
ryanartecona has joined #nixos
edvorg has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
mkoenig has quit [(Read error: Connection reset by peer)]
mkoenig has joined #nixos
oaierjg has joined #nixos
nixvana has joined #nixos
<nixvana> execuse, I log in nix-shell with `nix-shell -p python3 python3Packages.setuptools python35Packages.pyopenssl`
<nixvana> and, within nix-shell, I typed `sslocal -s $(ip4 address) -b 127.0.0.1 <blabla>`
<nixvana> this is an proxy agent software.
<nixvana> however, it output `Exception: libcrypto(OpenSSL) not found`
<oaierjg> Hi! I'm installing my first ever NixOS machine right now. It's an Intel NUC, nice little box. After creating my configuration.nix file, I edited it to add these three lines: "boot.loader.grub.enable = true;\nboot.loader.grub.version = 2;\nboot.loader.grub.device = "/dev/sda";" (escape those \n). After running `nixos-install` it complained "warning: File system 'ext2' doesn't support embedding." (I'm using ext4?!). It says "embedding is
<oaierjg> not possible" and that it can only be installed with blocklists. It also discourages me from using blocklists (what are they?). The last line says "install-grub.pl: installation of GRUB on /dev/sda failed". Sorry if this is a newbie question, but does anyone know how to start figuring out a solution to this? If not - how can I remove the half-done installation and start over?
<nixvana> I am confused. I have assign python35Packages.pyopenssl when log in nix-shell, why the python software still warrn me `libcrypto(OpenSSL) not found`?
<nixvana> what else should I do to let the python package find the OpenSSL?
indi_ has joined #nixos
indi_ has quit [(Ping timeout: 255 seconds)]
<oaierjg> I'm also curious to know what the right partition table to chose is? I chose gpt, but can't honestly say I understand the differences
markus1209 has quit [(Ping timeout: 260 seconds)]
markus1219 has quit [(Ping timeout: 260 seconds)]
<clever> oaierjg: did you use MBR or GPT?
aminechikhaoui has joined #nixos
<oaierjg> GPT - I chose that after reading this thread https://ubuntuforums.org/showthread.php?t=1457901
<oaierjg> clever
<clever> oaierjg: you need to make a dedicated 'bios boot partition' in the partition editor, grub needs that to boot
<clever> oaierjg: it has no fs type and does not need to be formated
<clever> 1MB in size should be plenty
<oaierjg> clever: is this too true when using MBR?
<clever> oaierjg: when using MBR, grub just jams it into "unused" space between sector 0 and the 1st partition
<clever> oaierjg: but GPT's partition table is larger, and its not safe to use space that is flagged as unused
<oaierjg> clever: would you recommend just going with MBR instead then? I'm very green when it comes to these things, as you probably notice...
<clever> oaierjg: just make a bios boot partition, it only takes 5 seconds to do that
<oaierjg> clever: Thanks for replying. I'm a bit unsure how to do that, so will just take the easy way out. Is it correct that MBR is labelled "msdos" in GParted?
<clever> oaierjg: yeah
<clever> oaierjg: and also, bios boot partition is a checkbox in gparted, under flags
<clever> oaierjg: they call it bios_grub
<oaierjg> Oh! I was using the `mkfs.ext4 -L nixos /dev/sda` as in the Nixos manual
<clever> oaierjg: the ext4 must be on a partition, not the root of the device, your probably destroying the partition table every time you do that
AllanEspinosa has quit [(Ping timeout: 240 seconds)]
hyphon81 has quit [(Remote host closed the connection)]
<NixOS_GitHub> [nixpkgs] gebner pushed 1 new commit to master: https://git.io/vS5us
<NixOS_GitHub> nixpkgs/master 2ec6e82 Gabriel Ebner: gpxsee: 2.17 -> 4.3
<timclassic> clever: Thanks, your suggestions helped me arrive at a solution. I'm preparing a PR now, but here is the change: https://github.com/timclassic/nixpkgs/commit/b72e3e4aca57accc9d9e73627e3e95480f109d0b
exarkun has quit [(Ping timeout: 268 seconds)]
FRidh has joined #nixos
oaierjg has quit [(Ping timeout: 255 seconds)]
exarkun has joined #nixos
<FRidh> nixvana: maybe the package is broken and it needs to be patched in order to find openssl
oaierjg has joined #nixos
<FRidh> that hapens
simukis__ has quit [(Ping timeout: 240 seconds)]
<FRidh> anyway, it appears to me the problem is with your sslocal script
ambro718 has joined #nixos
<clever> timclassic: looks good
nixvana has quit [(Quit: Page closed)]
ryanartecona has quit [(Quit: ryanartecona)]
systemfault has quit [(Quit: Bye!)]
takle has joined #nixos
oaierjg has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub> [nixpkgs] gebner pushed 1 new commit to master: https://git.io/vS5ux
<NixOS_GitHub> nixpkgs/master 3adc59d Gabriel Ebner: gpxsee: fix open dialog and online maps
takle has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #24940: etcd module: fix extraConf manual link (master...etcd-extraconfig-link) https://git.io/vS53U
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to release-17.03: https://git.io/vS5zq
<NixOS_GitHub> nixpkgs/release-17.03 b647a67 edef: etcd module: fix extraConf manual link
oaierjg has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vS5zC
<NixOS_GitHub> nixpkgs/master 605ce9b Guillaume Maudoux: cppcheck: 0.76.1 -> 0.78 (#24937)...
mounty has quit [(Ping timeout: 260 seconds)]
mounty has joined #nixos
takle has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #24935: prettier: init at 1.1.0 (master...prettier) https://git.io/vS5fC
takle has quit [(Ping timeout: 240 seconds)]
oaierjg has quit [(Ping timeout: 252 seconds)]
oaierjg has joined #nixos
mounty has quit [(Ping timeout: 240 seconds)]
mounty has joined #nixos
<Isorkin> How to add custom package http://nixpaste.lbr.uno/raw/zXyXHW-F to /etc/nixos/configuration.nix ? imports = [ /home/test/mypkgs/default.nix ]; - not work
<Mic92> Isorkin: callPackage
<Mic92> mypkg = pkgs.callPackage ./mypkg.nix { }
<ahmedtd> How do I escape two single quotes in a multiline string?
mounty has quit [(Ping timeout: 260 seconds)]
johnramsden has quit [(Quit: Leaving)]
systemfault has joined #nixos
<NixOS_GitHub> [nixpkgs] ahmedtd opened pull request #24945: htmlmin: init at 0.1.10 (master...htmlmin) https://git.io/vS5zd
<NixOS_GitHub> [nixpkgs] ahmedtd opened pull request #24946: csscompressor: init at 0.9.4 (master...csscompressor) https://git.io/vS5zb
cfricke has joined #nixos
<Isorkin> Mic92: error - The option `mypkg' defined in `/etc/nixos/webserver.nix' does not exist
<Mic92> Isorkin: the literal is `mypkg` is just a variable name. you need to put this into a `let in` block.
thc202 has joined #nixos
<Mic92> or just put (pkgs.callPackage ./mypkgs.nix {}) into systemPackages
stepcut has joined #nixos
stepcut has quit [(Ping timeout: 258 seconds)]
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vS5gc
<NixOS_GitHub> nixpkgs/master 9ee2143 Vladimír Čunát: treewide: remove unused buildEnv parameters
<sphalerite> Why is enableParallelBuilding not true by default?
<MichaelRaskin> Long sad story about the details of getting _anything_ about parallel builds merged in the first place
<Mic92> Isorkin: yes, both option should work
<Mic92> You can also use pkgs.nginx.override or pkgs.nginx.overrideDerivation, if you want to change to make small modifications
<ronny> hmm
<ronny> as thing are i'll have to leave nxios behind next week :/
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/vS5gV
<NixOS_GitHub> nixpkgs/staging 5c8ffe0 Frederik Rietdijk: Python 3.x: do not regenerate _sysconfigdata...
cfricke has quit [(Quit: WeeChat 1.7)]
mounty has joined #nixos
oahong has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub> [nixpkgs] timclassic opened pull request #24947: docker: improve reproducibility of layers (master...docker-repro) https://git.io/vS5gi
Filystyn has joined #nixos
<Isorkin> Mic92: With overrideDerivation not understood
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vS5g1
<NixOS_GitHub> nixpkgs/master 4ecafcf Peter Hoeg: quaternion: init at 2017-04-15
takle has joined #nixos
oahong has joined #nixos
thaega has quit [(Read error: Connection reset by peer)]
exarkun has quit [(Ping timeout: 260 seconds)]
<Mic92> Isorkin: you just want to change simple aspects like applying a patch. Then it is probably not necessary to copy the whole package, but only override single attributes.
takle has quit [(Ping timeout: 268 seconds)]
<Mic92> if you just want to...
exarkun has joined #nixos
mounty has quit [(Ping timeout: 260 seconds)]
<Isorkin> Mic92: Can you show a working example?
mudri has joined #nixos
mounty has joined #nixos
<unlmtd[m]> is there anything that would prevent someone to define services with nix on a different distro?
<Mic92> overrideDerivation works similar
<Mic92> Here I used both override and overrideDerivation: https://github.com/Mic92/nixos-configuration/blob/master/.nixpkgs/config.nix#L191
<Mic92> override overrides dependencies
<unlmtd[m]> im thinking of slowly morphing a void install to nix definitions, to start using nix on a runit based system
<unlmtd[m]> so I imagine I could write expressions that could symlink to runit services?
<Mic92> unlmtd[m]: there is not integration with other service manager at the moment. And also systemd currently include some patches. However there a some people who do this: https://github.com/LnL7/nix-darwin
<unlmtd[m]> iv seen triton and notos
<unlmtd[m]> so it gave me more assurance to try
<unlmtd[m]> it seems triton broke some of the purity to make things easier
<Mic92> I wonder why runit was chosen and not something modern like s6
<Mic92> The source code of runit scares me
<unlmtd[m]> Mic92: tell me more?
<unlmtd[m]> is s6 usable
<MichaelRaskin> Well, for most of the useful services in NixOS it is possible to ask NixOS to generate a pure-shell runner script
<NixOS_GitHub> [nixpkgs] peterhoeg opened pull request #24948: bluetooth: use upstream's recommendation for enabling interfaces (master...m/bluetooth) https://git.io/vS52e
systemfault has quit [(Quit: Bye!)]
<unlmtd[m]> looks like s6 hasnt been around that long
oaierjg has quit [(Ping timeout: 260 seconds)]
<unlmtd[m]> or I could always go openrc
mounty has quit [(Ping timeout: 252 seconds)]
<unlmtd[m]> main goal is to strip out systemd and learn sane service management
<Mic92> The systemd source code is pretty
<MichaelRaskin> I have yet to find a use for sane service management
<Mic92> I learned a lot from it
<Mic92> They actually understood syscalls and how to use them in a safe way.
oaierjg has joined #nixos
<unlmtd[m]> MichaelRaskin: a bit like finding a use for strenght training
<clever> Mic92: i have heard of bugs in systemd, like when a process quits, systemd deletes all state about that pid, before it can finish processing journal messages related to that pid
<unlmtd[m]> Mic92: im sure they did, but one of my life goals is to understand the OS, so I am attracted to more modular designs
<clever> Mic92: then it doesnt know which unit to tag the journal data under
<MichaelRaskin> I mean, systemd has a crazy idea of what it wants to change, so I have ran busybox as my init for quite some time, now it is more of sinit + SBCL as the real service starter
plumps has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<MichaelRaskin> Haven't yet had a desire to reimplement anything for service management, pkill and asking to respawn a service works well enough for waht I run
<MichaelRaskin> clever: it is not that they delete the state
<unlmtd[m]> clever: you think runit code is scary?
<clever> unlmtd[m]: here is another random example i put together, how to boot linux with a single ELF file and no forking, https://gist.github.com/cleverca22/ef84b943d33b1aa33f8ecdeb32c20c09
<clever> unlmtd[m]: i havent looked at its source
<MichaelRaskin> It is more that they use cgroup, and the cgroup gets destroyed, and they don't understand cgroups and pipes well enough to understand that a pipe where the message comes is a good enough indicator
<Mic92> they have not web git, but, they code base is pretty arcane
<clever> unlmtd[m]: the above gist uses a haskell program as pid 1, and as the repl for a basic shell
<unlmtd[m]> wow haskell
<clever> MichaelRaskin: ah
<Mic92> Like it was written in the 80er
<unlmtd[m]> MichaelRaskin: was 'they' about runit?
<MichaelRaskin> clever: well, I will believe you are serious anout no forking when you can do no forking while attaching LVM2 volumes
ixxie has joined #nixos
<MichaelRaskin> unlmtd[m]: no, systemd
<unlmtd[m]> I see
<clever> MichaelRaskin: the above gist doesnt have any lvm support, and currently doesnt even mount a persistant drive
markus1189 has joined #nixos
markus1199 has joined #nixos
<MichaelRaskin> It does mount /proc
<MichaelRaskin> I have written enough bootscripts to understand how it can trivially mount /
<clever> MichaelRaskin: yep, but i was testing all of this in qemu and had no rootfs to actualy mount
oaierjg has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin> Well, creating an .img with an ext4 is also not hard
<clever> yeah
<clever> but i already have the entire closure of the os in the initrd
<MichaelRaskin> I mean, I was specifically setting a goalpost that is reasonable but I will not have to move
<clever> theres not much need for the .img
<MichaelRaskin> Well, it is because it doesn't do that much
<clever> yeah
<clever> it was more as an example that you can run haskell without needing to rely on any init framework
<MichaelRaskin> I mean, at that amount of functionality I could just work with busybox builtins and then exec whatever interpreter I want
<MichaelRaskin> It's no susrprise that approximately any language with FFI can do the same
<clever> yeah
<clever> about the only difference is that the haskell repl can use lightweight threads to fork off "children", while busybox has to spawn whole new processes, and re-initialize busybox inside each
<MichaelRaskin> For my current boot I discovered that 1 GiB RAM is enough to boot an all-firmware all-modules glibc-carrying I-do-not-care-at-all initramfs
<MichaelRaskin> And it doesn't really cost much, because on switch_root it gets discarded anywya
<MichaelRaskin> clever: I think busybox builtins do not require new initialization
<MichaelRaskin> And I am not even sure if they need forking
<clever> yeah, builtins are a different thing
<MichaelRaskin> Ah, OK, it doesn't try to run cat internally
<MichaelRaskin> What a pity
<NixOS_GitHub> [nixpkgs] vcunat opened pull request #24949: desmume: fix mesa+osmesa (master...p/desmume-osmesa) https://git.io/vS5az
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/vS5ao
<NixOS_GitHub> nixpkgs/master c2da0fb Michael Raskin: clac: init at 20170416
<MichaelRaskin> clever: I think even adding networking with DHCP would be annoying
<MichaelRaskin> Wait a minute where in this repo is the actual handling of ehternet implemented/imported
<MichaelRaskin> Looks horrible, like if they write their own drivers for Xen/Tap
<clever> https://github.com/GaloisInc/HaNS/tree/master/src/Hans/Device it appears to only support tap devices, and the xen hypercalls
<MichaelRaskin> Yes, that's why I wondered whether they write their own drivers
<clever> but it could be possible to just do raw ethernet frames into eth0 with the linux socket api
<clever> its meant to run as a unikernel under xen
<clever> and the tap code is probably just to make it easyer to test the networking stack outside of xen
<MichaelRaskin> Then Xen code does give some hope that they should be able to just support single Linux-Ethernet type without writing actual hardware drivers
<clever> https://github.com/GaloisInc/HaNS/issues/3 oh, there is even a fork that used pcap to handle the rx side
<MichaelRaskin> I wonder how much they win in the boot time w.r.t. having tools like "ip" in the image
<MichaelRaskin> To configure stuff initially (the tools can be discarded later)
<Mic92> or directly talk netlink
<clever> i have had to deal with setting the ip directly before: https://github.com/cleverca22/toxvpn/blob/master/src/interface_linux.cpp#L45-L52
gal_bolle has joined #nixos
takle has joined #nixos
<Isorkin> https://github.com/NixOS/nixpkgs/issues/24599#issuecomment-294311064 It's possible to check the config? Correctly?
Avogadro has joined #nixos
FRidh has quit [(Quit: Konversation terminated!)]
<NixOS_GitHub> [nixpkgs] abbradar pushed 2 new commits to master: https://git.io/vS5Vb
<NixOS_GitHub> nixpkgs/master 3507da0 Nikolay Amiantov: dropbear: fix static build...
<NixOS_GitHub> nixpkgs/master 2f09105 Nikolay Amiantov: mumble_git: 1.3.0-git-2016-04-10 -> 2017-04-16
<NixOS_GitHub> [nixpkgs] abbradar pushed 1 new commit to release-17.03: https://git.io/vS5we
<NixOS_GitHub> nixpkgs/release-17.03 6334cf1 Nikolay Amiantov: dropbear: fix static build...
Itkovian has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/vS5wv
<NixOS_GitHub> nixpkgs/master ba7151e Michael Raskin: clac: add missing expression body; thanks @joachifm for the catch
irejshrha has joined #nixos
<irejshrha> Hi! I installed Nixos today. When the installation was done there was no Wifi settings nor any desktop environment set. I'm now on the live cd (or usb stick) and would like to change the configuration.nix to include Gnome3. My question is this: how can I from the live-cd (where I have wifi) install Gnome, so that it is available and starts automatically on boot? Many thanksHi! I installed Nixos today. When the installation was done
<irejshrha> there was no Wifi settings nor any desktop environment set. I'm now on the live cd (or usb stick) and would like to change the configuration.nix to include Gnome3. My question is this: how can I from the live-cd (where I have wifi) install Gnome, so that it is available and starts automatically on boot? Many thanks
jeremejevs has joined #nixos
Itkovian has quit [(Ping timeout: 258 seconds)]
c0dehero has joined #nixos
reinzelmann has joined #nixos
jeremejevs has quit [()]
jeremejevs has joined #nixos
alx741_ has joined #nixos
<ixxie> I am converting a module I made into a proper package, and I am wondering if I can add a variable to path in the same way
drp has quit [(Remote host closed the connection)]
alx741 has quit [(Ping timeout: 240 seconds)]
phorse has quit [(Read error: Connection reset by peer)]
mudri has quit [(Read error: Connection reset by peer)]
mudri has joined #nixos
mudri has quit [(Ping timeout: 260 seconds)]
exarkun has quit [(Ping timeout: 258 seconds)]
exarkun has joined #nixos
<gchristensen> domenkozar: I thought you might enjoy reading the journey I went through here :P
erictapen has joined #nixos
<unlmtd[m]> Mic92: s6 website mentions runit as 'excellent quality code'
<Mic92> unlmtd[m]: well it is from the same people
<Mic92> ok it is not
<unlmtd[m]> iv only found one distro that uses s6, oberon
<Mic92> https://github.com/vulk/runit/blob/master/src/byte_copy.c < dude there are compiler, which can do way better
oaierjg has joined #nixos
<unlmtd[m]> interesting
<unlmtd[m]> Mic92: thanks for the pointers
<unlmtd[m]> do you use s6?
<MichaelRaskin> I wonder if they want that semantics for overlapping blocks
<Mic92> this looks also pretty interesting: https://github.com/vulk/runit/blob/master/src/alloc.c#L19
<Mic92> looks like they do not trust their libc
Avogadro has quit [(Ping timeout: 260 seconds)]
<gchristensen> oh this is weird
<gchristensen> I know Vulk and I know Taylor, committer of that file :)
<MichaelRaskin> Hm. I cannot give a meaningful explanation why having a 2KiB no-free special buffer would make sense
<Mic92> they did not wrote it
<Mic92> it is just a mirror
<gchristensen> irejshrha: do the installation process again, but don't format or repartition the disks. Skip to mounting the disk, edit your configuration file to enable Gnome (in /mnt/etc/nixos/configuration.nix -- there will be a comment showing how), and rerun nixos-install
<MichaelRaskin> Maybe most of the process instances actually allocate less than 2KiB?
<gchristensen> Mic92: true
mudri has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #24875: fava: 1.2 -> 1.3 (master...update-fava) https://git.io/vSSyd
<gchristensen> irejshrha: what wireless card do you have?
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to master: https://git.io/vS5rZ
<NixOS_GitHub> nixpkgs/master 2065eea Vladimír Čunát: mesa: reduce usage of the attribute and explain why
<NixOS_GitHub> nixpkgs/master 9877764 Vladimír Čunát: wxGTK*: avoid the mesa attribute...
simukis__ has joined #nixos
oaierjg has quit [(Ping timeout: 260 seconds)]
reinzelmann has quit [(Quit: Leaving)]
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #24908: cjdns: 18 -> 19.1 (master...cjdns-v19.1) https://git.io/vS7kY
romildo has joined #nixos
simukis__ has quit [(Quit: simukis__)]
simukis__ has joined #nixos
<romildo> I cannot rebuild my unstable NixOS system because an error when compiling libgit2-glib-0.24.4. It seems related to https://github.com/NixOS/nixpkgs/issues/24807. Any clues on a fix?
<Mic92> does updating libgit2-glib help?
<jeremejevs> Hi, I've built XTerm with "--enable-exec-xterm", which lets me use the "spawn-new-terminal" action (launch a new XTerm in the same directory). It works, but problem is, "spawn-new-terminal" uses "/proc/*/exe" symlink to find the original executable, and "exe" points at ".xterm-wrapped", instead of just "xterm". This results in "XAPPLRESDIR" env var never
<jeremejevs> being set, and XTerm is loaded without the default config file (it looks for "$XAPPLRESDIR/XTerm"). I could just replicate the defaults in my ".Xresources", but is there a proper solution to this? Can this be somehow patched inside a derivation?
myguidingstar has quit [(Ping timeout: 258 seconds)]
<romildo> Mic92 do you mean editing the nix expression to update to a newer version of libgit2-glib? I will try that.
<Mic92> yes
codeape has joined #nixos
<romildo> Mic92, libgit2-glib-0.25.0 compilation finished successfully. Now I will try to rebuild my system using it.
<Mic92> romildo: then this update should go to nixpkgs as well.
nixvana has joined #nixos
nixvana has quit [(Client Quit)]
codeape has quit [(Remote host closed the connection)]
<romildo> I am going to test it with the following in nixpkgs.config.packageOverrides :
<romildo> gnome3 = pkgs.gnome3 // {
<romildo> libgit2-glib = pkgs_master.gnome3.libgit2-glib;
<romildo> };
<romildo> Is that the correct?
<romildo> pkgs_master refers to my local copy of the nixpkgs repository.
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vS5o0
<NixOS_GitHub> nixpkgs/master 8356c6c Peter Hoeg: handbrake: 1.0.3 -> 1.0.7
<Mic92> romildo: it is only used by gitg, I can test this as well
<Mic92> also the update does not include a lot commit
<romildo> Mic92, gitg needs updating too, because the current version in the repository requires libgit2-glib-1.0 < 0.25.0
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vS5oo
<NixOS_GitHub> nixpkgs/master 12d44c0 Peter Hoeg: quaternion: get rid of superfluous icon-theme.cache
<romildo> Mic92, gitg needs updating too, because the current version in the repository requires libgit2-glib-1.0 < 0.25.0
<Mic92> got that
blackcat[m] has left #nixos ["User left"]
<romildo> Mic92, gitg-3.23.90 built successfully. But it is unstable gnome I suppose.
pie_ has joined #nixos
marsel has joined #nixos
<ixxie> I am trying to package a command line tool for Nix, can someone link a simple example of how this can be done?
edvorg has quit [(Remote host closed the connection)]
<ixxie> specifically of how to tell nix to add the command to path
<ixxie> I found this - https://github.com/NixOS/nixos/blob/master/modules/installer/tools/tools.nix - but its a module not a package
<makefu> ixxie: normally you could use the fixupPhase to update the path of a command , e.g. http://cgit.euer.krebsco.de/stockholm/tree/krebs/5pkgs/tinc_graphs/default.nix#n14
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #24138: plex: 1.3.3.3148 -> 1.5.5.3634 (master...pjones/plex) https://git.io/vyNqi
edvorg has joined #nixos
<7GHAAS7V7> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vS5Km
<7GHAAS7V7> nixpkgs/master 5a50b26 Peter Jones: plex: Don't overwrite primary database on restart...
<7GHAAS7V7> nixpkgs/master 2db0cf0 Joachim F: Merge pull request #24900 from pjones/pjones/plex-service...
<21WAACPLJ> [nixpkgs] joachifm closed pull request #24900: plex: Don't overwrite primary database on restart (master...pjones/plex-service) https://git.io/vSQy9
<romildo> Mic92, Are you going to submit a
<romildo> PR to fix this issue, in case it works?
<NixOS_GitHub> [nixpkgs] joachifm pushed 3 new commits to master: https://git.io/vS5KG
<NixOS_GitHub> nixpkgs/master dac0ad2 taku0: thunderbird-bin: 52.0 -> 52.0.1
<NixOS_GitHub> nixpkgs/master 692ea2b taku0: thunderbird: 52.0 -> 52.0.1
<NixOS_GitHub> nixpkgs/master 289a3c2 Joachim F: Merge pull request #24929 from taku0/thunderbird-bin-52.0.1...
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vS5KR
<NixOS_GitHub> nixpkgs/master 9fc61d0 Vladimír Čunát: simgrid: fixup sandboxed build after update #24915
<Mic92> romildo: I will push this directly to master
exarkun has quit [(Ping timeout: 240 seconds)]
exarkun has joined #nixos
<NixOS_GitHub> [nixpkgs] matthiasbeyer opened pull request #24950: clac: init at 2017-04-16 (master...add-clac) https://git.io/vS5Kw
erictapen has quit [(Ping timeout: 258 seconds)]
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vS5KM
<NixOS_GitHub> nixpkgs/master 65c99b7 Jörg Thalheim: libgit2-glib: 0.24.4 -> 0.25.0...
<NixOS_GitHub> nixpkgs/master ea16d72 Jörg Thalheim: gitg: 3.22.0 -> 3.23.90
<Mic92> romildo: ^
<Isorkin> Mic92: what it is necessary to make to set - let mypkgs for all configuration files? Now he at me is written configuration.nix, webserver.nix
<Mic92> Isorkin: add it to packagesOverride, if the package should be globally available.
<NixOS_GitHub> [nixpkgs] matthiasbeyer closed pull request #24950: clac: init at 2017-04-16 (master...add-clac) https://git.io/vS5Kw
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.03: https://git.io/vS5K7
<NixOS_GitHub> nixpkgs/release-17.03 a3e77e0 Vladimír Čunát: simgrid: fixup sandboxed build after update #24915...
edvorg has quit [(Remote host closed the connection)]
Guest41414 has joined #nixos
Guest41414 has quit [(Client Quit)]
<Isorkin> Mic92: not work - http://nixpaste.lbr.uno/raw/0NPZ8IKJ - undefined variable ‘mypkgs’ at /etc/nixos/webserver.nix:11:28
<Mic92> Isorkin: you need to add the package itself to packagesOverride: https://github.com/Mic92/nixos-configuration/blob/master/.nixpkgs/config.nix#L196
<Mic92> nginx = callPackage ./nginx.nix {};
<Mic92> packagesOverrides = { nginx = callPackage ./nginx.nix {}; };
<Mic92> Isorkin: also, if you want to build a package with debug flags, you have to set dontStrip = true; in the package otherwise symbols are stripped again.
gal_bolle has quit [(Quit: Konversation terminated!)]
<NixOS_GitHub> [nixpkgs] joachifm pushed 1 new commit to release-17.03: https://git.io/vS56V
<NixOS_GitHub> nixpkgs/release-17.03 07bbc3e Dan Peebles: buildbot-master module: fix overly restrictive option type for masterCfg...
derjohn_mob has quit [(Ping timeout: 258 seconds)]
irejshrha has quit [(Remote host closed the connection)]
<Isorkin> Mic92: Did not understand, left as is
berric has quit [(Remote host closed the connection)]
<romildo> Mic92, thanks for fixing the issue related to gitg.
sigmundv_ has joined #nixos
sigmundv_ has quit [(Ping timeout: 240 seconds)]
drasich has quit [(Ping timeout: 260 seconds)]
<pie_> hey guys, nix-env -iA nixos.kdeApplications.kio-extras isnt working for me but its the command i should use according to https://nixos.org/nixos/packages.html
<pie_> ah, right, old branch again
sigmundv_ has joined #nixos
edvorg has joined #nixos
exarkun has quit [(Ping timeout: 260 seconds)]
exarkun has joined #nixos
proteusguy has quit [(Ping timeout: 240 seconds)]
proteusguy has joined #nixos
<pie_> ugh, how do you guys use mtp with kde?
<garbas> ryantrinkle: hmm, i don't have ipv6 setup at home. i will try on tuesday at work. can you create an issue for this so i dont forget?
civodul has joined #nixos
pie_ has quit [(Quit: Leaving)]
<romildo> Maybe someone could merge https://github.com/NixOS/nixpkgs/pull/23333 [qt5ct: 0.24 -> 0.30]
<copumpkin> pierron: what ended up happening to specifying the version of nixpkgs (including modules?) inside a config module? I remember you did some work on that, perhaps for declarative containers, but don't know what happened to it
mkoenig has quit [(Remote host closed the connection)]
<gchristensen> for some context, https://github.com/NixOS/nixops/issues/649
<gchristensen> where I have implemented it for nixops :)
<gchristensen> already super helpful, I'm using it to deploy unstable on aarch64 and stable on x86-64
<gchristensen> I left so many comments on that issue because I was about to give up each time and was leaving context for if anyone wanted to take it up :P
<ryantrinkle> garbas: created issue here: https://github.com/garbas/pypi2nix/issues/122
kori_ is now known as kori
kori has quit [(Changing host)]
kori has joined #nixos
<garbas> ryantrinkle: tnx!
<tjg1> how do i make OVMF (EFI firmware) available in virtmanager (libvirtd)?
<gchristensen> :(, copumpkin
<copumpkin> Sander: you around? have a question about node packages
<gchristensen> easter sunday, things are quiet :)
<copumpkin> pfffft
<ixxie> I am trying to wrap my head around how to substitute $out into some variables in a shell script I am packaging
<gchristensen> substituteAllInPlace with @out@ in your script's file
<ixxie> aha
<ixxie> thanks gchristensen :)
<peterhoeg> Happy easter to all!
<joachifm> peterhoeg: same :)
<peterhoeg> I've got to be honest - I don't know what the proper greeting... "Merry easter"?
<ixxie> peterhoeg: it's `Jolly Egg-fest`
<gchristensen> happy is what we stay in USA
romildo has quit [(Quit: Leaving)]
MP2E has joined #nixos
<peterhoeg> ixxie: I like that!
byteflame has joined #nixos
elninja44 has joined #nixos
<ixxie> gchristensen: where do you put that substitution? I tried something like: let thing = pkgs.substituteAllInPlace script.sh in stdend.mkDerivation
<ixxie> no such luck
<gchristensen> search.nix.gsc.io & substituteAllInPlace for an example
<gchristensen> bad internet, or I'd find it for you
<ixxie> cheers
edvorg has quit [(Remote host closed the connection)]
<ixxie> (saving that search for future reference xD)
<gchristensen> it also has editor integration with at least vim and emacs, probably others
<gchristensen> I have a handy function I've considered sending upstream...
<gchristensen> or something like that, I copied it out of another file so it may not be perfectly correct
<sphalerite> gchristensen: why copy then substitute in place, rather than substituting from ${script} to $out?
<NixOS_GitHub> [nixpkgs] Mic92 pushed 3 new commits to master: https://git.io/vS5DA
<NixOS_GitHub> nixpkgs/master 3e915ae Richard Zetterberg: Adds myself as a maintainer
<NixOS_GitHub> nixpkgs/master e938024 Richard Zetterberg: gdrive: init at 2.1.0...
<NixOS_GitHub> nixpkgs/master 69d77ea Jörg Thalheim: Merge pull request #24848 from rzetterberg/master...
<gchristensen> sphalerite: all I had was a hammer, so the problem looks like a nailI think :)
<ixxie> gchristensen: thanks... it seems I am running into other problem
<copumpkin> if I run `nix-env -iA blah` as a non-root user in NixOS and blah evaluates to a package that's already in the store, is the daemon involved at all?
<sphalerite> gchristensen: but there's a screwdriver in stdenv :p
<copumpkin> or does my nix-env just modify my profile directly without talking to the daemon?
<gchristensen> sphalerite: yeah but I didn't know I had one :)
calvertvl has joined #nixos
<sphalerite> copumpkin: Yes, because it builds a new profile which goes into the store
<copumpkin> ah, that makes sense
<gchristensen> looks like I have to take back everythhing I've said about "don't use zfs on small systems"
* gchristensen is thrilled to be wrong
mtetreault has joined #nixos
<Dezgeg> any specific benefit there?
exarkun has quit [(Ping timeout: 255 seconds)]
<mtetreault> I was wondering is there any way to specify a keyboard model to have fn key working on a laptop?
exarkun has joined #nixos
<gchristensen> I think it is probably more stable than btrfs, the compression is neat, no inode limit compared to ext4, my previous go-to :)
<Dezgeg> I have been waiting for xfs reflink support to get stable, that's something I wanna try
<MichaelRaskin> Isn't fn a controller-level thing?
<copumpkin> do any of our VM tests run multi-user nix checks?
<gchristensen> also since canonical says they can ship zfs with ubuntu, seems good
<gchristensen> copumpkin: what kind of checks?
<copumpkin> I'm trying to check that my ownership of the store is correct
<mtetreault> MichaelRaskin: I have no idea, I just know that the fn key are usually working within debian, but they are not working under nixos. There is probably something to enable.
<copumpkin> so I'm `su foo -c "nix-env -iA blah"` inside a VM test script
<copumpkin> and it's failing weirdly and I wasn't sure if we're doing something weird inside the VM with mounts
<MichaelRaskin> Working — as in the presses are handled to perform correct function?
<gchristensen> copumpkin: have you asked the test vm to have a writable store?
<copumpkin> yeah
<MichaelRaskin> mtetreault: run showkey or xev and see if the keypresses are _reported_
<mtetreault> MichaelRaskin: I'll try that :)
<copumpkin> boot-after-install# error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied
<MichaelRaskin> Is NIX_REMOTE=daemon set?
<MichaelRaskin> Is nix-daemon started?
<copumpkin> checking now
<ixxie> gchristensen: I don't get it.... https://gist.github.com/ixxie/3a131cdefdd3ee60ebd77f7e013bd63b this should work and allow me to launch script.sh with script right? >.<
<copumpkin> MichaelRaskin: probably a NIX_REMOTE issue now that you mention it
<copumpkin> oh!
<copumpkin> I need to do su -
<copumpkin> because otherwise the extra user isn't going to get environment properly
<gchristensen> ixxie: what is line 21 for? also need to mkdir $out
<copumpkin> MichaelRaskin: my hesitation around putting the chown inside nixos-prepare-root, is that I think we disable chown inside build environments in recent nix
<copumpkin> MichaelRaskin: perhaps worth revisiting that decision
<copumpkin> actually that change might have been reverted
<ixxie> gchristensen: I thought that is how I ensure the program can be launched... I found it in some other examples but honestly I don't understand it too well.
<MichaelRaskin> Is nixos-prepare-root run inside build environment?
<copumpkin> not in this PR, but the whole point of it was to allow that
<mtetreault> MichaelRaskin: so the events are reported in xev!
<ixxie> gchristensen: I thought $out was just the store address where nix dumps my package
<MichaelRaskin> mtetreault: well, you can always make them WM-level keybindings
sigmundv_ has quit [(Ping timeout: 255 seconds)]
<MichaelRaskin> Or file a more specific issue
<gchristensen> ixxie: it is but you must make it
<mtetreault> MichaelRaskin: That should be documented in i3 manual,right?
<MichaelRaskin> Oh, i3…
<MichaelRaskin> I am not sure if you are supposed to ask i3 or to run xbindkeys
<gchristensen> mtetreault: what does "Working" mean to you?
<gchristensen> like media keys?
<mtetreault> gchristensen: I am mainly interrested by the birightness up/down and mute key
<gchristensen> i3 likes to manage keys, as the i3 manual indicates
<gchristensen> mtetreault: https://gist.github.com/grahamc/3d3cacd7a3213167d2ac1b0fdc27d262 this is a segment of my i3 config file, you should be able to adapt it for your needs :0
<mtetreault> gchristensen: oohh, thank you very much :)
<mtetreault> gchristensen: I would also have a question concerning the documentation!
<gchristensen> oko
<mtetreault> In the documentation it's talking about customising package. Ie: nixpkgs.config.firefox.enableGoogleTalkPlugin = true
<mtetreault> In some other packages ie Keepass, to enable a plugin you need to override the package. Would there be an advantage using one over the other^
<gchristensen> maybe someone else can answer that question
<mtetreault> sure, if anyone esle have the answer. that would be appreciated!
<MichaelRaskin> Well, adding config options is done differently for system packages and profile packages, requires an extra step when packaging and is a global imperative-style change
nicknovitski has joined #nixos
<copumpkin> MichaelRaskin: yeah it was NIX_REMOTE, thanks for the idea :)
xadi has joined #nixos
mtetreault has quit [(Quit: Leaving)]
<gchristensen> by the way, if anyone is interested in (or knows someone who would be interested in) a paid summer internship with tumblr's security team in NYC, we're looking
<sphalerite> gchristensen: this summer?
<gchristensen> yeah
<ixxie> gchristensen: I can't seem to get this working, I am thinking I will formulate this as a Stackoverflow question since I figure it would be of use to others
<gchristensen> ok, ixxie :)
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vS5Sl
<NixOS_GitHub> nixpkgs/master 99d4ed5 Peter Hoeg: bluetooth: use upstream's recommendation for enabling interfaces...
<NixOS_GitHub> nixpkgs/master 16f5bc0 Jörg Thalheim: Merge pull request #24948 from peterhoeg/m/bluetooth...
<copumpkin> MichaelRaskin: updated to add the chown, in nixos-install for now (until we resolve the builder and chown question)
<NixOS_GitHub> [nixpkgs] Mic92 pushed 4 new commits to master: https://git.io/vS5Sr
<NixOS_GitHub> nixpkgs/master 33cfee8 Jörg Thalheim: buildRustPackage: add cargoBuildFlags
<NixOS_GitHub> nixpkgs/master be70c02 Jörg Thalheim: buildRustPackage: add standard package hooks...
<NixOS_GitHub> nixpkgs/master e8d5af0 Jörg Thalheim: buildRustPackage: only copy executables to bin...
<sphalerite> It does sound interesting, but between living in Europe, the fairly short notice, not having worked with security that much (although I love the topic), and already having invested a lot of time into another opportunity, I'm not sure how well an application would work out :/
marsel has quit [(Ping timeout: 252 seconds)]
<gchristensen> sphalerite: I don't know :) but you could apply
<gchristensen> ok getting off the train. bye.
<sphalerite> Would I get help with travel to and accommodation in the US if successful?
<gchristensen> sphalerite: I don't know, can you ping me tomorrow with questions? I'll be able to ask people with answerss :)
<sphalerite> Alright, thanks!
<gchristensen> see you!
<copumpkin> MichaelRaskin: when you say you're not sure that bind mounts will have the desired effect with sandboxing enabled, what do you mean?
<copumpkin> MichaelRaskin: I'm not going to be running nixos-install inside a nix build environment
<copumpkin> not sure I understand
<MichaelRaskin> Well, no-sandboxing builds are obvious: g+w store is needed to create $out
<copumpkin> copumpkin: yeah
<MichaelRaskin> I am not sure what exactly happens with sandboxing and whether store permissions are fully irrelevant
<copumpkin> sandboxed builds as of recently have user namespaces and we can set up mappings as we see fit
<copumpkin> even with user namespaces, builds still don't run as root, I think
<copumpkin> or if they do, we shouldn't do that
<MichaelRaskin> I think they run as UID 1
<copumpkin> ah
<copumpkin> but I assume we map that back to one of the nixbld uids on the host?
<MichaelRaskin> Should be like that
<copumpkin> actually
<copumpkin> niksnut_: says that it runs as uid -0
<hodapp> um, can someone try installing python2nix and running it? It seems to be broken for me
xadi has quit [(Quit: Leaving.)]
<copumpkin> MichaelRaskin: also, are you generally okay with the state of that nixos-install refactor PR, or do you think there are other things I should change before we merge it?
<sphalerite> hodapp: "from pip import log" failing?
<MichaelRaskin> I mean, I am disinterested in the actual _nixos_ install part
<copumpkin> :) fair enough
<copumpkin> note that nixos-prepare-root currently drops a /etc/NIXOS into the fs structure
<MichaelRaskin> When the situation went towards «OK, so what are the stakes and the sides», I commented — describing my bias/interest
<MichaelRaskin> We-ell
<hodapp> sphalerite: yes
<MichaelRaskin> I have a feeling that current NixOS /etc/ handling is suboptimal
<sphalerite> hodapp: yep, I'm getting that too.
<hodapp> ah, dang.
<copumpkin> MichaelRaskin: yeah
kampfschlaefer has joined #nixos
<MichaelRaskin> The problem is that I cannot do _exactly_ what I want with overlayfs
<MichaelRaskin> (I want overlayfs to allow addition of files, but not replacement of the lower_dir files)
<copumpkin> yeah
<copumpkin> MichaelRaskin: patch our overlayfs in our kernel to add a flag? :D
<MichaelRaskin> But it still feels like a large step forward
<copumpkin> that would be very cool
<MichaelRaskin> (even without this check)
<copumpkin> I'd love to kill most of the activation script
<copumpkin> if you did that, would you contribute it to NixOS or to your separate distro?
<MichaelRaskin> I mean, have you looked at any of my pseudo-systems handling /etc/?
<MichaelRaskin> I do not have a full separate distro which can be easily reused
<copumpkin> I haven't :)
<MichaelRaskin> I guess if /etc/ handling was fixed and boot menu code got reasonably extended, I could easily dual-boot with NixOS
<MichaelRaskin> Right now I have advanced /etc/ handling on my system, and NixOS obsolete ways would make dual-booting complicated
<NixOS_GitHub> [nixpkgs] benley opened pull request #24953: vscode: 1.11.1 -> 1.11.2 (master...vscode) https://git.io/vS594
<MichaelRaskin> I already have the following scheme: /etc/ is a link into a place in /run/current-system/ where it points to a symlink again (sigh, can't be avoided) to a hash-dependent location in /var/ or /run/ where an overlay unites /var/etc/ for writeable files and etc-static
byteflame has quit [(Ping timeout: 255 seconds)]
<MichaelRaskin> This means that you mount overlayfs in advance (and quickly!), then etc is switched atomically when you change /run/current-system
<copumpkin> is your main objection to nixos still just systemd?
<MichaelRaskin> The main one is systemd, yes
<MichaelRaskin> Then, I don't like the module system of NixOS too much and want to find a NixPkgs-like structure that would fit my preferences
<copumpkin> I like some aspects of it and dislike others
<MichaelRaskin> Yes, I understand you
<copumpkin> it's a tricky problem, and I love that you can separate out one module from another so cleanly
<copumpkin> I don't like how "one-ness" is baked in all over the place
derjohn_mob has joined #nixos
<MichaelRaskin> I mean, NixPkgs offers even better separation logic
<MichaelRaskin> I would say that the module system is halfway towards mutable global state
<MichaelRaskin> Which makes sense some of the time, but gets annoying the other time
<NixOS_GitHub> [nixpkgs] gebner pushed 1 new commit to master: https://git.io/vS59i
<NixOS_GitHub> nixpkgs/master d328457 Gabriel Ebner: emscripten: 1.37.3 -> 1.37.9
<ixxie> gchristensen and/or others with time wanting to rack up some SO points: http://stackoverflow.com/questions/43439514/how-to-package-a-command-line-tool-in-nix
<MichaelRaskin> Then, I understand well enough what I want and what it maps to in terms of low-level configuration tools (iproute, not NM), that I don't benefit from running NixOS if I can just import services from it instead
<ixxie> (quite a naive question but honestly I have searched for a long time and had no luck finding some simple example of this)
<MichaelRaskin> I think you need to modify tool.sh
<NixOS_GitHub> [nixpkgs] benley pushed 2 new commits to master: https://git.io/vS59M
<NixOS_GitHub> nixpkgs/master f09c2e7 José Luis Lafuente: chrome 59 requieres gtk3
<NixOS_GitHub> nixpkgs/master 1b1b981 Benjamin Staffin: Merge pull request #24930 from jlesquembre/chrome_gtk3...
ryanartecona has joined #nixos
<MichaelRaskin> Do you even want to expose the remaining scripts after installation?
<ixxie> MichaelRaskin: what do you mean expose?
<MichaelRaskin> Well, after installation the script goes into $out/bin
<MichaelRaskin> Should the subcommands go there or $out/lib/shell/$name/bin ?
alx741_ has quit [(Quit: alx741_)]
<ixxie> MichaelRaskin: the script works by converting the directory hierarchy to a command, so the directory structure in the origin bin/ should be preserved
<MichaelRaskin> Basically you could just copy the directory to $out/lib/shell/$name then create tool.sh in $out/bin that runs the rel tool.sh and passes it "$@"
<ixxie> I guess I am completely ignorant of the idea of how $out needs to be structured
erictapen has joined #nixos
<MichaelRaskin> "$out"/bin gets to be added to "$PATH"
agjacome has joined #nixos
<MichaelRaskin> "$out"/lib/*.so will be searched by linker
<MichaelRaskin> "$out"/include will be searched for C/C++ includes
<ben> is there any marker that distinguishes store paths that are intended to be installed into profiles from store paths that are just like extracted source or whatever?
<MichaelRaskin> "$out"/share will almost for sure be exposed via profile
<MichaelRaskin> ben: don't think so
<ixxie> MichaelRaskin: if $out is at this packages store address, why do I need a subdirectory $out/lib/shell/$name? why can't it just be $out/lib/?
byteflame has joined #nixos
<MichaelRaskin> Well, not a real problem, to show these are not shared-object files which usually live in $out/lib
<ixxie> thanks MichaelRaskin
<ixxie> I think the problem is I never really developed any piece of software so I don't know where things need to go >.<
<MichaelRaskin> And then there are Nix idosyncrasies
<ixxie> yeah, the combination is confusing
<ixxie> because a lot of the Nix documentation / blogs / etc presuppose someone knowing how packaging / linux *normally* work
<MichaelRaskin> note that we have many substitute* which could help you to write a wrapper tool.sh that can be easily installed as "$out/bin/tool.sh" while replacing @out@ with the specific path of $out etc.
<ixxie> MichaelRaskin: I know, I am trying to use substituteAllInPlace like so: https://gist.github.com/ixxie/757382258cad049be23eff116d635108
<ixxie> (I tried modifying everything to fit your approach)
<MichaelRaskin> Well, actually you can also just use "$(dirname "$0")" if your relative paths do not get too long
<MichaelRaskin> Installing default.nix in "$out/default.nix" is really unfriendly
<MichaelRaskin> (any two packages that do that will create a conflict when installed at once)
<sphalerite> yeah, using paths relative to the executable seems like a good solution
<ixxie> so I will not copy that one :)
<ixxie> thanks, I will give that a shot
<MichaelRaskin> Well, I just commented on cp -r
Filystyn has quit [(Ping timeout: 260 seconds)]
derjohn_mob has quit [(Ping timeout: 240 seconds)]
mudri has quit [(Ping timeout: 240 seconds)]
Ralith_ has quit [(Ping timeout: 240 seconds)]
exarkun has quit [(Ping timeout: 260 seconds)]
exarkun has joined #nixos
Ralith_ has joined #nixos
cfricke has joined #nixos
<philipp[m]> How would I go about booting a system with an encrypted rootfs remotely with boot.initrd.network.ssh.enable = true?
<NixOS_GitHub> [nixpkgs] sigma opened pull request #24956: hugo: 0.20.1 -> 0.20.2 (master...pr/hugo) https://git.io/vS5QK
blogle has joined #nixos
<ixxie> MichaelRaskin: this is what you meant - https://gist.github.com/ixxie/75b694bac5dabf20e5ec5e1fb20fbc25 ? Running nix-shell . still doesn't find `flux`
<MichaelRaskin> Erm. If you want flux.sh to be found as flux, you want to rename it when copying
<blogle> hi everyone I just followed this guide https://gist.github.com/expipiplus1/e571ce88c608a1e83547c918591b149f for installing nix in multi-user mode, but I seem to be missing man pages for nix related commands. Any ideas?
<MichaelRaskin> I guess we have a preference to have #! reference something in store (like stdenv.shell)
pie_ has joined #nixos
<NixOS_GitHub> [nixpkgs] winniequinn opened pull request #24957: iosevka: 1.12.1 -> 1.12.5 (master...iosevka-1.12.5) https://git.io/vS5Q5
<MichaelRaskin> blogle: do you miss them even after installing nix into profile and re-sourcing profile script?
<pie_> anyone know what the proper driver string is for services.xserver.videoDrivers to fix this libgl error?: https://pastebin.com/pPsSSKj7
mudri has joined #nixos
<pie_> someone also said the issue might be that it needs the 32bit
<pie_> and im on 64bit so idk how to do that
<pie_> my baaad :P
<pie_> just found it in the manual
<pie_> "On 64-bit systems, if you want full acceleration for 32-bit programs such as Wine, you should also set the following:
<pie_> hardware.opengl.driSupport32Bit = true;
<pie_> "
<blogle> MichaelRaskin: I have nix installed in the system profile and have sourced ~/.profile still nothing. Do I need to install nix at the user level? that would seem odd
<ixxie> MichaelRaskin: I tried that before and it didn't solve the problem, but I modified it now just in case anyway.
<MichaelRaskin> Well,
<MichaelRaskin> ixxie: correct script name is what is your current likely problem
<MichaelRaskin> blogle: ah, no. do you use system-wide man, though?
<MichaelRaskin> What is in $MANPATH ?
<ixxie> weird.... I renamed it and it didn't help
<HappyEnte> ixxie: I believe nix-shell will only evaluate your build inputs, but it won't build the derivation itself and link into Path
<MichaelRaskin> Is it a+x, just in case?
<blogle> MichealRaskin: I havent set MAPATH, I belive man is set to find relative to $PATH on ubuntu
<blogle> even so I cant even find the directory location of nix man pages
<MichaelRaskin> I think it is set to look in standard locations on ubuntu
<MichaelRaskin> Well, maybe you need to install nix.man
<blogle> ah was not aware that was a thing, gonna give it a go
<HappyEnte> ixxie: what happens when you install the derivation with nix-env -f default.nix -i ?
pie_ has left #nixos ["Leaving"]
pie_ has joined #nixos
<pie_> i wonder, given nixo's declarative nature if people could start writing troubleshooting guides that look at the nixos configuration
<pie_> like, "wine application not working, libgl error => user doesnt have hardware.opengl.driSupport32Bit = true;, maybe need to install 32bit drivers?@
<blogle> MichaelRaskin: nix-env -i nix.man => error: selector ‘nix.man’ matches no derivations
<simpson> pie_: In some sense, the converse is already true: To set up a certain service in a certain way, we encode the correct expanded declarations into NixOS modules.
<pie_> simpson, ah, true.
cfricke has quit [(Read error: Connection reset by peer)]
<NixOS_GitHub> [nixops] kevincox opened pull request #650: Stop storing keys in the nix store for storeKeysOnMachine. (master...keys-no-store) https://git.io/vS57C
<MichaelRaskin> blogle: without -f?
<simpson> pie_: Imagine a future: subsystems.wine = { enable = true; win32 = true; };
<MichaelRaskin> And -iA not -i
<pie_> simpson, haha :)
<avn> pie_: possible yes, if you use open drivers -- better specify exact revision (and build wine with it) https://github.com/avnik/nixos-configs/blob/master/envs/wine.nix#L19
<avn> pie_: not absolute solution, but for me -- give most predictable results
<ixxie> HappyEnte: I just tried nix-build and got a build error which I am debugging, so thanks for the tip :)
<pie_> simpson, but what about htis case then though? should wine by default require 32 bit drivers to install as well?
<blogle> MichaelRaskin: I just ran as root $ nix-env -f '<nixpkgs>' -iA nix.man
<pie_> or did i install 32bit wine when i should have got 64bit
<blogle> which replaced my nix install but still no man under /nix/var/nix/profiles/default/share
athan has quit [(Remote host closed the connection)]
cfricke has joined #nixos
<MichaelRaskin> What do you mean: replaced nix?
<blogle> root@pint-sized1:/home/ogleb# nix-env -f '<nixpkgs>' -iA nix.man
erictapen has quit [(Ping timeout: 268 seconds)]
<blogle> replacing old ‘nix-1.11.8’
<blogle> installing ‘nix-1.11.8’
<MichaelRaskin> Maybe nix-env does something stupid here…
<MichaelRaskin> Hm, should install all outputs anywya
<MichaelRaskin> Maybe specify the profile explicitly with -p ?
erictapen has joined #nixos
marsel has joined #nixos
<blogle> still no dice :(
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
phreedom has joined #nixos
<MichaelRaskin> Weird. But I don't really understand how nix-env is supposed to work
<MichaelRaskin> (I never use it)
<MichaelRaskin> Still doesn't match its manpage
<MichaelRaskin> Are you in su or su - ?
<blogle> su
erictapen has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin> Hm
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #24953: vscode: 1.11.1 -> 1.11.2 (master...vscode) https://git.io/vS594
<blogle> what are you using instead of nix-env?
<MichaelRaskin> Just nix-build
iyzsong has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<ixxie> what the heck is a homeless shelter and why is it missing from my build >.<
<MichaelRaskin> The idea is that by default there is no $HOME for the builder
<MichaelRaskin> Because installing random stuff into $HOME is not what we want the builds to try to do
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vS55O
<NixOS_GitHub> nixpkgs/master cb62419 José Luis Lafuente: git-open: init at 1.3.0
<NixOS_GitHub> nixpkgs/master f16b29e Jörg Thalheim: Merge pull request #24938 from jlesquembre/git-open...
<HappyEnte> ixxie: are you only trying to package a shell script?
<ixxie> HappyEnte: a collection of them
<ixxie> with one main tool
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vS55c
<NixOS_GitHub> nixpkgs/master 07dff62 Yann Hodique: hugo: 0.20.1 -> 0.20.2
<NixOS_GitHub> nixpkgs/master 7112fda Jörg Thalheim: Merge pull request #24956 from sigma/pr/hugo...
cfricke has quit [(Quit: WeeChat 1.7)]
<HappyEnte> ixxie: https://git.io/vSHIJ you could use the writeScript for individual scripts
athan has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #24957: iosevka: 1.12.1 -> 1.12.5 (master...iosevka-1.12.5) https://git.io/vS5Q5
<ixxie> HappyEnte: I saw approaches like that but since there are many scripts I wanna keep everything in seperate files
aneeshusa has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #24909: dhcpcd service: clear exit code of exitHook (master...dhcpcd-clear-exit-code) https://git.io/vS7L3
<ixxie> MichaelRaskin: there is no $HOME in the code so I cannot see why such an error would pop up
<MichaelRaskin> cd without arguments?
ertesx has joined #nixos
<gchristensen> MichaelRaskin: your etc comments are fascinating
ertes has quit [(Ping timeout: 258 seconds)]
ertesx is now known as ertes
<MichaelRaskin> Actually, aufs does have enough features to do this properly
<ixxie> MichaelRaskin: so I need to cd to the directory in the installPhase.... I tried $in as a wild guess
<MichaelRaskin> Erm. You'd better save $PWD to $in at some point then
<gchristensen> aufs :( ohh the the corruption I experienced.
<ixxie> my first attempt was to use relative paths
infinisil has joined #nixos
<MichaelRaskin> Well, the alternative to aufs is patching overlayfs to support no-override-file policy
<gchristensen> fair
<MichaelRaskin> I currently run without that, but this can be called suboptimal
<gchristensen> it is probably less corrupting when used less hard
<infinisil> Hi, this is literally the first time I'm using IRC :D
<simpson> Welcome.
<infinisil> Thank you, anything important I should know?
<simpson> Don't ask to ask, just ask. Also, it's okay to lurk.
<gchristensen> if you're sharing more than 2 lines of text with us, use a pastebin like gist.github.com or hastebin.com or ix.io :)
<gchristensen> welcome!
<infinisil> Alright :D
<infinisil> Who is using xmonad with nixos here?
* lassulus is
<infinisil> I'm having a few problems with it, for one it doesn't seem to want to start with xfce
<infinisil> What desktop environment are you using @lassulus?
<lassulus> none, just xmonad
<infinisil> I see, I assume there's something like windowManager = { default = "xmonad"; xmonad.enable = true; } in your configuration.nix?
<lassulus> kinda like it, I'm overriding the nixos xmonad to have the xmonad.hs in my .nix files http://ix.io/qRv
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #24877: pijul: 0.4.1 -> 0.4.4 (master...pijul_044) https://git.io/vSSxb
<mbrock> how do I figure out why a /nix/store/ subdirectory is "live", i.e. not deleted by nix-collect-garbage?
<MichaelRaskin> -q --roots ?
acarrico has quit [(Ping timeout: 255 seconds)]
<infinisil> @lassulus When I login with xmonad enabled (along with xfce) it just shows me a white screen (with session: none + xmonad).
<infinisil> The shortcut to open a terminal isn't working though, so I can't really do anything like this
<lassulus> hmm, maybe you just don't have the default terminal installed?
<infinisil> Ohh that would make sense
<mbrock> MichaelRaskin: I can't find any file within the directory for which -q --roots prints anything
<MichaelRaskin> and nix-store --delete refuses to delete this store path?
<mbrock> yep, says it is "still alive"
griff_ has quit [(Quit: griff_)]
<MichaelRaskin> But at the same time nix-store -q --roots on it prints nothing?
<mbrock> indeed... it's quite strange
<MichaelRaskin> Maybe fuser can show if some files are currently open?
<mbrock> nothing there either :O
byteflame has quit [(Ping timeout: 258 seconds)]
zeus_ has joined #nixos
<infinisil> The problem with xmonad goes a bit deeper actually, I can't even recompile my xmonad.hs, because it can't find the haskell package XMonad, even though I have haskellPackages.xmonad in my systemPackages
<infinisil> How does ghc find haskell packages in nixos?
zeus_ has quit [(Remote host closed the connection)]
zeus_ has joined #nixos
<MichaelRaskin> nix-store -q --referrers-closure and fuser on everything recursively?
<MichaelRaskin> A bit desperate, I agree
cfricke has joined #nixos
<mbrock> `find /nix/store/... | xargs nix-store -q --referrers-closure` gives only the directory itself; similarly for fuser gives nothing!
<MichaelRaskin> referrers-closure works on package granularity, so no need for find in this case
ryanartecona has quit [(Quit: ryanartecona)]
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vS5FY
<NixOS_GitHub> nixpkgs/master 209e8e5 William Casarin: cargo-edit: init at 0.1.6
<NixOS_GitHub> nixpkgs/master 769de56 Jörg Thalheim: Merge pull request #24932 from jb55/add/cargo-edit...
<NixOS_GitHub> [nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vS5Fs
<NixOS_GitHub> nixpkgs/master c2130ec Joachim Fasting: logcheck: point homepage to alioth.debian.org...
sigmundv_ has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #24788: jucipp: init at 1.2.3 (master...jucipp/1.2.3) https://git.io/vSK4C
sigmundv_ is now known as sigmundv
ts_ has joined #nixos
<ts_> trying to run a vncserver i get an error. "IGLX error: dlopen of /run/opengl-driver/lib/dri/swrast_dri.so failed (/run/opengl-driver/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)"
marsel has quit [(Ping timeout: 252 seconds)]
<ts_> i run nvidia drivers and I am not sure how to configure nixos to make extra opengl drivers available to x11vnc
<ts_> googling, i find this seems to recur periodically for things like quake and steam.
<mbrock> MichaelRaskin: ah, with -vvv --delete it turns out that the directory itself is a root
<MichaelRaskin> I am lazy, I just run such stuff with LD_LIBRARY_PATH="$(nix-build '<nixpkgs>' --no-out-link -A mesa)/lib"
<MichaelRaskin> mbrock: except it still should be printed as root in this case…
<blogle> I still cant resolve these damn manpages...
<MichaelRaskin> What kind of root is it? Direct/indirect?
<mbrock> not sure. it says "considering whether to delete ... cannot delete X because it's a root ... cannot delete X because it's still reachable"
<ixxie> where can I read more about mkDerivation?
<mbrock> the directory is the -fetch directory of a Rust package I tried to install with nix-env -i
<MichaelRaskin> did you nix-env -e it?
<mbrock> yep
<MichaelRaskin> Did you delete the generations including it?
<MichaelRaskin> Because unless you do, you can rollback (and so cannot remove the dependencies)
<mbrock> I thought I deleted all previous generations, but I'm not sure
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #24868: openshot-qt: 2.2.0 -> 2.3.1 (master...openshot) https://git.io/vSyxu
<mbrock> oh I probably didn't
systemfault has joined #nixos
<Mic92> mbrock: I use a meta package similar to systemPackages in my user profile: https://github.com/Mic92/nixos-configuration/blob/master/.nixpkgs/config.nix#L196
<Isorkin> http://nixpaste.lbr.uno/raw/us44nm1h - error build - The option `services.nginx.virtualHosts.testsite.ru.locations.~ \.php.fastcgi_pass' defined in `/etc/nixos/webserver.nix' does not exist. - How to fix?
carlosda1 has joined #nixos
<mbrock> hmm, nix-env --list-generations only shows the current one, though there are many many links in /nix/var/nix/profiles/ named system-<n>-link
<MichaelRaskin> Well, there is system profile and user profile
<mbrock> ahh, ok, after a nix-collect-garbage -d, I managed to get rid of this thing :)
<infinisil> Everytime I'm trying to configure linux I'm asking myself why this has to be so hard. I have started compiling a list of things I'd do if I were to design an OS
<infinisil> "There has to be a better way"
darlan has joined #nixos
<MichaelRaskin> You got SIGTHTBABW ?
<MichaelRaskin> Actually, configuring Linux is hard just because it has to be huge to handle all the stupid stuff that happens in modern computing…
<infinisil> For example?
<MichaelRaskin> Approximately all hardware lies about its own behaviour
<infinisil> Hmm right
<MichaelRaskin> Modern TCP is an art of lying about your own network settings and trying to interpret the lying of the counterparty
marsel has joined #nixos
<infinisil> While we can't really do much about hardware and the drivers necessary, I'm talking more about software
<MichaelRaskin> Performance/safety/debugging tradeoffs in all the standard protocols
<MichaelRaskin> Networking is about software…
mudri` has joined #nixos
<infinisil> Ohh right.. (I'm actually just taking a course on that)
<MichaelRaskin> Or was my interpretation of «configure Linux» as «configure the kernel .config» wrong?
<infinisil> I mean configuration in general, there's so many things that can go wrong
<infinisil> missing files
<MichaelRaskin> Oh, you mean a Linux-based system
<infinisil> wrong format, missing binaries, unexpected stuff happening, etc
<MichaelRaskin> Not Linux the kernel
<infinisil> Yeah
<MichaelRaskin> Well, missing files are about performance (in this case, storage volume) related tradeoffs
<infinisil> I'm having a few pretty cool ideas I'm trying to formalize and write about which would solve a lot of problems we're having nowadays with software
<MichaelRaskin> The problem is that _a lot_ of modern software is defined by compatibility, which means Doing Things Right is not a real option
mudri has quit [(Ping timeout: 268 seconds)]
<MichaelRaskin> I mentioned drivers and network protocols
<infinisil> By missing files I mean when a binary crashes because it expects a file at some specific place which was deleted for some reason
<MichaelRaskin> But browsers, mail clients, office suites, pdf viewers are no better
globin has quit [(Quit: WeeChat 1.6)]
globin has joined #nixos
globin has quit [(Client Quit)]
<infinisil> Yeah I noticed that compatibility is a very limiting factor today. I decided in order to Do It Right we can't always stay compatible
<MichaelRaskin> Well, if the binary doesn't come with a makefile that ensures that this file gets installed, there is not much anyone can guarantee (third-party manual inspection cannot guarantee anything, let's be honest)
globin has joined #nixos
<infinisil> That's why the main goal with these ideas is to do it right, secondary goal is compatibility
<MichaelRaskin> Primary goal is being able to isolate legacy parts from each other…
<MichaelRaskin> (Nix is a very nice tool for that, although not a full solution)
<infinisil> What do you mean by that?
* mbrock begins to wonder if Travis' complaint about a wrong deps hash is due to solar flare bit flip...
<MichaelRaskin> Why bit flip, you can just have a network failure
<MichaelRaskin> Browser engines do their job as well as such an ill-defined job can be expected to be done. Most of the time.
<MichaelRaskin> But it would be nice if the rest of the time there is no lasting damage
<MichaelRaskin> Also, the real shining achievement of Nix is removal of the absolute majority of path conflicts. I.e. if two libraries want different builds of libpng, they just get this, no hassle
<MichaelRaskin> A good question is what other conflicts can we fix
<MichaelRaskin> Like, a bit of VNC magic fixes the situation when some software would look better in lower screen resolution
<infinisil> What other conflicts are there?
<MichaelRaskin> This is an example of desired setting conflict
<MichaelRaskin> You could have a conflict that packages A and B require system DBus, and A works better when C is available via DBus but B actually works worse
carlosda1 has quit [(Ping timeout: 255 seconds)]
<infinisil> admittedly i have little to no knowledge about what DBus is, but I understand how that's a problem
darlan has quit [(Remote host closed the connection)]
<infinisil> Naively I'd say we fix whatever went wrong with B
<MichaelRaskin> Erm
<infinisil> (tell me if im completely off)
<MichaelRaskin> not really an option for large packages
darlan has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vS5NZ
<NixOS_GitHub> nixpkgs/master 7138b55 Scott R. Parish: slock: needs the ability to be install with suid privileges
<NixOS_GitHub> nixpkgs/master 002a2b4 Jörg Thalheim: Merge pull request #24486 from srp/master...
<infinisil> I'll write up on the ideas I have, probably going to put it on github eventually
<infinisil> Maybe i'll also start implementing some parts
<MichaelRaskin> I think I have already posted a link
kristoffer has joined #nixos
<MichaelRaskin> (last lightning talk)
<kristoffer> Hi guys. I'm having problems with Pandoc.
sigmundv has quit [(Ping timeout: 240 seconds)]
darlan has quit [(Remote host closed the connection)]
<kristoffer> I installed the `pandoc` package, that wasn't the problem. But when I try to make a pdf file from a markdown file, pandoc complains that pdflatex is not available
<infinisil> well did you install latex?
<sphalerite> kristoffer: yes, pandoc relies on latex to make PDFs
<sphalerite> try installing texlive.combined.scheme-minimal
darlan has joined #nixos
<kristoffer> I installed some texlive collection, maybe it was "basic" or "small". But then I got an error in latex about missing something like modern.sty
<kristoffer> I also tried to install scheme-full, but I was unable to install it.
<infinisil> https://nixos.org/wiki/TexLive_HOWTO#LaTeX_Error:_File_.60lmodern.sty.27_not_found
<timclassic> I've submitted https://github.com/NixOS/nixpkgs/pull/24947 (my first PR against nixpkgs) and it has been approved. Is there anything else I need to do, or is it just waiting for a merge at this point?
<sphalerite> It's been approved by one reviewer
<MichaelRaskin> Well, approval in NixPkgs is generally used when someone has no access to making merge decisions or is not sure in own qualification to make this decision
<MichaelRaskin> But generally it usually does mean there are no obvious problems
<MichaelRaskin> If it is submitted today, maybe someone more confident looks at it a bit later today or tomorrow
<timclassic> I see, okay. Thanks for the context!
<sphalerite> kristoffer: did you install texlive.combined.scheme-small or texlive.scheme-small? Only the former will work
<MichaelRaskin> If not, attracting attention can be warranted
<ixxie> MichaelRaskin: you are refering to decoupling systems right?
<timclassic> MichaelRaskin: It's been less than a day, so I'm not conerned :) I'll speak up if it goes a few days with no activity.
<infinisil> My recent PR to nixpkgs got merged within like 12 hours after submitting it
<calvertvl> anyone seen vcunat lately? he maintains nvidia-x11 and I submitted a PR to update the legacy 340 drivers about 9-10 days ago, and no action
<MichaelRaskin> It's a bit of a lottery, when PR gets merged. Pure updates or package additions are more convincingly safe most of the time
<MichaelRaskin> calvertvl: I have seen him comment on GitHub. Try mentioning him in the issue manually, maybe
<calvertvl> I did on creation...
<MichaelRaskin> No, my point was to ping now in case the initial mention-bot (and your) ping got lost
<calvertvl> re-pinged, so we'll see how it goes
<kristoffer> sphalerite: It must have been the former, according to my Bash history
<sphalerite> hm, ok
<sphalerite> I wonder why it works for me x)
slack1256 has joined #nixos
<ryantm> How does nix-env decide which channels to use? It seems like my nixos installation has the user's channels and the root's channels and nix-env seems to be using the root's channels.
erictapen has joined #nixos
<infinisil> Well, man nix-env has this in the first line: nix-env - manipulate or query Nix user environments
<infinisil> So I assume it's the users channel
<infinisil> And when the user is root then the roots channel maybe?
<ryantm> That's not what is happening for me. I'm running nix-env as my user and it is using the root channels.
<slack1256> nope, thet root channel takes precedence
Zer000 has joined #nixos
<ryantm> How do you make it use the user's channels?
<slack1256> as far I know, multiple channels on nix-channel aren't really working. Everybody just uses a single channel (maybe with nix-env ssh-substitute specified as a backup)
<slack1256> the only ones that use nix-channel "user channels" are not native install as "nix on archlinux" or "nix on macos"
<ryantm> It's weird to me that `nix-channel` basically does nothing then. I have to use `sudo nix-channel`
<slack1256> yep
<slack1256> are you on nixos?
<ryantm> yes
<infinisil> Weird, nix-channel --list doesn't output anything right now for me
<slack1256> and sudo nix-channel --list?
systemfault has quit [(Read error: Connection reset by peer)]
<infinisil> DUHH right
m3tti has joined #nixos
<ryantm> So the default thing is on NixOS you have to have root to control channels?
<slack1256> yep
<slack1256> it doesn't have to be this way, but for now it works
erictapen has quit [(Ping timeout: 252 seconds)]
<ryantm> That feels so out of sync with NixOS being useful for multiple users.
<slack1256> not really, specially thinking that /nix/store is a shared resource
<MichaelRaskin> At some point channels came with binary cache settings
<MichaelRaskin> And binary cache trust decisions are a global risk
<slack1256> thus different channels can force duplication of data, even if they are basically the same programs
<dtzWill> i mean you can definitely have channel per-use, but you'll have to add them to your NIX_PATH (~/.nix-defexpr/channels/$CHANNEL_NAME) if you want to use outside of nix-env
<Heffalump> I got too confused by channels and ended up just using the nixpkgs git repo directly
<dtzWill> most channels all use the same binary cache anyway (unless you manage your own channel in which case you probably should know how channels work ;))
<Zer000> I am getting an ssl error during this build. I have made a minimal github repo that reproduces my problem. https://github.com/Zer0-/test_nix_cargo I just wanted to write a nix expression to compile a rust application. Need some help.
<infinisil> That doesn't seem too bad
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vS5Ac
<NixOS_GitHub> nixpkgs/master 71d8ce6 Victor Calvert: nvidia: 340.101 -> 340.102 (#24694)
<slack1256> how do you specify the same nix-channel cache version on two different machines?
<ryantm> Heffalump: I feel your pain. It'd be nice if warned me when I used nix-channel as a user instead of root.
<dtzWill> slack1256: you mean how do you make sure multiple machines are on the same channel revision? don't know good way to do that :3
<slack1256> I mean exactly that. I would like to share build on "nixos-rebuild", not just nix-env. For that I need the same channel revisions
<dtzWill> i like using unstable in user channel and release channel for machine, works well for me :)
<dtzWill> well other than coordinating the revision used, offhand maybe it'd be simpler to use nixops or something and just build+push to all your machines at once
acarrico has joined #nixos
<boxofrox> anyone using zsh as default shell on a remote server? when I ssh into my nixos 16.09 server, I get a bash shell (`zsh host 'echo $SHELL'`). in /etc/configuration.nix, i set `users.defaultShell = "/run/current-system/sw/bin/zsh";`, `environment.systemPackages = [ pkgs.zsh ];`, and `programs.zsh.enable = true;`. did I miss something?
<boxofrox> and /etc/passwd has zsh as the login shell.
johnsonav has joined #nixos
<slack1256> boxofrox: user.extraUsers.userName.shell = "/run/current-system/sw/bin/zsh";
<slack1256> on configuration.nix
<dtzWill> boxofrox: environment.shells = with pkgs; [ bashInteractive zsh ];
<slack1256> works for me
<dtzWill> maybe?
* dtzWill has that and his zsh works lol
plumps has joined #nixos
<dtzWill> but I also use ".shell" not defaultShell, but presumably they both work! :)
<dtzWill> and 'pkgs.zsh' everywhere instead of specifying the "/run/current-system/sw/bin/zsh", which seems like it'd have an impact but not clear it'd cause what you're seeing
<dtzWill> actually, maybe, if it's grumpy that the user's shell is "/run/.../" but the nix-store path version is in /etc/shells ?
<dtzWill> hmm nvm my etc shells has .... lots of entries. bash bash zsh zsh bash zsh bash hahaha
<dtzWill> O:) so maybe don't listen to me!
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.03: https://git.io/vS5AH
<NixOS_GitHub> nixpkgs/release-17.03 ebbabab Victor Calvert: nvidia: 340.101 -> 340.102 (#24694)...
<boxofrox> i'm surprised defaultShell isn't sufficient. trying environment.shells thing first.
m0rphism has joined #nixos
aneeshusa has quit [(Ping timeout: 240 seconds)]
<boxofrox> cause useDefaultShell = false by default, doh.
acarrico has quit [(Ping timeout: 240 seconds)]
mounty has joined #nixos
acarrico has joined #nixos
aneeshusa has joined #nixos
Itkovian has joined #nixos
<boxofrox> you know, it helps testing ssh issues if I kill my ssh ControlMaster first ><
plumps has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
m3tti has quit [(Ping timeout: 240 seconds)]
<boxofrox> i bet my original config was fine. i just never `ssh host -O exit`ed after my nixos-rebuild.
systemfault has joined #nixos
<boxofrox> thanks for the help, all. it's working.
<jeremejevs> Hi, does anybody have a recent configuration.nix with working GTK theming? Spent several hours fiddling with various options, to no avail (well, I got fonts and icons to change, but not the theme). Here are all the relevant parts from my config: https://gist.github.com/jeremejevs/5e3ddd38ca6f75684e7fb7f905988e27 At first it was very different, but, out of
<jeremejevs> desperation, it has pretty much converged with this one: https://github.com/GCerar/nixos-config/blob/master/nixos/environment/i3desktop2.nix I'm testing on Thunar, which is based on GTK 2.
shanemikel has joined #nixos
plumps has joined #nixos
ixxie has quit [(Ping timeout: 260 seconds)]
<shanemikel> I'm using a NixOS guest in qemu, where I usually use pci passthrough with an nvidia gpu, but I like to be able to boot without passthrough (using Qemu's QXL). Using `services.xserver.videoDrivers = [ "nvidia" ];` works with my Nvidia card, but it fails to start display when I boot with Qxl (until I comment out that line, then it works fine)
<shanemikel> Should I be doing something like `services.xserver.videoDrivers = [ "mesa" "nvidia" ];`, or just append to the list?
Acou_Bass has quit [(Quit: ZNC - http://znc.in)]
Acou_Bass has joined #nixos
<shanemikel> I found what the original expression evaluates to: `[ "ati" "cirrus" "intel" "vesa" "vmware" "modesetting" ]`.. how can I append it without infinite recursion?
dejanr has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
blogle has quit [(Quit: Page closed)]
infinisil has quit [(Ping timeout: 252 seconds)]
Avogadro has joined #nixos
kuznero has joined #nixos
<kuznero> Hi All!
<MichaelRaskin> If you just set, it gets appended
ryanartecona has joined #nixos
<MichaelRaskin> shanemikel: ^^^
kuznero has left #nixos []
joneshf-laptop has quit [(Remote host closed the connection)]
<shanemikel> MichaelRaskin: that's not what nix-repl is showing
<jeremejevs> Okay, seems like I needed to append "${pkgs.arc-theme}/share/themes/Arc-Darker/gtk-2.0/gtkrc" to GTK2_RC_FILES. Wish this was automated, or at least there were configuration options :P
kuznero has joined #nixos
johnsonav has quit [(Ping timeout: 260 seconds)]
kuznero has left #nixos []
<MichaelRaskin> shanemikel: you may underestimate the trickiness of finding out the truth
<MichaelRaskin> Just nixos-rebuild build and see what gets into xorg.conf
<MichaelRaskin> (build should be reasonably cheap)
kuznero has joined #nixos
<shanemikel> hmm...
<shanemikel> brb
shanemikel has quit [(Quit: Konversation terminated!)]
grahamc[m] has joined #nixos
schoppenhauer has quit [(Ping timeout: 240 seconds)]
<kuznero> I have a question... I need to get output of package A copied into the output of another package B when building/installing package A. Package A depends on package B. Concrete example is F# (package A) and mono (package B). Basically as part of installing F#, its binaries need to be copied into `${mono}`. How do I achieve such thing? Should I just run a bash loop over all files produced by F# package and create symlinks under `${mo
darlan has quit [(Ping timeout: 258 seconds)]
<MichaelRaskin> The problem is that it is basically prohibited
aneeshusa has quit [(Quit: WeeChat 1.7)]
<kuznero> MichaelRaskin: :'( but when I try to install older version of F# (I am working on a new version currently) I can see that under `${mono}` there are a bunch of F# related files
<kuznero> And it is done in the form of links. Problem is that I cannot understand how this was done in the first place, because it seems that there is nothing special in the default.nix for that old version of F#.
johnsonav has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vS5p9
<NixOS_GitHub> nixpkgs/master 5042e9d Markus Mueller: network-interfaces-scripted: Add static parameter for default gateway
Filystyn has quit [(Quit: Konversation terminated!)]
<MichaelRaskin> It may be that mono does ship some of them on its own
<MichaelRaskin> It is the question about mono expression, after a path is installed, it is immutable
<kuznero> Nope, I am mostly sure it does not. I have tried installing it separately without F#.
alx741 has joined #nixos
<MichaelRaskin> Erm. You want to say mono store path changes if you install F# ? Where do you look
systemfault has quit [(Read error: Connection reset by peer)]
<MichaelRaskin> Of course, profile builder will symlink same-named directories together without any extra effort
<kuznero> MichaelRaskin: I am not sure about profile builder (I am still relatively new to Nix)... My understanding is that in the postInstall phase I can run something like `ln -s ${mono}/bin/fsharpc ${out}/bin/fsharpc`, right? THis will kind of give me what I need.
<philipp[m]> What is the switch that lets me change which folder nixos-rebuild uses as its source? It's not in the man page.
<MichaelRaskin> You can link _from_ mono _to_ fsharp
<MichaelRaskin> But not the other way round
<kuznero> MichaelRaskin: I see. Then I need to get back and figure out what is happening with those F# bits in ${mono}. Maybe I am missing something
<MichaelRaskin> The comman you have written is correct except you should write $out (it is not available evaluation-time, only as environment variable)
<sphalerite> philipp[m]: the environment variable NIXOS_CONFIG, which is in the manpage?
<philipp[m]> sphalerite: I don't mean the config, I mean the channel
<sphalerite> oh right
<sphalerite> You'll want the nix option -I
<sphalerite> I think -I nixpkgs=/path/to/nixpkgs
<kuznero> MichaelRaskin: not sure I got it, you saying that ${out} is only available when expression is running, right? But ${mono} should be available before F# expression will start evaluating. So, my plan is to uninstall/collect all existing versions of mono/F#, then install mono and see if it has no F# specific bits. Then install F# and inspect same mono path in storage and see if F# bits are still not there.
<MichaelRaskin> Yes, that's the plan
<MichaelRaskin> $out can only be used as shell-level variable by the builder; ${mono} gets expanded evaluation-time, yes
<philipp[m]> sphalerite: Thanks. Is there a reason why it isn't documented?
<sphalerite> "In addition, nixos-rebuild accepts various Nix-related flags, including --max-jobs / -j, --show-trace, --keep-failed, --keep-going and --verbose / -v. See the Nix manual for details."
<MichaelRaskin> (basically, $out contains a hash of the strings like postInstall, so it cannot be itself in this strings, as circular collisions are hard to fins)
infinisil has joined #nixos
justbeingglad has joined #nixos
<sphalerite> philipp[m]: it's a nix flag and isn't documented redundantly. It would probably be sensible to list all such options in the manpage
<gchristensen> philipp[m]: it is, just not so clearly. It'd be a good opportunity to write docs specific to this use case.
<kuznero> MichaelRaskin: ok. If I want to find where is certain package located in my store, what is the fastest way of doing it?
<philipp[m]> kuznero: ls pkgname
<MichaelRaskin> nix-build --no-out-link '<nixpkgs>' -A mono
shanemikel has joined #nixos
shanemikel has quit [(Client Quit)]
Guest3931 has joined #nixos
Guest3931 has quit [(Client Quit)]
shanemikel_ has joined #nixos
justbeingglad has left #nixos []
<shanemikel_> Idk.. I've tried copying that default list and both appending "nvidia" and prepending "nvidia" (because the man page says they're tried in order).. no luck.. with nvidia added, it doesn't want to boot without the card
cfricke has quit [(Quit: WeeChat 1.7)]
infinisil has quit [(Quit: Leaving)]
<MichaelRaskin> Hm. What does /var/log/X.0.log say (a pastebin-worthy question)?
<MichaelRaskin> Also, does xorg.conf contain non-nvidia sections?
ryanartecona has quit [(Quit: ryanartecona)]
johnramsden has joined #nixos
marsel has quit [(Ping timeout: 268 seconds)]
<mounty> In https://github.com/bennofs/dotfiles/blob/master/.themplate/haskell-nix/default.nix was doe nativePkgs.localSource (line 5) mean?
<johnramsden> Could someone give me some advice for packaging custom software?
<johnramsden> I'm trying to package 'onboard', and for the life of me I can't make it work.
<kuznero> MichaelRaskin: I think I started to realize where is the problem. When I first install mono it gets registered under /run/current-system/sw/lib/mono/4.5 and so calling `ls -lah /run/current-system/sw/lib/mono/4.5 | grep -i fsharp` gives nothing. But when I install fsharp, same query gives a lot of files, which symlinks to another package. So, you are absolutely right that packages are immutable. But what is this /run/current-system
<kuznero> ngy? It feels as if it gets a lot of things from different packages. How can I make my new F# package contribute to /run/current-system/sw...?
<johnramsden> I seem to be running into problems with build inputs. I'm getting 'build input python3 does not exist' for all my inputs, where python3 is an example of one of my inputs.
<johnramsden> Here's my onboard default.nix build script: https://github.com/johnramsden/NixOS/blob/dev/pkgs/onboard/default.nix
<MichaelRaskin> kuznero: you just add it to systemPackages
<MichaelRaskin> Also, your messages still get truncated
<hodapp> surprise surprise, my Python issue is.... boost
<MichaelRaskin> johnramsden: buildInputs are variables, not strings
<johnramsden> so dont quote them?
ts_ has quit [(Ping timeout: 260 seconds)]
<kuznero> MichaelRaskin: :( was not aware of it. But typing too much :) Thanks for the tip, will investigate.
<MichaelRaskin> Yes, if you already do with nixpkgs;
<MichaelRaskin> kuznero: well, just split at 150-ish symbols, should work
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vS5jC
<NixOS_GitHub> nixpkgs/master 18f5ba5 Jörg Thalheim: brackets: 1.8 -> 1.9...
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #24775: brackets: 1.8 -> 1.9 (master...brackets) https://git.io/vSKLC
<johnramsden> MichaelRaskin: Thanks, thats better! Now i'm getting further, just getting 'FileNotFoundError: [Errno 2] No such file or directory: '/bin/bash'' now.
<hodapp> can anyone else test real quick since I'm stuck on a phone: nix-shell -p python35Packages.python-mapnik and then python3 & import mapnik?
<MichaelRaskin> johnramsden: of course there is no /bin/bash
<MichaelRaskin> you need some patchShebangs, I guess
<johnramsden> k
<MichaelRaskin> hodapp: no mapnik on Hydra… so compiling
<hodapp> ack, sorry
<MichaelRaskin> Well, should succeed sooner or later
<hodapp> it might be a big C++ mess, as all things Boost touches tend to either be or become
<kristoffer> I tried another texlive setup. Namely:
<kristoffer>
<kristoffer> (texlive.combine {
<kristoffer> inherit (texlive) scheme-small collection-latex
<kristoffer> collection-latexextra collection-latexrecommended;
<kristoffer> })
<kristoffer> Now I get this error when I run pandoc with PDF output:
<kristoffer> This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/NixOS.org) (preloaded format=pdflatex)
<kristoffer> restricted \write18 enabled.
<kristoffer> I can't find the format file `pdflatex.fmt'!
<hodapp> pastebin next time please
<gchristensen> kristoffer: please use a pastebin in the future :)
<hodapp> my tiny phone screen can't fit much IRC
<kristoffer> Alright. Sorry: :)
kuznero has left #nixos []
<MichaelRaskin> hodapp: ImportError as libboost_python lacks PyString_Size
<hodapp> MichaelRaskin: thanks.
thc202 has quit [(Ping timeout: 252 seconds)]
<NixOS_GitHub> [nixpkgs] ryantrinkle opened pull request #24960: dbvisualizer: 9.5 -> 9.5.7 (master...bump-dbvisualizer) https://git.io/vS5j7
kuznero has joined #nixos
hiratara has quit [(Ping timeout: 258 seconds)]
Yatekii has left #nixos []
<kuznero> MichaelRaskin: sorry for asking stupid questions but how do I make sure that my package is in systemPackages? Basically, I feel that when I am doing it as `nix-build -f $NIXPKGS -A fsharp41` vs `nix-env -i ...`...
<kristoffer> Here's a pastebin of the Nix expression and Pandoc error:
<MichaelRaskin> Well, systemPackages is defined in configuration.nix
wkennington has joined #nixos
hiratara has joined #nixos
<kuznero> MichaelRaskin: what if I have cloned nixpkgs repository and just playing with expression files. How can I include such new package in my systemPackages then?
<MichaelRaskin> We-ell, you can import the second checkout and inherit packages from there
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vSde3
<NixOS_GitHub> nixpkgs/master c192f77 Ryan Trinkle: dbvisualizer: 9.5 -> 9.5.7
<NixOS_GitHub> nixpkgs/master 9fedd4d Michael Raskin: Merge pull request #24960 from ryantrinkle/bump-dbvisualizer...
pie_ has quit [(Ping timeout: 260 seconds)]
<hodapp> huh, I wonder why this Python module didn't just have a test built into the derivation to try importing it
<hodapp> is that pretty standard on things like programming language modules that can be tested very easily?
MP2E has quit [(Quit: leaving)]
chris| has quit [(Quit: Quit)]
MP2E has joined #nixos
chris| has joined #nixos
<johnramsden> MichaelRaskin: My poblem is a python script using '/bin/bash' mid script. Is there a recommended way to fix the path? Or do I just change it with 'sed' before running my install? If I just with 'sed' , what should I change the path to?
<clever> johnramsden: if the script lands in $out/bin/, you can usualy patch it to #!/usr/bin/env bash
<clever> johnramsden: and then nixpkgs will re-patch it to the absolute path of bash for you
<gchristensen> seems to not be a shebang
<johnramsden> Right-o
slack1256 has quit [(Quit: Leaving)]
<clever> johnramsden: ah, if its not a shebang, then you may want ${bash}/bin/bash
<kuznero> MichaelRaskin: is there any good example/tutorial of how I can do it? I am afraid that I will not do it without an example...
<johnramsden> clever: Ahh, thanks
sigmundv has joined #nixos
kuznero has quit [(Remote host closed the connection)]
kuznero has joined #nixos
mguentner2 has quit [(Quit: WeeChat 1.7)]
<shanemikel_> MichaelRaskin: I really don't know anything about x11 config. The only xorg config file I see is xorg.conf.d/10-evdev.conf, whose contents are https://clbin.com/fr2rX
<MichaelRaskin> And there is no /etc/X11/xorg.conf?
<shanemikel_> no
<MichaelRaskin> kuznero: (with import /path/to/nixpkgs {}; fsharp)
<clever> shanemikel_: is xorg still running? or failing to start?
<MichaelRaskin> shanemikel_: maybe set exportConfiguration = true; for services.xserver
<shanemikel_> that did it...here: https://clbin.com/Jgrni
<MichaelRaskin> It clearly has cirrus support
<kristoffer> I got Pandoc and Texlive to work. The problem seemed to be with my user-installed version of Texlive, and perhaps Pandoc as well. So I uninstalled them so that the stuff in configuration.nix would take precedence, I guess.
shanemikel_ has quit [(Remote host closed the connection)]
<MichaelRaskin> shanemikel_: so, time to post X.0.log of a failure, I guess
<MichaelRaskin> kuznero: what I posted is a closed Nix expression that you can put inside a list
shanemikel has joined #nixos
ebzzry has joined #nixos
<kuznero> MichaelRaskin, yep, I am trying it like so now: environment.systemPackages = with import /path/to/my/nixpkgs {}; [ fsharp41 ];
byteflame has joined #nixos
<MichaelRaskin> Yes, that should work;
exarkun has quit [(Ping timeout: 255 seconds)]
<shanemikel> I see in my journal that X is initializing the Qxl device
<NixOS_GitHub> [nixpkgs] layus opened pull request #24961: Thunderbird: Fix default mail client detection (master...thunderbird-default-mail-client) https://git.io/vSdvm
<MichaelRaskin> But fails?
<shanemikel> display-manager.service doesn't report any errors either
<MichaelRaskin> Qxl means that it just binds graphics to SPICE protocol
<kuznero> MichaelRaskin, though I need to defined an override for it ;) typically I will do something like this: https://pastebin.com/NkZFP013 But that need to also reference custom package like systemPackages above.
<MichaelRaskin> kuznero: why not just put this override in top-level/all-packages.nix?
<MichaelRaskin> I think fsharp does have the most natural matching mono version anyway
<MichaelRaskin> So building it with default mono is useless
<kuznero> MichaelRaskin, excellent point! Thanks! That is simplest
aminechikhaoui has quit [(Ping timeout: 268 seconds)]
exarkun has joined #nixos
<kuznero> How can I concat two lists in nix expression?
<clever> kuznero: [ 1 2 ] ++ [ 3 4 ]
<kuznero> clever, like in haskell, thanks!
<kuznero> :)
byteflame has quit [(Ping timeout: 240 seconds)]
hiratara has quit [(Quit: ZNC - http://znc.in)]
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vSdvr
<NixOS_GitHub> nixpkgs/master af416aa Jörg Thalheim: cargo: remove unnecessary rm...
<clever> kuznero: and also for simple haskell projects, you dont need cabal to build in nix: https://github.com/arcane-chat/arcane-chat/blob/master/chat-shaker/default.nix
hiratara has joined #nixos
<kuznero> clever, interesting, thanks!
<kuznero> btw, does anybody know if something was already done to get dotnet core into Nix?
<clever> kuznero: there is a mono package in nixpkgs, that i have used that to run an exe file before (i believe it was all .net bytecode)
<kuznero> clever, yep, but Microsoft is working on a new generation .net platform (x-plat) which will theretically replace mono at some point. A complete re-write of .Net eco system.
<clever> ah
<clever> gotta break everything dont they? lol
<kuznero> ;)
<makefu> where is the file programs.sqlite from https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz being built? also, why is the path /nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite hardcoded in both command-not-found.pl and programs.command-not-found ?
<kuznero> clever, I have problem with list concat in this case https://pastebin.com/DUxx0bir. Can you please help?
<clever> kuznero: and what is the error?
<kuznero> error: The option `ps' defined in `/etc/nixos/programming.nix' does not exist.
<clever> kuznero: that needs to be in a let block, not the main attribute set
<clever> now ps is a local variable, and wont be exported
<kuznero> Ah! thanks! Still trying to learn basics
<kuznero> Now it is error: syntax error, unexpected LET, at /etc/nixos/programming.nix:12:3
<clever> kuznero: can you gist the entire file?
<kuznero> sec
<copumpkin> shlevy: you around?
<kuznero> clever, here is the full file listing: https://pastebin.com/jD9yWWHp
<kuznero> Ah, the whole expression. I see now, thanks!
<clever> kuznero: for the exact syntax, its something like this
<clever> any place you can put a value, you can also do: let key=value; key=value; in value
<clever> so you can either do let key=value; in { key=value; }
<clever> or you can do { key = let key=value; in value; }
<NixOS_GitHub> [nixpkgs] copumpkin created copumpkin/nixos-install-refactor (+1 new commit): https://git.io/vSdfu
<NixOS_GitHub> nixpkgs/copumpkin/nixos-install-refactor d990aa7 Dan Peebles: Refactor nixos-install to separate out filesystem build logic...
stepcut has joined #nixos
plumps has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<makefu> clever: it seems that the current nixexpres.tar.xz programs.sqlite only contains about 20 entries. full size of the db is 12k
joneshf-laptop has joined #nixos
<makefu> shiet, ok that would explain that
<makefu> thanks
<clever> the .xz may need to be removed, and the compression code on 204 may need updating
<kuznero> clever, thanks for detailed clarification. It seems I have completed the work on my fsharp41 package. Just verified that I can build my own projects with new compiler in NixOS :D I am not sure how my pull reques on github get be patched through into master...
drasich has joined #nixos
<clever> kuznero: make sure you clone from master, make the changes, then commit, and push to your fork on github
mudri` has quit [(Quit: WeeChat 1.7)]
<clever> kuznero: and then in the github ui, you can create a pull request
<makefu> clever: it seems that command-not-found is currently broken in many layers of the stack. thanks for the help :)
<kuznero> clever, I did it all long time ago. My PR is https://github.com/NixOS/nixpkgs/pull/24385
<kuznero> clever, though I did it as a new package instead of upgrading existing one in order not to end up upgrading all the dependent packages. Authors could take it themselves.
<clever> yeah, since its purely adding new things, there is very little chance of it breaking old things
<clever> just need to wait for a maintainer to notice that things have been updated now
<makefu> *Notice Me Senpai*
<kuznero> clever, you mean maintainer of F# package or nixpkgs master?
<clever> kuznero: a nixpkgs maintainer
<kuznero> ok, I saw there are quite a lot of PRs in there, so will need to wait then ;)
markus1209 has joined #nixos
markus1219 has joined #nixos
<johnramsden> For some reason my installer seems to be looking for *.py files but the files that are there have no extension. Do I just need to rename all the files? Why would this be happening on Nix? Has anyone have this occur before when packaging something?
<kuznero> clever, MichaelRaskin: thanks for great help today! Till next time.
kuznero has quit [(Quit: Leaving)]
markus1199 has quit [(Ping timeout: 240 seconds)]
markus1189 has quit [(Ping timeout: 240 seconds)]
takle_ has joined #nixos
takle has quit [(Read error: Connection reset by peer)]
civodul has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
drasich has quit [(Ping timeout: 258 seconds)]
<hodapp> Interesting. pkgs/development/libraries/mapnik/default.nix contains python2 as a build input, yet it also produces python35Packages.python-mapnik, and the error that I see with boost appears to be because it tried to use a Python 2.x dependency with Python 3.x
<hodapp> and that makes me wonder if other packages produce exactly the same error
<NixOS_GitHub> [nixpkgs] Mic92 pushed 4 new commits to master: https://git.io/vSdJN
<NixOS_GitHub> nixpkgs/master 62b1bd1 zraexy: pythonPackages.iso-639: init at 0.4.5
<NixOS_GitHub> nixpkgs/master ab031bf zraexy: pythonPackages.iso3166: init at 0.8
<NixOS_GitHub> nixpkgs/master 51770c8 zraexy: streamlink: 0.3.0 -> 0.5.0
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #24884: streamlink: 0.3.0 -> 0.5.0 (master...streamlink) https://git.io/vSHTf
<hodapp> graaah. I don't know if python2 in the buildInputs/nativeBuildInputs means that it's linking against Python 2.x, or just that it's using Python 2.x in order to run scons
<makefu> clever: i am preparing a PR to refactor the command-not-found module to disable the feature if not required and for setting the dbPath
ij has left #nixos ["WeeChat 1.7"]
<hodapp> wait a minute, Scons still requires Python 2.x?
ryanartecona has joined #nixos
aneeshusa has joined #nixos
byteflame has joined #nixos
byteflame has quit [(Ping timeout: 252 seconds)]
johnramsden has quit [(Remote host closed the connection)]
justanotheruser has quit [(Ping timeout: 260 seconds)]
justanotheruser has joined #nixos
shanemikel_ has joined #nixos
mizu_no_oto has joined #nixos
<NixOS_GitHub> [nixpkgs] makefu opened pull request #24962: [WIP] Refactor command-not-found (master...modules/command-not-found/refactor) https://git.io/vSdUy
<makefu> clever: ^