kampfschlaefer has quit [(Ping timeout: 256 seconds)]
<NixOS_GitHub>
[nixpkgs] peterhoeg opened pull request #22329: minikube: pull kubernetes into PATH (master...f/minikube) https://git.io/vDqaf
kampfschlaefer has joined #nixos
rmeis has quit [(Ping timeout: 264 seconds)]
mguentner has joined #nixos
systemfault has quit [(Quit: Bye!)]
<NixOS_GitHub>
[nixpkgs] roconnor-blockstream opened pull request #22330: compcert: adding clightgen to the build (master...master) https://git.io/vDqaE
sellout- has joined #nixos
digitus has quit [(Quit: digitus)]
panostimos has quit [(Ping timeout: 256 seconds)]
MoreTea has quit [(Ping timeout: 264 seconds)]
erasmas has quit [(Quit: leaving)]
markus1189 has joined #nixos
Wizek_ has quit [(Ping timeout: 252 seconds)]
Wizek has quit [(Ping timeout: 240 seconds)]
wkennington has quit [(Ping timeout: 240 seconds)]
matthewbauer has joined #nixos
markus1199 has quit [(Ping timeout: 245 seconds)]
ebzzry has quit [(Ping timeout: 240 seconds)]
sigmundv has joined #nixos
ebzzry has joined #nixos
sellout- has quit [(Quit: Leaving.)]
sellout- has joined #nixos
sellout- has quit [(Ping timeout: 276 seconds)]
wkennington has joined #nixos
mkoenig has quit [(Read error: Connection reset by peer)]
viric_ has joined #nixos
viric has quit [(Ping timeout: 240 seconds)]
mkoenig has joined #nixos
djvdorp has joined #nixos
sigmundv has quit [(Ping timeout: 252 seconds)]
fnljk has joined #nixos
mudri has quit [(Quit: WeeChat 1.6)]
ilja_kuklic has quit [(Ping timeout: 248 seconds)]
AllanEspinosa has quit [(Ping timeout: 258 seconds)]
<NixOS_GitHub>
[nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vDq66
<adfuado>
i installed them with nix-env -i numix-icon-theme
<adfuado>
when i go to appearance settings, the Icons tab shows the Numix and Numix Light icon themes with error warnings beside them. hovering the mouse over the warning shows this text:
<adfuado>
warning this icon theme has no cache file. you can create this by running
<adfuado>
gtk-update-icon-cache /home/a/.nix-profile/share/icons/Numix/ in a terminal
<adfuado>
in a terminal emulator*
<adfuado>
anyway, when i run that, i'm told Failed to open file /home/a/.nix-profile/share/icons/Numix/.icon-theme.cache : Read-only file system
<adfuado>
maybe my real question is how to do i execute gtk-update-icon-cache or anything which tries to modify a file within .nix-profile
<adfuado>
is there a section of the guide i might have skipped that i need to read?
hotfuzz_ has quit [(Ping timeout: 240 seconds)]
Rotaerk has joined #nixos
mkoenig has quit [(Ping timeout: 256 seconds)]
hotfuzz_ has joined #nixos
mkoenig has joined #nixos
systemfault has joined #nixos
wkennington has quit [(Read error: Connection reset by peer)]
mkoenig has quit [(Ping timeout: 240 seconds)]
mkoenig has joined #nixos
digitalmentat has quit [(Ping timeout: 255 seconds)]
<Ralith>
you can't
AshtonK has joined #nixos
<AshtonK>
Hi! I'm having an issue getting Nixos to boot on a VM.
<AshtonK>
All I'm getting is "GRUB _" in white text on a black screen.
<AshtonK>
No response to keyboard inputs, etc.
<AshtonK>
I've tried rebooting a few times to re-mount and fiddle about with config and re-run nixos-install to no avail.
<AshtonK>
This was using nixos-minimal-16.09.1600.140ff04-x86_64-linux
AllanEspinosa has joined #nixos
athan has quit [(Remote host closed the connection)]
hotfuzz has joined #nixos
acarrico has joined #nixos
<AshtonK>
I also used a GPT table with only 2 partitions (root and swap)
<AshtonK>
The docs were a bit thin on recommended partition layout, and I've used graphical installers for far too long
<AshtonK>
Anything to do other than set boot.loader.systemd-boot.enable
<AshtonK>
Ok, I'll give that a go.
<avn>
you need big enought EFI partition, because this way copy kernel/initrd each time when you rebuild system
<Ralith>
any latex users around? I can't get anything that depends on epstopdf to work :/
derjohn_mob has quit [(Ping timeout: 245 seconds)]
<AshtonK>
How big of an EFI partition?
<AshtonK>
I'm running a 20GB VM.
<gchristensen>
my /boot is 200M
<avn>
My /boot/*/efi is 128mb, but I keep only grub there
<AshtonK>
The more I look at it, the more uncertain I am that GPT = EFI.
<AshtonK>
Mostly because systemd-boot is very angry with me.
<gchristensen>
"GPT stands for GUID Partition Table. It’s a new standard that’s gradually replacing MBR. It’s associated with UEFI — UEFI replaces the clunky old BIOS with something more modern"
<gchristensen>
what is systemd-boot saying?
proteusguy has quit [(Remote host closed the connection)]
<AshtonK>
File system "/boot" is not a FAT EFI System Partition file system.
<AshtonK>
Does this require a separate /boot?
<gchristensen>
ah, yes! sorry -- best to have a separate /boot partition formatted as vfat
<gchristensen>
I should have been more clear
<AshtonK>
Okay, I'll need to reformat then.
<AshtonK>
Good thing it's an empty VM!
mizu_no_oto has joined #nixos
<gchristensen>
;)
georges-duperon has joined #nixos
<unlmtd[m]>
good thing its nixos
<unlmtd[m]>
just git clone config.nix && nixos-install
<unlmtd[m]>
which is why I gave up on void linux last night and reached for nixos again
<tilpner>
You may have to set PYTHONPATH to find the package, perhaps via a wrapper
<muyfine>
trying to figure out how to bring in local python packages similarly
wkennington has quit [(Quit: Leaving)]
mitchty has quit [(Remote host closed the connection)]
mitchty has joined #nixos
data8 has quit [(Ping timeout: 256 seconds)]
AllanEspinosa has quit [(Ping timeout: 276 seconds)]
tnks has left #nixos []
matthewbauer has quit [(Ping timeout: 240 seconds)]
mguentner2 is now known as mguentner
erictapen has quit [(Ping timeout: 276 seconds)]
<roconnor>
When mention-bot mentions potential reviewers on a PR, are those people already pinged, or should I ping them?
<MP2E>
they're pinged in the sense that the email sent to them is marked as 'important'
<MP2E>
but they might have missed it
<MP2E>
i speak from experience :D
<roconnor>
Thats okay. I'll wait a bit longer. Thanks.
glines has quit [(Ping timeout: 264 seconds)]
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
hamishmack has quit [(Read error: Connection reset by peer)]
hamishmack has joined #nixos
athan has joined #nixos
glines has joined #nixos
eacameron has quit [(Ping timeout: 252 seconds)]
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 256 seconds)]
eacameron has joined #nixos
systemfault has quit [(Quit: Bye!)]
eacameron has quit [(Ping timeout: 240 seconds)]
matthewbauer has joined #nixos
endformationage has quit [(Quit: WeeChat 1.6)]
glines has quit [(Ping timeout: 252 seconds)]
matthewbauer has quit [(Ping timeout: 255 seconds)]
kampfschlaefer has quit [(Ping timeout: 240 seconds)]
glines has joined #nixos
pi3r has joined #nixos
fabian_a has joined #nixos
xeviox has joined #nixos
Mercuria1Alchemi has joined #nixos
Itkovian has joined #nixos
ebzzry has quit [(Ping timeout: 240 seconds)]
MP2E has quit [(Quit: brb)]
ertes has joined #nixos
jgertm has joined #nixos
fritschy has joined #nixos
matthewbauer has joined #nixos
glines has quit [(Ping timeout: 256 seconds)]
pi3r has quit [(Ping timeout: 252 seconds)]
<pikajude>
somewhere in the last 10 generations of my system i managed to add a change to my config that makes my computer accept neither mouse nor keyboard input on boot
<pikajude>
any idea where i could start debugging this
<pikajude>
the nature of the issue makes it hard to debug
matthewbauer has quit [(Ping timeout: 240 seconds)]
MP2E has joined #nixos
<pikajude>
ugh
johnsonav has quit [(Ping timeout: 255 seconds)]
pi3r has joined #nixos
reinzelmann has joined #nixos
twopoint718 has quit [(Remote host closed the connection)]
Itkovian has quit [(Read error: Connection reset by peer)]
pi3r2 has quit [(Read error: Connection reset by peer)]
athan has quit [(Read error: Connection reset by peer)]
muyfine has quit [(Ping timeout: 256 seconds)]
ckauhaus has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vDqjK
<NixOS_GitHub>
nixpkgs/master 8ba82f2 Russell O'Connor: compcert: adding clightgen to the build...
Wizek has joined #nixos
Wizek_ has joined #nixos
<philipp[m]>
pikajude: I'm almost certain you removed USB HID support from your initrd. Try to add it again. Also: Try to add a ps2 keyboard if you computer has that kind of interface.
<NixOS_GitHub>
[nixpkgs] vbgl closed pull request #22306: luaPackages.luazlib: fix on darwin (master...luazlib-darwin) https://git.io/vDIpT
Itkovian has joined #nixos
pi3r has joined #nixos
nschoe has joined #nixos
matthewbauer has joined #nixos
matthewbauer has quit [(Ping timeout: 255 seconds)]
ckauhaus has quit [(Quit: Leaving.)]
<pikajude>
philipp[m]: i don't have a ps2 keyboard
<pikajude>
philipp[m]: also, how would i have removed usb hid support from my initrd? or more importantly, how could I add it back
<philipp[m]>
Ah, I thought your keyboard just didn't work while booting
<pikajude>
ok, i will revert that change
ckauhaus has joined #nixos
proteusguy has joined #nixos
civodul has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vDmJF
<NixOS_GitHub>
nixpkgs/master 6a04086 Vincent Laporte: ocamlPackages.menhir: 20161115 -> 20170101
teknico has joined #nixos
jgertm has quit [(Ping timeout: 240 seconds)]
obadz has quit [(Ping timeout: 252 seconds)]
<teh[m]>
gchristensen: just saw your email. 1/ it's worth asking amazon about a re-fund blaming a rouge script - they are very generous if this is your first time
obadz has joined #nixos
<teh[m]>
2/ if that doesn't work I'm happy to pay part of the cost
ilja_kuklic has joined #nixos
MP2E has quit [(Quit: sleep)]
panostimos has joined #nixos
michas has joined #nixos
<musicmatze>
The github PRs keep me thinking whether I should ask for commit access... simply to close PRs which are older than 1 year... -.-'
matthewbauer has joined #nixos
jensens has joined #nixos
goibhniu has joined #nixos
matthewbauer has quit [(Ping timeout: 240 seconds)]
thc202 has joined #nixos
hotfuzz has quit [(Read error: Connection reset by peer)]
derjohn_mob has joined #nixos
<peti>
Fellow Nix'ers, I'm wondering whether NixOS's container support will allow me to virtualize other operating systems, too, like Ubuntu or openSUSE Tumbleweed? Or is that facility designed to run NixOS only?
<maurer>
peti: I don't think nixos-container will help with that - it basically just creates some namespaces around a system built from a nix expression
<maurer>
peti: is there something you were hoping from above and beyond e.g. docker or lxc?
<maurer>
(docker at least has good support in nixos, haven't tested lxc)
hotfuzz has joined #nixos
ThatDocsLady has joined #nixos
<peti>
maurer: Hmm, I have no clue about docker at all. Can I control docker in NixOS from configuration.nix?
<maurer>
peti: Individual containers, no, but you can enable it via virtualisation.docker.enable = true
rmeis has joined #nixos
<peti>
maurer: Okay, I see. Thanks a lot for the pointer. I suppose I'll just have to bite the bullet and, like, read documentation. :-)
<maurer>
peti: If I wanted to do that, I'd set virtualisation.docker.enable = true;, then write a custom service module for it, similar to the one at https://github.com/maurer/weechat-server but invoking docker functions
<maurer>
peti: I don't know that this is the best way, but it'd probably get the job done
obadz has quit [(Ping timeout: 258 seconds)]
<peti>
maurer: OK. I'll have a look. I need to understand first what it is that I want to do, really. I need those VMs mostly for testing/development purposes, i.e. to reproduce bugs customers report on their setup. So I'm not quite sure yet to what extend automation is necessary. I'll experiment with docker to figure out what it can do
obadz has joined #nixos
eacameron has joined #nixos
jensens has quit [(Ping timeout: 245 seconds)]
georges-duperon has quit [(Ping timeout: 252 seconds)]
eacameron has quit [(Ping timeout: 256 seconds)]
ixxie has joined #nixos
sweber has joined #nixos
xeviox has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
xeviox has joined #nixos
Turion has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
rmeis has quit [(Ping timeout: 255 seconds)]
rmeis has joined #nixos
defel has joined #nixos
Tarinaky has quit [(Read error: Connection reset by peer)]
<defel>
Hi, I installed nixos the first time yesterday night .. it worked and I am really happy :)
<defel>
Now I tried to configure the xserver, but I get the Error "(EE) no screens found" in the journalctl
<defel>
can someone say me what the best way is to configure the monitor in the xserver?
<goibhniu>
hi defel, are you using the right module for your GPU?
<goibhniu>
also, which display-manager are you using?
<goibhniu>
... can you post your configuration.nix to a pastebin?
<defel>
currently I dont use any entry at `videoDrivers` .. it should have a intel iris pro
<goibhniu>
ah, you should put "intel" in there
<NixOS_GitHub>
[nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/vDmLV
<NixOS_GitHub>
nixpkgs/master f4e6738 Domen Kožar: buildStackProject: set GIT_SSL_CAINFO and LANG
<defel>
ok, added and rebuild .. error stay the same but I see that intel driver was loaded
<defel>
hmm, `lspci` is not found in my PATH
<defel>
but it is a intel nuc, it should definitly have an iris pro gpu
<defel>
windowManager is i3
<defel>
more specific error: No monitor specified for screen "Screen-intel[0]". Using a default monitor configuration.
<sphalerite>
I just realised another thing I love about nix. It makes working out dependencies so much easier because you can simply run stuff in an environment that has nothing directly available.
<sphalerite>
defel: for lspci, either install pciutils (nix-env -iA nixos.pciutils) or download and run it without installing it in your environment (nix-shell -p pciutils --run lspci)
eacameron has quit [(Ping timeout: 252 seconds)]
<sphalerite>
and did you try a newer kernel?
<defel>
@sphalerite cool lspci works now, it is a iris pro 580
<defel>
currently the kernel 4.4.45 is installed
<defel>
i will try to install a newer one
<defel>
@sphalerite can you give me a hint how to install a newer version? just add the kernel package to systemPackages?
<defel>
hmm, I dont find a newer kernel than 4.4.45
rmeis has quit [(Ping timeout: 240 seconds)]
ilja_kuklic has quit [(Ping timeout: 245 seconds)]
matthewbauer has joined #nixos
eacameron has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 2 new commits to master: https://git.io/vDm3a
<NixOS_GitHub>
nixpkgs/master 0cbb65c Bas van Dijk: ghcjs-HEAD: upgrade to the latest HEAD...
<NixOS_GitHub>
nixpkgs/master bd613c2 Peter Simons: Merge pull request #22197 from LumiGuide/ghcjsHEAD-upgrade...
matthewbauer has quit [(Ping timeout: 252 seconds)]
<NixOS_GitHub>
[nixpkgs] peti pushed 1 new commit to release-16.09: https://git.io/vDmsr
<NixOS_GitHub>
nixpkgs/release-16.09 79503c1 Peter Simons: Merge pull request #22197 from LumiGuide/ghcjsHEAD-upgrade...
<manveru>
hmm, maybe the neovim :! doesn't inherit the env from the editor but starts a shell from scratch
<manveru>
can confirm, no nix issue, it's neovim and zsh problem
<manveru>
works with :set shell=bash
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 248 seconds)]
phreedom has joined #nixos
defel has left #nixos ["Ex-Chat"]
defel has joined #nixos
Kingsquee has joined #nixos
xeviox has quit [(Remote host closed the connection)]
xeviox has joined #nixos
ok2`` has quit [(Ping timeout: 240 seconds)]
ok2 has joined #nixos
<LnL>
trupanka: overrideAttrs, but that's only in unstable at the moment
<sphalerite>
defel: sorry for the delay, for some reason my client didn't catch the @sphalerite. There's a special option for it because a lot depends on the kernel, like kernel modules and such: set boot.kernelPackages = pkgs.linuxPackages_4_8; or similar. You can check which other versions are available using nix-repl — nix-repl '<nixpkgs>' then type linuxPack and get it to autocomplete
<sphalerite>
What was the command again for generating a password hash for use with mutableUsers = false?
matthewbauer has joined #nixos
k0001 has joined #nixos
rmeis has joined #nixos
FRidh has joined #nixos
<trupanka>
LnL: thank you
<defel>
@sphalerite It works!
<sphalerite>
defel: awesome!
<defel>
Thank you very much! :)
<sphalerite>
All credit goes to goibhniu for guessing that a newer kernel would help :p
matthewbauer has quit [(Ping timeout: 260 seconds)]
<FRidh>
Python packaging is getting more fun everyday. Jupyter now depends on a new package called testpath, which is in Flit format. Wheels can be made from Flit just as is done with Setuptools packages. Nixpkgs supports installing Flit packages, as well as wheels. Jupyter is available for Python 2 and 3, however, Flit is only support on Python 2. That means, we would have to use Python 3 to build a universal wheel which Python 2 can use, or use a
<FRidh>
wheel that is distributed via PyPI. It seems building Python packages from source gets harder every day...
<gchristensen>
oh my word
ertes has quit [(Ping timeout: 240 seconds)]
ertesx is now known as ertes
<defel>
is it a good idea to use nixops to install services as virtualbox images on the same idea?
ilja_kuklic has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 2 new commits to master: https://git.io/vDmBH
<NixOS_GitHub>
nix/master 583ff4e Eelco Dolstra: release.nix: Drop nix-shell references
<NixOS_GitHub>
nix/master 7a65b24 Eelco Dolstra: Restore default signal handling in child processes...
<NixOS_GitHub>
[nixpkgs] abbradar opened pull request #22343: dbus service: use /etc/dbus-1 for configuration (master...dbus-etc) https://git.io/vDmRU
MasseR has quit [(Ping timeout: 240 seconds)]
<trupanka>
LnL: it works but only when I run `nix-build -p pcre`. But it doesn't if `pcre` is a dependency, for example for stdenv (`nix-build -p stdenv`).
ilja_kuklic has quit [(Ping timeout: 240 seconds)]
xeviox has quit [(Remote host closed the connection)]
justan0theruser has quit [(Ping timeout: 276 seconds)]
xeviox has joined #nixos
Shou has joined #nixos
samae has joined #nixos
<samae>
Hello. I'm attempting to deploy with nixops on a physical nixos machine, but it cannot ssh as root on the destination machine
<samae>
I've set the public key to use and PermitRootLogin in services.openssh
<samae>
sshd[26707]: error: PAM: Authentication failure for root from x.x.x.x
<samae>
is there anything else preventing connecting as root ?
<samae>
must root have a password for this to work?
<MoreTea>
can your user log into that machine as root?
<samae>
with su ?
<samae>
I access root with sudo
matthewbauer has joined #nixos
<MoreTea>
If you're running nixops as 'samae' on your dev machine, then you should be able to log into the machine you want to provision as root
<samae>
I must have misconfigured something then
<samae>
when I: nixops deploy -d machine, I tries to ssh as root
<MoreTea>
it should
edvorg has quit [(Remote host closed the connection)]
<samae>
but trying this results in: Permission denied (publickey,keyboard-interactive).
<MoreTea>
you must make this work with your local user account: `ssh root@<ip_of_server>`
<samae>
yeah
<MoreTea>
is that working, or not?
<samae>
nope
<MoreTea>
than that's the problem
<samae>
my destination is running nixos too : )
<MoreTea>
perfect!
<MoreTea>
so you should solve this first
<MoreTea>
then nixops should work perfectly fine
<samae>
That's my question
<MoreTea>
how to solve that?
<samae>
yeah
<MoreTea>
do you have a password for that machine?
<samae>
nope
<MoreTea>
then how can you log in to that remote machine?
<samae>
only ssh keys
matthewbauer has quit [(Ping timeout: 240 seconds)]
<MoreTea>
but logging in with the ssh key works? or not?
<samae>
yes, pretty well : )
<samae>
every user can log without problem, only root cannot
<MoreTea>
do you use `ssh -i <keyfile>` or just plain `ssh`
edvorg has joined #nixos
<samae>
plain ssh, my key is in default path
<MoreTea>
you're a bit hard to understand. You said that `ssh root@<ip>` does not work.
<MoreTea>
But later state that you *can* log in
<MoreTea>
could you clarify this a bit?
<samae>
ssh samae@ip is ok
<samae>
ssh root@ip is not ok
<MoreTea>
ok, then you should add your key signature to the root account
<MoreTea>
have you tried that :)?
<samae>
yep
<MoreTea>
how?
<samae>
first I set: permitRootLogin = "yes"; in services.openssh
<k0001>
How do people working on Nix proper try new Nix versions? In particular when these changes affect things like nix-daemon. Should I start a NixOS VM pining the Nix version to that version I'm attempting to try?
<samae>
MoreTea: so I should make my user able to connect as root
<MoreTea>
yes, as user `samae`, you must be able to run: `ssh root@<ip>`
<manveru>
the `nixops ssh` is only needed for hetzner and the like, where nixops generates the key for you, afaicr
<MoreTea>
If that works, you might need to do what gchristensen suggested: "<gchristensen> you may need to `nixops destroy --include yourmachinename` and then `nixops deploy --include yourmachinename` to reset nixops' ssh key"
<samae>
I'll copy my own public key then to root's authorized keys
<samae>
and this *should* work
* MoreTea
nods
<jophish>
gchristensen: thank you for the hard work you do on the nixos security updates.
<samae>
ok, this works : )
<samae>
ssh root@ip
<samae>
finally
<gchristensen>
^.^ you're welcome, jophish!
<samae>
ok nixops is building \o/
<MoreTea>
samae, congrats!
<samae>
thx MoreTea, gchristensen \o/
<MoreTea>
If you have more questions, please ask them here :)
<samae>
much love to everyone
<gchristensen>
yay! glad to hear it, samae!
<MoreTea>
gchristensen, I hope you did not spend too much $$$$ on S3
<MoreTea>
for the hydra-PR experiment
<FRidh>
if I have a {format, ...} @attrs: then attrs shouldn't contain 'format', or should it?
johnsonav has joined #nixos
<MoreTea>
From what I gathered from reading the implementation some time ago, it should include all
<k0001>
nix-repl> ({format, ...}@attrs: attrs) { format = "foo"; x = "y"; }
<k0001>
{ format = "foo"; x = "y"; }
<MoreTea>
nix-repl> ({f,...}@a: a) {f = 1; b=2; } ==> evaluates to { b = 2; f = 1; }
<FRidh>
Thanks. Especially for the nix-repl example :)
<jophish>
I have it on my todo list to write a Nix implementation with parallel evaluation as a priority
<MoreTea>
I've been playing a bit with a -very- naive interpreter for a nix-like language implemented in rust with the goal to experiment with multi-threaded evaluation of expressions
<jophish>
I'd like to start once nix has a type system :)
<MoreTea>
It doesn't do any memoization of computed values at the moment, for example.
<jophish>
MoreTea: have you got a link for me to bookmark? :)
<MoreTea>
jophish, are you coming to FOSDEM?
<MoreTea>
erm, I could put it on GitHub.
mudri has joined #nixos
<jophish>
MoreTea: I'm afraid I'm busy this weekend
eacameron has quit [(Ping timeout: 252 seconds)]
<MoreTea>
it's just 500 lines of prototype rust
<jophish>
No hurry, whenever you think it's ready :)
<MoreTea>
made a note, will ping you when I've got something worth showing
edvorg has quit [(Remote host closed the connection)]
xeviox has joined #nixos
panostimos has joined #nixos
eacameron has joined #nixos
trupanka has left #nixos []
matthewbauer has joined #nixos
fritschy has quit [(Quit: Leaving.)]
matthewbauer has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Remote host closed the connection)]
ckauhaus has quit [(Quit: Leaving.)]
edvorg has joined #nixos
ixxie has joined #nixos
sellout- has quit [(Quit: Leaving.)]
eacameron has joined #nixos
lukego has joined #nixos
<lukego>
Is it legal to write things in a derivation like: buildPhase = "${./foo.sh a b c}"; ? or is this referring to local files not okay?
<gchristensen>
you can do "${./foo.sh} a b c"
eacameron has quit [(Ping timeout: 240 seconds)]
<gchristensen>
are a b c files?
<lukego>
oh, sorry, wrong example. I meant: buildPhase = "${./foo.sh} a b c"
<gchristensen>
oh sure
<gchristensen>
./foo.sh will be copied in to the store and it'll become "/nix/store/<hash>-foo.sh a b c"
<MoreTea>
lukego, you can even import .nix expressions from derivations
<lukego>
oh, I think I am just misinterpreting the error message, thinking it can't find the script when really it is an error inside the script
alx741 has joined #nixos
<lukego>
MoreTea: you mean that I could look at my inputs and synthesise a new nix dependency during the build?
<lukego>
thanks gchristensen for clarifying
<gchristensen>
you're welcome
cpennington has joined #nixos
<lukego>
are there easy cheats to make nix-build print more debug info? e.g. the output of the builder, or to run the builder with 'bash -x'? or do you always debug inside nix-shell?
<gchristensen>
I sometimes add prePatch = "set -eux"; to the mkDerivation
<MoreTea>
lukego, let's say that you have a (deterministic) program that e.g. turns a `yarn.lock` file into an nix expression
<MoreTea>
You could then do a stdenv.mkDerivation, that calls this program, and as an output, writes a yarn.nix file containing instructions on how to build those npm deps.
<MoreTea>
Then you could import that yarn.nix file later on
<lukego>
MoreTea: That sounds potentially very useful, thanks for the tip!
<lukego>
MoreTea: I am already wanting to be able to refer to all the versions of a program that are tagged on Github. Could be that I could use this trick to build the sources nix expression.
<MoreTea>
not really!
<lukego>
Oh but that is not deterministic..
sellout- has joined #nixos
<MoreTea>
Because in nix you can have two types of derivations
<MoreTea>
1. fixed outputs (that you can use to download URL's, git repo's etc)
<MoreTea>
2. fixed inputs
<lukego>
gchristensen: do I need to do more than this prePatch? I don't see an effect. Maybe bash is printing the debug info but nix-build is discarding it?
<gchristensen>
lukego: can you paste your code?
<MoreTea>
But you could definitely use this trick to e.g. run a python program to extract git tags from a repository, and then generate a .nix file that you'd import later on
<MoreTea>
This git repo should be an input to the derivation that runs the python program.
<MoreTea>
(and therefore making it deterministic again)
<MoreTea>
However, in nixpkgs we prefer to externalize those tools, because it will require builds during the evaluation of nix
<lukego>
gchristensen: thanks for the tips. somehow I am still struggling every small step of the way :)
sellout- has joined #nixos
<gchristensen>
can you paste the output after removing that `u`?
erasmas has joined #nixos
Mercuria1Alchemi has quit [(Ping timeout: 276 seconds)]
<lukego>
gchristensen: the problem is inside my script now. just having a hard time getting used to debugging that from within the nix environment.
<lukego>
gchristensen: and I don't understand why when I open nix-shell and run "buildPhase" it says "no Makefile, doing nothing" instead of running my script (which does happen when I run nix-build)
matthewbauer has joined #nixos
<gchristensen>
I have two systemd services, one is a server that needs configuration when it starts, the other is a systemd service to write that config. when the primary is started (for any reason, from stopped / failed, or restarted) I'd like to restart the secondary. I've tried using : after = ["primary.service"]; partOf = [ "primary.service" ]; ... and ... after = [ "primary.service" ]; bindsTo = [ "primary.service" ];
<gchristensen>
... but with both of these, I'm not seeing the secondary service restarting when the primary restarts. any advice on this?
<gchristensen>
lukego: hmm can you paste your shell session, the updated output from the nix-build (despite the issue being inside your script), and the current default.nix?
eacameron has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
matthewbauer has quit [(Ping timeout: 252 seconds)]
MasseR has joined #nixos
<gchristensen>
hmm I think I want a target? :/
AMDmi3 has joined #nixos
<AMDmi3>
hi
<AMDmi3>
I'd like to get metadata for all nix packages (e.g. name, version, downloads, homepage, license etc.)
<AMDmi3>
is there something like that available online?
<gchristensen>
we don't collect download statistics
<AMDmi3>
downloads is download urls, not statistics
<lukego>
gchristensen: thanks but I think I'm up and running now. have the script running. just not very confident about how to resolve each problem as it arises. one thing is that it seems like instead of "buildPhase" I need to say "$buildPhase" in order to run my code?
<gchristensen>
ah perhaps
<gchristensen>
you're doing great, let us know if you need more help :)
<lukego>
thanks :)
<AMDmi3>
gchristensen: nice, seems to be what I need. almost. is there a reliable way to extract version?
xeviox has quit [(Ping timeout: 240 seconds)]
<domenkozar>
lukego: yeah you have to do: eval $buildPhase
<gchristensen>
as a rule, split the name on "-" and pick the last element
<AMDmi3>
gchristensen: unfortunately no, because "name": "2048-in-terminal-2015-01-15",
<gchristensen>
ah fair
* gchristensen
has no idea, then
Jackneill_ has joined #nixos
<AMDmi3>
dang
<rmeis>
hi, trying to write my first nix expression. Can I skip the unpackPhase? I am downloading an executable directly via fetchurl.
<simpson>
gchristensen, AMDmi3: Something's screwy with that derivation: error: undefined variable ‘in-terminal’ at (string):1:6
<gchristensen>
unpackPhase = ":" should do it (: being bash's "noop" )
<gchristensen>
oh, no, that is subtly wrong ...
<gchristensen>
guh, sorry rmeis I gave you a half-answer and can't finish my anwser. sorry :(
<pem_>
Hi! I keep getting a "kernel driver not accessible" in VirtualBox. I've already rebooted five or six times with different solutions suggested on github and here, but… :( Any idea? (I'm on the stable channel)
<drakonis>
the wiki is outdated fyi
<drakonis>
there's a new one on github
<Baughn>
The wiki is outdated, and there should be a banner saying so.
<Baughn>
..ah, there is.
<domenkozar>
lukego: wiki has been deprecated a year ago so it's very out of date
<rmeis>
@gchristensen your suggestion seems to work
<rmeis>
thanks
<gchristensen>
ah, good :)
<drakonis>
i reinstalled nix after staying a while away from using linux and looks like everything's working correctly
<lukego>
domenkozar: ok. but the wiki comes up first on Google and when I am skimming for info I don't necessarily read the disclaimers at the top of the page
<lukego>
(didn't realize it was a wiki page)
<pem_>
btw, how does one access the new wiki?
<drakonis>
steam booted properly on the first try and everything else is neat and tidy
<Baughn>
drakonis: Server or client? Need a sample desktop config? :)
MoreTea has quit [(Ping timeout: 248 seconds)]
<drakonis>
client
<drakonis>
i'd like a nice sample though
<Baughn>
Sure. Let me see if I can find the link..
<drakonis>
the one that comes with the config generator is fairly skeletal
<Baughn>
It is!
<Baughn>
And geared towards servers.
<lukego>
oh, I also assumed that the "Related reading" at the bottom of the wiki page was a link to the nix manual, but on closer inspection I see that this page is also a wiki page :)
<domenkozar>
lukego: I agree, there thee error should be more annoying and we should add robots.txt to ban it from google
<gchristensen>
I was just looking up how to do that :D
<domenkozar>
niksnut: can we add robots.txt and ignore all wiki content?
<drakonis>
hm, its compiling libreoffice's fresh branch
<simpson>
teh[m]: In capability theory, a capability is an *unforgeable* and *transferable* token of authority.
<simpson>
While Linux caps might be unforgeable, they aren't transferable; actually getting a cap from one process to another is very ad-hoc.
<teh[m]>
simpson: ah right! Yea, that'd be awesome. I think that 80% of the linux API sucks but it's the only game in town ... :(
<simpson>
teh[m]: There's Capsicum, which is an actual cap-safe system for Linux, but it's not in-kernel IIRC.
<simpson>
There are libraries like Capn Proto, languages like Monte, and platforms like Sandstorm which all use real caps.
<niksnut>
Baughn: IIRC, you can downgrade by doing "echo -n 7 > /nix/var/nix/db/schema"
<Baughn>
Java also attempts to have caps, doesn't it?
<Baughn>
Didn't work so well in that case.
Shou has quit [(Ping timeout: 260 seconds)]
digitus has joined #nixos
glines has joined #nixos
Shou has joined #nixos
<simpson>
Baughn: Kind of? There was a vague awareness, culminating in a pile of cap-safe languages in the mid-90s: Joule, Waterken, Joe, E.
<simpson>
Monte is a modern flavor of E. It's a thing. It's not as much of a thing as I'd like.
<simpson>
Sandstorm and Capn Proto are *definitely* things.
<Baughn>
Mm. I'd like to see it in a mainstream language, but that seems unlikely.
MoreTea has joined #nixos
<simpson>
Well, we want Monte to be mainstream. The problem is that very few people have ever tasted cap-safe languages.
<simpson>
And we're still hard at work killing memory-unsafe languages! It's 2017 and people still insist on using ridiculous languages to get things done. :c
<Baughn>
Between Java, Go and Rust, I prefer Go. :S
<Baughn>
Er.
<Baughn>
Java.
<yorick>
I think -unstable might have something weird, dns resolves failing everywhere
<simpson>
Totally understandable.
<Baughn>
Though if "No GC" is part of the requirements, Rust is better than nothing... it has its share of warts.
<simpson>
Rust is at least (more or less) memory-safe.
<Baughn>
Yeah, it's just hard to use.
<Baughn>
Comes with the territory, but I think it could be done better.
<simpson>
Just remember: All code is terrible, nobody has any idea how to write code, and our attempts at computing in this era will someday be compared to cave paintings.
<Baughn>
Meanwhile, kotlin is an actually nice language. I've got some hope it'll get used.
<Baughn>
..nah. Cave paintings were still made by humans. The only way we'll get humans writing good code is if they're Reyvateils.
Shou has quit [(Ping timeout: 255 seconds)]
<NixOS_GitHub>
[nixpkgs] peti pushed 1 new commit to master: https://git.io/vDYk8
<NixOS_GitHub>
nixpkgs/master 6ba3533 Peter Simons: youtube-dl: update to version 2017.02.01
matthewbauer has joined #nixos
eacamero_ is now known as eacameron
civodul has quit [(Ping timeout: 255 seconds)]
matthewbauer has quit [(Ping timeout: 255 seconds)]
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #22347: julia: fix build and execution on PaX. (master...fix/julia-pax) https://git.io/vDYLW
Seichi has quit [(Remote host closed the connection)]
roconnor has joined #nixos
<roconnor>
what does the recursiveHash option in fetchurl do?
Shou has joined #nixos
<gchristensen>
I think it sets outputHashMode to `recursive`, search for "outputHashMode attribute determines" here: https://nixos.org/nix/manual/
jgertm has quit [(Ping timeout: 240 seconds)]
johnsonav has quit [(Ping timeout: 255 seconds)]
matthewbauer has joined #nixos
panostimos has joined #nixos
<roconnor>
ty
<NixOS_GitHub>
[nixpkgs] FRidh force-pushed python-wip from 369f791 to fae20e6: https://git.io/vzaOS
<NixOS_GitHub>
nixpkgs/python-wip 9f74012 Frederik Rietdijk: pythonPackages.testpath: init at 0.3
<NixOS_GitHub>
nixpkgs/python-wip 2d06224 Frederik Rietdijk: pythonPackages.xarray: 0.8.2 -> 0.9.1
<NixOS_GitHub>
nixpkgs/python-wip 5cd9e1c Frederik Rietdijk: pythonPackages.pandocfilters: 1.3.0 -> 1.4.1
matthewbauer has quit [(Ping timeout: 264 seconds)]
digitalmentat has joined #nixos
FRidh has quit [(Ping timeout: 248 seconds)]
nschoe has quit [(Quit: Program. Terminated.)]
c0bw3b has joined #nixos
goodwill has joined #nixos
sweber has quit [(Ping timeout: 248 seconds)]
Shou has quit [(Ping timeout: 252 seconds)]
t7 has joined #nixos
<Profpatsch>
What’s the best way to check the type of an attribute and abort with a good error if it doesn’t match?
layus_ has joined #nixos
<Profpatsch>
(outside of the closed module system of nixos per se)
<shlevy>
What texlive combination do I need to get org-mode to output pdfs?
<shlevy>
Should I just have scheme-full?
Kingsquee has quit [(Read error: Connection reset by peer)]
Kingsquee has joined #nixos
<Ralith>
I'm using pdflatex outside of orgmode just fine with scheme-medium
<shlevy>
OK
* shlevy
knows nothing about latex
<shlevy>
"scheme-medium" sounds nice and middle-groundy though
* Ralith
knows (nearly) nothing about org-mode, so we're even
djvdorp has quit [(Ping timeout: 252 seconds)]
mudri has quit [(Ping timeout: 264 seconds)]
<simpson>
nixops: Is there any plan to have support for container services? They're getting popular, and Nix already has tooling to make Docker images...
<cransom>
i only know that i spent more time than necessary yesterday getting texlive.combined.scheme-full installed because it's pinned to one mirror and if you repeatedly pull files, the server blacklists you momentarily. the files werent' making it into the store so it would fail and restart from scratch.
<shlevy>
cransom: --keep-going would help with that last issue at least
<cransom>
shlevy: it did. but I did start poking to see if there was a mirror network that could be in use rather than hugging one czech university persons account and didn't get far before i decided to stop shaving the yak
<peti>
niksnut: Do you remember the trouble I had signing into Hydra.nixos.org with my Google account? I have another data point. The sign-in works with Chromium, but it does not work with Firefox.
bennofs has joined #nixos
adev has quit [(Remote host closed the connection)]
<Ralith>
cransom: is this stuff not binary-cached?
<clever>
peti: are both browsers signed into the same google account?
<clever>
peti: ive switched one of my services over to openid, and thats a very common problem
<cransom>
Ralith: in code, `( { # lots of derivations, not meant to be cached`
<cransom>
so, no, not part of binary cache as far as i can tell. wasn't in 16.09 nor unstable
teknico has left #nixos []
<Ralith>
weird
<Ralith>
sounds like we're abusing whatever hosting service, as it is
mkoenig_ has joined #nixos
drakonis has joined #nixos
mudri has joined #nixos
<drakonis>
alright, so i read eelco's commits and its overlays
<peti>
clever: Yes, both browsers are signed in and I use them both to access the same Google services.
<drakonis>
this is cool.
<peti>
clever: Also, I have only one Google account.
mkoenig has quit [(Ping timeout: 260 seconds)]
systemfault has quit [(Quit: Bye!)]
oida has quit [(Read error: Connection reset by peer)]
kampfschlaefer has joined #nixos
hiberno has quit [(Quit: WeeChat 1.6)]
mkoenig_ has quit [(Ping timeout: 240 seconds)]
mkoenig has joined #nixos
<bennofs>
peti: i noticed a small problem with the recently commited callCabal2nix: as implemented, it requires copying all of $src just for generating the .nix file. Wouldn't it be better if we used filterSource to just copy the .cabal file, and then patch up the src on the resulting derivation? That would avoid copying large paths during evaluation (it may still be necessary during building though, nothing changed
<bennofs>
there). Not sure if that would be too much complexity though for an arguable niche gain
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 7 new commits to master: https://git.io/vDYWT
<NixOS_GitHub>
nixpkgs/master ea5c83d Michael Raskin: mupdf: 1.9a -> 1.10a
<NixOS_GitHub>
nixpkgs/master 6899587 Michael Raskin: asdf: 3.1.7 -> 3.2.0
<NixOS_GitHub>
nixpkgs/master 1567d3c Michael Raskin: sbcl: 1.3.13 -> 1.3.14
danharaj has joined #nixos
georges-duperon has quit [(Ping timeout: 252 seconds)]
<gchristensen>
my NixOS test harness continues to pay off, exposing race condition bugs in underlying software and providing reproducible test cases: https://github.com/tumblr/collins/issues/509 :D
edvorg has quit [(Ping timeout: 252 seconds)]
<cransom>
wow. the first time i've seen someone mention/use collins in the wild aside from a place i was once at.
<gchristensen>
cransom: thinkingface.jpg where was that one place you were at?
<cransom>
jive software
<gchristensen>
cool
<clever>
gchristensen: how did you do "click to expand" in github? :O
<cransom>
it was... kind of used. they migrated some data to it but never completely finished the project and it was left in a pseudo functional state.
<gchristensen>
cransom: did they use jetpants, too?
<cransom>
gchristensen: never heard of jetpants
<jack[m]1>
gchristensen: nice!
<gchristensen>
clever: updated
<gchristensen>
cransom: it is tumblr's tool for manipulating database topologies, and it depends heavily on collins
<cransom>
gchristensen: they did have thousands of mysql instances but they were all fully autonomous
<gchristensen>
ah, gotcha
<bennofs>
gchristensen: what's your "NixOS test harness"?
<gchristensen>
I'm using NixOS as a test harness for testing jetpants + collins against "real" mysql servers
mudri has quit [(Ping timeout: 240 seconds)]
<bennofs>
ah cool
<gchristensen>
it is the same code that nixos/tests/* uses, but using a lot of custom modules and what-not for setting up jetpants + collins + a mess of mysql daemons in nixos containers
ixxie has joined #nixos
<cransom>
gchristensen: jetpants looks interesting. how is it so far (aside from collins failures)?
<bennofs>
Description=Collins MySQL Node Intake: mysql-container-13
<NixOS_GitHub>
[nixpkgs] gebner pushed 1 new commit to master: https://git.io/vDY8K
<NixOS_GitHub>
nixpkgs/master ac10c19 Gabriel Ebner: veriT: 201506 -> 2016
<gchristensen>
I have: ["a" "b" "c"] and I'd like to get: [["a" "b"] ["b" c"] ["c"]] is there a way to do this?
<jack[m]1>
gchristensen: looks like a fold
<codedmart>
I am using nix package manager on archlinux. I have installed elasticsearch but am unsure how to run it? I get an error about setting ES_HOME, but I am not sure what to set it to.
<codedmart>
Anyone that can help?
* gchristensen
goes to look up a fold
rmeis has joined #nixos
<LnL>
gchristensen: zip will probably be usefull
<jack[m]1>
codedmart: nixpkgs will install the software, but nixos modules will have the rest of the glue to set up services and such.
<pikajude>
q: does haskell have a list indexing function? a: yes !!
<simpson>
ixxie: To what end?
<drakonis>
woops i fucked up badly
<drakonis>
my home isn't set correctly
<drakonis>
its in the same partition as root
<cransom>
Wow. Mark this day. I had a teaching moment in #nixos.
<ixxie>
simpson: I was not sure if there would be any, which is partly why I am asking xD
<gchristensen>
guh man getting stuff done with FP still feels like a magic trick sometimes, but so satisfying
Sonarpulse has joined #nixos
johnsonav has quit [(Ping timeout: 255 seconds)]
rmeis has quit [(Ping timeout: 258 seconds)]
<drakonis>
well fuck
<drakonis>
the configuration i used to install is gone
<NixOS_GitHub>
[nixpkgs] peti opened pull request #22350: Update R package set (master...r-updates) https://git.io/vDY07
<drakonis>
nope, actually i'm a idiot, its there
<k0001>
@drakonis you can find your old configuration.nix files in `/nix/var/nix/profiles/system-SOMENUMBER-link/configuration.nix`
johnsonav has joined #nixos
<drakonis>
a question, i have lvm2, how would i set my home partition? users.users.<name?>.home?
jluttine has quit [(Ping timeout: 256 seconds)]
bennofs has quit [(Ping timeout: 252 seconds)]
<drakonis>
or is it best just to expand the root partition
pstn has joined #nixos
<drakonis>
eh fuck it, gonna kill the home partition and expand root
sellout- has joined #nixos
<k0001>
Even in a multiuser Nix setup using nix-daemon, files are still downloaded from the internet by the user initiating the nix-env/nix-build/whatever call and not by nix-daemon itself, right?
<gchristensen>
I think the nix daemon still does it
m-i has quit [(Remote host closed the connection)]
georges-duperon has joined #nixos
<k0001>
drakonis: I don't see why that is necessary. You can have your home folder in another partition.
<drakonis>
space concerns
<drakonis>
leaving a 32 gigs partition to handle root isn't ideal
m-i has joined #nixos
<drakonis>
i already have 12 gigs used up
<drakonis>
and things get installed to it, so no thanks.
<drakonis>
this is the dumb thing about some distro installers, their defaults dedicate a tiny fraction of space to root while everything else goes to home
<k0001>
gchristensen: that was my original thought, but some things I'm trying locally suggest otherwise. I'll keep digging.
mudri has joined #nixos
<Sonarpulse>
what does one do again if nix-channel --update with root hangs on nixos?
drakonis has quit [(Remote host closed the connection)]
<gchristensen>
I wish `nix-build` could take `--check` whether or not it has already been built >.>
jluttine has joined #nixos
<NixOS_GitHub>
[nixpkgs] rasendubi pushed 2 new commits to master: https://git.io/vDYgY
<NixOS_GitHub>
nixpkgs/master fda3edd Peter Hoeg: heroku: 3.43.12 -> 3.43.16...
<Sonarpulse>
I think the moral of the story is I should have never switched to nixUnstable system wide :/:/:/
<Sonarpulse>
halp schema downgrade halp
<niksnut>
k0001: files downloaded by derivations, and binary cache downloads, are done by the daemon
<niksnut>
but nix-prefetch-url and builtins.fetchTarball run under the calling user
<k0001>
niksnut: ah! That clarifies some things. Thanks.
ilja_kuklic has quit [(Ping timeout: 240 seconds)]
drakonis has joined #nixos
<drakonis>
how do i reset the generation count?
OJFord has joined #nixos
<OJFord>
Hi folks, can anyone explain why vim is at version 7.4 on my system, freshly installed, when I can see on Github that v8 something is in the package? I've run nixos-rebuild switch --upgrade, on channel 16.09 stable.
bennofs has joined #nixos
<drakonis>
stable, friend.
<drakonis>
the unstable builds have 8.0
<ToxicFrog>
OJFord: when you look at github, are you looking at the 'release-16.09' branch or the 'master' branch?
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vDY2B
<NixOS_GitHub>
nixpkgs/master 3d10d5f Vincent Laporte: omake: 0.10.1 -> 0.10.2
<OJFord>
Agh, I see
<ToxicFrog>
The latter is the default if you just went straight to github rather than clicking through from the package search page
Sonarpulse has quit [(Remote host closed the connection)]
<ToxicFrog>
I'm seriously considering switching my laptop to unstable in the hopes of being able to install digikam and maybe getting a version of kwin_x11 that doesn't crash as much.
Shou has joined #nixos
<drakonis>
i do like how steam is working again
<drakonis>
last time i tried, i hit a wall trying to make it work
<ToxicFrog>
drakonis: there's a bunch of places you might know me from? I'm active (or have been in the past) on a bunch of IRC networks, a slack, github...
<ToxicFrog>
Steam seems to be fine in 16.09 at least
<drakonis>
steam i guess :v
<cransom>
OJFord: you also have the option of running unstable as your local user, leaving the system on 16.09 without fear of ever having an unusable system.
<drakonis>
i think its you on steam
<ToxicFrog>
As long as you remember to install 32-bit DRI and PulseAudio support
<drakonis>
green and black icon, triangles.
<ToxicFrog>
Oh, yeah, that's me
<drakonis>
lots of kerbal
<drakonis>
huh.
<ToxicFrog>
Lots and lots of kerbal
<ToxicFrog>
I wonder why we know each other on steam, I don't generally have people on my friends list without knowing them from somewhere else
<drakonis>
goons
<drakonis>
possibly.
<drakonis>
internet forums
derjohn_mob has quit [(Ping timeout: 245 seconds)]
<ToxicFrog>
That would be it.
Sonarpulse has joined #nixos
<OJFord>
cransom: that sounds like additional complexity I could do without for now.. I love the idea of NixOS, but I'm just getting started, immediately running into issues like "gah, no package for blah", "ugh, vim's at pre-8", etc.
<drakonis>
i can't wait for overlays ;v
<Sonarpulse>
ok better not downgrade then
<ToxicFrog>
Overlays?
<drakonis>
yes
<drakonis>
kinda like gentoo
<drakonis>
you have the nix packages tree and you can add other trees over it
<gchristensen>
OJFord: I mean, most distros probably have _far_ older vims
AllanEspinosa has quit [(Ping timeout: 255 seconds)]
<drakonis>
i think ubuntu doesn't even have 8 yet
<drakonis>
probably at 6
<drakonis>
emacs is at least 3 years old
<drakonis>
eclipse is ancient at this point
<OJFord>
That's true, but the general system is more familiar in a way that means it's easier to fix for yourself, for me at least
<drakonis>
you can import the vim derivation
<OJFord>
Like there was something else I wanted that there was no package for at all, so I figured I'd build from source, which was immediately a rabbit hole starting with how do I get rust nightly
<drakonis>
nightly builds, what a draem
<drakonis>
dream :v
<drakonis>
this kind of stuff is really for personal use, so you don't need to rewrite derivations frequently
<MoreTea>
@simpson, there is a project by offlinehacker to generate manifests for kubernetes
<MoreTea>
I'm quite interested in all this as well.
<MoreTea>
Especially the combination of Kubernetes + CRI would be quite interesting
<OJFord>
Ralith: well.. thanks! The one I found yesterday did not have a readme, so being (completely) new to Nix, the next curve in the rabbit hole was "uh.. where do I put this", which I think I have sorted now.
<MoreTea>
(CRI = the interface between Kubernetes and a 'container runtime', e.g. docker)
<MoreTea>
it can be swapped with something else entirely
<Ralith>
OJFord: this is the package you should be using regardless
layus has joined #nixos
<drakonis>
so how do they avoid the sha256 check
<simpson>
MoreTea: I don't care especially about k8s; I'm noticing that both Amazon and Google are doing container serivces, and it'd be nice if I could deploy to those container services easily.
<drakonis>
the hashes
<drakonis>
hm
<drakonis>
nevermind that, the post explains it.
<drakonis>
that's a good use for overlays actually, making one that's nothing but nightly builds
elasticdog has quit [(Ping timeout: 256 seconds)]
<drakonis>
for the folks who really like to compile their stuff daily
<Sonarpulse>
hmm so still stuck with this nix-channel
<Sonarpulse>
hang
<drakonis>
what kind of hang?
<MoreTea>
simpson, that's actually a pretty neat idea as well.
<MoreTea>
Luckily, google's container service GKE is just a hosted kubernetes
<layus>
I have an issue on NixOS where I have to install packages using `nix-env -iA nixpkgs.hello` but have no nixpkgs channel defined, only nixos and unstable. Anyone ?
<gchristensen>
ugh so I spent a lot of time making these systemd units execute in parallel, to learn about a race condition requiring I make them run in serial. what a day!
c0bw3b has joined #nixos
<MoreTea>
@drakonis, isn't keepassxreboot a fork of keepassx?
<Sonarpulse>
joachifm: is there some curl I can do by hand?
<drakonis>
MoreTea, yes it is
<drakonis>
because the main is pretty much dead
exi has quit [(Quit: leaving)]
<drakonis>
or moves very slowly
<drakonis>
the fork already has a derivation but it is outdated
tvon_ has joined #nixos
<drakonis>
"KeePassXC is a fork of KeePassX that aims to incorporate stalled pull requests, features, and bug fixes that have never made it into the main KeePassX repository."
<joachifm>
Sonarpulse: nix-build -I nixpkgs=... '<nixpkgs/nixos>' -A system or something?
OJFord has quit [(Quit: My MacBook Air has gone to sleep. ZZZzzz…)]
<joachifm>
Sonarpulse: but if you're trying to downgrade nix, I think you need to be a bit careful; I don't know what the appropropriate procedure is for that
<Sonarpulse>
joachifm: I think I'm giving up on downgrading
<Sonarpulse>
:(
<Sonarpulse>
but at least would like to get latest nixpkgs!
<gchristensen>
Sonarpulse: here is an idea ... nix-shell -p nix (ie: stable nix) then use that to update your channels
<Sonarpulse>
gchristensen: I worry I'll still get daemon schema stuff?
<Sonarpulse>
but maybe not!
<gchristensen>
don't think so
michas has quit [(Ping timeout: 276 seconds)]
<gchristensen>
channels don't touch the daemon, I think
<joachifm>
hm
<Sonarpulse>
using the daemon
<gchristensen>
dang
drakonis has joined #nixos
<Sonarpulse>
or rather complaining about the store
<Sonarpulse>
if no daemon is being used
<Sonarpulse>
urg
<drakonis>
i don't get it, i expanded the root partition, why isn't linux picking up the increase?
m-i has quit [(Remote host closed the connection)]
<joachifm>
Sonarpulse: afaik, your only option is to nuke the db to downgrade
<Sonarpulse>
joachifm:
<Sonarpulse>
yeah
m-i has joined #nixos
<Sonarpulse>
I guess that's not so bad as I don't have too many custom-built derivations?
<Sonarpulse>
would not want to loose my nixos generations though!
<joachifm>
Sonarpulse: well, you don't need to nuke the store
<joachifm>
Sonarpulse: just the db stuff
<joachifm>
Sonarpulse: so nix/var/nix et al
<Sonarpulse>
next time I GC though
<Sonarpulse>
a lot of store could disspear?
<joachifm>
Sonarpulse: if you're careful, gcroots could be preserved, I think
m-i has quit [(Remote host closed the connection)]
<joachifm>
Sonarpulse: not exactly sure what you need to delete, but at least nix/var/nix/db and the top-level sqlite files may need to go; the rest I'm not sure about
<Sonarpulse>
joachifm: I guess I'll ... rename? :)
m-i has joined #nixos
<joachifm>
Sonarpulse: they're mostly just symlinks, not necessarily tied to schema in that way
<Sonarpulse>
ah i see
<Sonarpulse>
if symlink, I'll delete
<Sonarpulse>
!
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 1 new commit to master: https://git.io/vDYKD
<NixOS_GitHub>
nixpkgs/master 3e5022c Bjørn Forsman: hardinfo: init at 0.5.1...
<joachifm>
Sonarpulse: well, to be safe, you could just not run gc until you're sure everything you want has been re-installed using the stable nix
<Sonarpulse>
yeah, absolutely
<Sonarpulse>
well, here it goes! :)
<joachifm>
Sonarpulse: just make sure you have the older nix available in your store first :)
<Sonarpulse>
yeah!
<Sonarpulse>
it's there
<Sonarpulse>
I can use whatever nixpkgs channel I have just fine
<joachifm>
Sonarpulse: well, there's still the bootstrap tarball, so all would not be lost if it disappeared
<Sonarpulse>
yeah
<joachifm>
Sonarpulse: it takes a bit of effort to completely hose things :)
<joachifm>
but you can get pretty far
<Sonarpulse>
sure yeah
<joachifm>
but in theory, if you re-init the state under nix/var/nix using nixStable, all should be well
AllanEspinosa has quit [(Quit: leaving)]
<Sonarpulse>
goign for it!
<Sonarpulse>
(stopped the daemon)
oida has joined #nixos
<drakonis>
by the way, where is the new wiki
<jophish>
Lots of repositories on github include .nix files describing how to build them. Is it the correct thing to do to duplicate 'default.nix' (or whatever) in nixpkgs if one adds one of these packages?
m-i has quit [(Remote host closed the connection)]
m-i has joined #nixos
<jophish>
Almost certainly not
<jophish>
I wonder if there is some happy middle ground between loading the derivation from the source and duplicating it entirely in nixpkgs
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 1 new commit to release-16.09: https://git.io/vDY6N
<NixOS_GitHub>
nixpkgs/release-16.09 d162594 Bjørn Forsman: hardinfo: init at 0.5.1...
michas has joined #nixos
Shou has quit [(Ping timeout: 276 seconds)]
pi3r has joined #nixos
<joachifm>
jophish: can you give an example of what you mean? I'd think you'd be able to do stuff like `with (import <nixpkgs>{}); callPackage ./src/default.nix`. depending on what default.nix contains exactly, of course.
pi3r has quit [(Client Quit)]
<jophish>
Sonarpulse: I had exactly the same issue. I just have to use nixUnstable when not going via the daemon
<jophish>
please let me know if you find a good way to downgrade
<Sonarpulse>
jophish: oh?
<Sonarpulse>
well i am still in weird limbo
<Sonarpulse>
but just the nix-channel part would be nice
civodul has joined #nixos
<Unode>
hi all, are all the hardlinks inside the nix/store created by nix itself?
<jophish>
joachifm: It's technically possible, however with that one has to fetch the source in order to get the derivation
<jophish>
which means 'nix-env -i foo' has to grab the source of some random package to check if its name is 'foo'
<Unode>
in other words, can a package actually hardlink itself such as providing the same binary under two different names?
acarrico has quit [(Ping timeout: 248 seconds)]
<joachifm>
jophish: err, but how do you expect there to be a middle ground between not having the expr and having it? whether it comes from nixpkgs or you download it yourself makes no difference
<joachifm>
jophish: if you'd like to treat it as if it were part of <nixpkgs>, I guess you can add it via overrides or the new overlay mechanism
<jophish>
joachifm: I can't think of a nice middle ground myself, except using recursive-nix
c0bw3b has left #nixos []
<joachifm>
jophish: hm, I think I'm misunderstanding what you're trying to accomplish then
<jophish>
I'll explain again :)
ixxie has quit [(Ping timeout: 240 seconds)]
<Sonarpulse>
bad interpreter: /nix/store/3qag0gwlar4rsh786ff25f4zdw6vqb7d-perl-5.22.2/bin/p
systemfault has joined #nixos
<Sonarpulse>
why would removing the db case this?
<Sonarpulse>
seems...very bad lol
Sonarpulse has quit [(Remote host closed the connection)]
<jophish>
I am a developer who uses nix-shell to develop, and nix-build to build my software; of course I add a 'default.nix' and 'shell.nix' to my project I'm working on to get me all the dependencies and set up any environment my project requires. When I feel my project is in a good enough state to release to the wider world I'd like to add it to nixpkgs. Usually when this happens one would write the build instruct
<jophish>
ions and put them somewhere under 'pkgs', the point I'm wrestling here is the code duplication between the source repository of my project and what's going to go into nixpkgs.
<NixOS_GitHub>
[nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/vDYPa
<NixOS_GitHub>
nixpkgs/master 220adbb Domen Kožar: docs: fix link for python
<joachifm>
jophish: oh, so you want to add it to nixpkgs but re-use the existing expr somehow
<jophish>
In some cases it would be nice to have 'let src = fetchFromGitHub{...}; in import src;
<jophish>
joachifm: exactly.
<jophish>
This is just hypothetical, but I'm curious to see what #nixos thinks
<jophish>
But IFD isn't something which I think nixpkgs should be doing very much
<jophish>
especially when the derivation fetches source from somewhere else
<jophish>
with recursive nix this has a better story. A stub derivation is put in nixpkgs which downloads the source and runs nix-build in there, "tail recursing" into that build product
<simpson>
It sounds nice-to-have and tough-to-build.
<joachifm>
jophish: I guess the builtin fetchers are insufficient for your use?
<joachifm>
jophish: those let you refer to remote exprs at eval time fwiw
<simpson>
jophish: I know that IFD works. I'm saying that it's not pleasant to use at all. It seems to always make Hydras upset.
<jophish>
joachifm: yeah, technically this works today, in fact I do it all the time in my own projects :)
<jophish>
like simpson said, IFD is a pain :)
<jophish>
simpson: sorry, I thought you were talking about recursive nix
<jophish>
also, tell me about it! I get it every so often that hydra takes 30 minutes to evaluate my expression with no indication about what's going on.
<gchristensen>
it sort of feels like niksnut should be it
<viric>
Backups are important
Turion has joined #nixos
<viric>
One of the NAS we have has the option of backup. Then it gives you the operaetion of "check backup integrity", and it includes a flag (default disabled) that reads "Check that backup data can be retrieved".
rmeis has joined #nixos
<viric>
(network remote backup)
georges-duperon has quit [(Ping timeout: 252 seconds)]
<drakonis>
freeze commits until nix 0.12
<gchristensen>
the suspense, it is killing me
djwhitt has joined #nixos
<tjg1>
i started using nix today. i installed android-studio (in an FHS environment). running it on debian (stretch) as a non-root user gave me a permission denied error in chroot-user.rb, but it works fine on fedora. any idea why?
JagaJaga has joined #nixos
<tjg1>
btw i love how with nix i no longer have to worry about stuff like 'does this distro ship ffmpeg?'
Shou has joined #nixos
<Yaniel>
you know what I love with nixos? how the risk of a normal update making the system unbootable is not an issue anymore
<Yaniel>
or a config change doign the same for that matter
<drakonis>
yes that is nice.
<cransom>
or if it doesn't boot, unless the circumstances are extreme, getting back to a good state is trivial
<drakonis>
opensuse has that to some degree
<jophish>
I love being able to patch installed software so easily, or use a different version
<drakonis>
can't say i like opensuse's repositories though
mkoenig has quit [(Read error: Connection reset by peer)]
<drakonis>
lots of missing packages.
<drakonis>
say
<drakonis>
can i get some help updating the keepassxc derivation?
<tjg1>
i might give nixos a try once i'm more familiar with nix
<drakonis>
i can't figure out where rev = "${version}-http"; should point to instead
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to master: https://git.io/vDY9w
<NixOS_GitHub>
nixpkgs/master de172ae Robert Helgesson: copyright-update: init at 2016.1018
<drakonis>
WE'RE POPULAR
<drakonis>
a question, is it actually true that we're getting overlays or was i tripping when i was talking about it earlier
<drakonis>
because that would pretty much start eating a piece of arch and gentoo's cake
<maurer>
Haven't you been able to do informal overlays for a long time? Or do you mean a formal tool for managing them?
<drakonis>
a formal way to deal with them
<gchristensen>
a recent PR added proper overlays yes
<drakonis>
without straight up overwriting existing ones
<drakonis>
cool.
<Yaniel>
hmm what do these overlays do?
<drakonis>
basically
jensens has quit [(Ping timeout: 255 seconds)]
<gchristensen>
they let you extend nixpkgs with more packages, without doing nixpkgs.config.overridePackages
<drakonis>
yes and that owns
<maurer>
gchristensen: So uh, how is this functionally different from just having nixpkgs and mypackages in NIX_PATH with mypackages taking nixpkgs as an argument whose value defaults to <nixpkgs> ?
<maurer>
Just namespacing, or is sthere something else?
<maurer>
(This is how I was homerolling overlays on my machine before)
Shou has quit [(Ping timeout: 240 seconds)]
<drakonis>
also please push overlays to git pls
AllanEspinosa has joined #nixos
m-i has quit [(Remote host closed the connection)]
<drakonis>
after i'm done with dota, i'm going to get another DE, i can't deal with kde
<nhooyr>
is it possible to make nixops use an existing digital ocean droplet instead of creating a new one?
<drakonis>
i need some advice on getting the hash
hiratara has quit [(Ping timeout: 258 seconds)]
<drakonis>
nhooyr, someone already asked that in the past
<gchristensen>
nhooyr: set targetEnv to "none" and specify an IP
<gchristensen>
(it needs to already be running nixos)
<nhooyr>
ah cool thanks
<xwvvvvwx>
Yaniel: I might be mistaken, but previously when packaging applications with cmake based build systems I thought that nixpkgs just kinda figured everything out by itself
hiratara has joined #nixos
djwhitt has joined #nixos
djwhitt has quit [(Client Quit)]
<Yaniel>
you still need to define the actual build tool AFAIK
AllanEspinosa has quit [(Ping timeout: 248 seconds)]
<Yaniel>
try adding ninja to your buildInputs
<Yaniel>
hm cmakeFlags = "-DFOO=${out}" complains about undefined variable out
<xwvvvvwx>
Yaniel: same result, and anyway I thought cmake just defaults to make?
Phlogistique has quit [(Quit: WeeChat 1.0.1)]
<jophish>
I dind't think that ${out} existed
<NixOS_GitHub>
[nixpkgs] abbradar opened pull request #22353: Bluetooth improvements (master...bluetooth) https://git.io/vDYF8
hiratara has quit [(Remote host closed the connection)]
sellout- has quit [(Quit: Leaving.)]
Shou has joined #nixos
mkoenig has quit [(Read error: Connection reset by peer)]
hiratara has joined #nixos
mkoenig has joined #nixos
<drakonis>
Profpatsch, you missed the moment it happened
samvher has quit [(Ping timeout: 248 seconds)]
<drakonis>
it was a riot
<Yaniel>
you know it's an active repo when it's possible to miss commits
<LnL>
I didn't even realise until gchristensen pinged me, I thought we where still a while off
<drakonis>
our lucky winner ^
<nhooyr>
:+1:
Itkovian has joined #nixos
<drakonis>
wine isn't by default 2.0 on latest yet?
Shou has quit [(Ping timeout: 240 seconds)]
<Profpatsch>
heh, I tip my hat.
* Profpatsch
tips his fedora
<LnL>
drakonis: that expression looks fine, but I do get another sha
unkn has joined #nixos
AllanEspinosa has quit [(Ping timeout: 255 seconds)]
digitus has quit [(Quit: digitus)]
stepcut has quit [(Remote host closed the connection)]
Wizek_ has quit [(Ping timeout: 240 seconds)]
Wizek has quit [(Ping timeout: 252 seconds)]
stepcut has joined #nixos
ebzzry has joined #nixos
sellout- has joined #nixos
mudri has quit [(Ping timeout: 248 seconds)]
digitus has joined #nixos
stepcut has quit [(Ping timeout: 276 seconds)]
<OJFord>
If rebuilding after adding a package (from nixpkgs) says "cannot coerce a set to a string", can I have done something wrong, or is that a bug in the package's expression?
<cransom>
OJFord: well, if it worked prior to changes, its likely you did something wrong.
<LnL>
using --show-trace should give you an idea where the issue comes from
<OJFord>
cransom: What do you mean? My system works if I don't have the package in config.nix, and won't rebuild if I do
civodul has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
<LnL>
config.nix? nixos-rebuild doesn't look at that AFAIK
<OJFord>
configuration.nix, sorry just abbrev'ing
<OJFord>
It's fine without the line, but if I put any of rustNightly, rustNightlyBin, rustBeta into environment.systemPackages array, no build
<LnL>
ah then it's probably the package
<LnL>
those are sets of packages, I think you have to add rustBeta.cargo, etc.
<LnL>
using nix-repl '<nixpkgs>' is very nice to explore all the packages
mudri has joined #nixos
<LnL>
that will show you that it's an attribute set rustBeta = { cargo = ...; }
<LnL>
while other things are a dervation/package hello = «derivation ...
<NixOS_GitHub>
[nixpkgs] jgeerds closed pull request #22313: rockbox_utility: use qt5 instead of qt4 (master...f/rb) https://git.io/vDLRn
bennofs has joined #nixos
<LnL>
but I'm not sure why the error message is talking about strings instead of packages or paths, type = types.listOf types.package;
AllanEspinosa has joined #nixos
fnljk has quit [(Quit: ^?^)]
ryantrinkle has joined #nixos
Shou has joined #nixos
unkn has quit [(Ping timeout: 260 seconds)]
<tvon>
Apologies for the vagueness, but have there been notable console/vterm changes recently? I get a blank screen on boot now (in unstable), I can ssh in fine and I can figure something out, but wasn't sure if there was a common issue or not.
<Ralith>
sounds like a kms video driver issue
<ryantrinkle>
Sonarpulse: ping
<tvon>
Ralith: I'll follow that path, thanks
<tvon>
"journalctl -k" shows a ton of nouveau output
Sonarpulse has quit [(Ping timeout: 255 seconds)]
<NixOS_GitHub>
[nixpkgs] globin pushed 2 new commits to master: https://git.io/vDOTS
<NixOS_GitHub>
nixpkgs/master 0b19f2f Robin Gloster: libressl_2_4: 2.4.4 -> 2.4.5...
<NixOS_GitHub>
nixpkgs/master 2110d59 Robin Gloster: libressl_2_5: 2.5.0 -> 2.5.1...
<k0001>
gchristensen: no MITM, it's me just configuring things on both the client and the server side of this at the moment :) Anyway... I think I have set up the signing correctly on the server side. Hmmm... I'm not using the same Nix version in the server as in the client. Maybe that's the issue?
johnsonav has quit [(Ping timeout: 255 seconds)]
<drakonis>
LnL, could you send me the sha?
<drakonis>
and how am i supposed to make sure it works?
bennofs has quit [(Ping timeout: 245 seconds)]
<gchristensen>
no
<gchristensen>
k0001: you're creatingyour own hydra?
hotfuzz has quit [(Ping timeout: 248 seconds)]
<k0001>
gchristensen: this Hydra I'm working on has been running for a while, it's just that I was using the SSH substituter mechanism to share the binaries with clients, but now I'm trying to share an HTTP binary cache as well.
<k0001>
gchristensen: my store uri looks like: store-uri = file:///nix/store?secret-key=/path/to/the/secret/key/file
Tarinaky has joined #nixos
t7 has quit [(Remote host closed the connection)]
<k0001>
gchristensen: I'm using Nix HEAD on the client, by the way. I'm trying to add a feature to Nix related to this but I can't seem to fetch stuff from there.
<NixOS_GitHub>
[nixpkgs] globin created openssl-1.1 (+1 new commit): https://git.io/vDOL8
<NixOS_GitHub>
nixpkgs/openssl-1.1 941d5d6 Robin Gloster: openssl: default to openssl_1_1_0
<gchristensen>
k0001: have you always head the secret-key in the store uri?
<frumpagumpus>
in a haskell project trying to build with nix, and whilst overriding base to use version 4.8.2 (or any 4.8.*), I keep getting an infinite recursion error, anyone have experience with similar problem? Had the same problem with bytestring (which I had to override when using channel 15.09 because of version requirement conflict).
<k0001>
gchristensen: yes, and the HTTP binary cache actually worked with Nix stable before. It's failing now with Nix HEAD.
<gchristensen>
hrm.
michas has quit [(Ping timeout: 240 seconds)]
<k0001>
gchristensen: give 5 minutes, I'll just double check that the current setup works with Nix stable.
michas has joined #nixos
<gchristensen>
ok :)
justanotheruser has joined #nixos
<mudri>
Heh. I tried the distrochooser.de quiz for fun, and my top result was NixOS.
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]