gchristensen changed the topic of #nixos to: Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://botbot.me/freenode/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64
<Sonarpulse> dtz: its sort of a hack until I do an easier mass rebuild for this
<Sonarpulse> crossConfig is this old attribute I want to get rid of that I used to enable the strict logic in stdenv setup
<dtz> :D
<dtz> honestly that might cleanup a number of commits.... most of which I didn't submit yet since they were a bit wonky
* dtz looks
<samueldr> petersjt014[m]: or the installer does modify it but the shell doesn't use the expected one https://github.com/NixOS/nix/blob/master/doc/manual/installation/installing-binary.xml#L29
<petersjt014[m]> samueldr: the install script just runs `curl https://nixos.org/nix/install | sh` and does not appear to add anything to bashrc
<samueldr> I meant the script that this is running
<petersjt014[m]> the one at the url does not either
<petersjt014[m]> but the commands are aliased for a time
KABA has quit [Ping timeout: 260 seconds]
* samueldr is unpacking the tar.bz2 to have a proper look
bfrog has quit [Quit: WeeChat 2.0.1]
<samueldr> petersjt014[m]: this is the script that actually does the installation, in the tar.bz2 downloaded from the first curled script https://github.com/NixOS/nix/blob/561e977f51c1d9ec55e4a70791958d4e214df465/scripts/install-nix-from-closure.sh#L109-L149
<samueldr> and the highlighted section is the one that may have a failing assumption with how wsl runs
magnetophon has quit [Remote host closed the connection]
<infinisil> Sonarpulse: you probably meant #nixos-dev earlier
dbe_ has quit [Ping timeout: 240 seconds]
<Sonarpulse> infinisil: yes
<Sonarpulse> but dtz found it all the same
<dtz> :D
<infinisil> Ah right, should've looked there
digitus has quit [Quit: digitus]
<MichaelRaskin> Can the microcode situation be described by «Open the gate» now? Or do we still have hope? https://kek.gg/i/4Gb8jq.png
fyuuri has quit [Ping timeout: 246 seconds]
jb55 has quit [Ping timeout: 248 seconds]
verite has joined #nixos
elurin has joined #nixos
woboats has quit [Ping timeout: 256 seconds]
sdhand has quit [Ping timeout: 256 seconds]
sweater has quit [Ping timeout: 256 seconds]
sweater has joined #nixos
digitus has joined #nixos
woboats has joined #nixos
seanparsons has quit [Ping timeout: 256 seconds]
seanparsons has joined #nixos
sdhand has joined #nixos
* petersjt014[m] sent a long message: petersjt014[m]_2018-01-23_00:14:02.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/EJYqFdpnasAsbhGDdTuXsDyI>
sdhand is now known as Guest3182
zzamboni has quit [Quit: Leaving.]
stphrolland has quit [Ping timeout: 256 seconds]
manjaro-user- has joined #nixos
<samueldr> petersjt014[m]: if the path exists, it looks like it would be a proper fix
<petersjt014[m]> cool
<MichaelRaskin> > samueldr: would this be correct to fix it?
<MichaelRaskin> Ah
<MichaelRaskin> Retranslation not needed
<petersjt014[m]> time to find something stupid to do with nix on windows
<petersjt014[m]> maybe install gnome3?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 closed pull request #34178: clang-{4,5}: prefer python3, much friendlier for cross (staging...fix/clang-python3) https://git.io/vNVik
NixOS_GitHub has left #nixos [#nixos]
<samueldr> :) I was busy replying to a nixpkgs issue, but yeah, I open links to matrix texts when I'm actively replying to the user thanks MichaelRaskin!
<MichaelRaskin> sshfs-fuse
<petersjt014[m]> or install wine and run windows software in it
<MichaelRaskin> That sounds pointless. I mean, there are Wine builds for Windows without WSL.
ryanartecona has quit [Quit: ryanartecona]
<petersjt014[m]> > pointless
manjaro-user- is now known as manjaro-user__
<petersjt014[m]> that's the joke
<petersjt014[m]> but I do wanna try and see if I can get a tiling window manager or something woking
<MichaelRaskin> Gnome3 should complain without systemd
manjaro-user__ is now known as manjaro-user--
erasmas has quit [Quit: leaving]
<MichaelRaskin> Note that I didn't say you don't need _Wine_.
<MichaelRaskin> ratpoison doesn't want much
<MichaelRaskin> Unfortunately, it will only manage your WSL X session. Not all the windows of the outer system
superN00b has joined #nixos
<petersjt014[m]> ah
<petersjt014[m]> still'd be cool
<superN00b> hi folks...
digitus has quit [Quit: digitus]
<petersjt014[m]> and faster than a vm
<superN00b> i am trying to figure out this nixos thing... for example, simple question, where is configuration file for sshd service ?
sigmundv_ has joined #nixos
<superN00b> or firewall ?
<samueldr> /etc/nixos/configuration.nix for both answers
<samueldr> :)
<superN00b> [root@nixos:~]# cat /etc/nixos/configuration.nix |grep ssh
<superN00b> services.openssh.enable = true;
<manveru> superN00b: exactly
<superN00b> where I can change port of this service for example ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/staging 7e52676 Will Dietz: llvm-{4,5}: remove perl, groff -- not needed
<NixOS_GitHub> [nixpkgs] Ericson2314 pushed 2 new commits to staging: https://git.io/vNVMp
<NixOS_GitHub> nixpkgs/staging 796e2e8 John Ericson: Merge pull request #34177 from dtzWill/fix/llvm-remove-unneeded-deps...
NixOS_GitHub has left #nixos [#nixos]
<superN00b> to be from default 22 to 22522 for example ?
<manveru> `nixos-option services.sshd`
<samueldr> superN00b: https://nixos.org/nixos/options.html#services.openssh+port the .ports attribute
<manveru> shows you what you can set
<superN00b> thank you sir
<samueldr> or there too!
<samueldr> depends whether you prefer nixos-option or the browser, both should be fine, though nixos-option will always be up-to-date with your running system
<superN00b> manveru, this looks nice, thnx... where is this configured ?
<samueldr> while the website is for the current stable only
<superN00b> nixos-option is there nixos-help ?
<samueldr> man configuration.nix
<samueldr> the manpage is long though, using / will allow searching
<superN00b> I see
<superN00b> thnx folks a lot
<superN00b> and for example I wish to install nginx i should specify it in /etc/nixos/configuration. ?
<samueldr> yes
<superN00b> and that is like, all i have to do just add that line ???
<samueldr> yes!
<superN00b> hmmm
<samueldr> I personally find that awesome
<samueldr> (oh, and a nixos-rebuild)
Guest3182 is now known as sdhand
sdhand has joined #nixos
sdhand has quit [Changing host]
<superN00b> and then where is config file like in previous case services.whatever ?
<superN00b> nixos-option services.whateverService
<samueldr> not sure I follow, which configuration file?
<superN00b> when I asked for sshd config
<superN00b> there is nixos-option services.sshd
<superN00b> same is for whatever service we specify in /etc/nixos/configuration file ?
<samueldr> using either the previously linked browser interface or searching through `man configuration.nix` should allow you to find the configuration options for nginx
<superN00b> like nixos-option services.nginx ?
<samueldr> and once options are found, they can all be added to /etc/nixos/configuration.nix
sigmundv_ has quit [Ping timeout: 240 seconds]
<superN00b> oh I see
<superN00b> so is like all services under one configuration file ?
<superN00b> you just build up that file with services... etc... ok I see
<superN00b> thnx a lot
<samueldr> the configuration file can be split using a special option, `imports = [ ./some_file.nix ];`
<samueldr> but yes, there is one centralized location for the services
<superN00b> yeah like conf.d ?
<superN00b> thnx a bunch guys
<catern> hmm, should I parse derivations by evaling them in Python? (thinking)
<manjaro-user--> Hi. I'm a Noob in NixOS. How is the x service for the MATE desktop enabled?
<catern> check out my great new ATerm parser: eval(open(path_to_derivation).read(), {'Derive':lambda *args: args})
xcmw has joined #nixos
<superN00b> ok so how to change port from 22 to 22522 for example ?
<manveru> `services.openssh.ports = [ 22522 ];`
<superN00b> i found this /nix/store/b1z9lhn6vjl1s0bnspgnvswq48gnbnsm-sshd_config
rcshm has joined #nixos
<infinisil> manjaro-user--: services.xserver.desktopManager.mate.enable
<infinisil> manjaro-user--: use https://nixos.org/nixos/options.html to search for options
swayf has quit [Remote host closed the connection]
swayf has joined #nixos
<samueldr> infinisil: I think mate isn't present in 17.09 as a service
<infinisil> ah
swayf has quit [Remote host closed the connection]
swayf has joined #nixos
swayf has quit [Remote host closed the connection]
<samueldr> (it's not in the options page and PR was merged 31st of august)
swayf has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 pushed 8 new commits to staging: https://git.io/vNVSU
<NixOS_GitHub> nixpkgs/staging e33499b Will Dietz: python setuptools: fix for cross (nativeBuildInputs)
<NixOS_GitHub> nixpkgs/staging a5a64cf Will Dietz: lean: fixup nativeBuildInputs vs buildInputs
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/staging 4e80b56 Will Dietz: bootstrapped-pip: fix for cross (nativeBuildInputs)
ditadi has joined #nixos
<infinisil> Well I guess that's what I get for only checking my man page and linking the options page blindly
swayf has quit [Remote host closed the connection]
<samueldr> you're only off by days though, what luck :)
swayf has joined #nixos
swayf has quit [Remote host closed the connection]
swayf has joined #nixos
<manjaro-user--> Yes. mate is not a server... :(
ditadi has quit [Client Quit]
swayf has quit [Remote host closed the connection]
ditadi has joined #nixos
alex`` has quit [Ping timeout: 256 seconds]
Enzime has quit [Ping timeout: 268 seconds]
<samueldr> next stable version should have it, many users here are running "unstable", which may or may not be so much unstable
sigmundv_ has joined #nixos
swayf has joined #nixos
<superN00b> ok when I type it like that it send me in man pages... but if i remove spaces, it like goes fine, but then again greping showing 22 is in use... and also i am doing this via ssh in so when i systemctl restart sshd it should disconnect me, but that is not happening :)
<samueldr> (dogfooding is quite strong here :) )
<samueldr> superN00b: iirc sshd handles restarting without killing clients
sigmundv_ has quit [Max SendQ exceeded]
sigmundv_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 pushed 3 new commits to staging: https://git.io/vNVS8
<NixOS_GitHub> nixpkgs/staging 1f70b32 John Ericson: Merge pull request #34174 from dtzWill/update/wirelesstools...
<NixOS_GitHub> nixpkgs/staging e5f677f Will Dietz: wirelesstools: update (alpine uses this version), fix build, add license
<NixOS_GitHub> nixpkgs/staging de54275 Will Dietz: wireless-tools: don't assume gcc, don't use ldconfig, fix cross
NixOS_GitHub has left #nixos [#nixos]
<superN00b> [root@nixos:~]# nixos-option services.sshd.ports=[22522];
<samueldr> (which means that this works as expected for existing connections)
<samueldr> ah, this won't *set* an option
dan_b has quit [Ping timeout: 248 seconds]
<samueldr> from the man page: ``nixos-option - inspect a NixOS configuration``
<superN00b> ok so how command should look like, and where is configuration file with that (like sshd is listening on this port)
<samueldr> you would add the configuration to /etc/nixos/configuration.nix
<samueldr> this will override the default which exists in "nixpkgs"
alex`` has joined #nixos
<manjaro-user--> if it is not a service of x How is it installed mate?
<superN00b> is running some predefined stuff in /nix/store
<superN00b> ?
<samueldr> there are defaults, if that's what you're asking
swayf has quit [Ping timeout: 265 seconds]
<superN00b> ok
MichaelRaskin has quit [Ping timeout: 268 seconds]
ditadi has quit [Quit: WeeChat 2.0]
<superN00b> so once i specify mine everything regarding sshd, how i can be sure that nixos is running just mine, but not /nix/store stuff ?
seanparsons has quit [Ping timeout: 260 seconds]
<superN00b> and then this option as said is not in use ?
<superN00b> nixos-option services.sshd.ports = [ 22522 ];
<superN00b> ?
<superN00b> i just wish to run sshd and nginx, and firewall, where is configuration files ? ok i specify in /etc/nixos/configuration.nix that i wish to have sshd running and this so far is ok, i can ssh in to it as user then su... (figured it out is changed config once u add user... so where are all this magic happening ? files ? )
<manveru> superN00b: the "magic" is in nixpkgs modules
<superN00b> like before adding user, sshd will accept root request
<superN00b> but once user is added
<superN00b> root is not allowed to ssh in any more
<superN00b> but user is
<superN00b> and user is sudoer by default, i just did userad -c and -m switches...
<superN00b> is this fine ?
<superN00b> ok and this is like official https://github.com/NixOS/ ?
<superN00b> there should be all that we have ?
jensens has quit [Ping timeout: 265 seconds]
<manveru> uhm, yes
<superN00b> thnx a bunch
<superN00b> have to inspect all this
<manveru> it might take you a while to read it all, but that's the whole source of nixos
seanparsons has joined #nixos
<manveru> i gotta sleep :)
<superN00b> boss wish to move some stuff to this os
<superN00b> looks like I will need tons to learn
Enzime has joined #nixos
<manveru> btw if you want to know which configuration is in use atm
<manveru> `systemctl status sshd`
<superN00b> so just for example in configuration.nix we can specify stuff we need, just as base like #someservice {specifications, basedirpath, port, etc} and that is it ?
<manveru> it'll show you something like `/nix/store/dqcgp3xdwkhv1p8wdidkmq288kyapwfr-openssh-7.5p1/bin/sshd -f /nix/store/fkd50vjkb8cdc4h483axkv85b5s5wf8d-sshd_config`
<manveru> which is the current config file
<superN00b> thnx sir understand that
<manveru> yes
<manveru> for ssh, nginx, and firewall you'll need like 4 lines
<superN00b> ok ok
<superN00b> i am getting picture slowly
<superN00b> so for example multy host on nginx to have more domains on it, would require me to 'rewrite' standard way of nginx congig on centos for example, into this /etc/nginx/configuration.nix 'standard; ?
<superN00b> in centos or ubuntu or fedora or debian we have u know /etc/nginx/nginx.conf
<superN00b> so that stuff i need pretty much all of it
<manveru> you can include standard nginx config files in the nixos config too if you prefer that
<superN00b> i have to specify in /etc/nixos/configuration.nix ?
<superN00b> aha
<manveru> yeah
<manveru> setting services.nginx.httpConfig for example
<manveru> it just takes a string where you can put the http section of nginx config
<superN00b> I see
<superN00b> so is like whole syntax for like, everything is nixOS
<superN00b> looks interesting thank you guys a lot
<manveru> np, see you around
<superN00b> fur sure ;]
<superN00b> i will have a tons of questions as supern00b I am xD
<superN00b> going to try to 'configure' nginx
ryanartecona has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/staging e6f9e82 Ben Gamari: flex: Use native dependencies where applicable...
<NixOS_GitHub> nixpkgs/staging 715fcb4 Ben Gamari: flex: Don't disable static while cross-compiling flex...
<NixOS_GitHub> [nixpkgs] Ericson2314 pushed 5 new commits to staging: https://git.io/vNV9S
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/staging 67be78f Will Dietz: flex: patch around attempt to regen manpage, fix cross
aloiscochard has quit [Quit: Connection closed for inactivity]
<superN00b> ok once changes in configuration.nix is done i have to reload it somehow ? what i have to do ?
<samueldr> nixos-rebuild, with a parameter, read the man page for more details, but `nixos-rebuild switch` is probably what you'll want
<samueldr> switch switches the current system and for the next boot
mizu_no_oto has joined #nixos
Kingsquee has joined #nixos
<superN00b> ok so is like here i can specify my additional config file for nginx
<superN00b> imports =
<superN00b> like this /.hardware_configuration was done ?
sigmundv_ has quit [Ping timeout: 260 seconds]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/4ea23e7f1db (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [Client Quit]
<superN00b> undefined variable ‘lib’ at /etc/nixos/nginx.nix:1:6
<superN00b> and line 6 is from
<superN00b> it is included in /etc/nixos/configurarion.nix
<superN00b> imports =
<superN00b> [ # Include the results of the hardware scan.
<superN00b> ./hardware-configuration.nix
<superN00b> ./nginx.nix
<superN00b> ];
<superN00b> but when nixos-option rebuild switch give me err on line 6 complaining about lib
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vNVQn
<NixOS_GitHub> nixpkgs/master b1003e0 adisbladis: teamspeak_client: Re-link with qt 5.9
<NixOS_GitHub> nixpkgs/master 62c5295 adisbladis: Merge pull request #33863 from adisbladis/tsclient-qt59...
NixOS_GitHub has left #nixos [#nixos]
jb55 has joined #nixos
Guest29698 has quit [Ping timeout: 268 seconds]
sigmundv_ has joined #nixos
chisui has quit [Read error: Connection reset by peer]
manjaro-user-- has quit [Quit: Konversation terminated!]
xcmw has quit [Ping timeout: 240 seconds]
krey has joined #nixos
hellrazor has joined #nixos
swayf has joined #nixos
hellrazo1 has quit [Ping timeout: 246 seconds]
quam6246 has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
quam6246 has quit [Ping timeout: 246 seconds]
ryanartecona has joined #nixos
<superN00b> ok in /etc/nixos/configuration.nix I commented out openssh service, specified sshd.nix in /etc/nixos/ dir, and included it into main /etc/nixos/configuration.nix file... after reboot looks like same /nix/store stuff is used (default one, as sshd service)
bpa has quit [Remote host closed the connection]
ryanartecona has quit [Ping timeout: 240 seconds]
<superN00b> also I specified hostname in /etc/nixos/configuration then nixos-rebuild switch;
<superN00b> even reboot
<superN00b> but still is unchanged
<Ralith> anyone using nix to generate images for `runc`?
<spear2> superN00b have you looked for example configuration.nix files that configure for nginx?
<Ralith> container images*
Rusty1_ has joined #nixos
<superN00b> where I can find these ?
thc202 has quit [Ping timeout: 264 seconds]
<superN00b> first 2 hours with nixos gone :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vNV5a
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master ab59aef Markus Kowalewski: freeipmi: 1.5.5 -> 1.5.7
<NixOS_GitHub> nixpkgs/master 5b5aaf7 adisbladis: Merge pull request #34171 from markuskowa/freeipmi-pr...
<superN00b> and I am still not able to figure it out
dag has joined #nixos
Supersonic112 has quit [Disconnected by services]
dag is now known as Guest16530
phdoerfler has quit [Quit: Leaving.]
erlandsona has joined #nixos
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
dag__ has quit [Ping timeout: 246 seconds]
<erlandsona> Anyone here ever try to follow along with http://anderspapitto.com/posts/2015-02-28-deb-installation-nixos.html to learn how to install a .deb pkg?
<spear2> superN00b sorry i'm not familiar with nginx, here you might try an advanced search on github for examples: http://bit.ly/2DsYJdx
<superN00b> ok
<superN00b> forgot about nginx
<superN00b> sshd
<superN00b> [root@nixostest:~]# cat /etc/nixos/configuration.nix |grep ssh
<superN00b> ./sshd.nix
<superN00b> # services.openssh.enable = true;
<superN00b> ok
<superN00b> and /etc/nixos/sshd.nix file contain code from
<superN00b> but at the end of the day I am running again
<superN00b> [root@nixostest:/home/ggray]# ps -ef |grep sshd
<superN00b> root 7145 1 0 03:13 ? 00:00:00 /nix/store/cjj83sh12bzrzhpyz47p09hr3qzipvrb-openssh-7.5p1/bin/sshd -f /nix/store/20c05b0p9xq627jqc8ya5naav1iaskkn-sshd_config
<erlandsona> I'm running into error: fetchurl does not support md5 anymore, please use sha256 or sha512...
<erlandsona> superN00b: there's an option for sshd as a service... `services.sshd.enable = true;` I think.
quam6246 has joined #nixos
<spear2> superN00b: does sshd interface with nginx somehow?
<superN00b> no no sir, sorry 2 diff services i was trying to establish but lets focus on sshd
<spear2> superN00b: i use ssh/sshd in my configuration and i had no need to import a ./sshd.nix from etc, it's only a couple lines of configuration
<superN00b> so you put it all in /etc/nixos/configurarion.nix ?
<superN00b> what lines ?
<superN00b> any sample of it ?
<spear2> i think what you've included there is the definition of the options (with defaults such as 'enable = false')
<superN00b> ok sir, so in order for me to run sshd on port 22522 what I should write and where ?
quam6246 has quit [Client Quit]
<spear2> superN00b: in configuration.nix, you want the lines: http://nixpaste.lbr.uno/3huViVLQ?nix
threepointone has quit [Quit: Page closed]
{^_^} has quit [Remote host closed the connection]
<spear2> superN00b: configuration.nix is basically a function that outputs a bunch of options. so in the body you are just giving values to the various options and that is used to define what software is installed, the contents of /etc/ configuration files, and so on
quam6246 has joined #nixos
{^_^} has joined #nixos
xcmw has joined #nixos
<spear2> using imports = [ ./foo.nix ]; is just a way to modularize setting these options so it's not all in one file
<spear2> it's not actually required
7GHABX1UZ has joined #nixos
<7GHABX1UZ> [nixpkgs] Ericson2314 closed pull request #34180: texinfo: fix cross (staging...fix/texinfo-cross) https://git.io/vNVPG
<17SAALZ76> nixpkgs/staging f57fc78 Will Dietz: texinfo: fix cross
7GHABX1UZ has left #nixos [#nixos]
<17SAALZ76> [nixpkgs] Ericson2314 pushed 2 new commits to staging: https://git.io/vNVFm
17SAALZ76 has joined #nixos
<17SAALZ76> nixpkgs/staging e1b8eb7 John Ericson: Merge pull request #34180 from dtzWill/fix/texinfo-cross...
17SAALZ76 has left #nixos [#nixos]
quam6246 has quit [Ping timeout: 264 seconds]
<superN00b> ok I see
<superN00b> but then again
<superN00b> sshd is running by some
quam6246 has joined #nixos
<superN00b> [root@nixostest:~]# ps -ef |grep sshd
<superN00b> root 10686 1 0 03:35 ? 00:00:00 /nix/store/cjj83sh12bzrzhpyz47p09hr3qzipvrb-openssh-7.5p1/bin/sshd -f /nix/store/dv3r5l26pvmsg4iwc86r6z8n1amibi5c-sshd_config
<superN00b> this is what I do not understand... and this is read only file
erlandsona has quit [Quit: See y'all later]
glenn_ has joined #nixos
<spear2> superN00b: you mean the sshd_config file?
<superN00b> yeah
<superN00b> where is it
<superN00b> as far I can see same goes for nginx
<superN00b> then in nginx for example have this
<superN00b> http {
<superN00b> include /nix/store/b3k5h46fda4ywy65dm905h5kq96kg2vc-nginx-1.12.1/conf/mime.types;
<superN00b> include /nix/store/b3k5h46fda4ywy65dm905h5kq96kg2vc-nginx-1.12.1/conf/fastcgi.conf;
<superN00b> include /nix/store/b3k5h46fda4ywy65dm905h5kq96kg2vc-nginx-1.12.1/conf/uwsgi_params;
<superN00b> o_O
<superN00b> store ????
<superN00b> like microsoft ? :)
<__red__> Philosophical Question. I'm porting something to NixOS which I want to pass upstream at some point. They don't use configure but a bastard incantation of make, ldconfig, and other type things to idenify platform / installed libraries etc.
<spear2> superN00b: all software installed on the system is in /nix/store/
<MP2E> the entirety of /nix/store is read-only except for nix itself, yes. The package management model is immutable, if you want to change a config file or something in the store, you need to find the .nix file that creates that store file, modify that, and evaluate it
<MP2E> as in nix can write to /nix/store
<MP2E> but users cannot (unless you force it, which is a really bad idea)
<spear2> superN00b: if you look in /etc/ you will see most everything are symlinks to the store
<__red__> Since I know the platform, and I know the installed libraries - would it be considered bad form to just replace the makefile? It would be so much more maintainable
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 closed pull request #34173: misc minor cross fixups from @bgamari (staging...fix/cross-misc-ben-1) https://git.io/vNVoF
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #34142: ckb: 0.2.8 -> 0.2.9 + project moved (master...update-ckb) https://git.io/vNaCz
NixOS_GitHub has left #nixos [#nixos]
<superN00b> spear2, yes sir, i figured it out /etc/anywhint is symlinc to store, and store files are noneditable, so my question is how the heck i am going to configure anything ???
<superN00b> i have tons of vhosts under nginx
<superN00b> some behind proxies
<superN00b> some under proxy chains
<superN00b> diff ports n tons of services
<superN00b> when i just enable nginx under /etc/nixos/configuration.nix
<spear2> superN00b: for sshd the contents of /etc/ssh/sshd_config is given in the option services.openssh.extraConfig
<superN00b> i got 404 as default bc config file in store is like that
<superN00b> and i cant change it ?
<superN00b> for example i wish to setup site under /srv/myfucknsiteroot so how to do this ?
<spear2> superN00b: sorry not familiar with nginx, have a look at the options with $ nixos-option services.nginx
<spear2> looks like services.nginx.config is the contents of nginx.conf
<superN00b> ok when i type that
<superN00b> i got list of like stuff
<superN00b> at the bottom is virtualHosts
<superN00b> look fancy
<superN00b> but how now to execute this virtualHosts
<superN00b> command
<superN00b> under nixos-option services.nginx
orivej has quit [Ping timeout: 268 seconds]
<spear2> superN00b: this is just giving you a description of what options are available to set in configuration.nix
<spear2> so you would add a line to configuration.nix such as: services.nginx.virtualHosts = "...";
s33se has joined #nixos
<superN00b> ok
<superN00b> but if i do all what i need in configuration.nix
<superN00b> that file would become a huge mess
<spear2> for some reason $ nixos-option services.nginx.virtualHosts doesn't have any explanation, so i'm not sure what it's supposed to contain, but it might just be a file string
<spear2> *file contents string
<MP2E> sure, but you can split configuration.nix into arbitrarily many other .nix files in other folders if you want, by including them into configuration.nix!
<superN00b> if I include it in .nginx.nix
<spear2> superN00b: that's where imports = [ ... ]; is handy
<superN00b> it wont work
<superN00b> ok
<superN00b> let me rephrase this
<superN00b> [root@nixostest:~]# cat /etc/nixos/configuration.nix |grep nginx
<superN00b> services.nginx.enable = true;
<superN00b> ok
<superN00b> can i use
<superN00b> services.nginx.enable = true
<superN00b> and put it into /etc/nixos/nginx.nix
<superN00b> then say to main configuration to include that file
<superN00b> should I have exactly same effect ?
s33se_ has quit [Ping timeout: 248 seconds]
<spear2> i believe so: imports = [ ./nginx.nix ];
<MP2E> Yep, exactly
<spear2> (of course keep the ./hardware-configuration.nix that is already imported
<superN00b> well, when I do that i got this
<superN00b> syntax error, unexpected '=', expecting $end, at /etc/nixos/nginx.nix:1:23
<superN00b> and this is just one line in that file
<superN00b> [root@nixostest:/etc/nixos]# cat /etc/nixos/nginx.nix
<superN00b> services.nginx.enable = true;
<superN00b> so what I am doing wrong ?
<spear2> superN00b: my understanding is that those imports need to be a function that takes some arguments, take a look at /etc/nixos/hardware-configuration.nix for example
<__red__> Philosophical Question. I'm porting something to NixOS which I want to pass upstream at some point. They don't use configure but a bastard incantation of make, ldconfig, and other type things to idenify platform / installed libraries etc.
<spear2> the first line is { config, lib, pkgs, ... }: which means it defines a function that takes those arguments
<__red__> Since I know the platform, and I know the installed libraries - would it be considered bad form to just replace the makefile? It would be so much more maintainable
Kingsquee has quit [Quit: https://i.imgur.com/qicT3GK.gif]
<spear2> superN00b: so if i understand correctly the function you define in your file will be called with the appropriate arguments
<superN00b> aha
<superN00b> so in order to have nginx
<superN00b> i have to write it under nixos syntax ?
<superN00b> like this file
<spear2> so your file should be something like { ... }: { services.nginx.enable = true; }
<superN00b> ?
<superN00b> this looks like NGINX for nixOS to mee
quam6246 has quit [Quit: quam6246]
hakujin has quit [Ping timeout: 246 seconds]
<spear2> superN00b: it will be like that, but i believe that file defines the configuration options for nginx and sets them to defaults
mbrgm has quit [Ping timeout: 256 seconds]
<superN00b> yes sir, and it wont work at all
quam6246 has joined #nixos
<superN00b> since when place it
<superN00b> got this
<superN00b> rror: The option `services.nginx.enable' in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/services/web-servers/nginx/default.nix' is already declared in `/etc/nixos/nginx.nix'.
<superN00b> (use ‘--show-trace’ to show detailed location information)
<azazel> wtf, how can i debug an infinite recursion?
<spear2> superN00b: like i said, that is the definition of the options, not a configuration file that you should try to import
<azazel> i don't understand what's happening
<spear2> superN00b: compare line 263 of that file with the output of $ nixos-option services.nginx.statusPage
<superN00b> ok spear2 where to find the configuration file that I should try to import ? is there like official library of these files ?
mbrgm has joined #nixos
<superN00b> nixos-option services.nginx.statusPage gives nada
<azazel> superN00b: you mean some pre-prepared configuration for nginx? are you able to configure it in other OSs?
<superN00b> azazel yes sir, did it tons of times on bsd, centos, ubuntu, etc...
<spear2> superN00b: you can try searching for an example configuration for nginx (on github maybe), otherwise you'll have to inspect the available options and set them appropriately
<superN00b> even on aix n rhel
<superN00b> aha, ok ok so looks like specify everything in that file
<spear2> superN00b: i don't know why that command wouldn't give a description of the statusPage option, but it should correspond to the option definition in the file
<superN00b> assembling the picture slowly :) thnx guys
<spear2> superN00b: the actual option definitions don't start until line 258, but you can see the defaults for each one so if you don't need to override a default you don't have to specify that option
<spear2> the full set of configuration.nix options are also here: https://nixos.org/nixos/manual/options.html
<azazel> superN00b: then generally you enable it and then set services.nginx.virtualHosts."your_server_name" to something like {root= "A path"; extraConfig='' your exta directives on more than one line'';}
<superN00b> looking into it atm
<spear2> oh this actually gives some description for that option, not sure why nixos-option didn't return this: https://nixos.org/nixos/manual/options.html#opt-services.nginx.virtualHosts
<spear2> not sure what "an attribute set of submodules" is exactly :)
acowley has quit [Ping timeout: 268 seconds]
acowley has joined #nixos
<azazel> a set where each value is the definition of a virtualhost (submodule)
mizu_no_oto has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<azazel> as defined in the options... (with keys like root, enableACME, locations, etc.)
<spear2> azazel: is a submodule a nix thing or an nginx thing?
<azazel> spear2: a nix thing
Arcaelyx has joined #nixos
quam6246 has quit [Quit: My computer has gone to sleep. ZZZzzz…]
ryanartecona has joined #nixos
<superN00b> this looks somehow weird will oversleep n come back, thnx folks once again :)
ryanartecona has quit [Ping timeout: 256 seconds]
<superN00b> finally
<superN00b> i figured it out
<superN00b> thank you guys a bunch
<superN00b> i got my site up n working with all of my shit n options
<superN00b> ;)
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/beb70f1370b (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [Client Quit]
alex`` has quit [Ping timeout: 256 seconds]
krey has quit [Quit: Lost terminal]
srdqty has joined #nixos
marusich has joined #nixos
Sonarpulse has quit [Ping timeout: 256 seconds]
rcshm has quit [Ping timeout: 248 seconds]
xcmw has quit [Ping timeout: 246 seconds]
ivanivan has joined #nixos
la_putin has joined #nixos
el_putin has quit [Read error: Connection reset by peer]
mrkgnao has joined #nixos
stepcut has joined #nixos
<__red__> umm, So something _something_ installed /nix/store/6jffcc1ybxm7iyv2fy4i7fwc5b417qw5-SDL2-2.0.7-dev/ - .... --> but it's not SDL2 as that just installs /nix/store/ympq25vyf2zdyshfwndy54d4fvj1dbfj-SDL2-2.0.7
<__red__> any hints as to how I can hunt it down please?
stepcut has quit [Read error: Connection reset by peer]
jrolfs has quit [Ping timeout: 260 seconds]
stepcut_ has joined #nixos
<__red__> nix-env -qaP | grep -i sdl ## also gives no clue
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #34160: libinput: 1.9.3 -> 1.9.4 (staging...staging) https://git.io/vNVtq
NixOS_GitHub has left #nixos [#nixos]
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 268 seconds]
Mateon3 is now known as Mateon1
hamishmack has quit [Quit: hamishmack]
hamishmack has joined #nixos
hamishmack has quit [Client Quit]
marusich has quit [Ping timeout: 265 seconds]
marusich has joined #nixos
rauno3 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
jrolfs has joined #nixos
krey has joined #nixos
jrolfs has quit [Ping timeout: 260 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vNVhd
<NixOS_GitHub> nixpkgs/master 70cf5ea adisbladis: Merge pull request #34147 from dotlambda/yarl...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master efbe08a Robert Schütz: python3Packages.yarl: 1.0.0 -> 1.1.0
krey has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #34139: bedtools: 2.26.0 -> 2.27.1 (master...bedtools) https://git.io/vNaYS
NixOS_GitHub has left #nixos [#nixos]
<spear2> __red__: nix-store -q --referers <store-path> ?
schoppenhauer has quit [Ping timeout: 248 seconds]
schoppenhauer has joined #nixos
rauno has quit [Ping timeout: 246 seconds]
hakujin has joined #nixos
yegle has quit [Ping timeout: 256 seconds]
hakujin has quit [Ping timeout: 246 seconds]
<__red__> spear2: [root@apophenia:/etc/nixos/nixpkgs]# nix-store -q --referers /nix/store/6jffcc1ybxm7iyv2fy4i7fwc5b417qw5-SDL2-2.0.7-dev/
<__red__> /nix/store/6jffcc1ybxm7iyv2fy4i7fwc5b417qw5-SDL2-2.0.7-dev
aanderse has quit [Ping timeout: 256 seconds]
<spear2> __red__: does it go away if you clean up garbage?
<__red__> probably - but I want to keep it :-)
<__red__> lemme do that - sec
yegle has joined #nixos
<__red__> yup garbage collection killed it
justan0theruser has joined #nixos
justan0theruser has quit [Client Quit]
justan0theruser has joined #nixos
justanotheruser has quit [Ping timeout: 248 seconds]
aarvar has joined #nixos
<__red__> I guess now I have to find that package again
Rusty1_ has quit [Quit: Konversation terminated!]
ivanivan has quit [Ping timeout: 265 seconds]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] jonafato opened pull request #34185: gnome-shell-extension-pixel-saver: init at 1.10 (master...gnome-shell-extension-pixel-saver) https://git.io/vNwvu
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jonafato opened pull request #34186: gnome-shell-extension-nohotcorner: init at 16.0 (master...gnome-shell-extension-nohotcorner) https://git.io/vNwvN
NixOS_GitHub has left #nixos [#nixos]
Sonarpulse has joined #nixos
ma27 has joined #nixos
ma27 has quit [Ping timeout: 265 seconds]
kiloreux has joined #nixos
kiloreux has quit [Remote host closed the connection]
kiloreux has joined #nixos
kiloreux has quit [Remote host closed the connection]
kiloreux has joined #nixos
Arcaelyx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rauno has joined #nixos
jdrowell_ has quit [Ping timeout: 256 seconds]
Sonarpulse has quit [Ping timeout: 246 seconds]
zzamboni has joined #nixos
dbe_ has joined #nixos
MercurialAlchemi has joined #nixos
zzamboni has quit [Quit: Leaving.]
`_ has quit [Ping timeout: 246 seconds]
jdrowell_ has joined #nixos
jdrowell__ has joined #nixos
atrx has joined #nixos
jdrowell_ has quit [Ping timeout: 248 seconds]
jrolfs has joined #nixos
jdrowell__ has quit [Ping timeout: 276 seconds]
jrolfs has quit [Ping timeout: 255 seconds]
jrolfs has joined #nixos
Itkovian has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #34152: python.ldap3: 2.4 -> 2.4.1 (master...python.pkgs.ldap3-2.4.1) https://git.io/vNahJ
NixOS_GitHub has left #nixos [#nixos]
akl has quit [Ping timeout: 255 seconds]
akl has joined #nixos
Guest16530 has quit [Ping timeout: 248 seconds]
Itkovian has quit [Ping timeout: 240 seconds]
dag has joined #nixos
dag is now known as Guest71418
rogue_koder has quit [Quit: Konversation terminated!]
jrolfs has quit [Ping timeout: 246 seconds]
dbe_ has quit [Ping timeout: 240 seconds]
leat has quit [Ping timeout: 264 seconds]
zzamboni has joined #nixos
hamishmack has joined #nixos
knupfer has joined #nixos
asuryawanshi has joined #nixos
kreetx_ has quit [Ping timeout: 256 seconds]
hakujin has joined #nixos
zzamboni has quit [Quit: Leaving.]
hakujin has quit [Ping timeout: 276 seconds]
asuryawanshi has quit [Remote host closed the connection]
jb55 has quit [Ping timeout: 240 seconds]
MP2E has quit [Remote host closed the connection]
periklis has joined #nixos
liori has quit [Remote host closed the connection]
sigmundv__ has joined #nixos
stphrolland has joined #nixos
Biappi has quit [Ping timeout: 256 seconds]
<rauno> morning
<rauno> how to add kernel module to configuration.nix ?
leat has joined #nixos
<rauno> i can see boot.kernelModules = [ "kvm-intel" ]; in hardware-* but when i modify it and add it to another included config file it is being read/loaded
<rauno> oaky, weird - now it worked
<rauno> but how can i update this kernelModules list instead of redefining it
hyper_ch2 has joined #nixos
asuryawanshi has joined #nixos
<hyper_ch2> Hi there, I have a nix expression that pulls source from a git repo.... how would would I now pull a different file from another location also into the downloaded source?
zzamboni has joined #nixos
<ertes-w> rauno: AFAIK the modules you specify there will be *added* to kernel modules that come from other NixOS modules
<ertes-w> (your configuration is a NixOS module)
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
asuryawanshi has quit [Ping timeout: 264 seconds]
lonokhov has joined #nixos
<rauno> okay, this didnt actually answer my question :)
<srhb> hyper_ch2: cp $src2/foo ./bar
<rauno> just wonder if something like boot.kernelModules = boot.kernelModules // [ "another_module" ]; work :)
<srhb> hyper_ch2: Or if you use srcs with a list of fetchwhatevers, everything will get unpacked in the same directory
<srhb> rauno: Lists merge by default.
<srhb> rauno: When they are merged from different modules
<rauno> oh, so having just boot.kernelModules = [ "another_module" ]; will just add it to previously defined modules ?
<srhb> rauno: Yes, exactly. :)
<rauno> bah, wonderful :D
<srhb> That's the cleverness of modules :)
<Yaniel> what if you have that line multiple times?
<srhb> Yaniel: In one module? That's an error.
<Yaniel> is the result t he same as just writing all modules in one list?
la_putin has quit [Quit: Konversation terminated!]
<Yaniel> ah
<hyper_ch2> srhb: download from the internet.... I added now a postUnpack = '' curl -o "$sourceRoot/...." "url" ''
<srhb> hyper_ch2: Eek.
<srhb> hyper_ch2: That's impure.
<hyper_ch2> that's why I asked how to do it properly
<srhb> hyper_ch2: I would recommend using srcs if you can get away with it and otherwise just use another src attribute with fetchurl :)
<hyper_ch2> and it doesn't like it
<hyper_ch2> another src attribute... I'll try
reinzelmann has joined #nixos
<srhb> hyper_ch2: It's quite flexible, I mean. You can also let foo = fetchurl { ... } in ... something using foo
marusich has quit [Quit: Leaving]
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nixos
Tucky has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vNwtB
<NixOS_GitHub> nixpkgs/master c26b40a adisbladis: Merge pull request #34148 from erictapen/osrm-backend-5.15.0...
<NixOS_GitHub> nixpkgs/master 92aa0fa Justin Humm: osrm-backend: 5.14.3 -> 5.15.0
NixOS_GitHub has left #nixos [#nixos]
dbe_ has joined #nixos
<hyper_ch2> srhb: seems I might have it working now
<srhb> hyper_ch2: yay :)
mrkgnao has quit [Ping timeout: 246 seconds]
asuryawanshi has joined #nixos
<hyper_ch2> well, it's compiling.... so I have to see whether it will work
Itkovian has joined #nixos
<hyper_ch2> trying to apply latest stability patch for zfs encryption on latest zfs master
<hyper_ch2> it compiled....
<adisbladis[m]> Hmm? What patch?
<hyper_ch2> adisbladis[m]: patch 6864 - my current version that compiled https://paste.simplylinux.ch/view/bbec32ff
<hyper_ch2> but I'm not at home so I won't reboot server into it
<hyper_ch2> also need to remove mirrored drives first in case something goes wrong :)
stphrolland has quit [Remote host closed the connection]
<hyper_ch2> adisbladis[m]: I added fetchurl to top line, then added lines 39 to 47 to fetch that missing file and in unstable I updated Mic92s patch for current master and added the stability patch
nschoe has joined #nixos
<hyper_ch2> also lines 173-176 was set to current master (from sunday)
<adisbladis[m]> Ahh check. I'm waiting til those patches hit master :)
zzamboni has quit [Quit: Leaving.]
<hyper_ch2> adisbladis[m]: feedback on the PR is good - that's why I'd like to also test it
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
<hyper_ch2> adisbladis[m]: do you use zfs encryption?
<adisbladis[m]> Yep
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
zzamboni has joined #nixos
<hyper_ch2> adisbladis[m]: well, you'll have to re-create the encrypted DS again with that patch due to format change
aloiscochard has joined #nixos
orivej has joined #nixos
civodul has joined #nixos
zzamboni has quit [Ping timeout: 260 seconds]
zzamboni has joined #nixos
pie__ has quit [Ping timeout: 246 seconds]
<adisbladis[m]> hyper_ch2: I'm aware :)
Itkovian has quit [Remote host closed the connection]
verite has quit [Ping timeout: 264 seconds]
zzamboni has quit [Ping timeout: 240 seconds]
zzamboni has joined #nixos
zzamboni has quit [Ping timeout: 264 seconds]
Biappi has joined #nixos
fyuuri has joined #nixos
spear2 has quit [Remote host closed the connection]
zzamboni has joined #nixos
<srhb> s
<srhb> Woops, sorry
orivej has quit [Ping timeout: 256 seconds]
ylwghst has joined #nixos
pie_ has joined #nixos
dywedir has quit [Remote host closed the connection]
zzamboni has quit [Remote host closed the connection]
dywedir has joined #nixos
zzamboni has joined #nixos
zzamboni1 has joined #nixos
zzamboni has quit [Remote host closed the connection]
zzamboni1 has quit [Remote host closed the connection]
swayf has quit [Ping timeout: 265 seconds]
ThatDocsLady has joined #nixos
Itkovian has joined #nixos
alex`` has joined #nixos
ssmike has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to unstable-aarch64: https://git.io/vNwYd
<NixOS_GitHub> nixpkgs/unstable-aarch64 dab334d Tuomas Tynkkynen: nixos/release.nix: Use callSubTestsOnTheseSystems for ec2 tests
NixOS_GitHub has left #nixos [#nixos]
rauno has quit [Ping timeout: 265 seconds]
orivej has joined #nixos
bpa has joined #nixos
Ross has quit [Quit: ZNC - http://znc.in]
Ross has joined #nixos
Ross has quit [Client Quit]
ssmike has quit [Remote host closed the connection]
Ross has joined #nixos
ssmike has joined #nixos
glenn_ has quit [Remote host closed the connection]
glenn_ has joined #nixos
jensens has joined #nixos
Isorkin_ has joined #nixos
Isorkin has quit [Ping timeout: 256 seconds]
glenn_ has quit [Ping timeout: 255 seconds]
astsmtl has quit [Ping timeout: 248 seconds]
rauno has joined #nixos
bpa has quit [Remote host closed the connection]
hyper_ch2 has quit [Ping timeout: 260 seconds]
hyper_ch2 has joined #nixos
thc202 has joined #nixos
fyuuri has quit [Ping timeout: 246 seconds]
asuryawanshi has quit [Remote host closed the connection]
bpa has joined #nixos
Myrl-saki has joined #nixos
asuryawanshi has joined #nixos
atrx has quit [Ping timeout: 264 seconds]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
astsmtl has joined #nixos
astsmtl has quit [Changing host]
astsmtl has joined #nixos
glenn_ has joined #nixos
swayf has joined #nixos
swayf has quit [Remote host closed the connection]
swayf has joined #nixos
swayf_ has joined #nixos
FRidh has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
oida has joined #nixos
ssmike has quit [Remote host closed the connection]
swayf has quit [Ping timeout: 265 seconds]
ssmike has joined #nixos
hyper_ch2 has joined #nixos
bpa has quit [Quit: Leaving]
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
pie_ has quit [Ping timeout: 240 seconds]
ixxie has joined #nixos
tmaekawa has joined #nixos
ixxie has quit [Client Quit]
tmaekawa has quit [Client Quit]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti closed pull request #34172: ghc841: update to 8.4.1-alpha2 (master...x-ghc-8.4-master) https://git.io/vNVrC
NixOS_GitHub has left #nixos [#nixos]
<hyper_ch2> Mic92: I did manage to compile latest master with stability patches.... I'll test it first on my home server how the new encryption and migration works
<hyper_ch2> Mic92: yes, that's the one
<Mic92> we probably need a mailing post, when we add it to nixos.
<Mic92> to help people to migrate
<hyper_ch2> Mic92: that anyway... that's why I wanna test it first
<hyper_ch2> Mic92: according to my knowledge, once that patch is applied, current encrypted DS will be RO only
<hyper_ch2> Mic92: my current zfs default nix where it compiled is this https://paste.simplylinux.ch/view/bbec32ff but didn't have time to test yet, will do so probably tonight
<Mic92> yes, but we should push a fair warning before that.
fyuuri has joined #nixos
ma27 has joined #nixos
ma27 has quit [Client Quit]
ma27 has joined #nixos
dbe_ has quit [Ping timeout: 240 seconds]
<hyper_ch2> safest way for migration is probably: (1) boot live iso with stability patches (2) create new encrypted DS (3) zfs send | receive child-DS to new encrypted DS (4) delete old encrypted DS (5) rename new encrypted ds to actual wanted name [this only works if one has created an encrypted ds as "top container" for child DSes]
glenn_ has quit [Ping timeout: 276 seconds]
dbe_ has joined #nixos
rardiol1 has joined #nixos
jdrowell has joined #nixos
agrajag_ has joined #nixos
jdrowell_ has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/4ea23e7f1db (from 11 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
nix-gsc-io`bot has quit [Client Quit]
kiloreux has quit [Ping timeout: 248 seconds]
periklis has quit [Ping timeout: 246 seconds]
jdrowell has quit [Ping timeout: 256 seconds]
jdrowell_ has quit [Ping timeout: 240 seconds]
glenn_ has joined #nixos
<hyper_ch2> Mic92: I'll test it at home and let you know how it's going... the reason I want to test it already is because it also affects me in another bug https://github.com/zfsonlinux/zfs/issues/6821
Phillemann has joined #nixos
<Phillemann> Is there a way to add the working directory to PYTHONPATH when I "nix-shell" in a python project?
<Phillemann> I mean, other than explicitly typing "export PYTHONPATH=$(pwd):$PYTHONPATH"
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #34188: [WIP] home-assistant: init at 0.61.1 (master...home-assistant) https://git.io/vNwWP
<srhb> Phillemann: Perhaps using shellHook in the shell.nix file?
<srhb> Phillemann: As in shellHook = "export PYTHONPATH=$(pwd):$PYTHONPATH"
<Guest71418> 2
<Phillemann> srhb: Yes indeed, that worked. Thanks! :)
kiloreux has joined #nixos
<adisbladis[m]> Nitpick: You might want to use shellHook = "export PYTHONPATH=${./.}:$PYTHONPATH";
<adisbladis[m]> Phillemann: And let nix resolve the path to the project rather than setting pwd
<srhb> adisbladis[m]: Ah, good point! :)
<adisbladis[m]> Then you will get the correct path even if you invoke "nix-shell path/to/shell.nix" :)
<Phillemann> Ahhh, I see. I'll correct that right away.
<Phillemann> Ah, that doesn't result in the same thing.
<kiloreux> I'm trying to use this to create my own nix channel https://nixos.org/nix-dev/2012-November/010181.html
<kiloreux> But it's not working at all.
<Phillemann> Now /nix/store/.../project is on top of my PYTHONPATH. I'd like to have my source tree in PYTHONPATH so I can change stuff and just restart the application.
<kiloreux> Does anyone have a better way to create custom nix-channels ?
liori has joined #nixos
__Sander__ has joined #nixos
kranium has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] edwtjo pushed 1 new commit to master: https://git.io/vNw4U
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master a4f433c Edward Tjörnhammar: i2pd: expose flags
simukis has joined #nixos
kier has quit [Quit: No Ping reply in 180 seconds.]
dbe_ has quit [Ping timeout: 240 seconds]
glenn_ has quit [Ping timeout: 255 seconds]
bongsun has joined #nixos
kier has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
ssmike has quit [Quit: ssmike]
ssmike has joined #nixos
parenthetical has joined #nixos
hakujin has joined #nixos
hakujin has quit [Ping timeout: 246 seconds]
ma27 has quit [Ping timeout: 255 seconds]
glenn__ has joined #nixos
raynold has quit [Quit: Connection closed for inactivity]
tmaekawa has joined #nixos
fyuuri has quit [Ping timeout: 264 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] JohnAZoidberg opened pull request #34190: nixos/acpid: pass event parameters to handler (master...acpid) https://git.io/vNwEZ
NixOS_GitHub has left #nixos [#nixos]
FRidh has quit [Ping timeout: 240 seconds]
FRidh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #34138: yabar-unstable: 2018-01-02 -> 2018-01-18 (master...update-yabar) https://git.io/vNatI
NixOS_GitHub has left #nixos [#nixos]
civodul has quit [Ping timeout: 260 seconds]
<typetetris> Hi there! Could you please recommend a sane frontend programm to me, that worked good for you?
<typetetris> sane = scanner access now easy
<srhb> typetetris: lol, that made no sense at first :-P
<srhb> "Emacs!"
<TimePath> does simple-scan use sane?
<sphalerite> typetetris: I usually use GIMP which I think goes through xsane
<sphalerite> TimePath: I think so
tmaekawa has quit [Quit: tmaekawa]
<typetetris> I try simple scan first, and after that the emacs things for the lulz :) If that doesn't yield acceptable results, I go for gimp (which I would like to avoid, because it would be a rather long download for me.) Thank you all.
<goibhniu> xsane works for me
* necronian sent a long message: necronian_2018-01-23_12:11:13.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/YQqrNaHPWyouiloNxXgVLYVS>
<necronian> Whoops, sorry... wrong channel
viric has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master eb30d65 Markus Kowalewski: arpack: 3.3.0 -> 3.5.0
<NixOS_GitHub> nixpkgs/master cac51ef Thomas Tuegel: Merge pull request #34181 from markuskowa/arpack-pr...
<NixOS_GitHub> nixpkgs/master a168805 Markus Kowalewski: arpack: remove FFLAGS
<NixOS_GitHub> [nixpkgs] ttuegel pushed 3 new commits to master: https://git.io/vNwzO
NixOS_GitHub has left #nixos [#nixos]
dbe_ has joined #nixos
<TimePath> Necronian: which channel do I have to join to get more like that?
ma27 has joined #nixos
agrajag_ has quit [Ping timeout: 255 seconds]
<sphalerite> ^
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #34125: bwa: 0.7.16a -> 0.7.17 (master...bwa) https://git.io/vN2oY
NixOS_GitHub has left #nixos [#nixos]
<necronian> TimePath: The channel on my personal server where I often complain to my friends :-p
<typetetris> Woa, that was pleasent journey: Add `hardware.sane.enable = true;` to `/etc/nixos/configuration.nix`, do `nixos-rebuild switch` and ` nix-env -iA nixos.scan-simple ` start the programm and it worked and yielded acceptable results, in about a minute ...
<TimePath> Necronian: ah, then you probably don't want us internet people invading :)
glenn__ has quit [Ping timeout: 255 seconds]
<srhb> typetetris: I recommend breaking something immediately to maintain balance in the force.
<typetetris> So what would be a lightweight image viewer with zoom? feh?
<ij> geeqie is nice
<necronian> TimePath: Unfortunately. You have missed some good ones too. I like how even that one has layers. On top of the absurdity on the face of it you have the poor translation from german to english
<seanparsons> I've passed `--upgrade` to `nixos-rebuild` earlier today when switching in an update of my config, but it appears rustc is broken in 17.09, is there a way of reverting the local copy of that channel to an earlier commit? Hopefully in a way that would just be erased when I next did an upgrade.
<typetetris> Hmm, both feh and geeqie don't recognise two finger scrolling on my touchpad :(
<seanparsons> It would be really handy if that option meant it built against the latest commit but didn't shove it in the local copy of the channel until it succeeded.
<srhb> seanparsons: nix-channel --rollback ?
<srhb> seanparsons: --upgrade for nixos-rebuild essentially just runs nix-channel --update prior to the build.
<srhb> seanparsons: Which should only result in a new generation of the channel.
<seanparsons> srhb: Amazing, thanks for that!
<seanparsons> Google totally failed me on finding that.
<srhb> Hm. shame. :/ Should be one of those things where you actually discovered NixOS just by searching for linux and rollback or something. :)
glenn_ has joined #nixos
<seanparsons> It's in here (or somewhat similar): https://github.com/nixos-users/wiki/wiki/FAQ
<seanparsons> I think it's because I was thinking "revert" instead of "rollback".
<TimePath> srhb: this channel history is indexed by search engines, we can fix that :)
<srhb> TimePath: SEO via irc? Fun. :D
kiloreux has quit [Remote host closed the connection]
kiloreux has joined #nixos
<Li[m]> is anyone using sound on the rpi3?
kiloreux has quit [Remote host closed the connection]
kiloreux has joined #nixos
agrajag_ has joined #nixos
andymandias has joined #nixos
xcmw has joined #nixos
<TimePath> Hey I've ended up here quite a few times searching for nix things, don't see why it couldn't work for other Linux :P
elsie519 has joined #nixos
elsie519 has left #nixos [#nixos]
<srhb> nix things or *nix things?
<srhb> It's so unfair that it's called *nix when they really mean +nix
<AlanPearce[m]> think of the Germans, too. "nix" is a common shorthand for "nichts", meaning nothing :D
<srhb> AlanPearce[m]: That is actually the source of the name (although from Dutch)
<srhb> For Nix, that is, not *nix.
<AlanPearce[m]> Yeah, I half-remembered that
kiloreux has quit [Remote host closed the connection]
kiloreux has joined #nixos
<TimePath> nix, nixpkgs, but not *nix (yet)
<TimePath> And nixos of course
<typetetris> As a german, the name "nix" is great.
<typetetris> nice and easy jokes to be had.
raynold has joined #nixos
<gchristensen> typetetris: you'll find a lot of other Germans around as well :)
<typetetris> Seems like we are attracted to (on the first look) overly complicated niche technologies.
<typetetris> I like haskell as well, I wanted to add.
asuryawanshi has quit [Remote host closed the connection]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/c26b40a933e (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [Client Quit]
asuryawanshi has joined #nixos
sigmundv_ has quit [Remote host closed the connection]
<ij> Is tlmgr, the texlive package manager(it seems) available?
<typetetris> hmm, mount fails on me, asking for helpers on path `/sbin/mount.*`. How can I use mount filesystem auto detection with nix? (Trying to mount an nfs share.)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #34162: i3lock-color: 2.9.1-c -> 2.10.1-1-c & i3lock-fancy: 2016-10-13 -> 2017-12-14 (master...u/i3lock) https://git.io/vNVWq
NixOS_GitHub has left #nixos [#nixos]
<LnL> you can manage nfs mounts with your configuration.nix
sigmundv_ has joined #nixos
<typetetris> I read it on nixos wiki, but I have to specify which nfs version is used with `fsType`. And in other linuxes I used, I just typed `mount server:path localpath` and it somehow figured out, which version to use.
pie_ has joined #nixos
<LnL> I'm just using fsType = "nfs";
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #34191: brotli: tests, install man pages (master...fix/brotli-misc) https://git.io/vNwVt
NixOS_GitHub has left #nixos [#nixos]
<hyper_ch2> typetetris: Asternix und Obenix?
<sphalerite> typetetris: the name is actually from Dutch "niks" meaning the same as German "nix" (although less informal) AFAIU
<typetetris> hyper_ch2: More like: Wife asks: What are you doing. I responding: nix! Wife comes looking if I do something, she needs to know about, like surfing to dating sites or something.
vidbina has joined #nixos
<AlanPearce[m]> And then you have another tab open, so she says "aha, that has nix to do with nix!"
<typetetris> :)
* typetetris should stop derailing the discussion.
<sphalerite> Und ich will gerne bei der Arbeit Nix machen.
ma27 has quit [Ping timeout: 276 seconds]
<typetetris> Yeah, I always have a hard time convincing my coworkers to do anything that involves a little (*cough*) learning curve.
<hyper_ch2> sphalerite: you're already doing nix at work
<hyper_ch2> typetetris: well, they should "work" and not "curve"
elurin has quit [Ping timeout: 248 seconds]
leat has quit [Remote host closed the connection]
<rardiol1> I have a custom usb installer on a usb stick, and I'm trying to run nixos-rebuild swtich to enable openssh, but it's failing. The switch works fine, but no sshd service shows up on systemctl after. Is there anything to do but set "services.openssh.enable = true"?
<typetetris> hyper_ch2: fair enough
<infinisil> rardiol1: is there no error?
<gchristensen> rardiol1: you may need to just start sshd, if it is based on the nixos installer it is enabled but not starting by default
<srhb> Or something like systemd.services.sshd.wantedBy = lib.mkForce [ "multi-user.target" "networking.target" ];
<srhb> I think the wantedBy is blanked by the installer, hence this.
FRidh has quit [Ping timeout: 240 seconds]
<rardiol1> gchristensen: and how do I do that? You mean run "sshd" from the command line or enable the service? Because I'm not seeing a service to enable on systemctl
<srhb> Oh, then that's not it.
<rardiol1> infinisil: it only warns me the configuration is not bootable
KingOfThePirates has joined #nixos
<srhb> rardiol1: wait, did you actually try systemctl start sshd?
leat has joined #nixos
alex`` has quit [Quit: WeeChat 1.9]
glenn_ has quit [Ping timeout: 276 seconds]
<LnL> ^ that should work
<rardiol1> srhb: no, but, heh, it worked? But how? systemctl doesn't show offline services?
ma27 has joined #nixos
<gchristensen> right, you may need `--all`
longrin1 has joined #nixos
<srhb> rardiol1: That's what gchristensen meant to do :) And it doesn't start (despite being enabled) because there's no wantedBy by default.
<rardiol1> srhb: I see, thanks everyone, that worked
<longrin1> services.smokeping.config ... do i set a path to my config file or the contents of my config file ?
jdrowell has joined #nixos
<srhb> longrin1: So the answer is probably "don't set it at all unless you have to"
<srhb> longrin1: Instead, use the specific options along with extraConfig
<longrin1> yes i don't want to use the other options .
<longrin1> i want to have one file with the config
<srhb> longrin1: The module doesn't support that. You'll have to use .config as a string then.
ma27 has quit [Ping timeout: 265 seconds]
<longrin1> i don't really understand. when i cat my existing config , can i paste it like this smokeping.config = '' content ''; ?
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdrowell has quit [Ping timeout: 255 seconds]
<srhb> longrin1: Yes, and content can be multiline
<longrin1> i tried that but when i lauch smokeping from commandline it complains about missing config: /nix/store/v9asa7sgmyzh0qdppnghzi1h6wgkz3cl-system-path/bin/../etc/config no such file
<longrin1> the config is in /nix/store/my9ikxwzz04kyzgd2q2fih67mykxmhly-smokeping.conf
<srhb> longrin1: The systemd service points smokeping at the generated configuration file.
<srhb> Er, line 305 more like
<srhb> If you want to run it by hand you'll have to do the same using --config
<longrin1> allright . i will have a look at this . thanks so far
infinisil has quit [Quit: ZNC 1.6.5 - http://znc.in]
viric has joined #nixos
infinisil has joined #nixos
iyzsong has joined #nixos
civodul has joined #nixos
glenn_ has joined #nixos
coot has joined #nixos
<typetetris> are there security updates for nixos and how do I get them?
<LnL> through channel updates
agrajag_ has quit [Ping timeout: 240 seconds]
<LnL> the stable branch only gets security updates / bugfixes nixos-unstable tracks master so that can take a while longer to receive fixes depending on how stable the tests are at that moment
<LnL> !which channel
<hyper_ch2> typetetris: nixos-rebuil boot (or switch) --upgrade
dbe_ has quit [Ping timeout: 240 seconds]
nuncanada has joined #nixos
<lejonet> srhb: I managed, with a lot of help from infinisil (they probably think I'm a 5 year old by now... xD ), to get to the part where my assertions is the only thing in the way now :P
<lejonet> I think I know whats up with the assertions too, so its close now! :P
<srhb> lejonet: Fantastic :)
<lejonet> srhb: You know anything about the assertions in a service definition and not liking &&? Because I think that is what is tripping them up
<srhb> lejonet: Er, I've never noticed any issues with operators there, that would be strange.
<lejonet> I have cfg.mon.enable == true && cfg.mon.daemons != [] as an assertion for each daemon type, but I tripped all 3 assertions for that even tho I've only enabled 2 daemons and actually populated their daemon list :/
kranium` has joined #nixos
<Dezgeg> i.e. cfg.foo.enable is false?
<lejonet> na, I have cfg.mon.enable = true; and cfg.mon.daemons = [ "0" ];, so I don't see how I can trip that assertion
kranium has quit [Ping timeout: 246 seconds]
<lejonet> But I think something odd is happening because its even triggering on a daemon type I haven't even enabled (which should shortcircuit the assertion already in the first part)
hiroshi has quit [Quit: ZNC 1.6.5 - http://znc.in]
<lejonet> I'm thinking I need to use -> instead of &&, iirc that is what I've been told is how you add "boolean dependencies" to assertions
<lejonet> because what I want to express is that if first part is true, second part must be true, too
<Dezgeg> yes
<lejonet> (and well, regular boolean logic says && is the right operator for that but assertions might not be purely boolean or so :P )
<Dezgeg> nope
<Dezgeg> with '&&' your assertion trips already purely on cfg.mon.enable being false
<lejonet> but cfg.mon.enable isn't false... :P
<Dezgeg> well s/mon/whatever/ in the "But I think something odd is happening because its even triggering on a daemon type I haven't even enabled" part
<Dezgeg> whatever daemon type you haven't enabled
<lejonet> Ah, so that is tripping it all up? That is a tad odd, I thought the assertions were evaluated one and one, but maybe the result was presented in a collected fashion
__monty__ has joined #nixos
<lejonet> Interesting
<srhb> lejonet: You need to use the implies operator! :-)
<srhb> (Well, not need...)
<ij> Can I find out what is it that nixos-rebuild's building right now? It's taking forever.
<ij> I can't figure it out by looking at the process names/tree.
<lejonet> srhb: yeah, that is what I figured before heading to bed yesterday, but I didn't know why it was triggering all of the assertions (because I have a fourth assertion too, but that isn't a compound boolean) relating to daemons :P
<srhb> lejonet: I just think your conditions are wrong, it's hard to look past.
<longrin1> srhb, smokeping is up and running. thanks you
<srhb> longrin1: Cool :)
ma27 has joined #nixos
leapingfrogs has quit [Quit: WeeChat 1.9.1]
<lejonet> srhb: Not possible! They can't be wrong! </sarcasm> That is definitively a possible reason :P but in my mind cfg.mon.enable == true && cfg.mon.daemons != [] is fairly clear what it tries to tell you :P
knupfer has quit [Ping timeout: 255 seconds]
<lejonet> erh != should be == []
<srhb> No...?
<lejonet> maybe that is where I screwed up xD
leapingfrogs has joined #nixos
longrin1 has quit [Quit: Leaving]
<srhb> You mean to say that enable implies nonempty list, right?
<lejonet> yeah, that if cfg.mon.enable is true, cfg.mon.daemons has to be an nonempty list
<srhb> Then != is right.
<srhb> Unless I'm tired :P
<srhb> (This is why we use implies!)
<lejonet> well, shouldn't the condition given to the assertion tell it when it should trigger? :P
<lejonet> which in this case means it should trigger when cfg.mon.enable is true but cfg.mon.daemons is empty
<srhb> No. That's a condition, not an assertion.
<__monty__> A -> B == ~A or B
agrajag_ has joined #nixos
<lejonet> This is what I get for code diving xD should've tried finding the definition instead
<lejonet> assumptions, mother of all screw ups
<ij> Here's a part of the nixos-rebuild that's taking too long: http://sprunge.us/OCOf Does it say why build is so long?
<gchristensen> its trying to compile Rust :/
agrajag_ has quit [Client Quit]
<ij> I didn't really want to believe that... I haven't added it to environment.systemPackages.
<gchristensen> what about ripgrep?
<srhb> lejonet: What you want to express is something like if enable then mons != [] else true
<srhb> lejonet: I think you were forgetting the "else true" mentally
<gchristensen> or <<any other thing that depends on Rust>> fwiw we're looking in to the rust failures to fix this :/
<srhb> lejonet: And this is what implies makes easy to express
<ij> gchristensen: Oh, other people are also experiencing this?
<lejonet> srhb: yeah, I'm too stuck with imperativeness... xD
<gchristensen> ij: unfortunately so
ma27 has quit [Ping timeout: 255 seconds]
* lejonet blames scripting in python being the only programming he's done lately... :P
<ij> Okay, then I'll just wait. :(
fyuuri has joined #nixos
<lejonet> srhb: like this: lejonet.tries.nixos == true -> lejonet.clueless == true? ;)
<srhb> lejonet: That seems a superfluous use of == but yes :)
ylwghst has quit [Ping timeout: 256 seconds]
<srhb> lejonet: true -> true = true. false -> true = true. true -> false = false
<ij> gchristensen: So something's breaking reproducibility and everyone's getting cache miss?
<lejonet> srhb: I like being explicit when it comes to booleans, for the fact that its usually easier for someone else to read the intent then :P
<srhb> I want to opt out of your usually. :P
<gchristensen> ij: no, rust is failing in hydra and for some reason the channel updated anyway, this is not a reproducibility miss
<ij> ah
ma27 has joined #nixos
<lejonet> srhb: I'll fix it when I get home and hopefully don't screw up anything more
<srhb> lejonet: Meh, we can fix any misses ^^
Sonarpulse has joined #nixos
<lejonet> srhb: its more the fact that I feel like headdesking, on behalf of you guys helping me, because I feel like a total noob :P
<srhb> lejonet: Honestly I don't think it's bad at all and we're not bothered, just happy of your work :D
glenn_ has quit [Ping timeout: 276 seconds]
<lejonet> srhb: Good to know that I'm not too much of a bother haha
<gchristensen> not at all!
<srhb> !m lejonet
<[0__0]> You're doing good work, lejonet!
<lejonet> :D
* lejonet pets [0__0]
<Phillemann> Is anyone cross compiling stuff on Linux for Windows right now? I'm confused as to what to do.
xcmw has joined #nixos
<lejonet> Well, a while ago I decided I wanted to learn nix and nixos better, that I've very much managed to do, with you peoples help, going to be very interesting to start to look at the security parts
<gchristensen> I'm afraid my wizardry isn't good enough. is there a way to see the status of a fd a program is holding?, I have a program calling another and holding on to the stdin/stderr/stdout pipes. is there a way to see if they're closed by one end?
Kim has quit [Ping timeout: 276 seconds]
<maurer> gchristensen: /proc/pid/fdinfo/
<maurer> (replace pid with the pid of the target process)
Kim has joined #nixos
<gchristensen> ah ha! thank you!
rauno has quit [Ping timeout: 264 seconds]
xcmw has quit [Client Quit]
<Dezgeg> don't you also get EPIPE when writing and EOF on reading?
<maurer> I think he's not writing a program, he's trying to check on some running processes
<maurer> otherwise yes, that would be a better way to deal with it
pie__ has joined #nixos
glenn_ has joined #nixos
<gchristensen> my program is deadlocking and I'm trying to figure out why, because I thought I correctly closed everything in such a way that this wouldn't happen
<Dezgeg> A common way to deadlock is to forget to drain stdout and stderr of forked programs (if they're not pointed at /dev/null or smth)
pie_ has quit [Ping timeout: 256 seconds]
ma27 has quit [Ping timeout: 255 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mdorman opened pull request #34192: Semi automated emacs package updates (master...semi-automated-emacs-package-updates) https://git.io/vNwDG
NixOS_GitHub has left #nixos [#nixos]
<gchristensen> I have a thread on both stderr and stdout doing exactly that. I sort of knew this might deadlock how I did it... but I need to dive in a bit more :)
<lejonet> pkill everything?
<lejonet> :P
<Dezgeg> do they read both in parallel?
<gchristensen> lol :)
<gchristensen> Dezgeg: yeah they do
<Dezgeg> ok
<gchristensen> I've had enough non-parallel stderr/stdout readers in my life to know not to do that :P thank goodness gdb works nicely on rust programs
<steveeJ> do the texlive expressions provide a way to add more perl modules? apparently some indentation command requires "YAML::tiny" which it can't find
blym has joined #nixos
KingOfThePirates has quit [Ping timeout: 260 seconds]
<typetetris> How can I determine wether there is a manpage for mupdf and how to install it?
<typetetris> ok, the mupdf derivation contains the man page, but it isn't found, as the manpage is for mupdf and the binary is called mupdf-x11
<typetetris> hmm, it looks like `nix-env -iA nixos.mudpf` doesn't install the `man` outpath of mupdf. Could someone explain to me, what is going on here?
<spacefrogg> typetetris: nix-env usually does not install the man store path by default. You can change that, though.
<spacefrogg> typetetris: Hm, the nix-env manual states otherwise... It points to meta.outputsToInstall. Maybe that is set to something restrictive by default.
<typetetris> sorry, I relied on nix-locate to print the proper store path, but it printed an old one i assume. ls /nix/store/*mupdf*/share/man found the manpage. So I can watch it with `man -l`.
<typetetris> But it would be nicer to be able to just do `man mupdf`.
<spacefrogg> Yes, that should be mentioned upstream, I guess.
<spacefrogg> Sorry, I misread your last statement. If nix-locate points to an old store path you should make sure you have installed mupdf correctly... Does `realpath $(which mupdf)` also point to the old storepath?
<pie__> i get this when i try to run stack setup: AesonException "Error in $.packages.cassava.constraints.flags['bytestring--lt-0_10_4']: Invalid flag name: \"bytestring--lt-0_10_4\""
<typetetris> to old stack
<pie__> oh ok
<typetetris> you need to download a 1.6.3 version and do little derivation of your own.
<pie__> thanks
<typetetris> I downloaded the static 64-bit linux version of stack and used this: http://lpaste.net/361895
ma27 has joined #nixos
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
<fgaz> It seems like the only option is to add an overlay with gcc with that option (and make a pr to nixpkgs if it works)
<fgaz> Or am I missing something?
hiroshi has joined #nixos
<fgaz> configureFlags isn't part of the argument set so I can't override it without an overlay, right?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vNw9d
<NixOS_GitHub> nixpkgs/master b200979 Vladimír Čunát: knot-resolver: 1.5.2 -> 1.5.3 (bugfix)...
NixOS_GitHub has left #nixos [#nixos]
iyzsong has quit [Ping timeout: 276 seconds]
<pie__> typetetris, for now i just switched to a working lts, but now i have "stack will use the GHC on your PATH" instead of using what i specified in stack.yaml
alexteves has joined #nixos
<pie__> i guess i have to learn nix and stack properly before i can even start with haskell :P
Arcaelyx has joined #nixos
reinzelmann has quit [Quit: Leaving]
<typetetris> no, not at all.
<typetetris> what is your usual linux distribution or are you on a mac?
Fare has joined #nixos
<typetetris> Learning haskell and nix at the same time, might be a little tough. I would suggest, just download stack for your usual platform and go with it. Learn nix, when you feel like you can handle an additional learning curve.
glenn_ has quit [Ping timeout: 276 seconds]
<Fare> looks like my chromium-63.0.3239.132 is totally unusable
sigmundv_ has quit [Ping timeout: 256 seconds]
<Fare> eating lots of CPU, unable to display any page
jtojnar has joined #nixos
hakujin has joined #nixos
<pie__> suddenly it works...weird
<pie__> typetetris, my usual platform is nix right now
<pie__> *nixos
swayf_ has quit [Remote host closed the connection]
<jtojnar> any idea why would not keyboard work after suspend, until I enable numlock by numlockx or onboard? It started happening when I was using openbox on Manjaro after upgrade to linux 4.9 or 4.10 but still happens on NixOS with GNOME
hakujin has quit [Ping timeout: 246 seconds]
<fgaz> jtojnar: if it worked before you could try switching to the lts kernel
<jtojnar> will try
Guest54122 has joined #nixos
himmAllRight17_ has joined #nixos
MercurialAlchemi has quit [Ping timeout: 248 seconds]
glenn_ has joined #nixos
ma27 has quit [Ping timeout: 256 seconds]
<__monty__> pie__: I use nix without stack for my haskell development.
<pie__> yeah i figured that could easily be a tihng
<pie__> anyway i seem to have the minimum working things i need right now, now. so ill got back to being a bad uninformed user for a bit :P
<pie__> too sleepy to do anythign else
jtojnar_ has joined #nixos
himmAllRight17 has quit [Ping timeout: 268 seconds]
Phillemann has left #nixos ["WeeChat 2.0.1"]
kranium`` has joined #nixos
xcmw has joined #nixos
jtojnar has quit [Ping timeout: 248 seconds]
jtojnar_ is now known as jtojnar
<fgaz> I'm experimenting with overrideAttrs but I can't get it to work
kranium` has quit [Ping timeout: 255 seconds]
cement has joined #nixos
FRidh has joined #nixos
MP2E has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master eb5d7d2 Peter Simons: haskell-lambdabot: fix build
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] peti pushed 1 new commit to master: https://git.io/vNw7i
erasmas has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/revert-34178-fix/clang-python3 d18af26 Daniel Peebles: Revert "clang-{4,5}: prefer python3, much friendlier for cross"
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] copumpkin created revert-34178-fix/clang-python3 (+1 new commit): https://git.io/vNw7N
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] copumpkin opened pull request #34193: Revert "clang-{4,5}: prefer python3, much friendlier for cross" (staging...revert-34178-fix/clang-python3) https://git.io/vNw7p
NixOS_GitHub has left #nixos [#nixos]
xcmw has quit [Ping timeout: 264 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/staging 9705116 Daniel Peebles: Merge pull request #34193 from NixOS/revert-34178-fix/clang-python3...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] copumpkin pushed 1 new commit to staging: https://git.io/vNw5m
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/95880aaf062 (from 28 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
nix-gsc-io`bot has quit [Client Quit]
Sonarpulse has quit [Ping timeout: 276 seconds]
Fare has quit [Remote host closed the connection]
Fare has joined #nixos
<jtojnar> fgaz: what are you trying to achieve?
leat has quit [Ping timeout: 240 seconds]
<fgaz> hmm this almost works `gcc-unwrapped.overrideAttrs (self: rec { configureFlags = self.configureFlags + " --enable-languages=d "; })` ...except for this http://lpaste.net/8025074585017778176
<fgaz> jtojnar: I'm trying to compile a package that requires gdc
pie__ has quit [Ping timeout: 240 seconds]
kreisys has joined #nixos
kiloreux has quit [Ping timeout: 248 seconds]
<jtojnar> fgaz, I do not think it gets evaluated
<jtojnar> You would have to use `self.configureFlags ++ [" --enable-languages=d "];`
<jtojnar> + fails with error: cannot coerce a list to a string
ylwghst has joined #nixos
<fgaz> jtojnar: in my system it works and yours fails with the same error
<fgaz> and it gets evaluated, I think http://lpaste.net/8025074585017778176#line48
<fgaz> jtojnar: maybe you are on unstable? I'm on 17.09
<jtojnar> fgaz: yes, that might be the difference
<jtojnar> does the configure allow multiple instances of --enable-languages?
<fgaz> considering it gives that "couldn't enable d support" error i think it does
<fgaz> jtojnar: not 100% sure. does it pass the configuration phase on your system?
<fgaz> I might just switch to unstable
<jtojnar> no, fails with the same error
<fgaz> maybe it requires some other buildInput, but what?
kranium`` has quit [Ping timeout: 246 seconds]
<jtojnar> wait, is the D support built in?
<jtojnar> this looks like a separate project
<fgaz> OH
<fgaz> well.. it's going to be more work than I thought
Sonarpulse has joined #nixos
ma27 has joined #nixos
<fgaz> hmm... seems easy-ish to port
<fgaz> jtojnar: thanks for the help!
notdragmire has joined #nixos
ma27 has quit [Ping timeout: 246 seconds]
notdragmire has quit [Ping timeout: 260 seconds]
ma27 has joined #nixos
jtojnar_ has joined #nixos
Drakonis has joined #nixos
jtojnar has quit [Ping timeout: 246 seconds]
jtojnar_ is now known as jtojnar
fyuuri has quit [Ping timeout: 240 seconds]
<aminechikhaoui> Noob question: where in the EC2 AMI creation process is the partition table type MBR vs GPT is chosen ?
jtojnar has quit [Ping timeout: 256 seconds]
ma27 has quit [Ping timeout: 276 seconds]
ma27 has joined #nixos
JosW has joined #nixos
<gchristensen> aminechikhaoui: I don't know, but look at nixos/maintainers/scripts/ec2/amazon-image.nix and that'll lead you down the rabbit hole
mkoenig has quit [Ping timeout: 246 seconds]
<azazel> wtf, how can i break a infinite loop error? I get it even with recursiveUpdate...I'm lost
<azazel> in the repl all works well
<aminechikhaoui> thanks gchristensen
<azazel> but when launching the nixops deploy it fails
mkoenig has joined #nixos
glenn_ has quit [Ping timeout: 265 seconds]
peacememories has joined #nixos
pie__ has joined #nixos
leat has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
glenn_ has joined #nixos
ylwghst has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #33675: [WIP] Home Assistant (master...home-assistant) https://git.io/vNmmy
NixOS_GitHub has left #nixos [#nixos]
FRidh2 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] schuppentier opened pull request #34194: displaylink: 1.3.52 -> 4.1.9 and refactor (master...displaylink) https://git.io/vNreC
NixOS_GitHub has left #nixos [#nixos]
phdoerfler has joined #nixos
stphrolland has joined #nixos
hakujin has joined #nixos
<stphrolland> Hi. I don't use Windows that much, less than once a week, so I can dual boot with UEFI bios. However, I'm wondering why even though I have boot.loader.grub.useOSProber = true, GRUB is updated if it sees a partition where Ubuntu is installed, but GRUB is not updating any entry for partition with Windows installed. Is it normal ? Is there something I can do about it ?
<symphorien> you can install os-prober as a normal program and run it as root
<symphorien> it should output one line per detected os iirc
<stphrolland> symphorien: i'm gonna try that
<symphorien> from this you can try to debug why windows is not detected
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hakujin1 has joined #nixos
<petersjt014[m]> if I'm managing a dotfile and don't want to use abs paths (for the obvious reasons), can I just do something like `program[lock] = $(which xlock)`?
<symphorien> in a string ?
<petersjt014[m]> in a file like `.Xdefaults` or the like. I
<petersjt014[m]> 'I'm pretty sure it's seen as a string
hakujin has quit [Ping timeout: 276 seconds]
noobineer has joined #nixos
noobineer has quit [Max SendQ exceeded]
<gchristensen> pmeunier: is it possible to override the src of something in carnix's output?
<symphorien> ''program[lock] = ${pkgs.xlockmore}/bin/xlock''
<symphorien> nix will replace ${...} with the evaluation of what is inside cast as a string. for a derivation this means the path
<petersjt014[m]> well I just sawthe result of my idea and:
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #34195: vim-plugins: Add vim-dirdiff (master...feature/vim-dirdiff) https://git.io/vNrvb
NixOS_GitHub has left #nixos [#nixos]
* petersjt014[m] uploaded an image: image.png (3KB) <https://matrix.org/_matrix/media/v1/download/matrix.org/ajxXDICcpRYfHhjEUBdICsAu>
peacememories has joined #nixos
<petersjt014[m]> so yeah that sounds better
<petersjt014[m]> restarting x..
<petersjt014[m]> I got a silimar exception as above
<symphorien> you can cat you file to test instead of restarting x...
<petersjt014[m]> I don't think it's being treated as a nixfile
<symphorien> can you paste how you are using the file ?
<symphorien> interpolation is only done inside .nix files
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 8e8a259 Silvan Mosberger: almonds: init at 2015-12-27
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vNrfI
<NixOS_GitHub> nixpkgs/master 8510550 Frederik Rietdijk: Merge pull request #34169 from Infinisil/add/almonds...
NixOS_GitHub has left #nixos [#nixos]
hyper_ch2 has quit [Quit: Page closed]
<symphorien> so it won't work if you do (for nixos for example) etc."blah" = ./template
<petersjt014[m]> it's a file located at `~/.spectrwm.conf`, and I'm pretty sure it's plain bash in whatever syntax (toml?) is being used
<symphorien> I mean, can you paste the nix machinery you use ?
dbe_ has joined #nixos
aanderse has joined #nixos
<petersjt014[m]> `nix-info`?
<symphorien> mmmmmhhh
<symphorien> did you just put the file in place and expect nix to replace it at runtime ?
<azazel> there is some way to create directories for data, execute some other "scripts".. stuff that is not on a derivation?
<petersjt014[m]> ugh
<petersjt014[m]> is there some shortcut besides ctrl-insert that vbox's bidir clipboard uses?
dbe_ has quit [Ping timeout: 240 seconds]
<symphorien> azazel: either it is for a systemd service and the create it whith ExecPreStart or use an activationscript : https://nixos.org/nixos/options.html#activationsc
<petersjt014[m]> nvm, used ocr copier
<petersjt014[m]> ```
<petersjt014[m]> system: "x86 64-linux" , multi-user? : yes, version: nix-env (Nix) 1.11.16, channels(root): "nixos-17 . 2848. fabd b3bd138" , nixpkgs: /nix/var/nix/profiles/per-user/ root/channels/nixos/nixpkgs
<petersjt014[m]> ```
<petersjt014[m]> but still the file seems to be pure bash
<symphorien> petersjt014[m]: did you just put the file in place and expect nix to replace it at runtime ?
dbe_ has joined #nixos
<azazel> symphorien: thanks
<azazel> any idea how to avoid laziness in accessing config attrset so that maybe the recursion error can be breaked?
<petersjt014[m]> it's reflected changes for fonts colors etc when I restart X so far, I just wanted to find a way to use something tidier than path = /nix/store/ohgodsomuchhash.../executable
<symphorien> ok maybe I misunderstood your problem
<symphorien> you may want to use something like https://github.com/rycee/home-manager
<symphorien> to sum up, you do a derivation creating you templated file in the store, and then symlink ~/.whatever to the store
glenn_ has quit [Ping timeout: 265 seconds]
asuryawanshi has quit [Ping timeout: 248 seconds]
lonokhov has quit [Quit: leaving]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #33495: faust2: 2.1.0 -> 2.5.10 (master...faust2) https://git.io/vNUxq
NixOS_GitHub has left #nixos [#nixos]
glenn_ has joined #nixos
asuryawanshi has joined #nixos
dbe_ has quit [Ping timeout: 240 seconds]
<pie__> cant figure out how to uninstall stack from my env..
swayf has joined #nixos
<pie__> nix-env -e stack doesnt do anything
digitus has joined #nixos
<pie__> > which stack
<pie__> /run/current-system/sw/bin/stack
leapingfrogs has quit [Quit: WeeChat 1.9.1]
<symphorien> it's installed from your /etc/nixos/configuration.nix
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peacememories has joined #nixos
jrolfs has joined #nixos
swayf_ has joined #nixos
<Guest54122> azazel: Avoiding laziness is never going to fix a recursion error, just create more…
Guest54122 has quit [Changing host]
Guest54122 has joined #nixos
peacememories has quit [Client Quit]
Guest54122 is now known as TweyII
<pie__> symphorien, oh
<pie__> le facepalm
peacememories has joined #nixos
<pie__> ..the results when doing the right thiing are inconsistent with my usyal behaviour :PP
swayf has quit [Ping timeout: 265 seconds]
jb55 has joined #nixos
peacememories has quit [Client Quit]
mg_ has quit [Ping timeout: 255 seconds]
alexteves has quit [Ping timeout: 240 seconds]
__Sander__ has quit [Quit: Konversation terminated!]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #34196: abcm2ps: 8.13.18 -> 8.13.19 (master...abcm2ps) https://git.io/vNrL4
NixOS_GitHub has left #nixos [#nixos]
ambro718 has joined #nixos
stepcut_ has quit [Remote host closed the connection]
glenn_ has quit [Ping timeout: 255 seconds]
superN00b has quit [Ping timeout: 248 seconds]
<gchristensen> thanks to samueldr, there are now live-streaming logs from PRs being built by ofborg: https://nix.samueldr.com/temp/?key=nixos/nixpkgs.34107 wait for this to load a second then click 7db79... in the top when it shows up
stepcut has joined #nixos
civodul has quit [Remote host closed the connection]
stepcut has quit [Remote host closed the connection]
jensens has quit [Ping timeout: 240 seconds]
<gchristensen> needs some fit and finish before it is considered "done" but massive massive progress :D
glenn_ has joined #nixos
stphrolland has quit [Quit: Lost terminal]
blym has quit [Read error: Connection reset by peer]
<srhb> Very cool :)
oida has quit [Quit: WeeChat 1.6]
alexteves has joined #nixos
MichaelRaskin has joined #nixos
xcmw has joined #nixos
bongsun has quit [Quit: Connection closed for inactivity]
ma27 has quit [Ping timeout: 265 seconds]
Fare has quit [Ping timeout: 255 seconds]
fyuuri has joined #nixos
jtojnar has joined #nixos
nschoe has quit [Quit: Program. Terminated.]
nuncanada has quit [Read error: Connection reset by peer]
nuncanada has joined #nixos
<srid> Is there a handy list of fonts available on nixos somewhere?
swayf_ has quit [Ping timeout: 265 seconds]
<MichaelRaskin> Depends on what exactly you mean…
<srid> I'd like to know the possible values that can go under `fonts.extraFonts `.
seccus has quit [Ping timeout: 268 seconds]
<jtojnar> srid: basically, any package can go there, fontconfig will crawl the paths for fonts
<jtojnar> Anyone understands udev rules? I am getting systemd-udevd[26569]: invalid key/value pair in file /nix/store/nsbrjdlsryr9j3ad8gqivqr879h08sig-udev-rules/99-local.rules on line 22, starting at character 59 (',').
<srid> Also, does this not _override_ the defaults fonts? `fonts.fonts = with pkgs; [ google-fonts ];` (instead of appending to them)
fyuuri has quit [Ping timeout: 255 seconds]
ssmike has quit [Quit: ssmike]
<srid> (I see that `extraFonts` has been renamed to `fonts`)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zauberpony opened pull request #34197: vultr: 1.13.0 -> 1.15.0 (master...vultr-1.15.0) https://git.io/vNrm4
NixOS_GitHub has left #nixos [#nixos]
<jtojnar> srid: list options have merge semantics by default I think
knupfer has joined #nixos
FRidh2 has quit [Quit: Konversation terminated!]
<srhb> jtojnar: srid: Correct, lists from different modules merge by appending.
<srhb> Or concatting, I should say.
<srid> > Multiple definitions are merged with list concatenation.
<srid> Oh, that's interesting. Surprising magic, though.
shabius has quit [Quit: Leaving]
raynold has quit [Quit: Connection closed for inactivity]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 1 new commit to release-17.09: https://git.io/vNrmS
<NixOS_GitHub> nixpkgs/release-17.09 b222a07 Daiderd Jordan: mongodb: fix darwin build...
NixOS_GitHub has left #nixos [#nixos]
ssmike has joined #nixos
<srhb> srid: The entire module system is more or less merge magic :)
rogue_koder has joined #nixos
michaelpj_ has joined #nixos
wilornel[m] is now known as wilornel
shabius has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 closed pull request #34195: vim-plugins: Add vim-dirdiff (master...feature/vim-dirdiff) https://git.io/vNrvb
NixOS_GitHub has left #nixos [#nixos]
<MichaelRaskin> jtojnar: did you ever close the " ?
fyuuri has joined #nixos
stanibanani has joined #nixos
seccus has joined #nixos
<jtojnar> MichaelRaskin: of course I did not
<jtojnar> talk about helpful error messages, thanks
<infinisil> the module system can do some surprising things
tmaekawa has joined #nixos
pie__ has quit [Ping timeout: 240 seconds]
tmaekawa has quit [Client Quit]
<infinisil> oh and srhb, lejonet: My example nixos module file wouldn't work I'm pretty sure, just found out today. mkMerge can't merge top-level config stuff that depends on something from the config, like the map there. So the way you ended up doing is the only way (only use mkMerge at a suboption).
<infinisil> (the file i had so much trouble uploading yesterday)
Mitaka89 has joined #nixos
<srhb> infinisil: Oh right. Thank you :)
Mitaka89 has quit [Max SendQ exceeded]
<srhb> To be honest I've very rarely had need for mkMerge in option definitions.
<srhb> At least I think so.
<srhb> Perhaps I've missed some obvious use cases out of ignorance.
<infinisil> hmm, basically configs depending on config is the major usecase
<infinisil> like with mkIf, and the maps
Mitaka89 has joined #nixos
Mitaka89 has quit [Max SendQ exceeded]
<srhb> I'll go scrounging for examples.
<infinisil> you can't use `imports = if config.foo then [] else [ ./some-file.nix ]` for example, you have to use the mkIf's and stuff
<infinisil> srhb: It's quiet big, but the home-manager zsh module is a good example: https://github.com/rycee/home-manager/blob/master/modules/programs/zsh.nix#L242-L354
<srhb> ermg, there's a zsh module
<srhb> So much to rewrite...
Mitko_ has joined #nixos
<infinisil> I want to do a Prezto nixos/HM module, basically a more light-weight oh-my-zsh
<infinisil> and a tmux module with plugins and stuff would be nice too
<infinisil> so much stuff to do!
<lejonet> infinisil: oh cool, so I guess it was good that I was put off by all the parenthesises? (How the hell do you even spell that word?!)
<srhb> lejonet: Several ways, depending on your standards!
<srhb> I prefer (parantheses)
<infinisil> heh, well the parentheses are still there, just at another place i think
<lejonet> srhb: I'm going to stick with "lispness" :P
<infinisil> the mkMerge is just a few levels deeper in the attrset
<srhb> I get how mkMerge becomes necessary once you'd otherwise need multiple modules because of conflicting definitions, but... It's still not obvious to me otherwise.
<infinisil> srhb: maybe this helps: mkMerge actually does /nothing/
Fare has joined #nixos
<lejonet> mkMerge doesn't seem to do anything but a listToAttrs
astsmtl has quit [Ping timeout: 240 seconds]
<infinisil> take a look at the implementation of mkMerge: https://github.com/NixOS/nixpkgs/blob/master/lib/modules.nix#L475-L478
<azazel> I dynamically create the "vassals" attr and supply a well defined "type" attr, but the config machinery complains that the second is not defined
dexterfoo has joined #nixos
jb55 has quit [Ping timeout: 240 seconds]
<srhb> No, that doesn't help. :P
<srhb> I think it's one of those times where I'll get it once I've had need for it.
<infinisil> mkMerge just tells the module system to do it's job later with merging, which is required if you want stuff to depend on the config itself, lazyness and such
* srhb nods
<infinisil> heh
<srhb> I can vaguely understand that.
vidbina has quit [Ping timeout: 264 seconds]
raynold has joined #nixos
<azazel> and if I define them separately with uwsgi.instance.type = "emperor"; uwsgi.instance.vassals = <a funtion execution> then it's the second that seems not defined, few lines after ... what can it be?
<lejonet> infinisil, srhb: In a semi-related note, lets see if I've understod the assertions list now, each element in the list is a set with 2 attributes, assertion and message, assertion should evaluate to true and everything is at it should, otherwise nix will whine at you with the content of the message?
jrolfs has quit [Ping timeout: 255 seconds]
* azazel is in search for some debugging tool...
stepcut has joined #nixos
ma27 has joined #nixos
<srhb> lejonet: Yep.
<infinisil> lejonet: yup, you can also take a look at the implementation if you want to understand how it works
ryanartecona has joined #nixos
<DIzFer[m]> can somebody help me building a go application? granted, it's not _any_ go application: I'm attempting to build snapd, but it's consistently failing for me because `/nix/store/9yf5gq436k0pqs8qj3j8rx99aylwq7x6-binutils-2.28.1/bin/ld: cannot find -lseccomp`
xcmw has quit [Ping timeout: 264 seconds]
<DIzFer[m]> which is weird, because libseccomp IS in buildInputs :(
<srhb> DIzFer[m]: Can you share the nix expression?
coot has quit [Ping timeout: 263 seconds]
<MichaelRaskin> Maybe it needs _static_ library
<DIzFer[m]> gimme a sec...
<srhb> azazel: What's the config attempt?
<MichaelRaskin> Of course you expression doesn't tell anything about that. But as far as I remember, Go uses static linking.
<MichaelRaskin> I thinkg libseccomp you pass has only dynamic libraries built
<DIzFer[m]> that would make sense...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master c32755c Robert Helgesson: eclipse-plugin-autodetect-encoding: 1.8.4 -> 1.8.5
<NixOS_GitHub> [nixpkgs] rycee pushed 1 new commit to master: https://git.io/vNrGR
NixOS_GitHub has left #nixos [#nixos]
xcmw has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/release-17.09 9997811 Robert Helgesson: eclipse-plugin-autodetect-encoding: 1.8.4 -> 1.8.5...
<NixOS_GitHub> [nixpkgs] rycee pushed 1 new commit to release-17.09: https://git.io/vNrGX
NixOS_GitHub has left #nixos [#nixos]
<lejonet> srhb, infinisil: I'm just going to erase that it ever happened that I didn't understand how assertion works, there is only one logical way for them to work, I cannot answer why I thought otherwise... xD
<azazel> srhb: this https://pastebin.com/SmLCfm40
<azazel> and it ggives me this error:
<srhb> lejonet: It happens ;)
<lejonet> srhb: obviously xD I became the idiot I've used in example when teaching people how assert works... the horror!
jrolfs has joined #nixos
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
<lejonet> Because c'mon, its in asserts definition how they work "To state or declare positively and often forcefully or aggressively" (thank you Merriam-Webster)
glenn_ has quit [Ping timeout: 276 seconds]
<srhb> lejonet: Never trust dictionaries anyway! :P
jrolfs_ has joined #nixos
<azazel> :-)
<srhb> azazel: As far as I can see you're not defining vassals in your generated set, right?
<lejonet> srhb: fair enough, now to push the fixed asserts and hopefully not get whined at by nix and find a beautifully generated ceph.conf :D
<srhb> And that's required for emperor types, right?
jrolfs has quit [Ping timeout: 256 seconds]
<azazel> srhb: right (both your statements)
<azazel> but, as you can see, I'm doing that
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #34198: misc cross fixes, batch 4 (staging...fix/cross-misc-4) https://git.io/vNrnm
NixOS_GitHub has left #nixos [#nixos]
<srhb> azazel: Doing what, sorry?
<azazel> srhb: defining the vassals attr in services.uwsgi.instance
<srhb> azazel: Yes, but then the vassals have type = "emperor" but *no* vassals themselves
<srhb> azazel: That is not allowed.
<azazel> srhb: am I wrong ? see line 40 here (the first paste) https://pastebin.com/SmLCfm40
<srhb> azazel: Everything you have stated is right.
<srhb> The "outer one" has type emperor.
<srhb> It must have a vassals attribute.
<srhb> Because it has type = "emperor"
<srhb> The vassals have type "emperor" as well, but no vassals attributes.
<srhb> That is an error.
<lejonet> :O it builds! it builds!
<srhb> lejonet: Break out the bubblies!
<lejonet> srhb: however I think I might need to both do some cleaning up, but also change the instanced services a bit
<srhb> lejonet: Well, having something that builds makes it so much easier to refactor and rejigger :)
<srhb> azazel: Does that make sense?
Itkovian has joined #nixos
<lejonet> srhb: very true, because this one doesn't even give me a /etc/ceph/ceph.conf :( but that is probably because I don't know how to set that properly, system.etc."ceph/ceph.conf".text = generators.toINI {} cephConfig; is what I have atm
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] arcadio opened pull request #34199: kallisto: init at 0.43.1 (master...kallisto) https://git.io/vNrcU
NixOS_GitHub has left #nixos [#nixos]
<srhb> lejonet: Sounds right to me.
<srhb> Oh, wait, environment.etc
<lejonet> But it creates the services atleast
<lejonet> ah, not system.etc
<srhb> What's system.etc >>
<azazel> srhb: yes, you're right, putting type = "normal" in the set returned by mkVassal works, thanks
<lejonet> I blame my past self and clean my hands from this... xD
<srhb> azazel: If the type is emperor, then c.vassals is probed
<srhb> azazel: (Which does not go well if it does not exist)
<azazel> yes, of course... sometimes I still have issues with nix syntax... I've started last friday, anyway ;-)
<lejonet> maybe that has to be done in the service definition and not the part defining the options... xD
glenn_ has joined #nixos
fyuuri has quit [Ping timeout: 256 seconds]
<azazel> nix-mode for emacs kinda sucks at indenting or am I trying to format my sources in an expected way? At the first level the "let" entries past the first are dedented...
<srhb> azazel: :-) Doing well then
<srhb> In my experience all nix indentation modes for all editors suck.
<azazel> uff, that's unfortunate
<srhb> Handcrafted indentation is so much more satisfying anyway. ;-)
<bgamari> azazel, I also found that'
* bgamari just resigned himself to having to fight the editor for sensible indentation
<bgamari> does nixos not respect /etc/profile.d?
<azazel> anyway, I've done configuration management with ansible in the past and I must say that I've mixed feelings about nix and nixops
<srhb> azazel: Oh?
<srhb> I have mixed feelings about nixops, but nix and NixOS seem like such a spectacular leap compared to ansible.
jrolfs has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lejonet> oh, does config.text expect a set, not a string? How do I set the contents of a config file from a string then?
<azazel> srhb: most of that is library stuff, I admit. for example ansible has idempotent modules to add/remove db users and databases, and while it surely is a "library thing", it's quite simple to add such modules, while I haven't fund similar facilities in nix/nixops
jrolfs has quit [Client Quit]
<lejonet> nixops certainly doesn't seem to have much for post-provisioning handling indeed
<srhb> azazel: Right, there's not much in sense of managing the _dynamic_ state of the system.
<lejonet> But I think its not really intended for that usage either honestly
<srhb> (ansible could still do that...)
<lejonet> I'm probably going to end up using nixops for provisioning or machine-state level things, and let ansible handle the sysadmin parts
<azazel> srhb: the other thing is debugging ... just having something printed seems difficult to me ... ;-) time for dinner, see you later
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/baaf8fd2b8f (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [Client Quit]
<azazel> lejonet: ah, so you will use two tools that in some way overlap in "responsibility"... doing user/fs/service (conf/enable/disable) management with ansible make no sense for me in NixOS
glenn_ has quit [Ping timeout: 255 seconds]
<lejonet> azazel: well yeah, they have some overlap, as ansible can do provisioning too, but ansible is better suited to handle the regular sysadmin work of the services that machines provide, whereas nixops is integrated with the machine-state in a way that ansible can't be
rihards has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #34200: siege: 4.0.2 -> 4.0.4 (master...update/siege-4.0.4) https://git.io/vNrWD
NixOS_GitHub has left #nixos [#nixos]
<lejonet> s/of the services/for the services/
vidbina has joined #nixos
alexteves has quit [Remote host closed the connection]
vidbina has quit [Ping timeout: 256 seconds]
dbe_ has joined #nixos
alexteves has joined #nixos
vidbina has joined #nixos
alexteves has quit [Remote host closed the connection]
superN00b has joined #nixos
xcmw has quit [Ping timeout: 264 seconds]
alexteves has joined #nixos
Fare has quit [Ping timeout: 276 seconds]
alexteves has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] copumpkin opened pull request #1813: Fix obscure corner case in name resolution for builtin:fetchurl in sandboxed environments (master...download-pre-resolve-url) https://git.io/vNr8S
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg opened pull request #34201: nixos/release.nix: Introduce callSubTestsOnTheseSystems (master...release-refactor-3) https://git.io/vNr43
NixOS_GitHub has left #nixos [#nixos]
swayf has joined #nixos
swayf has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rycee pushed 1 new commit to master: https://git.io/vNr46
<NixOS_GitHub> nixpkgs/master c73a140 Robert Helgesson: perl-Log-Any: 1.704 -> 1.705
NixOS_GitHub has left #nixos [#nixos]
swayf has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/b222a0713f4 (from 21 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [Client Quit]
alexteves has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 0663e97 Tuomas Tynkkynen: ponyc: Not supported on aarch64...
<NixOS_GitHub> [nixpkgs] dezgeg pushed 2 new commits to master: https://git.io/vNrBD
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 3cd40f1 Tuomas Tynkkynen: pypy: Doesn't support aarch64...
glenn_ has joined #nixos
jrolfs has joined #nixos
<lejonet> srhb: we're getting there, managed to get it to create ceph.conf now, with just the global section :D progress!
<srhb> lejonet: Excellent!
Itkovian has joined #nixos
<lejonet> srhb: now all I need to do, I think, is look through my default values for the options, and maybe rethink the boolean I'm using for the optionalAttrs merging
[0x4A6F] has joined #nixos
<srhb> There's a few other things that we can discuss once someone besides you can build it more or less easily :)
<lejonet> srhb: ofc :) first step is get it to work, then we make it work _correctly_
<srhb> Yep!
Matrixiumn has quit [Ping timeout: 240 seconds]
<lejonet> Now that I understand stuff a bit better, I think we can reduce the behemoth for systemd.services a bit, and make it a bit easier to read
stepcut has quit [Remote host closed the connection]
<lejonet> nix and error messages really isn't pals :P Throws me back to when trying to learn what gcc ACTUALLY was whining at when it gave you a wall of text
AspiringIRCUser has joined #nixos
rardiol1 has quit [Remote host closed the connection]
<hyper_ch> so, soon I'll test out the zfs stability patch on home server
stepcut has joined #nixos
<DIzFer[m]> I wanted to report back on my snapd build: It was, indeed, succesful, after recompiling the whole of systemd because I forced libseccomp to not skip building the static library. Thanks!
<srhb> DIzFer[m]: Maybe you can use a local override instead? :)
xcmw has joined #nixos
hamishmack has quit [Quit: hamishmack]
astrofog has joined #nixos
spear2 has joined #nixos
coot has joined #nixos
rardiol1 has joined #nixos
<DIzFer[m]> i swear I tried. I don't know where I failed :(
AspiringIRCUser has quit [Quit: The Lounge - https://thelounge.github.io]
<DIzFer[m]> oh right, I DO remember: the solution I found for buillding libseccomp.a was to add dontDisableStatic = true to libseccomp's derivation, and I didn't manage to make that a parameter without needing a libseccomp rebuild :(
fyuuri has joined #nixos
<DIzFer[m]> (which triggers a systemd rebuild when building snapd)
rihards has quit [Quit: rihards]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] matthewbauer opened pull request #34203: Add "ghc-mod" to darwin stable channel (master...patch-7) https://git.io/vNrE2
NixOS_GitHub has left #nixos [#nixos]
s33se has quit [Remote host closed the connection]
rauno_ has joined #nixos
<srhb> DIzFer[m]: For buildInputs, use: (libseccomp.overrideAttrs (oa: { dontDisableStatic = true; }))
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 2 new commits to master: https://git.io/vNrEr
<NixOS_GitHub> nix/master d43a8b2 Dan Peebles: Fix obscure corner case in name resolution for builtin:fetchurl in sandboxed environments
<NixOS_GitHub> nix/master b76e282 Eelco Dolstra: Merge pull request #1813 from copumpkin/download-pre-resolve-url...
NixOS_GitHub has left #nixos [#nixos]
<DIzFer[m]> dammit. As easy as it should be. Thanks!
<srhb> DIzFer[m]: You're welcome! :)
alexteves_ has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexteves has quit [Ping timeout: 246 seconds]
TweyII has quit [Ping timeout: 260 seconds]
<hyper_ch> Mic92: so, nixos couldn't boot with ro-root-dataset.. it started booting but at one point it just stopped to continue
<Mic92> hyper_ch: I am not suprised
<Mic92> *surprised
<hyper_ch> could also be my patch adjustment was faulty :)
<lejonet> Kindof how dogs want you to throw the ball, but not take, just throw :P
<Mic92> I don't think so, we mostly had build system patches
Itkovian has joined #nixos
stepcut has quit [Remote host closed the connection]
<Mic92> you can boot from usb and check
<hyper_ch> Mic92: well, when I was looking what needed to be changed, in my patch for master I have adjusted 2 more makefiles the same way you did adjust
stepcut has joined #nixos
<hyper_ch> I first need to create a bootable iso with that new zfs stuff
<Mic92> that would be also the way to migrate your system
<Mic92> wait a sec
<hyper_ch> that's probably what I need to do
<hyper_ch> as said this afternoon/morning: (1) create live iso with new zfs (2) boot it (3) create new crypto container (4) copy child datasets to it (5) remove old crypto container (6) rename pool back to original
<Mic92> if you apply your patch to nixpkgs, you can build an iso with zfs using that nix code, I pasted
<Mic92> ok, same thing probably
<hyper_ch> but not sure how to apply patch to nixpkgs
<Mic92> add your patch instead of mine to patches = []
<Mic92> actually extraPatches
<lejonet> srhb: more progress, managed to get all the optional stuff with it too, now I just need to remove all the attributes with the value null in the global set (aka remove the default = null from those options) and find a nifty way to recreate types.commas
<hyper_ch> Mic92: where?
<Mic92> and then build with -I nixpkgs=./path/to/your/fork
MP2E has quit [Remote host closed the connection]
<hyper_ch> I don't have a fork
<Mic92> hyper_ch: just clone nixpkgs
<hyper_ch> Mic92: on my home server, I did make /nix/store writable and just edite the default.nix for zfs
<Mic92> ...
<srhb> lejonet: That doesn't sound right.
<srhb> lejonet: (What value will they have if not null and they are optional?)
<hyper_ch> everything else is too complicated for me
<Mic92> hyper_ch: no, your approach is more complicated
<hyper_ch> not really.... mount -o remount,rw /nix/store -- edit -- nixos-rebuild boot
<lejonet> srhb: the values are entirely optional in the config, and I just noticed that the options in the global set hadn't gotten the "split and make to lowercase" treatment so have to fix that too
stepcut has quit [Remote host closed the connection]
<Mic92> super hacky
<infinisil> hyper_ch: nooo
<hyper_ch> Mic92: I know but working with clone of nixpkgs is just way too complicated
<infinisil> hyper_ch: it's really not
<hyper_ch> infinisil: it is for me
<azazel> lejonet: you are right about the nix/ansible thing
<azazel> hyper_ch: zfs stability patch?
<srhb> lejonet: But not giving them a default will make them mandatory, I think?
<hyper_ch> azazel: it concerns native zfs encryption
MP2E has joined #nixos
<lejonet> srhb: yeah, I just realized that, so I just need to filter them out from the resulting set
<cransom> hyper_ch: if you are so cavalier about editing the store directly, why not just `nix.readOnlyStore = false;`?
<hyper_ch> azazel: if you don't use zfs encryption, then don't worry
<srhb> lejonet: Yeah, exactly :)
<Mic92> azazel: they changed the disk format for encryption
<lejonet> srhb: good to have a sanity check :D
astrofog has quit [Quit: Quite]
<Mic92> because zfs send would break in some cases
<hyper_ch> cransom: I only do that very seldomly
<Mic92> only affects master and our zfsUnstable
<infinisil> hyper_ch: just do `git clone https://github.com/NixOS/nixpkgs` and you can edit any file easily
<hyper_ch> infinisil: and then I have no idea what I should do with that
<infinisil> Adding -I nixpkgs=/path/to/that/clone to nix commands to have them use it
<hyper_ch> people already explained it to me - I don't know how many times...
<hyper_ch> it's just something that won't stick
<infinisil> hyper_ch: have you ever tried it?
<hyper_ch> so no point in trying anymore
<hyper_ch> infinisil: people already explained it to me - I don't know how many times...
<infinisil> hyper_ch: I'm asking: Have you actually tried it??
glenn_ has quit [Remote host closed the connection]
<hyper_ch> it's just like OOP.... it's something I've tried to understand dozens of times of the years... and it just won't click
<hyper_ch> infinisil: people already explained it to me - I don't know how many times...
glenn_ has joined #nixos
<infinisil> hyper_ch: I Am Asking If You Have /Tried/ It
<hyper_ch> infinisil: read again what I wrote and you have your answer
<Mic92> I think, he did not
<infinisil> yeah
<lejonet> yay, non-translation fixed, now the filtering of null values and creating of comma-separated lists
<lejonet> srhb: is there a better function than mapAttrs and just doing a if value == null then "" else value as the map function?
<srhb> lejonet: Pretty sure there's a bunch of filter functions
<srhb> lejonet: Which is marginally clearer. :)
<srhb> lejonet: filterAttrs for instance.
<lejonet> srhb: is that in nix 1.11 or 1.12? :P
<infinisil> lejonet: nixpkgs, not nix
<srhb> lejonet: They're from lib (attrsets.nix)
<tilpner> lejonet - You only have to worry about builtins.*, not lib.*
<srhb> lejonet: So either.
<srhb> (And neither)
<lejonet> Okidoki, just wanted to double check ^^
<srhb> :)
dbe_ has quit [Ping timeout: 240 seconds]
<azazel> hyper_ch: ah, ok
<DIzFer[m]> shrb: spoke to soon. It doesn't rebuild libseccomp with that modification :/
ixxie has joined #nixos
<DIzFer[m]> or, to be more precise: it doesn't then require a static build of libseccomp
<srhb> DIzFer[m]: Uh, I *just* built your derivation here with that.
<srhb> So that's a bit weird.
<srhb> Unless I'm doing something I don't understand myself :P
kitemikaze has joined #nixos
<lejonet> black magic!
<srhb> DIzFer[m]: What do you have exactly?
<DIzFer[m]> or I am... which is likely
<DIzFer[m]> wait
s33se has joined #nixos
<DIzFer[m]> I tried again
hamishmack has joined #nixos
<DIzFer[m]> and it works
<srhb> Voodoo!
<DIzFer[m]> I'm just going to guess I didn't save correctly before...
<azazel> there's a way to build certificates for services like ldap ? to enable communication on port ldaps
astsmtl has joined #nixos
astsmtl has quit [Changing host]
astsmtl has joined #nixos
<srhb> DIzFer[m]: Hopefully :-) Note that it wouldn't rebuild if you already had a global modification in your nixpkgs, because it's the same.
Mitko_ has quit [Quit: Leaving]
<srhb> DIzFer[m]: As in exactly the same. The only difference now is that the libseccomp here doesn't leak into other dependencies.
<DIzFer[m]> as far as I can tell, it only rebuilt snapd, since the static libseccomp had already been built manually
<srhb> Indeed!
<DIzFer[m]> eeexactly... nice and tidy now
<srhb> :)
<lejonet> srhb: win! All the null values are now gone without having to fiddle with the actual values, so now there are 2 problems left, the first one is that for the ceph-mon@0 services to work, they have to be a symlink to the ceph-mon@ service etc etc
<srhb> Oh, and there isn't? I was really hoping that magic was just in place...
<lejonet> and the second is emulating types.commas from types.listOf types.str in a sane way
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 3 new commits to master: https://git.io/vNr2X
<NixOS_GitHub> nixpkgs/master eae41e7 taku0: firefox-bin: 57.0.4 -> 58.0
<NixOS_GitHub> nixpkgs/master 0c88f6c taku0: firefox-esr: 52.5.3esr -> 52.6.0esr
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 24fe57d Vladimír Čunát: Merge #34073: firefox-{bin,esr}: update
<srhb> lejonet: Not sure I understood the last one
<lejonet> srhb: nix yelled at me for trying to use the types.commas, I don't really know why...
<srhb> Let me see what that is...
<lejonet> Maybe it was just another issue masking this or something? lets just re add types.commas and hope for the best
<srhb> (And I like to tell that nix has a slightly overbearing, but soft voice)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat closed pull request #34073: firefox-bin: 57.0.4 -> 58.0, firefox-esr: 52.5.3esr -> 52.6.0esr (master...firefox-bin-58.0) https://git.io/vNzSo
NixOS_GitHub has left #nixos [#nixos]
<ixxie> FRidh: I have pushed the changes you and aborsu requested in https://github.com/NixOS/nixpkgs/pull/34079
<lejonet> At times, I do agree, but when it gives you its life history and the epilogue to that as a wall of text, I have a hard time visualizing that as a soft voice... :P
fyuuri has quit [Ping timeout: 256 seconds]
simukis has quit [Ping timeout: 240 seconds]
<srhb> Ah well... :P
<srhb> But yes, let's figure out the issue. You may want a list of something instead of types.commas though and just render it as whatever, but we'll find out :)
<srhb> Maybe commas is fine.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] erosennin opened pull request #34204: icu: fix include path returned by icu-config (staging...icu-includedir) https://git.io/vNrav
NixOS_GitHub has left #nixos [#nixos]
<DIzFer[m]> while I'm here, I'm going to request comments... I was planning on _fully_ packaging snapd on nixos. That means as much confinement as I can get it and service integration, etc. However, this leaves an "opening" for impure packages to be installed... which is very unnixy. In my head I'm, instead, picturing two sets of options: services.snapd.{enable, enableStrictConfinement}, and enviroment.{stable, beta, edge}SnapPackages.
<DIzFer[m]> I don't think snap provides a facility to specify what version of a snap you want installed... but the granularity between stable, beta, edge seems close enough. Any thoughts?
<lejonet> Well, the options in question, expect a comma-delimited list (cluster network, public network and mon initial members)
* infinisil checks out what snap is
<srhb> lejonet: Yeah, it makes sense.
<DIzFer[m]> infinisil: snapcraft.io
jsgrant[m] has left #nixos ["User left"]
<DIzFer[m]> too many stuffs named snap this days :)
<srid> has anyone managed to create a derivation for https://github.com/thelounge/lounge/ ?
<lejonet> srhb: "The option value `services.ceph.global.monInitialMembers' in /looong/path/to/my/nixops/conf is not of type `null or string'." is what I get
<srid> i tried using npm2nix, but that fails with `Could not find version matching ^7.0.0-0 for @babel/core in undefined`
dywedir has quit [Remote host closed the connection]
<srhb> lejonet: Current revision?
<lejonet> srhb: yes
<srhb> lejonet: Lemme see.
__monty__ has quit [Quit: Lost terminal]
<infinisil> hmm snap sounds interesting, I have no idea how it works though
<lejonet> srhb: and technically, its completely correct, because that option is a listOf str, that I understod types.commas should take and convert into a comma-delimited list
<infinisil> DIzFer[m]: On NixOS it would be impure, right?
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<lejonet> srhb: lib/types.nix define commas as commas = separatedString ",";'
<srhb> lejonet: Oh, no, commas is literally a string that merges by interspersing commas
<DIzFer[m]> hopefully less so than in traditional distros
elurin has joined #nixos
<srhb> lejonet: So if module A set foo = "hi" and module B set foo = "bye" the final value would be foo = "hi,bye"
<lejonet> srhb: Ah, I see
<DIzFer[m]> if I manage to tell it to preseed (is that the right word?) specific packages as specified in configs
<lejonet> srhb: so I'll have to munge them myself if I want to turn a listOf str into a comma-delimited string
<srhb> Yes.
<srhb> But isn't commas exactly what you want? Just don't set it as a list :)
<srhb> (I think lists are more common and easier to understand though... ymmv)
<infinisil> DIzFer[m]: hmm, so the nixos config would enable you to specify which snap packages you want, and they'd automatically update whenever the packages can update?
<lejonet> Well, yes and no, however that setting won't really be set more than at one place, logically
<srhb> lejonet: But concatStringsSepWith "," will also do what you want.
<srhb> Oh, it's called concatStringsSep
<DIzFer[m]> infinisil: ideally, yes
<lejonet> srhb: is there a nice way of making that "automatic" as a part of setting the option or will I have to do each option seperately?
<srhb> lejonet: If that's what you want I suggest just using commas and specifying a string instead of a list. it's more direct.
<DIzFer[m]> I'm pretty sure it's possible by having "snap install" commands run after snapd.service activation... I'll ask around in snappier places to see if there's another, more elegant, way
<infinisil> DIzFer[m]: Why environment.<channel>SnapPackages and not something like services.snap.packages ?
<lejonet> srhb: fair enough, but then I might as well just make the option a str and leave it to the user to get the format right, honestly
<srhb> lejonet: Or if you really mean it shouldn't ever merge, use a string that doesn't merge. :)
<srhb> Yes
<srhb> Sounds simple. :)
<srhb> Simple is good.
<lejonet> Mhm
<lejonet> "What can't be solved technically, is solved by documentation"
asuryawanshi has quit [Ping timeout: 248 seconds]
<srhb> lejonet: By the way, your examples should be the values, not the name = value pairs
<lejonet> srhb: I was very unsure of what the examples should be so :) Many of them are wrong/obsolete anyway, so will have to take an extra pass to fix em anyway
<infinisil> lejonet: i kinda missed it, what exactly do you want from the option?
<srhb> lejonet: Sure, and they should only be strings if you need to. ie. this is valid: example = { foo = 42; };
<lejonet> infinisil: want or want, it would've been a "cleaner" solution if the user could supply the option with a list of strings, and the option kindof just munges that list into a comma-delimited string
michaelpj_ has quit [Ping timeout: 240 seconds]
<DIzFer[m]> infinisil: because you are installing software into the system's path I guessed that would be a somewhat intuitive place... is there precedent for this kind of option anyways?
AluisioASG has quit [Remote host closed the connection]
<infinisil> lejonet: what's the problem with just doing a `let string = concatStringsSep "," cfg.the.option; in` and then use the string where you need it?
AluisioASG has joined #nixos
ylwghst has joined #nixos
<lejonet> infinisil: because atm its atleast 3 options I'd need to do that, and it would fast become unmanagable imo
<infinisil> lejonet: ohh, how about using apply
<hyper_ch> hmmm, I wonder, should I also add openssh server to the custom iso
<raynold> ahh it's a wonderful day
<lejonet> Better to document the right way of supplying the option and hope the user has some familiarity with ceph config so they know either 1. the right way to give the option or 2. how to debug it if/when they supply it the wrong way
<infinisil> lejonet: add `apply = concatStringsSep ","` to the mkOption, then `config.the.option` will be a string, but you can set a list of strings
<lejonet> infinisil: ah, so there is an apply option for mkOption, that makes it "transparent" in a neat kind of way
dbe_ has joined #nixos
<infinisil> lejonet: see nixpkgs/lib/options.nix for all the attributes for mkOption
<srhb> I don't understand now. Didn't you just say that it should never be merged?
<infinisil> DIzFer[m]: Ah right, makes sense
<srhb> Oh, you just want the single definition to be joined.
<lejonet> srhb: no, I never said it shouldn't be merged, I said that it would be neat if the user could supply a list to the option and it is automatically munged into a comma-delimited string :)
<infinisil> hmm, well the apply doesn't seem right though
<srhb> lejonet: Okay. :)
<lejonet> The option is of the type that you set it once, atleast logically
<infinisil> a let in is better i think
<infinisil> and you can abstract the 3 similar options by the way
lonokhov has joined #nixos
<infinisil> nix has functions and stuff for that
<infinisil> no repeating needed (mostly)
<srhb> infinisil: Make that into a T-shirt :-)
<lejonet> xD I'd buy one
<lejonet> Kindof like "There's an app for that"
<srhb> Yeah. It's also quite fitting.
<infinisil> heh, well that's the gist of programming though, don't repeat yourself
Ross has quit [Ping timeout: 264 seconds]
<lejonet> DRY! :D
Ross has joined #nixos
<infinisil> and pretty much any programming language allows for that
ThatDocsLady has quit [Ping timeout: 276 seconds]
<infinisil> (not all of them though)
<TimePath> Don't wash a DRY shirt :P
<TimePath> It would lose all meaning
srid_ has joined #nixos
<infinisil> :p
<lejonet> TimePath: Good one ^^
<srid_> I finally managed to package thelounge: https://github.com/thelounge/lounge (thanks to node2nix)
<lejonet> srhb, infinisil: I think I'll start with just a regular str for those options and then we'll see if any magic is warranted at all
<srhb> I endorse this. :P
<infinisil> lejonet: options really should be settable any number of times though
nallar has joined #nixos
Ross has quit [Ping timeout: 240 seconds]
nallar is now known as Ross
<lejonet> infinisil: yeah, so using commas and proper docs is maybe the way to go
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] copumpkin pushed 1 new commit to master: https://git.io/vNrrs
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 533cc72 Dan Peebles: nixUnstable: pre5849_74f75c85 -> pre5873_b76e282d
<infinisil> transforming it with a let in is the real way to go imo
<lejonet> I'll make em nullOr commas, and then the user can go nuts if they like :)
<hyper_ch> so, booted live cd with zfs stability patch, created new encrypted DS and zfs send/receive now a child set from old to new
ma27 has quit [Ping timeout: 276 seconds]
<lejonet> infinisil: I'm going to start this way to try and not give me more than enough rope to hang myself for the first iteration, then we can talk about fanciness :P
civodul has joined #nixos
<srhb> lejonet: I'm off for the night, have fun. :)
<lejonet> srhb: Cya!
AluisioASG has quit [Remote host closed the connection]
Matrixiumn has joined #nixos
MichaelRaskin has quit [Ping timeout: 248 seconds]
MichaelRaskin has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 4276c0d Tuomas Tynkkynen: kernel: 4.4.112 -> 4.4.113
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] dezgeg pushed 4 new commits to master: https://git.io/vNrow
<NixOS_GitHub> nixpkgs/master 1481937 Tuomas Tynkkynen: kernel: 4.14.14 -> 4.14.15
<NixOS_GitHub> nixpkgs/master acf5b8e Tuomas Tynkkynen: kernel: 4.9.77 -> 4.9.78
JosW has quit [Quit: Konversation terminated!]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] dezgeg pushed 3 new commits to release-17.09: https://git.io/vNroS
<NixOS_GitHub> nixpkgs/release-17.09 7c04c9b Tuomas Tynkkynen: kernel: 4.14.14 -> 4.14.15...
<NixOS_GitHub> nixpkgs/release-17.09 2228c19 Tuomas Tynkkynen: kernel: 4.4.112 -> 4.4.113...
<NixOS_GitHub> nixpkgs/release-17.09 cee2f85 Tuomas Tynkkynen: kernel: 4.9.77 -> 4.9.78...
Fare has joined #nixos
AluisioASG has joined #nixos
jnetod has joined #nixos
elurin has quit [Remote host closed the connection]
ryanartecona has quit [Quit: ryanartecona]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/release-17.09 c52254b Vladimír Čunát: Merge #34073: firefox-{bin,esr}: update...
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.09: https://git.io/vNrK8
* BlessJah wonders why LiveCD does not support zfs by default
ylwghst has quit [Ping timeout: 240 seconds]
<LnL> it was disabled because of licensing issues IIRC
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/99978114f2d (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/d1a04efbf7d (from 2 days ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
nix-gsc-io`bot has quit [Client Quit]
szicari has joined #nixos
<BlessJah> more than zfsonlinux being potentially illegal in first place?
<jnetod> I'm having trouble using nixos-minimal-17.09.2852. A lot of "Error opening terminal: linux" when opening tui apps (nano, cfdisk)
<lejonet> infinisil: is there a convenient attribute for systemd services where you just tell it to point to another service? Either like source or something similar or .symlink or something
<infinisil> lejonet: what do you mean by "point"?
Fare has quit [Ping timeout: 240 seconds]
<infinisil> use it in After/Required or so?
<azazel> lejonet: maybe by creating templated services?
<BlessJah> maybe he asks about alias?
<lejonet> Nah, like symlinking
<infinisil> don't know what symlinking services does, but never seen such a thing in nixpkgs
<lejonet> I have the templates created (the ceph-mon@, ceph-osd@ etc etc), and when I create an instance of it, it should be symlink to point to that definition
<BlessJah> lejonet: what's your goal?
<lejonet> BlessJah: using systemd instanced services as intended :)
<BlessJah> I don't see how symlinks is connected to templates
jrolfs__ has joined #nixos
jrolfs has quit [Read error: Connection reset by peer]
<lejonet> Well, the way that its usually used is that you create the foo@.service, then when you want an instance of it, you symlink "foo@1" -> foo@.service and voila!
<azazel> BlessJah: usually to create real systemd services from template units you link the template unit changing the name of the link
<BlessJah> oh, now I see it
<lejonet> ofc it works even if you "just" copy the foo@.service as foo@1.service, but a symlink is cleaner (and iirc the intended way of doing it)
jrolfs has joined #nixos
jrolfs_ has quit [Ping timeout: 260 seconds]
<lejonet> so is there a nifty way of doing that with nix?
<azazel> lejonet: it isn't systemd.services.<name>.aliases?
<lejonet> azazel: could be, I have no idea what that does :)
Drakonis has quit [Read error: Connection reset by peer]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat closed pull request #34204: icu: fix include path returned by icu-config (staging...icu-includedir) https://git.io/vNrav
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/staging 8cdf8f1 Andrey Golovizin: icu: fix include path returned by icu-config
<NixOS_GitHub> nixpkgs/staging 9f22de7 Vladimír Čunát: Merge #34204: icu: fix paths returned by icu-config
<NixOS_GitHub> [nixpkgs] vcunat pushed 3 new commits to staging: https://git.io/vNrij
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/staging e12d9ad Vladimír Čunát: icu: fix the output of icu-config --incfile
<lejonet> azazel: I think not, sadly, that seems to just give another name to call it, when using systemctl/journalctl and so, it doesn't really seem like it brings that name all the way to the service, so it can populate %i and such
hiratara has quit [Ping timeout: 276 seconds]
<azazel> lejonet: but systemd.units.<name>.enable mentions template units, but the source code of the config it a bit too much for me
<lejonet> azazel: where'd you find the config? I've lazily looked a bit but never really found any source of it :P
<lejonet> (of the systemd.units type of deal that is)
<azazel> it's linked with any option on the "options" page on the nixos site
Fare has joined #nixos
hiratara has joined #nixos
cfricke has joined #nixos
dan_b has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/a8d0b805b19 (from 2 days ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<lejonet> Will have a look, thanks :)
nix-gsc-io`bot has quit [Client Quit]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 opened pull request #34205: rust: fix glibc build (release-17.09...rust-glibc) https://git.io/vNr1m
NixOS_GitHub has left #nixos [#nixos]
infinisil has quit [Quit: ZNC 1.6.5 - http://znc.in]
infinisil has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #34206: moe: fix build w/libc++ using touchup from mailing list (master...fix/moe-libcxx) https://git.io/vNrMk
NixOS_GitHub has left #nixos [#nixos]
<lejonet> azazel: well that only defines the systemd-nspawn@.service :/
dbe_ has quit [Ping timeout: 240 seconds]
<lejonet> I wonder where the different gettys are defined, because that is a template service, so that should give a hint of how its done
infinisil has quit [Quit: ZNC 1.6.5 - http://znc.in]
infinisil has joined #nixos
<jnetod> I'm having trouble using nixos-minimal-17.09.2852. A lot of "Error opening terminal: linux" when opening tui apps (nano, cfdisk).
<jnetod> Solution was set TERM env var to vt100
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #34207: busybox: bump copybuf, disable utmp/wtmp when not supported (musl) (staging...fix/busybox-misc) https://git.io/vNryf
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vNryJ
<NixOS_GitHub> nixpkgs/master b4c12ee Tuomas Tynkkynen: wget: 1.19.2 -> 1.19.4
NixOS_GitHub has left #nixos [#nixos]
<azazel> lejonet: here is a search result on getty
mk-fg has quit [Ping timeout: 240 seconds]
<lejonet> yeah, I have a checkout of the git repo and using rg, and I can only find references in tests xD
<lejonet> (for other than the getty@.service :P )
<azazel> lejonet: I think you have to define them like: https://search.nix.gsc.io/?q=getty&i=nope&files=&repos=
<azazel> ops: systemd.services."serial-getty@ttyS0".enable = false;
<lejonet> Well, I have a bunch of those, with .enable = true; but as there is no service file for it, it just says "Erh, whuut?"
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar closed pull request #34186: gnome-shell-extension-nohotcorner: init at 16.0 (master...gnome-shell-extension-nohotcorner) https://git.io/vNwvN
NixOS_GitHub has left #nixos [#nixos]
<lejonet> azazel: yeah, I know, just doing .enable = true creates an empty service, I need to find a way to link that service
<lejonet> so that its not empty
hakujin1 is now known as hakujin
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 3b4f4c2 Michael Alan Dorman: melpa-stable-packages: 2018-01-22
<NixOS_GitHub> [nixpkgs] joachifm pushed 5 new commits to master: https://git.io/vNrSs
<NixOS_GitHub> nixpkgs/master ea3c7e9 Michael Alan Dorman: org-packages: 2018-01-22
<NixOS_GitHub> nixpkgs/master 71b1574 Michael Alan Dorman: elpa-packages: 2018-01-22
NixOS_GitHub has left #nixos [#nixos]
<lejonet> maybe doing "ceph-mon@1".unit = systemd.services."ceph-mon@".unit; works?
<azazel> I think that if you def a service like "myservice@foo".enable =true; it will link it automatically to the corresponding service "myservice@", like in the second link I last posted
<lejonet> oh well, I'll have to try that tomorrow
<lejonet> azazel: nope, doesn't happen, that is exactly what I've done :P
<lejonet> azazel: this is the result if you just do a "ceph-mon@0" when you've defined "ceph-mon@": https://paste.pound-python.org/show/zzy12tGLO2KQCxSLkxjY/
<lejonet> I hoped it was as simple as that :(
<BlessJah> shouldn't that be in terminfo/x/xterm? /nix/.ro-store/609zdpfi5kpz2c7mbjcqjmpb4sd2y3j4-ncurses-6.0-20170902/share/terminfo/x~nix~case~hack~1/xterm
<lejonet> I will try the .unit = .unit thing tomorrow, as .unit contains the generated unit, atleast then the services become a copy of it, which sure isn't as nice as a symlink but atleast it'll probably work
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<BlessJah> maybe that's why livecd doesn't know xterm terminfo?
<MP2E> maybe. I haven't worked on terminfo support but that certainly doesn't look right
la_putin has joined #nixos
jnetod has quit [Ping timeout: 260 seconds]
<dtz> anyone know if nixOS would be a problem/difficult/bad choice for use on an ovirt-based cloud?
<dtz> don't know anything about ovirt, so it might be at a different level such that it doesn't matter but thought I'd ask the veterans here first :)
szicari has quit [Quit: szicari]
hiratara has quit [Remote host closed the connection]
<hakujin> what's the best way to combine derivation sources (e.g. I have a `fetchurl` tarball and a `fetchGitHub` folder)? currently getting permission denied when I try to move the `fetchurl` sources into the read-only github folder.
hiratara has joined #nixos
<hakujin> (`fetchurl` source must be inside the github repo's folder for its makefile to work)
glenn_ has quit [Remote host closed the connection]
[0x4A6F] has quit [Remote host closed the connection]
ambro718 has quit [Ping timeout: 260 seconds]
glenn_ has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/b222a0713f4 (from 24 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
nix-gsc-io`bot has quit [Client Quit]
dkao has joined #nixos
cfricke has quit [Quit: WeeChat 2.0]
glenn_ has quit [Ping timeout: 255 seconds]
lonokhov has quit [Quit: Lost terminal]
patrl has joined #nixos
patrl has quit [Client Quit]
vidbina has quit [Ping timeout: 265 seconds]
vidbina has joined #nixos
vidbina has quit [Ping timeout: 240 seconds]
iqubic has joined #nixos
<iqubic> What do people think about installing software that is not in the official NixOS repo?
<iqubic> So not on Nixpkg.
infinisil has quit [Quit: ZNC 1.6.5 - http://znc.in]
knupfer1 has joined #nixos
infinisil has joined #nixos
<iqubic> Is that an advisable thing do?
knupfer has quit [Ping timeout: 276 seconds]
knupfer1 is now known as knupfer
<hakujin> iqubic: I think most people would advise to create a derivation and install that software through nix
rardiol1 has quit [Remote host closed the connection]
<iqubic> I have no idea how to create a derivation.
<iqubic> All I have right now is an installer executable.
mekeor has joined #nixos
<iqubic> And trying to call that via the command line is failing.
nuncanada has quit [Read error: Connection reset by peer]
<iqubic> Trying to install this thing, because I think it looks cool.
<iqubic> And the linux installer is just an executable in a zip file.
<iqubic> Trying to run said executable from the commandline with "./lunaInstaller" fails.
<iqubic> zsh: no such file or directory: ./lunaInstaller
<iqubic> Which is really odd because the zsh tab completion finds the file for me.
nuncanada has joined #nixos
cement has quit [Ping timeout: 276 seconds]
<iqubic> So I'm not sure what to do.
stanibanani has quit [Ping timeout: 265 seconds]
<LnL> you'll have to patch the interpreter
coot has quit [Ping timeout: 248 seconds]
<iqubic> What interperter do I need to patch?
coot has joined #nixos
<LnL> try something like this
spear2 has quit [Read error: Connection reset by peer]
<LnL> nix-shell -p stdenv --run 'patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" lunaInstaller'
coot has quit [Ping timeout: 240 seconds]
coot has joined #nixos
hakujin1 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 opened pull request #34209: R: fix dylib install_name on darwin (master...darwin-libR) https://git.io/vNov6
NixOS_GitHub has left #nixos [#nixos]
<iqubic> That downloaded a few things, but it didn't actually run the installer.
<iqubic> I'm not sure why it didn't.
coot has quit [Remote host closed the connection]
<LnL> no that patches the interpreter to point to your current glibc version
infinisil has quit [Quit: ZNC 1.6.5 - http://znc.in]
<LnL> it should work now, or fail with a different error
jmiven has quit [Quit: co'o]
infinisil has joined #nixos
<jtojnar> If you import a module from another channel, will it use pkgs from that channel or from nixpkgs?
hakujin has quit [Ping timeout: 248 seconds]
<iqubic> ./lunaInstaller: error while loading shared libraries: libxcb.so.1: cannot open shared object file: No such file or directory
hakujin1 is now known as hakujin
<iqubic> I might want to just create a derivation for this instead of patching errors one by one.
jmiven has joined #nixos
<LnL> yeah, that also makes sure the dependencies won't vanish with a gc
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<iqubic> So, how the heck do I create a derivation?
knupfer has quit [Ping timeout: 248 seconds]
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
jrolfs_ has joined #nixos
<iqubic> If I do this, it'll be my first ever derivation.
jrolfs has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] copumpkin pushed 1 new commit to release-17.09: https://git.io/vNoJO
<NixOS_GitHub> nixpkgs/release-17.09 8b181d5 Michael Raskin: libmpc: update source URL...
NixOS_GitHub has left #nixos [#nixos]
<iqubic> Is there a guide to creating and using derivations anywhere?
<gchristensen> iqubic: can you be a bit more specific about what your goal is?
<LnL> you can change the first line to " with import <nixpkgs> {}; " if you want to just nix-build it
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 pushed 3 new commits to master: https://git.io/vNoJC
<NixOS_GitHub> nixpkgs/master e23b6a3 John Ericson: Merge pull request #34201 from dezgeg/release-refactor-3...
<NixOS_GitHub> nixpkgs/master 6388f51 Tuomas Tynkkynen: nixos/release.nix: Use callSubTestsOnTheseSystems for ec2 tests
<NixOS_GitHub> nixpkgs/master 8353ebe Tuomas Tynkkynen: nixos/release.nix: Introduce callSubTestsOnTheseSystems...
NixOS_GitHub has left #nixos [#nixos]
ixxie has quit [Quit: Lost terminal]
xcmw has joined #nixos
hakujin has quit [Ping timeout: 256 seconds]
jrolfs_ has quit [Ping timeout: 268 seconds]
glenn_ has joined #nixos
jrolfs_ has joined #nixos
glenn_ has quit [Remote host closed the connection]
cacatoes has quit [Ping timeout: 276 seconds]
kreisys has quit [Read error: Connection reset by peer]
cacatoes has joined #nixos
jrolfs_ has quit [Ping timeout: 240 seconds]
spear2 has joined #nixos
glenn_ has joined #nixos
Sonarpulse has quit [Ping timeout: 248 seconds]