<elvishjerricco>
Currently, I've got Hydra running in a declarative NixOS container on my system. I _think_ this has buggy behavior with remote builders (not using a Darwin even though its in the "Manage machines" list), so I'm going to try to move the Hydra instance onto the actual machine instead of the container.
<elvishjerricco>
What data files do I need to move over? Just the postgres DB, any keys, and the cache folder?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 5 new commits to master: https://git.io/vAPBQ
<NixOS_GitHub>
nixpkgs/master 41c1a62 rnhmjoj: mpv: clean up options
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 1ec8eb9 Jörg Thalheim: mpv: also disable x11support on darwin
<mfiano>
Can anyone recommend to me a decent deduplication backup package?
gm152 has joined #nixos
<mkaito>
mfiano: I'm partial to borg and tarsnap for backup.
<mfiano>
I used borg before I switched to Nix a few days ago. I was thinking that or restic
<mfiano>
Nice to know others agree
BlessJah has joined #nixos
<samueldr>
I personally use borg, for what it's worth :)
<mkaito>
borg to rsync.net is really damn good.
kelleyNif has quit [Quit: Leaving.]
<samueldr>
(I'm backing up to a distant server I own)
<mkaito>
then borg is a good choice tbh
<samueldr>
thing I like, is deduplication through backup archives even on multiple computers
Guanin has quit [Quit: Leaving]
<samueldr>
I have my laptop and workstation, with shared duplicated files
<samueldr>
(which I sync locally using unison)
<Acou_Bass>
errm... is there any reason my firefox has become un-launchable by the KDE menu? it gives me a dialog box asking if im sure i want to launch it, then a sorry box saying 'unable to make the service firefox executable, aborting execution'
<mkaito>
Acou_Bass: try executing via terminal. at least, it'll give you something more useful to work with.
<Acou_Bass>
launching via terminal works fine, output looks like standard firefox output and the browser pops up :P
<mkaito>
huh
kelleyNif has joined #nixos
<mkaito>
then I don't know. no experience with KDE, no idea if it does something fancy.
<Acou_Bass>
firefox.desktop is apparently located in ~/.nix-profile/share/applications which seems correct
<Acou_Bass>
well... thats where KDE is looking, *but* that item isnt actually in that directory
<Acou_Bass>
that may explain a lot
Sonarpulse_ has quit [Ping timeout: 240 seconds]
<Acou_Bass>
i used to have firefox installed under my user profile via nix-env but ive added it to configuration.nix so i guess KDE still thinks its under my user
<mfiano>
mkaito: whoa rsync.net is pretty cheap compared to tarsnap etc
<clever>
Acou_Bass: read the path inside the extra firefox.desktop and maybe delete it
<mfiano>
I would probably get it if my VPS didn't give me a free 50gb ssd to attach
<Acou_Bass>
clever: there isnt an extra firefox.desktop, the KDE menu was looking for my user-installed one under ~/.nix-profile but there wasnt one there - fixed though, ran kbuildsycoca5 which rebuil the applications menu \o/
<clever>
Acou_Bass: ah
<clever>
Acou_Bass: i dont know much about kde, but xfce seems to automatically detect changes to at least ~/.local/share/applications
<clever>
adding files just magically adds them to the menu
ryantrinkle has quit [Ping timeout: 240 seconds]
<Acou_Bass>
KDE usually does that too but guess this one was stuck :P
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dotlambda pushed 2 new commits to python-unstable: https://git.io/vAPEu
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/python-unstable 920ef8a Robert Schütz: pythonPackages.pythondaemon: 2.1.1 -> 2.1.2
<NixOS_GitHub>
nixpkgs/python-unstable 3836f79 Robert Schütz: pythonPackages.pythondaemon: move expression
<gchristensen>
ryantm: I have 9 evaluators running, so when you're ready
erasmas has quit [Quit: leaving]
michalrus has left #nixos [#nixos]
<clever>
gchristensen: are they multi-threaded?
<gchristensen>
No
<ToxicFrog>
Is there a writeTextFile-like function that returns the name of the written file?
<ToxicFrog>
I need to write a bunch of one-line config files and refer to them by name and it's aggravating needing to, well, have a bunch of one-line config files lying around
<clever>
ToxicFrog: try just writeText ?
digitus has quit [Quit: digitus]
<clever>
ToxicFrog: it accepts just 2 arguments, name: contents:
sigmundv has quit [Ping timeout: 240 seconds]
<ToxicFrog>
clever: I will give that a shot!
<ottidmes>
I am trying to kexec into a different kernel/initrd from the current initrd, everything is working fine, except that I seem to be unable to mount the boot partition. The problem is that I have to re-read the partition table of the disk that contains the boot partition, but /dev/sda1 somehow still refers to the old table (in the old table it only had /dev/sda1), when I try to mount /dev/sda2, that one works
<ottidmes>
without issue
jackdk has quit [Remote host closed the connection]
<duncan^>
ottidmes: That sort of stuff is handled by the initrd that you load with kexec; after you warm-boot a given kernel and ramdisk, it doesn't care about the old stuff.
<mfiano>
mkaito: Do you backup your whole system or just your homedir? I think on Nix the latter only makes sense right?
<ToxicFrog>
clever: so where is it? It's not in `lib` or `pkgs`, and the nixpkgs manual uses it in a few examples but doesn't actually document it anywhere
<clever>
ToxicFrog: it should be in pkgs
babyflakes has joined #nixos
<clever>
nix-repl> pkgs.writeText
<clever>
«lambda»
<ottidmes>
duncan^: The problem is, in order to tell kexec which kernel and initrd to load, it needs access to the /boot partition (in my use case), but I think I have a fix, I just need to force it to overwrite existing entries (in my case just /dev/sda1) as well, which according to the topic I am reading can be done with partx, so I am trying that now
coot has quit [Ping timeout: 256 seconds]
<duncan^>
wouldn't whatever came before you run kexec allow you to access the boot partition in question?
<nkaretnikov>
any agda users here? how do i install it, so that it can find its stdlib? fwiw, i have these packages installed via nix: Agda-2.5.3, agda-prelude-0dca24a81d417db2ae8fc871eccb7776f7eae952, agda-stdlib-0.14 cc: copumpkin
<duncan^>
It sounds less like a question about kexec tbh
<ToxicFrog>
clever: found it, I wasn't editing the file I was nixos-rebuilding >.<
<ryantm>
gchristensen: I'm up to 170 that I need to process :)
aarvar has joined #nixos
sanscoeur has quit [Remote host closed the connection]
sanscoeur has joined #nixos
dan_b has quit [Ping timeout: 245 seconds]
<clever>
ottidmes: kexec?
ryanartecona has joined #nixos
sanscoeur has quit [Ping timeout: 252 seconds]
<ottidmes>
clever: Yeah, so I am using the native disk encryption of my SSD
aarvar has quit [Remote host closed the connection]
<ottidmes>
clever: For which I use sedutil to (un)lock it
<clever>
ottidmes: ah
<ottidmes>
clever: But I do not like that I have to reboot every time I unlock it (every cold boot)
<ottidmes>
clever: Problem is, that because sedutil first use a shadow partition table, I need to unlock it and then re-read the actual partition table, before I can mount /boot to kexec in the actual kernel/initrd
<ottidmes>
clever: The idea being that I won't want to reinstall that shadow image every rebuild of nixos (not realistic)
aarvar has joined #nixos
<clever>
ottidmes: what happens to the shadow partition table when you unlock?
<ottidmes>
clever: If you unlock it, the shadow table goes away, but the kernel still thinks it is there
<clever>
ottidmes: ahhh, and then you have zero way to update the shadow
<ottidmes>
clever: So most just choose to reboot, but I am trying to refresh the table without rebooting, which works for non-existing partition numbers
<clever>
ottidmes: ah, so you want to wipe the read cache and partition table cache
<clever>
ottidmes: thats easy
<clever>
ottidmes: first, if you `echo 1 > /proc/sys/vm/drop_caches` the kernel will just discard all caches
<clever>
partprobe /dev/sdX
<ottidmes>
clever: Do tell :P I googled, but all solutions fail in one way or another
<gchristensen>
Ryantm any estimate how many total?
<mfiano>
I'm a bit confused how I'm supposed to develop Common Lisp on NixOS. I mean, I can no longer dump ELF binaries of my environment.
<clever>
ottidmes: and this command will force it to rereat the tables
Otis has joined #nixos
<ottidmes>
clever: Yeah, I found partprobe, hdparam -z, partx -a, blockdev --rereadpt, they all basically do the same, re-read the partition of the given device, but partx -a, which I just tried, will fail on that partition 1 that was already there due to the old shadow table
<ottidmes>
clever: I haven't seen or tried the /proc thing, will try that now, thanks!
<clever>
ottidmes: you also need to ensure you umount the partition before you partprobe
gm152 has quit [Ping timeout: 256 seconds]
MP2E has quit [Remote host closed the connection]
<clever>
ottidmes: ive also had an idea for a software i want to write, that does a lot of what your doing
<clever>
ottidmes: basically, the rollback options in grub are useless on remote machines
<ottidmes>
clever: Weird thing is, I get things like no such device or invalid argument when I try to do things on that /dev/sda1 (the one parititon in the shadow table, which happens to be the boot partition in the new table)
<clever>
ottidmes: check /proc/partitions and see if it has updated
<clever>
and dmesg
MP2E has joined #nixos
<mfiano>
I might have to have a non-NixOS machine for programming/work if this can't be used to test lisp images.
<clever>
ottidmes: my idea, is to have a thin OS (like what you have), that reads grub.conf and sets up the network for remote access for 30 seconds
<ottidmes>
clever: like: umount /dev/sda1: invalid argument, wut? it exists when I use ls /dev/sda*
<clever>
ottidmes: then either boots the default, or gives a network accessible boot menu
<clever>
ottidmes: what about cat /proc/mounts ?
<ottidmes>
clever: cat /proc/mounts gives me just the special file systems, no disks
<clever>
ottidmes: then you dont need to umount it
<clever>
ottidmes: and /proc/partitions ?
<ottidmes>
clever: shows me the same as what I saw with ls, but I do notice the #blocks giving me the old value, i.e. the size of the shadow partition
<clever>
ottidmes: try drop_caches and partprobe again?
<ottidmes>
clever: That seems to have fixed the #blocks size! But when I try mount /dev/sda1 /boot, it still errors with invalid argument strangely enough
<clever>
ottidmes: what does dmesg say?
<ottidmes>
clever: When I give it a fstype, mount -t vfat /dev/sda1 /boot, it gives me: no such device
<clever>
ottidmes: ls -l /dev/sda1 shows what major/minor on the block device?
<clever>
brw-rw---- 1 root disk 8, 1 Dec 8 00:37 /dev/sda1
<clever>
8,1 in my case
<clever>
and does it match up with /proc/partitions ?
<clever>
there is a number before that timestamp that is important
<ottidmes>
clever: jep, the major and minor where the same
<clever>
oh, another idea
<clever>
check lsmod, find the driver for sata drives
<clever>
rmmod, then modprobe
<ottidmes>
clever: Whoops it auto-shutdowned (I implemented that remote access + timeout if you do not unlock in time)
<clever>
ottidmes: lets try unloading sd_mod and reloading then
<clever>
if it works right, sda should vanish from /proc/partitions
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vAPal
<NixOS_GitHub>
nixpkgs/master 79c876b Tim Steinbach: fira-code: 1.204 -> 1.205
NixOS_GitHub has left #nixos [#nixos]
<ottidmes>
clever: It rebooted, partprobe was enough to fix the cache, no need for that echo 1 > /proc/..., I am now trying your modprobe suggestion
<clever>
i think the modprobe will also eliminate the need for partprobe
<mfiano>
I've been staring at this all day wondering how to get actual work done on NixOS :(
<ottidmes>
clever: Can confirm, modprobe -r sd_mod removes all entries except ram from /proc/partitions
<clever>
ottidmes: and then just reload it with `modprobe sd_mod`
<ottidmes>
clever: I did that, it added them back to /proc/partitions, unfortunately it still errors with no such device
<clever>
ottidmes: dang :(
<ldlework>
clever what's going on in my gist?
<ottidmes>
clever: It is unforunate that it does not give me any more to go on than, no such device, since there obviously is such device, it shows up in all lists
<clever>
ldlework: are you using the right version of python?
<ldlework>
yes..
<clever>
ldlework: what are you doing?
<ldlework>
just starting python and importing urlparse?
<clever>
ldlework: weird
<ldlework>
ya
<ottidmes>
clever: I still have a lead, when I try to mount the partition of my USB stick, it also gives me: no such device
<clever>
ottidmes: weird
ryantm_ has joined #nixos
<ryantm>
gchristensen: I'm going to start doing more PRs now.
<ottidmes>
clever: And /dev/sda2 (btrfs partition of re-read table) is doing fine with just: mount /dev/sda2 /boot, so maybe it has to do with fat filesystems, I do not know. I have to go to sleep now. You gave me some great suggestions I would not have thought of, thanks for the help!
<clever>
ottidmes: these commands are for sata hotplug, they let you safely disconnect, and reconnect a sata drive with the machine on
<clever>
ottidmes: i would also expect these commands to fully wipe all related caches and re-initialize things
<clever>
gchristensen: try -n instead
<clever>
gchristensen: if you -n the room, then NixOS_GitHub can msg without joining
<clever>
which cuts the spam down to 1/3rd
<gchristensen>
we went +n due to spam
<clever>
we can +n again after ryan is done with his own spam :P
<gchristensen>
mehh...
<mfiano>
That bot is always noisy. Would better fit the dev channel I think
jackdk has quit [Ping timeout: 256 seconds]
ryanartecona has quit [Quit: ryanartecona]
<ottidmes>
clever: The disconnects works nicely, the hotplug scan does not, but I probably have to use a different channel, not sure how to determine that though
<clever>
ottidmes: brute-force is what i do
<clever>
ottidmes: just try each one until it works
<ottidmes>
clever: Brute force worked, unfortunately still the same errors, but this should be enough evidence that the error is not caused by refreshing the table, but with some mount issue
<clever>
ottidmes: its possible that the drive itself is demanding that you reboot
boomshroom has joined #nixos
<mfiano>
where does the minimal installation cd download files to during nixos-install?
<clever>
ottidmes: and wants the bios to re-initialize it
<boomshroom>
Hello!
<clever>
mfiano: the host /nix/store, which is in a tmpfs
<mfiano>
It failed running out of space, but /mnt has 18gb free
<clever>
gchristensen: heh, i was just thinking it should be added to {^_^}
<mfiano>
huh
<clever>
mfiano: check df -h and youll see something that is nearly full
<gchristensen>
clever: yeah, it should be really easy. This function is literally all I need.
<clever>
gchristensen: ah
<gchristensen>
I just don't have the time to write it, I guess
<mfiano>
clever: Yeah /iso and /nix/store
<boomshroom>
I wanted to build another cross-compiler. (I mean, who really wants to build software their current environment can run anyway.) I wanted to thank whoever told me about pkgsi686Linux.stdenv.mkDerivation.
<clever>
mfiano: and also .rw-store
<acowley>
What's up with travis build failures talking about rake and other ruby-isms on nixpkgs PRs?
<ottidmes>
clever: Could be, I based the idea on someone's project on github, so apparently it can be done, but maybe not with my particular SSD, strange though that I can mount my second partition without issue
<mfiano>
clever: I'm trying to deploy to a 512mb vps
bsima has joined #nixos
<acowley>
Does travis assume a ruby project if there's nothing else to go on?
<clever>
mfiano: enable some swap then
<clever>
mfiano: and resize the .rw-store tmpfs with `mount /path/to/it -o remount,size=1g`
<mfiano>
clever: hmm, i only have 20gb of ssd space. was hoping to have that all available for the store
<clever>
mfiano: you can use a swap file on the same partition, and just delete it afterwards
<boomshroom>
I decided to take a look at `pkgsi686Linux` and found that it calls `forceSystem`. I tried calling it directly at to my surprise, it actually tried to build something to build an stdenv for a foreign cpu! It imediately failed because the environment I was targeting wasn't in platforms.all, but it's a huge step!
<boomshroom>
At this point, I'd like to ask if it's possible to run nix-shell and override allowBroken for the one call. Is it?
<mfiano>
clever: swapon failed
<mfiano>
swapon: swapfile has holes
<clever>
mfiano: with what error?, and what FS are you using?
<clever>
ottidmes: nixos has to know which FS drivers to include into the initrd
<boomshroom>
You want a remote swap?
<mfiano>
i'm deploying to a vps with 512mb of ram and 20gb hd
<clever>
mfiano: oh, btrfs supports raid like features, what if you just make a 2gig swap partition, then delete it and raid it into the main volume to regain the space?
<clever>
mfiano: JBOD mode
<mfiano>
hmm
sanscoeur has joined #nixos
<ottidmes>
clever: Yeah I just check and I had boot.supportedFilesystems, not boot.initrd.supportedFilesystems, but, damn, why not give me a proper error message instead of those general errors that could be anything
<boomshroom>
Looking into my most recent error, I found that stdenv/native doesn't seem to provide a bintools argument to build-support/cc-wraper.
jtojnar has left #nixos [#nixos]
jtojnar has joined #nixos
Supersonic has quit [Disconnected by services]
sanscoeur has quit [Ping timeout: 245 seconds]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
sanscoeur has joined #nixos
<ottidmes>
About security and allowing SSH root access via key files, I tried to prevent the need, but things like nixops and znapzend need it, so I started using them. Is the general idea just that, if e.g. your laptop gets stolen, sure they could access the machines via the stolen ssh key, but that 1) means the thiefs needs to be tech savy, 2) you would immediately change the keys if such a thing were to occur
MP2E has quit [Remote host closed the connection]
d4g has joined #nixos
<duncan^>
If your laptop gets stolen and your drive isn't encrypted and you're not storing your keys on the smartcard, immediately change the keys for crying out loud
<boomshroom>
Looking at the other stdenvs, it seams like that particular one just hasn't been updated because it's not frequently used.
<duncan^>
They don't need to be particularly tech-savvy to look in /home/ whatever user /.ssh/
* simpson
. o O "Change the keys, for Godssake!"
<duncan^>
So this is actually an argument for storing your keys on smartcards that are kept apart from the laptop, and it stops any random file discolsure bug in your unsandboxed web browser from disclosing your cryptographic keys
<ottidmes>
Eh, to be clear, it is hypothetical, if it gets stolen
<duncan^>
No it's not.
<duncan^>
Laptops can get stolen quite easily
d4g_ has quit [Ping timeout: 245 seconds]
<simpson>
I've had a corporate laptop stolen. Had to call into the 24/7 security line and had to rekey all my stuff. Sucked quite hard.
<duncan^>
all it takes is some teenager with a knife threateing you
<duncan^>
or nicking it while your back is turned
<simpson>
I also had a personal laptop pinched when I was at university a decade ago. Very irritating.
<duncan^>
Never had a laptop stolen, had money stolen though
<ottidmes>
duncan^: But using a smartcard would break the whole reason for using them (the root keys) (for me at least) in the first place, or would they still allow automation (in the case of znapzend for example)
freeman42x]NixOS has quit [Ping timeout: 240 seconds]
<duncan^>
I'm sure you could work something out
<duncan^>
Not my concern though
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos
jtojnar has left #nixos [#nixos]
pkill9 has quit [Ping timeout: 245 seconds]
<mfiano>
clever: how do i fix the grub error of my gpt not having a bios boot partition? i left 2mb unallocated
<clever>
ottidmes: nixops can work with an ssh agent
<clever>
ottidmes: so you can just delete the ~/.ssh/authorized_keys that gave nixops access, and use a password protected key in your agent
<clever>
ottidmes: also, i luks every machine that is remotely portable
<clever>
ottidmes: i also have an idea i want to experiment with, i'm thinking i can add a keyfile to my luks volume, and store that on an SD card in the SD reader of my laptop
yegortim1 has quit [Ping timeout: 255 seconds]
<ottidmes>
clever: I can see how that would work for nixops, but that won't work for background services that needs root access right?
<clever>
ottidmes: when i'm at home, leave the literal key in the laptop, and it boots without any prompt
<clever>
ottidmes: when i leave home, take it out, and it becomes password based
yegortim1 has joined #nixos
<ottidmes>
clever: Yeah, I have that, I even use a USB stick shaped as a key for that :P
<clever>
ottidmes: what background services need root ssh?
<ottidmes>
clever: znapzend in my case
<clever>
ah
<clever>
i think if you chmod and chgrp /dev/zfs, you can run some zfs commands without root
<clever>
but that still gives them nearly root level access to a section of zfs
<gchristensen>
ryantm: any more? ;)
<ottidmes>
clever: I was experimenting with the sudoers file and a special user, it should help, but there will probably be still quite an attack vector left (it needs mount for example)
<clever>
ottidmes: ive also seem that setuid and sudo can be very tricky to secure properly
<clever>
ottidmes: fuse for example has a setuid binary to aid with mounting fuse FS's
<clever>
ottidmes: and if the kernel doesnt support fuse, it will automatically execute `modprobe fuse` as root
<ottidmes>
clever: Yeah, I read your comments about them a while back, scary stuff
<clever>
ottidmes: it didnt sanitize the env, and modprobe obeys an ENV variable for its config, and the config can say "run this instead of loading fuse"
<clever>
ottidmes: and if you just play with ulimit, you can break fuse trying to read /proc/filesystems, causing it to falsely think you dont have fuse
<clever>
so now you have 100% root
kelleyNif has joined #nixos
<ottidmes>
clever: That is why I gave up on the sudoers approach, although it might make things a little bit more complicated for an attacker, it probably won't do much on the grand scale of things
<clever>
ottidmes: sudo does have options to fully wipe the env vars
markus1189 has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
mekeor has quit [Ping timeout: 240 seconds]
<Dezgeg>
isn't the fuse module autoloading done by the kernel?
<ottidmes>
clever: Yay! Just tried it, still errors (apparently the re-reading does not block, so I mount to early, I will just add a sleep call), but when I then manually mount it seems to work fine, thank you so much for all your help!
markus1199 has quit [Ping timeout: 248 seconds]
<clever>
Dezgeg: i cant find it in the source, but the article i remember reading claimed it happened that way
<boomshroom>
Or at least it made it run. It didn't actually do anything. It didn't even notice the source derivation at changed at all.
m3lst4d has joined #nixos
m3lst4d has left #nixos [#nixos]
<mfiano>
clever: i deleted swap and btrfs, then recreated btrfs partition to fill the disk, then mounted it and did a online resize to account for the new space and it worked
<boomshroom>
`nix-store --delete`ing the old sources fetched the submodules correctly.
<clever>
mfiano: ah, that also works
<clever>
boomshroom: you have to tweak the hash, its a common issue
<clever>
boomshroom: you left the hash unchanged, which is telling nix that the contents are unchanged
<clever>
boomshroom: so nix doesnt bother checking for a new version
<boomshroom>
clever: Ah, so it's a known issue. Well I got it working anyway, now I just wait for everything to download, and then build.
ottidmes has quit [Ping timeout: 265 seconds]
<mfiano>
Is there anyway I can install the terminfo file of a terminal emulator without pulling in all of Xorg?
<mfiano>
I can do this on other distributions, but I don't see a package in nixpkgs
<clever>
mfiano: and it may already be installed, because you could be experiencing an xterm terminal, via ssh
<mfiano>
Not xterm
<fearlessKim[m]>
mfiano: I know termite has a terminfo output
<mfiano>
I need termite.terminfo. Without it my ssh connection is choking when connecting with the termite terminal emulator
<clever>
mfiano: termite.terminfo doesnt depend on anything else, so you should be able to just add it to systemPackages
<mfiano>
Ah ok thanks. Hmm, I saw the install pull in xorg anyway, and gtk etc even though afaik systemPackages are all cli applications. How can I find out what is pulling all those in?
<clever>
mfiano: run nix-store -q --tree /run/current-system
<clever>
mfiano: then use / to search, and follow things up the tree
<mfiano>
clever: error: infinite recursion encountered, at /nix/var/nix/profiles/per-user/root/channels/nixos/pkgs/top-level/all-packages.nix:3884:22
Arcaelyx_ has joined #nixos
Arcaelyx has quit [Ping timeout: 245 seconds]
<boomshroom>
The git repos have been downloaded. Now to actually build them.
<clever>
mfiano: and you did it exactly like i typed?
<clever>
mfiano: oh wait, i think i know
<mfiano>
yes
<clever>
mfiano: change the pinentry one to pinentry = pkgs.pinentry.override { gtk2 = null; };
<wilornel>
Hey #nixos! I have a user `bob` with a project ~/foo and a ~/foo/default.nix which declares a set of packages to install. I installed those with `nix-env -f . -iA myNewPackages` . I have a user `alice` with a project ~/bar with ~/bar/default.nix . When I do `nix-env -f . -iA myOtherPackages`, I get conflicts.
<wilornel>
collision between ‘/nix/store/qbbmfkwaz32707xspbcym9j9jjxkxwnm-my-human-interface-packages/bin/redis-benchmark’ and ‘/nix/store/nyykx213z4hnrchzizm8mka135krb9ki-my-new-packages/bin/redis-benchmark’; use ‘nix-env --set-flag priority NUMBER PKGNAME’ to change the priority of one of the conflicting packages
<wilornel>
My expectation was that nixos would install only one package for redis and have the ~/.nix-profile` of each user point to the package correctly (through a series of symbolic links)
<mfiano>
clever: that worked. What's a good way to see if i have any trace of X11 left now?
<clever>
wilornel: does that file contain a buildEnv?
<clever>
wilornel: are they actually different users in linux?
<wilornel>
yes
<clever>
wilornel: does each user have ~/.nix-profile/ pointing to a unique path?
<wilornel>
checking
<mfiano>
clever: also password-store seems to depend on xdotool heh
<mfiano>
wish it was simple to just tell it not to resolve X dependencies...
garbas has quit [Quit: WeeChat 1.9.1]
<wilornel>
` .nix-profile -> /nix/var/nix/profiles/per-user/bob/profile` and `.nix-profile -> /nix/var/nix/profiles/per-user/alice/profile`
nuncanada has quit [Quit: Leaving]
<mfiano>
this is going to make deploying my different package lists rather difficult
<wilornel>
so I think yes
<wilornel>
clever: Is that what's supposed to happen?
<clever>
wilornel: and if you run nix-env -q as each user, do they have different things installed?
<adisbladis>
mfiano: I find "nix-store --graph" incredibly helpful for this kind of thing: nix-store -q --graph /run/current-system | dot -Tps > system.ps
<adisbladis>
I have never actually used it for a full system, expect it to take a while.
<mfiano>
right now it seems to be compiling a bunch of X libraries (as in with configure/make) after I turned X11 support off for dbus...
<mfiano>
I'm speachless
<wilornel>
clever: they have the same things installed: `my-packages` and `my-new-packages`. `my-packages` is installed in /home/bob/.config/nixpgs/config.nix
<wilornel>
I mean it's declared in that `config.nix` file
<wilornel>
is that supposed to happen? It's strange. I thought nixos would install those for individual users
<wilornel>
is it because each user is running the same nix-env? which is installing things globally?
<clever>
wilornel: they should be unique, can you "ls -ltrh /nix/var/nix/profiles/per-user" ?
<clever>
wilornel: oh, and what does "env | grep NIX" say, are there any vars pointing under per-user?
<mfiano>
well this is going to take a while. looks like it's recompiling binaries for all of Xorg on an underpowered 512mb 1ghz cpu meant for just IRC
kelleyNif has quit [Quit: Leaving.]
<wilornel>
These are the outputs: https://paste.ubuntu.com/p/MNxXxrJRrk/ (I like to use paste.ubuntu.com for no particular reason, I'm on NixOS). I'll brb I need to take care of something and I'll evaluate what you said better
<boomshroom>
Dang. The build was going so well, and then it errored complaining that a format string wasn't a literal.
fnlkj has joined #nixos
<boomshroom>
It mentioned `cc1plus: some warnings being treated as errors` and `[-Werror=format-security]` Are those set by Nix and if so, how do I turn them off? (This is a fork of GCC that I'm building.)
<mfiano>
How can telling it to not use X11 for dbus cause it to just recompile all of xorg? Surely there must be a simpler way to install a command line linux than iteratively disable support for packages that depend on X11 one by one
jackdk has joined #nixos
<mfiano>
At this rate it'll be done tomorrow only to have to do it all over again for the next package that depends on x11
<null_>
Has anyone been able to get another OS's docker image up? I'm using a base archlinux image (archlinux/base) and I've got a couple absolute paths that it's giving me errors about (https://pastebin.com/9v9PLAYx). I don't really have any experience with nix, and I'm not sure how to deal with these dependencies.
acarrico has quit [Ping timeout: 248 seconds]
schoppenhauer has quit [Ping timeout: 268 seconds]
<clever>
mfiano: oh, there is also a flag i forget about, elt me find it
<mfiano>
clever: well it'll be compiling for a long time on this hardware
<mfiano>
if it doesn't run out of ram before then
schoppenhauer has joined #nixos
<clever>
mfiano: nixops can help a lot with that kind of thing, build it on one machine, then push it out to the server
<clever>
cant find the flag i was thinking of
<mfiano>
been stuck on compiling gtk for 15 minutes
<clever>
mfiano: let me analyze my router and strip it down...
<clever>
i have bigger fish, no point in trying to purge the X :P
fragamus has joined #nixos
<mfiano>
I'm trying to use this as a backup server, so every bit of the 20gb helps
<clever>
mfiano: that wont even store half of my /home partition on the laptop
<mfiano>
my home partitions are just textual. i have a nas for binary data such as multimedia
<clever>
my laptop has an entire win10 VM in virtualbox, which saves the disk images to $HOME
<mfiano>
oh yeah i change my virtualbox data path for that reason
ryanartecona has joined #nixos
ryanarte_ has joined #nixos
<clever>
before: 3.0gig, after: 1.7gig
<clever>
just removing auto-complete from vim did that, lol
<mfiano>
is it safe to cancel this build?
<clever>
yes
<clever>
nix will just start it again if it has to
<mfiano>
oh wait...it might be done soon.
<mfiano>
it's compiling bash now
<clever>
thats a bit odd
<mfiano>
this is only from adding dbus = pkgs.dbus.override { x11Support = false; };
<mfiano>
vte-ng now
ryanartecona has quit [Ping timeout: 245 seconds]
<clever>
bash shouldnt depend on dbus
<mfiano>
like i said, it recompiled a bunch of stuff, like gtk, xorg, etc
<mfiano>
instead of grabbing binaries
<mfiano>
ok it just finished everything
<mfiano>
i just watched it compile gtk for about 30 minutes, and gtk is not found in the graph...wth
<null_>
Is there a way around & being an invalid character for fetchurl? I've tried escaping it to no avail
<mfiano>
clever: any clue what that was about?
<clever>
mfiano: that is weird
<null_>
I'm downloading something nonfree which doesn't have any other URL to download from
<wilornel>
clever: I'm not sure what the `env | grep NIX` tells us
<clever>
null_: set the name attribute inside the fetchurl
<clever>
null_: and then it will not care what the url contains
<wilornel>
NIX_USER_PROFILE_DIR seems correct
<null_>
Oh, thank you clever
<null_>
that makes sense
ryanarte_ has quit [Quit: ryanarte_]
<clever>
wilornel: so $NIX_USER_PROFILE_DIR is unique for each user?
<wilornel>
clever: yes
<clever>
wilornel: how did you get a shell for the other users?
<wilornel>
`su - alice`
acarrico has joined #nixos
<clever>
wilornel: try "sudo -u alice -i"
ryanartecona has joined #nixos
<wilornel>
`nix-env -f . -iA myHumanInterfacePackages` throws the same error
<wilornel>
(I called that `myOtherPackakges` earlier)
<clever>
wilornel: is there any reason you cant just use nix-shell instead of nix-env?
<mfiano>
du --max=0 -hc $(nix-store -qR /run/current-system) | sort -h
<mfiano>
1.1G
<mfiano>
good enough I guess
<clever>
mfiano: my router is at 1.7gig
<clever>
so your doing better
<wilornel>
clever: the fact that I'm not used to it instead of nix-env
<wilornel>
how would I use nix-shell in place of nix-env for a given default.nix?
<wilornel>
in this case specifically?
<clever>
wilornel: nix-shell -p '(with import ./. {}).myHumanInterfacePackages' would just use your existing buildEnv, but its often a lot better to make a shell.nix with a dummy derivation, and put everything into its buildInputs
<wilornel>
`nix-shell default.nix` does some work but then I get `bash: /tmp/env-vars: Permission denied`
<clever>
wilornel: thats a bug, the last user to run nix-shell used /tmp/env-vars and left it behind
<clever>
and now nobody else can use it until the file is deleted
ryantrinkle has quit [Ping timeout: 256 seconds]
<wilornel>
I think there's a typo in the argument to "-p"
<wilornel>
` syntax error, unexpected ')', expecting ';', at (string):1:113`
<wilornel>
it merely prints the ^P or ^N character into the terminal
<wilornel>
pressing up prints ^[[A
<clever>
wilornel: is bash in the buildEnv?
<clever>
mfiano: you ran out of memory
<clever>
mfiano: check dmesg
<clever>
wilornel: also, try the arrow keys?
<wilornel>
no! that's wrong
<wilornel>
I ran nix-shell inside a nix-shell
<wilornel>
that's why I had my issue
<clever>
ah, yeah, that causes lots of problems
<wilornel>
sorry about the wrong issue minireport
<mfiano>
how much ram does nix-env require?
<wilornel>
how would one install rails? get RVM and install it with rvm?
<clever>
mfiano: depends on what arguments you give it
<mfiano>
clever: -u
muzzy_ has joined #nixos
<clever>
mfiano: -u and -i involve scanning the entire nixpkgs
<ryantm_>
wilornel: Do you already have a rails project?
<clever>
mfiano: -iA uses far less ram
<mfiano>
clever: so basically don't upgrade on this hardware
<wilornel>
ryantm_: I will start one
<clever>
mfiano: you can upgrade using -iA
<clever>
mfiano: you just have to know the attr apth
<clever>
path*
<mfiano>
I'm not sure what that means
<wilornel>
mfiano: my guess is `nix-env -f . -iA myPackageName`
<mfiano>
I'm reading nix pills and it says to upgrade all derivations i should do nix-env -u
<ryantm_>
wilornel: If you make a Gemfile first, you can use bundix to get a bundlerEnv with rails in it.
<wilornel>
I'd like to make it easy for other contributors to use the repository without nix installed I think
<clever>
mfiano: -u will search everything in all of nixpkgs for things with a matching .name
<clever>
mfiano: which consumes a lot of ram
<wilornel>
let me try that actually
<ryantm_>
wilornel: What I said won't make it hard for other people to use it.
<muzzy_>
can someone help me a little? I'm trying to get a new image for raspberry pi 3. https://cache.nixos.org/ doesn't exist it seems
<mfiano>
Heh, well I'm unable to use NixOS on this hardware, and I'm unable to use it on my workstation due to not being able to test my lisp core image. Not many devices left for NixOS to work on.
<wilornel>
ryantm_: so bundix creates a gems.nix file that I can use with nix-shel
<muzzy_>
what hardware are you trying ot use?
<wilornel>
nix-shell ?
<ryantm_>
wilornel: You need to make the default.nix file too.
<mfiano>
muzzy_: a very low ram remote vps that prevents me fro mrunning `nix-env -u`
<ryantm_>
mfiano: What was the problem with your workstation?
<mfiano>
ryantm_: I'm a Common Lisp developer, and there is no way to dump and test lisp images, since they have ELF headers. All my tools depend on this, so I can't exactly use nix-shell.
<wilornel>
thank you ryantm_
<ryantm_>
mfiano: I don't see what that has to do with NixOS. Are you also trying to nixify your development workflow?
<mfiano>
I'm too new to even know how to do that. I just need my workflow to work, because my job depends on it.
<ryantm_>
mfiano: Ok. I'm curious what your problem with ELF headers was.
<mfiano>
Well I don't know how to execute them, and I no longer have a roswell package available which is needed to even make them
hamishmack has joined #nixos
rogue_koder has quit [Quit: Konversation terminated!]
justan0theruser has joined #nixos
justanotheruser has quit [Ping timeout: 256 seconds]
<null_>
what's a good way to find pkgs exposing certain .so files?
<clever>
null_: nix-locate and nix-index
<null_>
thanks
alex`` has joined #nixos
rosa has quit [Quit: rosa]
reinzelmann has joined #nixos
<mfiano>
clever: Is it normal to get a build failure on the stable channel?
<clever>
mfiano: that can happen if the package is broken
<clever>
plugin.h:24:3: error: unknown type name 'fz_stext_sheet'
<clever>
mfiano: i'm guessing a dependency was updated and nobody noticed the breakage
<mfiano>
damn
reinzelmann has quit [Quit: Leaving]
robstr has joined #nixos
<Li[m]>
is anyone using dhall to create nix expressions?
MP2E has joined #nixos
<Li[m]>
so technically we could write a nixpkgs in dhall.. ?
<muzzy_>
does anybody else feel completely overwhelmed by Linux sometimes?
<muzzy_>
like you're not sure what the problem is and you don't know if what you're trying is right or will end up breaking in the future?
<mfiano>
Only on new distributions to me, like NixOS. Never had that problem in my nearly 20 years on Arch or LFS :)
<MP2E>
lately I've felt a little overwhelmed by nix cause a couple of bugs have piled up on my workstation. but it's been mostly smooth sailing for years. Hopefully things will calm down a bit soon
<muzzy_>
hmm, I suppose experience has something to do with it. I've never had "official" training on linux, So I never learned how Linux works on a deeper level
<muzzy_>
I'm really wondering if its worth the time to dive in and learn everything about the kernel and shells and userspaces... Do you guys really know everything about Linux?
<clever>
muzzy_: there is a book called LDD3 (linux device drivers 3) that goes into depth on how the kernel works
<clever>
muzzy_: as long as you know some c, you can use that book to write kernel drivers for pretty much anything
ryantm_ has quit [Ping timeout: 240 seconds]
<muzzy_>
Well, I'm trying to set up a raspberry pi so I can stream music to it. But installing NixOS seems to require the knowledge of a Red Hat certified professional
<clever>
muzzy_: the rpi support isnt as good as x86, so it takes more effort to install
<muzzy_>
I guess I'm just having a crisis. I don't know if the benefits outweigh the struggles. It gets overwhelming sometimes
aarvar has left #nixos [#nixos]
<clever>
muzzy_: i use nixos on every piece of hardware i can get it working on
<clever>
including my router, lol
<thoughtpolice>
mfiano: I use Chez Scheme quite a bit on Nix/NixOS (though I wouldn't call myself a lisper, really). You'd have to be more specific about exactly what your CL implementation is, etc but there's probably nothing that fundamentally prevents it from working... But most package manager tool "things" (like this Roswell seems to be) are going to require work on integration to work properly.
<mfiano>
thoughtpolice: I use several implementations, hence the need for roswell.
<muzzy_>
how did you get packet routing to work? I just bought a dedicated router because I didn't know if nix was capable. *sigh*
<thoughtpolice>
So it's not surprising it doesn't work OOTB, really. How much effort it would take is another question... Realistically speaking, Nix/NixOS is basically still at the level where if you're going to regularly use it, you're practically going to be committing code and contributing patches for what you need.
<mfiano>
Yeah, and I'm not ready for that. Lisp occupies more time than I have already. My team is waiting for me to get back to our project.
aarvar has joined #nixos
boomshroom has left #nixos [#nixos]
<clever>
muzzy_: line 44 turns on NAT, 45&46 define the LAN and WAN interfaces (see lines 4-6), and 46 defines the LAN network ranges
<simpson>
mfiano: No worries. Happens.
<thoughtpolice>
muzzy_: Nobody here knows "everything" about Linux, of course. Collectively, a lot of us altogether know a lot about Linux. If you're worried about something breaking, you should ask. That's how you'll learn a bunch.
<thoughtpolice>
Luckily NixOS is pretty good as far as "What if it breaks?" goes, because you can, practically speaking, mostly just undo it with a quick command.
<mfiano>
Yeah, it's actually pretty resilient. If you remove the nix tools, they are probably still in the store somewhere. It just requires finding out where and installing nix with nix :)
<thoughtpolice>
(For example I've written kernel drivers and done things like ARM system integration, written exploits -- but I don't know a damn about most of the Linux networking stack/tools to be honest, for example. And I know relatively little about the graphics architecture, for example.)
<thoughtpolice>
So I'd probably just ask here about that stuff :)
<clever>
thoughtpolice: ive done package overrides against opengl to debug a problem, lol
<simpson>
(I know lots of arcane BS about GPUs and their drivers, but I've never looked at iSCSI and I think HPC stands for "Harry Potter Coolbeans")
<clever>
simpson: ive booted my laptop and rpi's over iSCSI with nixos
<simpson>
clever: RPis have iSCSI!?
<clever>
simpson: and made an attempt at writing drivers for the rpi GPU
* mfiano
is also a GPU/OpenGL nerd
<muzzy_>
thoughtpolice: thanks, I feel in over my head a lot of the time
<clever>
simpson: not directly, but if you can boot a kernel+initrd on the rpi, then linux can just open iSCSI over the network
<adisbladis>
simpson: Presumably via initrd
<clever>
simpson: and then the rootfs is iSCSI'd
<simpson>
Amazing.
<thoughtpolice>
clever: lol, that's what I thought
<simpson>
Any benefits to that over the alternatives? I guess nobody likes NFS...
<muzzy_>
wait what is iSCSI?
<clever>
thoughtpolice: this module allows you to set fileSystems."/".iscsi = { enable = true; host = "192.168.2.15"; lun = "something"; };
<clever>
and then nixos just automatically connects it at the initrd
<clever>
muzzy_: scsi over tcp
<clever>
muzzy_: it lets you connect to block devices over the network
<thoughtpolice>
muzzy_: SCSI is a standard that is used when low level software wants to move physical data between two devices on the system. In Linux, it looks like a block device. iSCSI just extends SCSI commands to work over a TCP tunnel, as clever said
<thoughtpolice>
So it lets you do things like have your tiny Home Theatre PC that sits in front of your TV to have a "hard drive" from a server in another room that's like, A Bajillion Terabytes, or whatever.
<muzzy_>
oh, I've heard of that! SCSI is an alternative to SATA right?
<clever>
thoughtpolice: i started it with my rpi's booting over iscsi, because its both larger and more reliable then an SD card
<clever>
thoughtpolice: and due to how simple nix is, i was able to take that module, almost un-altered, and boot an x86 laptop with it, lol
<clever>
thoughtpolice: so i could test nixos out on my laptop, before wiping the gentoo off of it
<muzzy_>
omg thats so cool
<clever>
and the crazy part, is that grub didnt even know it was network booting
<muzzy_>
clever: is there a reason you didn't use NFS?
<clever>
muzzy_: nfs has given me trouble, and grub doesnt support it
<clever>
muzzy_: but ipxe has a function in it called sanhook, which will hijack the legacy api between dos and the BIOS, for accessing the local hdd's
<simpson>
muzzy_: NFS is temperamental. It is quite happy to freeze up or suddenly stop working.
<mfiano>
I bought RPI's 1, 2, and 3...and they've all been powered on unused since they came out. Just haven't had a use for such a low powered device when my house has so many capable computers. Maybe i should play around with NixOS on them.
<clever>
muzzy_: so when grub tries to read the local hdd, it winds up reading the iSCSI driver instead
<simpson>
mfiano: There are dozens of us! I got bored waiting for self-hosted Nix builds last time; maybe I'll try again at some point if there's more interest.
endformationage has quit [Quit: WeeChat 1.9.1]
<muzzy_>
clever: thats really cool
<clever>
muzzy_: so the disk image on the server, is just bog-standard MBR partition table with grub in the MBR
<clever>
and a normal /boot
<mfiano>
I agree about NFS. I gave up on it about 10 years ago. Plsu ssh mounts don't suck with today's processors, and you can always change the cipher.
<clever>
grub has no clue its network booting and once the initrd is in ram, linux and iscsi-boot.nix can finish the job
<muzzy_>
clever: amazing how you get this stuff to work
<clever>
muzzy_: ive done more crazy things with ipxe and nix
<thoughtpolice>
clever gets the award for "most ridiculous NixOS setups" in here tbqh
<clever>
muzzy_: this is an ipxe script that does full signature checking on the kernel/initrd/rootfs
<thoughtpolice>
That award was made for clever, in fact
<clever>
and has a password prompt protecting the ipxe shell
<simpson>
mfiano: I have become quite the fan of sshfs for a variety of situations. I am willing to make the slight sacrifices in throughput for the benefits in flexibility.
<mfiano>
simpson: agreed, but i'd like to add security to that, too
<clever>
thoughtpolice: and over here, i practically turned nixos into a virus, lol
<clever>
you plug almost any machine into the ethernet jack, select network boot, and nixos boots up
<clever>
type 'justdoit' into the shell, it wipes the hdd, and now nixos is installed
<clever>
muzzy_: this module also sets up packet routing, in a weird direction
<clever>
muzzy_: it treats the wifi card as the "modem", and the ethernet jack as the "local network"
<clever>
muzzy_: so the computer your taking over, can borrow the wifi temporarily
<thoughtpolice>
clever: FWIW I'll probably scrape your modules for iSCSI I think, later on, since I'm probably going to set up my RPis as cams to stream RSTP for my homeserver. And there's no point in having sd cards for them...
<simpson>
Yeah, this iSCSI stuff could come upstream, I'd hope. It looks pretty useful.
<clever>
thoughtpolice: there is only one minor problem with the network boot on rpi's right now
<clever>
thoughtpolice: the rpi still needs a /boot/ on the SD card
<muzzy_>
clever: Oh my gosh, that's fantastic. So my question is: How do you manage to do all of this without running into problems and giving up?
<clever>
thoughtpolice: there is some limited network boot support in the newer rpi's, but ive only gotten them to work if i had a bootcode.bin on the SD card
<clever>
muzzy_: i just dont give up, lol
<thoughtpolice>
clever: yeah they announced something for this pretty recently I think (the rpi foundation, that is)
<clever>
thoughtpolice: part of the config to support that is in my github repos
<clever>
gillmanash: 57 does a dhcp server, you might want to remove the 68-73 area, since its network-boot related
<clever>
gillmanash: 77 is an optional tftp server
<clever>
gillmanash: 81 supplies dns to the private network
<mfiano>
clever: Is that a server mobo?
<clever>
gillmanash: and 86 configures a static ip on the LAN port, along with forwarding
<clever>
mfiano: yeah, its an old rack-mount server out of an xray machine, has 3 gigabit ethernet ports and ECC ram
robstr has quit [Remote host closed the connection]
<mfiano>
nice
robstr has joined #nixos
<muzzy_>
ECC RAM vs XRAYs, 3 2 1 fight!
rauno has joined #nixos
<clever>
muzzy_: this machine was out of the beam path, in a cabinet on the side of the room
<clever>
muzzy_: but there has been problems with the flash memory in FPGA's that are in the beam path
<gillmanash>
clever: Awesome, thanks for the info
<clever>
muzzy_: after a certain age, they just fail the erase cycle
<clever>
gillmanash: yep
<gillmanash>
Actually, I have always had WiFi issues on NixOS on my laptop with certain routers
Itkovian has joined #nixos
<gillmanash>
A Macbook pro (last one before retina screen). But not on other wifi networks, and not on this network with an older laptop. Some weird combo
<clever>
gillmanash: ah, i was trying to help somebody install nixos on a macbook today, but wpa_supplicant cant find any wifi networks in range
<gillmanash>
So using RPI as a wifi bridge is a possible solution
robstr has quit [Ping timeout: 256 seconds]
pie_ has quit [Ping timeout: 256 seconds]
<gillmanash>
wpa_supplicant works for me, but the network occasinally report positive dB strength, and the connection freezes
<gillmanash>
I don't know much network stuff, so never knew how to debug
robstr has joined #nixos
<gillmanash>
I might have another crack on the weekend
boxofrox has quit [Ping timeout: 248 seconds]
<muzzy_>
Alright, gnight everyone. I'll be back tomorrow for sure!
muzzy_ has quit [Quit: Leaving]
ericsagnes has quit [Ping timeout: 276 seconds]
justan0theruser is now known as justanotheruser
boxofrox has joined #nixos
<adisbladis>
gillmanash: Iirc apple puts broadcom chips in everything -.-
<adisbladis>
Not the best linux drivers
rauno has quit [Remote host closed the connection]
rauno has joined #nixos
<robstr>
morning
rauno has quit [Remote host closed the connection]
ericsagnes has joined #nixos
<gillmanash>
adisbladis: yeah from memory BCM4331
pxc1 has joined #nixos
rogue_koder has quit [Read error: Connection reset by peer]
rogue_koder has joined #nixos
<robstr>
first time nixos user, I added xmonad and on the login screen, there is a message: "Session: none + xmonad" did I misconfigure something ?
null_ has joined #nixos
MercurialAlchemi has joined #nixos
<null_>
So, with nix-locate I get to see every package that uses the so, but it's not clear to me which one is intended to expose it sometime
<null_>
so it's obvious for say nss or xorg stuff, but something like libffmpeg.so
<clever>
null_: which file are you looking for?
<null_>
I'm guessing is electron but I can't really tell
<clever>
null_: libffmpeg.so is from ffmpeg
pxc1 has quit [Ping timeout: 252 seconds]
<null_>
that doesn't show up for me with nix-locate
<null_>
nor does it show up from the package search on the nixos website
<null_>
oh wait it does for taht
<null_>
the website
rogue_koder has quit [Ping timeout: 248 seconds]
<clever>
null_: it might be a config flag thats missing in ffmpeg, or a different version
<null_>
ah, hm. Okay
<clever>
electron just happens to include its own copy, rather then using the proper one in ffmpeg
rogue_koder has joined #nixos
<sphalerite_>
gillmanash: aaaaaaah I hate that number
<clever>
null_: what are you trying to package?
chaker has joined #nixos
<null_>
discord, it might already exist somewhere
<clever>
null_: its already packaged
<null_>
okay, well I wanted the learning experience anyway :P where's it packaged?
<clever>
null_: nix-env -iA nixos.discord
<null_>
ugh, it doesn't show up for me on the website search though
orivej has joined #nixos
<clever>
null_: its non-free, so the website doesnt include it
<sphalerite_>
-u (and hwy you probably don't want to use it) is also explained ^
<davidak[m]>
nix-shell -I ~/code/nixpkgs/ -p 'python36.withPackages([ nikola micawber ])'
<davidak[m]>
how does this work with nix 2.0?
<adisbladis>
davidak[m]: No different
<sphalerite_>
there's no complete nix-shell UI replacement in 2.0 yet
reinzelmann has joined #nixos
null_ has quit [Ping timeout: 260 seconds]
<davidak[m]>
it doesn't work anymore :/
null_ has joined #nixos
<clever>
adisbladis: what about electron based apps that are just a GUI over an larger binary your running?
<sphalerite_>
davidak[m]: oh, maybe you meant nix-shell -I nixpkgs=$HOME/code/nixpkgs ?
<fpletz>
ryantm: please do not mention the maintainers in the commits, this causes too much github spam… everyone who rebases nixpkgs and pushes will trigger an email :(
<davidak[m]>
maybe, i'll try
rogue_koder has quit [Ping timeout: 245 seconds]
<fpletz>
ryantm: getting too much github spam already :/
<adisbladis>
clever: Like which ones? I mean I'm against using electron apps like Riot (matrix client) which is just wrapping up the webpage.
<clever>
adisbladis: daedalus for example, it has no website version
<sphalerite_>
hyper_ch: do you know if it's possible to encrypt zfs snapshots after making them? I have some datasets in a LUKSed zpool which I'd like to move to an unencrypted pool but encrypt within the pool
<sphalerite_>
or do I need to put the backup pool on LUKS as well?
<sphalerite_>
ryantm: +1 on what fpletz said. It is helpful to put them in the PRs, but the commits… sooo many notifications x)
<adisbladis>
clever: Then I think I'd consider it.
<null_>
What's wrong with using electron to wrap webpages? I'd rather have my app not be in a web browser so I can use standard process-management and window management tools
<null_>
I don't know if it's a bit too much but just using it as a lightweight browser seems like a good use
<adisbladis>
null_: I don't want more vulnerable browsers.
<adisbladis>
Just let me use my actual browser for displaying webpages.
<sphalerite_>
null_: a lot less sharing as well. In a browser all the tabs/windows share memory, while each electron app uses hudnreds of MB of RAM by itself
<clever>
adisbladis: daedalus never loads anything over http or https, so how is the exploit going to get in?
Itkovian has quit [Read error: Connection reset by peer]
<clever>
adisbladis: the only network it does is against 127.0.0.1
<sphalerite_>
null_: surf is nice if you don't want the overhead of browser chrome and want to use standard process/window management tools
<sphalerite_>
davidak[m]: oh right. I don't see how this is supposed to have worked before 2.0 either. Try `python3.withPackages (ps: with ps; [Nikola micawber])`
<davidak[m]>
sphalerite_: ah, right. i got the wrong line from bash history
<davidak[m]>
this works
<davidak[m]>
i don't understand this ps: with ps;
<clever>
davidak[m]: withPackages wants a function as an argument
<sphalerite_>
python36.withPackages takes a function, which gets the entire set of python3 packages
<clever>
davidak[m]: and `ps: with ps; [Nikola micawber]` is a function that accepts a set of python packages, then puts all of them into scope for the list
rogue_koder has joined #nixos
<sphalerite_>
so we make that function using the `ps:` bit, and bring all the packages into scope using `with ps;`
<clever>
davidak[m]: the last bit is identical to `ps: [ ps.Nikola ps.micawber ]`
<sphalerite_>
you could also write (ps: [ps.Nikola ps.micawber])
<sphalerite_>
damn clever beat me to it :D
<clever>
lol
<davidak[m]>
haha. thanks
<davidak[m]>
so this don't work yet with `nix run`?
<sphalerite_>
nix run '(python3.withPackages (ps: with ps; [Nikola micawber]))' …
<sphalerite_>
I think
<sphalerite_>
not sure if it brings nixpkgs into scope by default so you might need to do nixpkgs.python3 instead of python3
<sphalerite_>
er nope, you need import <nixpkgs> {}
<davidak[m]>
sphalerite_: how would the whole command look like when nixpkgs master is checked out at ~/code/nixpkgs/ ?
<clever>
import ./. {}
xAFFE has joined #nixos
xAFFE has quit [Client Quit]
<gillmanash>
Is there a better way to search for binaries from a packages than this?
<gillmanash>
ls $(nix-store -q --outputs $(nix-instantiate '<nixpkgs>' -A hello))/bin
<davidak[m]>
clever: `nix run '(import ./. {} python3.withPackages (ps: with ps; [Nikola micawber]))'` ?
<davidak[m]>
how do you mean that?
<sphalerite_>
davidak[m]: nix run '((import ~/code/nixpkgs {}).python3.withPackages (ps: with ps; [Nikola micawber]))' …
<sphalerite_>
you should probably just write a shell.nix at this point thugh :p
<davidak[m]>
:D
<mfiano>
clever: do you know?
<sphalerite_>
gillmanash: nix-index
<sphalerite_>
gillmanash: I also sometimes use the extremely hacky ls /nix/store/*-hello*/bin
<null_>
is there a good explanation of garbage collection and uninstalling? I've looked all over the manual and there's just bits and pieces scattered around that don't actually explain what happens
ThatDocsLady_ has joined #nixos
<null_>
I guess there's some stuff about removing old generations of the system and garbage collecting, but what about just removing anything not in the current environment or any generation?
<null_>
Does that happen automatically or need to be triggered, there's a daemon but it's not clear whether it does anything on its own. It's really ambiguous to me (it just uses triggered or something similar as the wording).
<sphalerite_>
null_: that's exactly what nix-store --gc does
<null_>
ah
Itkovian has joined #nixos
<sphalerite_>
null_: there are nix options to have it automatically gc when a certain threshold of disk space is reached I think, and I think that gets invoked when a nix command is run and the threshold has been reached
<sphalerite_>
null_: there's a nixos option to gc periodically as well I think
<gillmanash>
sphalerite_: Ah yes, thank you!
qazxsw has joined #nixos
<sphalerite_>
and there's the nix-collect-garbage command which combines nix-store --gc with profile generation deletion which I personally think is an awful idea but hey
<null_>
oh, I see, found them in the options search
<null_>
thanks
<null_>
I probably will never hit the threshold but I like that my system only uses up 8 gigs right now :P
qazxsw has left #nixos [#nixos]
<null_>
but I'll set up a periodic one
<sphalerite_>
I pesonally keep stuff around until I need the space, because sometimes building stuff needs dependencies that will be removed by a gc
<null_>
true
<sphalerite_>
which is especially painful on the rare occasions where I don't have an internet connection
<null_>
mmm, yeah I had a fun moment when I was first installing
<sphalerite_>
an added benefit of that is that you get great satisfaction out of freeing a huge amount of space in one go
<null_>
I mistook test for dry-run, and I had edited my configuration to use networkmanager instead of wireless
<null_>
the service wasn't up correctly and I wasn't seeing it, and I was having a bit of trouble since my config also didn't include dhcpcd :P
<null_>
since I was trying to connect manually
<sphalerite_>
aaah fun
<null_>
was glad when I realized I could just reboot
<null_>
and yeah, but I get the satisfaction of looking at my space usage graphs
<null_>
they'll get larger if I fill up home or put other files in there, but for now it's nice
<null_>
I never want to keep games installed on here cause they're always the bulk of my space usage
<null_>
If I installed Civ6 on here it would literally be 75% of my disk usage by itself, it's 27gigs
<sphalerite_>
o.o
<sphalerite_>
you didn't even need to reboot fwiw — nixos-rebuild switch --rollback :)
<null_>
I know but I had literally just installed it and didn't know enough commands, that and it took me a while before I realized what had happened and I needed the 5 second break
fnlkj has quit [Quit: ?]
vaninwagen_ has joined #nixos
vaninwagen_ has quit [Client Quit]
rogue_koder has quit [Quit: Konversation terminated!]
<mfiano>
hello sphalerite_
<mfiano>
Thanks for the help so far
orivej has quit [Ping timeout: 256 seconds]
goibhniu1 has joined #nixos
alex`` has quit [Ping timeout: 245 seconds]
goibhniu has quit [Ping timeout: 256 seconds]
<joko>
Good morning, people. I was wondering if it is possible to execute a sudo command in system.extraSystemBuilderCmds. I have tried with /run/wrappers/bin/sudo, but the wrapper complains
roberth has joined #nixos
cfricke has joined #nixos
zzamboni has joined #nixos
garbas has joined #nixos
<sphalerite_>
mfiano: morning
<mfiano>
sphalerite_: Hi, actually been trying to figure something out maybe you know the answer to
<sphalerite_>
joko: no, it's not. It's a derivation like any other so it runs as a nixbld user and typically in the sandbox
<sphalerite_>
joko: what are you trying to achieve?
alex`` has joined #nixos
jtojnar has quit [Ping timeout: 240 seconds]
zzamboni1 has joined #nixos
zzamboni has quit [Remote host closed the connection]
<gillmanash>
oh wait I said thanks already, have another
<sphalerite_>
:D
<lexcurious>
Hello fellas!
<mfiano>
sphalerite_: How do I override an option that was defined in a previous file that I imported? For example, say I have `fonts.fontconfig.dpi = 96` in a base.nix file and I want to set it to 200 for 1 machine that imports base.nix. Normally this results in an error telling me the option is duplicated. Is there a way to solve this?
rauno has quit [Remote host closed the connection]
<sphalerite_>
also feel free to ask the question into the blue, it's more likely to get answered quickly if you do :)
<mfiano>
I did an hour or 2 ago
<mfiano>
Thank you
<sphalerite_>
oh, heh. I wasn't awake at that time :D
chaker has quit [Ping timeout: 240 seconds]
<mfiano>
Does anyone else spend days trying to come up with an ice organization of config files/imports that reduces code duplication for a bunch of machines? :D I've been at this for 3 days now
<sphalerite_>
I tend to grow my configs "organically" then refactor as necessary after the fact
<mfiano>
Given that I'm new, I want a nice foundation :)
<lexcurious>
what happened with the feature of having nix package as file, that end-user could just double click ?
<sphalerite_>
They're not as maintainable off the bat, but it leads to the sort of structure that is maintainable because the refactorings address actual rather than hypothetical concerns
<sphalerite_>
I did try organising all my configs into one repo early on, but it's a bit of a train wreck and doesn't address what I actually need, so I'm only using that repo on one computer now. WHich kind of defeats the point.
<sphalerite_>
I've started a new one which seems to be more useful
<sphalerite_>
and I did that by writing the configs separately first then factoring out common parts
<mfiano>
on a related note, what about lists? What if I want to add a single element to a list that was previously defined?
<sphalerite_>
most lists are merged, so if you just define the same one as [a] in one module and as [b] in another, the actual result is [ a b ] or [ b a ] (I'm not sure if the ordering is predictable without any extra stuff, but you can use mkBefore/mkAfter to define it)
rauno has quit [Remote host closed the connection]
alex`` has quit [Ping timeout: 240 seconds]
jensens has joined #nixos
zzamboni1 has quit [Quit: Leaving.]
rauno has joined #nixos
orivej has joined #nixos
zzamboni has joined #nixos
<mfiano>
is there a string merge too?
<lexcurious>
can anyone show me proof of concept shareware commercial proprietary package that exists in nixpkgs?
ebzzry_ has quit [Ping timeout: 268 seconds]
pie_ has joined #nixos
<Mic92>
mfiano: "a" + "b"
<lexcurious>
(could be both open source and closed source binary version of packages)
<mfiano>
Mic92: I have config.xserver.displayManager.sessionCommands in ''double single-quotes''. Can I use that like that?
<Mic92>
sure
asuryawanshi has joined #nixos
kitemikaze has quit [Ping timeout: 248 seconds]
thc202 has joined #nixos
ebzzry_ has joined #nixos
MP2E has quit [Remote host closed the connection]
patrl has quit [Ping timeout: 245 seconds]
asuryawanshi has quit [Remote host closed the connection]
<jonge>
hey there. i am using nix on mac. so currently i am reading through the nix 2.0 release notes and i wonder how to obtain the `nix` command via upgrade. or isn't it rolled out yet?
asuryawanshi has joined #nixos
<Mic92>
jonge: not yet in nixpkgs
<jonge>
ok thx
<joko>
sphalerite_: More or less I am trying to create a small NixOS installation on an SD card with the current network (and other) settings
chisui has joined #nixos
cfricke has quit [Ping timeout: 265 seconds]
<fearlessKim[m]>
is there a standard function to patch the /bin/pwd present in Makefiles ? I think the kernel hassome but don't see how they are patched
<Mic92>
substituteInPlace
<Mic92>
sometimes commands can be also overriden in makefiles by setting environment varialbes
<Mic92>
s/varialbes/variables/
winem_ has joined #nixos
pie_ has quit [Ping timeout: 248 seconds]
<fearlessKim[m]>
in this case they seem hardcoded. I already run substituteInPlace, I am jsut surprised the kernel can get installed without pb even though it doesn't patch these. Might hit just a few modules.
<mfiano>
is there a way to get the filename of the .nix file?
spear2 has joined #nixos
<fearlessKim[m]>
mfiano: I don't think so
<mfiano>
ok
__Sander__ has joined #nixos
jensens has quit [Ping timeout: 240 seconds]
null_ has quit [Ping timeout: 260 seconds]
pie_ has joined #nixos
hask_bee_3 has joined #nixos
MP2E has joined #nixos
<hask_bee_3>
nix-env -i postgresql works but nix-env -i postgresql100 doesn't. why?
rauno has quit [Remote host closed the connection]
<hyper_ch>
sphalerite_: if you send the snapshots to a new dataset where its parents has encryption enabled, it will then also be encrypted
<hask_bee_3>
LnL: that worked. and interestingly, both -f and -A seem important. Skipping either makes it not work
<hask_bee_3>
i thought <nixpkgs> was the default...
<hyper_ch>
sphalerite_: encryption is inherited and it's on-creation settings... so if you have make zfs send tank/some/DS#now | zfs receive tank/encrypted/NEW then NEW will be encrypted because of encrypted partend DS
<LnL>
without -f it’s nixpkgs.hello
<hyper_ch>
but not sure if that's what you were asking
<hask_bee_3>
LnL lol whaaat?
<adisbladis>
hask_bee_3: It depends on your local channels iirc
<LnL>
with nix-env packages are namespaces by channel
<LnL>
namespaced*
<adisbladis>
Which imho is a bit unfortunate but it is what it is
michalrus_ has joined #nixos
<LnL>
yeah, -f '<nixpkgs>' makes more sense as the default
<LnL>
all of the new nix commands are a lot more consistent with the <installable> arguments
<hask_bee_3>
how do i find the /nix/store path of an installed package?
michalrus_ is now known as michalrus
chrios_ has quit [Ping timeout: 245 seconds]
chrios has joined #nixos
michalrus has left #nixos [#nixos]
<fearlessKim[m]>
hask_bee_3: you can use nix-repl '<nixos>', firefox.outPath
<fearlessKim[m]>
or nix-locate/nix-index or readlink -f $(which firefox)
<fearlessKim[m]>
or zsh autocompletion on /nix/store/*firefox*
<adisbladis>
My go-to daily is "readlink"
<fearlessKim[m]>
I guess the nest solution would be nix-instantiate but the syntax is too hard for me
jensens has joined #nixos
<adisbladis>
fearlessKim[m]: nix-instantiate '<nixpkgs>' -A firefox ?
<hask_bee_3>
fearlessKim[m] i like the autocomplete solution :)
<hask_bee_3>
simple
<hask_bee_3>
works in bash too
<fearlessKim[m]>
arf I found the kernel patch I wanted `sed -i "$mf" -e 's|/usr/bin/||g ; s|/bin/||g ; s|/sbin/||g'`
<fearlessKim[m]>
that's how /bin/pwd / bin/false becomes pwd/false \o/
noam has quit [Ping timeout: 245 seconds]
<fearlessKim[m]>
adisbladis: In my head I imagined more sthg like nix-instantiate -E --eval --instantiate 'import <toto> {}' -A firefox :D
<fearlessKim[m]>
guess some parts of the UI traumatized me, but nix 2.0 will be a fresh start :)
periklis has joined #nixos
noam has joined #nixos
alex`` has joined #nixos
civodul has joined #nixos
noam has quit [Ping timeout: 256 seconds]
<cmcdragonkai1>
Random question, if tensorflowWithCuda uses cudnn, how does nixpkgs get around the fact that cudnn requires one to register and login to Nvidia to fetch those libraries?
<cmcdragonkai1>
Or does tensorflowWithCuda not actually use cudnn?
periklis has quit [Ping timeout: 240 seconds]
<cmcdragonkai1>
Oh dw, I just tried it, and out comes the message about me needing to download it out-of-band.
<nyberg>
Is it possible to inspect all functions valid within the definition of a package?
<adisbladis>
nyberg: What do you mean?
<nyberg>
having issues with additional build phases for an idris package so looking for the correct setting to add the command
<cmcdragonkai1>
Is there an alternative to nix-prefetch-url file://
<cmcdragonkai1>
When I want to store a file directly into the nix store?
<adisbladis>
cmcdragonkai1: Why do you want an alternative?
<cmcdragonkai1>
It doesn't work on my system.
<cmcdragonkai1>
I think my nix-prefetch-url is too old to support file://
<niksnut>
nix-store --add-fixed sha256 <path>
noam_ has joined #nixos
noam has quit [Ping timeout: 268 seconds]
ebzzry_ has joined #nixos
the-kenny has quit [Ping timeout: 240 seconds]
the-kenny has joined #nixos
<LnL>
is there a way to get the outputHash for that?
<Izorkin>
I have 2 servers, and run "nix build" on them. On one server, I get progress output ( see https://imgur.com/a/D9sKi ), but on the other server output is empty. What can I do to enable progress output?
<LnL>
like for any fixed output store path
<fearlessKim[m]>
after months of trying to provide some basic lua packaging for nixos, I just realized via testing my laborously written system that such a system existed, but limited to the torch subsystem ! Sergey Mironov you are the devil
headfault has quit [Ping timeout: 245 seconds]
<BlessJah>
Is it possible to luks open sdb with file I have on rootfs on sda (opened by luks password)?
ma27 has joined #nixos
TweyII has joined #nixos
TweyII is now known as Guest1860
phdoerfler has joined #nixos
<hask_bee_3>
I have this in my foo.nix: with import <nixpkgs> {}; writeText "whaaat.txt" "A great string: ${rofl}" But calling nix-build --argstr rofl hehe foo.nix still gives me error: undefined variable 'rofl' Why?
nyberg has quit [Quit: WeeChat 2.0]
pxc1 has joined #nixos
<hask_bee_3>
And calling nix-build --arg rofl hehe foo.nix now gives me error: undefined variable 'hehe' How to get around this?
<the-kenny>
BlessJah: Pretty sure it is, yeah. You might need to add `systemd.generator-packages = [ pkgs.systemd-cryptsetup-generator ];` and `environment.etc.crypttab` to your configuration.nix
<BlessJah>
the-kenny: I've added boot.initrd.luks.devices with keyFile = "/root/sdb1.key", but it kept waiting for /root to appear instead of mounting it first
pxc1 has quit [Ping timeout: 245 seconds]
<BlessJah>
the-kenny: oh, you mean I should use crypttab/systemd instead of initrd.luks.devices
<the-kenny>
BlessJah: I'm not sure, depends on your setup
<the-kenny>
My setup is actually used for dynamically mounting stuff via udev
<BlessJah>
I have rootfs on one drive and data (i.e. home) on other
ottidmes has joined #nixos
<BlessJah>
except it's not home, I could even mount it manually after I'v e logged in
<the-kenny>
you should be able to specify the dependency "sda must be mounted before sdb" somehow, but I'm not sure where :)
<cmcdragonkai1>
niksnut: How does that command interact with garbage collection?
dhess has quit [Ping timeout: 240 seconds]
ajp has quit [Ping timeout: 240 seconds]
<sphalerite_>
hyper_ch: I'm here now, I went to uni and back
yann-kaelig has joined #nixos
<hyper_ch>
uni... yeah... I used that excuse like 15 years ago ;)
<sphalerite_>
went to uni, found everything was closed, and went back
<sphalerite_>
the British always unprepared for snow
<hyper_ch>
I didn't quite understand what you were asking :) I assume it has to do with native zfs encryption
<sphalerite_>
yes
<winem_>
hi, I have a problem to understand what it takes to install a custom application on a remote server. what works is that we build the application on server 1 and use nix-copy-closure to copy the closure from this server to a new machine. but this just "satisfies" the dependencies and does not really install the application, right?
<sphalerite_>
so if I recv into a child of an encrypted dataset it will be encrypted as well?
<hyper_ch>
encrytpion is on-creation setting for a dataset... you can't change it later
<sphalerite_>
oh :(
<hyper_ch>
sphalerite_: yes
<hyper_ch>
dataset, not pool
<winem_>
before, we did it with nix-serve on the build machine and then nix-serve /nix/story/.../appxyz --options extra-binary-cache=buildserver:port
<hyper_ch>
but new dataset will be needed to create
<sphalerite_>
ah so recv counts as creation?
<hyper_ch>
when you create a new dataset
<sphalerite_>
so if I have an unencrypted filesystem with unencrypted snapshots I can send it and recv it into an encrypted one?
<hyper_ch>
either through zfs create or zfs receive
<hyper_ch>
yes
<sphalerite_>
perfect
<sphalerite_>
thanks!
<hyper_ch>
on the receiving end, create an encrypted dataset
<hyper_ch>
and then send it as childset of that encrypted one
<sphalerite_>
right, awesome
<hyper_ch>
and you can then easily check if it's encrypted by checking the zfs options: zfs get all tank/encrypted/NEW | grep crypt
<hyper_ch>
zfs get all tankSubi/encZFS/Nixos | grep crypt
<hyper_ch>
and if you want, you could then move the child dataset around and it stays encrypted
dhess has joined #nixos
<hyper_ch>
sphalerite_: one thing: the zfs encryption key needs to be loaded for that dataset, otherwise it can't write any data
ajp has joined #nixos
ajmccluskey has joined #nixos
<sphalerite_>
that makes sense
<BlessJah>
the-kenny: you were right, crypttab and fstab were the way to go
<the-kenny>
nice
<hyper_ch>
so you probably want to use a key file for the password
<BlessJah>
two paralel encryption related discussions can be confusing at a times
<hyper_ch>
BlessJah: native zfs encryption is nice
<BlessJah>
it's finally released? great
<BlessJah>
can I have sub-dataset encrypted or is it per master thing?
<hyper_ch>
in master
<hyper_ch>
BlessJah: it's dataset based, not pool based
<hyper_ch>
so you can have encrypted and unencrypted datasets
* BlessJah
tries to remember what dataset exactly was
<sphalerite_>
it's an inhabitant of a zpool
<sphalerite_>
either a filesystem or a zvol
<sphalerite_>
I don't think there are any other kinds?
<hyper_ch>
BlessJah: a pool is a zfs storage thing that consists of one or more block devices (e.g. complete hard drive or a partition)... the pool can have various modes (e.g. mirror like raid1 etc)
<BlessJah>
hyper_ch: actually pool consists of vdevs and vdevs consist of block devices
<hyper_ch>
BlessJah: a dataset is a user visible filesystem that contains files and stuff
<hyper_ch>
you have one root dataset that has the same name as the zfs pool
<hyper_ch>
and you can create more child datasets with different properties etc
<hyper_ch>
ma27: yey
<BlessJah>
yeah, thanks
<hyper_ch>
the datasets can also be moved around, e.g. pool/cur/DS --> pool/DS
<BlessJah>
I use zfs but don't mess with it on a daily basis, so I didn't knew if encryption is pool dataset level or sub-dataset level thing
iyzsong has joined #nixos
<hyper_ch>
it can be the root pool and due to inheritance everything below it will also be encrypted... but upon dataset creation you could also set encryption to no....
<hyper_ch>
I currently use pool/encZFS/........
<BlessJah>
yep, very appealing option
<hyper_ch>
because there was a format change and if another format change comes up, I can easily move things around
<hyper_ch>
what's also awesome (once it'll properly work) is encrypted zfs raw sending
<hyper_ch>
e.g. you have an encrypted dataset... then you can make a raw send and it will keep all its permissions and encryption and stuff, meaning you could back it up to a public cloud
joepie91 is now known as z
z is now known as joepie91
<sphalerite_>
hyper_ch: you can already pipe zfs send into gpg :p
<hyper_ch>
sphalerite_: which requires an additional step currently
<hyper_ch>
sphalerite_: or you could send it to a remote company that offers also zfs storage for backup
<hyper_ch>
you'd just raw send the data
<sphalerite_>
fair enough
<hyper_ch>
I think raw send is pretty awesome but still has some bugs... although tom did merge some patches... haven't tried since
lugu has joined #nixos
<niksnut>
cmcdragonkai1: what command?
<cmcdragonkai1>
niksnut: nix-store --add-fixed
<niksnut>
ah
<niksnut>
the result can be garbage collected
<niksnut>
unless you make a root pointing to it
<cmcdragonkai1>
So if I initiate a garbage collection command
<cmcdragonkai1>
It will be deleted
<cmcdragonkai1>
Remind me how to creat a gcroot for this? And really there should be a page that explains these edge cases published somewhere...
sigmundv has quit [Ping timeout: 245 seconds]
<hyper_ch>
ma27: it's not merged yet, right?
<ma27>
hyper_ch: correct, some people who actually use/need it should test it in the first place
<hyper_ch>
how?
<ma27>
well, just check out the branch, get it running (IIRC there's a module as well) and see if everything works
<ma27>
in the end it's a python package so it might build successfully, but some actual features migh tbe broken
JagaJaga has joined #nixos
<hyper_ch>
can't really test it the next 2 weeks or so
<ma27>
and someone who knows a bit more about this should test it before we merge it into master
sigmundv has joined #nixos
<hyper_ch>
it's very simple
<hyper_ch>
run it, add some feed, check if torrents get downloaded if it matches
<ma27>
not sure if I find sufficient time, but I can give it a try as well :)
<ottidmes>
LnL: No, unrelated to unfree, it fails when I include my unstable checkout, so I can do kexectools = self.unstable.kexectools; in my overlay for example
<ottidmes>
LnL: I am trying Nix 2, to see if that helps
<LnL>
is there anything else special you have with overlays?
<LnL>
or is it just the 2 nixpkgs evals
alexteves has joined #nixos
kelleyNif has joined #nixos
coot has quit [Quit: coot]
<ottidmes>
LnL: I have like 20 pkgs defined over 3 overlays, but nothing special, I use a lot of mkMerge's in my configs though, maybe that is expensive?
<LnL>
possibly, but I can't really imagine it beeing as expensive as evaluating all of nixpkgs 4 times
Myrl-saki has joined #nixos
JagaJaga has quit [Quit: WeeChat 1.9]
<ottidmes>
LnL: When I move it out of the overlay to another overlay it seems to build again
<ottidmes>
LnL: 4 times? So it needs to read each twice?
<headfault>
how do I install nix-2.0? it's not in the unstable channel, nor does it seem to be in nixpkgs master on github
<LnL>
no, you run into similar problems when evaluating all of nixpkgs 4 times in a single expression
<LnL>
like ofborg and hydra do for multiple platforms
<headfault>
ottidmes: it says nix-2.0pre5968....
<ottidmes>
LnL: Ah, like so
<headfault>
ottidmes: (I tried that version yesterday, with nearly catastrophic effects. not doing it again)
<headfault>
the clue is in the title
<ottidmes>
headfault: Yeah, it is not in 17.09 yet, to my knowledge at least, we have to wait for 18.03 for it to become the default
<srhb>
Where does Hydra set restrict-eval?
<ottidmes>
headfault: You might want to use the one on nixos-unstable instead
<headfault>
I am on unstable
<ottidmes>
headfault: Then I will shut up :P
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] limeytexan opened pull request #36117: perlPackages.POE: init at 1.367 (master...perlPackages-POE) https://git.io/vAX8Y
NixOS_GitHub has left #nixos [#nixos]
<headfault>
ottidmes: in fact, I'm on the bleeding edge github version ;)
<ottidmes>
headfault: If you do not really have a need, I think it is best to just wait until 18.03 is released
<headfault>
ottidmes: yeah. I was just curious. I really like what has been done
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robstr has joined #nixos
freeman42x]NixOS has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] avnik opened pull request #36118: glm library fix for build with modern gcc, also removed anciet version of it (master...fix/glm) https://git.io/vAX8N
NixOS_GitHub has left #nixos [#nixos]
xAFFE has joined #nixos
chocopuff is now known as XxX_potato_XxX
XxX_potato_XxX is now known as chocopuff
Rusty1_ has joined #nixos
<ottidmes>
LnL: I solved my issue, it had to do with <nixpkgs-overlays>. I always try to unify the Nix (nix-* tools) and NixOS (nixos-rebuild) worlds by making sure they both use the same configs, but this caused my overlays to be included twice, once via <nixpkgs-overlays> in impure.nix and once via nixpkgs.overlays
<infinisil>
headfault: you're running nixos on master? That's kinda dangerous..
<mfiano>
How does one manage a git repo of their configs? Is it safe to chown /etc/nixos so a normal user can manage a repo with git, or what's the best thing to do here?
<gchristensen>
mfiano: that is probably fine, yeah
<ottidmes>
mfiano: I always symlink my /etc/nixos/configuration.nix to my default config in my git repo, and I set nixos-config=/abs/path/to/config/repo/default.nix via nix.nixPath, but there are many different approaches to manage your configs
<samueldr>
TonyTheLion: does it work if you qemu-system-x86_64 -enable-kvm -m 4G -cdrom result/iso/nixos--18.03.git.831ef47-x86_6
<samueldr>
4-linux.iso -nographic
<samueldr>
ugh, didn'T want to send this split
<samueldr>
and then add the `console=ttyS0` at the syslinux prompt (by pressing tab)
<Izorkin>
nix-env -iA nixos.megacli - not work, nix search megacli - not found
<samueldr>
(I have done it successfully, but haven't tried with a .qcow2 and -boot-order=d, but pretty sure using the iso with only `cdrom` should work)
<samueldr>
(though you'll need to do that manual step unless you rebuild your own iso with the console parameter)
<headfault>
if I install libraries (e.g. zlib or zlib.dev) with nix-env, ~/.nix-profile is practically unaffected, and pkg-config does not pick up anything. Any ideas why?
<ottidmes>
Izorkin: nix-env -iA megacli
<manveru>
LnL: you gonna push a version of nix-docker with 2.0?
headfault has quit [Remote host closed the connection]
<ottidmes>
Izorkin: It could be that you do not have nixpkgs.config.allowUnfree = true; set, which you need apparently
headfault has joined #nixos
<Izorkin>
error - Unfortunately, we cannot download file 8.07.07_MegaCLI.zip automatically.
<ottidmes>
Izorkin: Yep, that is perfectly fine, do what it says and it should work
<ottidmes>
Izorkin: Has to do with licensing and such, some packages like e.g. Oracle's JDK cannot just be downloaded automatically, so you have to import yourself in the nix store so it can be found
lord| has quit [Quit: WeeChat 2.0.1]
<LnL>
manveru: oh right! I should do that :)
<manveru>
:)
<manveru>
thanks
michas_ has joined #nixos
<LnL>
I'll try to do it today, should have some time for that
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 closed pull request #36118: glm: removed anciet version of glm, it not used anymore (master...fix/glm) https://git.io/vAX8N
NixOS_GitHub has left #nixos [#nixos]
coot has quit [Quit: coot]
coot has joined #nixos
roberth has quit [Quit: Leaving.]
michas_ has quit [Ping timeout: 252 seconds]
alexteves has quit [Remote host closed the connection]
<hask_bee_3>
How likely would you deem that "bash" will one day refer to something other than Bash 4.4, such as Bash 4.5 or even Bash 5?
<sphalerite_>
hask_bee_3: as likely as there being a bash 4.5 or bash 5 :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vAXzd
<NixOS_GitHub>
nixpkgs/master 209825a Ryan Mulligan: telepresence: 0.65 -> 0.67...
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vAXzb
<NixOS_GitHub>
nixpkgs/master 006e666 Ryan Mulligan: tintin: 2.01.1 -> 2.01.4...
NixOS_GitHub has left #nixos [#nixos]
headfault has joined #nixos
<hask_bee_3>
sphalerite_ well, they use explicit versions for postgresql, such as postgresql100. i don't see a similar bash44 for instance.
<hask_bee_3>
I guess you're either supposed to (1) make sure to write solid Bash scripts that will also work with Bash 5, or (2) fix the particular nixpkgs revision you want to use.
<Profpatsch>
Every github handle in there should actually be a real maintainer, maybe minus half a dozen clashes of handles >=5 characters
<makefu>
Stalker-Level: 100
<Profpatsch>
makefu: I have git to blame. :P
<YegorTimoshenko[>
does anyone perhaps know who is the admin of #nixos:matrix.org room on Riot?
<gchristensen>
I tihnk I have admin there
<gchristensen>
what's up?
headfault has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] leenaars opened pull request #36123: Update message to reflect nix 2.0 availability of imperative nix-update (master...patch-1) https://git.io/vAXa2
NixOS_GitHub has left #nixos [#nixos]
<ij>
manveru, I've more questions about packaging rails apps.
<ryantm>
gchristensen: What do you use for your arm builder?
M-manveru has joined #nixos
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen>
ryantm: I have a dual-socketed ThunderX with 96 cores and 128G of ram generously provided by Packet.net and WorksOnArm
<YegorTimoshenko[>
gchristensen: nothing urgent, only some small cosmetic considerations. channel is called "#nixos" while most Riot channels have proper names (like "NixOS"), and channel address is capitalized for some reason (i.e. it's #Nixos:matrix.org). both can only be changed if one has admin rights
<manveru>
ij: what's up?
<gchristensen>
YegorTimoshenko[: there is also the Nix channel ... I wish I could merge the two
xcmw has quit [Ping timeout: 248 seconds]
<ryantm>
Woah. I was going to say I have a bunch of Raspberry Pis but that sounds like there is no hope of that helping.
<ij>
manveru, How do you combine assets with the application afterwards? Do you copy everything outside of the store, because rails wants to write inside the "${application}/tmp" anyway?
<gchristensen>
YegorTimoshenko[: to be honest I don't understand Matrix. I tried really hard to like it, but couldn't actually administer it in any meaningful way that made me want to continue using it.
coot has joined #nixos
peacememories has joined #nixos
<gchristensen>
grahamc is my matrix account that I used to use when I was on iOS and couldn't use Weechat on the phone
<YegorTimoshenko[>
by the way! NixOS aarch64 works on Scaleway ARM64 servers and installs stuff from gchristensen and Packet's binary cache
<gchristensen>
nice!
<gchristensen>
ryantm: the problem with the current aarch64 builds seems to be that gcc is broken, so every build tries to ... build a broken gcc ...
<YegorTimoshenko[>
gchristensen: i like that it can be bridged with pretty much anything, including slack, and also that it's meaningfully federated (hosting IRC server is more problematic due to spam, which resulted in IRC getting very centralized)
chreekat has joined #nixos
cstrahan has quit [Quit: Connection closed for inactivity]
<YegorTimoshenko[>
there is also search, and whatnot... all things considered, this seems to be an improvement over IRC, but i have never administered/moderated a public channel, so i wouldn't know if there's a problem with that in Matrix
<ryantm>
nix-update update: I finished the alphabet yesterday. I'm probably going to try to update my bot to handle more types of updates or normalize the expressions of ones that failed. There probably isn't going to be another mass of PRs for a while. I'll try to give more advance warning next time.
<gchristensen>
YegorTimoshenko[: my understanding is there is no way to merge two channels, like Nix and #nixos
<gchristensen>
nor is there a way to shut one down, or forward one to the other
<ottidmes>
Is there a way to determine inside nix, whether it is being run from nixos-rebuild? I want to ignore the overlays defined in <nixpkgs-overlays> (because they might contain outdated paths), but I would rather not have to write a wrapper for nixos-rebuild that removes nixpkgs-overlays from the NIX_PATH
<manveru>
ij: well, you need to have a mutable working directory to actually run rails, you can't just cd into your nix store and run it there easily
robstr has joined #nixos
<ij>
Okay, I'll do that then. I've some kind of analysis paralysis.
arximboldi has joined #nixos
<gchristensen>
ottidmes: I don't think so
<arximboldi>
there is still no easy way to reuse the gitignore for filterSource, is there?
<gchristensen>
unfortunately not, arximboldi
<gchristensen>
that would be a very nice feature
<manveru>
ij: you can probably take a look at the gitlab package/service for hints, although it's a massively more complex rails app than the usual ones...
<robstr>
Hey, i have a fresh fresh nixos installation with xmonad - now trying to add vi with solarized colorscheme, but it looks really different, do i need to setup a terminal with more colors or something like this ?
<sphalerite_>
robstr: depends on which one you're using (both colour scheme and terminal)
<YegorTimoshenko[>
mog: i have a few dozen people in my roster
<manveru>
well, i wouldn't say google killed it... at least i use XMPP for it still :)
<shapr>
mog: send me code and boards!
<mog>
YegorTimoshenko[, they are ghosts and bots clearly
<mog>
shapr, !
<mog>
yes i need to do these things for you
<shapr>
yes plz!
<roconnor>
manveru: what client do you use for XMPP?
<manveru>
pidgin
<YegorTimoshenko[>
and it's also currently undergoing OMEMO switch (end-to-end encryption that properly works with multiple devices)
chreekat has quit [Quit: quitting]
<mog>
shapr, are you running nixos yet?
rardiol1 has quit [Ping timeout: 260 seconds]
<robstr>
sphalerite_: thank you, got it was terminal. Is there a preferred one ? currently i specified termcolors to be 256
<YegorTimoshenko[>
gchristensen: i've asked people at #matrix:matrix.org room and one of the devs told me that while merging two rooms is impossible, one can forward one room to the other by deleting an alias and pointing it to the new room
<gchristensen>
really!
<sphalerite_>
robstr: it's mostly a matter of personal preference. I use st+tmux and just use standard 256 colors with jellybeans (https://github.com/nanotech/jellybeans.vim ) myself
<sphalerite_>
robstr: I don't know which terminal you're using currently, but if you didn't make a conscious decision on that then it's probably xterm which you probably do want to move away from :p
<sphalerite_>
I don't really know what the exact issue you're having is, but you might not have TERM set appropriately for vim to detect its colour support. Try `TERM=xterm-256color vim`
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vAXr1
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master ff00a21 Ryan Mulligan: nxproxy: 3.5.0.32 -> 3.5.0.33...
<srhb>
sphalerite_: What's wrong with xterm?
xcmw has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vAXrA
<NixOS_GitHub>
nixpkgs/master abec360 Ryan Mulligan: qca-qt5: 2.1.1 -> 2.1.3...
NixOS_GitHub has left #nixos [#nixos]
<shapr>
mog: nah, setting up a VM so I can switch
<mog>
dive in shapr
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 901576e Ryan Mulligan: pythia: 8.219 -> 8.226...
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vAXof
<robstr>
sphalerite_: yea i didnt specified one
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vAXoU
<NixOS_GitHub>
nixpkgs/master 0c69b50 Ryan Mulligan: picard-tools: 2.17.4 -> 2.17.10...
schoppenhauer has quit [Ping timeout: 256 seconds]
<robstr>
just tried rxvt, looks like 100y old - strange scrollbar
<ottidmes>
gchristensen: I could just remove the, pathOverlays = try <nixpkgs-overlays> ""; check from impure.nix in my local checkout, but could I also explicitly set that overlays option somehow via the command line? That would be nicer
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vAXKs
<NixOS_GitHub>
nixpkgs/master 150ead9 Jan Tojnar: libgee_0_{6,8}: get rid of legacy libgee...
NixOS_GitHub has left #nixos [#nixos]
<LnL>
ottidmes: -I nixpkgs-overlays=./foo
MercurialAlchemi has quit [Ping timeout: 248 seconds]
<sphalerite_>
srhb: nothing *really* wrong with it, but it's got a huge amount of code for a bunch of really obscure features that basically nobody needs
<arximboldi>
manveru: thanks a lot that is a very good workaround!!
<ToxicFrog>
robstr: what DE are you using? GNOME and KDE both have their own terminal emulators (gnome-terminal and konsole) so you might have been using one of those, too.
<manveru>
robstr: urxvt is super configurable, try ctrl+middle-mouse-button
<sphalerite_>
srhb: if you don't ask much of your terminal something like st or alacritty is more suitable, if you do want a bunch of features something like gnome-terminal, konsole, lxterminal, idk the list goes on
<NixOS_GitHub>
[nixpkgs] jtojnar closed pull request #35910: libgee_0_{6,8}: get rid of legacy libgee (master...prune-libgee) https://git.io/vAPwZ
NixOS_GitHub has left #nixos [#nixos]
<sphalerite_>
my impression is that xterm fills a niche that's so niche that nobody cares about it
<ottidmes>
LnL: I was thinking about the argument given to nixpkgs, similar to what I did in my nixpkgs-unstable checkout for the config, but then for the regular nixpkgs checkout: import <nixpkgs-unstable> { config = { allowUnfree = true; }; }; but your suggestion should work, thanks!
<robstr>
ToxicFrog: I'm using xmonad i dont need all this stuff
schoppenhauer has joined #nixos
<manveru>
i use xterm every few months when my urxvtd dies...
<srhb>
sphalerite_: Ah, ok. Thanks. :) (I've used it for like 15 years and probably don't know what I'm missing out on.)
szicari has joined #nixos
<ij>
manveru, So gitlab's state is all in /run/gitlab and services.gitlab.statePath? But how does it find all the rails files in railspath/{app,config,db} and such?
<ottidmes>
robstr: I can recommend xfce4-terminal, if you just want something that works, (zero config needed), great defaults and such, but there are plenty better out there if you are into customizing your terminal
<ij>
and yeah, services/misc/gitlab.nix is indeed a big one
<ottidmes>
LnL: Yeah, that, but how does one set that at nixos-rebuild?
<sphalerite_>
srhb: also cd /tmp; tar xf $(nix-build '<nixpkgs>' -A xterm.src); cat xterm-*/README
<LnL>
the nixpkgs.overlays option?
<TweyII>
robstr: I use xfce4-terminal under xmonad for GTK_IM_MODULES and pango
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michiel_l_ has joined #nixos
<LnL>
ottidmes: probably better if you make an example of what you're trying to do
<srhb>
sphalerite_: I'm afraid that only encourages me! What can I say, I'm a glutton for punishment.
michiel_l has quit [Ping timeout: 276 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jtojnar pushed 3 new commits to master: https://git.io/vAXiM
<NixOS_GitHub>
nixpkgs/master 186a5c5 Jan Tojnar: spaceFM: use udisks2
<NixOS_GitHub>
nixpkgs/master c530630 Jan Tojnar: udisks_glue: use udisks1 alias instead of udisks...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 0a288a2 Jan Tojnar: udisks: point to udisks2
<sphalerite_>
srhb: lol
<arximboldi>
manveru: but fetchGit is still not really available in most systems, is it?
<ottidmes>
LnL: No, the problem is that it will use my <nixpkgs-overlays> value AND the nixpkgs.overlays (which are the same, the way I have set it up), but your suggestion of setting nixpkgs-overlays to nothing via -I will workaround that probably, I was just wondering if you can also pass it that overlays = [ ... ] at nixos-rebuild
<arximboldi>
and the old fetchgit does not seem to cut it :/
<manveru>
arximboldi: it's one nix-env away :)
<robstr>
TweyII: thank you
cement has joined #nixos
<arximboldi>
looking forward to it :)
<TweyII>
robstr: You can configure it to turn off the scrollbars and menus and stuff
peacememories has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jtojnar closed pull request #35492: udisks: point to udisks2 (master...udisks2) https://git.io/vAwch
NixOS_GitHub has left #nixos [#nixos]
<manveru>
the great thing about nix is that you can control all your versions, including your nix version :)
jtojnar has joined #nixos
<robstr>
TweyII: ok, what do i need for testing it ? adding xfce4-terminal to systemPackages and adapt xmonad.hs ?
<ottidmes>
LnL: I am trying to get my NixOS config to determine the overlays (so I have created a system.nixpkgsOverlayFiles option that are imported for NixOS in nixpkgs.overlays, and linked into /etc/nixpkgs/overlays for nix-env and others), but if I set <nixpkgs-overlays> to /etc/nixpkgs/overlays, it will include that (basically the config from the prev built, so removed overlays will still be referred to, hence
<ottidmes>
erroring) and the new overlays via nixpkgs.overlays, causing that memory issue
<arximboldi>
manveru: is there a way to specify a nix version itself as a dependency? when I want to use some new builtin like this? I guess there is a problem because this configuration will be evaluated in the nix of the current system or profile, so I really need to make sure the systrem or profile have the right nix version before trying to install something that uses fetchGit...
coot has quit [Ping timeout: 248 seconds]
<TweyII>
robstr: You can also just nix-env -i xfce4-terminal
<TweyII>
robstr: And launch it through your launcher to play with it
jensens has joined #nixos
reinzelmann has quit [Quit: Leaving]
markus1189_ has quit [Ping timeout: 245 seconds]
peacememories has quit [Ping timeout: 248 seconds]
<__monty__>
I have a ghc with the yaml haskell package installed, ghc-pkg list shows it. In ghci "import Data.Yaml" just works. Cabal new-build errors with "Could not find module 'Data.Yaml'". First thing I tried was cabal update but that doesn't seem to matter.
Sonarpulse_ has joined #nixos
michas_ has joined #nixos
coot has joined #nixos
xcmw has quit [Ping timeout: 256 seconds]
<srhb>
__monty__: Did you add the dependency to your cabal file?
<srhb>
__monty__: build-depends, that is.
endformationage has joined #nixos
<ottidmes>
LnL: Adding -I nixpkgs-overlays= did the trick, since it has to do with the entry point into nixpkgs (its arguments), the alternatives that do not modify the nixpkgs checkout itself will probably still require some argument to it or another, so I am happy with it for now, thanks for the help!
<__monty__>
srhb: /facepalm, thought I did but didn't, thanks : )
peacememories has joined #nixos
<srhb>
__monty__: Welcome. :)
<srhb>
To be honest there could be a "did you forget to..." hint :-P
<srhb>
I do it all the time.
leat has quit [Ping timeout: 260 seconds]
iyzsong has quit [Ping timeout: 245 seconds]
<ottidmes>
srhb: The same should happen for the qtbase and the like, where you need to call it not with callPackage but with the one specially made for qt, its in the manual, but a warning would be way better
<srhb>
ottidmes: *blank stare* :-)
<srhb>
For qtbase in haskellPackages?
amir is now known as amir_
amir_ is now known as amir__
amir__ is now known as amir
<srhb>
Oooh
<srhb>
Got it
yegortim1 has quit [Remote host closed the connection]
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #36129: bintools-wrapper: fix breakage on aarch64, where "isArm" is false (master...fix/bintools-aarch64) https://git.io/vAXD4
NixOS_GitHub has left #nixos [#nixos]
mk-fg has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
Itkovian_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 closed pull request #36129: bintools-wrapper: fix breakage on aarch64, where "isArm" is false (master...fix/bintools-aarch64) https://git.io/vAXD4
NixOS_GitHub has left #nixos [#nixos]
Itkovian_ has quit [Client Quit]
<jtojnar>
YegorTimoshenko[: did you see the new meson rpath patch?
Itkovian has quit [Ping timeout: 256 seconds]
<YegorTimoshenko[>
jtojnar: not yet. i've made the first patch so long ago i don't remember the specifics of the issue. i'll go see it now.
coot_ has quit [Quit: coot_]
<jtojnar>
thanks
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #36130: icu: fix regression on 32bit, missing parens :) (master...fix/icu-gcc6) https://git.io/vAXyp
<manveru>
i just made a neat little hack to replace the buildGoPackage deps.nix with a Gopkg.lock
<NinjaTrappeur>
Hi! I am confused about nix-channels: I have added two channels via the nix-channel cli: nixos and nixos-unstable, however $NIX_PATH only points to the default nixos channel. I am a bit confused about this behavior, is there any way to make $NIX_PATH pointing to several channels?
winem_ has quit [Ping timeout: 252 seconds]
pxc1 has joined #nixos
pxc1 has quit [Ping timeout: 256 seconds]
hamishmack_ has joined #nixos
<__monty__>
NinjaTrappeur: Are both those channels in ~/.nix-defexpr/channels?
<NinjaTrappeur>
__monty__: they are in ~/.nix-defexpr/channels_root/
ghostyyy has joined #nixos
deba5e12_ has joined #nixos
rardiol1 has joined #nixos
<TonyTheLion>
trying to crosscompile nix for arm, like so 'nix-build '<nixpkgs>' -A nix --arg crossSystem '(import <nixpkgs/lib>).systems.examples.armv7l-hf-multiplatform' but it says it cannot find 'curl' on configure, even though I have installed 'curl' under nix
<TonyTheLion>
configure: error: curl is required
Itkovian has joined #nixos
coot_ has quit [Read error: Connection reset by peer]
<__monty__>
NinjaTrappeur: Fwiw, I have my NIX_PATH set to the channels directory so all the channel there are automatically on my NIX_PATH.
Swant_ has joined #nixos
coot_ has joined #nixos
<__monty__>
I don't know how you should handle this on nixos, I imagine it would be managed for you.
marcinkuzminski_ has joined #nixos
spear2 has quit [*.net *.split]
justanotheruser has quit [*.net *.split]
hamishmack has quit [*.net *.split]
mbrgm has quit [*.net *.split]
davidcl has quit [*.net *.split]
avn has quit [*.net *.split]
alunduil has quit [*.net *.split]
deba5e12 has quit [*.net *.split]
johnsonav has quit [*.net *.split]
jaeckel has quit [*.net *.split]
Ankhers has quit [*.net *.split]
tobiasBora has quit [*.net *.split]
statusbot has quit [*.net *.split]
hodapp has quit [*.net *.split]
glines has quit [*.net *.split]
marcinkuzminski has quit [*.net *.split]
iMatejC has quit [*.net *.split]
rsa has quit [*.net *.split]
kriztw has quit [*.net *.split]
nliadm has quit [*.net *.split]
WilliButz has quit [*.net *.split]
x1n4u has quit [*.net *.split]
alp has quit [*.net *.split]
puckipedia has quit [*.net *.split]
linuxdaemon has quit [*.net *.split]
frphank_ has quit [*.net *.split]
fleaz has quit [*.net *.split]
greymalkin has quit [*.net *.split]
barrucadu has quit [*.net *.split]
Yaniel has quit [*.net *.split]
Swant has quit [*.net *.split]
niksnut has quit [*.net *.split]
ghostyy has quit [*.net *.split]
lassulus has quit [*.net *.split]
hamishmack_ is now known as hamishmack
mbrgm_ is now known as mbrgm
greymalkin_ is now known as greymalkin
x1n4u- is now known as x1n4u
that_guy_ is now known as nliadm
puck1pedia is now known as puckipedia
<nixer101>
hello! I have just installed nixos and updated it. However, the Palemoon browser constantly segfaults with log in terminal. I noticed it has version 27.4.2, but in nixos/nixpkgs there is already 27.7.2, and 27.4.2 is almost a year old. How do I proceed from here? Thanks!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill pushed 2 new commits to master: https://git.io/vAX7S
<NixOS_GitHub>
nixpkgs/master 2d786a7 Will Dietz: icu: fix regression on 32bit, missing parens :)
<NixOS_GitHub>
nixpkgs/master b70e3f0 Will Dietz: Merge pull request #36130 from dtzWill/fix/icu-gcc6...
NixOS_GitHub has left #nixos [#nixos]
barrucad1 is now known as barrucadu
Swant_ is now known as Swant
alp has joined #nixos
humanoyd has joined #nixos
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ankhers has joined #nixos
<NinjaTrappeur>
__monty__: yup, I was actually expecting NIX_PATH to point there as well. There's probably a good explanation to that, I'm gonna skim github. Thanks :)
davidcl has joined #nixos
linuxdaemon has joined #nixos
<nixer101>
I hope I am not muted on this channel :(
<NinjaTrappeur>
look at the "Upgrading individual packages to a different channel" section
jtojnar has joined #nixos
MinceR has joined #nixos
<nixer101>
Yesterday I discovered a tip, that is perhaps worth adding! In Ubuntu, you add packages. In Nixos, its much better to add option instead.
lassulus has joined #nixos
lassulus has quit [Changing host]
lassulus has joined #nixos
astsmtl has joined #nixos
astsmtl has quit [Changing host]
astsmtl has joined #nixos
spear2 has joined #nixos
rsa has joined #nixos
kriztw has joined #nixos
hodapp has joined #nixos
fleaz has joined #nixos
zzamboni has quit [Read error: Connection reset by peer]
Yaniel has joined #nixos
iMatejC has joined #nixos
tobiasBora has joined #nixos
frphank_ has joined #nixos
justanotheruser has joined #nixos
<elvishjerricco>
Nix 2.0 is great, but I'm a tad disappointed in `nix build`. I've always used `alias nix-build="nix-build --no-out-link"`, because I usually prefer to interpolate the out path from stdout rather than place a symlink anywhere. Doesn't seem possible with `nix build` :/
<Mic92>
maybe you can make it a shell function instead
<dtz>
since it's moderately important software to not break, can I get a review/sanity check from someone on this? https://github.com/NixOS/nixpkgs/pull/36127 hopefully just a simple update ... :)
<manveru>
elvishjerricco: i'm more disappointed that `nix eval` is broken :P
rogue_koder has joined #nixos
phdoerfler has quit [Quit: Leaving.]
<dtz>
broken? You mean now needs parens? :)
<nixer101>
elvishjerricco: I am building my own script "nixi", although its more of a shortcut interface than any kind of specific tool.
<lexcurious>
excuse me, how can I list and remove system wide old generation that I see in bootloader when booting NixOs? (the nix-env --list-generations doesn't show generations produced by nixos-rebuild switch)
<chreekat>
Can I get the name of the build dir in a derivation, the way $src gets me the source dir? It would look like /tmp/nix-build-mypackage-1.2.3.drv-1/ ...
<ottidmes>
chreekat: realpath . or pwd, wont they do?
ajp has quit [Ping timeout: 240 seconds]
darlan has joined #nixos
<elvishjerricco>
Mic92: `nix eval --raw` doesn't build the package :/
arximboldi has quit [Quit: arximboldi]
<Mic92>
elvishjerricco: therefore a shell function to first build and then return the path
shapr has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
<manveru>
dtz: oh uh
<mfiano>
Well after 5 days I finished my nix config except for 3 applications I need, 2 of which aren't available in nixpkgs, and the third errors during build on the stable channel.
<lexcurious>
how safe is nix-store --optimise command? is it 100% safe with garbage collection, generation cleanup, or is it considered expirimental and should be used at own risk?
<dtz>
err it being "strict" causes that problem, since it evaluates all recursively ("deep"), which apparently is badness for our derivations
<sphalerite_>
lexcurious: I've never seen any warnings about it and havge never had any trouble with it so I think it's safe
<srhb>
lexcurious: In my experience totally safe. I have it on by default.
<dtz>
very safe AFAIK, use it on all my machines all the time
<lexcurious>
thank you, guys
<srhb>
lexcurious: The only issue I've ever had was a program that, for some obscure reason, *cared* that its libraries were hardlinked.
<dtz>
although generally enable it in nix.conf instead of invoking manually
<srhb>
It was no match for the fury of LD_PRELOAD, however.
<lexcurious>
srhb lol, funny
<__monty__>
Are derivations written with dhall accepted into nixpkgs?
<sphalerite_>
ugh, upstream devs. Why are you like this.
<srhb>
__monty__: I have yet to see one.
xcmw has joined #nixos
<sphalerite_>
__monty__: I don't think so, since the utilities for it rely on IFD
<sphalerite_>
AFAIK
<srhb>
Arguably you could just include it as a "generator" alongside the generated nix though.
<mfiano>
The 2 missing packages I can find alternatives for , but wondering how I can solve the one build failure on the _stable_ channel
<srhb>
mfiano: Plenty of things fail building on stable. Feel free to solicit help here or file an issue. :)
<srhb>
mfiano: More details are necessary to be of any help though
<sphalerite_>
mfiano: which package is it? Is there a github issue for it? Is a maintainer listed?
<srhb>
mfiano: grep -r teiler from nixpkgs/pkgs/ does indeed produce nothing
<__monty__>
sphalerite_: Thanks.
<nixer101>
NinjaTrappeur: thanks! It works!
<nixer101>
__monty__: And to you too, sir!
<mfiano>
bummer
i-am-the-slime has joined #nixos
zzamboni has joined #nixos
nixer101 has quit [Quit: Konversation terminated!]
<sphalerite_>
mfiano: doesn't look too hard to package though
<srhb>
mfiano: You can try to request it packaged in an issue as well (or try your own hand perhaps.) Sometimes especially people looking to start contributing find such requests interesting :)
<cransom>
teiler shoudln't be too bad to package. assuming the code doesn't make some very poor assumptions about fully qualified paths, bash should be easy.
<mfiano>
Ah, I'm still reading the Nix manual else I wouldn't mind subjecting everyone to my terrible code
<ottidmes>
chreekat: Maybe $PWD, have not tried, but just go look in nixpkgs, you will see a lot using pwd
<srhb>
mfiano: Could be a fun project, and there's often someone around to help. :) But sure, perhaps for later.
<gchristensen>
how many build users is "enough"?
<srhb>
gchristensen: For your 96 (it's 48 really, isn't it) cores?
<sphalerite_>
gchristensen: I usually go for max-jobs × 2
<gchristensen>
srhb: it is really 96
<sphalerite_>
srhb: it's 2×48
<srhb>
:o
<gchristensen>
yeah, two CPUs each with 48 cores
<sphalerite_>
srhb: 2 CPUs, with 48 cores eahc
<mfiano>
srhb: Yeah maybe I'll try soon. Might be a fun exercise
<srhb>
Goodness...
<gchristensen>
jinx
<sphalerite_>
:D
vandenoever has joined #nixos
<srhb>
But obviously the answer is 96. :P
<gchristensen>
I get "Not enough build user" errors from time to time :/
<srhb>
But *obviously* the answer is n(96)
<srhb>
Off by a constant factor, I was astronomically in the ballpark.
<mfiano>
I'm also thinking how to manage my private files. Not sure how people manage that with Nix...stuff like gpg encrypted passwords, and other things that should be replicated to multiple machines
<sphalerite_>
mfiano: the current answer is basically not to manage it within nix
<srhb>
mfiano: Adding anything secret to the nix store is mostly a no-go unless ona strictly single user system.
<srhb>
mfiano: Since the Nix store will be world readable.
<srhb>
mfiano: None secret things, though... Lots of ideas are emerging in that space, home-manager is very interesting.
<sphalerite_>
mfiano: nixops has some stuff for deploying keys, but it works outside the nix store because everything is world-readable
orivej has quit [Ping timeout: 240 seconds]
<mfiano>
I see
<gchristensen>
srhb: luckily I only require my estimates to be correct within on 1AU
<srhb>
gchristensen: Phew!
<sphalerite_>
gchristensen: so since we're all within 1AU of you (no martians in here yet AFAIK), the estimates do need to be correct?
vandenoever has quit [Quit: ䷴៚]
<gchristensen>
lol
markus1189_ has quit [Quit: WeeChat 2.0]
<mfiano>
Thank you all for all the help the past week and putting up with my numerous questions. I love Nix and this community is great
<sphalerite_>
\o/
<gchristensen>
mfiano: :D
<mfiano>
Hmm github is down
<mfiano>
Right in the middle of making my first nixpkgs issue
<sphalerite_>
every time
<chreekat>
ottidmes: Indeed, it looks like the best option is someting like : preInstall = "export VAR=$(pwd)/..."
<mfiano>
Are package requests allowed for issues to nixpkgs?
asuryawanshi has joined #nixos
<gchristensen>
typically we don't like them, because we want whoever packages it to be invested in maintaining it
<mfiano>
Ok, I'll read more then and attempt it myself at a later date.
<simpson>
It's also eventually easier to write your own expressions than to get others to do it for you.
<hyper_ch>
mfiano: what package would you like?
<mfiano>
I'mm not stranger to FP but there's still too much magic in Nix expressions for me to begin with a task like that
<mfiano>
hyper_ch: See above; teiler
jensens has quit [Ping timeout: 268 seconds]
<mfiano>
and roswell too, but that's doubtful
<hyper_ch>
no idea what those are
<mfiano>
teiler is a rofi backend for taking/uploading screenshots and screencasts to arbitrary services. roswell is an implementation manager for Common Lisp development.
<gchristensen>
no beating here, this fella is for the good of the community :)
<mfiano>
:)
hotfuzz_ has quit [Ping timeout: 245 seconds]
<__monty__>
gchristensen: Is this a hydra buildserver for nixpkgs on ARM?
<takeda>
Is there an official tutorial how to use nix? I mean something that a person can implement step by step and see it working to get started on using Nix. I mean there's something close to that on the manual page, but it still has some missing pieces.
<sphalerite_>
__monty__: it's the community build machine
<gchristensen>
__monty__: the hydra.nixos.org builder is one of these machines, too, but the screenshot I just posted is the community build box that sphalerite_ linked, and is also used by ofborg
<takeda>
mfiano: looks like this might be what I'm looking for, I think it should be emphasized on the main page. I heard the word pills and I thought it was just another nix component like nixops etc.
<hyper_ch>
ma27: flexget was built and the daemon started... whether it'll fetch torrents from rss I'll see soon
pxc1 has joined #nixos
<mfiano>
takeda: It is on the main page
<mfiano>
takeda: click on Support
<ottidmes>
mfiano: I just removed it from my config, I managed to find it again, please make a copy yourself, I gave it a lifetime of two weeks, so you better make a copy: https://pastebin.com/uVyLNCeB
coot_ has joined #nixos
Thra11 has joined #nixos
PMS has joined #nixos
PMS has quit [Max SendQ exceeded]
PMS has joined #nixos
PMS has quit [Max SendQ exceeded]
<mfiano>
ottidmes: Thank you! :)
PMS has joined #nixos
PMS has quit [Max SendQ exceeded]
<takeda>
ok I see :) but I would put it on the front page though :)
PMS has joined #nixos
PMS has quit [Max SendQ exceeded]
PMS has joined #nixos
johnsonav has joined #nixos
xcmw has joined #nixos
<sphalerite_>
takeda: you've found the most valuable resource already though :p
evangeline has quit [Ping timeout: 276 seconds]
M-dpetranek has quit [Ping timeout: 248 seconds]
andyjscott[m] has quit [Ping timeout: 248 seconds]
Dirt[m] has quit [Ping timeout: 248 seconds]
Dirt[m] has joined #nixos
andyjscott[m] has joined #nixos
magnap has quit [Ping timeout: 248 seconds]
M-dpetranek has joined #nixos
magnap has joined #nixos
<mfiano>
ottidmes: I'm not sure if it will work though. I mean it downloads and manages implementations of Common Lisp, both binaries and from source.
nocoolnametom has quit [Ping timeout: 252 seconds]
Kim has quit [Ping timeout: 240 seconds]
simpson has quit [Ping timeout: 256 seconds]
Mic92 has quit [Ping timeout: 256 seconds]
dpc has quit [Ping timeout: 248 seconds]
reactormonk[m] has quit [Ping timeout: 248 seconds]
matrixkrav has quit [Ping timeout: 248 seconds]
reactormonk[m] has joined #nixos
dpc has joined #nixos
matrixkrav has joined #nixos
<takeda>
sphalerite_: yes, and based on what I learned about it it looks like a great tool, I just want it to get more popular, it looks like some people get discouraged too fast
EuAndreh[m] has quit [Ping timeout: 248 seconds]
evangeline has joined #nixos
EuAndreh[m] has joined #nixos
nocoolnametom has joined #nixos
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 3b9cf7a Tim Steinbach: docker: 17.12.0 -> 17.12.1
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vA1e0
<sphalerite_>
takeda: personally I'd say their loss — and I think it's more worthwhile helping the people who do see its value make the most of it rather than trying to convince people who think it's useless and a terrible idea to change their minds
<ottidmes>
mfiano: I am not familiar enough with it to know whether it will work. It will mean that it will work completely outside of the nix ecosystem, if that is fine by you, then it might work as it is right now, if it self contained enough (i.e. does not expect a certain folder structure from the Linux distribution or certain binaries to be readily available at certain points)
<__monty__>
takeda: To be fair if not bothering to click on a nix pills link is an indicator of the effort they're willing to put in they're not cut out for the nix life it takes a fair bit of effort to get completely set up.
<sphalerite_>
Of course I do want the whole world to use nix, but I feel like getting people who are halfway there the rest of the way there is a much more effective way of spreading it than aiming for anyone who's not willing to invest any effort into it
<gchristensen>
^
<mfiano>
ottidmes: Ok, I'll try it tomorrow. Barely awake right now
<gchristensen>
people who aren't invested at all in it also make pretty crappy community members
<takeda>
but stuff like that might make it harder to get it adapted at some organizations, I think this could solve many issues that docker is pushed to solve
<michaelpj>
is it possible to package an application built with stack in nixpkgs itself? There's buildStackProject, but it seems to require network access so won't work with sandboxing, and nothing in nixpkgs actually uses it
<sphalerite_>
absolutely, docker showed me the path to the light. I was workign with docker at the job before my last one, and thought all the time I needed something like nix. A few months later I discovered that nix exists
<mfiano>
I guess I'm lucky never having used docker
<sphalerite_>
michaelpj: I think there's a stack2nix
simpson has joined #nixos
<sphalerite_>
michaelpj: I don't know any more than the name though, so…
* sphalerite_
hides from any more questions
PMS has quit [Read error: Connection reset by peer]
orivej has joined #nixos
PMS has joined #nixos
<michaelpj>
thanks, that looks plausible
PMS has quit [Max SendQ exceeded]
<sphalerite_>
mfiano: I'd say that apart from the resource consumption it's a decent half-step forwards for actually deploying software that doesn't have all its deps handled in traditional distro packages
dnovosel has joined #nixos
<mfiano>
I'm going all in with Nix. I'm trying to move every one of about 10 machines with completely different hardware and purpose over to it after moderate success with the first.
<Thra11>
Using nix 2.0's 'nix' command, is there a way to override the channel with a local checkout of nixpkgs?
<sphalerite_>
mfiano: yay! It's always nice to see people so thoroughly convinced :D
<mfiano>
By going all in I can hopefully be forced to contribute to the community in some way.
<gchristensen>
mfiano: this is how we sucker people in
<Thra11>
sphalerite_: ok. same as nixos-rebuild and friends used to be then. thanks.
<gchristensen>
give them great tools and then they just want to make them better
__Sander__ has quit [Quit: Konversation terminated!]
sigmundv__ has quit [Ping timeout: 256 seconds]
<sphalerite_>
Thra11: if you're operating on the nixpkgs directly -f might be shorter to use, like for example rather than nix build -I nixpkgs=path/to/nixpkgs nixpkgs.hello you can do nix build -f path/to/nixpkgs hello
<mfiano>
I was an Arch Linux user since beta days which was 2000, and LFS before that. Both were about doing things manually. I'm old now and need a break. It's just amazing how I can describe a whole system in a concise text file. :)
SunWuKong has quit [Client Quit]
<sphalerite_>
yeah we seem to get a lot of former arch and gentoo users
<sphalerite_>
I went almost straight from debian to nixos
asuryawanshi has quit [Remote host closed the connection]
<__monty__>
I think I did ~10 linux installs before getting sick of it, turned to configuration management as a solution never really got anywhere then found nix.
rihards has joined #nixos
halfbit has joined #nixos
<ottidmes>
I am former Arch Linux as well, Windows -> Ubuntu (only shortly) -> Arch Linux -> NixOS, the change from Windows to Ubuntu was the most fun, and NixOS was like finding out about Clojure when all I did before was PHP, Java and C#
<halfbit>
anyone know if there's a nix expr for scylladb?
<sphalerite_>
I've done tonnes of nixos installations, it's nice because it's so simple and automatable
<sphalerite_>
halfbit: afaict there isn't
<halfbit>
:(
<mfiano>
I have to learn how to use nixops next. Though I have a few machines that requires probably some manual steps because of picky UEFI etc
<sphalerite_>
mfiano: just boot everything off the network :D
* sphalerite_
starts wondering how feasible a pure-netboot system would be — where even the netboot servers are netbooting
<gchristensen>
sphalerite_: the problem there is your disaster recovery story is ... well. not good.
<sphalerite_>
clever: this seems like something you might do
Mic92 has joined #nixos
<halfbit>
actually the arch pkgbuild failed for me, and I'm tired of centos having yum/rpm issues on my servers
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vA1fq
<NixOS_GitHub>
nixpkgs/master 50e99d1 Tim Steinbach: gradle: 4.5 -> 4.6
NixOS_GitHub has left #nixos [#nixos]
<Thra11>
'nix why-depends foo bar' seems to be trying to build foo. Is this normal?
<gchristensen>
Thra11: seems normal, it can't know why unless it has been built
<sphalerite_>
gchristensen: a battery, a steady hand, and a cut-open ethernet cable
PMS has quit [Read error: Connection reset by peer]
<gchristensen>
sphalerite_: jeepers.
asuryawanshi has joined #nixos
<Thra11>
gchristensen: I thought it might just explain the chain of dependencies described by nixpkgs.
PMS has joined #nixos
PMS has quit [Max SendQ exceeded]
PMS has joined #nixos
PMS has quit [Max SendQ exceeded]
tmaekawa has quit [Client Quit]
<gchristensen>
Thra11: no, because why-depends describes run-time dependencies, not build-time dependencies, and the bulid-time vs run-time deps are potentially very different
ThatDocsLady_ has quit [Quit: Leaving]
reinzelmann has joined #nixos
PMS has joined #nixos
PMS has quit [Max SendQ exceeded]
<sphalerite_>
I could see a drv-level why-depends being useful too.
<efx[m]>
anyone having issues with nix 2.0 on macOS in a multi user install?
acuario58 has quit [Excess Flood]
<efx[m]>
I am unable to install things and nix search returns empty
<jonge>
hey there. i have a project here where i build stuff with -lasan (g++). in nix running on linux, it's there. on mac it is not. anyone an idea what kind of implicit dependency that is?
acuario58 has joined #nixos
acuario58 has quit [Max SendQ exceeded]
PMS has quit [K-Lined]
<efx[m]>
`nix search vim -u`
<efx[m]>
jonge: as a far shot, I'd think the stdenv's compiler could have been built different for darwin
<efx[m]>
**differently
asuryawanshi has quit [Remote host closed the connection]
<sphalerite_>
srhb: you can use it too! Just find a package that's broken on aarch64 (i.e. an excuse to use the machine) and make a PR giving yourself access! :D
<sphalerite_>
efx[m]: and sudo nix-channel --list ?
<efx[m]>
I don't actually have sudo access, but as my user:
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chocopuff298 has joined #nixos
coot_ has quit [Quit: coot_]
coot_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/staging 34f95d9 Tuomas Tynkkynen: Merge remote-tracking branch 'upstream/master' into staging...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to staging: https://git.io/vA1Lv
<TweyII>
What's the reason that I seem to have to do nix-build -A foo '<nixpkgs>' while other people seem to be able to just do nix-build -A foo? ¬.¬
<sphalerite_>
TweyII: nix-build will default to default.nix in the cwd
pxc1 has quit [Ping timeout: 240 seconds]
<sphalerite_>
TweyII: if you happen to be in a nixpkgs checkout, nix-build -A foo will build the foo in there
<sphalerite_>
cinimod: when you do have time — maybe check the closure using nix-store -qR to make sure there isn't more than one copy of gsl in there
<sphalerite_>
and -q --graph to find out where it's coming from, if there is more than one
<TweyII>
sphalerite_: Hm, okay
chocopuff has quit [Ping timeout: 260 seconds]
<TweyII>
sphalerite_: So when people say ‘just do nix-build -A foo’ they're being sneaky and skipping the step of being in a nixpkgs?
<sphalerite_>
yes
reinzelmann has quit [Ping timeout: 252 seconds]
<sphalerite_>
probably force of habit. I bet about half my terminal sessions are currently cd'd to a nixpkgs checkout
<jtojnar>
Mic92: flat structure like triton would be nice
robstr has joined #nixos
ryanartecona has joined #nixos
<TweyII>
Hm, okay. Thanks! I just always assumed I was missing some config that caused nix-build to default to <nixpkgs>.
<Mic92>
jtojnar: we currently discuss this in #nixos-wiki
<jtojnar>
cool
reinzelmann has joined #nixos
sphalerite is now known as sphalerit
hask_bee_3 has joined #nixos
<hask_bee_3>
Is there a way to find the "full path this nix file's directory" within a nix file (to be built with nix-build)?
<sphalerite_>
hask_bee_3: toString ./.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] LnL7 opened pull request #1920: launchd: enable keepalive for the nix-daemon service (master...darwin-daemon-keepalive) https://git.io/vA1tf
robstr has quit [Remote host closed the connection]
mmlb has joined #nixos
pxc1 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] shlevy pushed 1 new commit to staging: https://git.io/vA1qq
<NixOS_GitHub>
nixpkgs/staging cfa63f9 Shea Levy: Merge branch 'master' into staging
NixOS_GitHub has left #nixos [#nixos]
humanoyd has quit [Quit: WeeChat 2.0.1]
vcunat has joined #nixos
muzzy has quit [Read error: Connection reset by peer]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/glibc-2.27 f50d0f1 Shea Levy: Merge branch 'staging' into glibc-2.27
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] shlevy pushed 1 new commit to glibc-2.27: https://git.io/vA1qo
pxc1 has quit [Ping timeout: 252 seconds]
<ottidmes>
I think I asked before, but I cannot remember, can I safely assume coreutils and utillinux to be available to me in scripts, or do I need to prefix those as well?
<gchristensen>
they're usually there, but sometimes if I'm paranoid I reset PATH explicitly to include them
<vcunat>
+1
<sphalerite>
yeah, especially utillinux
<sphalerite>
I've been running nix on alpine systems where neither of those are present, which has been interesting
<gchristensen>
not even just alpine, but an rescue-os version of alpine :P
<sphalerite>
I'd also recommend referring to their full paths
<sphalerite>
gchristensen: it looks like a pretty normal alpine to me
<gchristensen>
oh ok
<gchristensen>
just don't reboot I guess
<sphalerite>
yep xD
<ottidmes>
So basically, just go paranoid mode and assume the worst, and as well for coreutils?
<Mic92>
ottidmes: use makeWrapper to add what you need.
<gchristensen>
ottidmes: yeah, better to just be explicit about it.
<Mic92>
systemd services and login session have certain packages though in theire path
<Mic92>
*their
Phillemann has joined #nixos
phdoerfler has joined #nixos
<Phillemann>
iirc there is a site displaying how old the major channels (nixos-unstable, ...) are.
cinimod has quit [Remote host closed the connection]
<Phillemann>
Ah, 5 days. That explains why I still get errors from a package that's been fixed 4 days ago :D
cinimod has joined #nixos
reinzelmann has quit [Quit: Leaving]
<Mic92>
ottidmes: makeWrapper is nice, if you intend to use script not just in nixos.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] shlevy opened pull request #36141: callCabal2nix: Fix filtering for non-cleanSourceable sources. (master...callCabal2nix-restricted) https://git.io/vA1mb
NixOS_GitHub has left #nixos [#nixos]
<ottidmes>
Mic92: Not sure how that link relates, in my use case I would definitely not want to use nix-shell (scripts also needs to be run at initrd time)
xcmw has quit [Ping timeout: 268 seconds]
<Mic92>
ottidmes: ah ok
<Mic92>
initrd is a complete different beast
pxc has joined #nixos
pxc1 has quit [Ping timeout: 255 seconds]
<Mic92>
ottidmes: watchout for examples in nixpkgs for boot.initrd.extraUtilsCommands
<ottidmes>
Mic92: Yep, means I am stuck with /bin/sh among other things
<Mic92>
ottidmes: you will have busybox there.
<Mic92>
by default
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nix/master 05cb8e5 Daiderd Jordan: launchd: enable keepalive for the nix-daemon service...
<ottidmes>
genesis: Last week when I updated my Arch laptop, it tried to replace some package, but it mean removing things like xorg-server in order for it to succeed with replacing the package... I ended up just forcefully removing the package (it would be replaced anyway), otherwise I would have to remove and add like a third of my system, yikes!
knupfer has joined #nixos
ma27 has quit [Ping timeout: 245 seconds]
<genesis>
yes we're all fed up with such case
pxc1 has joined #nixos
<genesis>
when i want libvirt, i don't mean i want spend an hour to find a solution to package conflict
<ottidmes>
exactly, especially when you know there are alternatives out there that make such problems go away :)
<genesis>
i suspect this portage to slow me done testing some nixos image :d
<genesis>
s/done/down
pxc1 has quit [Ping timeout: 240 seconds]
ghostyyy is now known as ghostyy
<LnL>
heh, I'm running a patched libvirt/qemu with ~5 lines of configuration
orivej has quit [Ping timeout: 240 seconds]
mounty has joined #nixos
<shlevy>
\o/ system configuration built for cross-NixOS
<shlevy>
now to see if it boots...
cinimod has joined #nixos
<sphalerite>
shlevy: out of curiosity, where did this whole RISC-V project come from?
yann-kaelig has quit []
<johnw>
RISC-V has a formal foundation, which is something shlevy would like to exploit at some point :)
<sphalerite>
trikl[m]: ping
<shlevy>
:)
<shlevy>
Yeah, got interested in it from that perspective
<shlevy>
Then saw the HiFive Unleashed was coming
<shlevy>
Then decided to splurge on one :)
<shlevy>
So of course I need NixOS working before it gets here!
<sphalerite>
ah
<sphalerite>
what exactly does the formal foundation bit mean?
<shlevy>
There's a formal specification for the ISA
<shlevy>
And almost all of the components on the board I'm getting have open-source designs
knupfer has quit [Remote host closed the connection]
<sphalerite>
oh that's cool
<sphalerite>
ooft, not cheap though
<shlevy>
No :)
rauno has joined #nixos
SunWuKong has joined #nixos
headfault has joined #nixos
SunWuKong has quit [Client Quit]
pxc1 has joined #nixos
<sphalerit>
Ugh matrix
MichaelRaskin has joined #nixos
<sphalerit>
Since my nick change on native IRC, none of my messages from there are going through the bridge
<dtz>
o_O :(
<sphalerit>
dtz: yeah, shlevy wasn't talking to himself :p
pxc1 has quit [Ping timeout: 240 seconds]
sigmundv_ has joined #nixos
<BlessJah>
shlevy: what will be per-core performance of risc-v chips compared to modern intel chips?
coot_ has quit [Quit: coot_]
<gchristensen>
shlevy: what will the per-core megabytes-exfiltrated-per-minute-due-to-CPU-bugs be compared to Intel chips?
rauno has quit [Ping timeout: 260 seconds]
<shlevy>
:D
<shlevy>
BlessJah: Not sure! sorear would be a better person to ask
<BlessJah>
gchristensen: that's noobish question and I am fully aware of that
<shlevy>
He wasn't making fun of you, he was making fun of Intel :D
<gchristensen>
BlessJah: sorry, I couldn't resist. your question was perfectly valid
<shlevy>
BlessJah: Anyway at least part of the answer is that you have to compare by market segment, and so far none of the RISC-V chips are in, say, the laptop segment
<MichaelRaskin>
I would assume that gchristensen was making fun of entire industry
<shlevy>
As far as I know there's nothing in principle preventing them from being similarly performant other than proprietary Intel techniques and Intel's huge existing investment in fab tech etc. (which should definitely not be discounted!)
siel has quit [Remote host closed the connection]
siel has joined #nixos
siel has quit [Changing host]
siel has joined #nixos
<MichaelRaskin>
Segments, segments… I think I was learning to program on a computer that had only one benefit over modern high-end HDD controllers. It had less RAM, slower CPU, but could actually control a screen.
<joepie91>
I mean, you could probably make a HDD controller control a screen if you /really/ wanted to...
<joepie91>
:)
<MichaelRaskin>
Not sure there are enough legs
<joepie91>
there don't have to be!
<BlessJah>
nah, the challenge would be to have HDD control the screen
<joepie91>
nobody said you can't add additional circuitry :D
<LnL>
manveru: I think the dockerTools are broken right now
<MichaelRaskin>
I guess a 100MHz 8-core well-suspendable CPU + eInk could actually be an attractive laptop. For reading and writing, you know.
<MichaelRaskin>
Let the dock station contain a faster CPU for plugged-in use…
<BlessJah>
I think I once found something like 200 MHz 16 bit cpu on one of dead HDDs
<Dezgeg>
32-bit ARM on even eMMC chips is normal these days
av has joined #nixos
<BlessJah>
I've heard SD card has chipset more powerfull than arduinos
disasm has quit [Quit: WeeChat 1.9.1]
<Dezgeg>
yes
<gchristensen>
at 400GB in microSD cards they must!
rauno has joined #nixos
<Dezgeg>
I expect samsung SD cards share mostly the same ARM Cortex-M3 core they have in the eMMCs
<headfault>
"nix-shell -p libz libxml2 libxslt --run pkg-config --list-all" shows no sign of any of the dependencies. Any ideas?
<sphalerite>
headfault: pkgconfig should also be in the shell, not your user env
<sphalerite>
so just add pkgconfig to the list and it should work
<headfault>
sphalerite: argh, thanks!
disasm has joined #nixos
<sphalerite>
also probably remove it from your user env to avoid future confusion :D
<headfault>
sphalerite: excellent idea. damn. this has been bugging me for 2 hours now
<sphalerite>
headfault: yeah I wanted to reply to your question like 5 hours ago but you timed out :(
<shlevy>
We could do a noop interpolation to trick them
<sphalerite>
headfault: basically because purity
<shlevy>
I assmue it's just the BEGIN EC PRIVATE KEY bit
<Dezgeg>
builtins.rot13
<headfault>
thanks! back to hacking :)
<sphalerite>
Dezgeg: yesss hahaha
ryanartecona has quit [Quit: ryanartecona]
<BlessJah>
random drive I had lingering around: 88i6745n-tfj1
<BlessJah>
dual core cortex R4, 600MHz
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] romildo opened pull request #36142: deepin-icon-theme: init at 15.12.52 (master...new.deepin-icon-theme) https://git.io/vA1nS
NixOS_GitHub has left #nixos [#nixos]
pxc1 has quit [Ping timeout: 256 seconds]
<sphalerite>
(how?) does the instruction set differ between cortex A, R, and M?
<phdoerfler>
Basic NixOS and setuid and wrappers question: My sendmail complains: warning: the Postfix sendmail command has set-uid root file permissions. Is this a common beginner trap? What do I need to change? I don't have the word 'sendmail' in my config even.
<Dezgeg>
very little, actually
<Dezgeg>
R/M typically lack an FPU and MMU
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] svanderburg pushed 1 new commit to master: https://git.io/vA1nF
<NixOS_GitHub>
nixpkgs/master 8fbfd67 Sander van der Burg: disnix module: make dbus service configurable
<MichaelRaskin>
BlessJah: to be honest, landing on the Moon is not _that_ computationally intensive once you have realtime scheduling working…
disasm has quit [Quit: WeeChat 1.9.1]
<BlessJah>
that's right
<rnhmjoj[m]>
how do I found about which library is Qt talking about?`Cannot mix incompatible Qt library (version 0x50a00) with this library (version 0x50a01)`
<gchristensen>
even then not crashing is the hard part
FRidh2 has joined #nixos
headfault has quit [Remote host closed the connection]
chreekat has quit [Ping timeout: 276 seconds]
<MichaelRaskin>
gchristensen: the hard part of not crashing is making sure that when you calculate the thruster control signal, the thrusters actually carry it out.
<gchristensen>
:)
<BlessJah>
gchristensen: I think agreeing on set of common units is the hard part
<gchristensen>
evidently
disasm has joined #nixos
<gchristensen>
though we can't even agree on how to spell words like "virtualisation" and "saviour"
<LnL>
:p
<MichaelRaskin>
Well, there are two cases: either the country has death penalty and you can shoot for threason everyone who offers to count in feet, or the country uses metric already
pxc1 has joined #nixos
<gchristensen>
MichaelRaskin doesn't kid around w.r.t. imperial (ie: UK) measurements
<MichaelRaskin>
Continental Europe should just declare that continental English is a different dialect, and offcially declare «X-Xed-Xen» acceptable for all verbs, regular, irregular, to hell with it.
<MichaelRaskin>
gchristensen: either Empire or Kingdom.
<gchristensen>
:D
<MichaelRaskin>
UK has lost the Empire and formally abandoned Imperial.
<sphalerite>
I think the worst part of the language is stil lthe pronunciation though.
<MichaelRaskin>
sphalerite: well, this is also nonuniform. I thought you meant the fact that there are people who pronounce English with stereotypical French sounds (and in reality there are other French people who don't use these sounds even in French)
<sphalerite>
Of course it's non-uniform, but I did experience the general cultural attitude over there of holding the French language in very high regard, including at school
<MichaelRaskin>
With ofborg, it would even make sense to want to make the same comment in multiple PRs at once…
<phdoerfler>
Is it normal that I can't use sendmail as regular user?
<gchristensen>
MichaelRaskin: for example when I need to re-eval a dozen PRs because master was broken
<phdoerfler>
is this a nixos thing?
<phdoerfler>
it complains about file permissions of the spool directory
<phdoerfler>
(postfix's sendmail that is)
<MichaelRaskin>
Do you have a setuid wrapper for it?
<sphalerite>
and not being keen on the global dominance of English as the language for communicating internationally, and people going to France assuming that they can just go ahead and speak English, etc
<MichaelRaskin>
sphalerite: that's true. Fortunately, they accept as French a very rought approximation
<sphalerite>
well yes, as long as you try :D
<MichaelRaskin>
I don't think it is that much harder to find someone to answer in English here than in Moscow.
mkoenig has quit [Remote host closed the connection]
<MichaelRaskin>
sphalerite: on the other hand, in Denmark everyone will speak English, and Cthulhu help you if you need to say a proper noun without a school-taught translation.
<sphalerite>
oh yes, it's absolutely not a matter of not being able to speak English, it's more the reluctance.
<BlessJah>
sphalerite: is it about english or idea of having lingua franca in general?
<MichaelRaskin>
Because in Denmark they speak English, but if you speak Danish it needs to be perfect or they don't understand. And if you want to refer to a name that they only know in Danish, and you cannot pronounce it in perfect Danish (it is hard after all)…·
<sphalerite>
Hahaha. Yes my parents have been living in Sweden for a couple years now and they had some difficulties learning Swedish just because everyone would switch to English as soon as they heard difficulty speaking Swedish
<MichaelRaskin>
sphalerite: in France I meant it is not htat hard to find someone who will agree to ansswer in English
<sphalerite>
from what I've heard Danish is very strange to pronounce for speakers of other languages
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vA1lI
<NixOS_GitHub>
nixpkgs/master 87d8652 Ryan Mulligan: sleuthkit: 4.5.0 -> 4.6.0...
NixOS_GitHub has left #nixos [#nixos]
orivej has joined #nixos
<FRidh2>
sphalerite: same here. 3rd time I'm living in Sweden...never quite get to learning the language
<sphalerite>
BlessJah: I'm not sure really. I think they'd be fine with a lingua franca if it were French ;)
<phdoerfler>
MichaelRaskin: As a matter of fact, I do and now I feel dumb. In my defense I had that wrapper so cron could send me mail (the nixos option said it's required). Not that it was working then either…
<MichaelRaskin>
Argh. I didn't work there long enough to learn oral Danish (I can read it somewhat), and a few times when I needed to use a proper noun in a shop… Argh. Then they guess what I mean and repeat it in proper pronounciation and I cannot get the difference. Argh.
<phdoerfler>
MichaelRaskin: Having removed the setuid wrapper for sendmail I can now use it as an ordinary user, thanks!
<BlessJah>
sphalerite: Would esperanto do? I think roman is long dead by now...
<MichaelRaskin>
phdoerfler: now that is actually strange.
mkoenig has joined #nixos
<sphalerite>
BlessJah: I really don't know.
<MichaelRaskin>
I expected that you have the wrapper but it is not in PATH and using the wrapper would work
<sphalerite>
Also maybe we should take this OT discussion somehwere else since some people are trying to discuss nixos-related stuff here
<phdoerfler>
MichaelRaskin: That's what I expected to when I set up the wrapper. Turns out sendmail doesn't like it when you wrap it
<MichaelRaskin>
Interesting…
<MichaelRaskin>
Of course, it is different for different mailers
<genesis>
i remember my first kernel driver, isa card , not sure we speak about same isa thing ^^
<MichaelRaskin>
Because I do think at some point sendmail was supposed to be installed setuid, and it wrote the mail itself
hamishmack has joined #nixos
<MichaelRaskin>
BlessJah: I meant a sendmail change
xcmw has quit [Ping timeout: 260 seconds]
<phdoerfler>
MichaelRaskin: Also the nixos options point out that in order for cron jobs to send out mail you need to setuid sendmail (or I'm too dumb to read that)
cinimod has joined #nixos
<MichaelRaskin>
Not sure I see it…
<sphalerite>
ix.io is nice as a pastebin!
siel has quit [Ping timeout: 240 seconds]
<MichaelRaskin>
wgetpaste
<sphalerite>
but that requires having wgetpaste :p
<phdoerfler>
MichaelRaskin: "If you want to get the results mailed you must setuid sendmail. See security.wrappers"
<phdoerfler>
Also there is a "." missing there
<MichaelRaskin>
I wonder _which_ sendmail it expects…
<MichaelRaskin>
Where "." is missing? I think setuid is a verb here.
<Mic92>
the right one
ryanartecona has quit [Quit: ryanartecona]
<phdoerfler>
There: "[...]See security.wrappers If neither /var/cron/cron.deny nor[...]"
<MichaelRaskin>
This doesn't answer the question of sendmail choice
<phdoerfler>
the If is capitalized
<MichaelRaskin>
There are multiple packages with sendmail.
<phdoerfler>
it does answer where a dot is missing
<phdoerfler>
MichaelRaskin: Aren't all sendmails replacable?
<MichaelRaskin>
I guess someone didn't want to put a period right after the dot-separated name.
<MichaelRaskin>
Haven't you just found out that not exactly
<phdoerfler>
Have I?
<phdoerfler>
I assume that no sendmail likes to be setuid-ed
<MichaelRaskin>
I think there are sendmails that require setuid to work
<phdoerfler>
not just the postfix one
<phdoerfler>
hm ok
<phdoerfler>
Am I the only one who wants cron job outputs mailed?
Yaniel has quit [Remote host closed the connection]
FRidh2 has quit [Quit: Konversation terminated!]
Yaniel has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dan_b has joined #nixos
<avn_>
Personally, I prefer to see no-suid sendmail, which syncronously sumbit to localhost:25
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 closed pull request #36136: programs/bash: install nix-bash-completions if completion is enabled (master...nix-bash-completions-on-enableCompletion) https://git.io/vA1TK
NixOS_GitHub has left #nixos [#nixos]
spear2 has quit [Remote host closed the connection]
<Mic92>
like msmtp
<avn_>
Mic92: as an option
dan_b has quit [Ping timeout: 248 seconds]
<hask_bee_3>
My friends.
<hask_bee_3>
When doing sudo systemctl enable /nix/store/woiefjowjfi.service is there a way to specify the symlink name?
<phdoerfler>
is there a sendmail-like thing which just hands its stuff in at 25?
<hask_bee_3>
(this is not directly a nix question of course)
<sphalerite>
hask_bee_3: I think you'd usually want to set a profile to the service file, give the profile the appropriate name, and poitn systemd to that
<sphalerite>
or just symlink it into /etc/systemd/system yourself then enable it by name
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hask_bee_3>
sphalerite the problem is systemctl doesn't seem to handle calling it on symlinks.
<hask_bee_3>
systemctl enable actual_file.service creates all the needed symlinks
alexteves_ has joined #nixos
<sphalerite>
yeah but I mean something like using `nix-env -p /etc/systemd/system/my-service.service --set -f path/to/service.nix` and `systemctl enable my-service`
<ottidmes>
phdoerfler: I have used https://nixos.org/nixos/options.html#networking.defaultmailserver in the past on NixOS, it allowed me to send mails from a nodejs and PHP application, have not used it from a cronjob though
<genesis>
pkgs/development/libraries/asio/default.nix looks weird, no comma at end of line, no maintainers ...
<genesis>
ho my bad, anyway , when there is no version, is it not bad since nix rely on name , isn't it ?
<sphalerite>
genesis: improvements are always welcome!
alexteves has quit [Ping timeout: 256 seconds]
<phdoerfler>
ottidmes: thanks, I'll play around with that!
<sphalerite>
it's not the end of the world when it doesn't have a version, but it isn't nice either
<ottidmes>
genesis: I did not look at the file, but I believe the version attribute is nothing special, more convention, its about the name
<genesis>
yes i'm doing so, but i donno if i've to add me to the maintainer wwhen noone sphalerite
<Mic92>
only if you care about the package
<sphalerite>
you don't have to. You can if you want to and I'm sure people would appreciate it but you don't have to :)
<symphorien>
genesis: being a maintainer just means you receive a mail when the package breaks on hydra, that's not a big committment either
yegortim1 has quit [Ping timeout: 255 seconds]
<hask_bee_3>
this is messy lol. man. maybe it's time to ditch everything but NixOS
<hask_bee_3>
sigh
<genesis>
oki , i don't care so fine
kelleyNif has joined #nixos
<genesis>
makes sense, if one people wants take the lead on that, he will be free to do .
<sphalerite>
hask_bee_3: I think you've almost got it working rather nicely
orivej has quit [Ping timeout: 245 seconds]
<sphalerite>
of course I wont' stop you from moving to nixos ;)
michas_ has joined #nixos
<sphalerite>
but what's your concern about it being messy?
siel has quit [Ping timeout: 245 seconds]
yegortim1 has joined #nixos
siel has joined #nixos
<genesis>
sf is down ... again
<Mic92>
we have a cache
<Mic92>
for the source
<genesis>
i need latest for my derivation
<genesis>
:-)
cinimod has quit [Remote host closed the connection]
Guest98 has joined #nixos
cinimod has joined #nixos
<hask_bee_3>
sphalerite, i was hoping i could just call "nix-build service-template.nix", add "result" to systemctl (under a "custom-name" to make it something other than "result"), and from then on just call "nix-build service-template.nix" and "systemctl restart custom-name" again if my template changed.
<hask_bee_3>
but now it sounds like i have to run nix-env every time too
<hask_bee_3>
hmmm
MP2E has joined #nixos
rihards has quit [Quit: rihards]
kelleyNif has quit [Quit: Leaving.]
kelleyNif has joined #nixos
hiratara has quit [Ping timeout: 245 seconds]
<elvishjerricco>
Is there a spec anywhere on what `INSTALLABLES` means in Nix 2.0? It's nice that it's unified, but it's a little cryptic how it works.
hiratara has joined #nixos
dnovosel has quit [Ping timeout: 245 seconds]
asuryawanshi has quit [Ping timeout: 252 seconds]
<hedning[m]>
elvishjerricco: it's an attribute path or a store path starting with eg. `./`
orivej has joined #nixos
<elvishjerricco>
hedning[m]: Or apparently a Nix expression if you use parens
<hedning[m]>
yes, true
yegortim1 has quit [Remote host closed the connection]
yegortim1 has joined #nixos
<elvishjerricco>
Do you always have to specify `-f` if you want to build from, say, `default.nix`?
<hedning[m]>
yes, else you get the NIX_PATH stuff in the top scope
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] shlevy opened pull request #36143: nixos: nix.sshServe: Support ssh-ng. (master...nix-ssh-ng) https://git.io/vA1ua
NixOS_GitHub has left #nixos [#nixos]
<hedning[m]>
you can do `-f .` though
kelleyNif has quit [Quit: Leaving.]
<elvishjerricco>
just a little frustrating. Definitely use `./.` with `nix-build` far more anything from `NIX_PATH`
<shlevy>
Agreed
alex`` has quit [Ping timeout: 240 seconds]
<shlevy>
This is why I'm not using nix build yet
<elvishjerricco>
shlevy: I also don't like that I can't `alias` away the result link by default with `--no-out-link`, and I really miss outputting the path on stdout :/ I'll stick with `nix-build` and lose the pretty one-line output
<shlevy>
--no-link
<elvishjerricco>
shlevy: Right, but I have `alias nix-build="nix-build --no-out-link"` because I find myself wanting that almost all the time. I can't alias `--no-link` into `nix build`
<manveru>
yeah, but --no-link gives no output at all
<elvishjerricco>
that too
<Guest98>
new person question. On the nixpkgs github I can see an expression for urxvt, but when I put it in my configuration, or try and install it with nix-env, it says it's not a valid expression. How can I update my repository to have this package?
<MichaelRaskin>
Pity
<shlevy>
Aaah
<MichaelRaskin>
rxvt_unicode
<manveru>
shlevy: so the alternative right now is: `$(nix build --no-link -f channel:nixpkgs-unstable htop && nix eval --raw -f channel:nixpkgs-unstable htop)/bin/htop`
<manveru>
which is quite a mouthful :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jwiegley pushed 1 new commit to master: https://git.io/vA1zn
<NixOS_GitHub>
nixpkgs/master bddc23b John Wiegley: recoll: Allow building a non-X/inotify version on Darwin
NixOS_GitHub has left #nixos [#nixos]
Phillemann has left #nixos ["WeeChat 2.0.1"]
<elvishjerricco>
manveru: Yea I'm about to just write a bash function that gives me the behavior that I want. Not sure how to properly propagate arguments though...
<Guest98>
MichaelRaskin Yeah it says its not a valid expression, I only have regular rxvt when i do a search. I tried nix-channel update but it didnt change anything
<bgamari->
nix's ubiquitous use of wrapper scripts makes use of gdb quite painful
<sphalerite>
hask_bee_3: you don't need to run nix-build again if you use nix-env
<bgamari->
does anyone have any tricks for making this easier?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 4de72b9 Shea Levy: nixos: nix.sshServe: Support ssh-ng.
<sphalerite>
I think catern wrote a partial proxy for the nix daemon?
<Guest98>
Does anyone have any experience with home-manager? Looks interesting
<elvishjerricco>
Guest98: I just started using that this week. Really nice. I use it as a NixOS module, which means my whole system, including home, is reproducible with just a `nixos-rebuild`
<shlevy>
sphalerite: You can run nix-daemon --stdio
<shlevy>
sphaleritie: That's the basis for ssh-ng stores
athan has joined #nixos
<ottidmes>
clever: Just wanted to let you know that after updating kexectools (2.0.14 gives me a long list of errors), my initrd kexec works great, thanks again for the help yesterday!
<sphalerite>
shlevy: ooooooh that's awesome!
<MichaelRaskin>
(me moved away from NixOS, and moves the home management in the opposite direction form home-manager)
cinimod has quit [Ping timeout: 252 seconds]
<shlevy>
:)
<Guest98>
elvishjerricco: Oooh that's exactly what I want.
<clever>
sphalerite: nix also saves all logs in /nix/var/log/
<sphalerite>
by which I mean eating up space until you give up hope
<sphalerite>
clever: yeah but that's just derivation build logs
<sphalerite>
clever: logs of interaction with the daemon would be really nice
<clever>
ahh
<clever>
also, ive wanted more of a repl to the daemon for things
cement has quit [Ping timeout: 252 seconds]
<clever>
for example, for x in /nix/store/*; do nix-store --query --size $x ; done is horid slow
<johnw>
here's an odd one: in the recoll build, the tarball that it downloads contains an msodump.zip file. The version of that file that ends up /nix/store has 00 bytes removed from it, making it an invalid zip file. This file is needed to index MSOffice documents. What part of mkDerivation is altering the .zip file do you think?
<gchristensen>
that is VERY weird, Mic92
isomarcte has left #nixos [#nixos]
<clever>
each query process has to connect to the daemon, which initiallized an entire tempdir and a bunch of state, then tears ti down
<clever>
sphalerite: to solve what i just said, i'm thinking there could be a util that accepts queries on stdin, and prints answers to stdout, and keeps its nix-daemon socket open
<sphalerite>
gchristensen Mic92: I'm scared now o.o
<clever>
sphalerite: basically, the nix-daemon will need to setup a listening unix socket in the build sandbox, and proxy multiple bytestreams back to the nix-build process that initiated the build
<gchristensen>
would dbe bad
<MichaelRaskin>
I would say that GitHub having a bug is waaay more likely
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to staging: https://git.io/vA1aX
<NixOS_GitHub>
nixpkgs/staging 4e207ba Matthew Bauer: qt5: install headers on darwin also
NixOS_GitHub has left #nixos [#nixos]
x1n4u has quit [Ping timeout: 240 seconds]
<johnw>
ah, found it
x1n4u has joined #nixos
<catern>
MichaelRaskin: sphalerite: yeah I wrote a full proxy for the nix-daemon in Python; manipulating how builds happen is definitely something you could do with it
<LnL>
Mic92: A few weeks ago there also was a pr that was merged by me according to github, but the merge (in git) was done by somebody else
<isomarcte>
I am attempting to create an NixOS installation where the root volume is located on a thin LVM logical volume. The generated initrd seems to be missing the `thin_check` binary. Does anyone have any suggestions on how I might get NixOS to include this binary in the initrd?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] dtzWill opened pull request #1927: fetchGit: use "HEAD" as default ref instead of "master" (master...fix/fetchgit-HEAD) https://git.io/vA1VJ
NixOS_GitHub has left #nixos [#nixos]
<electrocat>
Am i correct that the 'nix' command has no man page yet? Or did I make a mistake building it or something.
<ottidmes>
isomarcte: For example: boot.initrd.extraUtilsCommands = "copy_bin_and_libs ${pkgs.thin_check}/bin/thin_check"; (assuming that is its package name)
chisui has quit [Ping timeout: 260 seconds]
szicari has quit [Quit: szicari]
cinimod has quit [Ping timeout: 240 seconds]
<Mic92>
LnL: do you have a link or something?
lord| has joined #nixos
i-am-the-slime has quit [Ping timeout: 256 seconds]
<MichaelRaskin>
Normal procedure of cleaning GitHub notifications: 1. Clear all Borg replies, 2. Clear all Borg requests. 3. Clear all «merged» messages. 4. look through the list of threads and mark all of them read unless something catches my eye. 5. Look at GitHub «Participating tab»
<sonarpulse>
MichaelRaskin: I wish there was an easy way to clear all merges
<MichaelRaskin>
Because of a stupid argument about text editors, for me there is.
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<MichaelRaskin>
But my mail is indexed in PostgreSQL then presented via QueryFS (a FUSE filesystem with an SQL plugin), and removing the file counts as marking the message as read (it is still visible in different directories that do not support deletion)
<MichaelRaskin>
And I have a script that shows me the basic summaries of emails including the IDs for marking read.
<MichaelRaskin>
And I can just remove the # before rm in every last-line-of-block where the block contains ## Merged #
<Mic92>
sounds weired :)
<MichaelRaskin>
(the summary of emails happens to be a working shell script)
<gchristensen>
I think it would be a real treat to have your laptop, but in a VM that I can play with and experience the world The Way MichaelRaskin Sees It
<MichaelRaskin>
Mic92: Yes, but as a result I can quickly filter out Borg replies and merges!
<MichaelRaskin>
gchristensen: you do understand that I lack significant chunks of emotions and empathy (I cannot empathise to emotions I cannot imagine) and put these points into maths perception?
<gchristensen>
well I guess I mostly meant seeing the world according to your laptop
<MichaelRaskin>
Mic92: we-ell, it was funny before #35415
<LnL>
Mic92: can't find it anymore, maybe it recovered
<sonarpulse>
MichaelRaskin: oh i don't have github emails, but am addicted to refreshing the sight heh
<sonarpulse>
the web api isn't so clever as a mail client
<sonarpulse>
*web ui
<MichaelRaskin>
gchristensen: In a web-based workflow support UI I have developed, a part of access control was that if you don't know something is there, you'll never find it, even if you were mistakenly assigned permissions (if it was not a mistake, there was an email with a link to a dashboard for that kind of task)
<MichaelRaskin>
This system had around a hundred privileged users.
<MichaelRaskin>
Now imagine how easy it is to understand what to look for on my personal laptop.
<gchristensen>
x.x
<MichaelRaskin>
A large subset of my configs is actually online, though.
<samueldr>
the more you reveal your setup, the more intriguing it seems
luto has quit [Ping timeout: 256 seconds]
<MichaelRaskin>
gchristensen: and from «why did I never think of it and never found it»: there are various environments that give you a «mount + launch file manager», but are there any that give you «mount + launch file manager or term + umount when all child processes of FM/Term finish» ?
<MichaelRaskin>
(I _now_ have that)
johs has quit [Ping timeout: 256 seconds]
<gchristensen>
nice..........
luto has joined #nixos
<MichaelRaskin>
Of course, it is not a desktop icon but a command in a Lisp REPL, but that's just my tastes
<samueldr>
eh, I have cobbled something like that for my media consumption on my "nas"
<gchristensen>
naturally. back in a while, time for supper and a nice cocktail to celebrate the nix core team.
<samueldr>
so I see why it's awesome :)
taktoa[c] has quit [Ping timeout: 256 seconds]
ocharles has quit [Ping timeout: 256 seconds]
<symphorien>
systemd has an option to auto unmount unused fs
<MichaelRaskin>
symphorien: the definition of unused is tricky.
<samueldr>
(though I'm sure it's not properly waiting for sub-processes, but the main process waits anyway for what I launch)
nand0p has quit [Ping timeout: 265 seconds]
eacameron has quit [Ping timeout: 260 seconds]
<symphorien>
it is quite useful for vfat /boot which tends to corrupt itself
johs has joined #nixos
pingveno has quit [Ping timeout: 256 seconds]
<MichaelRaskin>
And systemd is next-to-last piece of software I would tryust with getting tricky definitions right
<MichaelRaskin>
The last one is anything from Apple
typetetris has quit [Ping timeout: 265 seconds]
<BlessJah>
I'm also curious about checking for child processes to exit.
<MichaelRaskin>
Well, I don't do full cgroup fanciness
georgew has quit [Ping timeout: 265 seconds]
dgpratt has quit [Ping timeout: 276 seconds]
r0bby has quit [Ping timeout: 260 seconds]
<MichaelRaskin>
But my _default_ mode is launching the main process in screen (and not having wait() access)
jtojnar has quit [Quit: jtojnar]
eacameron has joined #nixos
vcunat has quit [Ping timeout: 248 seconds]
<MichaelRaskin>
I just pre-open an RW FD to a pipe.
<adelbertc>
how do I import a Nix expression from a file in a github repo? i know there is a `fetchGit` but i want to refer to a file `release.nix` in the root of that repo so i can import it