YellowOnion has quit [(Ping timeout: 256 seconds)]
<erlandsona>
Ah dhess` my bad, didn't see the slideshare presentation! Only the reddit post...
<erlandsona>
My bad.
erlandsona_ has joined #nixos
<dhess`>
erlandsona: another technique I use when I'm trying to understand how to use Nix is, I go hunting on GitHub for projects that do something similar. For example, search GitHub for "node" and ".nix".
deepfire` has quit [(Ping timeout: 246 seconds)]
erlandsona has quit [(Ping timeout: 246 seconds)]
koserge has quit [(Ping timeout: 268 seconds)]
mudri has quit [(Quit: WeeChat 1.7)]
ryantrinkle has quit [(Ping timeout: 246 seconds)]
<shawndomniti>
I've created a new package, is there any sort of git commit message scheme I should follow?
mojjo has quit [(Ping timeout: 256 seconds)]
erlandsona_ has quit [(Remote host closed the connection)]
<MichaelRaskin>
package-name: init at 0.0.0
erlandsona_ has joined #nixos
<shawndomniti>
thx MichaelRaskin
<erlandsona_>
Thanks dhess` I'll give that a shot!
jsgrant-_ has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[at]jsgrant.io & I'll try to get back to you within 24 hours.)]
<dhess`>
np
ndowens08 has quit [(Ping timeout: 260 seconds)]
carlosdagos has quit [(Ping timeout: 260 seconds)]
jsgrant-_ has joined #nixos
erlandsona has joined #nixos
ryantrinkle has joined #nixos
erlandsona_ has quit [(Ping timeout: 246 seconds)]
eacamero_ has joined #nixos
eacamero_ has quit [(Remote host closed the connection)]
eacameron has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
<shawndomniti>
anyone have any documentation on how to use nix.useSandbox?
eacamero_ has joined #nixos
<shawndomniti>
I see that it's recommended for submitting a pull request, and followed the link to the option page, but I don't see anything obvious about it
eacamero_ has quit [(Remote host closed the connection)]
mkoenig has quit [(Read error: Connection reset by peer)]
srhb has quit [(Ping timeout: 240 seconds)]
jsgrant-_ has quit [(Read error: Connection reset by peer)]
pmade has quit [(Ping timeout: 240 seconds)]
taeradan has quit [(Remote host closed the connection)]
jsgrant-_ has joined #nixos
viric has quit [(Ping timeout: 240 seconds)]
kalebo has quit [(Ping timeout: 240 seconds)]
pingveno has quit [(Ping timeout: 240 seconds)]
pikajude has quit [(Ping timeout: 240 seconds)]
pingveno has joined #nixos
srhb has joined #nixos
taeradan has joined #nixos
mkoenig has joined #nixos
pikajude has joined #nixos
pmade_ has joined #nixos
kalebo has joined #nixos
mkoenig has quit [(Read error: Connection reset by peer)]
marusich has joined #nixos
mkoenig has joined #nixos
froglegstew has quit [(Ping timeout: 240 seconds)]
marsam has joined #nixos
froglegstew has joined #nixos
taktoa has joined #nixos
mbrgm has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
<maurer>
Has anyone figured out how to install logicblox on nixos? I figured it might be possible, given they sponsor it, and wanted to play with logicql a bit >_>
<gchristensen>
maurer: are you a customer?
<maurer>
Oh nevermind, I'm a dummy, evidently you cna't actually download it
<maurer>
I thought they might have a limited version for non-customers, but it looks like I misunderstood their download button
<gchristensen>
ah
<gchristensen>
that is what I had assumed
<maurer>
Yeah, I'm working on a datalog dialect, so I was trying to do due diligence and explore what logicql does
<maurer>
but it looks like the answer is "lol paywall"
<maurer>
Yeah, I've read through some of their documentation which is why it seemed interesting enough to install
<maurer>
but it's frequently easier to learn how things work if you actually have an implementation to play with
<maurer>
I wouldn't link someone to the Definition of Standard ML and expect them to come away with the pros and cons of the module system :P
<gchristensen>
haha yeah fair
MarcelineVQ has quit [(Remote host closed the connection)]
ilyaigpetrov has joined #nixos
gbbrt_ has joined #nixos
gbbrt has quit [(Read error: Connection reset by peer)]
<pxc>
where is the nix/nixos documentation on defining files? like `etc.whatever.source = blahblahblah;`
taktoa has quit [(Remote host closed the connection)]
<pxc>
and environment.pathsToLink type stuff
MarcelineVQ has joined #nixos
cpennington has quit [(Remote host closed the connection)]
RchrdB has quit [(Ping timeout: 268 seconds)]
marsam has quit [(Remote host closed the connection)]
dhess` has quit [(Ping timeout: 258 seconds)]
zeus_ has quit [(Remote host closed the connection)]
jsgrant has joined #nixos
zeus_ has joined #nixos
<gchristensen>
here is the beginning of Zeus, my precursor to Hercules, killer of Hydra: https://codepen.io/gchristensen/full/GWXYer/ a little script which makes a report, suitable for embedding in Jenkins
hexagoxel has quit [(Ping timeout: 260 seconds)]
zeus_ has quit [(Ping timeout: 246 seconds)]
roconnor has quit [(Ping timeout: 240 seconds)]
hexagoxel has joined #nixos
takle has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] romildo opened pull request #24397: mate: update packages to version 1.18.0 (master...upd.mate) https://git.io/vSmTQ
fresheyeball has quit [(Quit: Konversation terminated!)]
mkoenig has quit [(Read error: Connection reset by peer)]
mizu_no_oto has joined #nixos
Piece_Maker has joined #nixos
<pxc>
I'm trying to work on a module for XCompose configuration and I don't see the docs on that stuff
<pxc>
I guess I'll just try cribbing from other modules
Acou_Bass has quit [(Ping timeout: 246 seconds)]
Piece_Maker is now known as Acou_Bass
<pxc>
gchristensen: cool. what are the design goals for Hercules?
<jekor>
Is there a way more elegant than sed to compile an executable path into an executable (forcing the dependency), or some way to make sure that a program is available to the other program at runtime (assuming both are built with Nix)?
zeus_ has quit [(Read error: Connection reset by peer)]
zeus_ has joined #nixos
<bhipple>
Hi guys. If I'd like to setup a multi-user nix system, is the best way to curl the script that installs nix in single-user mode, then chown the /nix dir back to root, and setup the nix-daemon?
<bhipple>
or I guess I could just run the curl'd script as root in the first place
<ilyaigpetrov>
how does nix isolate apps from each other? chroot, containers?
<pxc>
sometimes runtime paths and other environment variables, occasionally wrapper scripts are involved
CMCDragonkai is now known as Guest66038
<ilyaigpetrov>
pxc: harcoded paths? is it a joke?
<pxc>
bhipple: is NixOS not an option?
<bhipple>
ilyaigpetrov: Try running: `ldd $(which git)` and you'll see what he means
<pxc>
it does sound pretty bizarre when you haven't seen how it comes together to form a system
<bhipple>
pxc: NixOS is what I'm using at home, but I'd like to install NixPkg on a very large RHEL dev machine at work to show coworkers the magic of Nix
<pxc>
bhipple: hashtag relatable content right there
mguentner2 has quit [(Quit: WeeChat 1.7)]
<bhipple>
I'm currently trying it out on a Linode Debian VM to see how it works
<pxc>
bhipple: have you looked at the RPM packages? they set up the daemon and builders I think
<pxc>
by builders I mean the accounts for building, sorry
<bhipple>
Oh nice, I didn't realize there were already RPMs for it
mizu_no_oto has quit [(Ping timeout: 264 seconds)]
<pxc>
ilyaigpetrov: patchelf is especially scary lol. What kind of educational media do you like to consume?
<pxc>
ilyaigpetrov: I can try to find you some written docs and there are lots of good Nix talks now. Guix, a sort of GNU spin-off of Nix has an educational focus and so they have excellent documentation and lectures and their stuff works according ot the same principles
<pxc>
bhipple: yeah, they're actually built by Nix and not through rpmbuild or anything like that
<ilyaigpetrov>
pxc: so nixos containers provide 'clean' environment but not safety (like it doesn't prevent malicious code from damaging the system)
<pxc>
ilyaigpetrov: NixOS containers are something else, they provide an additional layer of isolation
<pxc>
ilyaigpetrov: NixOS containers are systemd-nspawn containers, which are like super-spiffy chroots
<pxc>
then even within those containers the programs are isolated by the paths they're linked against
<pxc>
ilyaigpetrov: NixOS can also manage virtual machines of various kinds, directly in various ways or through Vagrant
<bhipple>
Hmm, I don't see any RPMs for NixPkg. Are you sure they exist?
<ilyaigpetrov>
pxc: so NixOS containers depend on systemd, can I get rid of systemd if I really want?
<pxc>
ilyaigpetrov: NixOS is very much systemd-based, so no
mguentner has joined #nixos
<pxc>
ilyaigpetrov: GNU GuixSD uses GNU Shepherd (dmd) instead of systemd
<pxc>
that's as close as you can get to NixOS without systemd
<ilyaigpetrov>
pxc: I wonder how guixsd runs apps that depend on systemd
<pxc>
someone somewhere has a fork of Nixpkgs where services can be launched using Supervisor instead of systemd
<pxc>
I think so they can run more services in usermode and some on OS X
<pxc>
but I can't remember whose it is
<pxc>
it's a challenge. GuixSD is not nearly as complete as NixOS yet, but it recently entered beta. I think it's usable
<ilyaigpetrov>
I'm interested in a low-level system with systemd as an option, not a requirement
<pxc>
but I remember in one Guix presentation they were like ‘yeah getting Gnome to work was a big deal b/c systemd’
<pxc>
I think in Guix I've heard murmurs about swappable init systems, but I don't think it's actually there. I think they were talking about the strategies they use for generating shepherd units in Guile or something
<pxc>
they have a freenode channel, too, you can find them in #guix
<ilyaigpetrov>
pxc: I'm yet not a fan of guile, it is not pure, so I doubt
<pxc>
ilyaigpetrov: I wouldn't let systemd stop me from trying NixOS if I were you, but of course your use case is legitimate
<ilyaigpetrov>
my use case is just an interest
<pxc>
then definitely give it a try. actually dealing with systemd outside of using systemctl is something you basically never have to do in Nix
<pxc>
*NixOS
<pxc>
the way services are actually started up is all abstracted away from you when you configure services
<ilyaigpetrov>
pxc: are there some low-level layers of nixos that don't depend on systemd and may be used as a ground on which I can build something
takle has joined #nixos
deepfire` has joined #nixos
dhess` has quit [(Ping timeout: 268 seconds)]
koserge has joined #nixos
<pxc>
ilyaigpetrov: yeah, in the thread I linked someone talks about doing just that. they use a modified NixOS which uses a busybox shell instead of an init system.
<pxc>
I don't think they're in a normal repo but idk
<pxc>
I don't actually know where to find them since nothing on Hydra is stored on Hydra anymore
<pxc>
I ought to, though, it's been that way for a long time
<bhipple>
On the releases page, I just see a bunch of tars, not any .debs or .rpms
fiddlerwoaroof has quit [(Ping timeout: 240 seconds)]
Piece_Maker has joined #nixos
<bhipple>
I think what I'm going to do is add a SaltStack state for a multi-user NixPkg installation and user accounts to setup (I also need to learn more about SaltStack for work, so it'd kill two birds with one stone)
<bhipple>
Thix nix-setup-user() function needs to be run as root for each multi-user on the machine, so I'd imagine it's not something that a deb or rpm could do automatically
Acou_Bass has quit [(Ping timeout: 240 seconds)]
Piece_Maker is now known as Acou_Bass
<pxc>
bhipple: you could just do it the gross old fashioned way with a script sourced from /etc/profile or something and have it not run if it finds ~/.nix-initialized, and have it do `touch ~/.nix-initialized` after it runs
agjacome has quit [(Quit: leaving)]
<pxc>
bhipple: you could also have a wrapper around nix-env that checks if the nix profile dir exists and then creates it if it doesn't, if it does it just passes all the arguments to the real nix-env
<bhipple>
yeah that's a good point
mguentner2 has joined #nixos
<pxc>
bhipple: yeah you could just straight-up use nix-setup-user() as written in your wrapper :)
<pxc>
bhipple: have you played with the Open Build Service at all? openSUSE provides a public instance you can use to build packages for whatever distro you want
takle has joined #nixos
<pxc>
bhipple: it provides repos too. so you could use that to package your Nix and/or your wrapper. You'd have to do it for realz though, since Nix doesn't have any srpms, as far as I know
<bhipple>
Neat, hadn't ever heard of Open Build Service
<pxc>
yeah it can straight-up import srpms from any RPM distro and then you can add build targets for other RPM-based distros and fix them up until they build
mguentner has quit [(Ping timeout: 260 seconds)]
<pxc>
I don't use it as much now that I use NixOS more than openSUSE, but I love the Open Build Service and the instance openSUSE provides
systemfault has joined #nixos
IRCFrEAK has joined #nixos
IRCFrEAK has left #nixos []
fiddlerwoaroof has joined #nixos
<pxc>
looks like build.opensuse.org is down right now though. sometimes it struggles because it has a really big load all the time
takle has quit [(Ping timeout: 258 seconds)]
alanz has quit [(Ping timeout: 240 seconds)]
alanz has joined #nixos
mog has quit [(Ping timeout: 258 seconds)]
AllanEspinosa has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
lezed1 has quit [(Ping timeout: 268 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
hexanode has quit [(Ping timeout: 240 seconds)]
dhess` has joined #nixos
ryantrinkle has joined #nixos
<datakurre>
After install, nixos-rebuild does not seem to update efi boot options. What could I be missing?
taeradan has quit [(Remote host closed the connection)]
<datakurre>
mkoenig: Now I get error about wrong partition type. That is strange, because install worked.
<datakurre>
Maybe I try to fix the type and cross fingers...
Wizek_ has quit [(Ping timeout: 268 seconds)]
<datakurre>
(in an hour)
griff_ has quit [(Quit: griff_)]
takle has quit [(Ping timeout: 240 seconds)]
<mkoenig>
did you do nixos-install --chroot first (i guess you are booting the live cd)? it's maybe enough to just run nixos-install again
<datakurre>
nixos-install worked and efi booted, but now nixos-rebuild does not update the menu
odi_ has quit [(Ping timeout: 240 seconds)]
<datakurre>
I'll try changing partition type with gdisk soon.
<datakurre>
I did not add --chroot option during install.
odi has joined #nixos
<mkoenig>
that's fine. --chroot is only for chrooting into an existing installation
koserge is now known as _deepfire
_deepfire is now known as koserge
systemfault has quit [(Quit: Bye!)]
fiddlerwoaroof has quit [(Ping timeout: 258 seconds)]
koserge is now known as _deepfire
fiddlerwoaroof has joined #nixos
odi has quit [(Ping timeout: 240 seconds)]
odi has joined #nixos
_deepfire is now known as deepfire
odi has quit [(Remote host closed the connection)]
odi has joined #nixos
dhess` has joined #nixos
alx741 has quit [(Quit: alx741)]
eacamero_ has quit [(Remote host closed the connection)]
proteusguy has quit [(Remote host closed the connection)]
dhess` has quit [(Ping timeout: 268 seconds)]
marusich has joined #nixos
eacameron has joined #nixos
galen has joined #nixos
fiddlerwoaroof has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Ping timeout: 260 seconds)]
marsel has joined #nixos
zeus_ has quit [(Remote host closed the connection)]
zeus_ has joined #nixos
MercurialAlchemi has joined #nixos
fiddlerwoaroof has joined #nixos
marusich has quit [(Ping timeout: 246 seconds)]
eacameron has joined #nixos
zeus_ has quit [(Ping timeout: 246 seconds)]
eacameron has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
zeus_ has joined #nixos
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 258 seconds)]
byteflame has quit [(Ping timeout: 260 seconds)]
eacamero_ has quit [(Ping timeout: 246 seconds)]
odi has quit [(Ping timeout: 260 seconds)]
proteusguy has joined #nixos
eacameron has joined #nixos
systemfault has joined #nixos
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 268 seconds)]
eacamero_ has quit [(Ping timeout: 264 seconds)]
byteflame has joined #nixos
marsel has quit [(Ping timeout: 260 seconds)]
reinzelmann has joined #nixos
katyucha_ has joined #nixos
katyucha is now known as Guest24751
katyucha_ is now known as katyucha
odi has joined #nixos
Shados has quit [(Ping timeout: 256 seconds)]
zeus_ has quit [(Remote host closed the connection)]
renodesper has joined #nixos
zeus_ has joined #nixos
Shados has joined #nixos
dhess` has joined #nixos
zeus_ has quit [(Ping timeout: 246 seconds)]
<renodesper>
hi
<renodesper>
if I want to install nixos using livecd, will I get a fully running desktop?
<renodesper>
or is it only an installer just like archlinux?
<MichaelRaskin>
There is an installer with a full desktop included, and there is a minimal installer
<MichaelRaskin>
The installer program itself, nixos-install, is a non-interactive command-line tool in both cases
dhess` has quit [(Ping timeout: 240 seconds)]
MichaelRaskin has quit [(Quit: MichaelRaskin)]
<renodesper>
thank you MichaelRaskin, if that's the case then I will try the graphical livecd
galen has quit [(Ping timeout: 240 seconds)]
reinzelmann has quit [(Remote host closed the connection)]
takle has joined #nixos
reinzelmann has joined #nixos
edvorg has quit [(Remote host closed the connection)]
pxc has quit [(Ping timeout: 258 seconds)]
byteflame has quit [(Ping timeout: 240 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
thc202 has joined #nixos
<datakurre>
mkoenig: Thanks. My issues were a) not knowing about --install-bootloader and b) boot partition not being mounted when running that
takle has joined #nixos
stepcut has quit [(Remote host closed the connection)]
hamishmack has quit [(Read error: Connection reset by peer)]
takle has quit [(Ping timeout: 260 seconds)]
stepcut has joined #nixos
pareidolia has quit [(Ping timeout: 260 seconds)]
pareidolia has joined #nixos
knedlsepp has quit [(Ping timeout: 246 seconds)]
systemfault has quit [(Quit: Bye!)]
ebzzry has quit [(Ping timeout: 240 seconds)]
Itkovian has joined #nixos
stepcut has quit [(Remote host closed the connection)]
Lisanna_ has joined #nixos
<amosbird>
hello
<amosbird>
does nix support installing postgis to a non nix managed postgres?
<ikwildrpepper>
copumpkin: no, missed the mac capacity messages. I'll see if I can add 2 mac's before leaving on holiday
<ronny>
amosbird: without more context, its very likely impossible nix manages nix things, not external impure things
<amosbird>
ok
athan has quit [(Ping timeout: 240 seconds)]
zraexy has quit [(Ping timeout: 268 seconds)]
athan has joined #nixos
justan0theruser has quit [(Ping timeout: 240 seconds)]
<ronny>
amosbird: whats your actual use-case thats preventing the use of a nix-managed prostgresql?
<amosbird>
ronny: well, it's a customized one
<amosbird>
and I don't know how to convert it to a nix managed package easily
<ronny>
amosbird: what prevents building a ustomized postgresql in nix then?
<amosbird>
I constantly just do make install
hamishmack has joined #nixos
<ronny>
nix does have a packaged postgresql already, so you can likely star there
<amosbird>
ideally, if nix support some kind of make hook then I'm happy to just use nix
<ronny>
amosbird: what should that make hook do?
<amosbird>
make install ---> nix install ?
<ronny>
amosbird: uhm wtf? thats not intended/possible
<amosbird>
then I need to change my workflow :|
<Lisanna_>
amosbird that doesn't seem feasible or desirable at all.
<amosbird>
ok
Guest66038 is now known as CMCDragonkai
<ronny>
amosbird: well going from imperative packaging/installing to declarative installing needs a change
<amosbird>
I do development in postgres source tree. How can I use nix to manage that?
<ronny>
nix-shell helps
takle has joined #nixos
dhess` has joined #nixos
<amosbird>
huh?
<ronny>
i do use nix-shell for in-source-tree development for many of my own projects, but they arent a service and they arent in c
<ronny>
amosbird: nix-shell can drop you in an environment where all build requirements are availiable, so you can just compile/run things
<amosbird>
well, I can give that a try. But I'm also using emacs with semantic autocompletion tools. I don't know if that will work along with nix encapsulated projects
<amosbird>
how can I quickly grab an existing postgres default.nix file to my current dev ?
nschoe has joined #nixos
marsel has joined #nixos
jsgrant-_ has quit [(Remote host closed the connection)]
jsgrant has quit [(Remote host closed the connection)]
<schoppenhauer>
*push* is there a reason why the pale moon package is on 27.1 rather than 27.2?
jsgrant has joined #nixos
jsgrant-_ has joined #nixos
dhess` has quit [(Ping timeout: 260 seconds)]
<calvertvl>
schoppenhauer: probably just not been updated yet
renodesper has quit [(Quit: WeeChat 1.7)]
byteflame has joined #nixos
<ronny>
amosbird: i roughly recall it should be possible to use something like "(import <nixpkgs> {}).postgresql_94.override ...)" in your own default.nix, i'd have to try the exact progress
<ronny>
schoppenhauer: usuallybecause nobody did the version bump+test, feel free to try that one as first contribution ^^
<amosbird>
ronny: woow, that is cool
marusich has joined #nixos
<calvertvl>
amosbird: The other way to do it is to have a local package
taeradan has joined #nixos
<calvertvl>
basically, copy the postgres default.nix from nixpkgs and update it to use your local git repo
<calvertvl>
(this is a bit more complex than an override but is more flexible)
CMCDragonkai has quit [(Quit: WeeChat 1.7)]
<ronny>
amosbird: consider it a starting point, if you need more, jsut coyp the package and edit it directly
bennofs has joined #nixos
endformationage has quit [(Quit: WeeChat 1.6)]
lush has joined #nixos
<lush>
hi everyone
jgertm has joined #nixos
<amosbird>
calvertvl: um
<amosbird>
does nix tool support grabing postgres default.nix directly?
marusich has quit [(Ping timeout: 246 seconds)]
<amosbird>
It's kind of slow to copy from the web
<calvertvl>
you can download raw off of github; otherwise, override will probably be fastest to get something working
<ronny>
one coudl probably hack around that using a strange nix expression that just fetches the nix file of postgresql, i dont know it off-hand, so its quicker to just fetch it from the web, or clone the git repo
<calvertvl>
ronny: it actually built the old one, even though the default.nix / package name / etc. reflects the new version
<calvertvl>
I've seen this happen at least once before...still not sure why
<amosbird>
hmm, what's this "/nix/store/a0lnwm5wapjy4gvviy8gms87ffpxxm0d-nixpkgs-17.09pre104029.fff8cc7/nixpkgs/pkgs/servers/nosql/redis/default.nix:19"
<ronny>
calvertvl: how did you build it?
<calvertvl>
nox-review
<ronny>
calvertvl: its a common mistake to build against the channel instead of a checkout
<calvertvl>
I'm building against master
freusque has quit [(Ping timeout: 264 seconds)]
filterfish has joined #nixos
<ronny>
calvertvl: whats your build command
filterfish_ has joined #nixos
<calvertvl>
nix-shell -p nox --run "nox-review wip" on the un-committed version of that commit
__Sander__ has joined #nixos
<calvertvl>
somehow it pulled the 27.1.1 version but stored it as 27.2.1
<srhb>
bkchr: In that example, is pkgs.pkg not the "set" and (name: pkg: ...) not the "f"?
<bkchr>
srhb: pkgs.pkg is the set and the second is the function
<tsmeets[m]>
srhb: flip = f: x: y: f y x
<bkchr>
tsmeets[m]: yeah, that's what I would expect
<bkchr>
based on the sourcecode
<srhb>
bkchr: Right. :) Maybe we're in agreement after all and just getting hung up on the interpretation of currying :-P
<srhb>
tsmeets[m]: Yes, that's what I said, I think. :-)
<tsmeets[m]>
srhb: oh ok. sorry.
<bkchr>
srhb: :)
mudri has joined #nixos
<tsmeets[m]>
Does anyone have experience in cross compiling for aarch64?
reinhardt has joined #nixos
goibhniu1 has joined #nixos
reinzelmann has quit [(Ping timeout: 240 seconds)]
goibhniu has quit [(Ping timeout: 240 seconds)]
goibhniu1 is now known as goibhniu
freusque has joined #nixos
dhess` has joined #nixos
<LnL>
tsmeets[m]: we have an aarch64 machine on hydra.org now
<LnL>
the nixos.org hydra I mean
<tsmeets[m]>
LnL: yes, I know. but what if I want to try a pull-request?
filterfish_ has quit [(Ping timeout: 260 seconds)]
lsix has joined #nixos
<pie__>
can anyone help me with setting up qemu/kvm/virtmanager?
<spacekitteh[m]>
LnL7: got it working
<pie__>
for some reason i get permission denied when i try to create a vm from an installation iso
filterfish_ has joined #nixos
dhess` has quit [(Ping timeout: 268 seconds)]
<goibhniu>
pie__ can you show what's going on in a pastebin?
arjen-jonathan has joined #nixos
<pie__>
yeah im on it
<pie__>
also it seems that something (qemu appears to have a dynamic_ownership option which is probably what does it, but idk if thats actually my problem) changes the ownership of the image file to root:root when i try to create the vm
<ronny>
what do i have to do to reenable pulseaudio support in firefox
<goibhniu>
ronny: it should work with PA by default AFAIK
<the-kenny>
Uhm, stupid question: My laptop isn't adjusting to the recent daylight savings time change. Restarting ntpd doesn't help. I'm quite sure it worked fine the last time. Any ideas?
<goibhniu>
pie__ what command do you run?
MP2E has quit [(Quit: leaving)]
<pie__>
goibhniu, im using virt-manager so its gui...
<pie__>
but it seems to show the command there?
<goibhniu>
ah, I've never tried that ... I presume you're not running it as root, right?
freusque has quit [(Read error: Connection reset by peer)]
<goibhniu>
(or with sudo)
<pie__>
no
<pie__>
i added my user to the libvirtd group
<pie__>
and i enabled libvirt in my configuratoin.nix and installed the proper packages and thats it...
<goibhniu>
is it trying to write to the .iso?
<goibhniu>
could it be that you have it configured to use the .iso as a harddisk?
<pie__>
ive chmodded it 777 so it could if it wanted to
ThatDocsLady has joined #nixos
<pie__>
but it shouldnt want to because its doing whatever it does automatically to use it as installation media
<goibhniu>
well, I don't think you can just write to an .iso filesystem like that
<pie__>
and if i check th evm settings it seems to match that
<pie__>
so that shouldnt be the issue
<goibhniu>
does this work: `qemu-kvm /home/paprika/618240.iso`
<pie__>
it starts ten complains about no bootable device
<pie__>
image format not specified, assuming raw
<goibhniu>
ah
<goibhniu>
does this work: `qemu-kvm -cdrom /home/paprika/618240.iso`
<pie__>
yeah
<pie__>
gets into windows boot manager
<pie__>
actually, the error message is reminescent of it using the image wrong...if you check the commandline...
<pie__>
but then why isnt it broken for other people?
<pie__>
im still not comfortable with messing with nixos package script stuff :/ i just havent learned it yet
ebzzry has joined #nixos
<pie__>
oh, well the guy does mention at the end to put it in tmp or something, i guess maybe whatever the qemu user is (pretty sure its running as root though since it changes the owners to root..) doesnt have access to my downloads folder, that sounds dumb though
<the-kenny>
Followup to my DST troubles: Seems like services.ntpd causes the issue. Deactivating it and relying on systemd-timesyncd works fine. All hail systemd blabla.
pdobrogost has joined #nixos
<goibhniu>
pie__ it's easy to do this with qemu-kvm directly, I can tell you what to use if you like
<pie__>
well i put it in /tmp and it still gives the perms error
<pie__>
goibhniu, but i want t obe able to manage it with virt-manager later :/
<goibhniu>
sure
<goibhniu>
have you managed to change the format of the iso file?
ebzzry has quit [(Ping timeout: 260 seconds)]
<pie__>
well i havent found anything suggestive of what to change it to
<pie__>
i thin raw makes sense though because the bootloader handles the format no?
pie_ has quit [(Ping timeout: 246 seconds)]
<lush>
is there like an article on what is a common way to setup a haskell environment on nixos?
<goibhniu>
pie__ well, with qemu it complained about it "image format not specified, assuming raw"
<goibhniu>
but I don't know for sure
<ronny>
hmm
<ronny>
fml, git wont find kdiff3 for some reason
<pie__>
well...i gotta run to class...bbl
<goibhniu>
o/
takle has quit [(Remote host closed the connection)]
carlosdagos has joined #nixos
RchrdB has joined #nixos
k2s has joined #nixos
takle has joined #nixos
<lush>
joepie91: are you here? :-)
freusque has joined #nixos
ndowens08 has joined #nixos
<srhb>
lush: Generally, per-project.
<srhb>
lush: generally cabal2nix --shell . > shell.nix and work within that shell (or, at least, cabal configure within it)
takle has quit [(Ping timeout: 240 seconds)]
<lush>
srhb: so there is nothing special that I need to mind when installing the haskell environment per se?
mudri has joined #nixos
<lush>
srhb: like I can just put ghc etc in my systemPackages?
<lush>
for installing
periklis has joined #nixos
<ertes>
is there a function for building passwd and group files? (i won't need shadow)
<ertes>
from descriptions like those in configuration.nix
<srhb>
lush: There's no need for that.
<srhb>
lush: You'll be using the one pulled in in the project
takle has joined #nixos
<srhb>
lush: You may want a "global" or user local environment for one-offs in ghci, but you won't be using it for developing your projects.
<ronny>
ertes: why no need for shadow (its the common standard these days)
<srhb>
lush: You will be using the per-project ghc for that.
pie__ has quit [(Ping timeout: 240 seconds)]
<lush>
srhb: ah alright
<lush>
srhb: so I only need cabal2nix ?
<srhb>
lush: Basically to get started, start with nothing installed. Get cabal2nix. Sit in your project directory, run cabal2nix --shell . > shell.nix
<srhb>
lush: Then, run nix-shell
<srhb>
lush: Now you have ghc, ghci, and all your dependencies at hand.
<lush>
perfect, ty very much :-)
<ertes>
ronny: because there will be no actual logins
<ertes>
i just need it, because some tools refuse to work otherwise
<ronny>
ertes: so just ignore shadow and use the normal tooling?
<ertes>
what do you mean?
<ertes>
i'm building containers
<ronny>
ertes: if you dont set any passwords for users, then shadow should be empty to begin with, so just ignore it
<ertes>
ronny: what i'd like to have is a function that generates these files
<ertes>
exactly like the (non-mutable) users in configuration.nix
<ertes>
i don't mind if a shadow file is generated as well, it just won't be used
<lush>
how can I check whether a certain package is already installed on my system or not?
<lush>
like buildutils for example.. I found a config that lists it but if I type "which buildutils" in the terminal I get a hash so I guess it is already installed on my system
<srhb>
lush: ls /nix/store :P
xj9[m] has quit [(Remote host closed the connection)]
prose[m] has quit [(Remote host closed the connection)]
jyp[m] has quit [(Remote host closed the connection)]
teh[m] has quit [(Read error: Connection reset by peer)]
rdesfo[m] has quit [(Read error: Connection reset by peer)]
sziszi[m] has quit [(Read error: Connection reset by peer)]
Yaniel has quit [(Remote host closed the connection)]
cornu[m] has quit [(Remote host closed the connection)]
scott2 has quit [(Read error: Connection reset by peer)]
Criena[m] has quit [(Write error: Connection reset by peer)]
herzmeister[m] has quit [(Read error: Connection reset by peer)]
qrilka[m] has quit [(Read error: Connection reset by peer)]
dtz has quit [(Read error: Connection reset by peer)]
SyrupThinker[m] has quit [(Read error: Connection reset by peer)]
indefini has quit [(Read error: Connection reset by peer)]
Ralith has quit [(Write error: Connection reset by peer)]
MrAxilus[m] has quit [(Read error: Connection reset by peer)]
mythmon-1 has quit [(Remote host closed the connection)]
timclassic has quit [(Read error: Connection reset by peer)]
danielrf has quit [(Remote host closed the connection)]
ArdaXi[m] has quit [(Write error: Connection reset by peer)]
Exee7uvo[m] has quit [(Remote host closed the connection)]
M-liberdiko has quit [(Read error: Connection reset by peer)]
Dezgeg[m] has quit [(Remote host closed the connection)]
Shell has quit [(Write error: Connection reset by peer)]
bendlas has quit [(Read error: Connection reset by peer)]
jack[m] has quit [(Remote host closed the connection)]
spacekitteh[m] has quit [(Write error: Connection reset by peer)]
jascot[m] has quit [(Write error: Connection reset by peer)]
primeos[m] has quit [(Read error: Connection reset by peer)]
corngood has quit [(Remote host closed the connection)]
icetan has quit [(Read error: Connection reset by peer)]
unlmtd[m] has quit [(Remote host closed the connection)]
lfont[m] has quit [(Read error: Connection reset by peer)]
zimbatm[m] has quit [(Write error: Connection reset by peer)]
Magnap has quit [(Write error: Connection reset by peer)]
rycee[m] has quit [(Read error: Connection reset by peer)]
bachp has quit [(Write error: Connection reset by peer)]
jlle[m] has quit [(Read error: Connection reset by peer)]
offlinehacker[m] has quit [(Read error: Connection reset by peer)]
saintaquinas[m] has quit [(Write error: Connection reset by peer)]
hexkey[m] has quit [(Remote host closed the connection)]
musicmatze[m] has quit [(Read error: Connection reset by peer)]
spawnthink[m] has quit [(Remote host closed the connection)]
hendrik[m] has quit [(Read error: Connection reset by peer)]
copumpkin has quit [(Remote host closed the connection)]
philipp[m] has quit [(Write error: Connection reset by peer)]
davidar has quit [(Write error: Connection reset by peer)]
shanemikel[m] has quit [(Read error: Connection reset by peer)]
M-Rym has quit [(Write error: Connection reset by peer)]
regnat[m] has quit [(Read error: Connection reset by peer)]
aspiwack[m] has quit [(Read error: Connection reset by peer)]
eqyiel[m] has quit [(Read error: Connection reset by peer)]
sargon[m] has quit [(Read error: Connection reset by peer)]
moonarch has quit [(Read error: Connection reset by peer)]
<srhb>
Well, that's not true
<lush>
whew ^^
<srhb>
I'm not actually sure how to do that.
<srhb>
Things might be there that just aren't garbage collected yet.
<srhb>
For your user environment it's nix-env -q
<lush>
mhm alright
<srhb>
But system-wide.. Not sure.
<srhb>
lush: (By the way, if you've manually installed buildutils somehow in a global or user local way, you may be doing something wrong.)
<samae>
Hey, I'm roaming nixpkgs and I can't find what function to call to populate /etc/OpenCL/vendors
<samae>
Is there anything like that?
<ertes>
lush: what's your notion of "installed"?
<lush>
srhb: aah I just checked my "which" path and it just says that it didn't found buildutils ^^
<ertes>
lush: you could check all GC roots
<ertes>
lush: but typically you will be asking that question in the context of a certain environment, so you would use nix-env -q
<srhb>
lush: To elaborate a bit on what I just said, you want most things to be declarative when possible. So buildutils might be pulled in as a dependency to your derivation (some project) but it wouldn't actually be _installed_ in any of the profiles you use. Just available to the build/nix shell
<srhb>
lush: (Next time you garbage collect, it would then be removed, unless you explicitly prevent that.)
pie_ has joined #nixos
<lush>
ok
<lush>
Guess I first need to learn some more about nix environments etc
<ertes>
lush: as a more general solution you can request the closure of a certain store path, which is the set of all store paths that makes it self-contained
<ertes>
this gives you a list of all store paths that make your system self-contained in such a way that if you were to transfer them to a different host (even a non-nix one), you could run that system
<ertes>
(on the same architecture of course)
<ertes>
same for your user profile: nix-store -qR ~/.nix-profile
<ertes>
or even any individual program in your user profile: nix-store -qR `readlink -e ~/.nix-profile/bin/pandoc`
<lush>
sorry I just started with nixos yesterday evening, I can't follow your advice 100% right now
hexkey[m] has joined #nixos
<lush>
But srhb already answered my question, thank you for your effort :-)
<ertes>
it's not really "advice"… consider it an "interesting side note" =)
<lush>
hehe alright I'll try
Itkovian has quit [(Remote host closed the connection)]
Itkovian has joined #nixos
pie_ has quit [(Ping timeout: 240 seconds)]
<ertes>
you should try it just to see it in action… if nothing else, it's an interesting feature of nix =)
filterfish_ has quit [(Ping timeout: 256 seconds)]
k2s has joined #nixos
proteusguy has quit [(Remote host closed the connection)]
<lush>
how often would you recommend to garbage collect?
Itkovian has quit [(Ping timeout: 264 seconds)]
Itkovian has joined #nixos
<sphalerite>
Whenever you're running out of space
<sphalerite>
It has no benefit besides freeing up space
m0rphism has quit [(Quit: WeeChat 1.4)]
pie__ has joined #nixos
<pie__>
goibhniu, back
<pie__>
ive still got nothing
[0x4A6F] has quit [(Ping timeout: 256 seconds)]
<pie__>
on an unrelated note, i get """error: getting status of ‘/home/paprika/default.nix’: No such file or directory" when i run nix-shell, what gives?
<lush>
If I've got a software that I've got in binary to just run it I still need to write a nix-package for that, right?
<goibhniu>
lush: that's usually the easiest way
<goibhniu>
it doesn't need to be added to nixpkgs though
[0x4A6F] has joined #nixos
<gchristensen>
domenkozar: here?
<LnL>
pie__: nix-shell looks in your current directory, if you want to use something from nixpkgs you can do nix-shell '<nixpkgs>' -A hello
<lush>
goibhniu: ty
<goibhniu>
yvw!
<pie__>
LnL, oh ok
<pie__>
i probably misremembered somethig else
<pie__>
thanks
<pie__>
uh yeah wrong thing
<NixOS_GitHub>
[nixpkgs] sjmackenzie closed pull request #24338: current rustRegistry doesn't have the clap 2.22.1 (master...rustRegistry_bump) https://git.io/vSIGw
<pie__>
which is the command that gives me a nix repl
<gchristensen>
nix-repl
<pie__>
what the heck, i dont have that in my tab complete
<gchristensen>
or, if you don't have it, nix-shell -p nix-repl --run nix-repl
<pie__>
command not found
<LnL>
pie__: nix-shell -p will use nixpkgs by default
<lush>
goibhniu: do you know a guide on how to write a nix-package for an existing binary?
<pie__>
oh, thats been moved out of the base distribution?
<gchristensen>
not sure it was ever in it
<LnL>
don't think so
<pie__>
well i had it...for whatever reason, i mean i dont remember installing it mzself, but who kows
<pie__>
know
<pie__>
a
<pie__>
i cant type today eithe rapparently :P
<goibhniu>
lush: I think this is still valid: https://nixos.org/wiki/FAQ#I.27ve_downloaded_a_binary.2C_but_I_can.27t_run_it.2C_what_can_I_do.3F
<goibhniu>
lush: I'm pretty sure there's also a more verbose description on stackoverflow ... it explains how to use objdump etc. to figure out what libs you need
<gchristensen>
what do you think?
<lush>
ty goibhniu
<goibhniu>
yw
<LnL>
gchristensen: looks pretty good, how does it discover the attributes?
<pie__>
the disk and the image *is* on different partitions
akaWolf1 has joined #nixos
YellowOnion__ has joined #nixos
<the-kenny>
lush: teeworlds is packaged for NixOS. Are you trying to play some fork of it? If so you might want to adapt the existing package
wak-work has joined #nixos
ebzzry has joined #nixos
smw has joined #nixos
smw is now known as Guest79753
<lush>
the-kenny: for the moment it'd be enough to play the classic teeworlds. However there are different clients for teeworlds and I prefer playing through ddnet (ddnet.tw)
<pie__>
goibhniu, ok putting stuff on the same partioition worked, now i just have to figureout why im getting a black screen
<pie__>
\o/
<lush>
the-kenny: howerver how can I install the packed version of teeworlds?
<pie__>
ah there we go
<the-kenny>
lush: either `nix-env -i teeworlds`, or add `teeworlds` to `environment.systemPackages`.
<lush>
the-kenny: huh why isn't teeworlds displayed in nixos.org package search when I search for it then? :o
YellowOnion_ has quit [(Ping timeout: 240 seconds)]
<the-kenny>
good question! Iirc the json we use there doesn't include all packages
<the-kenny>
I'm not sure where it's generated, but it's likely that it only contains packages evaluated by Hydra (our build farm)
chakerbenhamed has joined #nixos
<the-kenny>
Ah, likely because it isn't licensed under a standard license. Metadata reads 'license = "BSD-style, see `license.txt'";'
<chakerbenhamed>
Hey, Is there a way I cann skip the test when building a python package?
<the-kenny>
hydra uses a whitelist of licenses it's allowed to build
<chakerbenhamed>
The tests fail when I use nix-shell
<goibhniu>
hi chakerbenhamed, you need to set doCheck to false
<lush>
the-kenny: -iA tells me that the teeworlds package is marked as broken
<chakerbenhamed>
goibhniu: Thanks I did, But I used a lowercase 'c'. It works now thanks
<mkoenig>
what happened to the launchpad link? it redirects to something different today
<the-kenny>
lush: huh, isn't for me (on master). Let me check when it was marked as broken. In the meantime, can you update your channel? nix-channel --update should do the trick
<the-kenny>
lush: ah it's likely some dependency on your release channel. Which channel are you on?
lush_ has joined #nixos
filterfish has joined #nixos
<the-kenny>
lush: as a workaround: You can clone github.com/nixos/nixpkgs.git and run `nix-env -f . -i teeworlds` in there. That will install teeworlds from the master branch of nixos (without affecting your system)
<goibhniu>
chakerbenhamed: excellent!
<pie__>
ok im off again o/
<pie__>
goibhniu, thanks for trying in any case \o/
lush has quit [(Ping timeout: 260 seconds)]
<manveru>
some update to 17.03 channel broke adding my own vim plugins to vam.knownPlugins
<manveru>
did the format change or something?
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 1 new commit to master: https://git.io/vSm7T
<NixOS_GitHub>
nixpkgs/master 3139993 Rob Vermaas: nixUnstable: update to 1.12pre5122_c60715e...
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 1 new commit to release-17.03: https://git.io/vSm7L
<NixOS_GitHub>
nixpkgs/release-17.03 e4b0992 Rob Vermaas: nixUnstable: update to 1.12pre5122_c60715e...
eacameron has quit [(Ping timeout: 256 seconds)]
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 1 new commit to release-16.09: https://git.io/vSm7q
<NixOS_GitHub>
nixpkgs/release-16.09 4da11d7 Rob Vermaas: nixUnstable: update to 1.12pre5122_c60715e
carlosdagos has quit [(Ping timeout: 240 seconds)]
ilyaigpetrov has joined #nixos
<ertes>
i'm using nixpkgs.writeTextFile a number of times and then nixpkgs.buildEnv to combine all of those into a directory… is there a more efficient way to do this without running a build script?
<ertes>
the problem is that it leads to lots and lots of derivations, bloating the store
odi has quit [(Quit: Leaving)]
odi has joined #nixos
carlosdagos has joined #nixos
toppler has quit [(Remote host closed the connection)]
toppler has joined #nixos
ryantrinkle has quit [(Ping timeout: 258 seconds)]
<gchristensen>
niksnut: is it possible to extend --log-type's effect to --read-log?
pie__ has quit [(Quit: Leaving)]
<gchristensen>
ie: read-log outputs the nesting characters with no mind to --log-type, which surprises me. I've come up with a funny perl expression to strip them, but would rather not have eto
deepfire has joined #nixos
deepfire` has joined #nixos
<lush_>
thank you the-kenny :-)
<niksnut>
gchristensen: --log-type is gone on master
<manveru>
is there an easy way to have inetutils and nettools installed at the same time without conflicts?
<manveru>
they both have ifconfig, dnsdomainname, and hostname executable
Itkovian has quit [(Quit: Textual IRC Client signing off)]
marsel has quit [(Ping timeout: 256 seconds)]
<goibhniu>
manveru: I don't think you can easily have them in the same profile, but you could use nix-build or nix-shell to make them available
<manveru>
well, it's not an error, just a warning, and i can install both, i guess it just depends on the order in systemPackages which one's in the PATH first
<gchristensen>
I think you can mark one as lowPrio to make it explicitly be lower priority than the other
<gchristensen>
(lowPrio nettools) for example
carlosdagos has quit [(Ping timeout: 260 seconds)]
marsel has joined #nixos
<manveru>
gchristensen: thanks, that works nicely
<manveru>
only two warnings left then
<lush_>
I've got a partition that I want to use as Data storage.. there is no /mnt so where would you mount that in nixos?
<gchristensen>
I can only help with one warning per day, manveru :)
<manveru>
:D
<manveru>
same time tomorrow? :P
<samae>
Hey, how can I detect whether I'm running nixos or another distro during the installPhase?
<manveru>
samae: env vars usually
<samae>
(I want to call wrapProgram only in the later case)
<ronny>
samae: why would that matter?
<gchristensen>
samae: why would yoU?
<ronny>
samae: that will very likely break
<samae>
I'm packaging an OpenCL application
<LnL>
^ shouldn't matter unless it's a different platform
<samae>
How would you do that then ?
<gchristensen>
oh... opencl...
<samae>
the path for opencl vendors (/etc/OpenCL/vendors) is not standard in NixOS
<gchristensen>
what var are you setting in the wrapper?
<samae>
OPENCL_VENDOR_PATH and LD_LIBRARY_PATH (only for non-nixos)
<gchristensen>
they can probably take a colon-separated list, and you could add the paths for nixos and the paths for not-nixos
<samae>
gchristensen: that's not stupid at all : )
<samae>
It's quite fitting actually, thanks
<gchristensen>
or if they are correctly set in the default environment, OPENCL_VENDOR_PATH="${OPENCL_VENDOR_PATH}:/nix/os/stuff"
Itkovian has joined #nixos
<samae>
I'm not sure they are though
<samae>
let me check
<samae>
nope, it's not defined
<Yaniel>
Static mount?
xadi1 has joined #nixos
xadi has quit [(Read error: Connection reset by peer)]
<samae>
gchristensen: the thing is, in NixOS the path is hardcoded (env var is not needed)
<Yaniel>
lush_: if they are static you can put them wherever you want; i have one partition on /media and some netdisks in /nas subdirectories
<samae>
I need to set this env var only in the case I'm not on NixOS
<gchristensen>
yeah, opencl is a pain like that
<gchristensen>
same with nvidia stuff
<samae>
default path is: /run/opengl-driver/etc/OpenCL/vendors/ in NixOS
<samae>
I'm gonna try the colon separated list
<gchristensen>
opencl is one of the few dependencies we have state in :( (as seen by the /run/ dir) and it makes sense it'd be difficult on other distros
<samae>
gchristensen: nope, not working : /
<samae>
What other solution do I have, short of building specifically for NixOS/non-NixOS
<samae>
Ok, I think I'm just NOT going to wrap it during the build, but make an external wrapper for whenever I'm not running it on NixOS
justanotheruser has joined #nixos
edwtjo has joined #nixos
edwtjo has quit [(Changing host)]
edwtjo has joined #nixos
<gchristensen>
samae: obviously not ideal, but I don't know what else to do, sorry
<samae>
Yeah, but that's not too much of a hassle
<samae>
I understand a bit more on why this does not work in a generic fashion
<samae>
thanks for the help (as always : )
<copumpkin>
ikwildrpepper: thanks!
<lush_>
so if I want to start a haskell prject using hakyll how would I do that the nix-way? Like get a project folder devel/proj and then switch in that directory and start "nix-shell -A haskellPackages.hakyll"
<lush_>
?
<ikwildrpepper>
copumpkin: it will be 4 mac minis btw
<unlmtd[m]>
im having trouble pulling the nixpkgs repo. other github repos are pulling fine
<unlmtd[m]>
what could be doing that?
<ikwildrpepper>
ordering them today
<gchristensen>
samae: you could make a generic wrapper function, like (openCLFHSWraper yourpkg) which wraps all the bin's in yourpkg/bin/ with a wrapper for use off nixos
<gchristensen>
ikwildrpepper: :o! :D
<ikwildrpepper>
copumpkin: but only if you make mac support aweseom
<ikwildrpepper>
awesome
<gchristensen>
thank you, ikwildrpepper!
<ikwildrpepper>
gchristensen: don't thank me, thank the people who have donated to the nixos foundation ;)
<gchristensen>
:o thank you, copumpkin!
<gchristensen>
and everyone who has donated!
<gchristensen>
can I comment on that report of spending issue to say money was used to buy 4 mac minis for the build farm? it isn't a report of spending, but it is a report of an expense :)
<sphalerite>
manveru: did you resolve your vam issue?
<ikwildrpepper>
gchristensen: nah, I'll try to update the nixos foundation page with some donation stats and expenses
<manveru>
sphalerite: yeah, kinda
<gchristensen>
ikwildrpepper: that'd be really great, thank you
<manveru>
sphalerite: i now just set packageOverrides.vimPlugins so they're found
<sphalerite>
hm, I remember having an issue like yours, but I didn't do that
<manveru>
i think it's related to me using neovim instead
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<manveru>
didn't dig much deeper...
<samae>
gchristensen: I'll think about it. But for now, the demand is not very high from my part
<copumpkin>
Hah it's getting there! We have an idea to reduce pure/impure boundary crashes and are upgrading stdenv LLVM to 4 as we speak!
DutchWolfie has joined #nixos
DutchWolfie has quit [(Changing host)]
DutchWolfie has joined #nixos
babynix has joined #nixos
<sphalerite>
mojjo: the name can't be empty
<babynix>
yo
<globin>
sphalerite: you generally always want to use overrideAttrs, overrideDerivation only overrides the resulting derivation which may not have all attrs you had in your call to mkDerivation
babynix is now known as Filystyn2
<Filystyn2>
guys
<Filystyn2>
i have installed
<copumpkin>
And lots of other grand plans that are finally going to move
<Filystyn2>
nixos
<sphalerite>
globin: I see, thanks
<mojjo>
sphalerite: ahh. ok
<Filystyn2>
Im on it right now. I managed to get started the x11 server horey so i can have nice graphics
<globin>
sphalerite: overrideAttrs is the new function and quasi-replacement
<Filystyn2>
first of all is gcc in nixos repository because i see soem straneg wrappers
k2s has quit [(Ping timeout: 240 seconds)]
<Filystyn2>
I installed enlightment but not sure how should i set the config file *.deskoptmanager.enlightenment.enable = true ?
takle has quit [(Remote host closed the connection)]
peterhoeg has joined #nixos
<Filystyn2>
:)
<Filystyn2>
just a sec brb
Filystyn2 has left #nixos ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
<pie_>
anyone know how to share a host directory with a windows guest with virt-manager?
<copumpkin>
+1 on updating the page!
<gchristensen>
ikwildrpepper, copumpkin: this deserves a mention on the nixos-weekly issue
mog has joined #nixos
jensens has quit [(Remote host closed the connection)]
babynix has joined #nixos
eacameron has joined #nixos
<babynix>
ok i tried to have **deskoptenviroment.enlightment.enable = true but it said there is no such option
nschoe has quit [(Remote host closed the connection)]
<babynix>
so how can i set it?
nschoe has joined #nixos
<babynix>
Or how can i find in future if i encounter similar problem
<goibhniu>
babynix: is that just a typo?
<babynix>
what do you mean?
<babynix>
enlightenment thats how i wrote it
<lush_>
how should I start a new haskell project in nix?
<lush_>
(using nix-shell)
<goibhniu>
babynix: deskoptenviroment
nschoe has quit [(Client Quit)]
<babynix>
that one was not changed since it's line from comment
<babynix>
i wrote it from head
nschoe has joined #nixos
<babynix>
memory*
<goibhniu>
babynix: have you got "services.xserver.desktopManager.enlightenment.enable = true;"?
<goibhniu>
babynix: you can find all the options in `man configuration.nix`
<babynix>
yes and i got on switch info this lien is wrong tho i can
<babynix>
great!
<babynix>
Ill check it right away thank you for now
eacameron has quit [(Remote host closed the connection)]
<goibhniu>
good luck!
babynix has left #nixos ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
georges-duperon has joined #nixos
<NixOS_GitHub>
[nixpkgs] taku0 opened pull request #24407: Firefox bin 52.0.2 (master...firefox-bin-52.0.2) https://git.io/vSYLQ
babynix has joined #nixos
<babynix>
it works ( the enlightement)
<pie_>
you ugys happen to know if theres some kind of declarative configuratoin thing for firefox on window?
<pie_>
gchristensen, i guess ill have to check stuff like tha tout
<manveru>
you'll have to run it with sudo to find options
<babynix>
ok but how i can be sure it will use home from sda2 not sda1
JayVii has quit [(Remote host closed the connection)]
<makefu>
pie_: there is also man configuration.nix
<manveru>
if you mount /home from sda2 then that's what it is
<mojjo>
I know it's a quite general question, but maybe someone has a hint: In a builder script I'm executing a java application, which is in charge to build some stuff. In some circumstances (have not figuured out yet which ones), I'm getting `java.nio.file.AccessDeniedException: /nix/store/jvmj4jf0xwx627n802rmqimfhm96lr9w-myapp/target` . Anyone ideas about his?
<pie_>
manveru, doesnt seem to work?
<pie_>
i want to be able to search so i need something that can also do partial names?
<babynix>
ok but system starts and how it knows to mount home from sda2 ?
<manveru>
babynix: where did you mount sda2?
<manveru>
pie_: yeah, it's not searching... just evaluating and printing :|
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<pie_>
:P
<babynix>
i just mounted sda in installation ;-)
<manveru>
heh
<pie_>
makefu, i guess searching the man page is proooobably what i need to do?
<manveru>
babynix: you need something like this in your hardware-configuration.nix then
<domenkozar>
globin: did we ever merge staging-17.03?
<LnL>
domenkozar: NIX_SHELL, I think you made a typo :)
proteus-guy has joined #nixos
<babynix>
investigating...
proteus-guy has quit [(Remote host closed the connection)]
<domenkozar>
LnL: context-switching fail :)
<globin>
domenkozar: yes but new stuff is inside
<manveru>
babynix: got a meeting now, but just bug LnL with it, he knows ALL THE THINGS! :D
<gchristensen>
domenkozar: I would find it surprising if entering nix-shell pruned the first character from the NIX_PATH ;) (you have a typo: "ixpkgs=https" -> "nixpkgs=https")
<LnL>
manveru: :o
* manveru
hides
<domenkozar>
gchristensen: tnx
<babynix>
ok i have the hardware file do i need to add sda2 there somehow to make it seen by system?
drasich has quit [(Ping timeout: 246 seconds)]
<LnL>
if you run nixos-generate-config it will generate a hardware configuration for all the currently mounted filesystems
<pie_>
LnL, didnt do that when i was in the installer though
<pie_>
i probably goofed something up
albertocg has left #nixos ["WeeChat 1.6"]
<LnL>
should be fine to run again, unless you want to change the filesystem for / or /nix/store
<babynix>
maybe slowly, what is default nix file manager
<babynix>
ok i got it
chakerbenhamed has quit [(Ping timeout: 256 seconds)]
Havvy has quit [(Remote host closed the connection)]
Havvy has joined #nixos
eacameron has joined #nixos
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
Jackneill has joined #nixos
<babynix>
ok basically i have 2 partition we forget about swap and one is on mount point /
<babynix>
i need to add second on mount point /home
<pie_>
goibhniu, know naything about getting host-guest copy paste working?
<pie_>
i installed the guest tools for windows already and rebooted the guest
<pie_>
and virtmanager seems to have laready added the approprite devices
<pie_>
already
<babynix>
i read that but there is no ancwer to my question there
<LnL>
babynix: yep, but I think you have to partition it yourself
<goibhniu>
pie_, sorry, nope
<pie_>
ok thanks anyway
<babynix>
LnL what do you mean partition it by my self ?? i created it at instaltion start
<babynix>
it exist it somehow got ingored tho
<domenkozar>
globin: k
<NixOS_GitHub>
[nixpkgs] domenkozar pushed 1 new commit to release-17.03: https://git.io/vSY3U
<NixOS_GitHub>
nixpkgs/release-17.03 7dcd3c4 Domen Kožar: Merge branch 'staging-17.03' into release-17.03
<pie_>
weird...that should be enough for it to work
<pie_>
shouldnt even need reboot
carlosdagos has quit [(Ping timeout: 240 seconds)]
<LnL>
babynix: maybe you did it after generating the config? if it's partitioned correctly that should work with a nixos-rebuild
MercurialAlchemi has quit [(Ping timeout: 260 seconds)]
<babynix>
ok it seems there is some fail in config file indeed
aguardar has joined #nixos
<babynix>
I just miss the point where i tell it to make that thing home
<babynix>
since as i remember you can give also other directories some partitions
<babynix>
so there must be some step i am missing
<babynix>
i just set the sopace to partition and turn it to ext4
<babynix>
what is more i manually added user when it seems i shoudl do it with configure file
<babynix>
i used useradd
erasmas has joined #nixos
<babynix>
tho tbh that configuration file
<babynix>
is super cool
odi has joined #nixos
yegods has joined #nixos
Itkovian has joined #nixos
<ertes>
is there a function in nixpkgs to do deep set union? not like (//), but more like the way NixOS modules are combined
chakerbenhamed has joined #nixos
<ertes>
such that e.g.: deepUnion { x.y = 5; } { x.z = 7; } = { x = { y = 5; z = 7; }; }
jmiven has quit [(Quit: co'o)]
jmiven has joined #nixos
nschoe has quit [(Remote host closed the connection)]
obadz has quit [(Ping timeout: 240 seconds)]
jmiven has quit [(Quit: co'o)]
jmiven has joined #nixos
<sphalerite>
ertes: recursiveUpdate I think
<babynix>
LnL it works after adding to configure file it seems ;-)
yegods has quit [()]
<babynix>
tho it is still missing in the hardware file but it did inform me about ne mounted point
gilligan_ has joined #nixos
<gilligan_>
hi
babynix has quit [(Remote host closed the connection)]
obadz has joined #nixos
<pie_>
virt-manager is supposed to make tings easy :I
* pie_
flais helplessly trying for find a way to share a folder with a window sguest nicely
<gilligan_>
hm, there is really no other reason to setting up a multi-user nix installation than when you have multiple different users that should be able to access the nix store in any way right?
lush_ has quit [(Quit: Page closed)]
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 4 new commits to master: https://git.io/vSY8H
<ocmylife>
Hey guys. I'm new to NixOS, get my Gnome-system up and running, and now I'm curious if there's a way to remove all that bloatware from Gnome3 and tell configuration.nix only to install core applications and disable all optional packages?
<LnL>
there are some other advantages when using the nix-daemon
<LnL>
builds run under a separate user and the store is not owned by a user anymore so it's harder to accidentally write to it
odi has quit [(Remote host closed the connection)]
<clever>
LnL: and nixos also mounts /nix/store read-only, so it cant even be written to by root!
<gilligan_>
yeah well.. i have to give up on my nixops/nixos setup and migrate to some custom crap right now sadly
<joepie91>
gilligan_: iirc some newer guides exist now, so YMMV
<joepie91>
that guide is very much a combination of experiments and results that look about right :)
<gilligan_>
joepie91, well first of thanks for sharing
<NickHu>
Anyone else upgraded on nixos-unstable recently only to find lots of fonts are no longer found?
<gilligan_>
joepie91, we should try to get that into the nix manual
<kriztw>
ocmylife: depends on what you think is bloatware and optional?
ebzzry has quit [(Ping timeout: 260 seconds)]
<joepie91>
gilligan_: I'd be happy for it to be merged in the manual, assuming that an Actually Competent NixOS User reviews it first :D
<joepie91>
or well, Nix *
<joepie91>
gilligan_: fwiw, all my writings and such are WTFPL/CC0 licensed and so can reused in any way without requirements or restrictions :)
pie_ has quit [(Ping timeout: 258 seconds)]
pie_ has joined #nixos
<ocmylife>
@kriztw: I saw on GitHub that there is a corepackages-group on gnome3, a optional and also a games-group. I only want the core packages-group. I mean gnome-clocks, yelp, gnome-software and so on
Mateon3 has joined #nixos
<gilligan_>
LnL, any input on what joepie91 has written up? :)
peterhoeg has quit [(Remote host closed the connection)]
nahamu has joined #nixos
<kriztw>
ocmylife: that might be a good first pull request, it looks like they want the gnome package to have an exludeServices as well
nschoe has joined #nixos
bkchr has quit [(Quit: Konversation terminated!)]
ryantrinkle has joined #nixos
<ocmylife>
I will be back in around two hours. I hope that this will be the new default, as Plasma is also nice and clean by default on NixOS. See you later
ryanartecona has joined #nixos
odi has quit [(Remote host closed the connection)]
<mojjo>
anybody knows why I can perfectly build a package via `nix-build -E "with import <nixpkgs> {}; callPackage ./my.nix {}"` but fail to do so when it's part of another expression.? I replicate the same command in a let expression, it compiles but cannot build... what could be the difference?
odi has joined #nixos
tsmeets[m] has quit [(Ping timeout: 240 seconds)]
<clever>
mojjo: can you gist the file your putting that into?
<pmade>
ToxicFrog: Did you ever come up with a solution for systemd automounts and sshfs? I'm looking at doing the same thing.
<mojjo>
clever: not really meaningful ones. the first one is: builder for ‘/nix/store/n80a9lmjg9r4avacvb9y3zk6ll15zlgq-my.drv’ failed to produce output path ‘/nix/store/4j0dasavk7q6b7jggyr4mi2i063yxqi9-simple-sample2’
<mojjo>
s/simple-sample/my
<clever>
mojjo: sounds like the script inside my.nix didnt mkdir $out, so you need to look further up in the log
<clever>
mojjo: can you gist my.nix?
akaWolf1 is now known as akaWolf
Dezgeg_ has joined #nixos
marsam has quit [(Remote host closed the connection)]
filyforasec has joined #nixos
<filyforasec>
guys
<filyforasec>
i got the partitions working all is fine
odi has quit [(Ping timeout: 240 seconds)]
<filyforasec>
now i have question how to remove a program i installed
<filyforasec>
nix-env -uninstall program?
<clever>
filyforasec: nix-env -e program
<mojjo>
I wrote the builder.sh, and indeed it doesn't `mkdir $out`, I thought this dir was already given. my.nix is this: http://lpaste.net/354019
<filyforasec>
thx!
<clever>
mojjo: you should almost always use buildCommand, rather then just builder
<clever>
mojjo: also, the version on line 16 does absolutely nothing
<clever>
mojjo: you probably just want to switch it to pkgs.runCommand "my" { jars = ... ... } ''bash script here''
oida_ has quit [(Ping timeout: 246 seconds)]
WilliButz has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub>
[nixpkgs] qknight pushed 1 new commit to master: https://git.io/vSY2s
<NixOS_GitHub>
nixpkgs/master 6f2eca1 Bas van Dijk: wordpress: replace the dbPassword option with dbPasswordFile (#24146)...
stepcut has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vSY2S
<NixOS_GitHub>
nixpkgs/master de02dfc Victor Calvert: palemoon: 27.1.1 -> 27.2.1...
<NixOS_GitHub>
nixpkgs/master 91cc357 Michael Raskin: Merge pull request #24402 from calvertvl/update-palemoon-27_2_1...
<mojjo>
clever: mh, but the builder script isn't that short.. I'm still wondering why I should change stuff in the expr/builder, when it worked well with nix-build. shouldn't it be the same thing?
<NixOS_GitHub>
[nixpkgs] pSub pushed 2 new commits to master: https://git.io/vSY2H
<NixOS_GitHub>
nixpkgs/master e2ad762 romildo: lxqt-panel: fix for `explicit` (a C++11 keyword) being used as variable...
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to master: https://git.io/vSYaJ
<NixOS_GitHub>
nixpkgs/master b31f43d Robert Helgesson: cpulimit: 2.4 -> 2.5
<clever>
mojjo: i think the problem is that its pointing to a different <nixpkgs> so some defaults changed
<mojjo>
could it be, that nix-build is not 'pure', since the a tool that I'm using is outputting 'running for the first time', which it does not when using nix-build...
<unlmtd[m]>
I dont know why I get 'matches no derivation' with this
<mojjo>
clever: actually adding `mkdir $out` made the thing build! thanks for the hint..! The problem is now that I have no build output -> the folder that should be served on port 80 is empty.
<filyforasec>
ill just ask you LnL to look at the picture and say is this wrong or ok
<ertes>
sphalerite: thanks, that's it… what a weird name for that function though
<clever>
mojjo: you also need to copy or symlink html files into the $out directory
<ertes>
i actually saw that function, but thought: "recursiveUpdate? nah, that doesn't sound right" =)
<mojjo>
mojjo: sure, I'm actually doing this after the `mkdir $out` : `boot build target -d $out`, this should spit out a bunch of files (including index.html) to the folder. it did so when omitting the mkdir..
<mojjo>
clever: see, I'm already writing to myself...
<mojjo>
;-)
<clever>
mojjo: try switching it from builder to buildCommand and see if it does something different
teknico has left #nixos []
<clever>
mojjo: when buildCommand is used, the build will fail if any command returns non-zero, but you loose that feature if you use builder
takle has joined #nixos
<filyforasec>
anyway someone look on that ans answer later
<filyforasec>
(the link with screenshot)
<mojjo>
clever: do I have to start with `source $stdenv/setup` in there as well?
<clever>
mojjo: no, buildCommand handles the stdenv for you
k2s has joined #nixos
<mojjo>
what about a * inside a '' '' ?
civodul has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
<clever>
mojjo: buildCommand can be a path as well
<clever>
so just buildCommand = ./builder.sh;
<mojjo>
thank god..
<makefu>
mojjo: everything except for '' and $( does not pose a problem for '' '' strings.
<clever>
its also $stdenv/setup that handles buildCommand, so sourcing it the buildCommand will cause recursion
<clever>
mojjo: i think you mean ${
nschoe has quit [(Quit: Program. Terminated.)]
nschoe has joined #nixos
<mojjo>
mh, now I get this: /nix/store/985d9...vr-stdenv/setup: line 853: /nix/store/nnmxkdzacl0jjz0i33fn61hnjiip0zj6-builder.sh: Permission denied
<mojjo>
(I commented the `source $stdenv/setup` out)
dpren has joined #nixos
<NickHu>
How do you pass environment variables to stack exec?
<clever>
mojjo: it may need a #!/bin/sh
ambro718 has joined #nixos
Wizek_ has joined #nixos
<mojjo>
mh, now: 'failed with exit code 1', my builder.sh is http://lpaste.net/354020 (+ #!/bin/sh)
<copumpkin>
niksnut: I'm trying to understand the differences between the three X-Stop* variables. Are those written down somewhere or should I just poke at switch-to-configuration.pl?
jgertm has quit [(Ping timeout: 260 seconds)]
endformationage has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<mojjo>
even the same error when reducing builder.sh to: `mkdir $out; echo "test" > $out/index.html`
<clever>
mojjo: line 39, you cd $src, that source tree will be read-only
<clever>
mojjo: can you show more of the output from the nix build?
<mojjo>
$src and $out are absolute pahts, right?
<clever>
yeah
<clever>
you can also just echo things in there and see them in the build log
JagaJaga has quit [(Ping timeout: 246 seconds)]
__Sander__ has quit [(Quit: Konversation terminated!)]
MichaelRaskin has joined #nixos
<mojjo>
clever: I'm getting closer, forgot to chmod the builder.sh. The minimal echo > index.html works now...
shepheb has left #nixos []
<NixOS_GitHub>
[nixpkgs] sternenseemann opened pull request #24410: 2bwm: init at 0.2 (master...2bwm) https://git.io/vSYiu
k2s has quit [(Ping timeout: 256 seconds)]
<NickHu>
Whoops, wrong channel, my bad
zeus_ has joined #nixos
JagaJaga has joined #nixos
agjacome has joined #nixos
oida_ has quit [(Ping timeout: 268 seconds)]
ndowens08 has joined #nixos
<ndowens08>
Hey guys
thip has joined #nixos
WilliButz has quit [(Ping timeout: 260 seconds)]
<ndowens08>
Gonna be a longggg day. Probably 12 hr shift or so
<LnL>
filyforasec: what's the issue?
<pie_>
ok i ended up using a bridge network device and sharing a folder from the windows side and connecting to the share with linux
<pie_>
dunno if im actually supposed to use a bridge device, but it works
<ndowens08>
If it work it work :)
simendsjo has joined #nixos
aguardar has quit [(Quit: Connection closed for inactivity)]
periklis has quit [(Ping timeout: 264 seconds)]
<ndowens08>
Well time to go back again. Cya when I can
<mojjo>
clever: thanks for the help. I know now, what the problem is. I was missing some actual source files (`src = ../.;`). They should be included in the dir or even better point to github repo.
<clever>
mojjo: ah
arjen-jonathan has quit [(Ping timeout: 240 seconds)]
<pie_>
question, is there a nix setting for mounting ?smb? shares? the kind in dolphin (the file manager)
<pie_>
the thing i can make with the network folder wizard when i go under network in the sidebar of dolphin
pie__ has joined #nixos
<pie_>
huh...apparently i cant copy files there....
<pie_>
thats a problem...
<unlmtd[m]>
I cant get custom plugins to work witn nvim
<filyforasec>
instead of dev/sda1 i have dev/disc/b
<filyforasec>
but home is on dev/sda2
<filyforasec>
is this ok?
<LnL>
oh
<NixOS_GitHub>
[nixpkgs] vbgl pushed 2 new commits to master: https://git.io/vSYyn
<NixOS_GitHub>
nixpkgs/master a80eb80 Vincent Laporte: ocamlPackages.cstruct: 2.3.0 -> 2.3.2
<NixOS_GitHub>
nixpkgs/master d109f3d Vincent Laporte: ocamlPackages.io-page: 1.5.1 -> 1.6.1
zraexy has joined #nixos
thip has quit [(Ping timeout: 268 seconds)]
<filyforasec>
I am on verge of reinstalling from zero ;-)
carlosdagos has quit [(Ping timeout: 260 seconds)]
<georges-duperon>
Hi all, I'm trying to package geosolver (https://github.com/philetus/geosolver), and it needs Python's numpy, with LAPACK (LinearAlgebra extension).
thip has joined #nixos
nschoe has quit [(Quit: Program. Terminated.)]
stepcut has quit [(Remote host closed the connection)]
<georges-duperon>
I tried specifying both Python27Packages.numpy and Python27Packages.scipy as buildInputs, but neither seem to contain the LinearAlgebra python module. Does anybody know if (LinearAlgebra) this is packaged somewhere for NixOs?
<LnL>
filyforasec: that's fine, it's something like /var/disk/by-id/<id>
<filyforasec>
ok but why did it kind of merged with swap?
<georges-duperon>
(apparently, the debian/ubuntu package is python-numpy-ext, but I couldn't find a similarly named NixOs package).
<filyforasec>
that is ok too?
<LnL>
filyforasec: you have to expand the row or use cat /proc/mounts
mudri has joined #nixos
<filyforasec>
ihm but everything is ok right?
jensens has quit [(Ping timeout: 240 seconds)]
<filyforasec>
since it shows 2x times the same disc
<LnL>
the files in /dev/disk/by-id and /dev/disk-by/label are just symlinks to /dev/sda or whatever
<filyforasec>
ok
<filyforasec>
thank you very much I am glad all is fine
<filyforasec>
thx for help
<unlmtd[m]>
my custom vim plugin in vam.knownPlugins doesnt get picked up
<pikajude>
unlmtd[m]: think that's a known bug
<pikajude>
i just +1'd the fix earlier
<unlmtd[m]>
duh: check issues
<NixOS_GitHub>
[nixpkgs] jb55 opened pull request #24412: muchsync: fix on macOS (master...fix/muchsync-macos) https://git.io/vSY9h
<unlmtd[m]>
I guess this is a good opportunity to get github into my workflow
<unlmtd[m]>
thanks for the obvious pointer
<pikajude>
here's another one 0xff00238d
chakerbenhamed has quit [(Ping timeout: 264 seconds)]
obadz has quit [(Ping timeout: 246 seconds)]
obadz has joined #nixos
lucasOfBesaid has joined #nixos
<mojjo>
a rather conceptional question: Say you develop a project in any programming language. And for this project, you have git(hub) repository. Then you are usung a tool, that converts your project dependencies to a nix expression. (npm2nix, cabal2nix or whatever.). So this expression describes your project as package in the nix world. It points to your project dependencies as well as to your project source in the git re
<mojjo>
po. I'm asking, where is good place for this generated nix-file? Would it belong to the project, and should be included in it's git repo (maybe a subfolder 'nix')? Hence before every change/push you should make sure that you'll run your 2nix tool that this is always up to date. Or is it rather something, that should kept out of the repo (like your builds), and would better maybe live in an extra repository (like "my
<mojjo>
-nix-packages")?
<lucasOfBesaid>
I'm on a desktop with two monitors. If I turn off either monitor, then turn it back on, nothing is displayed on it. I can use xrandr to use the monitor again, but not if I can't see what I'm doing.
<lucasOfBesaid>
I have determined that the problem happens after udev has processed its rules. Could something be responding to udev and turning off my monitor?
jophish has quit [(Remote host closed the connection)]
stepcut has joined #nixos
<mojjo>
lucasOfBesaid: not 100% sure what you mean... are you looking for a way to have it just automatically 'acting right' when plugging/unplugging the extra screen?
eacameron has quit [(Read error: Connection reset by peer)]
eacamero_ has joined #nixos
afldcr has joined #nixos
stepcut has quit [(Remote host closed the connection)]
stepcut has joined #nixos
stepcut has quit [(Client Quit)]
calvertvl has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vSY5e
<NixOS_GitHub>
nixpkgs/master 0018cd5 Franz Pletz: libvirt packages: fix & clean up dependencies
vegai_ has joined #nixos
<vegai_>
hello
<vegai_>
anyone else experienced weird DNS lookups in 17.03?
<gchristensen>
what does it mean to experience weird DNS lookups?
gilligan_ has quit [(Ping timeout: 240 seconds)]
pie__ has quit [(Read error: Connection reset by peer)]
pie__ has joined #nixos
<vegai_>
roughly 1/3 of dns lookups not resolving properly
<ertes>
i need to use literal "${v}" syntax within a ''string''… is this possible without breaking the string apart?
<gchristensen>
ertes: ''my big string with a ''${v} inside ''
<vegai_>
and seems like it's quite random.
<ertes>
gchristensen: thanks
<vegai_>
I see that one change between 16.09 and 17.03 is the edns0 option in resolv.conf
<lucasOfBesaid>
mojjo: I don't care if it automatically acts right. I just want the screen to be usable. Now, I've experimented a bit. If I add a udev rule that calls a script with a long sleep in it, the screen is usable for as long as that sleep goes on. Then, when the script returns and udev finishes processing rules, the screen goes dark.
<vegai_>
dunno if that's it
<lucasOfBesaid>
So somehow bad things are happening when udev finishes processing rules.
<vegai_>
I'd gladly test this out if I had any idea how to edit the resolv.conf file :P
<vegai_>
oh, I guess it's this option networking.dnsExtensionMechanism
<NixOS_GitHub>
[nixpkgs] fpletz pushed 2 new commits to release-17.03: https://git.io/vSYds
<NixOS_GitHub>
nixpkgs/release-17.03 7082b7d Franz Pletz: libvirt packages: fix & clean up dependencies...
ocmylife has quit [(Quit: Connection closed for inactivity)]
simendsj` has joined #nixos
<vegai_>
yeah, kinda seems like that's the culprit
<vegai_>
I booted back to 17.03, removed the line manually from /etc/resolv.conf and don't seem to have any issues
carlosdagos has joined #nixos
gilligan_ has joined #nixos
<vegai_>
I'll rebuild 17.03 with dnsExtensionMechanism=false and see if the problem comes back
ocmylife has joined #nixos
JagaJaga has quit [(Ping timeout: 240 seconds)]
carlosda1 has joined #nixos
<vegai_>
I guess this calls for a bug report
<ocmylife>
@kriztw: Hey I'm back. I'm still tinker around with the configuration.nix. It seems that it wasn't a good idea, to disable all optional packages and the unneeded services, as the settings doesn't save, I couldn't install Nautilus as a system package using configuration.nix and some other small issues
carlosdagos has quit [(Ping timeout: 240 seconds)]
georges-duperon has quit [(Ping timeout: 240 seconds)]
<vegai_>
resolv.conf man page states that edns0 option works only if all nameservers support it
<vegai_>
it quite probably should default to false, unfortunately
<vegai_>
I'll write an issue about this once I get my desktop up and running properly
<vegai_>
cannot get to my passwords yet :)
ryanartecona has quit [(Quit: ryanartecona)]
<NickHu>
I guess if you use google dns or something you're fine
<vegai_>
indeed
katyucha is now known as Guest24297
Guest24751 is now known as katyucha
katyucha has quit [(Quit: leaving)]
<vegai_>
I'm using my router's
katyucha has joined #nixos
<vegai_>
like I think most people do when they just DHCP
arjen-jonathan has joined #nixos
bgamari has joined #nixos
mojjo has quit [(Remote host closed the connection)]
k2s has joined #nixos
<simendsj`>
I'm reading Lethalmans nix pill blog post series now, and even though a couple of things is out of date, this is a great resource for learning nix! I'm really enjoying it, and I've learned a lot more than from trying to read the manual from the start. It gets really interesting around post 12.
marsam has joined #nixos
johnsonav has quit [(Ping timeout: 246 seconds)]
chakerbenhamed has joined #nixos
roconnor has joined #nixos
marsam has quit [(Remote host closed the connection)]
k2s has quit [(Ping timeout: 264 seconds)]
<pie_>
anyone use syncthing?
johnsonav has joined #nixos
<eacamero_>
Is there an easy way to install version of PHP that has some extensions enabled (like xdebug)?
eacamero_ is now known as eacameron
<clever>
eacameron: i do see a phpPackages.xdebug, but no clear way yet on how to put it into the search scope
<eacameron>
clever: I wonder what can be done with php71.override
<clever>
then you can swap the entire phpPackages out, and it wont mix up the versions
<ToxicFrog>
I gave up on getting nested mounts working.
<clever>
eacameron: but as far as i know, the module paths have to be configured in php.ini, and i have to customize php.ini for other things to work, and now nix needs a way to merge those customizations
DutchWolfie has quit [(Quit: Konversation terminated!)]
<eacameron>
clever: Yah you'd probably add a little DSL for the most common PHP ini configs
<eacameron>
clever: Any more thoughts on the (im)mutableUsers issue when doing rollbakc?
<eacameron>
I'm sort of a fan of requiring UID
khoi has left #nixos ["WeeChat 1.6"]
roconnor has quit [(Quit: Konversation terminated!)]
AllanEspinosa has joined #nixos
mckeankylej has joined #nixos
arjen-jonathan has quit [(Quit: WeeChat 1.7)]
georges-duperon has joined #nixos
chakerbenhamed has quit [(Ping timeout: 260 seconds)]
ashkitten has joined #nixos
Tarinaky has joined #nixos
<mckeankylej>
Is there a way to change how an already defined service works like elasticsearch or grafana without editing the nixpkgs set? Like is there a way to copy the nix file defining a service then source that file instead of the one in the nixpkgs set?
afldcr has quit [(Remote host closed the connection)]
<Twey>
I'm trying to create a derivation for a project ( https://github.com/RedPRL/sml-redprl ) that requires I `git submodule update --init --recursive` before compiling. How should I do this? Is there something I can pass to fetchFromGitHub that does this before removing the .git directory?
civodul has joined #nixos
<clever>
eacameron: my own fix has just been to always set a uid, but modifying the code to have more state (a history of name+uid pairs) would also solve things without forcing users to pick a uid
<ToxicFrog>
pmade: neat! Glad you got it working. Any particular reason you went with autofs rather than systemd.automount?
<contrapumpkin>
Twey: fwiw, there already is a redprl expression
<eacameron>
clever: I'm not educated enough to pick between the two.
<Twey>
contrapumpkin: Thanks for saving me a chunk of time :þ
<clever>
eacameron: this line of bash will get ran on bootup, and after a nixos-rebuild switch (and when nixops does a deploy)
<pmade>
ToxicFrog: No real reason. I might convert it but I need to figure out if everything I have going on will work with systemd.
<clever>
eacameron: the entire users option tree goes into a json file that goes at ${spec}, and the perl script manages mutating /etc/passwd correctly
<contrapumpkin>
Twey: :)
<pmade>
ToxicFrog: The mounts (actually the call to ssh) happens as the actual user so their ssh config and agent get used.
<alibabzo>
Hi all, has anyone got any idea why this (https://p.teknik.io/GuOi4) is happening? Slightly weird problem with Stack.
<alibabzo>
(I'm running stack in --nix mode by default)
<eacameron>
alibabzo: I think stack will open a pure nix-shell.
<eacameron>
alibabzo: Which means stack won't be installed.
<eacameron>
clever: Yah it seems that the json file just needs to annotate UID and be kept in the store
<clever>
eacameron: the issue is that the store and nix expressions are all pure, and wont be aware of the previous allocations
<clever>
eacameron: so it has to be handled at runtime by the perl script
<eacameron>
clever: Can't you create a pure expression that depends on its ancestors purely?
dsferruzza has joined #nixos
<eacameron>
clever: a wrinkle in time
<clever>
eacameron: then every time you nixos-rebuild switch, with zero changes, the ancestor is different, and it will forever rebuild
<alibabzo>
eacameron: Thanks, yeah that would make sense. I'm trying to get ghc-mod to work properly with stack and this seems to be the reason it's falling over.
<eacameron>
clever: I guess I meant that the json file itself would depend on some ancestor.
<eacameron>
clever: So maybe the perl script would still have to wire that up
<eacameron>
clever: But otherwise it would just be normal store stuff
takle has joined #nixos
chakerbenhamed has joined #nixos
carlosda1 has quit [(Ping timeout: 260 seconds)]
mkoenig has joined #nixos
<octe>
can i use nixos stable in general but install one package from unstable?
Nadrieril has joined #nixos
<savanni>
octe: I was thinking just that. I periodically install packages from the github repo but am not sure how to work with packages if I added the unstable channel.
<MichaelRaskin>
Yes
<contrapumpkin>
just add another channel
<octe>
i added the unstable channel, but im not sure how to refer to it in /etc/nixos/configuration.nix
<contrapumpkin>
well, there are lots of ways to do it
<MichaelRaskin>
If you already install things from repo, you can use nixpkgs-channel which contains channel branches
<contrapumpkin>
if you called it unstable, just `unstable-pkgs = import <unstable> {};`
<octe>
anywhere?
<octe>
and then i can just add unstable.foopackage to systemPackages?
<clever>
unstable-pkgs.foopackage
gilligan_ has quit [(Ping timeout: 264 seconds)]
<octe>
error: The option `unstable-pkgs' defined in `/etc/nixos/configuration.nix' does not exist.
<savanni>
@contrapumpkin Thanks. That's super helpful with some of my environment.
<clever>
octe: it needs to be in a let block near the top
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vSOqv
<NixOS_GitHub>
nixpkgs/master af33b23 Matthew Maurer: frama-c: Aluminum -> Silicon...
<simendsj`>
How can I add additional paths to NIX_PATH? I thought `nix-channel --add url name` would do that, but I don't see the channel I added in the NIX_PATH variable.
piotr has quit [(Remote host closed the connection)]
<gchristensen>
(let foopath = builtins.tryEval(builtins.findFile builtins.nixPath "foo"); in if foopath.success then foopath.value else ./mydefault) does the business. thank you, MichaelRaskin, clever!
piotr has joined #nixos
<MichaelRaskin>
Fun fact: I have written tryEval when the discussion on how to make Hydra's package list automatic went into a dead end; I have a feeling that some people (including Eelco) want to get rid of that since then (good reasons related to consistency-related risks), but it needs to be replaced with some other solution…
<dash>
piotr: hmm, what command did you run to get this error?
<gchristensen>
same question ^
Mateon1 has quit [(Remote host closed the connection)]
<piotr>
nix-env -i clementine
<MichaelRaskin>
Which is option b) in the message
<gchristensen>
note that (a) and (b) are instructions for different commands
<piotr>
if i do a) i dont need to do b0 right?
<piotr>
b)*
<dash>
no
<gchristensen>
obviously not
<MichaelRaskin>
You do
<gchristensen>
since you're here with the problem
<piotr>
omg;-)
<dash>
gchristensen: not a lot about nix is obvious :)
<gchristensen>
how can we make that error more clear?
<MichaelRaskin>
I mean, if you run nix-env you need the fix for nix-env
<piotr>
so i have to fix a and b ?
<dash>
gchristensen: only show one of them, depending on context
<gchristensen>
I don't think that is possible? :/
<dash>
gchristensen: why not
<dash>
gchristensen: do you mean "it's annoyingly hard"?
<gchristensen>
no
<MichaelRaskin>
Well, nixos-rebuild could set a variable readable by getEnv
<gchristensen>
that error comes from within stdenv, so I think if we passed in context about what was building it, it would cause there to be different output hashes based on nix-env vs. nixos-rebuild
<gchristensen>
hmm true MichaelRaskin
<Nadrieril>
hmm, seems like the nix cache has some buggy paths...
<dash>
piotr: for nix-env, you edit ~/.nixpkgs/config.nix
<MichaelRaskin>
And the variable would not affect the builds that do not read it — i.e. the non-blocked ones
<piotr>
ok im trying to find that file... ;)
<Nadrieril>
python3-3.5.3 reports hash errors, and they stay after a nix-store --verify --repair --check-contents
<dash>
piotr: for nixos-rebuild, you edit /etc/nixos/configuration.nix
<gchristensen>
good thinking, MichaelRaskin, I forget we can access the env sometimes
<Nadrieril>
is there somewhere I can report this so the path can be rebuilt ?
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<piotr>
is that in user or root ?
<MichaelRaskin>
gchristensen: I can send you a paper I present at ELS in a week — I have become an expert on constructive use of sidechannels in the process…
carlosda1 has joined #nixos
<piotr>
in root there is no such thing like .nixpkgs
<dash>
piotr: for root, put it in /etc/nix
<piotr>
i have to make the file?
<dash>
piotr: yes.
<piotr>
ooooo
<piotr>
ok
<piotr>
one thing bugs me that cd ~ and /etc/nix are not same place
Mateon1 has joined #nixos
<gchristensen>
why would they be?
<dash>
piotr: yes, you can configure it for all users in /etc/nix or for one user in $HOME/.nixpkgs
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 3 new commits to master: https://git.io/vSOnu
<piotr>
do all i need to so is allowUnfree = true;
<piotr>
or some more blocks is needed
<Nadrieril>
meh
<MichaelRaskin>
Hm. I have a feeling that by now my set of kludges has a more advanced /etc/ switch handling than mainline NixOS, and is quickly moving to get more advanced /boot/ handling…
carlosda1 has quit [(Ping timeout: 268 seconds)]
<piotr>
i think {} is also a must
<piotr>
not working
<piotr>
I have made a file and inserted there { allowUnfree = true; } and it's not working
<gchristensen>
dash: I didn't know you could configure it globally in /etc/nix
<MichaelRaskin>
What is the path to file relative to ~ ?
chakerbenhamed has joined #nixos
<piotr>
so where is the mistake? the file has been created
<gchristensen>
what file exactly?
<piotr>
it is just forcing me on pure gnuness;)
cfricke has quit [(Ping timeout: 246 seconds)]
<piotr>
--> /etc/nix/config.nix
<piotr>
the command was passed
<gchristensen>
yeah... dash, you sure? I didn't think there was support for a global config like that.
<MichaelRaskin>
Hm
<MichaelRaskin>
config is read from (in order): $NIXPKGS_CONFIG, ~/.config/nixpkgs/config.nix, ~/.nixpkgs/config.nix
itsN1X has joined #nixos
<MichaelRaskin>
(The first where file exists)
<dash>
gchristensen: No, of course not, I just say stuff that makes people feel good
<dash>
gchristensen: Trust but verify
itsN1X has quit [(Remote host closed the connection)]
<gchristensen>
dash: I was certain you were wrong, but was trying to avoid saying that quite so flatly, to allow you to handle it gracefully
itsN1X has joined #nixos
wkennington has joined #nixos
itsN1X has quit [(Read error: Connection reset by peer)]
<dash>
-[21~ Vse [21~*
<dash>
"9
<dash>
C
<dash>
4;2~
ryanartecona has joined #nixos
<piotr>
ok so the situation is
chakerbenhamed has quit [(Ping timeout: 260 seconds)]
MichaelRaskin has quit [(Remote host closed the connection)]
<clever>
erictapen: you will need an activation script that changes that
pie_ has joined #nixos
<clever>
erictapen: system.activationScripts = ''mkdir and chmod it'';
<erictapen>
clever: yeah i thought so that it is not possible via user options.
<erictapen>
clever: thanks for the hint! didnt know about activation scripts
<LnL>
piotr: but don't worry about it running gc to much, by removing old profiles you loose some of the benefits of nix
<clever>
erictapen: activation scripts are ran any time a nixos build is activated (on boot, and after rebuild switch), and they are also responsible for creating users
<eacameron>
clever: It's a tool to build a "php" on your path that is customized.
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
dpren has quit [(Quit: Connection closed for inactivity)]
<clever>
eacameron: neat
<eacameron>
clever: Is that worth adding upstream?
<NixOS_GitHub>
[nixpkgs] sh01 opened pull request #24422: hwdata: Use content-addressed source file; previous source tarball changed contents (release-16.09...cp_hwdata_hashaddr) https://git.io/vSORr
<clever>
eacameron: does look usefull, but it will also need a php-fpm wrapper
ma9e has joined #nixos
<eacameron>
clever: why?
<ma9e>
hey, where's the gpg binary after i add the gnupg attribute?
<eacameron>
ma9e: gpg2
<clever>
eacameron: ah wait, php-fpm has to specify the php.ini differently
<ma9e>
eacameron, what do we do when an application is looking for gpg?
<eacameron>
clever: Yah. It wouldn't be hard to add honestly, but the php-fpm module already supports that.
<eacameron>
ma9e: Which application is looking?
<ma9e>
google's repo tool
AllanEspinosa has joined #nixos
<eacameron>
ma9e: Well some tools let you specify path to exe. For others you can put a symlink to it on your path.
<ma9e>
okay, symlink, gotcha
<ma9e>
thanks!
<eacameron>
ma9e: np
drasich has joined #nixos
acowley_away is now known as acowley
marsel has quit [(Ping timeout: 240 seconds)]
gilligan_ has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub>
[nixpkgs] jpierre03 opened pull request #24423: textadept: bombay update without version pinning (master...patch-2) https://git.io/vSOE3
<NixOS_GitHub>
[nixpkgs] dsferruzza opened pull request #24424: veracrypt: init at 1.19 (master...add-veracrypt) https://git.io/vSOE0
Itkovian has joined #nixos
marsam has joined #nixos
piotr has quit [(Quit: Konversation terminated!)]
rui1 has joined #nixos
mood_ has quit [(Quit: Gone.)]
<dash>
uh.
mood_ has joined #nixos
<dash>
gchristensen: _I'm_ OK. Sticking my wireless keyboard in my bag without doublechecking that it's turned off is not OK.
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ryantrinkle has quit [(Ping timeout: 240 seconds)]
<Ralith>
haha
gilligan_ has joined #nixos
ryantrinkle has joined #nixos
<ashkitten>
I'm trying to set the default TTY for lightdm but it's giving me an error when I rebuild nixos - The option `services.xserver.tty' is defined both null and not null, in...
<rui1>
I'm trying to make a systemd service that runs a script every X mins
<rui1>
so in systemd.services.my-stuff.script I put "echo lalala; ${./myscript.sh}""
<rui1>
actually, echo lalala >> somefile
<rui1>
It works, I can see somefile written at the interval desired
<rui1>
but the script isn't run
<rui1>
Manually running the script as my user, works
<ToxicFrog>
rui1: what do the logs say?
<rui1>
ToxicFrog: What logs?
<ToxicFrog>
This seems like it should be a straightforward systemd.services.foo.script + system.timers.foo setup
<ma9e>
rui1, sure you're using the right syntax? ExecStart doesn't evaluate arbitrary shell code
<ToxicFrog>
The logs from the service activations for my-stuff.service?
obadz has quit [(Ping timeout: 260 seconds)]
<ToxicFrog>
Try e.g. 'systemctl status my-stuff.service' to get the last few lines of log, or journalctl for full logs
<rui1>
ma9e: I have no clue. I did this by trying to copy and change some other guys' configuration file
hiratara has quit [(Ping timeout: 246 seconds)]
<rui1>
ToxicFrog: Loaded, active
<rui1>
Actually, it seems like it running the script now, with that syntax
<rui1>
It's just that the script isn't doint what it's supposed to
<rui1>
I added an echo inside the script and it does run.
<ma9e>
might be environmental differences?
<rui1>
But it doesn't create the ssh tunnel that it does create when I run it manually
<rui1>
ma9e: YEah, might be. Or a user thing?
<ma9e>
you can do pstree ssh as root and maybe that'll tell you something
<ocmylife>
If anyone else has problems with ibus/Keyboardlayout and gnome: This command fixed it for me: ibus list-engine && ibus engine xkb.xx.yy.zz
hiratara has joined #nixos
<ma9e>
hard to guess about something like this
<rui1>
OH
<rui1>
ma9e: it might be a user thing, because
<rui1>
the script does ssh commands
<ma9e>
which depends on your private key? :p
justbeingglad has joined #nixos
<rui1>
which use hostnames that are defined on /home/myuser/.ssh/config
<ma9e>
ahh
obadz has joined #nixos
<rui1>
Damn, talking out loud helps
<rui1>
ma9e: Any idea how to run those scripts as a certain user?
<ma9e>
rubber ducking :)
<ma9e>
i think systemd --user would help but not sure how that plays with nixos
<ashkitten>
is there any way to configure arbitrary files in nixos?
<ToxicFrog>
ma9e: it works just fine; you want systemd.user.services.foo
<rui1>
OH
<NixOS_GitHub>
[nixpkgs] lpenz opened pull request #24425: Set aspell's data-dir through ASPELL_CONF in a wrapper (master...aspellconf) https://git.io/vSO2m
<ToxicFrog>
I have a bunch of user-units for things like syncthing, IRC proxies, etc
<ToxicFrog>
And some nixos configuration options create user-units automatically, like syncthing depending on which settings you enable
eacamero_ has joined #nixos
<gchristensen>
dash: hehe :)
<ashkitten>
I can't connect to my nixos machine via ssh
<rui1>
ToxicFrog: Got an example? How do you tell it which user?
eacameron has quit [(Ping timeout: 260 seconds)]
eacamero_ has quit [(Ping timeout: 240 seconds)]
justbeingglad has left #nixos []
dsferruzza has quit [(Quit: Leaving)]
<Yaniel>
I could use the syncthing user unit too ^^
<Yaniel>
and probably adapt it for mpd
nevermind has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<NixOS_GitHub>
nixpkgs/release-17.03 7e4d99d Joachim Fasting: nixos/dnscrypt-proxy: get resolver list from github...
<NixOS_GitHub>
nixpkgs/release-17.03 4030549 Joachim Fasting: nixos/dnscrypt-proxy: log resolver list verification failure...
<NixOS_GitHub>
nixpkgs/release-17.03 de5d4dc Joachim Fasting: rl-notes 17.03: add note about pre-NSS dnscrypt-proxy
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vSOar
<NixOS_GitHub>
nixpkgs/master 8427222 Joachim Fasting: rl-notes 17.03: add note about pre-NSS dnscrypt-proxy...
<ma9e>
ashkitten, did you open port 22 and enable the daemon/
<ma9e>
*?
mood is now known as mood__
mood_ is now known as mood
<ashkitten>
ma9e: yep
<disasm>
I could use some help with overriding some attributes in a package from an import in configuration.nix -- http://nixpaste.lbr.uno/N7MdlDdZ?nix
JagaJaga has quit [(Ping timeout: 246 seconds)]
<disasm>
I'm sure there's something I'm doing syntax wise... error is error: cannot coerce a function to a string, at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/strings.nix:442:44
<ashkitten>
hey i have yet another question - i want to make my machine completely reproducible, therefore i don't want any stray config files i'm not tracking. how can i create an arbitrary file with nixos configs?
mojjo has quit [(Remote host closed the connection)]
<ma9e>
ashkitten, that's kind of the "holy grail" of what they're trying to do here so it's not a simple answer
<ashkitten>
would it be good practice to just put it in system.activationScripts?
<ToxicFrog>
rui1: you don't, AFAICT; you can either enable it for all users by default, or leave it disabled and have individual users 'systemctl --user enable' it.
<ToxicFrog>
rui1: for oneshot units I have no idea. For persistant units (which are the only user units I have) it starts up when the user logs in (or, if lingering is enabled, at system boot)
<rui1>
Ah, ok, then I guess that's what I want. I need the script to be run as that particular user
<ToxicFrog>
I suspect that a oneshot unit would run once at boot (linger) or login (no linger) for each enabled user.
<rui1>
because the script refers to hosts defined in ~/.ssh/config
<Yaniel>
I have found the running user services at boot very unreliable :(
<rui1>
I could change that though, but it feels like a patch
<ToxicFrog>
Also, if you want something that runs periodically, you want a oneshot service that *isn't* enabled + a timer
<Yaniel>
at some point it worked, at some point it didn't
<ToxicFrog>
But I'm not sure how user timers interact with lingering or lack thereof
<Ralith>
I've tried a few times to get emacs-daemon running at boot or login but never quite managed
carlosda1 has joined #nixos
<Ralith>
I just launch things with ~/.xprofile
byteflam1 has quit [(Ping timeout: 240 seconds)]
<ma9e>
rui1, sure you don't want to use cron?
<Ralith>
it's not quite semantically correct but it works
<ToxicFrog>
rui1: I note that if you're writing a system unit, you can have it run as a specific user or in a specific pwd
<ToxicFrog>
I have a system unit around here somewhere that runs as me because it needs access to my ssh keys
byteflame has quit [(Ping timeout: 264 seconds)]
<rui1>
ma9e: I don't mind using cron if this fails. It's possible in nixos, right?
<ma9e>
i think, look at "cron" in the nixos options
<ToxicFrog>
Like, generally, "this system service needs to run as a specific user" is done by setting that in the unit configuration
<rui1>
ToxicFrog: Great!! Would you mind sharing that? It's exactly what I need
<ToxicFrog>
User units are "we might need a bunch of different users who all have their own instances of this and can turn it on and off without root getting involved"
ryanartecona has quit [(Quit: ryanartecona)]
<ma9e>
actually thinking about it you probably want to do it this way
<rui1>
ToxicFrog: Ah, I see
<ToxicFrog>
rui1: hang on a moment, I have one example of a system-service-running-as-user and a different example of stuff using timers :)_
<ToxicFrog>
First two blocks are a timer + script to run a thing every hour; last block is a persistent service that runs as a system service, but under my username
obadz has joined #nixos
<rui1>
ToxicFrog: WONDERFUL
<NixOS_GitHub>
[nixpkgs] joachifm pushed 5 new commits to release-16.09: https://git.io/vSOrV
<NixOS_GitHub>
nixpkgs/release-16.09 5f86033 Joachim Fasting: grsecurity: 4.9.14-201703121245 -> 4.9.15-201703150049...
<NixOS_GitHub>
nixpkgs/release-16.09 9572f74 Joachim Fasting: grsecurity: 4.9.15-201703150049 -> 4.9.16-201703180820...
<NixOS_GitHub>
nixpkgs/release-16.09 68ebfef Joachim Fasting: grsecurity: 4.9.16-201703180820 -> 4.9.17-201703221829...
<eqyiel[m]>
Ralith: who knows, I've learned to not take these things at face value though
<eqyiel[m]>
there might be something spooky going on like that monit executable demanding that the path exists
<Ralith>
weird to bother passing the path then
<eqyiel[m]>
yeah
<Ralith>
but yeah, who knows
<Ralith>
I'm not about to run around patching stuff I don't use
itsN1X has joined #nixos
itsN1X has quit [(Read error: Connection refused)]
<NixOS_GitHub>
[nixpkgs] joachifm opened pull request #24427: go builder: use removeReferencesTo (master...use-remove-references-to) https://git.io/vSOKv
<gchristensen>
jimmy_DM: lines 43-45 should help :)
<gchristensen>
free blog post idea: using NixOS to create a secure VPN setup which also tunnels DNS queries, and tie it to the ISP privacy bill that just passed the USA's house.
<jimmy_DM>
gchristensen: I am with you on the first part
<jimmy_DM>
really handy
<gchristensen>
oh?
<jimmy_DM>
but what would be the VPN? OpenVPN or Cissco?
bfrog has joined #nixos
<gchristensen>
openvpn probably, yeah
<jimmy_DM>
gchristensen: I heard a lot about nix and I had to try it. but I have no idea/no feeling for the NIX
<jimmy_DM>
gchristensen: and on the VPN note. where would you post?
<gchristensen>
I dunno :)
<gchristensen>
the idea wasn't specifically to you (or anyone) just a free blog post idea
<jimmy_DM>
gchristensen: I know that wasn't for me but I loved it.
AllanEspinosa has quit [(Ping timeout: 264 seconds)]
<jimmy_DM>
I always wanted to set my own VPN but I didn't know how (till you post it of course! )
<jimmy_DM>
0curl: (7) Failed to connect to cache.nixos.org port 443: Connection timed out
eacameron has joined #nixos
thc202 has quit [(Ping timeout: 240 seconds)]
AllanEspinosa has joined #nixos
bfrog has quit [(Quit: WeeChat 1.7)]
chakerbenhamed has quit [(Ping timeout: 268 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
sigmundv_ has joined #nixos
rui1 has quit [(Quit: WeeChat 1.4)]
ndowens08 has joined #nixos
<ndowens08>
Hey, I had someone say I should rebase my PRs that are mass-rebuild into stage; How do I do that to an open PR; thought it would only change if I pushed to same branch?
<pmade>
ndowens08: Do a `git pull --rebase master`. It will rewrite your changes on top of the changes in master. Then you will have to push with the --force flag.
<ndowens08>
right now it is in pkgconfig branch
ryantrinkle has quit [(Ping timeout: 256 seconds)]
<ndowens08>
well looks like globin already did it; So I don't understand why you say rebase master?
<ndowens08>
Sorry, not the greatest at git and also just got done with a 12 hr shift so yea lol
eacameron has joined #nixos
<neeasade>
hm -- tyring to install steam via configuration.nix, but rebuild says I need to enable unfree even though I have
<neeasade>
it's a dry-run if that affects it
pie_ has quit [(Ping timeout: 240 seconds)]
<ndowens08>
pmade: would it be something like: for example pkgconfig was in my pkgconfig branch; Would I checkout pkgconfig, then git pull --rebase staging?
ebzzry has joined #nixos
<jimmy_DM>
installation finished.
<eqyiel[m]>
neeasade: you probably need to enable unfree and switch to that system before you can even build something unfree in a dry-run
rejuvyesh has quit [(Quit: WeeChat 1.7)]
<eqyiel[m]>
(in case you haven't done that yet)
<jimmy_DM>
Now I want to install kde4. is it possible or kde5 replaced it?
<pmade>
ndowens08: Typically if someone asks you to rebase they want you to rebase against the master branch because time has passed since you created your branch and there are now merge conflicts.
<pmade>
ndowens08: What branch did you create your pkgconfig branch off of? I assume master.
<ndowens08>
IDK, globin was the one that suggested me to rebase it for staging; I think I did branch off master
romildo has joined #nixos
<pmade>
Give me a link to the PR where you were asked to rebase.
<romildo>
Is the NixOS manual for the unstable version available for online reading
<romildo>
?
pie_ has joined #nixos
pie__ has joined #nixos
<pmade>
ndowens08: It looks like you want the PR to be merged into the NixOS:staging branch. He is asking you to rebash on top of that branch to remove the conflicts and mass rebuild problem.
<pmade>
It doesn't look like globlin rebased for you.
<ndowens08>
it was going into nixos:master
<ndowens08>
globin changed the base branch to NixOS:staging from NixOS:master 12 hours ago
<ndowens08>
below where i tagged it as mass-rebuild
<pmade>
Okay.
<disasm>
so... I was able to get prezto installed from my fork (yay) but I have another issues. A number of utilities in /nix/var/nix/profiles/ are pointing at busybox (ls and stat are two examples) so my PATH uses the busybox version of ls instead of coreutils version in /run/current-system/sw/bin. How do I update the default profile?
<pmade>
So then you need to rebase.
<ndowens08>
sorry, i have never had to do that so i have no idea lol, on changing a PR from master to w/e :)
<pmade>
In your git repo, you need to have a remote set up to point back and the upstream repo. Usually I do this like so: git remote add upstream https://github.com/NixOS/nixpkgs.git
gilligan_ has quit [(Ping timeout: 264 seconds)]
markus1209 has joined #nixos
<ndowens08>
yep have that as upstream
<pmade>
Next step, fetch all objects from all remotes: git fetch --all
<ndowens08>
ah was thinking it might be something like that possibly THanks much pmade wanted to make sure
<pmade>
No problem. I keep meaning to write a short description of this somewhere to send people.
<ndowens08>
I'd like to have it, whenever you do,no pressure; I have been practicing git more; was doing it on github until somehow it messed with a PR when I wasnt even using the dir I use for offical work here
<pmade>
ndowens08: If you use Emacs you should take a look at Magit.
markus1189 has quit [(Ping timeout: 240 seconds)]
markus1199 has quit [(Ping timeout: 260 seconds)]
<ndowens08>
ah i hve identation issues with emacs, so I use vim
estewei has quit [(Quit: Quit)]
<jimmy_DM>
guys
<jimmy_DM>
Could I set application related configs in a file and import it at a begining of configuration.nix
<gchristensen>
jimmy_DM: kde4 is long, long dead unfortunately
<jimmy_DM>
the parts like environment.systemPackages = with pkgs;
<jimmy_DM>
or services = {
<ndowens08>
hmm says: upstream/staging does not appear to be a git repository
<NixOS_GitHub>
[nixpkgs] acowley opened pull request #24428: libdc1394: patch bugs on darwin (master...libdc1394-darwin) https://git.io/vSOX1
<ndowens08>
ah :)
<jimmy_DM>
?
<disasm>
jimmy_DM: now that I'm running nixos on 2 laptops and a desktop I'm using this structure: https://github.com/nickjanus/nixos-config. I define base stuff applicable to everything in configuration.nix and then machine specific in the machine dir and hardware dir.
<gchristensen>
jimmy_DM: ah ... NixOS 16.09 still has KDE4, but 17.03 is coming out very sooon and doese not
shawndomniti has joined #nixos
<gchristensen>
jimmy_DM: your configuration.nix should have a commented out example of kde4
<jimmy_DM>
disasm: gchristensen so if I booted from a usb of latestnightly. I still can get kde4 installed on my production system. (i.e target system)
<ndowens08>
I suggested you to do a bit of changing on that one; it is cosmetic :)
<shawndomniti>
oh hey ndowens08, is that a usual style thing when working with the nix language?
<gchristensen>
jimmy_DM: where do you get what you call latestnightly?
<ndowens08>
I try to be consistant in the way I update pkgs, that is how I do it, fewer words/lines is better to me :)
<shawndomniti>
I generally don't like to import things (import into the current namespace that is), but if that's the style then lemme make the change real quick
georges-duperon has quit [(Ping timeout: 240 seconds)]
<gchristensen>
shawndomniti: nice to see a firsts time contributor!
<ndowens08>
It requres that many deps shawndomniti ?
<shawndomniti>
gchristensen: thanks!
<gchristensen>
ndowens08: do you see how there are two commits on that PR?
<ndowens08>
hmm let me go back and look
<shawndomniti>
ndowens08: yeah, it seems so, it's an electron app similar to slack
gilligan_ has joined #nixos
<ndowens08>
ah well i never messed with pkging those, so maybe someone else familar with it may review it too :)
<shawndomniti>
I mainly copied the slack build file and changed some things, I tried removing things from the deps one by one but all of them were needed
<ndowens08>
ah
carlosda1 has quit [(Ping timeout: 260 seconds)]
<shawndomniti>
yeah if someone else has any tips I'm all ears
<gchristensen>
shawndomniti: it looks pretty good. typically we ask that there only be one commit, and that the merge commit be removed
<ndowens08>
I always look at things that can be done to change cosmetics a bit
<shawndomniti>
gchristensen: how can I remove that merge commit?
<ndowens08>
yea all you got to do is git log, and see how many commits it spans
<pie__>
so rpy2 is a python interface to R, and anyone know if it can be built with nixos currently?
<ndowens08>
shawndomniti: i will explain
<pie__>
it complains about not finding R headers...
<gchristensen>
very nice work on the commit message being perfect@
<ndowens08>
ok since you are about to make another commit msg, that will make three commits; after you make the third commit do:
<ndowens08>
git rebase -i HEAD~3, and after the "pick NAME: init at", the ones below you change pick to s
<shawndomniti>
ah, i always forget about rebase
<ndowens08>
yup :)
<shawndomniti>
ndowens08: I tried adding that `with stdenv.lib;` line two ways, on the line above the let and the one after, either way it nix doesn't like it.
<shawndomniti>
ohh
<ndowens08>
hmm it should work between the { functions}: and let
<ndowens08>
atleast i think, i always do away with let lines, but that is me
marsam has quit [(Remote host closed the connection)]
<shawndomniti>
If I add that line I need to remove references to `stdenv.lib` and not just the `stdenv.` part
<ndowens08>
yup
<shawndomniti>
yup, that was a brain fart on my part
JagaJaga has quit [(Ping timeout: 240 seconds)]
<ndowens08>
now if it wasnt through out the nix file and only in meta, i would suggest meta = with stdenv.lib; { but since it is, i always suggest at top
<jimmy_DM>
What is the first line of .nix configuration files. like { lib, config, pkgs, baseServices, basePackages}:
<jimmy_DM>
and I see it is different accross the board
<ashkitten>
clever: but I don't want to modify the actual nixpkg
<shawndomniti>
ndowens08: no, it's other packages, I believe the merge commit is getting expanded in the rebase view to show all of the commits it encompassed
<clever>
jimmy_DM: that is a function, accepting certain arguments, and returning an attribute set
<clever>
ashkitten: you can put this into configuration.nix as well
<clever>
ashkitten: exactly the same syntax
<ndowens08>
shawndomniti: ah crap, should have did a git pull --rebase before doing that :\
<jimmy_DM>
clever: where could i read more (in details) about this.
<ashkitten>
oh, so systemd.services.logmein-hamachi.prestart = script thingy?
<jimmy_DM>
and nix files in general
<ndowens08>
ok, this may work: git log, find commit before that pkg/merge
<shawndomniti>
ndowens08: well I havent done the rebase yet, should I go ahead and pull?
<disasm>
My default profile bin dir points directly at busybox in the nix store. is this the default, or is there something stupid I did along the way somewhere: http://nixpaste.lbr.uno/07Rtq8VK?nix
<pie__>
ok so i need to add --enable-R-shlib to the configure arguments for R...any pointers?
scott has quit [(Quit: .)]
<ndowens08>
gchristensen: https://github.com/NixOS/nixpkgs/pull/24305 tell me how to fix this, i did git pull --rebase upstream staging since it is mass-rebuild and now it has 64 commits and 75 file changes :\
<NixOS_GitHub>
[nixpkgs] grahamc pushed 1 new commit to master: https://git.io/vSODL
<NixOS_GitHub>
nixpkgs/master c87c0f2 Shawn Dellysse: messenger-for-desktop: init at 2.0.6
<gchristensen>
shawndomniti: good work! :D
<ndowens08>
had to find reflog before rebase and force push it
<gchristensen>
ndowens08: awesome :D
<shawndomniti>
w00t
<ndowens08>
so how do i rebase it for staging lol, i did pull --rebase and yea it messed it up lol, instead of chaning master to staging it just added so many commits
erictapen has quit [(Ping timeout: 264 seconds)]
<shawndomniti>
thanks ndowens08 gchristensen for all the help
<gchristensen>
you're welcome!
<ndowens08>
shawndomniti: I try :)
AllanEspinosa has quit [(Ping timeout: 240 seconds)]
<gchristensen>
ndowens08: you generally can't rebase to staging, it is too messy
<gchristensen>
ndowens08: you want cherry-pick
<ndowens08>
ah, globin suggested it to me in pkgconfig
<ndowens08>
ah :) i was researching that last night
<gchristensen>
ah, sometimes it works, but sometimes it doesn't
<ndowens08>
So how do I change I want to merge to master to staging?
<disasm>
ndowens08: git rebase staging
roygbiv has joined #nixos
<gchristensen>
ndowens08: you were already looking it up, I believe in your ability to figure it out :D
<disasm>
ndowens08: if you need to move some commits around or squash some in the rebase do git rebase -i staging
<gchristensen>
ndowens08: try doing it via cherry pick
<disasm>
ah, yeah, cherry-pick is awesome :)
<pie__>
is it possible to install something from the unstable channel from configuration.nix while its running on the stable channel_