gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
sigmundv has joined #nixos
kiloreux has joined #nixos
kiloreux_ has joined #nixos
<kiloreux> How can install a perlPackage through "nix-env -i" ?
rodgort has quit [Quit: Leaving]
silver has quit [Read error: Connection reset by peer]
andrewmiller1 has quit [Ping timeout: 260 seconds]
jackdk has quit [Ping timeout: 240 seconds]
rodgort has joined #nixos
aarvar has joined #nixos
aarvar has quit [Client Quit]
<{^_^}> [nixpkgs] @matthewbauer pushed to master « release: remove nix-repl »: https://git.io/vhclL
<{^_^}> [nixpkgs] @xeji merged pull request #41336 → frostwire: 6.6.3 -> 6.6.7 → https://git.io/vhcm8
<{^_^}> [nixpkgs] @xeji pushed 4 commits to master: https://git.io/vhclO
kiloreux_ has quit [Quit: Leaving]
kiloreux has quit [Quit: Leaving]
mounty has quit [Ping timeout: 256 seconds]
mounty has joined #nixos
smallville7123 has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
smallville7123 has quit [Quit: rosa]
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/c40fdcd26c2 (from 27 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
smallville7123 has joined #nixos
logzet_ has quit [Ping timeout: 240 seconds]
<shachaf> OK, I've gotten a livecd environment very approximately working.
<shachaf> Is there a standard way to do full-disk encryption? I'm seeing all sorts of conflicting information trying to read about it.
logzet has joined #nixos
semilattice has joined #nixos
logzet has quit [Remote host closed the connection]
sigmundv_ has quit [Ping timeout: 244 seconds]
sigmundv__ has quit [Ping timeout: 256 seconds]
sigmundv_ has joined #nixos
sigmundv__ has joined #nixos
<clever> shachaf: i always do a cleartext /boot with an encrypted rootfs partition
<clever> shachaf: and my luks device tends to be LVM with swap + zfs
Sonarpulse has quit [Ping timeout: 248 seconds]
aarvar has joined #nixos
smallville7123 has quit [Quit: rosa]
smallville7123 has joined #nixos
Have-Quick has joined #nixos
<shachaf> ZFS on Linux? That seems pretty fancy.
smallville7123 has quit [Client Quit]
<clever> shachaf: https://github.com/cleverca22/nix-tests/blob/master/kexec/justdoit.nix is how i automate my installs
<shachaf> Isn't ZFS with LVM redundant?
aarvar has quit [Ping timeout: 244 seconds]
<clever> shachaf: swap on zfs has problems
jackdk has joined #nixos
<shachaf> I'm not sure I even want swap.
<shachaf> I'm also not sure I want ZFS, I'm not doing anything too complicated.
<shachaf> I have no usable computer until I finish installing, so I'd kind of like to do the minimum that gets me to a reasonable state.
ericsagnes has joined #nixos
<clever> shachaf: you can also just do ext4 directly on the luks device
<shachaf> But disk encryption is presumably hard to set up later.
<{^_^}> [nixpkgs] @samueldr opened pull request #41342 → Fixes doc auto-formatting oopsies → https://git.io/vhc4t
<shachaf> I want separate root and home partitions, and disk encryption. Is that doable?
<clever> you would need to either create 2 luks volumes, or use lvm to split the luks up
<shachaf> So that's LVM inside LUKS?
<clever> yep
sbdchd has joined #nixos
<shachaf> I see that some people make a separate partition just for the key, which seems like a mess.
<clever> thats why i put lvm inside luks
<shachaf> Is that only needed for decrypting two LUKS volumes with one key or something like that?
<clever> yeah, its an ugly hack where your passphrase decrypts an extra paritition
<clever> then that partition is uses as key material to decrypt 2 (or more) other partitions
<clever> so it doesnt ask for the pw twice
<clever> i just make 1 luks, and use lvm to split it up
<shachaf> That sounds more reasonable.
<clever> also, when you split things between root and home, you have to pick the right sizes or you run into issues later
<clever> zfs entirely solves that
<shachaf> That is true.
<shachaf> But maybe I don't need separate /home...
<clever> i also keep snapshots enabled in all of my datasets
<clever> but i dont want snapshots on /nix
<clever> so i have a dataset for /, /nix, and /home
<shachaf> It sounds like I want a separate unencrypted /boot regardless?
<clever> yeah
<clever> UEFI requires a cleartext /boot
<clever> legacy booting with an encrypted /boot and grub requires entering 2 passwords, one for grub to open /boot, and a 2nd for the rootfs
Synthetica has quit [Quit: Connection closed for inactivity]
i0-dfn has quit [Ping timeout: 240 seconds]
<samueldr> there's a gnarly hack that can be used with the initrd when you know the initrd is going to be encrypted
<samueldr> so that (on both UEFI and MBR IIRC) only grub will ask for a passphrase
sary has quit [Ping timeout: 244 seconds]
sir_guy_carleton has joined #nixos
<shachaf> Wait, is there only one EFI boot partition shared between all OSes?
<{^_^}> [nixpkgs] @jerith666 opened pull request #41343 → restic: add s3CredentialsFile option → https://git.io/vhcBf
<{^_^}> [nixpkgs] @primeos pushed to master « signal-desktop: 1.11.0 -> 1.12.0 »: https://git.io/vhcBT
newhoggy_ has quit [Ping timeout: 260 seconds]
freeman42x]NixOS has quit [Ping timeout: 268 seconds]
newhoggy has joined #nixos
hlolli has quit [Ping timeout: 240 seconds]
luigy has joined #nixos
<shachaf> I guess it's finally time for me to figure out how EFI works.
<iqubic> shachaf: I don't think that's how it works.
<iqubic> How hard is it to set up a python virtualenv with python3 and pip?
<samueldr> it's common that only one EFI partition is in use, but it isn't forced
<shachaf> Well, if I already have an EFI partition used by Windows, it sounds like I don't need a separate /boot?
<samueldr> the default assumption NixOS makes about /boot on EFI system is that yes, this would be the ESP partition
<samueldr> in that case, what you're saying would be right
markus1199 has joined #nixos
<samueldr> though, I don't know how big the ESP is in that situation, and if you keep *many* generations around, it could take some space
<shachaf> Looks like I have 500M free
<clever> you can also mount the ESP to /boot/EFI/, set the right option in nixos, and then have an ext4 /boot that is not ESP
<samueldr> will probably be fine
<samueldr> and that too
<shachaf> I can, but why make an extra partition?
<clever> then your kernels are on ext4,but the efi loader is on the ESP
<samueldr> with two kernels+initrd, my nixos-only EFI only has 45MB used
<clever> just an option if you choose to go that route
<samueldr> (as a point of reference)
<samueldr> those two kernels+initrd may span more than one generation each
markus1189 has quit [Ping timeout: 240 seconds]
<clever> Filesystem Size Used Avail Use% Mounted on
<clever> /dev/nvme0n1p1 511M 492M 20M 97% /boot
<clever> yikes
* samueldr wonders
<samueldr> what makes a clever ESP tick :)
<clever> this is consuming 385mb on my /boot
<clever> 3.9M -rwxr-xr-x 1 root root 3.9M Dec 31 1969 rescue-kernel
<clever> 385M -rwxr-xr-x 1 root root 385M Dec 31 1969 rescue-initrd
<samueldr> :D this looks so awesome
<clever> that is an entire nixos, in /boot, with its own option in grub
<clever> and it runs from ram
<samueldr> netboot-minimal it looks like
<clever> yep
<clever> minus the netboot
<clever> i first used it on one of my laptops, to move /nix from the / filesystem to a /nix filesystem
<clever> which needs the OS to not be running
sary has joined #nixos
sigmundv__ has quit [Quit: Leaving]
sigmundv__ has joined #nixos
<tertle||eltret> why does irccloud notify me when bot says my name
<tertle||eltret> lol
<iqubic> So if I want to use python in a virtualenv in NixOS what should I do? Just install Python3 and Pip? Is that all?
ikitat has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
matthewbauer has joined #nixos
Supersonic112 is now known as Supersonic
iqubic has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @samueldr opened pull request #41344 → Fixes doc auto-formatting oopsies [18.03] → https://git.io/vhcBF
spear2 has joined #nixos
thc202 has quit [Ping timeout: 244 seconds]
<sir_guy_carleton> okay, weird, typing in nix-channel --list brings no results
<elvishjerricco> sir_guy_carleton: Try it as root
<sir_guy_carleton> elvishjerricco: ah okay, it fine thanks
oltoAltn has joined #nixos
<sir_guy_carleton> when do system package programs get upgraded?
<samueldr> sir_guy_carleton: (assuming nixos) those in environment.systemPackages will be updated when the channel is updated, at the next nixos-rebuild
olto has quit [Ping timeout: 244 seconds]
<samueldr> and those installed with `sudo nix-env -i` if any, manually using `sudo nix-env -u` (iirc)
mizu_no_oto has joined #nixos
<samueldr> there's `nixos-rebuild ___ --upgrade` which can be used to update the channels before rebuilding
steell has joined #nixos
lassulus_ has joined #nixos
seafood has joined #nixos
<sir_guy_carleton> hmm, okay. there's a website that shows what versions of some popular pieces of software have been pushed to the various nixos channels, right?
<samueldr> maybe
<samueldr> I know of one which shows all software, not only popular
<sir_guy_carleton> well that's the one i was thinking of
<samueldr> it's repology
lassulus has quit [Ping timeout: 256 seconds]
lassulus_ is now known as lassulus
<samueldr> though, I think their nix_stable and nix_unstable names are weird
<samueldr> there is no "nix-stable", but it's tracking the current stable nixos release
<samueldr> while the "nix-unstable" (which actually is nixpkgs-unstable) is tracking nixpkgs-unstable
<sir_guy_carleton> okay, this gets at the crux of what i thinking
steell has quit [Ping timeout: 244 seconds]
<sir_guy_carleton> both this and the nixpkgs list firefox 60.0.x as the latest available.
<sir_guy_carleton> but my firefox version is still at 59.0.2
<sir_guy_carleton> even though i done some nixos-rebuild recently
<mpickering> anyone know why buildImage creates /nix/store on the image?
<sir_guy_carleton> note this is for the stable channel
<samueldr> even if the commit entered between 21 or 14 days ago, if the channel lags behind you could have updated it before it updated
<samueldr> sir_guy_carleton: just for fun, in a terminal, run `type firefox`
<samueldr> it will print either /run/current-system/sw/bin/firefox or $HOME/.nix-profile/bin/firefox
<samueldr> if it's the latter, the firefox install would be in your user profile
<clever> mpickering: can you give an example of the path your asking about?
AstroBadger has quit [Quit: ZNC 1.6.5+deb1 - http://znc.in]
<sir_guy_carleton> it's the former since i got under system packages
<mpickering> clever: What do you mean sorry?
<samueldr> good, then a channel update + switch should take care of it now
<clever> mpickering: where is buildImage putting the /nix/store, is that inside the disk image its making?
<mpickering> Yes
<mpickering> Looking in /, I see /nix/store along with the normal things like /lib and so on
<clever> mpickering: its probably because it expects you to mount that image as the rootfs
<mpickering> I think it is added here but I don't understand particularly
marusich has joined #nixos
<sir_guy_carleton> samueldr: okay, let me see if i understand correctly. nixos-rebuold will simple make the system conform to what is specified in configuration.nix (and any files refered by it), but it doesn't upgrade any of the packages specified by it?
<mpickering> Adding /nix/store makes the image 2gb bigger :.
<clever> mpickering: i think thats so that docker just unpacks the whole file to a dir that becomes / after the chroot
<sir_guy_carleton> you need to update the channel for it?
<samueldr> sir_guy_carleton: it will make it conform to configuration.nix, with the current channel
<samueldr> so yes
<clever> mpickering: run ncdu on that store dir, what path within store is the biggest?
<samueldr> there's the shortcut `nixos-rebuild switch --upgrade` for a one quick step
<clever> mpickering: buildImage will always put a /nix/store/ into the image
<mpickering> ncdu is not installed in the image. But du -sh * reports that 1.2G3cv3s9lv79qjkqyafbclbk03gz5z813w-ghc-8.2.2 is the biggest path
<samueldr> well, that's a simplification, it conforms the system to <nixpkgs>, which for you is the root's channel (and the default)
<clever> mpickering: then your real problem is that you depend on ghc at runtime, use `nix why-depends` to figure out why
<mpickering> which runtime precisely?
<{^_^}> [nixpkgs] @vaibhavsagar opened pull request #41345 → scite: 3.7.5 -> 4.0.5 → https://git.io/vhcRo
<clever> mpickering: what storepath is the root of your dep tree, that you added to the docker image?
sir_guy_carleton has quit [Quit: WeeChat 2.0]
matthewbauer has quit [Remote host closed the connection]
<mpickering> ah right
matthewbauer has joined #nixos
elasticdog has quit [Ping timeout: 260 seconds]
steell has joined #nixos
AstroBadger has joined #nixos
elasticdog has joined #nixos
<mpickering> So the main component of the image is "ghcWithPackages" which probably explains all of this mess
<clever> mpickering: oh, if you want ghc to be in the image, then of course ghc is going to be in the image
<clever> and ghc is 1gig in size
<mpickering> Yes but, all the files appear twice
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
<mpickering> once in /lib and once in the store
<clever> one min
<mpickering> even just using plain ghc makes an image which is 3gb
iqubic has joined #nixos
<clever> mpickering: what does `ls -l /lib` say when in the docker?
<clever> was that /lib or /lib/ ?
<shachaf> Hmm, I can only boot if I add "nomodeset" as a boot option.
<mpickering> That was /lib
<mpickering> But /lib/ is the same?
<clever> they will only differ if it was a symlink
<mpickering> du -sh * reports that /lib is 1.3gb and /nix is 1.9gb. fwiw
<iqubic> How hard is it to setup a python3 virtualenv with pip? And will I be able to use "pip install" in said virtualenv?
<clever> mpickering: the root problem, is that all of the paths in the binaries are hard-coded to /nix/store/
smallville7123 has joined #nixos
<clever> mpickering: so the real question, is why does /lib exist in it?
seafood has quit [Quit: seafood]
ikitat has quit [Ping timeout: 248 seconds]
<mpickering> I'll have to come back to this when not pushed for time
<clever> mpickering: i'm looking into it a bit on this end
smallville7123 has quit [Quit: rosa]
<shachaf> Is there a boot flag to start up without running X?
sir_guy_carleton has joined #nixos
jackdk has quit [Ping timeout: 244 seconds]
sigmundv__ has quit [Ping timeout: 260 seconds]
roconnor has quit [Quit: Konversation terminated!]
<samueldr> shachaf: I haven't tried it, but systemd.mask= could probably be used with systemd.mask=display-manager.service
<samueldr> (as a kernel parameter)
<shachaf> Hmm, I'll try that if this keeps happening
ryantm has quit [Remote host closed the connection]
matthewbauer has quit [Remote host closed the connection]
acarrico has quit [Ping timeout: 240 seconds]
schoppenhauer has quit [Ping timeout: 260 seconds]
jackdk has joined #nixos
schoppenhauer has joined #nixos
<elvishjerricco> shlevy: Are you still cross compiling NixOS?
shabius has quit [Ping timeout: 256 seconds]
Wharncliffe has quit [Quit: Lost terminal]
<shachaf> I can't get the X server to start up so it's hard to look this up. How can I disable nouveau, which I think is being automatically turned on and causing trouble?
sbdchd has quit [Remote host closed the connection]
sigmundv_ has quit [Ping timeout: 244 seconds]
lewo` has quit [Remote host closed the connection]
lewo`` has joined #nixos
Guest87130 has quit [Ping timeout: 268 seconds]
stew has joined #nixos
sigmundv_ has joined #nixos
itzmjauz_ has joined #nixos
dev2 has joined #nixos
lstanley_ has joined #nixos
shoogz has quit [*.net *.split]
Biappi has quit [*.net *.split]
linuxdaemon has quit [*.net *.split]
aszlig has quit [*.net *.split]
frank87 has quit [*.net *.split]
flokli has quit [*.net *.split]
goodwill has quit [*.net *.split]
infty has quit [*.net *.split]
Kim has quit [*.net *.split]
PyroLagus has quit [*.net *.split]
sc_ has quit [*.net *.split]
johnhamelink has quit [*.net *.split]
mbrock_ has quit [*.net *.split]
ericbmerritt_ has quit [*.net *.split]
ghuntley has quit [*.net *.split]
nand0p has quit [*.net *.split]
scott has quit [*.net *.split]
midchildan has quit [*.net *.split]
aristid has quit [*.net *.split]
TrentP has quit [*.net *.split]
nkaretnikov has quit [*.net *.split]
dotlambda has quit [*.net *.split]
cruxeternus has quit [*.net *.split]
jophish has quit [*.net *.split]
philips has quit [*.net *.split]
mgdelacroix has quit [*.net *.split]
terrorjack has quit [*.net *.split]
gridaphobe has quit [*.net *.split]
dmj` has quit [*.net *.split]
h30 has quit [*.net *.split]
thoughtpolice has quit [*.net *.split]
Tritlo has quit [*.net *.split]
srid has quit [*.net *.split]
noefk has quit [*.net *.split]
fyuuri has quit [*.net *.split]
symphorien has quit [*.net *.split]
paraseba has quit [*.net *.split]
alfie has quit [*.net *.split]
nixy has quit [*.net *.split]
smola has quit [*.net *.split]
ajmccluskey has quit [*.net *.split]
anton_ has quit [*.net *.split]
bobj has quit [*.net *.split]
jbetz has quit [*.net *.split]
wavewave has quit [*.net *.split]
dgonyeo has quit [*.net *.split]
r0bby has quit [*.net *.split]
oh_lawd has quit [*.net *.split]
johs has quit [*.net *.split]
jonasem has quit [*.net *.split]
rizary has quit [*.net *.split]
carter has quit [*.net *.split]
bmpvieira has quit [*.net *.split]
luigy has quit [*.net *.split]
hexagoxel has quit [*.net *.split]
Guest6248 has quit [*.net *.split]
lstanley has quit [*.net *.split]
itzmjauz has quit [*.net *.split]
evax_ has quit [*.net *.split]
dev1 has quit [*.net *.split]
lstanley_ is now known as lstanley
jD91mZM2 has joined #nixos
<shachaf> Is there a way I can force that package not to be installed or something?
layus has quit [Ping timeout: 240 seconds]
jperras has quit [Ping timeout: 256 seconds]
<samueldr> shachaf: probably boot.blacklistedKernelModules
<samueldr> boot.blacklistedKernelModules = [ "nouveau" ]; is used in the installer image config
<samueldr> the hardware.nvidiaOptimus.disable option would also disable it, along with other nvidia things
layus has joined #nixos
<samueldr> if it's a laptop, optimus and bumblebee options may be relevant
<samueldr> otherwise, look into enabling the proprietary drivers https://nixos.org/nixos/manual/#idm140737316275424
<samueldr> that may help for really new hardware
<samueldr> (I dumped all that here since I'm leaving for the night take care all)
<iqubic> samueldr: Goodbye.
qz has joined #nixos
<shachaf> I just want to use the Intel card for now.
<shachaf> samueldr: Thanks, hopefully I can figure it out.
<shachaf> I just want to get the X server running at all first, rather than segfaulting like it is now.
linuxdaemon has joined #nixos
steell has quit [Ping timeout: 240 seconds]
newhoggy_ has joined #nixos
YaZko has joined #nixos
schoppenhauer has quit [Ping timeout: 256 seconds]
newhoggy has quit [Ping timeout: 260 seconds]
schoppenhauer has joined #nixos
nallar has joined #nixos
Ross has quit [Ping timeout: 268 seconds]
nallar is now known as Ross
<judson> I'm having some trouble with a Ruby nix-shell environment. I'm not sure if it's Nix or Ruby...
<judson> But I'm getting errors like "bundler/rubygems_integration.rb:458:in `block in replace_bin_path': can't find executable bundler for gem bundler (Gem::Exception)"
alexteves__ has quit [Ping timeout: 256 seconds]
<judson> Does that look familiar to anyone? zimbatm, maybe?
doyougnu has quit [Quit: WeeChat 1.9.1]
newhoggy_ has quit [Remote host closed the connection]
newhoggy has joined #nixos
orivej has joined #nixos
periklis has joined #nixos
aarvar has joined #nixos
Have-Quick has quit [Remote host closed the connection]
newhoggy has quit [Remote host closed the connection]
periklis has quit [Ping timeout: 248 seconds]
newhoggy has joined #nixos
nkaretnikov has joined #nixos
sigmundv_ has quit [Remote host closed the connection]
mahalel_ has quit [Remote host closed the connection]
<judson> Figured it out - had to do with groups.
newhoggy has quit [Remote host closed the connection]
newhoggy has joined #nixos
periklis has joined #nixos
robstr has joined #nixos
owickstrom_ has joined #nixos
jperras has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
seafood has joined #nixos
alex`` has joined #nixos
Ariakenom has joined #nixos
spear2 has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @vbgl opened pull request #41346 → opaline: init at 0.3.1 → https://git.io/vhcag
sary has quit [Ping timeout: 240 seconds]
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<clever> mpickering: yeah, something seems off with the docker images
Ariakenom has quit [Quit: Leaving]
Jetien has joined #nixos
rauno has quit [Ping timeout: 260 seconds]
hyper_ch2 has joined #nixos
<{^_^}> [nixpkgs] @orivej merged pull request #41252 → qbittorrent: 4.1.0 -> 4.1.1 → https://git.io/vhsVt
<{^_^}> [nixpkgs] @orivej pushed commit from @Anton-Latukha to master « qbittorrent: 4.1.0 -> 4.1.1 (#41252) »: https://git.io/vhcV2
Ariakenom has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
YaZko has quit [Quit: YaZko]
jbgi has joined #nixos
CodeWarr1or has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @orivej pushed to master « qpid-cpp: fix build after #28029 »: https://git.io/vhcwn
tertle||eltret has quit [Quit: Connection closed for inactivity]
xy2_ has joined #nixos
<{^_^}> [nixpkgs] @aszlig pushed to master « tests/containers-imperative: Include stdenvNoCC »: https://git.io/vhcwz
CodeWarrior has joined #nixos
LouisDeFunes294 has joined #nixos
newhoggy_ has joined #nixos
newhoggy has quit [Ping timeout: 260 seconds]
jbgi has quit [Quit: WeeChat 2.1]
LouisDeFunes294 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MichaelRaskin has quit [Quit: MichaelRaskin]
LouisDeFunes294 has joined #nixos
xy2_ has quit [Ping timeout: 276 seconds]
Have-Quick has joined #nixos
<{^_^}> [nixpkgs] @adisbladis pushed 3 commits to master: https://git.io/vhcr0
qz has quit [Quit: WeeChat 1.4]
Tehnix has quit [Read error: Connection reset by peer]
Tehnix has joined #nixos
seafood has quit [Quit: seafood]
boomshroom has joined #nixos
<boomshroom> Hello!
<boomshroom> Is anyone familiar with https://www.luna-lang.org/?
hc has joined #nixos
<hc> Hi all! The link to the install image iso's sha256 goes to cloudfront. Shouldn't the sha256 be hosted directly on nixos.org?
<hc> Or, better yet, how about gpg-signing the SIGNATURES file?
asuryawanshi has quit [Remote host closed the connection]
<etu> boomshroom: I have read about it. But haven't tried it.
asuryawanshi has joined #nixos
leat has quit [Ping timeout: 256 seconds]
<boomshroom> etu: I first saw it before it was released and now it's open source in public beta. From what I can tell, it's an attempt at a visual language that can fallback on a usable textual representation (that resembles the ML family).
qz has joined #nixos
<etu> boomshroom: Someone should make a nix package of it :)
<boomshroom> It's focus seems to be data processing and its visual representation seems to just be a data-flow graph.
magnetop` has quit [Remote host closed the connection]
<boomshroom> In other news: `builder for '/nix/store/gknffqzgrnbx17mj2znyf067bimhn5cc-stack2nix-0.1.3.0.drv' failed with exit code 1;` `Module ???Nix.Parser??? does not export ???parseNixString???`
<boomshroom> Those "???"s printed as unicode characters in the output, but weechat stupidly decided to replace them with question marks.
<boomshroom> The part of Luna that I'm most excited about is writing code normally and watch the dataflow grpah built as I type.
<{^_^}> [nixpkgs] @dywedir opened pull request #41348 → bat: 0.3.0 -> 0.4.1 → https://git.io/vhcoc
hamishmack has quit [Ping timeout: 256 seconds]
<ldlework> Anyone here use ZNC with certauth?
magnetophon has joined #nixos
rauno has joined #nixos
<jD91mZM2> boomshroom: What are you running to get that error?
ixxie has joined #nixos
<boomshroom> jD91mZM2: nix-run nixpkgs.stack2nix -c stack2nix --help
<jD91mZM2> Is there any reason you're not using normal nix 2.0 `nix run`?
<boomshroom> jD91mZM2: nix-run doesn't exist. I wasn't paying attention when typing.
<jD91mZM2> Oh, I thought you were using the thing from nix-bundle
<boomshroom> jD91mZM2: I'm not familiar with nix-bundle
<jD91mZM2> Me neither :P
<jD91mZM2> Strange, your command works for me
<jD91mZM2> nixpkgs version?
<boomshroom> jD91mZM2: NixOS: 18.09pre140920.5b468ea6b1d (Jellyfish)
<jD91mZM2> Is that unstable? Sorry, I don't know how nix pre-releases work heh
<boomshroom> Running `sudo nixos-rebuild switch --upgrade` gives several warnings about `Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring`. It is nixos-unstable.
<boomshroom> Attempting to use nox prints a bunch of `derivation '<package>' has invalid meta attribute 'platforms'`
<jD91mZM2> I think somebody got a similar warning yesterday, but I'm not sure
<jD91mZM2> I think I was wrong, I can't find it in the logs
<Plato[m]> I've got this warning, too, by the way.
newhoggy_ has quit [Remote host closed the connection]
<jD91mZM2> Okay so I can't compile stack2nix either boomshroom
<jD91mZM2> With unstable, I mean
<jD91mZM2> You should report an issue :)
jperras has joined #nixos
<{^_^}> [nixpkgs] @limeytexan opened pull request #41349 → perlPackages.Git: init at 0.42 → https://git.io/vhcKq
coot has joined #nixos
tzemanovic has joined #nixos
<boomshroom> jD91mZM2: It looks at first glance that that's an old issue that's been resolved, but not published as a version.
jperras has quit [Ping timeout: 256 seconds]
michas_ has joined #nixos
semilattice has quit [Ping timeout: 240 seconds]
<jD91mZM2> boomshroom: Link?
<boomshroom> jD91mZM2: The version on hackage as the problem but the git master doesn't.
<jD91mZM2> Ah, right
<boomshroom> Currently building the master even though its late and I should get to bed.
<jD91mZM2> You could also use nix-shell with a stable channel if you just want a quick fix
<magnetophon> sphalerite: hi, are you there? I have a log of the kind we talked about: https://pastebin.com/TEKtrza4
<jD91mZM2> Oooh, so you were the one who got the $HOME/.nix-defexpr/channels problem as well
<jD91mZM2> magnetophon: What does `ls -l /etc/hosts` say? And `lsattr /etc/hosts`?
<magnetophon> jD91mZM2: lrwxrwxrwx 1 root root 17 1 jun 08:54 /etc/hosts -> /etc/static/hosts
<jD91mZM2> And `lsattr "$(realpath /etc/hosts)"`?
<magnetophon> lsattr: Operation not supported While reading flags on /etc/hosts
<jD91mZM2> Also `ls -l "$(realpath /etc/hosts)"`
<magnetophon> --------------e--- /home/bart/nixosConfig/hosts
<magnetophon>
<sphalerit> magnetophon: yeah, a bit busy today though. Maybe someone else can help you, or I can have another look tomorrow
<sphalerit> Oh! That looks like it would be the cause actually!
<magnetophon> -rw-r--r-- 1 777 wheel 968699 28 mei 22:20 /home/bart/nixosConfig/hosts
<sphalerit> Because your home dir is probably o-rx
<jD91mZM2> Who is user 777?
<magnetophon> sphalerite: thanks.
<jD91mZM2> Oooo good point sphalerit, I forgot parent directories' permissions matter
<magnetophon> jD91mZM2: ah, that'smy error. no such user. I\ll try and fix itorres
<sphalerit> So yeah you need to make sure your hosts file is accessible to all users. The easiest way is to make it get copied to the store
michas_ has quit [Ping timeout: 244 seconds]
<jD91mZM2> Did you manually change /etc/hosts, or is the nix config doing it? Because I don't think nix is supposed to symlink stuff to a user's local file
<magnetophon> jD91mZM2: it's in my config.
tzemanovic has quit [Remote host closed the connection]
<jD91mZM2> magnetophon: Code?
<magnetophon> I now have: ls -l "$(realpath /etc/hosts)"
<magnetophon> -rwxrwxrwx 1 bart wheel 968699 28 mei 22:20 /home/bart/nixosConfig/hosts
<magnetophon> does that look better? stilldoesn'twork though...
<jD91mZM2> Like sphalerit said, it depends on all parent directories as well. `ls -l /home/bart`?
<jD91mZM2> What happens if you remove the quotes in your config?
<jD91mZM2> I think that might make it copy over the file instead
<jD91mZM2> { source = /home/bart/nixosConfig/hosts; }
luigy has joined #nixos
Biappi has joined #nixos
shoogz has joined #nixos
aszlig has joined #nixos
PyroLagus has joined #nixos
mbrock_ has joined #nixos
frank87 has joined #nixos
scott has joined #nixos
johnhamelink has joined #nixos
ericbmerritt_ has joined #nixos
flokli has joined #nixos
goodwill has joined #nixos
Kim has joined #nixos
infty has joined #nixos
midchildan has joined #nixos
nand0p has joined #nixos
ghuntley has joined #nixos
sc_ has joined #nixos
symphorien has joined #nixos
cruxeternus has joined #nixos
terrorjack has joined #nixos
aristid has joined #nixos
mgdelacroix has joined #nixos
wavewave has joined #nixos
dgonyeo has joined #nixos
anton_ has joined #nixos
bobj has joined #nixos
TrentP has joined #nixos
h30 has joined #nixos
carter has joined #nixos
jonasem has joined #nixos
johs has joined #nixos
noefk has joined #nixos
jbetz has joined #nixos
dmj` has joined #nixos
paraseba has joined #nixos
bmpvieira has joined #nixos
philips has joined #nixos
nixy has joined #nixos
Guest6248 has joined #nixos
srid has joined #nixos
oh_lawd has joined #nixos
smola has joined #nixos
alfie has joined #nixos
gridaphobe has joined #nixos
Tritlo has joined #nixos
jophish has joined #nixos
evax_ has joined #nixos
rizary has joined #nixos
r0bby has joined #nixos
ajmccluskey has joined #nixos
thoughtpolice has joined #nixos
dotlambda has joined #nixos
hexagoxel has joined #nixos
terrorjack has quit [Max SendQ exceeded]
cruxeternus has quit [Max SendQ exceeded]
shoogz has quit [Max SendQ exceeded]
dmj` has quit [Max SendQ exceeded]
cruxeternus has joined #nixos
<ldlework> If I have an option which takes text, and I have a file at ./foo which contains the text I want to set the option to, how do I do that?
<ldlework> I assume that doing
<ldlework> someTextOption = ./foo;
<ldlework> which set the option to the filename of ./foo in the store
<ldlework> how to get the text?
shoogz has joined #nixos
<tilpner> The common solution to allowing input as both strings and files is having two mutually exclusive options: see e.g. users.users.<name?>.openssh.authorizedKeys.keyFiles and users.users.<name?>.openssh.authorizedKeys.keys
terrorjack has joined #nixos
dmj` has joined #nixos
<tilpner> If you are the user of a module that only offers the non-file version, you can use "builtins.readFile ./foo"
<ldlework> cheers
<ldlework> in a nix module, builtins is a name that's always avaialble right
<ldlework> you don't have to put builtins as one of your module's attrset parameters?
<tilpner> It is available everywhere, so also in modules
<ldlework> thanks
<ldlework> tilpner: last question; where is callPackage?
<ldlework> builtins? lib?
<tilpner> There are multiple callPackages. The most common one is perhaps pkgs.callPackage
<boomshroom> I was able to get a stack2nix file with the luna components, but the studio seems more complex to build.
<ldlework> All that does is introspect a function which takes an attrset, and automatically passes those arguments, with the ability to override some inherited names right?
<ldlework> I just read the nix pill on it...
<tilpner> Correct
<ldlework> pretty handy
civodul has joined #nixos
<tilpner> It's also useful because it carries along the autoArgs set
<ldlework> the ... thing?
<tilpner> So that you don't have to take { pkgs, callPackage, ... }, just to use callPackage
<etu> ldlework: that is called ellipsis (the three dots)
<tilpner> The autoArgs set is the set it will automatically pick arguments for the to-be-called function from
<ldlework> I'm not sure anyone present cares, but the ZNC nixpkg is very limited. ZNC supports multiple users, but you can only configure a single one.
<tilpner> (That's a limitation of the module, not the package)
<ldlework> Yeah, that's clearer.
<ldlework> Needs to somehow loop over multiple user configs. In time I might learn enough Nix to tackle it.
<tilpner> I enabled mutable config, because I don't want to redeploy every time I join a channel (and because the ZNC is supposed to be temporary)
<ldlework> Heresay!
<ldlework> errr
<ldlework> Heresy!
<ldlework> lol
<ldlework> redeploying with nixops is crazy easy!
<tilpner> And will you give every user rights to redeploy your server?
<ldlework> Also I kind of like the fact that channels I don't put in my config, will dissapear next time I redeploy.
<ldlework> No but the only other user would be my girlfriend, and I'll rebuild a nix machine on her behalf anytime.
<ldlework> You're a great help though. Thank you.
marusich has quit [Quit: Leaving]
jackdk has quit [Ping timeout: 256 seconds]
<sphalerite> ldlework: infinisil uses znc and has been improving it recently iirc
<ldlework> That's cool.
<ldlework> I'm trying to get it all setup with ssl over both connections, with client-cert auth
boomshroom has quit [Quit: WeeChat 2.0]
seafood has joined #nixos
hamishmack has joined #nixos
leat has joined #nixos
Guest1138 has joined #nixos
coot has quit [Quit: coot]
coot has joined #nixos
lonokhov has joined #nixos
tzemanovic has joined #nixos
thc202 has joined #nixos
tzemanovic has quit [Ping timeout: 244 seconds]
<infinisil> ldlework: My university semester ends today so I'll have more time now, I'll try to finish my znc module rewrite asap :)
tzemanovic has joined #nixos
LouisDeFunes294 has quit [Quit: Textual IRC Client: www.textualapp.com]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
tzemanovic has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @jtojnar pushed to revert-37028-auto-update/itstool « Revert "itstool: 2.0.2 -> 2.0.4" »: https://git.io/vhcM4
lsix has joined #nixos
<teto1> what's the difference between clangStdenv and libcxxStdenv ?
hlolli has joined #nixos
nc_ has quit [Ping timeout: 248 seconds]
<periklis> teto1: libcxxStdenv is just the c++ stdlib
newhoggy has joined #nixos
jperras has joined #nixos
<teto1> it's weird, castxml picks up correctly cstddef but not stddef.h which is in the same folder "/nix/store/sxl790snpps39npa06l6l058nk4g0rf5-libc++-5.0.1/include/c++/v1/cstddef:44:15: fatal error: 'stddef.h' file not found".
<periklis> teto1: is this fatal error a build error? Or an error when you compile your code looking for libcxxStdenv?
winem_ has joined #nixos
nc_ has joined #nixos
jperras has quit [Ping timeout: 276 seconds]
gmarmstrong has joined #nixos
<teto1> periklis: it happens when trying to generate python bindings in https://github.com/NixOS/nixpkgs/pull/41264. The C++ code compiles ok with libcxxStdenv . Then I try to generate python bindings with "./waf --apiscan=all". This calls pybindgen -> pygccxml -> castxml. Castxml relies on libclang to build the AST and the rest generates the bindings. But castxml can't parse the thing. I wonder if I should change its
<teto1> (propagated)buildInputs , i am a bit lost
<periklis> hmm... cstd headers are afaik somehow wildly included by c++ compilers, there is this include_next macro
<{^_^}> [nixpkgs] @Mic92 opened pull request #41350 → godep: remove in favor of dep → https://git.io/vhcQ8
NightTrain has joined #nixos
coot has quit [Remote host closed the connection]
tzemanovic has joined #nixos
coot has joined #nixos
Guest11500 is now known as sie_
<{^_^}> [nixpkgs] @vbgl opened pull request #41351 → coqPackages.contribs.aac-tactics: enable for Coq 8.7 and 8.8 → https://git.io/vhcQx
periklis` has joined #nixos
<domenkozar> after two months of work I'd like to announce https://cachix.org/ - Binary Cache as a Service
<periklis`> domenkozar: hoorrayyy
<srhb> domenkozar: Nice job, was excited to see what you did. :)
andi- has quit [Ping timeout: 256 seconds]
periklis has quit [Ping timeout: 244 seconds]
<domenkozar> thanks :)
<domenkozar> hope you find it useful :)
<periklis`> dottedmag: sure when overlays land in. we at HolidayCheck use an overlay approach for our corporate packages inspired by nixpkgs-mozilla
<srhb> domenkozar: You have a typo in the roadmap: Garbage collecttion
<teto1> that's freaking cool
seafood has quit [Quit: seafood]
<domenkozar> thanks
<teto1> periklis`: thanks for the interesting link, what a mess :)
seafood has joined #nixos
<domenkozar> srhb: fixed
<srhb> domenkozar: \o/
<periklis`> teto1: it's a mess accounting thirty years of c-compatibility
<teto1> periklis`: oh I understand your comment now: castxml doesn't pick up the stddef.h in the same folder because that's the behavior of #include_next. Any idea where it should look for then ? .
<teto1> domenkozar: when is cachix client reaching nixpkgs ?
<domenkozar> I think a few weeks.
andi- has joined #nixos
<teto1> takes a while to install otherwise :>
<domenkozar> if you use Nix 2.0, it should be installed from the binary cache
<domenkozar> nix-env -if https://github.com/cachix/cachix/tarball/master --substituters https://cachix.cachix.org --trusted-public-keys cachix.cachix.org-1:eWNHQldwUO7G2VkjpnjDbWwy4KQ/HNxht7H4SSoMckM=
<{^_^}> [nixpkgs] @Mic92 opened pull request #41352 → dep2nix: init at 0.0.1 → https://git.io/vhc5W
<teto1> I use nix 2.0 but it doesn't use the binary cache, maybe because of some changes in my local nixpkgs
<srhb> teto1: You'd have to make some fairly severe changes far down the dependency line to get no cache at all
knupfer has joined #nixos
Have-Quick has quit [Ping timeout: 240 seconds]
<periklis`> teto1: i can't remember anymore how to tell the clang compiler to do this include_next hop.
<domenkozar> teto1: yeah you need to be trusted user
nc_ has quit [Ping timeout: 260 seconds]
simukis has joined #nixos
newhoggy has quit [Remote host closed the connection]
oida has quit [Remote host closed the connection]
klntsky has quit [Read error: Connection reset by peer]
phreedom has quit [Write error: Connection reset by peer]
phreedom has joined #nixos
<dottedmag> domenkozar: Are the packages in binary cache signed by the original builder? That is only hinted at by "security" selling point, but not mentioned anywhere else.
andi- has quit [Excess Flood]
tzemanovic has quit [Remote host closed the connection]
tmaekawa has joined #nixos
Have-Quick has joined #nixos
<owickstrom_> domenkozar: Cool stuff! :)
oida has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #41349 → perlPackages.Git: init at 0.42 → https://git.io/vhcKq
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vhcdP
ixxie has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<domenkozar> dottedmag: yes, that's the case.
tzemanovic has joined #nixos
<domenkozar> I'll mention it in getting started guide, thanks
balsoft has joined #nixos
balsoft has left #nixos [#nixos]
balsoft has joined #nixos
balsoft has left #nixos [#nixos]
andi- has joined #nixos
tzemanovic has quit [Remote host closed the connection]
newhoggy has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #41348 → bat: 0.3.0 -> 0.4.1 → https://git.io/vhcoc
<{^_^}> [nixpkgs] @xeji pushed commit from @dywedir to master « bat: 0.3.0 -> 0.4.1 (#41348) »: https://git.io/vhcbL
<{^_^}> [nixpkgs] @vbgl opened pull request #41353 → gnome2.gtksourceview: fix build on darwin → https://git.io/vhcbY
jperras has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #41338 → neo4j: 3.3.4 -> 3.4.0 → https://git.io/vhcYB
<{^_^}> [nixpkgs] @xeji pushed commit from @patternspandemic to master « neo4j: 3.3.4 -> 3.4.0 (#41338) »: https://git.io/vhcb2
ericsagnes has quit [Ping timeout: 240 seconds]
newhoggy has quit [Ping timeout: 276 seconds]
klntsky has joined #nixos
jperras has quit [Ping timeout: 260 seconds]
Synthetica has joined #nixos
coot has quit [Quit: coot]
<{^_^}> [nixpkgs] @xeji merged pull request #41345 → scite: 3.7.5 -> 4.0.5 → https://git.io/vhcRo
<{^_^}> [nixpkgs] @xeji pushed commit from @vaibhavsagar to master « scite: 3.7.5 -> 4.0.5 (#41345) »: https://git.io/vhcNm
rauno has quit [Ping timeout: 244 seconds]
sigmundv__ has joined #nixos
aarvar has quit [Ping timeout: 244 seconds]
alex`` has quit [Ping timeout: 260 seconds]
alex`` has joined #nixos
tzemanovic has joined #nixos
tmaekawa has quit [Quit: tmaekawa]
thblt has joined #nixos
logzet has joined #nixos
tzemanovic has quit [Ping timeout: 260 seconds]
magnetophon has quit [Ping timeout: 255 seconds]
tzemanovic has joined #nixos
deepfire` has quit [Ping timeout: 244 seconds]
tzemanovic has quit [Ping timeout: 244 seconds]
tzemanovic has joined #nixos
deepfire` has joined #nixos
ixxie has joined #nixos
<{^_^}> [nixpkgs] @mulderr opened pull request #41354 → odpic: init at 2.3.2 → https://git.io/vhcpR
yenzenz has joined #nixos
ixxie has quit [Client Quit]
acarrico has joined #nixos
rauno has joined #nixos
newhoggy has joined #nixos
leat has quit [Ping timeout: 256 seconds]
__monty__ has joined #nixos
nc_ has joined #nixos
ikitat has joined #nixos
ericsagnes has joined #nixos
alexteves_ has joined #nixos
leat has joined #nixos
seafood has quit [Quit: seafood]
seafood has joined #nixos
<tilpner> domenkozar - FAQ/Roadmap doesn't render properly after login, and there's no logout button (short of clearing session)
JasonGrossman has joined #nixos
<tilpner> Ah, found #21
rumi100300 has joined #nixos
rumi100300 has quit [Client Quit]
iyzsong has joined #nixos
steell has joined #nixos
<domenkozar> tilpner: yes I was afraid going back and forth will be a pain (especially without logout button) :D
<domenkozar> I'll add it in following days
ericsagnes has quit [Ping timeout: 248 seconds]
<tilpner> domenkozar - This looks like a great idea in principle, but I'm worried about how users go from "just trust the cache.nixos.org operators" to "trust as many people as have access to all caches you use"
owickstrom_ has quit [Remote host closed the connection]
<domenkozar> tilpner: it's no different to gpg or any other internet trust
owickstrom_ has joined #nixos
<tilpner> domenkozar - The severity obliously depends on if it gets as bad as the "just add this ppa" (and users can always compile it manually by not adding the cache)
<domenkozar> tilpner: or container hosting in general
<domenkozar> but yes, same risks apply
ikitat has quit [Read error: Connection reset by peer]
ikitat has joined #nixos
<tilpner> Not quite. Let's take your example of "container hosting" as hub.docker.com, which has manual pushes, and automated builds
<tilpner> A manual push can contain anything, and you don't really how it was built
nc_ has quit [Ping timeout: 240 seconds]
<domenkozar> I think in Nix you can at least audit it, you'll always have source
<domenkozar> so if someone builds it themself, they can binary diff and report fraud
<tilpner> But an automatic build comes with (there are issues here too) assurance that an image was built from this file
<tilpner> Yes, that makes it less problematic
<domenkozar> you could take cachix forward with binary determinism
<domenkozar> and 3 different signature with identical binary output
<domenkozar> could make it a distributed build farm
<tilpner> Oh, that would be great
<domenkozar> or what ever threshold you want to trust
<JasonGrossman> domenkozar: The whole idea seems exciting to me, because NixOS will have to get less centralised, eventually.
<JasonGrossman> domenkozar: So thank you!
silver has joined #nixos
<domenkozar> glad to hear that :)
<owickstrom_> domenkozar: I'm working on a multi-job (workflow) CircleCI build using Nix, and having quite some trouble with sharing Nix store artifacts between the running containers. Do you think cachix could be useful in that context, to share parts of the nix store between containers more quickly?
<domenkozar> owickstrom_: yes, that was the main motivation
<domenkozar> actually cachix itself uses it to get builds <3min
<owickstrom_> It would probably require private caches in our case as it's a proprietary project
<owickstrom_> oh cool!
<owickstrom_> you released this with a perfect timing :D
<domenkozar> I'd encourage you to signup for "private binary cache" list
<domenkozar> although there is not logout button now you'll have to use incognito mode :D
ericsagnes has joined #nixos
andi- has quit [Ping timeout: 240 seconds]
<owickstrom_> Will do!
newhoggy has quit [Remote host closed the connection]
<domenkozar> <3
newhoggy has joined #nixos
schjetne has quit [Ping timeout: 245 seconds]
abcrawf has quit [Remote host closed the connection]
knupfer has quit [Ping timeout: 240 seconds]
schjetne has joined #nixos
abcrawf has joined #nixos
NightTrain has quit [Quit: Lost terminal]
newhoggy has quit [Ping timeout: 244 seconds]
knupfer has joined #nixos
nc_ has joined #nixos
<sphalerite> domenkozar: How does cachix differ from setting up a web server yourself and using `nix copy` to put stuff in the binary cache?
<domenkozar> sphalerite: that it's hosted for you :)
magnetophon has joined #nixos
<domenkozar> sphalerite: + things you see on roadmap will be extra things you get for free
<domenkozar> sphalerite: similar to git and github, etc
<sphalerite> sounds good :)
<jD91mZM2> So cachix is kinda like GitHub for binaries? :P
periklis` has quit [Ping timeout: 256 seconds]
<{^_^}> [nix] @edolstra pushed to master « Improve binary cache upload messages »: https://git.io/vhCJP
jperras has joined #nixos
coot has joined #nixos
jperras has quit [Ping timeout: 244 seconds]
ikitat has quit [Ping timeout: 245 seconds]
kiloreux has joined #nixos
<{^_^}> [nixpkgs] @Assassinkin opened pull request #41355 → pythonPackages.pykdtree: init at 1.3.0 → https://git.io/vhCUW
kiloreux_ has joined #nixos
kiloreux_ has quit [Client Quit]
newhoggy has joined #nixos
<kiloreux> When I install nginx on a ubuntu machine. How do I set the configuration file for it properly ?
<kiloreux> Or is it exclusive to nixos ?
thblt has quit [Remote host closed the connection]
seafood has quit [Quit: seafood]
blankhart has quit [Quit: WeeChat 1.9.1]
<JasonGrossman> kiloreux: Are you using Nix?
thblt has joined #nixos
<sphalerite> kiloreux: nixos modules are exclusive to nixos, yes.
<kiloreux> So I can't >_<
<sphalerite> kiloreux: so basically the answer is "pass -c path/to/nginx.conf"
camsbury has quit [Ping timeout: 245 seconds]
<sphalerite> you can always borrow code from nixos to generate the config file in nix, but it will be more fiddly than if you're on nixos
<kiloreux> sphalerite, thank you. What does "pass -c path/to/nginx.conf" mean ?
<sphalerite> nix build nixpkgs.nginx && ./result/bin/nginx -c my-nginx.conf
newhoggy has quit [Ping timeout: 276 seconds]
seafood has joined #nixos
<sphalerite> and you configure nginx using nginx.conf like on regular distros
<kiloreux> Ahh I see. Thank you then <3 .
andrewmiller1 has joined #nixos
seafood has quit [Client Quit]
periklis` has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « signal-desktop: Fix a possible crash when saving an attachment »: https://git.io/vhCTL
sie has joined #nixos
<sie> when restarting display service, my tmux is dying
sbdchd has joined #nixos
<sie> should that happen? does that happen to any of you?
<{^_^}> [nixpkgs] @FRidh merged pull request #41310 → pythonPackages.amazon_kclpy: init at 1.5.0 → https://git.io/vhZMc
<{^_^}> [nixpkgs] @FRidh pushed 3 commits to master: https://git.io/vhCTV
<thblt> sie: tmux started in a GUI terminal emulator?
<sie> yup
andrewmiller1 has quit [Quit: Page closed]
<thblt> sie: well why wouldn't it die? It's a child process of a child process, etc, of the process you're killing.
owickstrom_ has quit [Remote host closed the connection]
<thblt> sie: but you should be able to reattach
<sie> sure, the session should, but not all of the windows and the server
owickstrom_ has joined #nixos
<sie> it's all gone, no reattaching
sbdchd has quit [Remote host closed the connection]
newhoggy has joined #nixos
<sphalerite> sie: is the process still running?
<sphalerite> If so, try sending it SIGUSR1 then trying again
<sphalerite> if not, you may need to tell systemd you don't want it to kill everything when you log out
<sphalerite> loginctl enable-linger <username>
<sie> ah, that's what's going on!
sbdchd has joined #nixos
<sie> sphalerite: No, everything died on multiple occasions.
<sie> So it must be systemd indeed.
andrewmiller1 has joined #nixos
ixxie has joined #nixos
steell has quit [Ping timeout: 276 seconds]
<Plato[m]> Can I specify a specific version of nixpkgs in the nix-shell command line?
<{^_^}> [nixpkgs] @primeos pushed to master « signal-desktop: Refactor the package description »: https://git.io/vhCLT
<sie> Plato[m]: You can point to a local checkout of nixpkgs with $NIX_PATH.
<Plato[m]> sie: Okay, sadly, this is not enough.
<srhb> Plato[m]: You can point it to a specific revision, too
<srhb> Plato[m]: NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/ab593d46dc38b9f0f23964120912138c77fa9af4.tar.gz
<srhb> -I should work too
<nyanloutre[m]> Plato[m]: what do you want to do ?
<kiloreux> I am trying to use ffmpeg libraries inside another package. But I don't know how to access them ?
jperras has joined #nixos
<kiloreux> ffmpeg.lib isn't working
<thblt> kiloreux: it should be just ffmpeg I think
<kiloreux> And I put it in buildInputs right ?
<kiloreux> Doesn't work :(
schjetne has quit [Ping timeout: 244 seconds]
<Plato[m]> Okay, I'll try -I
<andrewmiller1> my os is fully usable* *except for reading from or writing to /nix/var/nix/db. i can't install, repair, update, or upgrade in nixos-rebuild, nix-env, or nix-channel. it's essentially frozen in its state. i'm having an awful time with usb boot. i have no cd drive or cds. does anyone know how to get myself a clean slate on the same partition? can i boot to my fedora partition, somehow get nix commands, mnt, and fix from there?
<srhb> andrewmiller1: What's wrong with /nix/var/nix/db ?
<thblt> kiloreux: describe "doesn't work"
<kiloreux> thblt, I have a requirement to use libavcodec which exists only inside ffmpeg. When i try to compile it this way. The compiler doesn't recognize libavcodec and it complains that it doesn't understand it.
<kiloreux> Like you never linked it.
<Plato[m]> Yes, nix-shell -I nixpkgs=... seems to work. Thanks srhb.
<thblt> the compiler cannot find the include or the linker cannot find the lib?
<andrewmiller1> srhb: i have more than one issue i think. for /nix/var/nix/db, i now have a different sub-error, but it has the same "database disk image is malformed". "error: executing SQLite statement 'insert or replace into Refs (referrer, reference) values (?, ?);': database disk image is malformed (in '/nix/var/nix/db/db.sqlite')"
newhoggy has quit [Remote host closed the connection]
<srhb> andrewmiller1: Ouch.
sary has joined #nixos
newhoggy has joined #nixos
<kiloreux> thblt, the compiler cannot find the include.
oltoAltn has quit [Quit: ZNC - https://znc.in]
<thblt> kiloreux: do you have a small sourc in can try
<thblt> ?
<kiloreux> Checkout the Makefile so you understand what I mean.
olto has joined #nixos
jperras has quit [Ping timeout: 244 seconds]
<srhb> andrewmiller1: This page is outdated, but I remember getting it to work with some tweaks: https://nixos.wiki/wiki/Installing_from_Linux
<thblt> kiloreux: the makefile seems to make unreasonable asumptions about paths
<srhb> andrewmiller1: But yeah, usb boot would be simplest.
<andrewmiller1> i started with this kind of issue. every day it seems to be a different package, but maybe the variance is because i've tried things here and there "[root@nixos:~]# nix-env -qa unetbootin error: syntax error, unexpected $end, expecting '.' or '=', at /nix/store/qafri0ixi888swvyqbzhfwzig1xqyz8h-nixos/nixos/pkgs/os-specific/linux/keyutils/default.nix:27:15"
<srhb> andrewmiller1: If your store is read only, sounds like a dying disk.
<srhb> andrewmiller1: db AND contents corrupted.
<{^_^}> [nixpkgs] @primeos pushed to master « tdesktopPackages.preview: 1.2.24 -> 1.3.0 »: https://git.io/vhCtC
<kiloreux> thblt, can i override that step with my own ? If so, how ?
<andrewmiller1> srhb: i don't think it's read only. but it is broken
<thblt> kiloreux: no actually in my nix shell compilation breaks but all includes are found. Maybe I'm using a too recent ffmpeg
<srhb> andrewmiller1: If it's not read only, other programs might be manipulating it and breaking things I guess.
newhoggy has quit [Remote host closed the connection]
<andrewmiller1> srhb: it's a 2 year old ssd
newhoggy has joined #nixos
steell has joined #nixos
<thblt> kiloreux: this nix-shell invocation works partially: nix-shell -p ffmpeg_2 gcc bzip2
<srhb> andrewmiller1: All I know is that at least two files in /nix appear to be corrupted. :)
<{^_^}> [nixpkgs] @aprokurov opened pull request #41356 → Fixed version → https://git.io/vhCto
<andrewmiller1> srhb: yeah. it's definitely more than 2
alexteves_ has quit [Remote host closed the connection]
alexteves_ has joined #nixos
<thblt> kiloreux: this one works perfectly nix-shell -p ffmpeg_2 gcc bzip2 lame x264 faad2 zlib
<{^_^}> [nixpkgs] @ajs124 opened pull request #41357 → claws-mail: add support for python plugin → https://git.io/vhCt5
<andrewmiller1> srhb: and i've already rm -rf /nix/var/nix/db, nixos-installed on a freshly mkfs.ext4 with a new config, and copied the /nix/var/nix/db over. that's what got me the "newer/different" "database disk is malformed" error message
<{^_^}> [nixpkgs] @Vskilet opened pull request #41358 → resolve build failed syncserver → https://git.io/vhCtx
<andrewmiller1> srhb: on a usb*
<srhb> andrewmiller1: So a completely new db was instantly corrupted? Uhhh.
<srhb> andrewmiller1: That's Not Good.
newhoggy has quit [Ping timeout: 276 seconds]
<srhb> Oh hm, I'm not sure how the copying would work..
<andrewmiller1> srhb: but there are other errors so i'm wondering if this is just a side effect. i'm currently in denial about my ssd being injured
<srhb> But I don't think the database should be corrupted itself.
<etu> !tofo
<srhb> andrewmiller1: That's OK, it's the first phase etc.
<etu> !tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<kiloreux> thblt, Thank you. However I am installing it and it is complaining that there's not rule to make target install.
<kiloreux> How can I override install with the makefile's "all"?
<kiloreux> installTargets, figured it out.
<kiloreux> Thank you very much.
<thblt> kiloreux: that's because the makefile doesn't provide an install rule :-) but you wouldn't have used it anyways
jperras has joined #nixos
<kiloreux> thblt, my nix derivation directory is empty.
<kiloreux> How can I put the binary there ?
<thblt> there may be a better way, but just mv it from your builder.sh
<thblt> kiloreux: ^
<andrewmiller1> srhb: which approach did you use in https://nixos.wiki/wiki/Installing_from_Linux?
<andrewmiller1> does anyone know how much space you need on a nixos bootable usb? i only have 4gb
<thblt> andrewmiller1: for the installer? that's more than enough
<andrewmiller1> thblt: yeah
freeman42x]NixOS has joined #nixos
rain1 has quit [Quit: Leaving]
ihar has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
viric has quit [Ping timeout: 260 seconds]
owickstrom_ has quit [Quit: Leaving]
chreekat has joined #nixos
schjetne has joined #nixos
hlolli_ has joined #nixos
andrewmiller1 has quit [Quit: Page closed]
hlolli has quit [Ping timeout: 244 seconds]
camsbury has joined #nixos
asuryawanshi has quit [Ping timeout: 240 seconds]
steell has quit [Ping timeout: 240 seconds]
tzemanovic has quit [Remote host closed the connection]
sie has quit [Ping timeout: 248 seconds]
Jetien has quit [Ping timeout: 240 seconds]
rsa has joined #nixos
YaZko has joined #nixos
kiloreux has quit [Quit: Leaving]
thblt has quit [Ping timeout: 240 seconds]
Akii has quit [Quit: ZNC 1.6.5 - http://znc.in]
schjetne has quit [Ping timeout: 256 seconds]
ixxie has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
schjetne has joined #nixos
clacke has joined #nixos
Akii has joined #nixos
<clacke> I have several displaymanagers enabled in configuration.nix
<clacke> Desktop manager
<clacke> What's a display managers that allows a user to choose which one to use for this session?
<clacke> I tried lightdm and gdm3. On Ubuntu I recall that they both allowed choosing a desktop manager before logging in, but the greeters on NixOS don't seem to have this functionality.
<tilpner> sddm and slim allow you to pick a session during login
<clacke> Ok cool.
<tilpner> (But note that slim has been abandoned for a while)
<clacke> I tried to figure out where LightDM saves its choice, but I only found ~/.dmrc which didn't seem to have any effect. Maybe that's what gdm uses.
<{^_^}> [nixpkgs] @volth opened pull request #41359 → perlPackages.Cairo: disable tests → https://git.io/vhCGu
<clacke> It does make a choice and save it, because if I have only one desktop enabled and log in, it remembers that desktop when I add more.
<clacke> displaymanagers.default doesn't seem to have any effect, I guess it only matters for fresh users that don't have any state yet
<clacke> never heard of sddm, are you saying I'd better go with that rather than slim?
<tilpner> I'm using sddm, but I only switched from slim due to the common "don't use it, it's not maintained" warnings
<tilpner> But I never had trouble with either
<clacke> WP for SDDM says KDE and LXQt chose it as their default, so it must be good enough for me.
<tilpner> I'm also not saying that others don't allow you to pick a session
<Plato[m]> How do I install texlive in nix?
<Plato[m]> nix-shell -p texlive just says it cannot coerce a set to a string.
<tilpner> Plato[m] - Try with texlive.combined.scheme-medium
<Plato[m]> Ahhh, I see. Thanks tilpner!
<tilpner> There's also scheme-full, but I tend to not succeed in installing that
<clacke> let me see which texlive I have here
<clacke> I wanted context (texexec)
schjetne has quit [Ping timeout: 256 seconds]
<clacke> I used texlive.combined.scheme-context
<clacke> Simply for the PDF manipulation functionality, I wanted to make an a5a4 booklet.
schjetne has joined #nixos
erasmas has joined #nixos
<hodapp> hmm. maybe I should use cachix to avoid doing my STUPID FUCKING BUILDS THAT MIX C++ AND CUDA AND TAKE AGES
clacke has left #nixos [#nixos]
* hodapp shouts loud enough that OpenCV hears
YaZko has quit [Quit: YaZko]
ikitat has joined #nixos
ixxie has joined #nixos
spion- has quit [Ping timeout: 268 seconds]
ixxie has quit [Client Quit]
szicari has joined #nixos
ikitat has quit [Remote host closed the connection]
<jophish> Hi all, I've just got a raspberry pi, however I have no USB keyboard or serial setup here
endformationage has joined #nixos
ikitat has joined #nixos
<jophish> I guess I'll have to build a root image with an ssh connection set up
schjetne has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #35482 → init bulletml and rrootage → https://git.io/vAwI4
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/vhCCh
<jophish> Dezgeg: Do you happen to have a nix expression handy for building an aarch64 sd image?
<samueldr> jophish: which raspberry pi?
<Mic92> jophish: nix-build nixos -I nixos-config=nixos/modules/installer/cd-dvd/sd-image-aarch64.nix -A config.system.build.sdImage
<Mic92> according to the header of the same file
<samueldr> (as 1 and 2 wouldn't use aarch64)
<jophish> Mic92: yeah, just saw that now :)
<jophish> samueldr: It's a 3
<{^_^}> [nixpkgs] @jtojnar closed pull request #22693 → [WIP] cairocffi: 0.7.2 -> 0.8.0 → https://git.io/vDwii
<samueldr> then you're good to go
<jophish> sadly I no longer have access to my aarch64 server
<samueldr> except I think you'll need an aarch64 machine
<jophish> perhaps I can rent one for an hbour
<samueldr> qemu may work
<jophish> hour*
<Mic92> jophish: you may ask for access on the aarch64 community server.
<jophish> that's a good idea, I'd discounted it because it's super slow, but I think everything I'll need is in the cache
<hodapp> hm. I have an NVidia Jetson TX1, and that's aarch64, but no NixOS on it
<jophish> I'll see if qemu will work
<Mic92> qemu might be very slow, but if you have time ...
v0latil3_ has joined #nixos
<jophish> well, I'm just changing the ssh config file, everything else should be fine to get from the cache I think
v0latil3 has quit [Read error: Connection reset by peer]
<samueldr> if it's qemu system, all operations will be emulated to the hardware level, so yeah, slower, still better than compiling
YaZko has joined #nixos
<samueldr> qemu-user would probably be faster
<{^_^}> [nixpkgs] @volth closed pull request #41359 → perlPackages.Cairo: disable tests → https://git.io/vhCGu
<{^_^}> [nixpkgs] @cillianderoiste pushed to linkchecker-use-default-requests « linkchecker: use the default requests package »: https://git.io/vhCWN
<samueldr> that's what I was going to link to you :)
<samueldr> YMMV, if it does work please share back
<jophish> I used it quite a bit a couple of years ago actually with mixed success
<clever> qemu-user would allow you to nixos-enter and then nixos-rebuild boot to apply config changes
lonokhov has quit [Quit: WeeChat 2.0]
<clever> ive used it to chroot into rasbian images before i discovered nixos
<jophish> oh, this machine isn't nixos either. your qemu thing used to work on ubuntu
<clever> jophish: https://github.com/cleverca22/crosspiroot is the older thing i made
<samueldr> not nixos :o the horror
<ikitat> BXgY5ihxZz2teGwW1ICM
<ikitat> woops
<samueldr> though in theory, you could look at any old "qemu-user for raspbian under ubuntu" and make it work I think
<clever> ikitat: time to change passwords?
YaZko has quit [Quit: YaZko]
<gchristensen> FWIW I'm hearing some localized reports of the cache being down, if anyone sees issues please run https://gist.github.com/grahamc/df1bb806eb3552650d03eef7036a72ba and send me the results in a PM.
<jophish> samueldr: just for the laptop, everything else is nixos :)
<{^_^}> [nixpkgs] @cillianderoiste opened pull request #41362 → linkchecker: use the default requests package → https://git.io/vhCl2
leat has quit [Ping timeout: 256 seconds]
Ariakenom has quit [Ping timeout: 256 seconds]
tzemanovic has joined #nixos
andi- has joined #nixos
<{^_^}> [nixpkgs] @WilliButz opened pull request #41363 → prometheus-snmp-exporter: 0.9.0 -> 0.11.0 → https://git.io/vhC8D
YaZko has joined #nixos
tzemanovic has quit [Ping timeout: 256 seconds]
robstr has quit [Ping timeout: 248 seconds]
robstr_ has joined #nixos
<{^_^}> [nixpkgs] @orivej merged pull request #41339 → Revert "itstool: 2.0.2 -> 2.0.4" → https://git.io/vhcOA
<{^_^}> [nixpkgs] @orivej pushed commit from @jtojnar to staging « Revert "itstool: 2.0.2 -> 2.0.4" (#41339) »: https://git.io/vhC4b
chreekat has quit [Quit: quitting]
<{^_^}> [nixpkgs] @jtojnar pushed 0 commits to revert-37028-auto-update/itstool: https://git.io/vhCBu
<phry> I just noticed that my /var/run/utmp is incomplete - I'm not seeing any mosh connections there. Could that be nixos-related?
Ariakenom has joined #nixos
alexteves_ has quit [Remote host closed the connection]
matthewbauer has joined #nixos
halfbit has joined #nixos
deepfire` has quit [Ping timeout: 260 seconds]
alexteves_ has joined #nixos
<jophish> fingers crossed
<gchristensen> jophish: w00t
<gchristensen> jophish: wfm fwiw I build a few dozen aarch64 images a week
<gchristensen> though ... not sdcard
<jophish> yeah, I was doing something similar at my previous workplace
ikitat has quit [Remote host closed the connection]
<jophish> I had a pretty nifty setup there. We were programming the ARM chip in a fancy FPGA, I had an expression which would compile our FPGA netlist, u-boot, the pre u-boot step (was a horrible system to boot) and a nixos system into an sdimage
alexteves_ has quit [Remote host closed the connection]
<jophish> oh, and also cross compile some Haskell program and a kernel driver for the FPGA logic
<jophish> nix made that so so painless
fishi has joined #nixos
alexteves_ has joined #nixos
<jophish> well, after the initial pain that is
<clever> jophish: nice
<jophish> gchristensen: what are all the arm64 images for? packet.net still?
<clever> jophish: how did you get the fpga netlist building under nix?
<hodapp> jophish: working with Clash here or what? Reduceron?
<clever> jophish: the last time i did fpga stuff, the tools took up something like 20gig, and i dont see nix playing well with a 20gig storepath
<hodapp> ewww
<jophish> clever: we were packaging quartus in nix, yeah, some tens of GB derivations...
<hodapp> but par for the course with FPGA stuff
<hodapp> unfortunately
<jophish> the quartus installation was a nightmare, ~25GB for the tarball, ~30GB for the unpacked tarball and ~30GB for $out
<jophish> all of which had to be there at the same time
<jophish> and heaven help you if that derivation changes and our poor hydra server tried to serve these images
deepfire` has joined #nixos
<clever> only 1 of my machines has enough space for that, lol
<jophish> nix could do with torrent like sharing of packages on a LAN
hlolli_ has quit [Remote host closed the connection]
<jophish> hodapp: yeah, nearly everything was in Clash
<jophish> however the haskell we were cross compiling was actually to interface between the ARM's ethernet port and the FPGA's memory
<jophish> via that kernel module
<jophish> although iirc I ended up rewriting that part in C++
atu has joined #nixos
atu has quit [Changing host]
atu has joined #nixos
<jophish> it wasn't *really* a haskell suitable task
atu is now known as adamt
<clever> jophish: ive had plans to do something similar many years ago, but i didnt have any fpga's with a hardcore, so i was going to abuse an rpi
<jophish> clever: I don't think that the quartus install was ever watertight, I'm certain that it was snaffling libraries from the Ubuntu machine it was running on
<clever> jophish: my plan was to turn the fpga into an ethernet card, and then write a custom SPI based driver for it on the rpi
<jophish> clever: I think that the latest arduino will have a similar setup
<adamt> Given a path foo=/nix/store/foo/bar, if I use nix-serve, what will be the URI for foo/bar?
<clever> and then have some out of band traffic for other fpga stuff
<clever> adamt: hash.narinfo and hash.nar.xz, for /nix/store/hash-foo
<jophish> clever: ethernet is a whole can of worms :)
<clever> jophish: my general plan, was to capture ~70mbit worth of data with an fpga, and shove it out ethernet
schjetne has joined #nixos
<adamt> clever: Ah, so the raw files can't be accessed that way? Then i'll copy them to a www-root (it's files for pxe boot)
<clever> the arm wasnt required to be in the loop, it was just to turn things on/off
<gchristensen> jophish: yeah, lots of testing
<jophish> At one point (before we started moving data through the ARM) I did the FPGA ethernet thing with some simple packet protocol
fishi has quit [Quit: leaving]
<clever> adamt: yeah, nix-serve just shares the whole directory as a .nar.xz
<jophish> It required writing some small CPU for the packet handling logic
<clever> adamt: this is how i run my pxe booting
<jophish> it was a whole load of fun to write, and was very useful at the time, however there are zero regrets moving over to DMAing memory from some Linux chip
<adamt> clever: I think you showed me already, or somebody else did. :p
<clever> jophish: i had partially implemented dhcp in verilog before deciding to use an ARM
gmarmstrong has quit [Quit: Quit]
<jophish> thoughtpolice: Are you still using Nix over there? Is the Quartus derivation situation any different?
<jophish> clever: you should get on the Clash train before you lose your marbles
<clever> jophish: i havent done any fpga stuff since getting into nixos and haskell
<adamt> clever: I just got this silly idea that i want to do; i want to create my netboot media on demand, so that instead of specifying an kernel and initrd for a server, i'll basically point to the servers config, and build it while getting iPXE to sleep and retry until it's done.
<thoughtpolice> Yeah, still on Nix ofc, upgrading soon! No, BSPs are still a giant pain in the ass, of course
<clever> adamt: see the boot.php file in the example i linked above?
<clever> adamt: that file receives the mac of the machine in the GET params, and it could just nix-build something on the fly, then respond with the path to the result
<clever> adamt: replace with a server-side scripting language of your choice
<jophish> thoughtpolice: I should probably write up all that BSP generating stuff before I forget it all, it was a pain to have to decipher from the "tutorials"
<jophish> how's things overall anyway?
<thoughtpolice> jophish: I do have an scheme of how to make Quartus less of a problem by trading off a little reproducibility, though -- install Quartus in a VM, on a qcow image file. Put the qcow in the store and track that. and have a Nix express the build in terms of booting QEMU and mounting a path
<jophish> oh my god
<thoughtpolice> Then you also don't have to worry about e.g. minor bumps to tools causing a huge cascade
<thoughtpolice> And it means we could use NixOS
<jophish> that's a really good solution given the constraints of the problem
<thoughtpolice> Things are going pretty good though! I got to use Yosys recently instead too :D
<jophish> thoughtpolice: one big loss is hard linking the quartus files however
<jophish> perhaps you could, instead of storing qcow2, store a root fs
<jophish> and chroot into that for the build
jperras has quit [Quit: WeeChat 2.1]
<thoughtpolice> Permissions would be weird though due to the store.
<jophish> (or whatever container tech is the soupe du jour)
<thoughtpolice> But now we also have all these new store abstractions in Nix 2.0
<thoughtpolice> .... qcow2 files as a store?!?!?!?!?!
<johnw> thoughtpolice: Docker uses them
<jophish> You're targeting lattice chips now?! Or doing some verification or asic work?
<thoughtpolice> ASIC estimate stuff. Really though we should just abandon VHDL and use Verilog and Yosys all the time :D
<thoughtpolice> I'd be interested to see how Yosys handles an RTL design of that size...
<jophish> thoughtpolice: I don't think any lattice chips register on the scale of things you guys are doing though
<jophish> unless you're moving properly over to asic work
<thoughtpolice> johnw: Yeah, so one issue jophish and I had was that we could install this horrid 50GB monster into the store. But every new minor update was like 50GB. However, hard linking would save us like 99% of that
truth has joined #nixos
Guest73580 has joined #nixos
<Guest73580> hello?
<samae> nice work domenkozar (with cachix)
<johnw> I imagine you turned on store optimization then?
<thoughtpolice> jophish: Yosys has had a preliminary Intel techmap backend for a while but it's pretty rough. Someone is using it for Arria10, though
<{^_^}> [nix] @dtzWill opened pull request #2200 → download.cc: fix readCallback return type (int -> size_t) → https://git.io/vhCuk
<thoughtpolice> A lack of simulation models for some of the hard IP hurts, of course...
<Guest73580> I recently installed NixOS and I'm loving it, but having trouble with teamspeak
<domenkozar> samae: thanks!
<samae> At installation step of cachix, I always get a “warning: ignoring untrusted substituter 'https://cachix.cachix.org'”
<samae> even though I provide the public key, is it the right one?
<thoughtpolice> johnw: Well, I'd like to move that software into a .qcow2 image file, like I said, and have the Nix expression instead boot a VM. Why? Because that horrible 50GB software package is never going to work on NixOS, unfortunately
<jophish> thoughtpolice: I didn't know that, that's super cool!
<thoughtpolice> (EDA tools are like..... really hostile to anything that isn't RHEL or Ubuntu LTS)
<domenkozar> samae: that's nix UX, it should be saying "ignoring cachix.cachix.org because you're not a trusted user"
<jophish> domenkozar: what's cachix? sounds interesting?
<domenkozar> jophish: http://cachix.org
earldouglas has joined #nixos
<thoughtpolice> johnw: But we won't be able to optimize "through" the qcow2 files. They are, after all, just binary blobs as far as Nix knows...
<truth> in ubuntu there is a script that gets called when ip address changes. How can I do the same in nixos?
<jophish> how's it going anyway, domenkozar?
<domenkozar> jophish: pretty good just launched cachix today after 2 months of work
<domenkozar> :D
<samae> Shouldn't it be pulling binaries from cachix instead of building everything (and eventually failing)?
sigmundv__ has quit [Ping timeout: 268 seconds]
<domenkozar> samae: it fails? it will only work if you set "trusted-users = root samae" in /etc/nix/nix.conf
<adamt> clever: That's exacly what i'm going to do (except plug in our own build magic and avoid PHP at all costs. :P)
<samae> aaah, ok, that's why it always failed
YaZko has quit [Quit: YaZko]
<jophish> domenkozar: looks great! a much needed niche in the ecosystem!
<domenkozar> samae: oh it fails?
<adamt> clever: I just hoped i could get away with just serving the nix-store, instead of e.g. linking the results into a www root or something like it
<domenkozar> that's a bug in nix then
<domenkozar> jophish: thanks!
<clever> adamt: you would either need to add a subdir in nginx that shares all of /nix/store/ or setup symlinks in www-root every time you finish a build
<domenkozar> samae: can you paste the whole output?
<adamt> clever: Yup.
deepfire` has quit [Ping timeout: 260 seconds]
<jophish> haha, my sd card reader seems to be broken, so I can't test this image...
<samae> well, it fails for another reason than nix I'm sure (it's more specific to your build of cachix)
<jophish> ah, was just the sd card, let's go!
<domenkozar> samae: can you post the logs somewhere?
<samae> yes, doing that
<johnw> cachix looks very cool
<johnw> i will use this for hnix
<johnw> funny that installing it wants to build like 500 derivations
leat has joined #nixos
Drakonis has joined #nixos
<Guest73580> Is the teamspeak3 client for NixOS confirmed to be broken?
<samae> Guest73580: yes
<samae> fix is in the pipes
<Guest73580> ah ok
<Guest73580> any workarounds I can do for now, or just wait?
<samae> (been broken for 2 months :D)
<Guest73580> lol
<samae> you can: IX_PATH=nixpkgs=https://github.com/symphorien/nixpkgs/archive/7ed15eed532a7d9cf267882d5f935f1b34a04622.tar.gz nix-shell -p teamspeak_client --run ts3client &
<samae> ooops, missing N at the beginning
<samae> domenkozar: with cache it's instant working :D
<samae> of course
<Guest73580> will it need much clean-up if I want to get rid of it?
<Guest73580> i.e. when working regular version comes out
<symphorien> when the shell dies, it vanished
<symphorien> *vanishes
<Guest73580> oh excellent, thanks
<Guest73580> one more question from a noob
<Guest73580> One thing that really irritates me about package management is all the stray files that packages leave everywhere
<Guest73580> e.g. ~/.mozilla for firefox
<Guest73580> is there any way that nix can remove these packages after uninstalling?
<johnw> domenkozar: nice!
<symphorien> not that I know
<clever> Guest73580: the above command stores the paths in /nix/store, and a normal nix-collect-garbage will delete all unused files in there
<symphorien> nix barely touches any file outside /nix and ~/.nix_profile
<Guest73580> clever: ah cheers, wasn't sure if it'd leave any clutter in home
<Guest73580> symphorien: I'd have thought there'd be a way to track files created by packages and remove them afterwards, but I guess it'd be more hassle than it's worth
<samae> teamspeak surely will create files in your home ^^
<clever> Guest73580: nix-shell itself wont, but teamspeak will create ~/.ts3something
<samae> Guest73580: nix cannot really know about these
yenzenz has quit [Ping timeout: 244 seconds]
<Guest73580> ah ok, just something we have to put up with I guess?
<symphorien> Guest73580: export HOME=$(mktemp -d /tmp/blah.XXXXX) might do the trick
winem_ has quit [Ping timeout: 240 seconds]
<Guest73580> devilish
<Guest73580> but then surely some packages may be searching directly in /home/xxx/
<samae> domenkozar: how much do you pay for the hosting? How can I contribute to these costs if I'm using cachix on a regular basis?
<domenkozar> not yet, I plan to setup some way to donate
<domenkozar> first month is on me, then we'll see the costs :)
<samae> You're an angel :D
<jophish> hmm, rPi doesn't seem to be showing up on the network, I'll have to debug tomorrow
Guest73580 has quit [Quit: Lost terminal]
<jophish> Aha, I do have a TV, so I can at least see it failing
<{^_^}> [nixpkgs] @xeji merged pull request #41363 → prometheus-snmp-exporter: 0.9.0 -> 0.11.0 → https://git.io/vhC8D
<{^_^}> [nixpkgs] @xeji pushed commit from @WilliButz to master « prometheus-snmp-exporter: 0.9.0 -> 0.11.0 (#41363) »: https://git.io/vhC2V
<jophish> seems to call init, then "config file not found" looking in /extlinux
Guest70xxx has joined #nixos
<clever> jophish: sounds like a bootloader issue
tzemanovic has joined #nixos
<Guest70xxx> Hi, Teamspeak guy from earlier. The command to run teamspeak didn't work as it is has an unknown licence, refusing to evaluate
<Guest70xxx> yet I have allowUnfree = true; in my configuration.nix
<Guest70xxx> any ideas?
<clever> Guest70xxx: configuration.nix doesnt effect nix-shell
<jophish> clever: looks as though it's missing a broadcom driver, not sure if that's fatal though
<clever> Guest70xxx: you must set it in config.nix as the error tells you
<Guest70xxx> oh I'm actually a moron, you're right
<Guest70xxx> forgot the command wasn't a nixos-rebuild
<clever> jophish: that looks like its failing to find the device tree blobs
<symphorien> Guest70xxx: or export NIXPKGS_ALLOW_UNFREE=1
<jophish> let me check the image
codygman has joined #nixos
freeman42x]NixOS has quit [Ping timeout: 276 seconds]
ikitat has joined #nixos
<{^_^}> [nix] @nlewo opened pull request #2201 → Add a delay before killing the builder process → https://git.io/vhCae
<samae> domenkozar: guess you'll be able to collect all the secrets written to the world readable stores :D
<Guest70xxx> perfect, it's allowing it now
schjetne has quit [Ping timeout: 240 seconds]
deepfire` has joined #nixos
<Guest70xxx> fingers crossed for teamspeak
kai_w has quit [Quit: kai_w]
tzemanovic has quit [Ping timeout: 276 seconds]
<Guest70xxx> any suggestions for any libre alternatives to teamspeak? Preferably something my friends and I can use as a messenger as well
<Guest70xxx> I've seen riot.im but I'm not a big fan of electron
<jophish> clever: indeed, the blob it's looking for is not present
<clever> Guest70xxx: mumble/murmur
<jophish> bcm203x-rpi-other.dtb
<Guest70xxx> clever: I did have a look at that, does look pretty promising. I'll see if we can rent a server cheaply
<Guest70xxx> ah the teamspeak solution didn't work
<acowley> How can I see the size of a closure in the store?
<{^_^}> [nixpkgs] @Anton-Latukha opened pull request #41365 → [WIP] Meson builds, fetchFromGitLab for GNOME ones → https://git.io/vhCa0
<jophish> not sure what it's doing looking around in pxelinux
<clever> acowley: one min
<jophish> acowley: nix-store -qR /nix/store/path | xargs du -s | cut -f 1 | xargs | sed -e 's/ /+/' | bc
<acowley> nix-store --query --size ?
<acowley> I was hoping `nix copy` could take a --dry-run flag
<clever> acowley: i tend to use `du --max=1 -hc $(nix-store -qR /run/current-system) | sort -h`
<clever> --query --size will only show the size of a single dir, not the entire closure
<clever> oops, you want --max=0 on the above
<clever> du --max=0 -hc $(nix-store -qR /run/current-system) | sort -h
<codygman> my new laptop I installed nixos on is stuck trying to start display manager but failing (probably graphics driver) and just flashing on and off. I tried ctrl-c but that doesn't work. Is there any way to fix this besides reinstaling without display manager enabled, instaling graphics drivers, then resinstaling display manager?
<clever> codygman: if you wait a few minutes, does the flashing stop?
<infty> Hi, could someone please explain how I can make a constructor associative?
<acowley> Thank you jophish and clever!
<infty> i.e given data Foo = Bar | X Foo Foo deriving Eq, I would like Bar `X` (Bar `X` Bar) == (Bar `X` Bar) `X` Bar to hold.
<jophish> ah, that sed command should have a 'g' in
<jophish> much less nice than clever's :)
<clever> jophish: the -c in du tells it to output a total for you
<clever> and | sort -h makes sure the total is last
<acowley> It looks like if I wanted to upload the main AMD ROCm user-land stuff to Domen's new cachix service will be between 2 and 3 GB
<acowley> But I don't know how to figure out the size of the kernel stuff
<acowley> I'd like to do it at some point so other people can get up and running easily as I think it'd be an (admittedly niche) feather in the NixOS cap.
<clever> acowley: the |sort -h should also tell you what the biggest paths are, so yu can try and trim the fat
<infty> (Sorry, I thought I was in #haskell, please ignore my previous question)
<acowley> clever: gcc and llvm are the whales for me
<acowley> clever: and I think people have worked on their size
<codygman> clever: It doesn't seem to stop
<clever> acowley: in general, gcc and llvm shouldnt be in the runtime closure, use nix why-depends to track that down
<acowley> clever: These are compilers
<clever> codygman: does ctrl+alt+f1 do anything?
<clever> acowley: ah
shabius has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<acowley> infty: You can't do that in an automatic way. You'd typically have a `canonicalize` function that left- or right-associates your constructors so that a more rigid Eq instance does what you want.
shabius has quit [Client Quit]
shabius has joined #nixos
<jophish> hmm, the boot partition looks just like it should
<jophish> aside from that missing blob
<jophish> so perhaps when it says "continuing..." it really means "I'll fail later"
<clever> jophish: its trying to network boot when it continues
<jophish> ah
schjetne has joined #nixos
truth has left #nixos [#nixos]
cloud-maingo has joined #nixos
deepfire` has quit [Ping timeout: 245 seconds]
sanscoeur has joined #nixos
sanscoeur has quit [Read error: Connection reset by peer]
sanscoeur has joined #nixos
lsix has quit [Quit: WeeChat 2.0]
<jophish> ah, so perhaps the important line is: stopping nixos-default for failure retrieving fdt
<clever> yeah
<clever> find that file somewhere in the nix store of the sdcard, and copy it to the right path in /boot
<jophish> I don't think it was on there
<jophish> let me check again
<jophish> nope :|
<clever> what files refer to the name?
<Dezgeg> is that the b+ model?
<jophish> Dezgeg: yeah
nyanloutre_2 has joined #nixos
<nyanloutre_2> hi !
schjetne has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @cillianderoiste closed pull request #41362 → linkchecker: use the default requests package → https://git.io/vhCl2
<Dezgeg> right, that won't work until kernel 4.18
<jophish> clever: bcm203 doesn't appear anywhere in /boot
<jophish> Dezgeg: ah
<jophish> Is it worth setting up a 4.18 compile overnight? (qemu)
<nyanloutre_2> I have a problem with my up to date Nixos system : it doesn't boot and throw me in the UEFI
<nyanloutre_2> I have exaclty the same SSD
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/c69cc21338d (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<jophish> oh no, there isn't linuxPackages_4_18
Sonarpulse has joined #nixos
<nyanloutre_2> I would also add that while in the live USB environment I can't see the SSD either and I get an error in dmesg "Identify Controller failed (-4)"
<Dezgeg> yeah, even 4.17 is not released yet
<Dezgeg> (only 4.17-rc7)
<jophish> Do you happen to know if there is a patch I can apply with the relevant change?
<Dezgeg> it might be in linux-next
<Dezgeg> yeah, it is
y0no[m] has left #nixos ["User left"]
<ldlework> infinisil: howdy
<jophish> ok, I'll try replacing the source in linux-testing with a clone from linux-next
<{^_^}> [nixpkgs] @dezgeg pushed 12 commits to master: https://git.io/vhCrW
guillaum2 has quit [Remote host closed the connection]
guillaum1 has quit [Remote host closed the connection]
<Dezgeg> also it needs recent u-boot from the commits I just pushed
<infinisil> ldlework: Yo!
<jophish> on nixpkgs/master?
<Dezgeg> yes
sbdchd has quit [Remote host closed the connection]
<jophish> I'll let you know how I get on :)
<jophish> thanks Dezgeg and clever
<{^_^}> [nixpkgs] @nlewo opened pull request #41366 → dockerTools.pullImage: expose image* attributes → https://git.io/vhCrd
<Guest70xxx> exit
<Guest70xxx> lmao
Guest70xxx has quit [Quit: Lost terminal]
justan0theruser has quit [Ping timeout: 265 seconds]
jperras has joined #nixos
<{^_^}> [nixpkgs] @andir opened pull request #41367 → nixos/mpd: allow services.mpd.dbFile to be null → https://git.io/vhCoT
schjetne has joined #nixos
<{^_^}> [nixpkgs] @alexfmpe opened pull request #41368 → Add missing ios triples to bfd → https://git.io/vhCoC
<{^_^}> [nixpkgs] @xeji merged pull request #41337 → haskell.packages.ghcjs.terminfo: Bump version → https://git.io/vhcm4
<{^_^}> [nixpkgs] @xeji pushed commit from @srhb to master « haskell.packages.ghcjs.terminfo: Bump version (#41337) »: https://git.io/vhCo8
justan0theruser has joined #nixos
iqubic has quit [Ping timeout: 260 seconds]
<jophish> Dezgeg: should version, modDirVersion and extraMeta.branch remain at 4.17 for linux-next?
<jophish> I recall having issues with these being incorrectly set in the past
<ldlework> infinisil: how you been?
<Dezgeg> let's see
viric has joined #nixos
alexteves_ has quit [Ping timeout: 244 seconds]
<Dezgeg> it needs to be something like 4.17.0-rc3-next-20180504
<{^_^}> [nixpkgs] @xeji pushed commit from @srhb to release-18.03 « haskell.packages.ghcjs.terminfo: Bump version (#41337) »: https://git.io/vhCo6
matthewbauer has quit [Ping timeout: 260 seconds]
<Dezgeg> for a version of 4.17-rc3
<infinisil> ldlework: Good :)
<ldlework> infinisil: Did I hear that you are actively working to improve the znc service module?
<ldlework> I wouldn't mind helping you if that's true.
<ldlework> Not that you need my help for anything.
sbdchd has joined #nixos
<infinisil> Heh yeah I am, well I got started anyways, but have been busy lately, so I didn't continue. But now I got time again
<infinisil> ldlework: This is what I've done for now: https://github.com/Infinisil/nixpkgs/commits/better-znc-module
matthewbauer has joined #nixos
<jophish> Dezgeg: however modDirVersion should remain at 4.17.0-rc7 and extraMeta.branch at "4.17"?
<jophish> I've got a build going with a few combinations, so we'll see :)
<Dezgeg> no, modDirVersion is the "4.17.0-rc3-next-20180504" one
asuryawanshi has joined #nixos
<jophish> ah
<jophish> thanks
<ldlework> infinisil: is this semanticToString some kind of nested-attrset-to-znc-style-xml converter?
<infinisil> Indeed, that's exactly what it is
<jophish> time to go to sleep now, thanks again for the help
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #41320 → Switch Nixpkgs to using more NetBSD stuff for MUSL → https://git.io/vhnWf
<{^_^}> [nixpkgs] @Ericson2314 pushed 6 commits to master: https://git.io/vhCKG
Sonarpulse has quit [Remote host closed the connection]
<ldlework> infinisil: maybe attrsToZncConf or something?
<ldlework> :D
<infinisil> ldlework: yeah
asuryawanshi has quit [Remote host closed the connection]
<ldlework> infinisil: my largest gripe with the current ZNC module is that ZNC supports multiple login-users but the module only supports one.
<infinisil> Yeah, this change should make that work
asuryawanshi has joined #nixos
<infinisil> Do you feel comfortable writing nixos modules?
<ldlework> Nope, but I do it anyway
<{^_^}> [nixpkgs] @xeji merged pull request #41351 → coqPackages.contribs.aac-tactics: enable for Coq 8.7 and 8.8 → https://git.io/vhcQx
<{^_^}> [nixpkgs] @xeji pushed commit from @vbgl to master « coqPackages.contribs.aac-tactics: enable for Coq 8.7 and 8.8 (#41351) »: https://git.io/vhCK2
matthewbauer has quit [Read error: Connection reset by peer]
<infinisil> Hmm, there are a lot of options that need to be made backwards compatible, maybe you could help with that if you want
<infinisil> That's the main thing left to do i think
<ldlework> Backwards-compatible in what sense?
truthadjustr has joined #nixos
matthewbauer has joined #nixos
matthewbauer has quit [Remote host closed the connection]
<truthadjustr> how do we select which network to connect to? `wpa_cli select_network 2` is not working for me
<ldlework> A big problem for me in contributing to nixpkgs development is that I'm still pretty confused about how to use the stable channel for most things, but then maybe have the unstable channel for some packages, and for some other packages use my own fork on nixpkgs, etc
<infinisil> ldlework: The new znc module will have a single option representing the config with an attrset, which would be completely sufficient for setting everything, but the current module has a lot of extra options that will need to be converted to the single-attr-as-config style
<clever> truthadjustr: what does the journal for wpa_supplicant say?
grp has joined #nixos
<ldlework> infinisil: how do you cope with multiple user blocks?
<ldlework> is the user attribute a list or something?
slack1256 has joined #nixos
<ldlework> Like I still only see confOpts.userName
<infinisil> ldlework: that will be just 'User.foo = { ... }; User.bar = { ... };' in the new attrset style
matthewbauer has joined #nixos
<ldlework> I see.
<infinisil> The old options i haven't touched at all
<infinisil> Yet
<grp> How faster is nix 2.0?
<truthadjustr> clever: does not move a bit
<truthadjustr> clever: nothing
<infinisil> ldlework: Wanna try help with the option adjustements? Or testing would also be really helpful
<clever> truthadjustr: try running wpa_cli without args, and use the repl to run select_network and status
mizu_no__ has joined #nixos
<clever> truthadjustr: then you should see some events and what its doing
iyzsong has quit [Ping timeout: 276 seconds]
peacememories has joined #nixos
<ldlework> infinisil: Do you like this idea? I'll help with testing, and you can help me understand the implementation, and maybe I will blog up a case study.
<truthadjustr> clever: same.. log does not move
<clever> truthadjustr: does it print anything to the wpa_cli repl?, what does status say?
<{^_^}> [nixpkgs] @andir merged pull request #41367 → nixos/mpd: allow services.mpd.dbFile to be null → https://git.io/vhCoT
<{^_^}> [nixpkgs] @andir pushed 2 commits to master: https://git.io/vhC6m
<truthadjustr> clever: wpa_cli prints normally.. yes
<clever> truthadjustr: what does it print when you run select_network 2?
<truthadjustr> it printed OK
<{^_^}> [nixpkgs] @andir pushed to release-18.03 « nixos/mpd: allow services.mpd.dbFile to be null »: https://git.io/vhC6s
<ldlework> infinisil: basically, I'm just not sure what you need at the nixlang level, but I can spin up znc instances with nixops real easy :)
<infinisil> ldlework: Sure, thanks! I'll tell you when I'm working on it and what needs testing then
<clever> truthadjustr: what does status say?
<truthadjustr> wpa_state=DISCONNECTED
<jophish> bah, linux-next doesn't compile :(
YaZko has joined #nixos
<clever> truthadjustr: are you able to run wpa-gui?
<truthadjustr> clever: i have no wpa-gui
<clever> truthadjustr: are you sure the ssid and password are correct?
peacememories has quit [Client Quit]
<clever> truthadjustr: does scan_results show the network?
<jophish> will try net-next
_cyril_ has quit [Ping timeout: 268 seconds]
<ldlework> A guide on how to have your NixOS's stable channel, the unstable channel, and a personal nixpkgs fork all working together would be super handy.
<truthadjustr> clever: 'wpa_cli list_network' does
_cyril_ has joined #nixos
<clever> truthadjustr: it can only connect to networks that are in scan_results
reinzelmann has joined #nixos
<{^_^}> [nixpkgs] @orivej pushed 183 commits to staging: https://git.io/vhC6P
<truthadjustr> clever: 'wpa_cli scan_results' ?
<clever> truthadjustr: run wpa_cli without args, then run scan and scan_results
devx has quit [Quit: . .. ...]
<truthadjustr> clever: i did.. and it found list of networks
<truthadjustr> but when i select.. nothing happens
devx has joined #nixos
<clever> truthadjustr: and youve done the select from the > prompt inside wpa_cli?
<clever> truthadjustr: what happens if you select a different network?
<truthadjustr> yes
<truthadjustr> clever: i re-run, scan/scan_results, and it's empty this time..
<johnw> domenkozar: will cachix appear on Hackage? I'm trying to find a way to install it without using a tarball + nix-env (which is difficult to keep updated)
mizu_no__ has quit [Quit: Computer has gone to sleep.]
<truthadjustr> clever: select_network does nothing
<truthadjustr> clever: so far, the only way for me to change network is to edit /etc/wpa_supplicant.conf and `systemctl restart wpa_supplicant`
schjetne has quit [Ping timeout: 256 seconds]
<clever> truthadjustr: are you able to install wpa-gui?
<clever> truthadjustr: pkgs.wpa_supplicant_gui
<truthadjustr> yes.. installed now
<adamt> Is it possible to disable the (normally very nice) prompt of nix v2 (the one showing progress during build etc.) and get behaviour closer to nix-build? (i'm calling nix build from a script and would just like normal output)
<symphorien> you can still use nix-build
nc_ has quit [Ping timeout: 244 seconds]
<adamt> symphorien: I know, but I'm trying to avoid the old v1 versions of nix tools where possible
<truthadjustr> clever: i see 2 sockets in /run/wpa_supplicant/ folder.
knupfer has quit [Remote host closed the connection]
<truthadjustr> clever: wlp3s0 and p2p-dev-wlp3s0
<adamt> nix build .. -v also prints a line every time something is done, but it just also shows the prompt
<clever> truthadjustr: you may need to tell wpa_cli to use wlp3s0
toppler has joined #nixos
peacememories has joined #nixos
<truthadjustr> clever: could not connect to wpa_supplicant
<clever> truthadjustr: try running wpa-gui or wpa_gui
<maurer> truthadjustr: Connecting to that socket requires root, if you weren't
<maurer> e.g.
<maurer> sudo wpa_cli -i wlp3s0
<maurer> or, sometimes does
<maurer> (maybe it's not your problem though)
truthadjustr has quit [Read error: Connection reset by peer]
truthadjustr has joined #nixos
<truthadjustr> clever: working now. `wpa_cli -g /run/wpa_supplicant/wlp3s0` did the trick.. i am able to switch networks now. Should I rm the other socket?
<clever> truthadjustr: it will create the other one automatically every time you boot
periklis` has quit [Ping timeout: 260 seconds]
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 256 seconds]
Mateon3 is now known as Mateon1
viric has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @jbaum98 opened pull request #41369 → make-wrapper.sh: Add --export flag → https://git.io/vhCPl
asuryawanshi has quit [Read error: Connection reset by peer]
asuryawa_ has joined #nixos
schjetne has joined #nixos
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @jbaum98 opened pull request #41370 → pass-audit: init at 0.1 → https://git.io/vhCPX
peacememories has joined #nixos
owickstrom has joined #nixos
peacememories has quit [Client Quit]
<phry> can someone give me a hint on how to make a binary in a derivation setuid? nixpkgs.libutempter/lib/utempter/utempter needs to have the setuid bit for it to be able to update /var/run/utmp
<phry> (or, if there's another, more NixOS way for that, what would be it?)
szicari has quit [Quit: Leaving.]
<{^_^}> [nixpkgs] @jbaum98 opened pull request #41371 → Pass import fix → https://git.io/vhCPA
<symphorien> phry: there can't be setuid files in the store; https://nixos.org/nixos/options.html#security.wrappers is the right approach
schjetne has quit [Ping timeout: 244 seconds]
<phry> symphorien: thanks, looking into it
sbdchd has quit [Remote host closed the connection]
<neonfuz> So I've been getting some errors for a while that seem incorrect
<neonfuz> I get "warning: Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring" despite that path existing
<neonfuz> and I get "trace: warning: You don't have `system.nixos.stateVersion` explicitly set. Expect things to break." despite having that explicitly set in my configuration.nix
<toppler> neonfuz: +1 for the questions. I'm also getting
logzet has quit [Remote host closed the connection]
<neonfuz> I would like to try to use 'nix-instantiate --eval ...' to check system.nixos.stateVersion, but idk exactly how to check that
ikitat has quit [Ping timeout: 240 seconds]
<neonfuz> I'm really just shooting in the dark here but I tried "nix-instantiate '<nixos>' --eval -A system" but that gives me the system string, not a set containing stateVersion
<LnL> neonfuz: nix-instantiate --eval '<nixpkgs/nixos>' -A config.system.stateVersion
<neonfuz> ah thanks
<LnL> there's no nice way to get the unquoted value without using the unstable nix 2.0 cli tho
<neonfuz> I get 'error: The option `system.stateVersion' is used but not defined.'
truthadjustr has quit [Read error: Connection reset by peer]
sbdchd has joined #nixos
szicari has joined #nixos
<neonfuz> despite having the line " system.nixos.stateVersion = "17.09";
<neonfuz> oops, well that line in my configuration.nix ^ lol
truthadjustr has joined #nixos
<LnL> :p
YaZko has quit [Quit: YaZko]
Lisanna has joined #nixos
YaZko has joined #nixos
<toppler> Any info on the ".nix-defexpr/channels' does not exist stuff?
<Lisanna> Wow. If you delete the .nix file that a nixops deployment depends on, you're screwed. It won't even let you delete it. You have to put it back the way it was.
<Lisanna> won't even let you delete the deployment*
<ben> What happens if you replace it with an empty {} and apply that?
ikitat has joined #nixos
<phry> Lisanna: ben beat me to it. Happened more than once for me )
<Lisanna> ben phry that worked. that's so dumb
YaZko has quit [Client Quit]
jD91mZM2 has quit [Quit: WeeChat 2.0]
<Lisanna> oh there's even a pull request that fixes that problem that's been open for a month and a half
<Lisanna> <_<
<phry> symphorien: so wrapping doesn't help me on it's own, as libutempter is hardcoded against /usr/lib/utempter/utempter *sigh* (yes, that's in nixpkgs..)
<phry> I would have suspected that patchelf would be my friend here, but apparently not - do you have a pointer on where I could start on that?
<neonfuz> toppler: no idea :/
<symphorien> patch the source
<Lisanna> phry unshare is your friend
<phry> symphorien: thx. was fearing as much. this is quite the ordeal ^^
<phry> Lisanna: unshare?
<Lisanna> plus buildFHSUserEnv
ikitat has quit [Ping timeout: 256 seconds]
<phry> Lisanna: do you have an example in nixpkgs that goes that way?
<Lisanna> phry no, but you can run a program in unshare to manipulate its view of the filesystem
<Lisanna> uses linux process namespaces
<phry> Lisanna: yes, found it in the nix manual.
<Lisanna> use wrapProgram/makeWrapper to wrap the executable to call it with unshare or something
<Lisanna> buildFHSUserEnv does a similar thing, but is more limited... if you need a very specific path, I'd go with unshare
<phry> I guess I should go a step back, maybe someone has a completely different approach for me:
<phry> I started out because I wanted to check if a mosh connection was still active. Someone at #mosh pointed me to `who`, which sould show who is logged in. who uses /var/run/utmp, which is not updated by mosh. Mosh would require libutempter for that. Libutempter has one binary that would need to be executed as suid. The path to that binary is hardcoded.
<phry> Before I go further down that rabbit hole: am I missing a quick fix along the way?
truthadjustr has quit [Read error: Connection reset by peer]
<symphorien> imo, it is easier to have nix patch the hardcoded path to /run/wrappers/libutempter or so
tmaekawa has joined #nixos
truthadjustr has joined #nixos
<symphorien> and it would fix everything which uses libutempter without having to wrap any program using libutempter
<phry> guess that makes sense.
ikitat has joined #nixos
<truthadjustr> `wpa_cli -g /run/wpa_supplicant/wlp3s0 -a /home/user/action.sh` how can i intercept the ip address assignment? i'm not getting any at the point of invoke yet...any tips?
halfbit has quit [Ping timeout: 276 seconds]
<truthadjustr> i don't want to pull
ikitat has quit [Ping timeout: 240 seconds]
<neonfuz> any news on when nixpkgs is gonna get emacs 26?
<domenkozar> johnw: yes once servant 0.14 is out
<domenkozar> hopefully folks at zurihac don't add too much open PRs :P
<neonfuz> oh wait, nm it looks like there it is
MichaelRaskin has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #41353 → gnome2.gtksourceview: fix build on darwin → https://git.io/vhcbY
<{^_^}> [nixpkgs] @xeji pushed commit from @vbgl to master « gnome2.gtksourceview: fix build on darwin (#41353) »: https://git.io/vhCyW
sir_guy_carleton has joined #nixos
bennofs has joined #nixos
vaninwagen has joined #nixos
<domenkozar> johnw: why not using the instructions I gave? right now there are no releases, but then you can switch to a tag
<johnw> domenkozar: well, I tried, but it wants to build hundreds of packages to install that single utility, all the way down to the system libs
<johnw> domenkozar: so I'd rather try to build it in the context of my existing nixpkgs, since what you're adding (a pair of Haskell projects) should be very small
<johnw> i tried to do it from src, but it wants versions of things that nixpkgs-unstable doesn't have yet, so I finally gave up and will wait a bit for the world to catch up
truthadjustr has quit [Quit: leaving]
<domenkozar> johnw: it should be using the binary cache as long as your nix user is trusted
<johnw> it used the cache for nothing, and my user is definitely trusted
<johnw> trustedUsers = [ "johnw" "@admin" ];
<phry> symphorien: I've got it to work. https://pastebin.com/y2rdXVfZ The question is now: Is this something I should commit upstream to nixpkgs? Those changes _are_ useful in my eye, but they only work when the user adds the security wrapper.
<domenkozar> johnw: nix-env --version?
tmaekawa has quit [Quit: tmaekawa]
<domenkozar> you need at least 2.0.1
asuryawa_ has quit [Remote host closed the connection]
<johnw> nix-env (Nix) 2.1pre6148_a4aac7f
<johnw> i'm using nixpkgs-unstable as of a couple hours ago
<domenkozar> maybe Nix unstable lags behind 2.0.x :)
<domenkozar> but 2.0.1 shipped a fix that got trusted-users to work
asuryawanshi has joined #nixos
YaZko has joined #nixos
<domenkozar> and be able to user extra binary caches
Ariakenom_ has joined #nixos
<domenkozar> use*
<johnw> I also added your binary caches to my system config
v0latil3 has joined #nixos
<johnw> but even if the cache works, it's still installing a TON of stuf that needn't be duplicated
camsbury_ has joined #nixos
<johnw> why it wants to reinstall some of the apple frameworks is beyond me
<LnL> it uses a pinned nixpkgs
<johnw> ah
<symphorien> phry: yes I thinks so. Anyway, if you don't hardcode to the wrapper, it does not work at all. So the user may or may not create the wrapper, but the situation won't be worse. gksu does it this way: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/libgksu/default.nix#L59-L61 Maybe leave a not in the longdescription of the package to say that the wrapper is needed.
Ariakenom has quit [Read error: Connection reset by peer]
v0latil3_ has quit [Read error: Connection reset by peer]
camsbury has quit [Read error: Connection reset by peer]
owickstrom has quit [Remote host closed the connection]
owickstrom has joined #nixos
<elvishjerricco> Is there a nix expression for building the android kernel?
<hodapp> just the kernel?
<hodapp> or the whole system
<phry> symphorien: I could also add the wrapper to the `programs.mosh` module (maybe as a toggleable option)
_cyril_ has quit [Ping timeout: 240 seconds]
<symphorien> what do you mean ?
<elvishjerricco> hodapp: Just the kernel. What do you mean by "whole system"?
Akii has quit [Ping timeout: 260 seconds]
<elvishjerricco> You'd have to choose an android distro to have a "whole system" to talk about, right? ;)
<hodapp> elvishjerricco: it's only things like AOSP that I'm aware of there
Akii has joined #nixos
schjetne has joined #nixos
YaZko has quit [Quit: YaZko]
<elvishjerricco> I'm mildly interested (in the extreme long term) in eventually getting a NixOS android distro. Seems like android doesn't have any opinions that get in the way of NixOS.
<phry> symphorien: programs.mosh.enable=true; already modifies the system firewall, I could also make it add the suid wrapperfor utempter. Maybe with something like programs.mosh.withSuidWrappers = true;
YaZko has joined #nixos
<symphorien> ah right
<symphorien> nice idea
_cyril_ has joined #nixos
ixxie has joined #nixos
<hodapp> elvishjerricco: unless "needs a build system larger than your OS" is an opinion
<hodapp> that may be the first nut to crack
<elvishjerricco> hodapp: Admittedly, I know next to nothing about building android. What exactly do you mean by that?
<hodapp> elvishjerricco: that it has a ginormous build system that is very likely custom to the task
<elvishjerricco> hodapp: Hm. That's probably workable, though.
<{^_^}> [nixpkgs] @xeji closed pull request #41295 → adapta-kde-theme: init 2018-05-12 → https://git.io/vhZtW
<hodapp> elvishjerricco: it's theoretically possible, but disentangling things of that size can be quite an undertaking
<elvishjerricco> hodapp: So, circling back to my original question, I guess this means there does not already exist an expression for building the kernel? :P
<hodapp> don't believe so.
<{^_^}> [nixpkgs] @xeji merged pull request #41217 → adapta-kde-theme: init at 20180512 → https://git.io/vh3Rt
<{^_^}> [nixpkgs] @xeji pushed commit from @tadfisher to master « adapta-kde-theme: init at 20180512 (#41217) »: https://git.io/vhC9i
<{^_^}> [nixpkgs] @orivej merged pull request #41324 → procps-ng: 3.3.14 -> 3.3.15 → https://git.io/vhnwC
<{^_^}> [nixpkgs] @orivej pushed commit from @xeji to staging « procps-ng: 3.3.14 -> 3.3.15 (#41324) »: https://git.io/vhC9H
<{^_^}> [nixpkgs] @xeji closed pull request #41082 → procps-ng: 3.3.13 -> 3.3.15 → https://git.io/vhtRi
mounty has quit [Ping timeout: 240 seconds]
schjetne has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #41346 → opaline: init at 0.3.1 → https://git.io/vhcag
<{^_^}> [nixpkgs] @xeji pushed commit from @vbgl to master « opaline: init at 0.3.1 (#41346) »: https://git.io/vhCHZ
mounty has joined #nixos
tzemanovic has joined #nixos
tzemanovic has quit [Ping timeout: 265 seconds]
palo has quit [Ping timeout: 268 seconds]
phreedom_ has joined #nixos
phreedom has quit [Ping timeout: 250 seconds]
<ixxie> has anybody considered developing infra for deep kubernites integration layer for the Nix Ecosystem?
<{^_^}> [nixpkgs] @matthewbauer pushed 0 commits to matthewbauercros: https://git.io/vhCQ2
<{^_^}> [nixpkgs] @matthewbauer pushed 0 commits to matthewbauercross: https://git.io/vhCQo
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer pushed 0 commits to matthewbauercross: https://git.io/vhCQX
<{^_^}> [nixpkgs] @matthewbauer pushed 0 commits to matthewbauercros: https://git.io/vhCQX
<{^_^}> [nixpkgs] @matthewbauer pushed to master « squashfs: support darwin »: https://git.io/vhCQH
slack1256 has quit [Ping timeout: 245 seconds]
toppler has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
<{^_^}> [nixpkgs] @dtzWill opened pull request #41372 → {g,w}llvm: 1.2.1 -> 1.2.2 → https://git.io/vhC7t
aarvar has joined #nixos
YaZko has quit [Quit: YaZko]
cloud-maingo has quit [Quit: Connection closed for inactivity]
Drakonis has quit [Read error: Connection reset by peer]
asuryawanshi has quit [Ping timeout: 240 seconds]
nuncanada has joined #nixos
nuncanada has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @xeji merged pull request #41271 → p11-kit: 0.23.10 -> 0.23.11 → https://git.io/vhGgW
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to staging « p11-kit: 0.23.10 -> 0.23.11 (#41271) »: https://git.io/vhC53
schjetne has joined #nixos
sanscoeur has quit []
szicari has quit [Quit: Leaving.]
steell has joined #nixos
mjacob has quit [Quit: Reconnecting]
mjacob has joined #nixos
szicari has joined #nixos
i0-dfn has joined #nixos
schjetne has quit [Ping timeout: 260 seconds]
sanscoeur has joined #nixos
hellrazor has joined #nixos
szicari has quit [Quit: Leaving.]
spear2 has joined #nixos
<jtojnar> AntonLatukha[m]: thanks for working on the meson porting
ThatPako has joined #nixos
<ThatPako> Any idea why `pkg-config` can't find openssl on nixos?
<{^_^}> [nixpkgs] @xeji merged pull request #41309 → nixos/tests/iftop: fix non-deterministic failure → https://git.io/vhZiW
<{^_^}> [nixpkgs] @xeji pushed to master « nixos/tests/iftop: fix non-deterministic failure (#41309) »: https://git.io/vhCFZ
<matthewbauer> Hey does anyone know why "driversi686Linux" is being built on aarch64-linux & x86_64-darwin? Shouldn't it just be built on x86_64? https://hydra.nixos.org/eval/1460621?filter=driversi686Linux&compare=1460597&full=#tabs-still-succeed
<clever> ThatPako: how are you using pkgconfig?
<{^_^}> [nix] @shlevy pushed commit from @dtzWill to master « download.cc: fix readCallback return type (int -> size_t) »: https://git.io/vhCF1
<{^_^}> [nix] @shlevy merged pull request #2200 → download.cc: fix readCallback return type (int -> size_t) → https://git.io/vhCuk
freeman42x]NixOS has joined #nixos
<LnL> matthewbauer: the release-libs used by hydra don't care about the current platform, they use meta.platforms
jperras has quit [Ping timeout: 260 seconds]
xeji has joined #nixos
d6e has joined #nixos
<matthewbauer> LnL: but should it be built multiple times? since it has the same system can't we save some cpu time by only building it once?
magnetophon has quit [Ping timeout: 260 seconds]
Lisanna has quit [Quit: Lisanna]
<{^_^}> [nixpkgs] @dtzWill pushed 3 commits to master: https://git.io/vhCb5
<{^_^}> [nixpkgs] @dtzWill merged pull request #41372 → {g,w}llvm: 1.2.1 -> 1.2.2 → https://git.io/vhC7t
<LnL> you mean like driversi686Linux.foo vs foo?
robstr_ has quit [Quit: WeeChat 1.9.1]
<clever> matthewbauer: the only time ive seen something being built once in a truely cross-platform way, was when the derivation was simply to unpack and rename some font files, it was flagged as fixed-output, so the build on 1 platform can be used by all others, and nix enforces it building "properly"
civodul has joined #nixos
jperras has joined #nixos
<matthewbauer> yeah I guess the hash must be different but it should be identical for each build. the big problem is it has to rebuild the whole gcc toolchain.
<LnL> matthewbauer: if there are multiple attributes that expose the same drv, hydra creates 2 jobs but they will refer to the same build
<matthewbauer> in this case they're different: /nix/store/sgka76mqphc5ykh8906z97vzd08nmb4r-libva-vdpau-driver-0.7.4.drv vs /nix/store/fdzn89sw5np9dqnilm91icpnjvy936ff-libva-vdpau-driver-0.7.4.drv
<clever> matthewbauer: run nix-diff on those 2 drv files, if you have them locally
<LnL> hmm, I'd expect those to be the same
magnetophon has joined #nixos
<LnL> there's no reason for forceSystem builtins.currentSystem pkgs to be different from pkgs
grp has quit [Quit: box shutting down...]
<{^_^}> [nixpkgs] @xeji merged pull request #41288 → nftables: 0.8.3 -> 0.8.5 → https://git.io/vhGHs
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « nftables: 0.8.3 -> 0.8.5 (#41288) »: https://git.io/vhCNV
marsam has quit []
<averell> matthewbauer: i think the libbsd->netbsd stuff might have broken samba (it has libbsd as direct dep). although i can't find it on hydra.
<{^_^}> [nixpkgs] @xeji merged pull request #41046 → powerdns: 4.1.2 -> 4.1.3 → https://git.io/vhIQi
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « powerdns: 4.1.2 -> 4.1.3 (#41046) »: https://git.io/vhCNy
<{^_^}> [nixpkgs] @xeji merged pull request #41049 → pdns-recursor: 4.1.2 -> 4.1.3 → https://git.io/vhI5M
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « pdns-recursor: 4.1.2 -> 4.1.3 (#41049) »: https://git.io/vhCNH
<ixxie> any data scientists around?
<hodapp> depending on what you mean by the term, sure
<ixxie> or interested in data science
<hodapp> what do you need?
<ixxie> just curious about coordinating packaging effort for a NixOS based data science stack
<ixxie> we are working on Jupyter services atm for example
spear2 has quit [Remote host closed the connection]
<hodapp> hmm, JupyterLab too?
<hodapp> I guess I never thought of notebooks as data science, but just as a hugely useful thing
<ixxie> its like an IDE for data science
<ixxie> in a sense
<ixxie> together with emacs ofc
<ixxie> or some other proper IDE
<hodapp> I mostly thought of it as "derping around, but with network transparency"
<ixxie> I use it to prototype algorithms
<ldlework> Is there any documentation regarding using multiple channels?
<hodapp> and used it like crazy when my big noisy desktop with the GPU would be at home, but I'd be away from home and wanted to still make use of its resources
<ixxie> hodapp: but of course what I am more interested is good coverage of ML, NLP and Dataflow packages and services
<hodapp> I have worked a bit on MXNet and TensorFlow
<hodapp> mostly to find excuses to cuss at them
<ixxie> hodapp: we have a Jupyterhub/lab server at the office for that sort of thing
<d6e> just a workflow question, but how do people typically get documentation about the builtin functions? Is there any sort of help() or man like system? I've been relying on the nix manual so far, but I guess I'm wondering if there's any builtin documentation?
<hodapp> d6e: cripes, let me know too when you find out
<hodapp> usually I look at Nix, NixOS, and Nixpkgs manual online
<ixxie> ditto
<thoughtpolice> We currently do DL training/iteration and use Nix, but currently it's more or less ancillary (the work is DNN related but it's not model training, we just have to do it sometimes). OOTB Jupyter modules would be pretty cool imo.
<hodapp> wasn't there a PR on this?
<ixxie> there is a
<ixxie> PR for jupyter
<hodapp> but Nix has been majorly useful for all of my ML/DL stuff, mostly because of how many of the libraries/frameworks are bloody clusterfucks when CUDA is involved
<ixxie> I am hacking a jupyterlab module now but I am stuck with a 404 atm
<thoughtpolice> Yeah, it's pretty convenient. Just as an example, the other day I wanted a trained AlexNet m odel, so I use nix-shell shebangs with pytorch to download pretrained ONNX models in like 2 or 3 minutes tops.
<ixxie> I packaged jupyterhub and ldapauthenticator and hdbscan and wordfreq in the last few months and I hope to soon systematically scrap say the repology API and some lists in order to figure out what else we are missing
<d6e> hodapp: okay, cool. Nice to know I'm not missing out then
<hodapp> can't we just wait for the current machine learning hype wave to blow over?
<ixxie> why?
<ixxie> you don't want us to get popular ;)
<ixxie> Science NEEDS NixOS
<hodapp> and people realize that the fact that they made a DL model that is *really* good at detecting cats still doesn't mean that they've achieved the holy grail of a magical black-box algorithm that they throw "data" in and money comes out
<ixxie> don't be greedy
<ixxie> hodapp: true but data science has useful application
<ixxie> like topic modeling, search engines, text interfaces
<ixxie> that is the stuff I am into
<ixxie> and yes some classification
<ixxie> I would like to try and use ML to categorize our packages
<hodapp> whaaa
sbdchd has quit [Remote host closed the connection]
<ixxie> like, detect that firefox is a browser and gensim is a word embedding library
<ixxie> anyway, would anybody be interested in joining the data science packaging effort?
<{^_^}> [nixpkgs] @xeji merged pull request #41352 → dep2nix: init at 0.0.1 → https://git.io/vhc5W
<{^_^}> [nixpkgs] @xeji pushed commit from @Mic92 to master « dep2nix: init at 0.0.1 (#41352) »: https://git.io/vhCAh
<{^_^}> [nixpkgs] @volth opened pull request #41373 → lib: bitAnd, bitOr, bitXor → https://git.io/vhCxf
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « wsjtx: 1.8.0 -> 1.9.0 (#41230) »: https://git.io/vhCxt
<{^_^}> [nixpkgs] @xeji merged pull request #41230 → wsjtx: 1.8.0 -> 1.9.0 → https://git.io/vh3Au
<hodapp> ixxie: keep me updated on the effort
<hodapp> I have a pile of shell.nix derivations and stuff that I've used in my own related efforts
<hodapp> and I can remove all the profanity from them pretty qucikly
<hodapp> s/qucikly/quickly/
Guest29924 has joined #nixos
ixxie has quit [Quit: Lost terminal]
<hodapp> at this point I have a pile of the same Python packages that I've used for so many things that it may as well be bundled together somehow... matplotlib, numpy, scipy, jupyter, some other stuff
<Guest29924> Hi, I tried the teamspeak workaround suggested here earlier today but sadly it didn't work
<Guest29924> does anyone have any suggestions to try and get it working?
justan0theruser has quit [Ping timeout: 268 seconds]
<Guest29924> either that or an ETA of a fix?
justanotheruser has joined #nixos
ikitat has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #41263 → qutebrowser: 1.3.0 -> 1.3.1 → https://git.io/vhG3x
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « qutebrowser: 1.3.0 -> 1.3.1 (#41263) »: https://git.io/vhCxr
<symphorien> Guest29924: can you paste what you tried and how it failed ?
<Guest29924> sure
<Guest29924> NIX_PATH=nixpkgs=https://github.com/symphorien/nixpkgs/archive/7ed15eed532a7d9cf267882d5f935f1b34a04622.tar.gz nix-shell -p teamspeak_client --run ts3client &
<Guest29924> was the command used, with the following error:
<Guest29924> QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
<symphorien> iirc this is only a warning
<symphorien> at least when I tested my fix it worked despite this message
<Guest29924> there's a crashdump afterwards but I don't want to flood this chat with it
ThatPako has quit [Quit: Lost terminal]
<Guest29924> failed to init text to speech engine is one of the INFO messages
<Guest29924> oh actually I might have a fix, I'll reboot and try and let you know if it works
Guest29924 has quit [Quit: Lost terminal]
ixxie has joined #nixos
schjetne has joined #nixos
reinzelmann has quit [Ping timeout: 276 seconds]
<ixxie> hodapp: one thing I could use help with is tryin to make jupyterlabWithExtensions
<ixxie> hodapp: I never did anything complex like that and its also the first module I am making so....
theo_ has joined #nixos
<ixxie> hodapp: and aborsu has the jupyter module PR in place and a jupyterhub in the works too afaik
<theo_> symphorien: turns out your fix did work
<symphorien> :)
<symphorien> what was the problem ?
<ixxie> hodapp: he jupyter module has this awesome function for building kernels
lord| has quit [Ping timeout: 244 seconds]
<ixxie> hodapp: so we can now have jupyter environments specified in Nix xD
<theo_> hahahah user error, I was using my old i3config which was sending all instances of teamspeak to a workspace that no longer exists
<symphorien> I see :þ
<theo_> such a ridiculous mistake, sorry for wasting your time
<symphorien> np
<theo_> will this fix be made upstream any time soon?
<ixxie> here is a question: if a python library has a component which is installed as an extension to another piece of software (jupyterlab) how do I package it?
<symphorien> it has already been merged, but it will take a few days to be built
<ixxie> even if I did have jupyterlabWithExtensions I wouldn't know how to split the cake on that
<symphorien> see https://howoldis.herokuapp.com/ for further explanations
<theo_> will check it out, thanks for all the help
schjetne has quit [Ping timeout: 240 seconds]
<ixxie> btw - crazy idea of the day: yaml2nix
<clever> ixxie: there is a yaml2json binary in the yaml package
<clever> ixxie: and builtins.fromJSON
<ixxie> nice
<ixxie> but I mean that we can sorta wrap Nix in YAML for non-power users
<ixxie> so they can specify a system in YAML
<ixxie> I guess those things can help with that?
<clever> ixxie: but how would you encode the difference between a list of references: environment.systemPackages = with pkgs; [ git hello firefox ];
<clever> ixxie: and a list of strings, boot.kernelParams = [ "boot.allow_shell" ];
<ixxie> clever: the idea is NOT to replicate Nix in YAML
<ixxie> the idea is to be able to toggle coarse grained switches in a config written in Nix using a YAML masterfile
<clever> ah
<ixxie> and specify some parameters too
serentty[m] has left #nixos ["User left"]
<ixxie> like package names in a list or username or what not
<clever> so the yaml would be more along the lines of { custom.fatvim = true; custom.xorg = true; }
<clever> and then i would define options and config in a module elsewhere
<ixxie> yes but newcomers could just work with the YAML and never see Nix
<symphorien> well, there is already little documentation, if you advise newcomers to use another way to encode things, all the scarce documentation available won't apply to their case...
<ixxie> they will have less options but they will get going fast
<ixxie> and can delve into NixOS after
<clever> ixxie: that would also make it much simpler to edit the yaml file from a gui
<ixxie> good idea
<clever> libraries already exist to parse and then re-encode yaml
<ixxie> indeed I imagine
Ariakenom has joined #nixos
lord| has joined #nixos
<clever> of note, nixos modules dont have to be functions
<ixxie> I think the data structure seems quite appropriate somehow
<clever> so your imports section could refer to a yaml.nix, which contains: builtins.fromYAML ./config.yaml
<ixxie> and eventually we could do NixOps like that too
<clever> and it just returns a naked set
<ixxie> it would be simple AND powerful, a killer DevOps combo
xeji has quit [Quit: WeeChat 2.0]
<ixxie> and in 5 years we will have a cluster defined in a YAML file
<ixxie> xD
Ariakenom_ has quit [Ping timeout: 248 seconds]
<__monty__> Let's forget about yaml and use dhall.
<MichaelRaskin> And more stages of initiation than Scientology
<cransom> you'll have to do a lot of convincing to me that yaml is a killer combo for anything :(
<{^_^}> [nixpkgs] @LnL7 merged pull request #41254 → cfitsio: add Darwin support → https://git.io/vhsHo
<{^_^}> [nixpkgs] @LnL7 pushed 4 commits to master: https://git.io/vhChz
<matthewbauer> clever: running nix-diff i found that the two have different gcc configure flags . For arch64 the call includes two "--with-arch", the first one armv8-a and the second one i686.
<MichaelRaskin> YAML + arbitrary object construction in deserealisation is a killer combo for security. You allow this, it kills security.
<clever> matthewbauer: sounds like its just forcing a 32bit x86 build within the wrong attrset
<bebarker> has anyone used openssh from nix on a non nix-os system? my config.nix has services.openssh.permitRootLogin = "yes"; in it, but this doesn't seem to have an effect in ./nix/store/hpnx760s247labqc3nbn2kripk73p0ca-openssh-7.6p1/etc/ssh/sshd_config
<LnL> MichaelRaskin: I know right
<ixxie> MichaelRaskin: who said anything about arbitrary?
<elvishjerricco> Dezgeg: ping
<ixxie> MichaelRaskin: I am talking about something much more simplistic
<MichaelRaskin> ixxie: random decoding libraries do
<bebarker> arg, got to go, will check back later
<cransom> i would argue that if the options you aim to create at that simple, why layer yaml over top?
<symphorien> bebarker: nixos options don't work on non nixos
<ixxie> cransom: its much more familiar to people and you can write it in a slack message without much trouble so a bot could build it
<ixxie> cransom: it also can be learned in 5 minutes
<ixxie> I would be open to alternatives to YAML I just thing a minimalist language which is YAML like could be nice to soften the learning curve
<ixxie> and actually
<cransom> is reading `man configuration.nix` and copy pastaing those settings without any real idea how nix works more than 5 minutes of work?
<hyper_ch> can't DD create bootable win usb sticks anymore?
<elvishjerricco> Is there a good way to test NixOS on Aarch64 in a VM?
<clever> cransom: how many people here have mixed up { foo = { bar = 1; }; foo.baz = 2; } and gotten confused?
<clever> > { foo = { bar = 1; }; foo.baz = 2; }
<{^_^}> { foo = <CODE>; }
<clever> that usually throws an error, lol
<cransom> haaaa. clever even has to include self on that one even :)
<__monty__> ixxie: Imo you could implement the infrastructure you want right now in restricted nix. Something like simpleNix { package = true; ... }.
<ixxie> wrap Nix in a less powerful language and it will make for a super simple config mgmt system and some people would love that
xy2_ has joined #nixos
<ixxie> __monty__: that is true
<ixxie> __monty__: Nix is already very JSON like
<__monty__> That way you also avoid the barrier to getting from basic bitch user to using more advanced nix features.
<MichaelRaskin> But we need more stages of initiation!
c74d has joined #nixos
<ixxie> MichaelRaskin: lol
<cransom> and yes, many don't follow how attribute merging work. learning the system takes a little effort, but when you keep trying to make something idiot proof, they do make a better idiot
<ixxie> MichaelRaskin: actually the most import thing is a very solid and clear Getting Started guide for Nix/OS in general
<ixxie> cransom: fair enough
astrofog has joined #nixos
<MichaelRaskin> I would say that Nix situation with nix-env vs nix-build vs nix-shell does force me to internalise _how_ people end up with multiple stages of initiation each advising to forget everything from the previous one.
deepfire` has joined #nixos
isHavvy has joined #nixos
<MichaelRaskin> ixxie: it could be a first step to have a page that simultaneoulsy has links to all three manuals…
<nh2[m]> domenkozar: slick site! But you should make it so that the landing page is still reachable even when logged in, otherwise after logging in people can't show it to others any more
Havvy has quit [Ping timeout: 248 seconds]
hiratara has quit [Ping timeout: 240 seconds]
<ixxie> MichaelRaskin: there you go https://nixos.wiki/wiki/Nix_Ecosystem
michas_ has joined #nixos
<ixxie> MichaelRaskin: some of the articles are weak but its better than it was a year ago
<samueldr> (I bet MichaelRaskin meant on the nixos.org website ;) )
<ixxie> samueldr: I know they did
<ixxie> I mean I have been complaining about this for a while
<ixxie> at least the asymmetry of the menus annoys me
<samueldr> ixxie MichaelRaskin I'm game to implment an kind of crazy scheme for this, here's an earlier attempt
ikitat has quit [Ping timeout: 240 seconds]
hiratara has joined #nixos
<ixxie> samueldr: that is AWESOME
<ixxie> why isn't that merged?
<ixxie> somebody merge that
* ixxie apploads samueldr
<samueldr> there's the discussion in the PR
iqubic has joined #nixos
<ixxie> brb smoke
<samueldr> and I had the distinct feeling that the approach would be hard to get approval as it's... clumsy
* hodapp . o O ( brb smoking a cigarette or brb there is smoke? )
<samueldr> (though imho the navigation is already clumsy, and navigation is hard)
viric has joined #nixos
bbarker has joined #nixos
<matthewbauer> averell: yes i am following hydra new failures closely & will probably need to use a few patches to get things working. libbsd has much more symbols than i expected
NightTrain has joined #nixos
schjetne has joined #nixos
phreedom_ has quit [Remote host closed the connection]
phreedom has joined #nixos
deepfire` has quit [Ping timeout: 265 seconds]
<adelbertc> how do nix channels work? i have a multi-user install (on Darwin), and have my own channel tracking nixpkgs-18.03-darwin - i assume there is also a global default channel tracking nixpkgs-unstable
jtojnar has quit [Ping timeout: 256 seconds]
<adelbertc> however after a `nix-channel --update` a `nix-env -u --dry-run` indicates the next `minikube` version is 0.23.0 which is broken
<adelbertc> but on the latest `nixpkgs-18.03-darwin` i see `minikube` for 0.26.0 https://hydra.nixos.org/build/74660274
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/a9fdfb689b7 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<symphorien> try to update root's channels maybe ?
<ixxie> hodapp: smoking
tzemanovic has joined #nixos
<ixxie> hodapp: but, if I am to be honest, not a cigarette
slack1256 has joined #nixos
rauno has quit [Ping timeout: 244 seconds]
<adelbertc> symphorien: i suppose im asking how do channels play with each other?
<adelbertc> i assumed either the user channel has priority, or they get interleaved with the latest version of each package
<adelbertc> but neither would be consistent with what i am observing
<symphorien> nix-env has really strange behaviors with respect to channels
<adelbertc> :/
jtojnar has joined #nixos
<ixxie> clever: are you familiar with the plugin patterns in nixpkgs? stuff like https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/browsers/firefox/wrapper.nix I guess
<symphorien> iirc it defaults to .defexpr instead of NIX_PATH
<symphorien> I don't know where channels fit into this
<ixxie> clever: is there a simple example of packaging an application with plugins
<adelbertc> how interesting
<symphorien> what version does nix-build build ?
AluisioASG has quit [Quit: No Ping reply in 180 seconds.]
<adelbertc> well this is fun `warning: name collision in input Nix expressions, skipping '/Users/z002qj8/.nix-defexpr/channels_root/nixpkgs-18.03-darwin'`
AluisioASG has joined #nixos
tzemanovic has quit [Ping timeout: 260 seconds]
slack1256 has quit [Ping timeout: 240 seconds]
<symphorien> see, nix-env read .nix-defexpr
<adelbertc> yeah..
xy2_ has quit [Ping timeout: 265 seconds]
<hodapp> ixxie: then what, a hookah? a bong? :P
<symphorien> try: nix-build "<nixpkgs>" -A minikube
<adelbertc> `error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)`
<symphorien> huh ?
<adelbertc> yeah now im confused.
<symphorien> i'm not familiar of the mac setup, but this seems strange
<Myrl-saki> adelbertc: `echo $NIX_PATH'
<Myrl-saki> Oh wait.
<adelbertc> `/nix/var/nix/profiles/per-user/root/channels`
<symphorien> well to bypass this strangeness: nix-env -f channel:nixpkgs-18.03-darwin -iA minikube
<ixxie> hodapp: nothing that extreme
<ixxie> hodapp: I made #nixos-data
<symphorien> on NixOS there is a nixpkgs= entry
schjetne has quit [Ping timeout: 248 seconds]
<symphorien> adelbertc: is root's channel called nixpkgs ?
<symphorien> and not nixpkgs-18.03-darwin ?
<adelbertc> that is what i thought
<symphorien> what is the content of /nix/var/nix/profiles/per-user/root/channels ?
vaninwagen has quit [Quit: WeeChat 2.1]
<adelbertc> `binary-caches manifest.nix nixpkgs-18.03-darwin`
<symphorien> you channel is called nixpkgs-18.03-darwin
<symphorien> it should be called nixpkgs
<bbarker> symphorien: thanks, is there a way to configure sshd_config using nix expressions, or should I just copy sshd_config and edit manually
<Myrl-saki> I'm now just confused. :P
<symphorien> bbarker: consider the sshd_config in the store as a template; sshd will still look in /etc so the content of this file is irrelevant
magnetophon has quit [Ping timeout: 268 seconds]
<symphorien> so yes you should copy it in /etc/ and modify it to fit your needs
<bbarker> symphorien: ok, works for me, thanks!
matthewbauer has quit [Ping timeout: 260 seconds]
sbdchd has joined #nixos
jperras has quit [Ping timeout: 268 seconds]
sbdchd has quit [Ping timeout: 240 seconds]
simukis has quit [Ping timeout: 245 seconds]
<c74d> bbarker: If you're on NixOS, you can control the content of `/etc` with the `environment.etc` NixOS options: <https://nixos.org/nixos/options.html#environment.etc>
hiratara has quit [Quit: ZNC - http://znc.in]
ikitat has joined #nixos
<bbarker> c74d: I'm not, as in I'm trying to use nixpkgs in Linux containers
hiratara has joined #nixos
coot has quit [Quit: coot]
matthewbauer has joined #nixos
<Myrl-saki> If something is released as a standalone binary, is it more idiomatic to package the binary, or to stil compile it?
matthewbauer has quit [Client Quit]
theo_ has quit [Quit: Lost terminal]
matthewbauer has joined #nixos
<infinisil> Myrl-saki: Still compile it if possible. Advantages: can change compilation paramaters and other adjustments easily, no reliance on the binary source (can recompile with forks), better usage of cache because of dynamic linking
xy2_ has joined #nixos
<Myrl-saki> infinisil: It's a Go program, sooo :P
<Myrl-saki> Wait, does Go support dynamic linking?
<Myrl-saki> holy crap I'm stupid. ' n '
<infinisil> Not sure
__monty__ has quit [Quit: leaving]
<Myrl-saki> OTOH, this is a new software which doesn't use XDG config. Not worth it. :P
<infinisil> What is it?
slack1256 has joined #nixos
<Myrl-saki> Pretty cool dashboard.
<infinisil> Ah yeah I saw that (HN?)
<Myrl-saki> infinisil: I'm more of a reddit person.
<infinisil> Ah yeah, some site like that
<infinisil> It does look pretty cool..
<infinisil> I think Go is easy as cake on NixOS though
<infinisil> To compile it I mean
<Myrl-saki> infinisil: The only time I visit HN is actually either I found it on Google or it got linked to me from Reddit.
<{^_^}> [nixpkgs] @phryneas opened pull request #41375 → nixos/programs.mosh: refactor → https://git.io/vhWJV
magnetophon has joined #nixos
astrofog has quit [Quit: Quite]
<{^_^}> [nixpkgs] @elitak opened pull request #41376 → ipfs: 0.4.14 -> 0.4.15 → https://git.io/vhWJ6
<Myrl-saki> ughhh
<Myrl-saki> Is it only me or is apropos not finding things.
<{^_^}> [nixpkgs] @markuskowa opened pull request #41377 → nixos/slurm: Improve slurm configuration options and features. → https://git.io/vhWJQ
<Myrl-saki> Is there a "deeper search"?
<adelbertc> is it safe to remove symlinks under `~/.nix-defexpr` ?
<adelbertc> i see `channels -> /nix/var/nix/profiles/per-user/root/channels` and `channels_root -> /nix/var/nix/profiles/per-user/root/channels`
<adelbertc> which is causing some issues
<clever> adelbertc: which user is that the home for?
<adelbertc> my user
<clever> adelbertc: which is or isnt root?
<adelbertc> is not
<clever> adelbertc: and is this a single-user install?
<adelbertc> multi-user
<clever> the channels link shouldnt be pointing to roots channels
<adelbertc> its weird, i know
<adelbertc> trying to fix it
<clever> lrwxrwxrwx 1 clever users 46 Mar 7 2016 channels -> /nix/var/nix/profiles/per-user/clever/channels
<clever> lrwxrwxrwx 1 clever users 44 Oct 11 2015 channels_root -> /nix/var/nix/profiles/per-user/root/channels
<clever> thats what it should look like in a multi-user install
<adelbertc> yeah..
<Myrl-saki> I giff up. Where are man pages installed
<adelbertc> clever: should i symlink it manually?
<clever> adelbertc: yeah
<clever> Myrl-saki: usually under /run/current-system/sw/share/man and ~/.nix-profile/share/man
<Myrl-saki> Are man pages in plain text?
<clever> nope
<adelbertc> ok so doing `rm channel` and then `nix-channel --update` symlinks it appropriately, but now `nix-env` is complaining about name collissions presumably because..
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<Myrl-saki> Ah crap.
<Myrl-saki> It's in .gz format,
<adelbertc> both `channel` and `channel_root` contain `binary-caches manifest.nix nixpkgs-18.03-darwin`
<clever> Myrl-saki: or rather, its a markup language using plaintext, think of it like markdown
<clever> Myrl-saki: cat foo.1.gz | gunzip | less
<Myrl-saki> Thanks.
<clever> Myrl-saki: or just run the man program on the absolute path to it
<symphorien> adelbertc: rename nixpks-18.03-darwin in nixpkgs
<Myrl-saki> troff?
<Myrl-saki> Or?
shabius has quit [Quit: Leaving]
<clever> adelbertc: run nix-channel --list as both your user and root, do they collide?
<clever> Myrl-saki: maybe troff, i never looked into it much
<clever> .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35.
jperras has joined #nixos
<adelbertc> clever: weird part is they both print nothing
<clever> a random man page begins with this line
<adelbertc> i assume "as root" just means "with sudo"
<clever> adelbertc: OSX?
<adelbertc> yessir
<clever> adelbertc: apple sets the wrong $HOME when you `sudo nix-channel --list` so its not roots channels
<clever> adelbertc: `sudo -i` then `nix-channel --list`
<Myrl-saki> So, uh, this was what's in setbuf.3.gz. .so man3/setbuf.3
<adelbertc> clever: nothin
<clever> adelbertc: and in that root shell, `nix-channel --update`
<adelbertc> nothing is happening. urgh
<adelbertc> ok my nix was installed through a company installer
<adelbertc> i will ask my people for further guidance
<adelbertc> i wonder if the installer was doing anything weird
<adelbertc> thank you for your help
<clever> adelbertc: check the ~/.nix-channels file for both your user and root
<clever> that will bypass the --list
<symphorien> adelbertc: remove your nixpkgs-18.03-darwin channel and readd it under the name nixpkgs
rauno has joined #nixos
sanscoeu_ has joined #nixos
jperras has quit [Ping timeout: 256 seconds]
<Myrl-saki> Well crap.
sanscoeur has quit [Ping timeout: 245 seconds]
<Myrl-saki> find . ! -type d -exec bash -c 'cat {} | gunzip | grep _IONBF && echo {}' \;
<Myrl-saki> Turns out this takes a long time.
sanscoeu_ has quit [Ping timeout: 240 seconds]
tenten8401 has joined #nixos
<Myrl-saki> Maybe par will help.
<Myrl-saki> Rather, parallel.
michas_ has quit [Ping timeout: 248 seconds]
rauno has quit [Ping timeout: 265 seconds]
<tenten8401> Just thought I'd ask here, but is there anything similar to "build-essential" for ubuntu in NixOS that I can install?
<Myrl-saki> Also, apropos isn't working "well enough" for me.
<tenten8401> I initially thought it was "stdenv", but that doesn't seem to provide make or anything
<Myrl-saki> tenten8401: I think stdenv uses make, but doesn't add it to PATH.
<clever> tenten8401: your not really supposed to install anything like build-essential when using nix
<clever> tenten8401: you should always use nix-shell when you want to build something
<infinisil> *cough* you're
tzemanovic has joined #nixos
palo_ has joined #nixos
tertle||eltret has joined #nixos
<tenten8401> clever: Yes, However I want to be able to build my software on my current desktop NixOS system
<clever> tenten8401: use nix-shell to open a shell with those build tools in it
palo has quit [Ping timeout: 240 seconds]
ikitat has quit [Ping timeout: 256 seconds]
<phry> tenten8401: you really don't need a build environment as part of your NixOS installation. Instead, define a nix-shell that contains all dependencies you need.
<phry> that allows you to switch between different unpolluted build environments quickly
erasmas has quit [Quit: leaving]
xy2_ has quit [Ping timeout: 240 seconds]
tzemanovic has quit [Ping timeout: 240 seconds]
<tenten8401> I have a .c file bundled with a Makefile that I need to compile. How would I go about doing that?
<tenten8401> by that I mean defining a nix-shell
<clever> tenten8401: what does it depend on?
<phry> tenten8401: take this nix.shell as an example: https://github.com/mayflower/nix-shell-env-example/blob/step-3/shell.nix
<phry> put it in the same directory as your source code and call `nix-shell`
<phry> if you need more dependencies, add them to buildInputs
* phry meant shell.nix, not nix.shell. should go to sleep.
<tenten8401> I'd like to say I just need gcc/clang and gnumake
<tenten8401> uhg, this looks kind've annoying but I guess I could see the purpose of it
<phry> the one I've linked to you is a bit overengineered as it links to a specific nixpkgs commit. you don't really need that when starting, but when sharing the file among multiple people, it gets quite useful
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/e126a8c8a5a (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<tenten8401> welp, let's see if I've done this right
bennofs has quit [Ping timeout: 240 seconds]
schjetne has joined #nixos
<tenten8401> I added clangStdenv and clangMultiStdenv to my build inputs
<Myrl-saki> [nix-shell:/run/current-system/sw/share/man]$ find man* ! -type d | parallel "bash -c '(cat {} | gunzip 2>/dev/null || cat {}) | grep _IONBUF && echo {}'"
<Myrl-saki> A better apropos.
<clever> tenten8401: if you want to use clang, then use clangStdenv.mkDerivation, dont add clang to the buildInputs
<Myrl-saki> If you don't mind the speed. :P
adamt has quit [Ping timeout: 240 seconds]
<Myrl-saki> I think gunzip is the limiting factor.
<Myrl-saki> Which, uh, makes sense.
<clever> Myrl-saki: there is also the whatis database and makewhatis
<tenten8401> that command looks pretty scary
<tenten8401> also, I'm fine with using clang
<Myrl-saki> clever: That's exactly what caused me to make this.
<clever> tenten8401: replace stdenv.mkDerivation with clangStdenv.mkDerivation, nothing scarry about it
<tenten8401> meant Myrl's command
<clever> ah
<Myrl-saki> man3/setbuf.3.gz
<Myrl-saki> [nix-shell:/run/current-system/sw/share/man]$ whatis _IONBF
<Myrl-saki> _IONBF: nothing appropriate.
<phry> Myrl-saki: don't forget about zgrep and zcat.
<tenten8401> clever: ahh, you're saying I don't have to add clangStdenv if I just replaced stdEnv with clangStdenv?
<Myrl-saki> Let me try those. zgrep might be faster.
schjetne has quit [Ping timeout: 240 seconds]
jperras has joined #nixos
<Myrl-saki> phry: Same performance.
nyanloutre_2 has quit [Ping timeout: 260 seconds]
tzemanovic has joined #nixos
<clever> tenten8401: yep
<tenten8401> would using shellHook with a simple "make && exit" be an appropriate use of nix-shell for building? or do you think it'd be better to just have it drop to bash instead
<infinisil> ,paste tenten8401
<{^_^}> tenten8401: Use a website such as http://nixpaste.lbr.uno/ or https://gist.github.com/ to share anything that's longer than a couple lines
<phry> tenten8401: in that case you wouldn't need a shell-hook at all, but you could just call nix-build I guess
<tenten8401> it's only like 5 lines, but I probably should
<tenten8401> what's the difference between nix-build and nix-shell?
<LnL> tenten8401: an stdenv is a combination of a compiler, libc, bintools, ... configured properly to find nix dependencies, etc.
<phry> nix-build generates a package in your nix-store without user interaction. nix-shell drops you into an interactive shell
<LnL> tenten8401: using a compiler like gcc/clang doesn't work on all platforms and might have issues finding headers or linking stuff
matthewbauer has quit [Ping timeout: 240 seconds]
<tenten8401> so if I'm just generating a binary to drop somewhere else I'd probably want to just stick to nix-shell?
<tenten8401> since nix-build will store somewhere else?
<clever> tenten8401: i would use nix-build if you want to keep it for any length of time
<clever> tenten8401: nix-build will create a symlink pointing to the output for you
jperras has quit [Ping timeout: 260 seconds]
tzemanovic has quit [Ping timeout: 265 seconds]
<phry> yes, nix-build would be more suited for something that should at some point become part of your system
<tenten8401> I have no plans on making the file I generate a permanent part of my system, probably just going to use shell for now
<tenten8401> is there special syntax I'd need for a nix-build file?
<LnL> tenten8401: yeah, nix won't know that your custom binary depends on libusb so that might disappear from your system at some point
<clever> tenten8401: its generally identical to the nix-shell file, and often you can use the same file for both
<clever> with import <nixpkgs> {}; clangStdenv.mkDerivation { name = "name"; src = ./.; }
<clever> tenten8401: put that into a default.nix file and then run nix-build
<LnL> tenten8401: you'll want to add something like src = ./.; to make the build aware of your local sources
<LnL> tenten8401: and an installPhase that moves the binary to $out (the final store path)
<tenten8401> no rule to make target install, I'd assume that has something to do with my Makefile
<tenten8401> building with shell did build the file sucessfully though
<tenten8401> so that's good I guess
bennofs has joined #nixos
<clever> tenten8401: you can also just use an installPhase and skip adding an install rule to the makefile
blankhart has joined #nixos
<tenten8401> Would I even need a Makefile if I had my buildPhase setup?
<clever> nope
<clever> but it can still help to have a makefile, so you can run make in nix-shell and do incremental builds while testing and developing
<tenten8401> it looks like it successfully added it to my nix store after copy/pasting the simple installPhase from the Nixpkgs manual
<tenten8401> but I can't seem to actually run my binary
<clever> how did you try running it?
<clever> try doing ./result/bin/foo
<tenten8401> just straight up tried typing the name of my binary into a global terminal
<tenten8401> is there a way I can integrate it into $PATH?
<clever> if you want it in PATH, nix-env -f default.nix -i i think
<tenten8401> woah
<tenten8401> seems like it actually works!
<clever> and keep in mind, that nix will not let you garbage collect any version installed with nix-env
<clever> so use nix-build and ./result/bin when testing
<clever> or youll wind up with 100's of copies of the binary that cant easily be deleted
<tenten8401> oh fun
<tenten8401> dumb question, but would there be a way to add it to my global system configuration?
<clever> nix-build for building and testing, nix-env for long-term use
<clever> environment.systemPackages = [ (import /path/to/default.nix) ];
<tenten8401> and then it'll automatically build my custom application every time I nixos-rebuild?
<tenten8401> Couldn't this also be used for desktop environment specific customizations too? Say I wanted to run a command to set a Qt5 theme or something
<clever> tenten8401: the above will build it every time you nixos-rebuild, and put it into $PATH via /run/current-system/sw/bin/
matthewbauer has joined #nixos
<clever> tenten8401: there are other options if you want it to run something on login
<c74d> If anyone here uses ZFS with linuxPackages_copperhead_*, how well does it work?
<c74d> (Is NeQuissimus on IRC?)
<tenten8401> yeah, it was mainly just an example
<tenten8401> this seems pretty damn cool
<tenten8401> I really should read up on this a little bit more
<phry> tenten8401: if you want to use nix to manage your home and user session, take a look at https://github.com/rycee/home-manager
<phry> still blowing my mind ;)
<tenten8401> well I think I've officially created a simple build environment that can build a .c file and place it in $PATH upon system rebuilding
<tenten8401> are versions installed this way subject to garbage collection?
<clever> tenten8401: nope, and every time you nixos-rebuild, it adds a new option to your bootloader
<tenten8401> also, what is garbage collection exactly? Does it just clean up unused generations & packages occasionally?
<clever> tenten8401: so you can undo the change even if it stops booting
<clever> by default, it will only clean up things not in generations
<tenten8401> I have automatic GC enabled because I figured it'd be nice, but I don't exactly know what it's doing behind the scenes
<tenten8401> does it just clean up old generations?
<clever> by default, it can only delete things not in any generation
<clever> so only the stuff from nix-shell and old nix-build's
<tenten8401> ahh alright
<tenten8401> so I probably have about 50 bootloader entries currently?
<tenten8401> dating back to when I first installed
<clever> ls -l /nix/var/nix/profiles/
<tenten8401> is there a way to clean those up automatically?
<clever> lrwxrwxrwx 1 root root 93 May 24 17:08 system-405-link -> /nix/store/6rbfxvn7mmqmb4ilghzgk2n3l8iswp09-nixos-system-amd-nixos-18.09pre135256.6c064e6b1f3
Synthetica has quit [Quit: Connection closed for inactivity]
<clever> check the man page for nix-collect-garbage
<tenten8401> I have 83 currently
<clever> the --older-than flag
rauno has joined #nixos
<tenten8401> ohh, and then I'd just set nix.gc.options in my config?
<clever> yeah
<tenten8401> sweet, thanks!
<clever> i prefer to do it manually, so i can undo things when i need to