<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?
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
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?
<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
<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
<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>
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.
<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?
<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>
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
<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
<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?
<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 :
<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.
<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?
<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>
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
<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>
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
<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
<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
<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
<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?
<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
<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.
<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?@
<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
<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
<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
<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
<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
<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.
<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.
<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.
<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>
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
<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?
<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?
<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>
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:
<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?
<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?
<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 ?
<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, 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
<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)]