<clever>
devoid: only other major difference i can see vs my config, is that i set it to open the luks before lvm
<clever>
but that wont affect grub install
<NixOS_GitHub>
[nixpkgs] ndowens opened pull request #23774: celt: Added version 0.11.1 (master...celt) https://git.io/vyKkl
markus1209 has joined #nixos
<devoid>
clever, thanks. I suspect it has something to do with my partitions, since I have never really understood the magic in how they work for UEFI boot
markus1219 has joined #nixos
<clever>
devoid: the config you gave doesnt enable efi
<c74d>
How does one determine whether a system has EFI vs BIOS?
<clever>
devoid: if you want to boot via legacy with GPT, you must create a 1mb partition with the type set to "bios boot partition"
<clever>
devoid: and if you want to boot with EFI, there must be an unencrypted fat32 for the bootloader
markus1199 has quit [(Ping timeout: 246 seconds)]
k0001_ has quit [(Ping timeout: 260 seconds)]
<clever>
devoid: and the error said exactly the same thing, "warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible"
<c74d>
(never mind on my question; looked it up)
markus1189 has quit [(Ping timeout: 257 seconds)]
<c74d>
clever: why does your kexec system automatically reboot on the hour?
<c74d>
and, can I stop it?
<clever>
c74d: if you cant get into it, it will reboot back to the previous os
<c74d>
ah
<clever>
c74d: and you can stop it with "systemctl stop autoreboot.timer"
<clever>
i was last using it in a datacenter that lacked DHCP
<c74d>
makes sense, and `shutdown -c` seems to have-- oh
<clever>
so i had to correctly configure the network perfectly
<clever>
or i had no way to remotely stop nixos
<c74d>
okay, done; thanks
<clever>
i gave it a 5 minute delay so i could always shutdown -c if i forgot
hlolli_ has quit [(Remote host closed the connection)]
amir has quit [(Ping timeout: 268 seconds)]
<clever>
that datacenter was also a "fun" test of kexec
<clever>
c74d: with past experiments on a dedicated box, i found that the dhcp gives a private ip with NAT to the web, and you must configure a static public ip manualy to be open to the web
<clever>
c74d: so i configured my vpn to connect out on bootup, using the private ip from dhcp
<clever>
c74d: only to discover, VM's get zero dhcp, and it had no routable v4 ip
<ndowens08>
hmm why does vim now only let me delete whitelines in visual instead of insert? I had to reinstall nixos due to running out of partition space and now I can't Del and white lines get deleted
<clever>
c74d: but by chance, i noticed it had an ipv6 link-local ip, and was able to get in
<clever>
ndowens08: i put my vim config into configuration.nix, so it always gets restored to the identical setup
phreedom has joined #nixos
<ndowens08>
clever: nice, i caried my configuration.nix with me when i reinstalled but not vim :\
<ndowens08>
carried*
<devoid>
clever what's the format of the "Bios Boot partion" there's no such entry in fdisk's table
desktop has quit [(Remote host closed the connection)]
eacameron has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] copumpkin opened pull request #23776: minikube: switch to build from source & mostly fix on Darwin (master...minikube-source) https://git.io/vyKIG
<ndowens08>
hmm clever it doesnt like let in my configuration.nix gives unexpected LET
<clever>
ndowens08: can you pastebin your configuration.nix?
<ndowens08>
maybe because it isnt at top
<clever>
yeah, the let ... in ... has to go before a value
<clever>
so it cant go directly inside an attrset where key=value pairs belong
<clever>
you can do key = let ... in value; but then it gets ugly
<clever>
the let block basicaly defines local constants for the value after the 'in' keyword
<clever>
you need let ... in value, not let ... in value value
<ndowens08>
weird, b/c that was how your gist looked like
<clever>
just take out lines 45 and 50
<clever>
look closer at my gist, it only has a single {} after the in keyword
<ndowens08>
for the in
<clever>
that {} is the entire body of the file
<clever>
there is nothing after it
<ndowens08>
ah
<clever>
i load that via imports = [ ./vim.nix ];
<clever>
so i can reuse it without changes between many machines
amir has joined #nixos
marsam has joined #nixos
<devoid>
I'm still getting this grub-install error even after repartitioning and making /dev/sda1 a 1MB partition… /dev/sda2 being the luks + lvm partition
<devoid>
Do I need to format /dev/sda1 as something?
<clever>
devoid: no, let me find a command to inspect it
<clever>
devoid: you may need to turn off secureboot and enable the compatability module
<clever>
devoid: does it say GRUB when booting?
Rizy has joined #nixos
bennofs has quit [(Ping timeout: 264 seconds)]
<c74d>
clever: to use ZFS on a BIOS system, do I need a non-ZFS boot partition?
* c74d
lacks familiarity with ZFS+BIOS
<ndowens08>
Does libgroove compile for you guys, nix-build -A libgroove updating a library, the one i updated builds fine but libgroove fails with nox-review wip and also just nix-build -A libgroove
<clever>
c74d: ive only ever done it with a ext4 /boot, but the nixos modules imply it can work without that
<ndowens08>
So i dont think it is b/c of my update
iyzsong has joined #nixos
eacameron has quit [(Remote host closed the connection)]
<Rotaerk>
hmm if I'm printing out usage information, how should I represent required argument X *or* Y
<ndowens08>
can someone verify?
<Rotaerk>
blah [<a> | <b>] -- I think this means <a> or <b> but optional
danharaj has quit [(Ping timeout: 264 seconds)]
<ndowens08>
nah nvm it seems to be the update
mbrgm has quit [(Ping timeout: 256 seconds)]
eacameron has joined #nixos
<Rotaerk>
maybe I'll do... <a | b>
mbrgm has joined #nixos
exarkun has quit [(Read error: Connection reset by peer)]
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
Rizy has quit [(Quit: Rizy)]
eacamero_ has quit [(Ping timeout: 240 seconds)]
exarkun has joined #nixos
phreedom has quit [(Ping timeout: 260 seconds)]
eacameron has joined #nixos
<devoid>
clever, no grub, this is on a 2011 MacbookPro that I'm repurposing.
<devoid>
time to throw in the towel for the night though.
<paperd>
Does anyone know about GTK+ 3.22?
<clever>
devoid: ah, i think the macbook's dont support legacy booting
<clever>
devoid: so it needs an unencrypted fat32 /boot partition for efi use, and boot.loader.grub.efiSupport = true; and grub.device = "nodev";
<c74d>
Hm, does making a NixOS module's `imports` attribute depend on configuration options from other modules necessarily cause infinite recursion?
<clever>
c74d: the config argument passed to every module, is the result of inteligently merging the .config attribute RETURNED by every module
<clever>
c74d: so you are getting your own return value as an argument
<clever>
c74d: as long as nix can figure out the key names within your .config attrset, it can compute which module to route into, and lazy its way around the problem
<iclanzan>
Hi guys! I would really appreciate some help with changing the xserver cursor theme. I am using i3wm and normally setting `Xcursor.theme` in `.Xresources` would do it but because NixOS doesn't install icon themes in `/usr/share/icons` or `~/.icons` this doesn't work. Any ideas?
spleeder has joined #nixos
spleeder has quit [(Client Quit)]
Wizek has joined #nixos
Wizek_ has joined #nixos
hexagoxel has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub>
[nixpkgs] ehmry pushed 1 new commit to master: https://git.io/vyKqx
<c74d>
nixos-install is building gtk+ on my new headless VPS. Can I avoid this? If so, how?
devoid has joined #nixos
iclanzan has joined #nixos
spleeder has joined #nixos
<iclanzan>
Anyone here have any experience changing the mouse cursor theme in Xorg? I am using i3wm and normally setting `Xcursor.theme` in `.Xresources` would do it but because NixOS doesn't install icon themes in `/usr/share/icons` or `~/.icons` this doesn't work. Any ideas?
spleeder has quit [(Client Quit)]
stepcut has quit [(Remote host closed the connection)]
devoid has quit [(Quit: Leaving.)]
devoid has joined #nixos
paperdigits has quit [(Quit: WeeChat 1.0.1)]
eacameron has joined #nixos
stepcut has joined #nixos
Rizy has quit [(Quit: Rizy)]
Rizy has joined #nixos
stepcut has quit [(Ping timeout: 246 seconds)]
<devoid>
anyone know how to get systemd-boot to mount a luks volume?
hexagoxel has quit [(Ping timeout: 260 seconds)]
systemfault has joined #nixos
hexagoxel has joined #nixos
mizu_no_oto has joined #nixos
devoid has quit [(Quit: Leaving.)]
nh2 has quit [(Quit: Leaving.)]
Rizy has quit [(Quit: Rizy)]
spacekitteh has quit [(Ping timeout: 264 seconds)]
<contrapumpkin>
is the nixpkgs go not able to cross-compile properly?
<contrapumpkin>
err, not even cross-compile actually
tnks has quit [(Ping timeout: 246 seconds)]
tnks has joined #nixos
spacekitteh has joined #nixos
hexagoxel has quit [(Ping timeout: 260 seconds)]
SuprDewd has joined #nixos
hexagoxel has joined #nixos
<Havvy>
I'm not getting `nix-env -i nodejs-7_x -f ~/workspace/nixpkgs` to work, even though `nix-env -i nodejs -f ~/workspace/nixpkgs` does.
<Havvy>
error: selector ‘nodejs-7_x’ matches no derivations
spacekit1eh has joined #nixos
<Havvy>
What am I doing wrong?
ok2` has quit [(Ping timeout: 240 seconds)]
spacekitteh has quit [(Ping timeout: 260 seconds)]
Rizy has joined #nixos
RchrdB has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
eacameron has quit [(Remote host closed the connection)]
iclanzan has quit [(Quit: WeeChat 1.7)]
dbmikus has joined #nixos
dbmikus has quit [(Ping timeout: 246 seconds)]
filterfish has quit [(Remote host closed the connection)]
dbmikus has joined #nixos
dbmikus has quit [(Ping timeout: 260 seconds)]
endformationage has quit [(Quit: WeeChat 1.6)]
olejorgenb has joined #nixos
devoid has joined #nixos
MP2E has quit [(Quit: night)]
hexagoxel has quit [(Ping timeout: 260 seconds)]
filterfish has joined #nixos
hexagoxel has joined #nixos
devoid has quit [(Quit: Leaving.)]
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vyK3y
<NixOS_GitHub>
nixpkgs/master e18d518 Peter Hoeg: heroku-cli: 5.6.14 -> 5.6.32
elninja44 has joined #nixos
griff_ has joined #nixos
hexagoxel has quit [(Ping timeout: 260 seconds)]
griff_ has quit [(Ping timeout: 246 seconds)]
hexagoxel has joined #nixos
mg_ has quit [(Ping timeout: 264 seconds)]
mg_ has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vyKsg
<NixOS_GitHub>
nixpkgs/master c9d8ae0 Vincent Laporte: ocamlPackages.ocaml-migrate-parsetree: init at 0.5...
<zetok>
contrapumpkin: has the search functionality been improved compared to version in 16.09 ?
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vyKsa
<clever>
zetok: and because the vim config is in a nix string, i could include ${./foo.cfg}
<clever>
and when that string gets compiled, it will turn into a storepath
<zetok>
k
<lezed1>
I have a question about getting the headers for packages. I'm trying to compile a program with eigen3, but pkg-config cannot find the headers. I had a similar problem with ncurses, and I solved that by adding the ncurses.dev packge. Is there somethign similar for eigen?
<clever>
lezed1: just put eigen into the buildInputs
<clever>
lezed1: and the same for ncurses, dev is the default output
<lezed1>
I'm not aware of buildinputs, but it looks like something I should specify for nix-shell (which I am currently using)
<clever>
lezed1: just run nix-shell -p eigen ncurses pkgconfig
<clever>
that will give you a shell with those 3 things available, without having to install them globally
<NixOS_GitHub>
[nixpkgs] zetok opened pull request #23789: gresecurity: correct kernel parameter docs to use an existing option (master...docs-grsec) https://git.io/vyKGI
spacekit1eh has quit [(Ping timeout: 268 seconds)]
Fuuzetsu has joined #nixos
<zetok>
welp, time to check whether rebooting vm with grsec on would work this time
dredozubov has quit [(Ping timeout: 245 seconds)]
filterfish has quit [(Ping timeout: 240 seconds)]
joneshf-laptop has joined #nixos
g0d355__ has joined #nixos
dredozubov has joined #nixos
<c74d>
Does NixOS package any Web browsers with support for Java applets?
<lezed1>
clever: so putting the packages in the nix-shell command worked, but making them all global packages didn't. Why is that?
Rizy has quit [(Quit: Rizy)]
<zetok>
huh, surprisingly booting with grsec on works
hexagoxel has quit [(Ping timeout: 260 seconds)]
hexagoxel has joined #nixos
<yurrriq>
Can anyone link me to advice on building Xcode projects on Darwin? I've been struggling with it quite a bit. LnL?
stepcut has joined #nixos
<yurrriq>
Also I've created the nix-hackers org on GitHub to collect my forks and interesting "unofficial" projects I come across and use. Let me know if you want to be added.
<yurrriq>
^ hit and run, but I'll scroll up tomorrow
griff_ has quit [(Ping timeout: 260 seconds)]
deepfire` has joined #nixos
mojjo has joined #nixos
stepcut has quit [(Ping timeout: 240 seconds)]
alebatt has joined #nixos
spacekitteh has quit [(Quit: leaving)]
hexagoxel has quit [(Ping timeout: 260 seconds)]
<srk>
qknight: o/ found you in git remote of nixpkgs located on odroid xu4 :D
hexagoxel has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vyKGF
<NixOS_GitHub>
nixpkgs/master f5a5516 Rommel M. Martinez: emem: 0.2.34 -> 0.2.35
cfricke has joined #nixos
cfricke has quit [(Client Quit)]
cfricke has joined #nixos
alebatt has quit [(Ping timeout: 246 seconds)]
<sphalerite>
Is there some way to get an index of all the files in the nix store and update it incrementally as paths are added/removed?
derjohn_mob has joined #nixos
<sphalerite>
Also, is there a particular reason packages in buildInputs get added to $PATH (whereas AFAIU only nativeBuildInputs should)?
<zetok>
hmm, hangul input via ibus doesn't seem to work
hlolli has joined #nixos
<zetok>
no, nvm, it does work
catch22 has quit [(Remote host closed the connection)]
hexagoxel has quit [(Ping timeout: 256 seconds)]
hexagoxel has joined #nixos
mudri has joined #nixos
kampfschlaefer has joined #nixos
<mojjo>
does anybody know what to do when the top command gives me '*** buffer overflow detected ***: top terminated' ?
elninja44 has quit [(Remote host closed the connection)]
zraexy has quit [(Ping timeout: 258 seconds)]
avn has quit [(Quit: Lost terminal)]
hexagoxel has quit [(Ping timeout: 260 seconds)]
hexagoxel has joined #nixos
JagaJaga has joined #nixos
<hlolli>
wow, node-gyp is a mothaf* pain. I can't install it with npm or npm2nix, it's always complaining. Been tackling this for almost 24hours.
avn has joined #nixos
<hlolli>
build scripts ar relying on the existance of the binary `node-gyp` so `node-gyp rebuild` always fails.
deepfire` has quit [(Ping timeout: 268 seconds)]
<srk>
nodejs world is full of such stuff
systemfault has quit [(Quit: Bye!)]
lezed1 has quit [(Remote host closed the connection)]
<avn>
Folks, any others expirienced firefox segfaulting on start in master?
joneshf-laptop has quit [(Quit: Leaving)]
alebatt has joined #nixos
hlolli has quit [(Remote host closed the connection)]
kini has quit [(Ping timeout: 240 seconds)]
thc202 has joined #nixos
[0x4A6F] has quit [(Ping timeout: 264 seconds)]
kini has joined #nixos
[0x4A6F] has joined #nixos
<viric>
clever, Dezgeg[m]: where are your arm hydras?
<srk>
speaking of arm
<srk>
I'm trying to make odroid xu4 work with master, no dice yet
<ocharles>
interesting. $ fc-match Fontconfig error: line 1: not well-formed (invalid token)
<ocharles>
That seems to be trying to open /etc/fonts/2.11/fonts.conf, and that is an empty file
mudri has quit [(Ping timeout: 268 seconds)]
eacameron has joined #nixos
<srhb>
ocharles: Is it a nix store symlink though? How did you define your fonts?
<ocharles>
yep, /etc/fonts is a symlink as expected
<ocharles>
I have nothing particular in my configuration.nix
<avn>
Folks, anyone expirienced firefox segfaulting on start in master? (sorry for repeating crying)
dbmikus has joined #nixos
<srhb>
ocharles: I'll try blanking my fonts list and see if I get the same. Is it a recent commit?
<ocharles>
Whatever the latest 17.03 channel has
<ocharles>
srhb: my /etc/fonts goes to /etc/static/fonts - does yours?
<srhb>
ocharles: Yep
<ocharles>
ok
<ocharles>
(/etc/static/fonts points into the nix store)
eacameron has quit [(Ping timeout: 246 seconds)]
<srhb>
ocharles: I tried making my fonts an empty list, and the file still has contents.
<srhb>
Not sure what's happening for you
<ocharles>
I'm going to empty my configuration.nix and use build to see what's going on
simendsjo has joined #nixos
<ocharles>
Yep, I get the same empty 2.11 file with an empty configuration.nix :|
<ocharles>
ade5837 is the commit, I think
dbmikus has quit [(Ping timeout: 260 seconds)]
<ocharles>
srhb: do you have any `fonts` options?
dbmikus has joined #nixos
dbmikus has quit [(Ping timeout: 260 seconds)]
mariusp has quit [(Remote host closed the connection)]
<ocharles>
Also, if you `nix-build -A fontconfig`, what is in result/etc/fonts/2.11/fonts.conf?
mariusp has joined #nixos
<ocharles>
err, `nix-build -A fontconfig.out` and `result/etc/fonts/fonts.conf` even
<yorick>
does golly not work for anyone else?
<yorick>
it doesn't seem to be drawing anytghing
<yorick>
ocharles: (you have no fonts and you must scream)
civodul has joined #nixos
cfricke has quit [(Quit: WeeChat 1.7)]
<srhb>
ocharles: It has contents, do you need them all?
Mic92 has quit [(Read error: Connection reset by peer)]
<ocharles>
no, just knowing it's non empty is enough. I wonder why you get something and I don't
Mic92 has joined #nixos
<srhb>
ocharles: Indeed. I'm on ade58373509ec32b7ab72040986e93aa2d074c74 by the way
takle has joined #nixos
k0001_ has joined #nixos
<LnL>
ikwildrpepper: niksnut: there seems to be an issue with hydra
mariusp has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nix] shlevy closed pull request #1266: Add option to disable import-from-derivation completely, even if the drv is already realized (1.11-maintenance...1.11-allow-import-from-derivation) https://git.io/vyu5S
<NixOS_GitHub>
[nix] shlevy pushed 2 new commits to master: https://git.io/vyKuT
<NixOS_GitHub>
nix/master 5789eaa Shea Levy: Add aws-region param to S3 store URLs
<NickHu>
Hey, I just did a fresh install of nixos, but I'm trying to preseve my existing home partition
<NickHu>
When installing packages with nix-env -i as a normal user, I get error: opening lock file ‘/nix/var/nix/profiles/default.lock’: Permission denied - any ideas?
<NickHu>
Never mind - turned out my ~/.nix-profile wasn't being created by the shell login because it already existed and pointed to the wrong thing
ndowens08 has joined #nixos
mariusp has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
alx741 has joined #nixos
<ndowens08>
/join #git
spinus has joined #nixos
<Mic92>
in weechat you can strip leading whitespaces from messages
<ndowens08>
:) probably hit space by accident; Trying to find out how to fix what I think causes me to mess up my forked copy of nixos/nixpkgs
<ndowens08>
I can go into master fetch upstream and merge, go into a branch for a package and it says origin/master have divereged; 1 and 17 different commits each; if I pull well i believe that messes it up
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 5 new commits to master: https://git.io/vyKgw
<NixOS_GitHub>
nixpkgs/master 453529b Rodney Lorrimar: nodePackages: support github:owner/repo scheme for package deps...
<ndowens08>
no afraid to do any git pull at all inside a branch when it is talking about origin master. It tends to pull master into a branch and say repo is so many commits ahead of nixos/nixpkgs which causes me have to wipe my forked
<ndowens08>
because i dont know how to fix that
<Mic92>
ndowens08: if you have any n commits, you want to rebase against a newer version, you can do: git rebase --onto origin/master HEAD~4 HEAD (where for 4 should be replaced by the number of commits you made and origin/master is the branch you want to update against)
<Mic92>
this works pretty well
<Mic92>
also if you ever mess up something
<Mic92>
there is git reflog
<ndowens08>
so it would be 17 commits, since it says and have 1 and 17
<Mic92>
ndowens08: just count the number of commits you made
<Mic92>
not what git reports
<Mic92>
I also can recommend tig
<Mic92>
instead of git.
fnljk has joined #nixos
<Mic92>
Which I use to browse commits
<ndowens08>
it shows 1-69 where 69 is where i cloned it
<Mic92>
so you have 69 commits?
<Mic92>
made?
<ndowens08>
supposedly, and i dont know how
<ndowens08>
i only update the package add, commit -m and push
<Mic92>
xwvvvvwx: boot.extraModulePackages = [sysdig]; and sudo nix-shell -p sysdig --command "sysdig -c proc_exec_time" might give you insights, what is executed by cmake
<Mic92>
or just strace -e execve -f <command>
<ronny>
LnL: ot sure i follow, this certainly wont fix my actual problem
<ronny>
(im a a place where the networking hostname is not availible as i have to pick the module containing it)
rmrfroot has joined #nixos
<LnL>
ok, so where does the identity of a machine come from?
<Mic92>
you have to break up your infinite recursion
takle has joined #nixos
griff_ has quit [(Quit: griff_)]
griff_ has joined #nixos
<LnL>
ronny: you could do something like that, and build with -I machine-config=/foo.nix
<ronny>
LnL: hmm, that would need a custom build script i suppose :/
<ronny>
hmm, i def can come up with something tho
<LnL>
ronny: you can configure nix.nixPath so you'd only have to do that to bootstrap
steshaw has quit [(Quit: Connection closed for inactivity)]
rmrfroot has quit [(Remote host closed the connection)]
mariusp has joined #nixos
xwvvvvwx has quit [(Ping timeout: 260 seconds)]
stepcut has quit [(Remote host closed the connection)]
<ronny>
LnL: now that one is interesting
toogley has joined #nixos
toogley has left #nixos ["Leaving"]
athan has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] rvl opened pull request #23797: scala: put docs in correct subdirectory (master...scala-docs-subdir) https://git.io/vyKr0
jeremejevs has quit [(Ping timeout: 260 seconds)]
takle has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
xwvvvvwx has joined #nixos
smw_ has joined #nixos
<smw_>
clever: you around? :-)
<clever>
smw_: yes
<smw_>
clever: ever find an sdcard reader? :-)
<clever>
nope
grahamc has quit [(Ping timeout: 260 seconds)]
<smw_>
clever: got any tips for me to try. I am right now at a point where I simply don't know what to try
<clever>
smw_: do you have control of the DHCP server?
<smw_>
it is a fios router... I have a login, but what do I need to control?
<clever>
advance stuff that no home router gives you control over
<smw_>
clever: ok, give me an idea and I setup dnsmasq :-)
<clever>
one crazy route we could take, disable the dhcp in the router, then setup your own dhcpd in nixos, that still says to use the router as a gateway
<clever>
then you could in theory, configure network booting for the rpi
<clever>
that would allow you to boot the rpi3 over the network from a dir containing ~6 files
<Criena[m]>
Hi there, does anyone have an idea how to add python to a packge (or to a package's path)?
<smw_>
ah, that makes sense. No USB, no SD... but I haven't tried network!
<clever>
smw_: when i was doing it, the uSD had to contain only bootcode.bin and no other files
<Criena[m]>
Background: I have nginx running and use a python script for LDAP auth. With NixOS this doesn't work so far.
<clever>
there are still some bugs the rpi foundation is ironing ou
<clever>
t
<srk>
rpi foundation is useless
<clever>
Criena[m]: systemd.services.nginx.path = [ pkgs.python ]; should add python to $PATH for the nginx service
<clever>
srk: ive been following them in #raspberrypi-internals
<srk>
cool! just looking there's some progress
estewei has quit [(Quit: Quit)]
<mitchty>
how do i get nix-env to dump out the curl error responses? trying to debug nix-env getting curl errno 35 everytime it tries to connect to hydra
<srk>
clever: btw viric mentioned you, we were trying to overcome some infinite recursions on arm :)
<clever>
mitchty: what happens if you just manualy run curl on the same URL as near the error msg?
<clever>
srk: platform?
<srk>
clever: I'm trying to update odroid xu4 to 17.03
<smw_>
clever: err, I don't want to blow that special fuse... just PXE boot with uboot
<clever>
srk: this is how i fixed the platform problems
<srk>
clever: ahaaa
<srk>
shoud've checked last log :D
<clever>
smw_: ahh, thats a lot more flexible and wont need special dhcp config
<smw_>
heh
<srk>
let me try
<ndowens08>
clever: if I want to temporary remove a binary from a package I am building, because it gives segment fault(submitted ticket), how would I do that, figure it would be in postInstall rm bin/NAME but it doesnt work
<clever>
smw_: u-boot can read config files and just load it from the right place
<clever>
smw_: but the boot rom in the rpi has no config
<smw_>
clever: yeah, I have uboot working.
<smw_>
clever: yeah, but uboot works
<clever>
ndowens08: which derivation are you trying to override?
<NickHu>
Quick survey, how many people use nixos-unstable rather than 16.09?
<smw_>
clever: ah crap, that would have bad kernel modules when it eventually boots... is there a way to prevent loading of modules?
<ndowens08>
the current one in the repo doesnt seem to build at all, so this version all binaries work except that one
<clever>
smw_: proper cross-compiling is tricky with nixpkgs, it considers it a different build, so native nix-env -iA will refuse to use the cross-built glibc and so on
<clever>
smw_: so you wind up having to build everything twice, natively and cross
<smw_>
clever: oh, I am thinking of ignoring nix
<clever>
smw_: i usualy go the route of a "native" arm build, under qemu-user
<smw_>
clever: download the rpi kernel and cross compile using their instructions
<clever>
ndowens08: line 33 is your problem, you are trying to reference your own return value
<NickHu>
How can I get my luks key /crypto_keyfile.bin into the initrd? I'm trying boot.initrd.prepend, but it gives me a No such file or directory error for some reason
chrishill has joined #nixos
<clever>
NickHu: unquote the path in the config for luks, and nix will automaticaly do all the copying for you
<clever>
NickHu: the key will also be world readable in /nix/store/
<chrishill>
Hi. I want to try to package an application that is written in Rust. Where should I look for instructions on something like that? Ive never packaged anything before.
kini has joined #nixos
<joachifm>
NickHu: you can use extraInitrd, it's for stuff that shouldn't be copied into the store
<NickHu>
I'm not hugely bothered about it being in the store to be honest, this machine is single user anyway
<NickHu>
I'm just trying to alleviate having to decrypt my drive twice; once before grub, once after (encrypted /boot)
<joachifm>
NickHu: agreed, but to some it might be a concern ... hence extraInitrd :)
batdog has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vyK6D
<NixOS_GitHub>
nixpkgs/master d2e30a7 Karn Kallio: eigen : Fix an extra slash.
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vyK6y
<NixOS_GitHub>
nixpkgs/master 4c211bd Joachim Fasting: grsecurity: 4.9.13-201703052141 -> 4.9.14-201703121245
<NixOS_GitHub>
nixpkgs/master 8091c1b Joachim Fasting: linux_4_9: 4.9.13 -> 4.9.14
<smw_>
clever: completely different topic: how hard is it to apply the nix expression language to other systems? For example: writing kubernetes configs with it.
<clever>
smw_: the nginx configs in nixos are pretty powerful
<smw_>
clever: I noticed :-)
eacameron has joined #nixos
<smw_>
clever: I am asking if I wanted to completely ignore nixos.
<clever>
smw_: should be possible
<smw_>
clever: is there a guide to using nixlang elsewhere?
<clever>
smw_: that should be in the main nix docs
<NickHu>
Okay, I merely added boot.initrd.luks.devices.<name>.keyFile = "/crypto_keyfile.bin"; but it fails to find it at boot time
<smw_>
clever: kubernetes uses a declarative configuration. The only problem is it expects yaml (json is yaml, so that works too)
<srk>
hmhm. I'm trying to design a language for configuration management, wanted to replace ansible/salt with that but nix changes everything..
<clever>
smw_: i can whip up an example in a minute
<c0ff33>
Hey
<srk>
still, it's not ideal language for "the masses"
<NixOS_GitHub>
[nixpkgs] vcunat pushed 4 new commits to staging: https://git.io/vyKic
<NixOS_GitHub>
nixpkgs/staging b8685dd Vladimír Čunát: cups: 2.1.4 -> 2.2.2...
<NixOS_GitHub>
nixpkgs/staging 2e4c571 Vladimír Čunát: cups: minor expression refactoring
<NixOS_GitHub>
nixpkgs/staging 50fadc8 Vladimír Čunát: cups: split the $lib output...
ertesx has joined #nixos
<c0ff33>
had someone used X11 forwarding nixops virtualbox deployment?
<Yaniel>
srk: imagine QML but for configuration instead of GUI ^^
<smw_>
srk: yeah, I always wanted something like nixos. I just didn't know it. I tried ansible, salt, chef, puppet. The issue with all of them is that I cound't trust them after the initial build.
<simpson>
srk: What would the masses like?
<Yaniel>
granted, nix is pretty close, but there are some weird parts (or just a lack of good tutorials)
<simpson>
srk: Keep in mind that we're unlikely to alter stuff like POLA or build purity.
<smw_>
clever: don't go through the trouble now. I may ask you in the future though :-)
<srk>
simpson: something that easier to write but yields similar results :)
<srk>
iterative cfm is just bad
<simpson>
srk: Okay, yes, but could you be specific?
takle_ has quit [(Read error: Connection reset by peer)]
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vyKia
<NixOS_GitHub>
nixpkgs/master 3c37edb Joachim Fasting: tinycc: 0.9.27pre-20170220 -> 20170225...
<srk>
maybe I'll realize it's all good the way it is, just need to port some stuff to nixos
takle has joined #nixos
devoid has quit [(Quit: Leaving.)]
<simpson>
I'm not saying that at all. I *am* saying that there are some design decisions in Nix which aren't likely to budge. I'm also, as a language designer, curious about exactly which features you're looking for.
ertes has quit [(Ping timeout: 268 seconds)]
devoid has joined #nixos
deepfire` has joined #nixos
devoid has quit [(Client Quit)]
ertesx has quit [(Ping timeout: 240 seconds)]
<srk>
simpson: something very concise, with simple templating, possibility to override things easily
<srk>
trying to port one of my ansible roles to my wannabe language
<clever>
srk: writing it now
<srk>
no hurry, I've got time :D
devoid has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel pushed 2 new commits to master: https://git.io/vyKiy
<NixOS_GitHub>
nixpkgs/master 8cc1035 Orivej Desh: kcachegrind: init at 16.2.2
<NixOS_GitHub>
nixpkgs/master 28e78fd Thomas Tuegel: Merge pull request #23766 from orivej/kcachegrind-kdelibs...
devoid has quit [(Client Quit)]
<srk>
I'm also interested in every bit of feedback/experience you've people got, so :)
devoid has joined #nixos
c0ff33 has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub>
[nixpkgs] ttuegel closed pull request #23755: krfb: expose kde 5 version (master...krfb) https://git.io/vyoDv
<NickHu>
How do I make boot.initrd.prepend work? It just gives me a no such file or directory error
deepfire` has quit [(Ping timeout: 246 seconds)]
mariusp has left #nixos []
<clever>
NickHu: if you unquote the path, nix will automaticaly copy it into the build sandbox, and it has to already be a CPIO archive
<NickHu>
clever: It just gives me a type error saying I'm not passing it a string if I unquote the path
<clever>
what exactly did you put into the config?
<ndowens08>
Looking at https://github.com/OpenSC/engine_pkcs11 the README says that the library has been merged into libp11, shouldn't engine_pkcs11 be removed now?
<NickHu>
I also tried with a cpio archive too, same error
<clever>
does the file exist at that path on the main system?
<NickHu>
Yes
<simpson>
srk: It's not obvious what the colon does. Indentation appears to work like it does in Haskell or CoffeeScript, which can be very confusing if there's not much surrounding syntax. It's not clear whether ? is an operator.
<clever>
what if you unquote it and dont make it an array?
<srk>
simpson: its just a note about variables that should be infered
<NickHu>
clever:error: The option value `boot.initrd.prepend' in `/etc/nixos/configuration.nix' is not a list of strings.
<simpson>
srk: Sure, but how is it parsed? Is it a block, with `infer:` as the head and `os_distro`, etc. as the body?
<smw_>
clever: good news: the pi isn't overheating so it probably isn't kernel panicing
<clever>
ah, what about boot.initrd.prepend = [ /crypto_keyfile.bin ]; ?
<smw_>
clever: bad news. I have to say "probably" because there is no uart output again
<srk>
simpson: it shouldn't really be part of the file, more like standard environment
<simpson>
srk: Okay, so that's a nice segue into semantics. Nix tries to not have *ambient authority*.
<NickHu>
clever: error: The option value `boot.initrd.prepend.[definition 1-entry 1]' in `/etc/nixos/configuration.nix' is not a string.
<srk>
simpson: you need to parse etc/os-release to get these which requires interaction with the host
<srk>
I see
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to release-17.03: https://git.io/vyKPG
<NixOS_GitHub>
nixpkgs/release-17.03 b45aee4 Thomas Tuegel: Merge pull request #23766 from orivej/kcachegrind-kdelibs...
<clever>
NickHu: it can be forced: boot.initrd.prepend = [ "${/crypto_keyfile.bin}" ];
<simpson>
srk: I won't bore you with the full introduction to capability theory, but basically Nix tries to only have authority over stuff in the filesystem when it's been explicitly granted.
<srk>
simpson: also I'm not (yet) ditching other distros, but ideally I would like all of them to work with the same cfm tooling. nix/nixos makes a lot stuff easier though
<smw_>
clever: yep, I am stuck. Hooked up to the tv again. I have output but 1. it is too fast to debug and 2. no terminal
<simpson>
srk: Ah. I personally have given up on other distros.
<srk>
well, I'm starting to consider rest of them inferior so maybe it's just a matter of time :D
<srk>
the thing is, I've got multiple salt/ansible based projects and not sure about these
<srk>
and the stuff that is the most painful with ansible is that it is 1) painfully slow, 2) not reproducible, 3) tons of ballast that can be easily generated
ertes has left #nixos ["ERC (IRC client for Emacs 25.1.1)"]
<smw_>
clever: this kernel doesn't even power the keyboard
<NickHu>
clever: Is the input supposed to be a gz compressed cpio?
<clever>
smw_: did you enable the bcm usb stack in "make menuconfig" ?
<clever>
NickHu: i believe it should be
<smw_>
clever: I used the prebuilt kernel
mg_ has joined #nixos
<clever>
smw_: ah, not sure about that one, it may need some dtb files to enable that hardware
<clever>
smw_: and u-boot has to load the right dtb, to tell it what hardware exists
<smw_>
yeah, already set that up
<srk>
clever: care to explain?
obadz has joined #nixos
<clever>
srk: app1.nix is where you define all of the options for your app, exactly as you would in a normal nixos module
<ndowens08>
Is it normal for a package to spit out two packages ? I updated libp11, it creates /nix/store/4grkr77jqndscq400r5vgf61zvdyj7w7-libp11-0.4.4/nix/store/{*-libp11-0.4.4, *-openssl-1.0.2k/lib/engines/*pkcs11
<clever>
srk: and it generates a script on line 15, that will setup env variables and execute the app, possibly referencing a config file also built by nix
<clever>
srk: default.nix and common.nix are just support framework to glue it together
<srk>
I see
<clever>
srk: and then config.nix is where you put the actual config, just like configuration.nix
<srk>
heh, reminds me of
<clever>
srk: and if you then nix-build -A config.system.build.app1, it will compile the bash script on line 15
<clever>
and that bash script has full use of the entire options/config framework that powers nixos
<srk>
nice
<clever>
but your not making any use of nixos modules
<clever>
in theory, it will even work on darwin
<clever>
you can also use imports in config.nix, and make your config as fun as you want it
<srk>
thanks!
<clever>
or load app2.nix and reference it from app1
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vyKXz
<clever>
srk: line 17 may need some tweaking, i went the ultra-pure route, so $PATH only has exactly what you reference, and nothing from the host can leak in
<ndowens08>
I have never seen a package I have update do that
<srk>
cool
<clever>
srk: so either append to $PATH, or add more things you use to the buildEnv
<clever>
srk: you can do ''cp -vi ${./configuration.nix} /etc/nixos/configuration.nix''; in a configuration.nix file
<obadz>
hydra website seems to be down?
<clever>
srk: and that will copy it current value to the right folder, if ran on bootup
<srk>
I think I've tried that but didn't work
<srk>
clever: it builts openvz template, there's no etc on boot /o\ :D
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to release-17.03: https://git.io/vyKXM
<ndowens08>
clever: do you think i should mark as broken or delete enginepkcs11, as the github msg says that libp11 version 0.4.0 and later has merged from engine_pkcs11 library into libp11?
<ndowens08>
i dont think there is anything that depends on engine_pkcs11 directly
<clever>
ndowens08: no idea, would need to know more context first
<viric>
clever: Dezgeg: the infinite recursion in master/17.03 is due to an old nix?
<viric>
I have 1.11.4
<viric>
(raspberrypi2
<viric>
)
<srk>
simpson: are there any other languages you're working on? I'm also thinking about giving a DSL for distro testing another shot, possibly replacing perl stuff in nixos tests
<ndowens08>
the current url and download location for those two doesnt exist anymore either, so i found it on github
<ndowens08>
yea according to nox-review nothing is used against it
<Dezgeg>
hm, I think clever had some pointers (in the backlog) on infinite recursion with nixpkgs.config.system
<clever>
viric: i think the cause was somebody changing how nixpkgs works, and they didnt test pkgs = import <nixpkgs> { platform = pkgs.platforms.foo; }
<ndowens08>
Just submited PR for libp11 0.4.4
<viric>
clever: which is what I use
<ndowens08>
so that would contain the other library now
<srk>
simpson: interesting, I'm only starting with language design. would you recommend some reading? I've only acquired Types and programming languages so far
<viric>
I'm about to test, because I can't build any 16.09
<clever>
viric: can you gist your nix file and the --show-trace?
<viric>
nixpkgs config you mean?
<viric>
I'm building -A nix '<nixpkgs>'
<simpson>
srk: I did a *lot* of practical work, but very little book-reading. I recommend learning one language each from the families of Forth, Smalltalk, Prolog, and ML, if you haven't already. Learn how their compilers work.
<NixOS_GitHub>
[nixpkgs] ndowens opened pull request #23804: enginepkcs11: libp11 version 0.4.0 and above contain enginepkcs11 (master...enginepkcs11) https://git.io/vyK1X
<clever>
viric: yeah, the config.nix and the traceback from --show-trace
<simpson>
Personally, from those families, I'd recommend Factor, Python, Prolog, and Haskell.
<srk>
yeah, only factor is missing
<srk>
:)
<viric>
clever: my config.nix only has the platform line you wrote, for raspberrypi2
<clever>
viric: oh, i think i see the problem
<clever>
viric: because you are doing it in config.nix, not configuration.nix
<clever>
wait nvm
<clever>
import <nixpkgs> { config = {}; }; this should force the 2nd nixpkgs to have no config.nix file
<srk>
simpson: but I still need to dig deeper even to the rest of the languages compilers. I'm doing some easier stuff meanwhile like DSL for openscad or G-code generation
<smw_>
viric: lol. I was hoping you had whatever you used to build that sd card.
<smw_>
viric: maybe it has something I am missing.
takle has quit [(Remote host closed the connection)]
<smw_>
viric: there is no example of building an rpi2 image anywhere.
<viric>
smw_: I created the images by using a loopback device, partitioning it, and running nixos-install from py pi2 nixos
<smw_>
ah
<viric>
no scripted at all
<viric>
clever: are you checking your output path hashes with Dezgeg's, for arm? :)
<clever>
92edcb7ebbf5b4b324288ec62bebbc58a3f96ef6 is the first bad commit
<clever>
viric: not currently
<viric>
clever: I don't know that ericson
<viric>
I'm happily trusting Dezgeg repo :)
<viric>
it's the first time I take arm binary packages
takle has joined #nixos
<srk>
you'll rebuild everything anyway so unless there's some persistence in compiler :D
anelson has joined #nixos
<anelson>
hey guys, any idea why the rustStable in current nixpkgs is so old (1.11.0)?
<viric>
srk: there is meant to be
<justanotheruser>
why am I getting the error error: PAM: Authentication failure for illegal user user from 192.168.1.211 Failed keyboard-interactive/pam for invalid user user from 192.168.1.211 port 43938 ssh2 for https://paste.debian.net/plain/919395
<viric>
justanotheruser: someone is ssh-ing you trying the username 'user'
<justanotheruser>
viric: I am
Judson1 has quit [(Remote host closed the connection)]
<justanotheruser>
see my config
<justanotheruser>
oh I think I know what it might be, I don't have that user in my fail2ban
takle has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vyKDE
<NixOS_GitHub>
nixpkgs/master c05ac3e Nikolay Amiantov: makeDBusConf: re-add XDG directories for session bus...
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to release-17.03: https://git.io/vyKDu
<NixOS_GitHub>
nixpkgs/release-17.03 03938aa Nikolay Amiantov: makeDBusConf: re-add XDG directories for session bus...
<viric>
anyway it was not a keypair authentication
<justanotheruser>
maybe not
<justanotheruser>
right, it wasn't even though I have the authorizedkeys set up
<justanotheruser>
is there some permitNonRootLogin? :p
<justanotheruser>
as per my config, it should just allow me via keypair authentication
<viric>
no idea
<justanotheruser>
can I permituserlogic without password?
<justanotheruser>
maybe that's just for root
<joko>
Hey, I have a NixOS 16.09 machine with network enabled at initrd and systemd-logind seems to fail, any idea what to look?
arcetera has joined #nixos
Intensity has joined #nixos
brh has quit [(Remote host closed the connection)]
<viric>
joko: there are kernel cmdline parameters that can help you see the systemd traces in console
batdog has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to release-17.03: https://git.io/vyKys
<NixOS_GitHub>
nixpkgs/release-17.03 a99e4f2 Rodney Lorrimar: scala: put docs in correct subdirectory...
<joko>
viric: I did it in boot.kernelParams and it worked
<joko>
ssh works :S
<joko>
journal does not, though
takle has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
<viric>
joko: I remember these problems in ARM when my kernel lacked seccomp
batdog has joined #nixos
<joko>
viric: this is the kernel coming with NixOS... The extra parts is ZFS over LUKS, ssh enabled on boot to enter the keys remotely and static IP as kernel parameter for the previous to work
<joko>
Hm, although /var might get mounted after initrd >_<
<anelson>
is anyone familiar with how the rust stuff is defined? There are effectively three definitions of rustc/cargo, one for "stable" (1.11.0), one for "head" (1.13.0) and one for "beta" (which is just given a date)
<anelson>
it seems that "beta" is used to build "head", but I'm not sure why or how this works
hesty has joined #nixos
<hesty>
hi
<anelson>
in addition I can't tell why the commits for beta and head were chosen, they aren't based on any tags or anything
<anelson>
in any case, I would like to build or download a recent nightly version of rust, and I'm not sure how to do that on nixos. The rustup script doesn't seem to work on nixos, for instance
goibhniu has quit [(Ping timeout: 240 seconds)]
<seku>
just gave nixos a whirl over the weekend. formidable. managed to put together a luks crypt setup with root on zfs
<seku>
and it booted in first try. incredible stuff.
<hesty>
is there a way to crosscompile for superh?
<justanotheruser>
setting passwordAuthentication to false fixed my issue
Gravious has quit [(Quit: leaving)]
<hesty>
or ppc64
ixxie has quit [(Ping timeout: 256 seconds)]
<zetok>
anelson: perhaps try with manual rustup install?
takle has quit [(Ping timeout: 258 seconds)]
<anelson>
zetok: I tried running the script that the site says to use for rustup, and it fails
<anelson>
as I recall when I ran it before, rustup generated a binary which dynamically linked against something in /usr/lib64, which isn't nixos friendly
<anelson>
tilpner: I'm looking at that now
<anelson>
Maybe I can use patchElf to modify the rustup binary...
<hesty>
nothing?? hello??
<tilpner>
I tried using the rustPlatform stuff to package a Rust tool, but I couldn't get it to work :/
dustmote has quit [(Client Quit)]
<zetok>
no alacritty ? :(
<anelson>
I was able to get one rust package defined in nix (systemd-linter). Took a fair amount of work and kinda hacky, but it happened. No idea about other packages. It's a shame that the rust situation in nix seems a bit non-ideal :(
<tilpner>
anelson - Could you link the .nix file?
<anelson>
tilpner: it's in a nixpkgs fork but I can track it down if you're curious
<tilpner>
I don't see it on github.com/anelson, so yes, a pointer would be helpful. ripgrep is packaged fine, and doesn't give the "Unable to update registry file:///dev/null" error message, and I mostly copied that file...
<anelson>
^ this doesn't really explain *how* I got everything to work, but you can take a look at it. Frankly I don't fully remember, I had to jump through some hoops to compute the deps hash and generate the cargo.lock
takle has joined #nixos
<anelson>
in hindsight I wish I had written down the steps I had gone through, but I guess it wasn't that bad; it took me a few hours maybe to figure it out...
<tilpner>
Did you prefer fetchurl over fetchFromGitHub because you wanted to apply that patch?
<tilpner>
(And isn't there some other way to do patching?)
<anelson>
Either one is fine, fetchFromGitHub just wraps fetchurl
<anelson>
There are more high level ways to apply patches, for sure
<tilpner>
Thanks, I'll see if I can get it to work building on this :)
<anelson>
are you trying to get a systemd linter? :P
<tilpner>
No, but it's one more example to build my own derivation :)
<anelson>
cool, well I'm not sure I did it the "right way", and like I said I wish I could remember exactly how I did it, but it works well enough and I hope it helps :)
benley has quit [(Remote host closed the connection)]
<tilpner>
Do you remember why "inherit (rustPlatform) rustRegistry;" was needed?
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vyK96
<anelson>
possible it isn't needed? It looks like maybe I'm not actually using it
<anelson>
confirmed, the derivation builds without the rustRegistry
<Ralith>
anelson: if it's a binary package, you should contact upstream and ask them to include the lockfile in the repo, as is standard practice in rust
<anelson>
Ralith: I suppose, but otoh I'm not sure if the lockfile they included would work with the rustRegistry I had anyway... :(
<Ralith>
??
<Ralith>
a lockfile's a lockfile
<tilpner>
I'm trying to get it to work with my included lockfile, but that always ends in "Unable to update registry file:///dev/null"
<Ralith>
occasionally you need to bump the registry's date but that's trivial
<anelson>
sure, but everything in the lockfile needs to exist in the registry or it won't be able to be fetched
<Ralith>
yes, hence update
<anelson>
or maybe I'm not understanding?
<Ralith>
(if necessary, which it often isn't)
<tilpner>
And that's caused by "failed to open: /tmp/nix-build-cpuline-git.drv-0/deps/registry/index/-ba82b75dd6681d6f/.cargo-index-loc"
<anelson>
this is nix... everything has to be fixed, right?
<anelson>
in any case the lock file wasn't there and I had to make it myself. So I did
<justanotheruser>
Is there a way to get one package from 17.03?
<Ralith>
yes, now ask upstream to add one so you don't have to maintain your patch
<Ralith>
the registry is a fixed clone of crates.io
<anelson>
tilpner: are you building off of that same commit or just checking out the files? because as I recall I also had to update the registry expression
<anelson>
tilpner: I don't recall exactly but I'm pretty sure that lockfile was just generated by cargo
stepcut has joined #nixos
<anelson>
tilpner: probably what I did is I cloned the repo and did a 'cargo build' and used that to generate the lockfile, and then probably I had to generate a new rust registry expression to accommodate all of the new packages/versions that were in the lockfile but not in the existing snapshot
<tilpner>
anelson - How do you "generate a new rust registry expression"?
takle has quit [(Remote host closed the connection)]
<tilpner>
Seems likely, but that would be annoying. I don't currently maintain a nixpkgs fork, and I'd rather just keep importing packages from outside :/
takle has joined #nixos
reinzelmann has joined #nixos
viric has joined #nixos
<viric>
Dezgeg[m]: clever: how do you deal with multicore boost builds in arm? (heavy ram usage)
takle has quit [(Ping timeout: 268 seconds)]
<clever>
viric: moar swap!
<clever>
viric: i think i needed 1gig of swap file to make boost pass, but even with the swap file deleted, i dont have enough free space to finish an sdImage build
freusque has joined #nixos
<Dezgeg>
yes, swap...
<viric>
Dezgeg[m]: why my 17.03 build isn't finding your boost build in the cache? :)
<viric>
(I missed not only boost... icu as well)
<clever>
what is the link to that hydra?
<Dezgeg>
maybe you depend on one of the other zillion versions of boost that I don't get to build
<viric>
No idea of Dezgeg[m] hydra. I know the channel url
<viric>
Dezgeg[m]: by versions, you mean within a single nixpkgs tree?
<Dezgeg>
yes
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vyKHF
<NixOS_GitHub>
nixpkgs/master 1d948dd Bo Bakker: caf: init at 0.15.3...
<rycee[m]>
ronny: Hey, sorry for the late reply. I'm not using nixpkgs-unstable anywhere so I won't claim support for it in home-manager. But I've switched to 17.03 and it works fine there so it may work under unstable as well.
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vyKQ8
<smw_>
clever: ok, new thing to debug. I rebuilt with an rpi kernel (through standard nixos way) and when I boot I get output on both serial and TV from uboot which says everything is fine. Then it says "starting kernel ..." and nothing else happens
<smw_>
clever: the yellow light isn't blinking which indicates to me the system isn't doing anything
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to release-17.03: https://git.io/vyKQ7
<maninalift>
I did a search in nixpkgs for "groupadd" couldn't see anything that would create groups for me...
<maninalift>
cleve: taking a look
vovapi has joined #nixos
<vovapi>
Hey guys! I'm new to Nix(OS). I'm trying to make python package work and having strange error:
<NixOS_GitHub>
[nixpkgs] obadz pushed 1 new commit to master: https://git.io/vyK53
<NixOS_GitHub>
nixpkgs/master 1dd16a9 obadz: coreclr: mark broken
<vovapi>
error: Package ‘self-4.5.0’ in ‘/nix/storr9yadrgrhnlx442dhhx3-nixos-17.03beta320.akgs/development/interpreters/self/defaultrked as broken, refusing to evaluate.
<NixOS_GitHub>
[nixpkgs] obadz pushed 1 new commit to release-17.03: https://git.io/vyK5G
<NixOS_GitHub>
nixpkgs/release-17.03 9037001 obadz: coreclr: mark broken...
<vovapi>
i assumed that's because of line: propagatedBuildInputs = with self; [ six ];
michaelpj has quit [(Remote host closed the connection)]
<clever>
vovapi: i think its because you have another with elsewhere, and its picking the wrong self
<apostolis>
Are there builders that are not shell scripts?
cfricke has quit [(Ping timeout: 240 seconds)]
<sheenobu>
apostolis, ack 'builder = ' shows all .sh style custom builders. I wouldn't be surprised if you could do a builder = ./filename.py or something, as long as it has the shebang and executable permissions
<sheenobu>
you'll lose all the nice build helpers i'm guessing
<clever>
sheenobu: yeah
<clever>
you dont even get buildInputs -> $PATH if you bypass the real builder
<clever>
apostolis: what are you wanting to do?
<apostolis>
I installed nixos a few days ago, so I am new.
<clever>
ah
<apostolis>
I was wondering whether I could do metaprogramming with nix expressions.
<sheenobu>
i'm using nix-instantiate for persistent nix-shell environments. for some reason after i finish using my environment and nix-collect-garbage, bash-info and bash-doc get removed.
<clever>
apostolis: if you dont care about things like buildInputs being handled for you, then you could, one min
<sheenobu>
so everytime i do a nix-shell path.drv --command '...', bash-info and bash-doc get redownloaded
<clever>
apostolis: and then python would be the builder
<clever>
apostolis: but you might be better off just using pkgs.runCommand
<sheenobu>
yeah most projects build systems need to run non-shell at some point and they usually just do it from within an existing shell script or Makefile
thc202 has quit [(Ping timeout: 256 seconds)]
<clever>
it would look something like pkgs.runCommand "name" { buildInputs = [ python ]; } "python ${./foo.py} ${./data.txt} > $out"; as a very basic example
<clever>
the above derivation will run foo.py on data.txt, and produce a single output file
<viric>
Hm can it be that our openssl doesn't use AES-NI?
stepcut_ has joined #nixos
<apostolis>
I saw this function "builtings.toJSON"
<apostolis>
My metaprogramming language ues javascript, so if it gets inputs as a json string, it will be able to return the source code
<clever>
apostolis: an example i pasted about 5 hours ago, this turns the attribute set inside config_set into a json string, then writes it out to the /nix/store as /nix/store/HASH-config.json
<clever>
apostolis: and the writeText function returns the path in the store
<apostolis>
OK i will need to look at it further tommorow.
<tilpner>
anelson - I wanted to update to a newer registry with $ nix-channel --update and now I can't build anything. Still fixing things :/
<anelson>
tilpner: but unless/until the tooling improves, that seems to be the way it is. Of course there could be tooling around it to facilitate this, but I'm not sure how
<clever>
apostolis: jade is specialized around generating html, and can run JS on input data to fill in fields or repeat sections of the table
<apostolis>
nice.
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to release-17.03: https://git.io/vyKFx
<NixOS_GitHub>
nixpkgs/release-17.03 e47b819 Kranium Gikos Mendoza: asterisk: use fetchsvn for vendored library...
<clever>
and internaly, the jade engine just turns your template into a javascript function
<anelson>
tilpner: yeah... sorry, like I said how I got it working was hacky and annoying. Since I work on a fork of nixpkgs I have full control over what the packages are, so I don't need to write my stuff to be generic or future-proof with a changing nixpkgs setup. So, it's a little easier. Hopefully though, it (or the experience) gives you some amount of insight into how you might accomplish your needs.
<clever>
for a basic template, its just a pile of string concats
stepcut_ has quit [(Read error: Connection reset by peer)]
stepcut has joined #nixos
<Rotaerk>
hmm, you can prefetch from hackage like: nix-prefetch-url mirror://hackage/ghcjs-dom-0.2.3.1
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vyKbT
filterfish has quit [(Read error: Connection reset by peer)]
filterfish has joined #nixos
bb_ has quit [(Quit: Page closed)]
k0001_ has quit [(Quit: WeeChat 1.5)]
deech has joined #nixos
saltsa has quit [(Ping timeout: 240 seconds)]
saltsa has joined #nixos
<c74d>
clever: with apologies for my inexperience, what are the most likely reasons why I might be unable to reconnect to my server after installing NixOS to it and rebooting from your kexec system?
<c74d>
do I need to set any `networking.*` options?
<deech>
Hi all, I have a noob question. I have a Nix recipe that's compiling and installing fine on Arch but a NixOS user is reporting compilation errors. How do I go about diagnosing this?
<ndowens08>
deech: which package?
<LnL>
deech: do you use sandboxed builds?
<c74d>
deech: my guess would be that the expression (recipe, as you call it) is missing a dependency