<Unode>
Ralith: So it turns out the issue with linking against libX11 is that the lib isn't actually found. However since one of the dependences links against it, it somehow propagates the oddity of both succeeding and failing at the same time.
thc202 has quit [Ping timeout: 252 seconds]
wpcarro has joined #nixos
<wpcarro>
Been struggling to install nixos all day. I keep receiving a "No space left on device" error
<{^_^}>
wpcarro: 1 hour, 23 minutes ago <samueldr> hi, if you haven't figured out a solution to "no space left on device" for nixos-install, ping me back; (I may miss you joining back here)
<samueldr>
hi!
acarrico has joined #nixos
<samueldr>
wpcarro: is it possible to have a bit more context with the error message? copy-pasting may not be possible, so a photo could do. It's possible the message is misleading and the actual cause harder to gauge
<samueldr>
wpcarro: does the full message look like "Could not prepare Boot variable: No space left on device
meejah has left #nixos [#nixos]
<wpcarro>
samueldr: this is the problematic .drv `/nix/store/s12lsnnf202xx94b6f67i5im6nxhhhby-nixos-system-nixos-18.03.133245.d16a7abceb7.drv`
<wpcarro>
I also see "preallocating file of XXX bytes: No space left on device"
<{^_^}>
[nixpkgs] @jtojnar pushed 158 commits to gnome-3.30: https://git.io/fxJGu
<wpcarro>
I'm havin a hard time understanding what is happening when I run nixos-install from a live USB. Where is the /nix/store located? I see it has 3.5GB of data on an 8GB USB. But maybe that's just 3.5GB on my 500GB hard drive
<samueldr>
ah, so probably not what the other user was facing earlier today
<samueldr>
wpcarro: is this building a full fledged and complex config or a simpler one?
<samueldr>
and note that the installer *does not write to the USB drive*, so its size doesn't matter
<wpcarro>
samueldr: essentially the one that's generated by `nix-generate-config`
<wpcarro>
it's super minimal. I've been working with this for close to 6 hours today
<samueldr>
but it *will* write to a tmpfs, so it will use as much as it can of your ram :/
<samueldr>
wpcarro: how much ram does your system have?
<wpcarro>
I believe 16GB but I need to verify that
<samueldr>
hmmm, that would be worrying then, if it was what I thought I would have assumed 4GB
<wpcarro>
I'm desperate to get this to a point where I can *just* edit the configuration.nix and `-rebuild`
<wpcarro>
but since I can't even bootstrap, it's a non-starter
<camsbury>
I remember having a problem where my boot partition wasn't large enough, so that may be it
<samueldr>
a mistake commonly done when installing is to not mount the filesystems to /mnt; did you mount the target filesystems under /mnt?
<wpcarro>
camsbury: my boot partition is 512M I believe. I think I even experimented with a 1GB sized boot earlier as well
<camsbury>
usually the installer is good about telling you that it expects something mounted that isn't
<camsbury>
ah okay
<samueldr>
512 should be plenty
<wpcarro>
samueldr: I followed the manual pretty closely and restarted the process multiple times to attempt to catch any details I may have missed from earlier
<wpcarro>
samueldr: just re-read the manual section about mounting and matched that with my bash history. Looks like everything aligns
<samueldr>
once you have the error, using df -h you might see a filesystem which has 100% use
<wpcarro>
samueldr: I also have 16GB RAM and 16GB of swap
<samueldr>
okay, *probably* not that then :/
<wpcarro>
samueldr: I can run df -h now and check
<wpcarro>
Seeing /iso, /nix/.ro-store, and /mnt all at 100%
Cale has quit [Ping timeout: 264 seconds]
<samueldr>
hmm, what does mount | grep /mnt shows?
<samueldr>
it looks like your root filesystem is full, which could have a couple causes
<wpcarro>
samueldr: would you like a full dump?
<wpcarro>
the summary: /dev/sda1 on /mnt ext4, /dev/sda3 on /mnt/boot vfat
<samueldr>
did you mount your boot partition (ESP I think) to /mnt instead of to /mnt/boot ?
<wpcarro>
samueldr: root filesystem as in: /mnt ? My actual / (root) is only at 2%
<samueldr>
wait sorry, misread you rline
<wpcarro>
sda1 is nixos (from the manual) and sda3 is boot (also from the manual)
<samueldr>
wpcarro: looks like somehow your sizes are inverted to what's expected
<wpcarro>
samueldr: sorry that's Used / Size... let me revise
<samueldr>
still fine, Size was the important one
<samueldr>
your (/mnt)/boot partition is 451G!
<wpcarro>
samueldr: *gulp*
<samueldr>
while your (/mnt)/ (the root partition) is a measly 488M :)
<samueldr>
no worries, fdisk is hard
<samueldr>
I never use it, don't want to memorize weird incantations
<wpcarro>
should I `d` (delete) the partitions with fdisk?
<samueldr>
I prefer using either cgdisk or cfdisk
<wpcarro>
samueldr: I *wish* there was a common sense script I could run to get this going
<samueldr>
(IIRC, now cfdisk fully handles GPT partition schemes)
<samueldr>
wpcarro: while it won't help you now, I'm slowly working on refactoring the installation instructions :)
<samueldr>
so you could cfdisk -z /dev/sda and visually create the partitions
<wpcarro>
samueldr: no worries. Appreciate the visibility into the progress
<samueldr>
if you use cfdisk, use ef00 as the type for the ESP, and 83 for the root partition, swap I can't remember, but it'll be in the list
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fxJGp
<samueldr>
agh! sorry this is misleading as it won't ask you that :)
<wpcarro>
samueldr: hmm my partitioning skills are limited. From a high-level... I'm guessing I should delete all the partitions and start over?
<samueldr>
should be fine
<samueldr>
I mean, yes, deleting is probably the easier solution
<wpcarro>
I'd *prefer* to resize... but I'm dubious about the purity of all these operations
<samueldr>
well, you'd need to re-format anyway (or delete all the contents of /boot)
<wpcarro>
samueldr: ok... and to be clear, you're suggesting that I use `cfdisk` to do this?
<wpcarro>
I'm open to different APIs haha
<samueldr>
cfdisk is a TUI (text user interface)
<samueldr>
operated using arrow keys and menus
<wpcarro>
samueldr: that's nice!
<wpcarro>
samueldr: oh this is nice
<samueldr>
DO be careful with the device names: they may not matche the guide
Cale has joined #nixos
<samueldr>
so if you start by creating the ESP, it will be /dev/sda1, so remember that (/mnt)/boot is /dev/sda1 and substitute as needed
<wpcarro>
samueldr: what is the ESP? forgive me...
andreabedini has joined #nixos
<samueldr>
the ESP (/boot) will need to be of type "EFI System" (which you can change using the Type menu) it's the first option in the type menu
<samueldr>
wpcarro: are you booting using legacy mbr, or UEFI?
<samueldr>
I'm assuming UEFI since you had /dev/sda3 as /boot
<wpcarro>
UEFI
<samueldr>
good, UEFI looks into the EFI System Partition (ESP) when it chooses what to boot
<samueldr>
it's a FAT32 partition with a special type, so the firmware of your computer can identify it
<wpcarro>
samueldr: okay interesting... I'll try again without mixing up the two sizes and see what happens
iyzsong has joined #nixos
acarrico has quit [Ping timeout: 246 seconds]
<wpcarro>
samueldr: thank you for the help. Will let you know any progress I make
<samueldr>
no worries, please report back with success next :)
<worldofpeace>
samueldr++
<{^_^}>
samueldr's karma got increased to 24
acarrico has joined #nixos
<wpcarro>
samueldr++
<{^_^}>
samueldr's karma got increased to 25
<gchristensen>
looks like I should order more stickers :)
* samueldr
notes to add `df` and `mount` output to a future diagnostics tool
<wpcarro>
samueldr: I think I found the problem also. It looks like after writing to and running the "fix" command with fdisk, it changes sda3 -> sda1 and sda1 -> 3 ... this is why I keep mounting the wrong devices
<samueldr>
hmm, so it would use the order you did the operations and not the numbers from the "3" steps?
<wpcarro>
well I assumed when I entered 3 to make the boot partition, it'd be sda3
<wpcarro>
but really that became sda1 after changing it to EFI
<samueldr>
well, the manual does say /dev/sda3 is the boot partition, confusing indeed
mizu_no_oto has joined #nixos
<wpcarro>
samueldr: yeah and I was following the manual blindly bc I don't trust my partition skills etc
<wpcarro>
my domain knowledge in that area is quite low
<jasongrossman>
It might be time to try to standardise on a partitioning tool. I mean in terms of what we recommend and document.
hyper_ch has quit [Ping timeout: 268 seconds]
<samueldr>
jasongrossman: any experience and recommendations?
<wpcarro>
samueldr: seems to be working. I'm pretty relieved that the manual was in fact confusing
<wpcarro>
I'm *very* excited to get this going
<samueldr>
I had things in mind, but my experience is limited, though I believe my knowledge is solid, just not extensive :)
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
wpcarro has quit [Ping timeout: 256 seconds]
<worldofpeace>
A file can be 4775 permission in the nix store right?
<gchristensen>
no
<Unode>
worldofpeace: don't think so
<samueldr>
After the build, Nix sets the last-modified timestamp on all files in the build result to 1 (00:00:01 1/1/1970 UTC), sets the group to the default group, and sets the mode of the file to 0444 or 0555 (i.e., read-only, with execute permission enabled if the file was originally executable). Note that possible setuid and setgid bits are cleared. Setuid and setgid programs are not currently supported by Nix. This is because the Nix archives used in
<samueldr>
deployment have no concept of ownership information, and because it makes the build result dependent on the user performing the build.
<gchristensen>
(1) setuid is prohibited, (2) write bit is prohibited
<samueldr>
no, stage-1 is before systemd runs (for nixos); it prepares everything so systemd can start; this means mounting partitions, among other things
<wpcarro>
ok interesting
<samueldr>
it's likely that there's something wrong with the hardware-configuration.nix and the partition identifiers
<wpcarro>
One interesting difference I had with the manual was that the `a` option with fdisk wasn't available (to make something bootable) is what it was advertised as doing
<samueldr>
I don't know if it has any impact on UEFI boot
sir_guy_carleton has joined #nixos
<samueldr>
before your error, wpcarro, what's the previous line?
<wpcarro>
samueldr: unsure without restarting my machine (unfortunately, the machine I'm using this IRC on is the when on which I'm trying to install Nix)
<wpcarro>
so when things break, I use the live USB and come back here
<samueldr>
oh, I see :)
<wpcarro>
reconfiging network etc... I'm starting to go mad I bet
<samueldr>
(not everyone has the luxury of having multiple computers around)
<wpcarro>
samueldr: haha yeah... sorry
<wpcarro>
I keep a notepad next to me to track the errors
lassulus_ has joined #nixos
<wpcarro>
samueldr: is there someway to recreate the error message without fully rebooting?
romildo has joined #nixos
<samueldr>
wpcarro: I don't know of any
<wpcarro>
samueldr: haha oh boy... okay well... talk to you after my next reboot adventure!
<romildo>
I want to package fbmenugen (a perl program to help generating a menu for the fluxbox root menu), but it depends on GDBM_File.pm, a perl core module that seems that is not available on NixOS. Any help on how to get it?
lassulus has quit [Ping timeout: 272 seconds]
lassulus_ is now known as lassulus
lostman has quit [Quit: Connection closed for inactivity]
<jasongrossman>
Wouldn't it be better for wpcarro to re-run nixos-generate-config?
<jasongrossman>
Just to avoid typos, really.
Mateon2 has joined #nixos
mayhewluke has joined #nixos
<wpcarro>
jasongrossman: I can do that
Mateon1 has quit [Ping timeout: 268 seconds]
Mateon2 is now known as Mateon1
<wpcarro>
I'm editing both hardware-configuration and configuration files
<wpcarro>
Guessing I verifying by aligning UUIDs here with the values in lsblk -o name,UUID?
<wpcarro>
Looks like / is NixOS and /boot is boot
<wpcarro>
I guess I also rerun nixos-install?
<jasongrossman>
Yes.
<wpcarro>
Great thank you jasongrossman
<wpcarro>
If this works, I wonder how my generated config had the wrong UUIDs...
<wpcarro>
Oh my god it got past stage 2
<jasongrossman>
\o/
<wpcarro>
This. Is. Amazing!
<jasongrossman>
wpcarro: Unless you change physical drives a lot, I recommend that you try not to worry about partitioning, once it's working. Partitioning magic is separate from almost everything else related to Nix.
<wpcarro>
So now I just edit the configuration.nix and rebuild until I have a Ferrari of an OS?
<jasongrossman>
Yes. And then rebuild again when you realise you actually wanted a Lotus.
<wpcarro>
Lol jasongrossman
* hodapp
wants a Lotu
<hodapp>
...s
<wpcarro>
Thank you jasongrossman and samueldr
puck has quit [Quit: *eh*]
<wpcarro>
jasongrossman++
<{^_^}>
jasongrossman's karma got increased to 2
<jasongrossman>
But seriously, don't be afraid to rebuild a lot. Most of us rebuild every time we want to install a program, I think, because we prefer declarative package management to imperative package management.
<wpcarro>
I'm afraid this won't be the last you of me, but I should be able to shut up for a bit of time
<samueldr>
wpcarro: the fun bit with partitioning: almost nothing here is nixos specific, and most skills from other distros also can be applied with nixos :)
<wpcarro>
I'm declarative > ad-hoc atm so I anticipate rebuilding incessantly
matthewbauer has joined #nixos
<samueldr>
so if you have time to kill, and want to learn, play in virtual machines with both MBR and UEFI boot schemes, with nixos, and possibly other distros, trying to understand the intricacies
<jasongrossman>
wpcarro: Good for you.
<wpcarro>
samueldr: thanks for advice. I will once my temper wanes and my patience increases!
<samueldr>
:) as I said, once you want to spend time learning about that
<wpcarro>
Still timid with this level of abstraction, which is strange bc I'm quite comfortable on the command line
<samueldr>
and wpcarro welcome to nixos, don't forget to backup your configuration.nix; possibly handling it in a git repo
<jasongrossman>
wpcarro: You'll get untimid quickly once you see how easy rolling back is.
<rauno>
hum, weird is that when using buildGoPackage (generated with go2nix) fails but when doing a simple package build with custom buildPhase and no installPhase succeeds? current buildPhase thats works is: https://pastebin.com/cHpYnSyb
sir_guy_carleton has quit [Ping timeout: 268 seconds]
lor|d has joined #nixos
sir_guy_carleton has joined #nixos
lord| has quit [Disconnected by services]
lor|d is now known as lord|
Tucky has joined #nixos
<srhb>
rauno: iirc rexray has a really non-standard build process.
Anton-Latukha has quit [Ping timeout: 252 seconds]
civodul has joined #nixos
<rauno>
srhb, okay then it isn't "just me" :)
<srhb>
rauno: Probably not. however, it usually doesn't really matter for nix whether a certain thing happens in a certain phase, though you should strive to keep the actual installing to the installPhase if possible.
<srhb>
Simply because it will be confusing if you do not.
<manveru>
i get this strange error: `ld: dynamic STT_GNU_IFUNC symbol `memset' with pointer equality in `/nix/store/s58hg86980680l8rr9yp9i8m7czzacvj-glibc-2.27-static/lib/libc.a(memset.o)' can not be used when making an executable; recompile with -fPIE and relink with -pie`
<manveru>
but glibc doesn't even take a -fPIE configure flag
<fendor>
when trying to execute the electron examples, it fails with the message: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory. Seems to be related to https://github.com/NixOS/nixpkgs/issues/43297 but i could not find the bug fix
<{^_^}>
#43297 (by gnidorah, 11 weeks ago, closed): electron stopped to work on nixos-unstable
<betaboon>
i am struggeling building dist-output of an angular-6 application.
<zimbatm>
what version of yarn2nix are you using? the one packaged in nixpkgs is a bit old
<betaboon>
our devs just revently migrated from angular5 to angular6. prior angular6 i was able to build the dist-package directly from source. previously i have been using an old version of yarn2nix (forked a while ago and put a PR on top for @xyz/package support). now i am trying to run yarn2nix from current master(yarn2nix-master, not nixpkgs-master)
<betaboon>
what confuses me alot: the yarn-workspaces support that has landed in yarn2nix builds 'deps' and the package-deps even tho that angular-application doesn't use yarn-workspaces
<betaboon>
so now 'yarn build' in buildPhase doesn't work as it can't find all the dependencies.
<betaboon>
and even if i do some hackiny combine-all-the-node_modules during build phase, the dist-phase defined in yarn2nix/default.nix just doesnt fit what i need to do
<{^_^}>
[nixpkgs] @Mic92 pushed to master « alacritty: spell darwin platform correctly »: https://git.io/fxJSk
zemm has joined #nixos
iyzsong has quit [Ping timeout: 252 seconds]
reinzelmann has joined #nixos
v0|d has joined #nixos
Lears has quit [Remote host closed the connection]
<zimbatm>
betaboon: are you using the workspaces feature at all?
<zimbatm>
I haven't tested it properly yet and it might be breaking things for sure
Lears has joined #nixos
<zimbatm>
is there anything that you can share so I get a better understanding of the problem?
<betaboon>
i realy have not much of a clue about all this node, angular, yarn stuff. but as far as i can tell, the package we're building does not use workspaces at all (afterall there is no "workspaces" in package.json etc)
<zimbatm>
yeah probably not using workspaces then
<{^_^}>
[nixpkgs] @e-user opened pull request #47593 → snyk: init at 1.99.1 → https://git.io/fxJSF
<zimbatm>
I'm not sure if this workspaces thing is a good idea, it seems to add a lot of complication
<zimbatm>
try going a few commits back before the workspaces were added
joehh has joined #nixos
<betaboon>
zimbatm: but maybe this "angular.json" which defines "projects" actually implicitly defines workspaces ? oO
<betaboon>
will try so later on
<zimbatm>
¯\_(ツ)_/¯
<zimbatm>
I wouldn't be surprised that angular 6 makes a few more impure assumptions about the build environment
<betaboon>
i just hate all those node/angular/npm-bs
<zimbatm>
everyone thinks they are smart by adding another layer of complication
<zimbatm>
we're 4-5 layers deep and it's unmanageable
<betaboon>
who in the world thinks it is good design to define 5 types of dependencies ? oO
<zimbatm>
it's a general trend in scripting languages, python and ruby also have their own complications
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
Lears has quit [Read error: No route to host]
troydm has joined #nixos
<infinisil>
LnL: Ugh
<infinisil>
Gotta look that up
<{^_^}>
[nixpkgs] @midchildan opened pull request #47594 → sourcetrail: init at 2018.3.55 → https://git.io/fxJQy
<LnL>
check for secret-key-files in man (5) nix.conf
<infinisil>
Yeah got it
hamishmack has quit [Ping timeout: 252 seconds]
<betaboon>
zimbatm: going back to b27e9e7 the package builds with my old derivation but something still goes weird, as the resulting dist contains errors.
andreabedini has joined #nixos
__monty__ has joined #nixos
<teto>
let's say I want to bring jupyter in PATH of ihaskell, what attribute should I use ? I tried overriding ihaskell with "executableHaskellDepends = [ pkgs.jupyter ];" but that doesn't bring jupyter ?
<{^_^}>
nix#2459 (by cleverca22, 1 day ago, open): add a sublist primop
<clever>
and similar high gains on others that are down as far as 15 sec
<gchristensen>
wow!
<clever>
gchristensen: and prior to any refactorying, snack took over 38 hours to eval, and had yet to finish
<gchristensen>
O.o
<siers>
How are PR reviewers assigned?
<clever>
gchristensen: with both changes to the snack nix expressions, and adding sublist to nix itself, it went from over 38 hours, to just 14 seconds
joehh has quit [Ping timeout: 268 seconds]
<gchristensen>
what is the change being made on the .nix end?
<clever>
memoize stuff, rather then calling a function repeatedly, store its result in a set
<clever>
internally, snack is using lib.unique a lot, and lib.unique is implemented with lib.head, lib.drop, and lib.drop heavily abuses builtins.elemAt
<clever>
which results in 108 million calls to elemAt
<Taneb>
clever: that's a pretty big improvement
<clever>
yeah
<zimbatm>
siers: each nix package has one or more maintainers, those should be contacted
<zimbatm>
otherwise it's who touched the code last
<clever>
Taneb: and it was so slow, that it was faster to profile it, and patch nix, then it was to wait for it to finish, lol
<Taneb>
:D
<siers>
zimbatm, It's a new package whose assigned reviewer is a contributor (not member) and isn't responding for a week.
<d1rewolf>
I'm curious...any of you using nixos to run a home NAS?
<gchristensen>
sure
<etu>
Not yet :(
<d1rewolf>
gchristensen: are you using zfs or something else? I currently have a freenas box, but am considering switching away....still...I like zfs
<gchristensen>
yeah I used ZFS for the storage pool
<clever>
d1rewolf: i have a nixos box with zfs as my nas, it currently has 3 4tb drives
<d1rewolf>
gchristensen: any sort of front-end or are you just managing from the command line?
<clever>
all command line here
<gchristensen>
CLI
<d1rewolf>
clever: cool. I'm wondering if/how well it's run on a freenas mini. it's a IX-packaged system, but I'm betting nixos would run just fine on it
<siers>
zimbatm, do you think it has a chance of getting merged?
<clever>
d1rewolf: how much ram does the machine have? what cpu?
<LnL>
infinisil: yes, and that nix.conf option will sign everything built locally on the host with that key
<infinisil>
LnL: Well I tried it, but I don't have much time now
<infinisil>
I ended up having problem with every nix command
<infinisil>
Saying it couldn't connect to the cache
<LnL>
infinisil: without it store paths won't be registered with a signature
<infinisil>
Will try to debug later
<d1rewolf>
clever: it's at home, so I can't verify, but from the original order I placed on amazon: "8-Core 2.4GHz Intel CPU with AES-NI, 16GB DDR3 with ECC". I have 4 3TB drives in it
<LnL>
clever: yes, but having root access on a host means you are trusted not that you trust the host
periklis has joined #nixos
iyzsong has joined #nixos
Rusty1 has joined #nixos
<zimbatm>
betaboon: do you mind submitting a patch to allow distPhase overrides?
<zimbatm>
I think that should be allowed in any case
<d1rewolf>
what's a good file manager which supports mounting samba shares on nixos? using i3, so I have nothing installed at the moment, but would rather avoid manual effort
<zimbatm>
siers: it probably belongs in the lib/ folder
<zimbatm>
ty betaboon
<siers>
zimbatm, I can change that. What about the README? Is it necessasry?
<zimbatm>
siers: one of the concern would be if this started to be used a lot in nixpkgs as it does too much at evaluation time
<zimbatm>
and lib/ is only really a support for nixpkgs
<zimbatm>
(unfolding my thought process)
<zimbatm>
so I guess having it in build-support would be a signal that it's not meant to be used in nixpkgs directly
<siers>
zimbatm, I think it's more for developers and I that's why I didn't put it in lib/. I merely intended it to be more easily accessible.
<zimbatm>
the other concern is that it will be harder for you to update it
<zimbatm>
you did a lot of good work, it would be a shame if it was lost
<siers>
I intended it as a package, but then I couldn't just fetchgit, because you shouldn't import from derivations, so I had to inline all of it.
<zimbatm>
yarn2nix that was imported above has this issue, we imported it in nixpkgs but not it's still evolving in the main repo
<zimbatm>
yeah
<zimbatm>
same issue with yarn2nix
<siers>
As long as it does the same thing, I don't think updates would happen too often.
<zimbatm>
I think your project should be relatively stable compared to yarn2nix
<zimbatm>
so all future development could happen in nixpkgs
<siers>
easily
<zimbatm>
regarding the README, the best thing to do would be to convert it to the manual
<zimbatm>
so move the usage bit to the manual and trim the existing README to testing instructions
<zimbatm>
is there any way the tests could be plugged into the rest of the tests?
<siers>
Sure, I checked out the tests.
<siers>
The nixpkgs tests, that is. Do they spawn a VM for each test? I'm a little concerned about that because VM would probably take longer to spawn than the test time.
Ariakenom_ has quit [Ping timeout: 272 seconds]
<siers>
Yeah, I can write instructions for the manual also. I was trying to hint at that and asked about it in the issue, but I didn't get a clear answer.
<zimbatm>
only the NixOS tests are spawning VMs
<zimbatm>
the others are running the tests in a derivation
<siers>
pkgs/test/ ?
<zimbatm>
ask gchristensen, he is the master of manuals :)
<zimbatm>
+
<gchristensen>
which nixpkgs tests?
<siers>
only 27 files there, is that the right directory?
<zimbatm>
siers: your package is a bit special, most of them are derivations that have check phases
<gchristensen>
oh man
<zimbatm>
your is closer to lib/tests
<zimbatm>
so pkgs/tests is quite thin but it would fit there
smolboye has quit [Read error: Connection reset by peer]
smolboye has joined #nixos
<siers>
okay, I'll take a look at the tests when I've
<siers>
Okay, I'll take a look at the tests and manuals when I'm not at work.
<{^_^}>
[nixpkgs] @mvnetbiz opened pull request #47597 → ckb-next: from 0.2.9 0 -> 0.3.1 → https://git.io/fxJjl
<siers>
zimbatm, thank you for the answers I didn't receive in the PR
<zimbatm>
yw
<gchristensen>
siers: so ideally the .md would be rewritten in with (see: https://docbook.rocks), and added to nixpkgs/doc/functions.xml if you need help with that conversion, I'm happy to help
<zimbatm>
it was the right thing to ask
<gchristensen>
siers: so ideally the .md would be rewritten in docbook (see: https://docbook.rocks), and added to nixpkgs/doc/functions.xml if you need help with that conversion, I'm happy to help*
<lewo>
Is Nix1 backward compatibility still required in Nix18.09?
<gchristensen>
yeah :(
<lewo>
arf :/
alex`` has quit [Ping timeout: 252 seconds]
<lewo>
do you know for how many releases it is required? And what is motivating this choice?
<LnL>
why the :(?
<gchristensen>
ok, :( is overdoing it, but I am excited about new exciting changes like structured attrs
jperras has quit [Ping timeout: 240 seconds]
jperras has joined #nixos
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<d1rewolf>
what package is necessary to install to mount samba/cifs on nix? nix search smbmount shows no results. should I just install samba?
<{^_^}>
nyanloutre[m]: Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
<{^_^}>
[nixpkgs] @xeji pushed commit from @mnacamura to master « feedgnuplot: 1.49 -> 1.51 (#47574) »: https://git.io/fxUsg
graphene has joined #nixos
<{^_^}>
[nixpkgs] @xeji merged pull request #47564 → linux kernel: increase build timeout from 2 to 4 hrs → https://git.io/fxJkw
<{^_^}>
[nixpkgs] @xeji pushed to master « linux kernel: increase build timeout from 2 to 4 hrs (#47564) »: https://git.io/fxUsi
shiver32 is now known as shiver
<jonge>
hey there, i just followed the install manual of nixos with the fdisk steps...and somehow the partition ordering fix does not work. /dev/sda1 is my swap disk afterwards and /dev/sda2 is the root partition. but i don't think it should look like this after following the installation steps, right?
<samueldr>
jonge: can't actively help, but a user yesterday had the same issue, so it seems that there is something to fix
<clever>
jonge: the order and numbering doesnt really matter, you just need to use the right ones in the config
wpcarro has joined #nixos
<samueldr>
exactly, make sure to format the right ones according to your needs, and to substitute what the install guide says with the ones you know
fendor_ has quit [Ping timeout: 252 seconds]
<jonge>
clever: i can handle that, but i was very irritated that i follow a guide and the wrong result comes out. :D
<__red__>
Could I ask someone to kick off a test build for PR#46753 please - specifically, I need to make sure my OSX changes have worked. thx
<jonge>
so i was not sure if there is something else i forgot
<{^_^}>
[nixpkgs] @xeji pushed to release-18.09 « linux kernel: increase build timeout from 1hr to 4 hrs (#47564) »: https://git.io/fxUGB
<samueldr>
I have the strong suspicions that the actual fdisk steps aren't tested enough by the nixos developers (I included) since they don't install often, and often skip the written steps using prior knowledge :/
<__red__>
(I'm raising a PR upstream, but I need to test the PR actually resolves the issues in nix before I send it to them)
jtojnar has quit [Remote host closed the connection]
<jonge>
i need gcc 6.2 for a specific project... is there any possibility to override this in the gcc package? i can only see that "version" is not a parameter in the package... so it looks like i need to do it the hard way?
notlar has joined #nixos
<gchristensen>
aminechikhaoui: can you open an AWS support ticket for me?
notlar has left #nixos [#nixos]
hellrazor has joined #nixos
<symphorien>
> gcc6.name
<{^_^}>
"gcc-wrapper-6.4.0"
<symphorien>
6.4 is too new ?
<jonge>
symphorien: unfortunately, yes...
<jonge>
symphorien: customer decision, i am not happy with it.
<betaboon>
is there a way to prevent nixops from using ~/.ssh/id_rsa ?
<symphorien>
maybe take the gcc from an old nixpkgs version and override the stdenv with overrideCC
<symphorien>
if there is no runtime reference to gcc on the final product it should not have security implications
jperras has quit [Ping timeout: 276 seconds]
cinimod has joined #nixos
<cinimod>
I am gettting
<cinimod>
bash-3.2$ stack --nix build
<cinimod>
error: imported archive of '/nix/store/q0s4js8j1sxfps0c7p2y0rwk1pnw5n3j-source' lacks a signature
cinimod has quit [Remote host closed the connection]
init_6 has quit []
goibhniu has quit [Ping timeout: 252 seconds]
wpcarro has joined #nixos
<wpcarro>
I cannot seem to find any information in the NixOS manual around setting up a webcam (builtin to laptop)
<wpcarro>
Is it there and I'm just missing it?
vmandela has joined #nixos
<gchristensen>
hmm what kind of set up do you need to do?
<wpcarro>
gchristensen: I have a MBP so the webcam is just builtin
<wpcarro>
I was wondering if (similar to audio setup), there is just a flag that I can toggle.
<gchristensen>
I didn't need to do any setup at all
<wpcarro>
Other answers I'm seeing are from Arch forums that involve running `make`, etc, which I could package into a derivation, but wondering about prior art before I embark on that
<wpcarro>
gchristensen: are you running on MBP?
<gchristensen>
one of my nixos laptops is yes
<gchristensen>
oh!
<wpcarro>
gchristensen: interesting... did you enable anything in your configuration? Or did it just work out of the box?
<wpcarro>
gchristensen: ty. I'll give this a try, reboot and hope for the best
<gchristensen>
:) great!
<wpcarro>
Oh... I ran into a allowUnfree issue earlier today and I'm seeing it again... I see the code snippets below, but I'm unsure of where that belongs in my configuration.nix file...
<wpcarro>
it recommends add `{ nixpkgs.config.allowUnfree = true; }`, but I can't imagine that I just copy and paste that verbatim into the middle of my config
<gchristensen>
well, copy-paste the part between the `{` and `}` and throw it in at the end or so
<wpcarro>
gchristensen: okay... I guess the nixpkgs variable is just available? I have `pkgs` import at the top of the module as a parameter. It's not `pkgs` instead of `nixpkgs` is it?
<gchristensen>
nixpkgs.config.allowUnfree is an option, just like hardware.facetimehd.enable
<wpcarro>
gchristensen: okay cool! Looks like it's working. Thanks so much
wpcarro has quit [Remote host closed the connection]
kreetx has joined #nixos
sir_guy_carleton has joined #nixos
<kreetx>
I have a weird problem: I used to have a source ~/.nix-profile/etc/profile.d/nix.sh on my macOS, but now, after installing Mojave it's gone
<kreetx>
or maybe Mojave is not to blame
<kreetx>
but nix stuff is not in path any longer
<gchristensen>
heads up: AWS is having problems in EU-CENTRAL-1 and it is impacting NixOS.org cache users in that region
<gchristensen>
kreetx: do you have a file at /etc/bashrc~previous?
<ajs124>
So I'm running a hydra instance for building some stuff and I've been having this issue where the queue sits at 4 jobs queued, but just doesn't run them. Any ideas why this might be happening?
<jonge>
symphorien: right now i have cloned nixpkgs and just set the version variable in it to 6.2 (and slightly tweaked the download link) and it seems to compile... we will see.
<gchristensen>
ajs124: has your hydra ever built stuff successfully?
<ajs124>
gchristensen, yes
<kreetx>
gchristensen: I do
<gchristensen>
kreetx: does the ~previous filementcion Nix?
<kreetx>
yes
<apeyroux>
Hello, has anyone ever made NixOps Hetzner and zfs? I can't find how to change the basic image to use zfs
<symphorien>
jonge: if you don't change the hashes you still compile 6.4
<{^_^}>
value is a function while a set was expected, at (string):177:32
<infinisil>
ah darn, funs don't work with that
<infinisil>
Yet
<kreetx>
gchristensen: thanks!
<gchristensen>
kreetx: you're welcome! :)
<jonge>
symphorien: ok that sounds complicated but worth learning it... i guess i will study it a bit
jtojnar has joined #nixos
<kreetx>
alright, I have another problem :) does nix require xcode? I might have been too trigger happy just recently and removed it to save space, and now get something like this: dyld: Library not loaded: /usr/lib/system/libsystem_network.dylib
<LnL>
kreetx: you're either using an old channel or didn't update nix before upgrading macos
<kreetx>
you're right -- I hadn't updated for some time
<kreetx>
should I just reinstall?
<kreetx>
plz help :)
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<LnL>
yeah, that's your best bet then
jtojnar has quit [Remote host closed the connection]
<gchristensen>
that is a disappointing experience
jtojnar has joined #nixos
<LnL>
we're always going to hit problems when apple changes system stuff
<gchristensen>
yeah
<kreetx>
it's okay, guys! it's not that bad :p and the instructions for the uninstall are just wonderful and copy-paste friendly :)
avn has joined #nixos
<infinisil>
I thought there was a darwin bootstrap thing that made it so that's not a problem?
betaboon has quit [Quit: WeeChat 2.0]
<gchristensen>
kreetx: I am so glad to hear that :D
<LnL>
but I do have an idea to make Libsystem changes slightly less problematic
<LnL>
(potentially)
<{^_^}>
[nixpkgs] @LnL7 pushed 1000 commits to staging-next: https://git.io/fxUzg
sir_guy_carleton has joined #nixos
<LnL>
1000, jeeze
<gchristensen>
you're prolific
<LnL>
this is going to be fun...
* infinisil
still has to look up how the new staging thing works
<{^_^}>
[nixpkgs] @LnL7 opened pull request #47604 → Staging next → https://git.io/fxUzr
<{^_^}>
[nixpkgs] @mbode opened pull request #47605 → stern: init at 1.8.0 → https://git.io/fxUzP
<infinisil>
Ummm
<infinisil>
Where can I read about staging-next?
<LnL>
the rfc
<infinisil>
Oh
<infinisil>
But why is it not merged?
<LnL>
basically staging is the buffer where everything goes to and staging-next is a checkpoint of staging that gets stabilised before it's merged back to master
<LnL>
instead of trying to fix stuff in staging while new stuff gets thrown at it
<LnL>
there was still some open discussion and we decided to try it out, but it's been a while now
<emily>
is the reason staging separate just because the load on the build machines would be too much?
<emily>
or because it would cause too many upgrades for users?
<LnL>
both
<gchristensen>
it is no fun to test PRs against master and find you have to bootstrap just to test a change to `hello`
<emily>
maybe I'm just too used to pain
* emily
sighs in resignation every time nixos-rebuild decides it wants to rebuild the world
<gchristensen>
what're you doing to cause that?
<emily>
this was mostly when I backported a systemd upgrade I needed
<infinisil>
Also, staging is really useful for bisection
<gchristensen>
ah :)
<infinisil>
Oh wait, not all that much, because the offensive change could be in the staging commits :/
<infinisil>
(which happened to me a couple times)
<LnL>
no, bisecting staging is no fun :p
<emily>
wait, how is staging useful for bisection?
<infinisil>
At least it's often not too many commits, so you might be able to guess which one it was by just looking at the candidates
<infinisil>
emily: Staging waits for a lot of commits that each change a lot of derivations, then builds all of those changes at once
<LnL>
well, because mass rebuilds are batched there's a better chance you won't end up in a revision without caches
<infinisil>
But when the commit that you're trying to find with bisection is in one of those commits, you'll have to build all the immediate commits, which aren't built by staging
<infinisil>
(I didn't explain it very well, but it basically means that at every git bisect good/bad you'll have to potentially rebuild stdenv all the way up..)
<gchristensen>
I should make my thing for making git-bisect nicer a tool
<avn>
gchristensen: do you have a tool for rebasing nixpkgs?
<gchristensen>
infinisil: yeah
<gchristensen>
avn: just `git rebase`?
<avn>
gchristensen: ;)
<infinisil>
gchristensen: the --option build-cores 0 thing?
<avn>
gchristensen: I mean `bisect` ofc ;)
<gchristensen>
yeah, I automatically `git bisect skip` commits where `stdenv` isn't available through the cache, through -j0
<infinisil>
I think it would be *much* quicker if you'd replace that with some curl command to directly query the path of stdenv from hydra and check for 4xx
<infinisil>
s/I think//
<gchristensen>
that might be, but also makes it hard to support cachix and private corporate repos
<infinisil>
Hmm, isn't there a nix command to check for path availability in some cache?
<infinisil>
If not, it should be one
<gchristensen>
why would -j0 be much slower than that?
<infinisil>
gchristensen: Because it needs to fetch all dependencies
<infinisil>
Only once it starts the build it notices "oh, I don't have any cores!"
jperras has joined #nixos
<gchristensen>
interesting
<infinisil>
The fact that dependencies start downloading is already an indirect sign of "stdenv isn't build by any caches". Nix did the hydra query for stdenv's $out at the start, noticed it couldn't find it, and went deeper down the dependencies
Twey has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @primeos pushed to master « tdesktop: Update the Arch patches »: https://git.io/fxUap
<gchristensen>
infinisil: much faster: nix-store -r $(nix show-derivation $(nix-instantiate . -A stdenv) | jq -r '.[].outputs.out.path')
<charleshd>
Hi, I'm used to use nix-shell for development, but in my last project I have to pull npm dependencies alongside other dependencies, and I don't understand how to do that.
kreetx has quit [Ping timeout: 245 seconds]
fendor__ has joined #nixos
<charleshd>
If I use stuff like node2nix it will spawn a configuration for having my npm dependencies in my env, but I can't (or dunno how to) add these in my shell.nix file.
<samrose>
configuration.nix you need a line like system.autoUpgrade = { dates = "*:0/10"; }; (which would run it every 10 minutes you can adjust that to your desired frequency)
<samrose>
robstr: you would need to package your private app is a nix package, and serve it via some URL, and then you would need to include the package in your configuration.nix (is one way to do it). also in your configuration.nix
<samrose>
robstr: those 2 responses above came through backwards sorry
<samrose>
so, if you turned your git repo into a nixos channel, you would make sure all of the deps are all part of the repo, and all accounted for in nix expressions therein
<{^_^}>
[nixpkgs] @dtzWill opened pull request #47612 → google-chrome: use default patchelf, "fixes" nacl_helper crashing. → https://git.io/fxUoZ
<samrose>
charleshd: I am out of time here for the moment hopefully someone else can dig into this with you too
wpcarro has joined #nixos
<catern>
how would I correctly use bundler and ruby with Nix?
<wpcarro>
Does anyone know if NixOS supports KDE and i3 together out of the box? Or is it something that needs to be configured ad-hoc in both the i3 config and KDE config?
<samrose>
charleshd: oops I conflated my answer with you to may answer to robstr sorry about that
<catern>
or another related question: why is there a nixpkgs.bundler package in all-packages which I can install directly?
<catern>
why isn't that hidden away?
<charleshd>
it seems pretty complicated. Isn't there another solution ? My problem is the following I have in one hand some standard nixpkgs dependencies (emacs, gcc, other stuff) and in the other hand npm dependencies (react-native-cli for exemple) and I want to specify all that stuff in a single shell.nix expression i can run nix-shell against.
<charleshd>
samrose: oh ok !
<samrose>
charleshd: for the rest of your deps that aren't in the nixexpression, you just need to add them to the expression somehow, otherwise nix won't know about them
<charleshd>
it just seems like a standard issue for me, I was hoping somebody though of something before me, but I'll investigate how to do that later tonight.
<Judson1>
Does anyone use VisualVM? I'm trying to run it with NixOS under Xmonad, and all I get is a blank grey window, whose title is "VisualVM License Agreement"
<clever>
Judson1: try with a different window manager temporarily?
<mojjoo>
hi! Since a while rebuilding takes a long time here, it's due to restarting the polkit service(more than a minute..)... Any ideas how to improve this?
Ericson2314-work has quit [Remote host closed the connection]
<clever>
mojjoo: `nixos-rebuild boot` will omit restart anything, changes will only take effect after a reboot
<{^_^}>
[nixpkgs] @xeji merged pull request #47484 → pythonPackages.django-raster: Improve django version support → https://git.io/fxvT7
<{^_^}>
[nixpkgs] @xeji pushed commit from @lsix to master « pythonPackages.django-raster: Improve django version support (#47484) »: https://git.io/fxU1x
<Judson1>
clever, that get's me a little further along. Thanks
blahdodo has quit [Ping timeout: 252 seconds]
fendor__ has quit [Ping timeout: 244 seconds]
<apeyroux>
wlkk
<apeyroux>
oups
<rawtaz>
nice password mate
<rawtaz>
real nice.
<rawtaz>
'bit short though
<rawtaz>
but then again, microsoft actively refuse to let you use longer than 16 characters for your passwords, so perhaps short passwords is a thing for the future
cnidario has joined #nixos
blahdodo has joined #nixos
<timokau[m]>
I get `error: creating symlink from '/nix/var/nix/profiles/system-78-link.tmp-2864-870267566' to '/nix/store/qx32dnib862w5421dym7ckw1a3p7biil-nixos-system-phlebas-18.09beta662.b550b7d9e3d': Permission denied` when doing `nixos-rebuild switch`. Any ideas how to fix that?
<gchristensen>
you need sudo
<timokau[m]>
Oh of course, that should've been obvious
<timokau[m]>
Thanks!
<gchristensen>
:)
jperras has joined #nixos
jperras_ has quit [Ping timeout: 252 seconds]
johanot has quit [Quit: WeeChat 2.0]
<mojjoo>
symphorien: I added `security.polkit.extraConfig = '' X-RestartIfChanged=false '';`, but it still restarts
kreetx has quit [Quit: leaving]
<symphorien>
more likely systemd.services.polkit.serviceConfig.X-RestartIfChanged = "false"; I'd say
samrose has quit [Ping timeout: 256 seconds]
<symphorien>
you can check the result with systemctl cat polkit
<{^_^}>
[nix] @edolstra merged pull request #2456 → Update docs to describe how s3:// URLS does in fact support endpoint, region, and profile for upload → https://git.io/fAjpV
<mojjoo>
as non-root I get `(process:24289): Helper-WARNING **: Failed to create pid file: '/run/user/1001/rofi.pid'.`
<{^_^}>
[nix] @edolstra pushed 6 commits to 2.1-maintenance: https://git.io/fxUHm
<{^_^}>
[nixpkgs] @makefu opened pull request #47625 → ifdnfc: init at 2016-03-01 → https://git.io/fxUHE
<{^_^}>
[nixpkgs] @xeji pushed commit from @srhb to master « nixos/tests/nix-ssh-serve.nix: Use stable nix (#47584) »: https://git.io/fxUHp
<hodapp>
that could be quite handy
<gchristensen>
or my thing that checks to see if my nixos-version is out of date
<{^_^}>
[nixpkgs] @xeji pushed commit from @srhb to release-18.09 « nixos/tests/nix-ssh-serve.nix: Use stable nix (#47584) »: https://git.io/fxUQT
jperras has quit [Quit: WeeChat 2.2]
<hodapp>
I need to remember the way to tell systemd "only run this when the network is really really ready, not just when it's 'ready'"... there is some simple way that I don't remember but my derpy Ras Pi by the TV needs to be able to mount an NFS share over the WiFi and 80% of the time can't
<hodapp>
because it tries to do it when the network is "ready" but not actually passing traffic
<{^_^}>
[nixpkgs] @xeji pushed commit from @tex to staging « boost: fix fiber header (#47540) »: https://git.io/fxUQy
<andi->
gchristensen: you can do application/service level firewall, syscall filtering etc. I am surprised you haven't looked into all the *magic* yet ;-)
<gchristensen>
I knew about some of the syscall filtering, but firewalling?
<Lisanna>
FOr some reason a whole bunch of text files in my /nix/store have been destroyed and replaced with empty files
<Lisanna>
):
akavel has joined #nixos
<akavel>
Hi all! Newbie question: is there a utility derivation which wraps "wrapProgram"?
<akavel>
I want to create a script adding some env variables to existing program; do I have to write it myself, or is there some helper?
<Lisanna>
akavel you can access wrapProgram through the "makeWrapper" package
blahdodo has joined #nixos
<akavel>
@Lisanna but IIUC, it registers a "setup hook", and I have to create full mkDerivation to use it, right? I'd really prefer something akin to writeShellScriptBin
<Lisanna>
akavel ah, yeah, you're right
jluttine has quit [Ping timeout: 252 seconds]
sir_guy_carleton has quit [Quit: WeeChat 2.0]
sir_guy_carleton has joined #nixos
jluttine has joined #nixos
mayhewluke has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @knedlsepp opened pull request #47634 → libcanberra: fix darwin build → https://git.io/fxTvm
mayhewluke has joined #nixos
blahdodo has quit [Ping timeout: 252 seconds]
<gchristensen>
hmmm we can use `ConditionGroup = "users"` as a way to limit systemd user services to actual users
worldofpeace_ has quit [Read error: Connection reset by peer]
MinceR has quit [Ping timeout: 268 seconds]
MinceR has joined #nixos
jperras has quit [Quit: WeeChat 2.2]
<__red__>
Could a trusted person please kick off the testing for PR#46753
<__red__>
Could a trusted person please kick off the testing for PR46753 = specifically need to test that the compile for linux & darwin completes correctly so I can push an upstream PR
jperras has joined #nixos
<mankyKitty>
anyone know why the hydra manual is out of step with what is in the repository ?