<drp>
interesting, I can see that .nix-profile already has been mapped if I type in manpath, but none of them work, presumably because they're all in subfolders as the nixpkgs manual implies
nisstyre has quit [(Ping timeout: 252 seconds)]
drp has quit [(Remote host closed the connection)]
nisstyre has joined #nixos
<disasm>
ldlework: should be pkgs.stdenv
<disasm>
ldlework: oh platforms, that would be lib.meta.platforms
drp has joined #nixos
<disasm>
tgunb: the package is pidginotr (no -)
python476 has quit [(Ping timeout: 246 seconds)]
<disasm>
drp: so... a lot of man pages are put in different outputs you can try nix-env -i yourpackage.man and see if it works.
<disasm>
drp: as to the desktop files... you'd need to symlink the desktop file in the nix store (if there is one) to where they need to go
<disasm>
actually that's how the package creates it, lemme dig further
<disasm>
drp: ok, have no idea how it works... but on the live cd, it does this for the manual: ln -sfT ${desktopFile} /root/Desktop/nixos-manual.desktop
pxc has quit [(Ping timeout: 248 seconds)]
orivej has joined #nixos
<tgunb>
disasm: its really late. thanks. the folder layout of the new pidgin-with-plugins doesnt contain a link to libotr, but i will testart python.
tgunb has quit [(Quit: Leaving.)]
tgunb has joined #nixos
<tgunb>
it worked.
<disasm>
it does seem like it's standard if a package has a desktop file it goes in $out/share/applications
<drp>
okay it looks like tmux just doesn't have man pages in the tmux nixpkgs
<drp>
everything else works automatically
<disasm>
tgunb: glad to hear it :)
<drp>
I am sorry
<disasm>
hmm works here
<tgunb>
the only thing missing are now friends who use xmpp or at least irc and are willing to install otr...
<disasm>
drp: nix-env -iA nixos.tmux.man (or nixpkgs if not nixos)
boomshroom has joined #nixos
<boomshroom>
Hello!
<disasm>
tgunb: 30 seconds...
<boomshroom>
My area had a power outage most of today, so I figure I may as well setup my OS to display my ups battery level.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Gerschtli opened pull request #30669: php couchbase: remove warnings on php startup (master...fix/php-couchbase-warnings) https://git.io/vdNEg
<boomshroom>
I just enabled apcupsd from configuration.nix, but running apcaccess status seems to give the same output each time. It doesn't even update the time.
<disasm>
tgunb: ok, a lil' longer than 30 seconds
<tgunb>
boomshrooms: good thing that your using a transactional package manager. otherwise your package database could be screwed up.
<tgunb>
(thats more or less why i switched today)
<boomshroom>
tgunb: This your first day with NixOS? Congratulations; welcome to the club!
<disasm>
boomshroom: might be worthwhile to strace it and see if you can see if it's trying to access the ups or not. I don't have a ups to test with, sorry
Nobabs25 has quit [(Quit: Leaving)]
<boomshroom>
disasm: Good news: unplugging the USB cable changed the status to go from ONLINE to COMMLOST, so there's one mystery solved.
<tgunb>
tethering?
srhb has quit [(Quit: Quit)]
pxc has joined #nixos
<disasm>
tgunb: I sent you a private message from disasm|otr and tried initiating an otr session, did it work?
<disasm>
boomshroom: could go all out and issue a status while ups power cable unplugged if your daring.
nisstyre has quit [(Changing host)]
nisstyre has joined #nixos
<disasm>
drp: did that work for you?
mc_der has quit [(Ping timeout: 240 seconds)]
<disasm>
ldlework: did that work? changing the platforms to include darwin?
nh2 has quit [(Quit: Leaving.)]
<boomshroom>
disasm: I'm not quite willing to do that yet.
sigmundv__ has quit [(Ping timeout: 240 seconds)]
<boomshroom>
Hey, the charge increased from 20% to 21%! :D
sigmundv has quit [(Ping timeout: 248 seconds)]
<drp>
disasm, nixpkgs worked for installing but still shows no manpage, everything else works though
pxc has joined #nixos
scribbler has joined #nixos
<drp>
I copied the files from .nix-profile/share/apps to .local/share/apps and gnome picked everything up
<drp>
thank you!
<drp>
it appears to just be tmux? I've installed and tested quite a few other man pages now
<drp>
they all work automatically, except for tmux
<drp>
ln cries a lot if the folder already exists, I will find a more automatic solution as there are doubtless many options
<disasm>
ooh, they're in .nix-profile/share/apps good to know!
oida has joined #nixos
<drp>
sorry, .nix-profile/share/applications
<drp>
it mirrors /local/share/applications which according to XDG also has a .local variant
<drp>
horay for standards
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vdNuA
<NixOS_GitHub>
nixpkgs/master 1b2cc71 Nikolay Amiantov: cura: build with Qt 5.6...
NixOS_GitHub has left #nixos []
<boomshroom>
Does anyone know if DejaVu Sans Mono Bold supports emojis? I'd like to use icons to annotate my i3bar. The clock and battery emojis don't seem to print, but the timer clock does. I think I had most of them working on Arch.
ivanivan has joined #nixos
ivanivan has quit [(Quit: WeeChat 1.9.1)]
<boomshroom>
Alternatively, what's a good font that I can use to display emojis in my status bar?
hamishmack has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] abbradar pushed 6 new commits to master: https://git.io/vdNzO
<NixOS_GitHub>
nixpkgs/master 3264001 Nikolay Amiantov: python.pkgs.python-utils: init at 2.2.0
<NixOS_GitHub>
nixpkgs/master 5ba9411 Nikolay Amiantov: python.pkgs.numpy-stl: init at 2.3.2
<NixOS_GitHub>
nixpkgs/master 6c5184f Nikolay Amiantov: python.pkgs.libarcus: 2.6.1 -> 3.0.3
NixOS_GitHub has left #nixos []
mbrgm has quit [(Ping timeout: 240 seconds)]
orivej has quit [(Read error: Connection reset by peer)]
pxc has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
<boomshroom>
Quickly add symbola to fonts.fonts -> Suddenly emojis in the status bar.
lambdamu has joined #nixos
pxc has joined #nixos
ison111 has quit [(Ping timeout: 258 seconds)]
lambdamu_ has quit [(Ping timeout: 248 seconds)]
demego has quit [(Ping timeout: 264 seconds)]
hamishmack has joined #nixos
<ldlework>
disasm no I did not understand what I needed to change from your reply
<ldlework>
Package ‘FSharp.AutoComplete-0.18.2’ in /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/pkgs/top-level/dotnet-packages.nix:537 is not supported on ‘x86_64-darwin’, refusing to evaluate.
<disasm>
ah
<jtojnar>
also is there `pkgs.stdenv`? I do not see it in all-packages.nix
<ldlework>
I have no idea...
<ldlework>
I'm am out of my element heh
<disasm>
jtojnar: there is, but I don't know how it gets there, lol
<disasm>
ldlework: ok... just clone nixpkgs down and lets see if this actually works...
<disasm>
to apply the patch if that's the route you go, git apply -v --index <file>
<jtojnar>
ldlework: I do not think linux is a list since the platforms are usually listed in a list
<disasm>
then in the nixpkgs dir: nix-build -A dotnetPackages.FSharpAutoComplete
<ldlework>
ah
dbmikus has joined #nixos
<disasm>
jtojnar: I think platforms can be either a list or a single platform
<disasm>
lots of stuff in nixpkgs does linux ++ darwin;
<ldlework>
hmm says corrupt patch at line 13
pxc has quit [(Ping timeout: 240 seconds)]
pxc has joined #nixos
<ldlework>
just did it manually
<ldlework>
Now I get: Package ‘FSharp.Compiler.Service-0.0.90’ in /Users/dustinlacewell/src/nixpkgs/pkgs/top-level/dotnet-packages.nix:569 is not supported on ‘x86_64-darwin’, refusing to evaluate.
<ldlework>
I'll change that one too
<jtojnar>
looks like I misremembered, grepping for 'platforms = [' there are only strings, not the lib.members
<drp>
I can clearly see dwarf-fortress as a package but nix-env -qa doesn't show it, is it a special case?
<disasm>
drp: is it unfree?
<drp>
ah yes it would be
<ldlework>
After adding darwin to a bunch of things, I'm now fetching and building stuff
<disasm>
drp: yeah, that's the reason
<ldlework>
So it seems like we don't know how to override packages that are in namespaces like dotnetPackages
<drp>
thanks
<ldlework>
jtojnar disasm heh what are we doing wrong
<ldlework>
Built successfully.
pxc has quit [(Ping timeout: 248 seconds)]
pxc has joined #nixos
<disasm>
ldlework: cool :)
<ldlework>
There must be something about overriding meta maybe?
<ldlework>
disasm just with editing the git repo directly. The override still doesn't work.
<infinisil>
drp: Hmm, I see dwarf-fortress in my nix-env -qaP
<disasm>
ldlework: can you PR that?
scribbler has quit [(Ping timeout: 258 seconds)]
pxc has quit [(Ping timeout: 240 seconds)]
<drp>
infinisil: do you have unfree enabled? when I do -qaP I get dwarf fortress utils
<NixOS_GitHub>
[nixpkgs] dustinlacewell opened pull request #30672: Enable darwin platforms for dotnetPackages.FSharpAutoComplete (master...master) https://git.io/vdN2C
NixOS_GitHub has left #nixos []
<ldlework>
disasm does that work for config.nix?
<ldlework>
where does the "nixpkgs" name come from etc? I'm not sure how to use this example.
<ldlework>
oh I see
<ldlework>
the attrset in config.nix is the one assigned to nixpkgs.config
<adisbladis>
ldlework: I have a deployment done with nixops, and I have a unique private key per machine in the deployment. How would I go about managing the private keys?
<ldlework>
Package ‘FSharp.AutoComplete-0.18.2’ in /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/pkgs/top-level/dotnet-packages.nix:537 is not supported on ‘x86_64-darwin’, refusing to evaluate.
<adisbladis>
Or maybe I should just try a different way forward with these keys..
<infinisil>
i mean we're not using overrideDerivation here
<infinisil>
not sure what that functions for exactly anyways
<infinisil>
that one seems to pass meta along
<infinisil>
Well whatever, I'll go to bed, see ya!
glenn has quit [(Remote host closed the connection)]
ghostyyy has joined #nixos
<ghostyyy>
hi, can someone help me do something? i have an encrypted root with a detached header and /boot on a thumb drive, but i cant seem to get the bootloader to find my header even though it is on the thumb drive
<ghostyyy>
is it that the boot.initrd.luks.devices.<name>.header file refers to files inside of the initramfs? is it possible to include specific files in that?
<clever>
ghostyyy: you will need to add a script somewhere to tell the initrd to mount the usb stick, copy the header into the ramdisk, and then umount it
endformationage has joined #nixos
<clever>
ghostyyy: is the luks flagged as before or after lvm?
<clever>
ghostyyy: by changing the luks to be post lvm, it will be opened at line 198
<ghostyyy>
i see, thank you very much!
<clever>
ghostyyy: and then you can safely insert some commands before it, at 189
<clever>
that will make the header available at /header within the initrd
<clever>
so you can just set .header = "/header";
<ghostyyy>
will there be some support in the future for directly including files into the initramfs? thats what i do now for gentoo, i have a little script to generate one and it has all of my headers and etc already in it
<ghostyyy>
ah thats great
<clever>
the gentoo version will embed the file into the initrd when you do "nixos-rebuild switch"
<clever>
so it will be world readable within your /boot folder
<clever>
nixos version, oops!
<ghostyyy>
ah, i guess that might be a hassle - old headers can be bad to have lying around/publicly available
<clever>
yeah
<clever>
and an advesary could just archive the /boot and ciphertext at once, and steal your pw later
<clever>
which leaves little point in having it detatched
<ldlework>
clever disasm thinks you might clever enough to figure out why you can't override dotnetPackages.FSharpAutoComplete.meta.platforms in config.nix
<ldlework>
Maybe you might have caught some of the discussion
<clever>
ldlework: meta has a special override function
<ldlework>
Oh?
<clever>
let me see...
<clever>
/home/clever/apps/nixpkgs/lib/meta.nix:/* Some functions for manipulating meta attributes, as well as the
<ldlework>
Hmm looks like the binary explodes anyway.
<ldlework>
lame.
<ghostyyy>
clever, question: in the prelvm command, is udev started yet? (or, more specifically: do the /dev/disk/by-uuid/<uuid> nodes exist at that point?)
oida has quit [(Ping timeout: 252 seconds)]
pxc has joined #nixos
<ghostyyy>
ooh i wonder if boot.loader.grub.extraInitrd might work too
<ghostyyy>
The path to a second initramfs to be supplied to the kernel. This ramfs will not be copied to the store, so that it can contain secrets such as LUKS keyfiles or ssh keys. This implies that rolling back to a previous configuration won't rollback the state of this file.
oida has joined #nixos
iqubic has joined #nixos
<iqubic>
People of nixos: it is time for me to partition my new laptop. Can I have some help with this?
<iqubic>
What filesystem should I use?
<adisbladis>
iqubic: ZFS of course ;)
<ghostyyy>
i like ZFS too
pxc has quit [(Ping timeout: 248 seconds)]
<iqubic>
Why do you recomend that?
<ghostyyy>
i have been using it for many years now on many different systems, including os x and freebsd
<clever>
iqubic: it means the numpad will type numbers instead of arrow keys
<iqubic>
Oh, so this is working correctly. My understanding was just backwards
hellrazor has joined #nixos
<ghostyyy>
hm, well, i have my disk decrypting now
<iqubic>
It
<iqubic>
It
<ghostyyy>
but it seems to look for the ZFS root pool before it asks me to decrypt it?
<ghostyyy>
i hope that is the preLVM setting thats doing that
<clever>
ghostyyy: the zfs always happens after the postlvm i believe
<iqubic>
it's been a while since I've had a machine with numlock key and an indicator light too.
<ghostyyy>
ah, so ill turn off preLVM = false
<iqubic>
Now, what is going on with my current partitioning scheme?
<clever>
ghostyyy: line 446 of stage-1 is where it mounts all filesystems
dbmikus has joined #nixos
<clever>
iqubic: do you want to keep windows?
<iqubic>
I'd like to try.
<iqubic>
I haven't pulled out my windows license key yet, so I don't want to nuke Windows yet.
<iqubic>
s/pulled/found/
<clever>
iqubic: you will need a new partition for nixos, which will probably be sda4, then mount sda4 to /mnt/ and sda1 to /mnt/boot/, and run nixos-generate-config
<clever>
and if your using zfs, mounting it to /mnt is a bit more complex
p4cman has joined #nixos
<iqubic>
Do I want to use zfs?
<adisbladis>
iqubic: ZFS or btrfs
<iqubic>
Which is better out of those two?
<adisbladis>
Up to you, zfs is a bit more of a learning curve & departure from traditional file systems
<clever>
iqubic: did you add something starting with config?
<iqubic>
yes.
<iqubic>
config.networking.hostId
<clever>
remove the config. prefix on that line
<clever>
its just networking.hostId
<iqubic>
Now we wait a long while
glenn has joined #nixos
<hyper_ch>
I have started just to install the essential things during the live installer session, then reboot in the installed system and install all of the rest
<hyper_ch>
so I can see quickly if the base installation went ok :)
<iqubic>
I'm doing all of everything right now.
<jtojnar>
clever: how does the config even work? does hydra build exponential number of all possible configurations?
glenn has quit [(Ping timeout: 248 seconds)]
<clever>
jtojnar: hydra only pre-builds one arrangement, so any changes you do get built locally
<jtojnar>
clever: I added a flag but there was no rebuild of PHP
<hyper_ch>
well, I just noticed compiling vbox on the live iso often does not work :)
<clever>
jtojnar: where did you add the flag, and where are you referencing php?
Isorkin has quit [(Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)]
<jtojnar>
clever: to configuraion.nix: nixpkgs.config.php.bz2 = true;
<jtojnar>
and I just use default php through phpfpm
srodal has joined #nixos
<clever>
jtojnar: oh, its using composableDerivation.composableDerivation
<clever>
so its probably configured the same way as vim
<clever>
iqubic: how much ram does this machine have?
<iqubic>
How do I check?
<clever>
iqubic: free -m
<iqubic>
And where do I look?
<clever>
under total
glenn has joined #nixos
<iqubic>
8GB of Ram
<clever>
iqubic: mount -o remount,size=7G /nix/.rw-store
<iqubic>
and back to the install
<srodal>
I set nixPath to point to a local checkout of nixpkgs which is at channels/nixos-unstable, but after "nixos-rebuild switch --upgrade" nix-env still installs old packages from 17.09, any clues?
<srodal>
clever: ah, that seems to have gotten me a bit closer
<srodal>
clever: now however nix-env complains about 'matches no derivations' for just about any package, which I guess might be related to there not being a manifest file in /etc/nixos ...
glenn has quit [(Remote host closed the connection)]
<clever>
srodal: by default, nix-env will only look in ~/.nix-defexpr
iqubic has quit [(Ping timeout: 260 seconds)]
<srodal>
which seems to be rather empty atm except for channels and channels_roots symlinks pointing to a folder with a single manifest.nix file containing an empty array ("[ ]")
dbmikus has joined #nixos
<clever>
srodal: nix-env will only use things that contain a default.nix
<clever>
above is an example of how to make your own entry
b has quit [(Quit: Lost terminal)]
iqubic has joined #nixos
<iqubic>
So my machine hung in the middle of installing nix, and I had to reboot. How do I mount zfs partitions again?
glenn has quit [(Remote host closed the connection)]
<guillaum2>
Pull request question: I want to edit a package (libraries/alembic) for which I'm the maintainer. It actually depends on `hdf5` and it will work best with a custom build of hdf5 (which enable thread safety). How do I patch that? I can change the alembic/default.nix to include the changes to hdf5 directly. I can change `all-packages.nix` to override the hdf5 specifically for alembic, or I can introduce a
<guillaum2>
new `hdf5_threadsafe` package in `all-packages.nix` and make alembic depends on it. Which solution is the recommanded one? (Note: I cannot simply patch the original `hdf5` derivation because thread-safety have drawback in hdf5)
Isorkin has quit [(Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh force-pushed python-unstable from af6c775 to 3b31caa: https://git.io/v5aIf
<NixOS_GitHub>
nixpkgs/python-unstable 3b31caa Frederik Rietdijk: pip 10 at 37f236de70fd22782c2948362ff0ed0ba2cf1d17
NixOS_GitHub has left #nixos []
FRidh has joined #nixos
Thra11_ has joined #nixos
<srhb>
Has anyone set up runners declaratively with the nixos gitlab-runner service? I can't figure out which token to use, so my runner is just forbidden from doing anything.
pxc has quit [(Ping timeout: 240 seconds)]
FRidh has quit [(Client Quit)]
glenn has joined #nixos
k2s has joined #nixos
glenn has quit [(Ping timeout: 240 seconds)]
k2s has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] pSub pushed 2 new commits to master: https://git.io/vdNMJ
<NixOS_GitHub>
[nixpkgs] erickg opened pull request #30681: strongSwan: Enable EAP Radius plugin for remote authentication of dia… (master...master) https://git.io/vdNMV
NixOS_GitHub has left #nixos []
glenn has quit [(Ping timeout: 246 seconds)]
mrkgnao has quit [(Ping timeout: 248 seconds)]
Mic92_ has quit [(Quit: WeeChat 1.9.1)]
oahong has quit [(Ping timeout: 248 seconds)]
sigmundv has joined #nixos
betaboon has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] guibou opened pull request #30682: (Discussion) alembic: use threadsafe hdf5 and add (szip zlib) input format (master...guibou_alembic_hdf5) https://git.io/vdNDt
NixOS_GitHub has left #nixos []
oahong has joined #nixos
oahong has quit [(Changing host)]
oahong has joined #nixos
steshaw has quit [(Quit: Connection closed for inactivity)]
glenn has joined #nixos
Thra11_ has quit [(Ping timeout: 240 seconds)]
<sphalerite>
hoverbear: which font rendering?
ison111 has quit [(Ping timeout: 240 seconds)]
<hoverbear>
sphalerite: In my terminal
<sphalerite>
how is it amazing?
<hoverbear>
sphalerite: Looks gorgeous
Isorkin has joined #nixos
<sphalerite>
clever: just thinking about the "make --optimise only link large files" thing again (https://botbot.me/freenode/nixos/msg/90842994/ ), wouldn't it also improve performance quite a bit (particularly on spinning disks) by avoiding reading the files themselves?
glenn has quit [(Ping timeout: 255 seconds)]
python476 has joined #nixos
<clever>
sphalerite: that could reduce the number of links within .links/
<clever>
sphalerite: i think having subdirs would also help a lot as well
<sphalerite>
yes, but it could also make --optimise itself faster, couldn't it?
<clever>
it would still have to scan the metadata of the dirs, but it can omit reading the data for the small files
fendor has joined #nixos
<clever>
another difference that could be improved
<clever>
what does --optimize do when reading a storepath thats already been optimized?
<clever>
i highly suspect it doesnt notice, and re-reads all directory metadata on every run
<clever>
and just skips because the hardlink count is >1
<clever>
so storepaths can possibly have collisions
<clever>
but there is several layers of hashing hashes
Thra11_ has joined #nixos
jushur has quit [(Quit: The Borg joined forces with Skynet, Resistance is futile! Uploading has begun!)]
hamishmack has quit [(Quit: hamishmack)]
<sphalerite>
Huh. Apparently the symlinking of files <1k in size is saving some 1.7GB of space. Or my calculations are wrong, which is also very possible
<sphalerite>
`find /nix/store/.links -size -1024c | while read link ; do stat -c '%h %b %B %n' $link ; done | (total=0 ; while read links blocks blocksize filename ; do ((total+=links*blocks*blocksize)) ; done ; echo $total )`
Wizek has joined #nixos
<sphalerite>
I wonder if it would be faster or slower if I collapsed the two while loops into one
<clever>
CcxWrk: it hasnt even finished the stdenv
<knupfer>
I already tried overriding firefox-unwrapped with the sources of firefox-beta-bin-unwrapped, but with no success
<srhb>
Err
<srhb>
is "${toString true}" supposed to be "1" ?
<clever>
srhb: and false is ""
<srhb>
Hm..
<clever>
srhb: i have no idea why, but thats the way it is
<srhb>
Weird. :-P
<clever>
yeah
glenn has joined #nixos
<knupfer>
srhb: nixlang is the php under the functional languages :)
<srhb>
knupfer: Heretic! :-)
betaboon has quit [(Quit: WeeChat 1.9.1)]
<gchristensen>
knupfer: I'd be honored to be one of the most well used languages, powering the vast majority of the internet!
betaboon has joined #nixos
<knupfer>
It's quite curious that nix uses a dsl and not a edsl in e.g. haskell. The argument against it I've read is size. But since we've got nixops, that's no longer valid.
<srhb>
knupfer: I don't think it'd be very fun to compile that haskell program on each rebuild :P
<aristid>
knupfer: what does nixops have to do with it?
<LnL>
nixops has nothing to do with that
<aristid>
not having a GHC dependency is a pretty real advantage
<knupfer>
aristid: because it copies only the closure, you don't need the haskell toolchain, which is quite big.
glenn has quit [(Ping timeout: 248 seconds)]
<aristid>
considering that one of the main features of Nix 1.12 is that it removes the perl dependency
<aristid>
knupfer: not everybody uses nixops, besides nixops i think still installs nix on the target
<clever>
aristid: nix depends on ghc now, thats blocking some of my arm builds
<clever>
aristid: shellcheck
<aristid>
clever: nix depends on ghc now?!
ssmike has joined #nixos
<clever>
aristid: there is something in the nix build process that runs shellcheck over a few things
<clever>
aristid: and shellcheck is haskell
<knupfer>
ghc can crosscompile to arm
<knupfer>
or be compiled on arm, if you've got some hours spare time
<clever>
knupfer: nixpkgs ghc needs a bootstrap that is already built for that platform
<LnL>
knupfer: you would have to rebootstrap ghc and all of it's dependencies everytime something in the stdenv changes
<clever>
knupfer: an thats missing for arm
<aristid>
clever: ah, but it's not a runtime dependency at least
<knupfer>
I'd love a rewrite of nix in haskell, but that will propably never happen
<aristid>
knupfer: don't get me wrong, i love haskell. i just don't think nix is the place for it. :)
<knupfer>
aristid: The errors of nix are driving me nuts
<aristid>
i think nix needs to become far easier to port to different platforms, not less
<aristid>
knupfer: i would also like a better nix language. but it doesn't have to be haskell
<taktoa>
rewrite nix in ATS
<taktoa>
compiles to C, has dependent types, small dependency footprint (just GMP)
<aristid>
knupfer: statically typed with good record types would be lovely
<knupfer>
aristd: and automatically good docs for functions
<aristid>
i haven't tried it, but gabriel gonzalez added Dhall support to nixpkgs (you can compile dhall expressions to nix expressions, and use them right within nixpkgs)
<knupfer>
(I consider hackage to be full of good docs, not everybody would agree)
<knupfer>
yeah, I've read it
<knupfer>
I'm a big fan of Gonzalez.
<knupfer>
srhb: There is no reason to recompile on every rebuild, only on updates. Most time being spend in external commands (ala shake), you could just use runhaskell
<srhb>
knupfer: I suppose so.
<srhb>
Hrmm.. I think the gitlab smtp sender is broken.
<srhb>
I thought initially it was because the toString on enable produced a 1, but that seems to be true in ruby anyway.
betaboon has quit [(Quit: WeeChat 1.9.1)]
betaboon has joined #nixos
ryantrinkle has joined #nixos
roi_du_silence has quit [(Ping timeout: 260 seconds)]
b has joined #nixos
dbmikus has joined #nixos
sigmundv has quit [(Ping timeout: 240 seconds)]
Neo-- has joined #nixos
glenn has joined #nixos
roi_du_silence has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vdN7E
<NixOS_GitHub>
nixpkgs/master 922e747 Robin Gloster: gitAndTools.git-extras: 4.2.0 -> 4.4.0
julm has quit [(Remote host closed the connection)]
<srhb>
Any postfix gurus out there? https://git.io/vdN5A -- does it make sense to also add the port when doing the MX lookup?
<srhb>
I wonder if anyone ever uses that..
<clever>
srhb: you could also just set the default to 25 and type int
<clever>
that should have the same effect
<srhb>
True.
<srhb>
That's a better idea.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] tex opened pull request #30687: add new application: terminal kitty (opengl, c, python) (master...kitty) https://git.io/vdNdX
NixOS_GitHub has left #nixos []
<srhb>
clever: Thanks.
<Neo-->
does anyone here use (la)tex? I've tried to use pkgs.texlive.combined.scheme-full but it just timeouts on a couple of packages and fails to build
<srhb>
Hmm. But then I'm not sure about the empty case.
<clever>
Neo--: this is something i have used before
aanderse has quit [()]
tgunb has joined #nixos
<CrazedProgrammer>
i'm new to submitting packages. am i allowed to take assets from the AUR site (for example *.desktop files) and use them for derivations that i might want to PR into nixpkgs?
p4cman has joined #nixos
<sphalerite>
CrazedProgrammer: yes, a number of expressions in nixpkgs already do that. Make sure to get a stable URL though, where the contents won't change
proteusguy has quit [(Remote host closed the connection)]
Neo-- has quit [(Remote host closed the connection)]
Neo-- has joined #nixos
betaboon has joined #nixos
azdle has joined #nixos
dragon__ has quit [(Quit: Leaving)]
dragon__ has joined #nixos
<betaboon>
hello. how do i properly escape strings like "${colors.background}" in a multiline-string in nix (where i want that exact string to end up in the multiline-string)
<infinisil>
betaboon: "''${foo}"
<infinisil>
um no
<infinisil>
"\${foo}" or ''''${foo}'' (with the other quotes)
<betaboon>
infinisil: thank you. i was doing ''\${foo}'' and thought i was crazy xD
<infinisil>
;)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bobvanderlinden opened pull request #30688: vrb: init at 0.5.1 (master...pr-vrb-init) https://git.io/vdNAo
NixOS_GitHub has left #nixos []
<betaboon>
just converting my setup from i3bar+py3status to polybar.
<azdle>
I installed the gcc package, but I don't have an assembler, is that in a diffferent package?
<sphalerite>
__monty__: Is this on a nixos box?
<azdle>
("bash: as: command not found")
<sphalerite>
azdle: nixpkgs doesn't work very well with installing compilers and such, you're better off using nix-shell (`nix-shell -p gcc`) to get it
<__monty__>
sphalerite: No, arch linux.
<aminechikhaoui>
sphalerite: yeap just found that, I'll try that
<GRBurst>
hey - i just read the part about distributed builds in nixos. i want to switch to nixos on my pi1. my pc is already running nixos. is it possible to distribute cross compiled builds out of the box?
<sphalerite>
clever: cool, thanks
<clever>
GRBurst: the build slave stuff needs the slaves to have the right cpu for target your building for
<sphalerite>
clever: can I pick your brains on some of that qemu-user magic?
<clever>
sphalerite: sure
<sphalerite>
I want to chroot into an ARM debian installation, but I'm not sure how exactly to fit all the pieces together to get that to work
<Thra11_>
Does nix have any sort of 'quiet' option, so it hides most of the output while building unless the build fails? (like recent versions of cabal do)
<infinisil>
-Q
infinisil has quit [(Remote host closed the connection)]
<clever>
the only downside of -Q, is that it wont show the error output either
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vdNjT
<NixOS_GitHub>
nixpkgs/master 909fd5e Tim Steinbach: kubernetes: 1.7.8 -> 1.7.9
NixOS_GitHub has left #nixos []
<clever>
so you have to re-do the build without -Q and wait for it to re-fail
<clever>
CrazedProgrammer: one trick you could do, line 11, icon = desktopIcon; then it will use the file directly from the store and you dont have to copy it anywhere special
<sphalerite>
does nixos require an initrd?
infinisil has joined #nixos
<clever>
CrazedProgrammer: lib is also present at stdenv.lib, so the lib on line 1 is optional
<CrazedProgrammer>
thanks! will change those things
<Profpatsch>
gchristensen: pong
<clever>
sphalerite: if you can manage to mount the rootfs without relying on kernel modules, you could boot it without an initrd
<clever>
sphalerite: but the default kernel has too much as modules, and it cant mount any filesystem on its own
<Thra11_>
clever: thanks
<sphalerite>
clever: right, I was plannign on using the stock kernel from my chromebook for a start and that is capable of mounting some filesystems without modules
<clever>
sphalerite: ah, that should work then, just pass the right root=/dev/sda1 to the kernel, in addition to the existing init= that the nixos bootloader generates
<clever>
sphalerite: the tricky part is the init=, but you could cheat some
<clever>
sphalerite: init=/nix/var/nix/profiles/system/init will always point to the current generation, and now you dont have to make nixos manage a bootloader config
nixos1022 has joined #nixos
<clever>
sphalerite: you could even symlink /bin/init to /nix/var/nix/profiles/system/init and then the kernel default would work
<sphalerite>
sweet
<clever>
sphalerite: there is also a default root device in the kernel (file will tell you what it is)
<clever>
/nix/store/38x3r16rhpiwcvnsp1gsm04zfnixllpx-linux-4.9.46/bzImage: Linux kernel x86 boot executable bzImage, version 4.9.46 (nixbld@localhost) #1-NixOS SMP Wed Aug 30 08:24:43 UTC 2017, RO-rootFS, swap_dev 0x3, Normal VGA
<clever>
sphalerite: thats the code responsible for starting pid 1
<clever>
sphalerite: when using an initrd, init= has basicaly zero impact, and it will only appear in /proc/cmdline, and rdinit= is what actually affects the kernel
<woffs>
clever: is this written somewhere outside this irc channel?
ison111 has joined #nixos
<clever>
woffs: which part?
<woffs>
nix-build config.system.build.toplevel
<clever>
woffs: ah, not really, i just read the source for nixos and nixos-rebuild
<__monty__>
woffs: About the links you gave me. The first solution looks more convenient but I'm wondering whether it will mess up packages installed with pacman?
<woffs>
maybe I just should note it on a slip of paper
<clever>
woffs: oh, and -A system is an alias to that full attrpath
<nschoe>
Hi everyone, I'm trying to setup an environment for my haskell program which uses `gloss`, which internally uses opengl. When developping haskell packages, `cabal2nix --shell` and `nix-shell --command "cabal configure"` are usually enough, but not this time, because it requires the C library for opengl.
<clever>
woffs: that nix-build command is basically the same as "nixos-rebuild build"
<nschoe>
Can someone point me to the right direction? It's the first time I'm building a "complex" Haskell package in nixOS, I'd like to do The Right Thing.
<woffs>
__monty__: I think it will not break anything, though I cannot guarantee of course
<woffs>
thanks clever
<__monty__>
woffs: Then could you clarify where you ran the ln from?
<vaibhavsagar>
hey, is there a guide on declaratively defining hydra projects?
<clever>
nschoe: have you tried using cabal2nix?
<clever>
nschoe: just running it directly on the directory and then using nix-shell on the resulting expression
<vaibhavsagar>
I did services.hydra.enable = true but now I can't figure out how to actually use it
<clever>
nschoe: and is librarySystemDepends set in that expression?
<clever>
vaibhavsagar: you first need to create a user using a CLI program, ran as the hydra user
<vaibhavsagar>
because the manual says 'create a user, then log in' but I can't follow those instructions and there doesn't appear to be a users table
<clever>
vaibhavsagar: you may also need to: export HYDRA_DBI=dbi:Pg:dbname=hydra;user=hydra;
tgunb has quit [(Ping timeout: 246 seconds)]
<woffs>
__monty__: look at it, it does not matter where run from
ma27 has quit [(Quit: WeeChat 1.9.1)]
<nschoe>
clever, yes I aways use cabal2nix. My workflow is as follow: use `cabal init` to bootstrap the directory structure. Then edit the *.cabal file, and add the dependencies. Then I run `cabal2nix --shell > shell.nix`. And then `nix-shell --command "cabal configure"`.
<vaibhavsagar>
clever: now I get this error 'DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI connect('dbname=hydra','',...) failed: FATAL: Peer authentication failed for user "vaibhavsagar" at /nix/store/pjbrsfridmqzyjdvb89gb5fbjx2rhnjg-hydra-perl-deps/lib/perl5/site_perl/5.24.2/DBIx/Class/Storage/DBI.pm line 1517. at /nix/store/pjbrsfridmqzyjdvb89gb5fbjx2rhnjg-hydra-perl-deps/lib/perl5/site_perl/5.24.2/Catalyst/Model/DBIC/Schema.pm line
<vaibhavsagar>
526'
<nschoe>
clever, AFAIK the `cabal2nix` call takes care of transforming the *.cabal file into a suitable *.nix derivation file, reading to be built.
<nschoe>
by adding the corresponding haskellPackages. So here I tried adding `gloss-examples` in the *.cabal file, but the `cabal configure` command failed.
<vaibhavsagar>
nschoe, what happens if you run `nix-build`?
<vaibhavsagar>
where does it fail?
<nschoe>
vaibhavsagar, haven't tried, let me try.
<clever>
nschoe: what about making a Setup.hs and using runhaskell on it, rather then using nix-shell again
infinisil has quit [(Quit: ZNC 1.7.x-git-unknown - https://znc.in)]
<clever>
vaibhavsagar: you have to run those commands as the hydra user
<clever>
vaibhavsagar: sudo -u hydra -i
ylwghst has joined #nixos
<vaibhavsagar>
ahh, that makes sense, thanks clever
<sphalerite>
I've put `binary-caches = https://nixos-arm.dezgeg.me/channel` in my /etc/nix/nix.conf but nix doesn't seem to be using it. Am I missing something?
infinisil has joined #nixos
<Dezgeg>
the public key?
<clever>
sphalerite: did you restart nix-daemon?
<nschoe>
vaibhavsagar, yes `nix-build` fails with "Setup: Encountered missing dependencies:
<nschoe>
gloss-examples -any"
<sphalerite>
oooh, I need to restart the daemon
<sphalerite>
I have the public key too
<nschoe>
clever, currently, there is a Setup.hs that contains the minimal `main = defaultMain`.
<__monty__>
woffs: That seems to have resolved the problem, the link was indeed necessary. Turns out my opengl is too old though.
<vaibhavsagar>
nschoe: do you have a link to this project you can share?
<clever>
url: (7) Failed to connect to nixos-arm.dezgeg.me port 443: Connection refused
<clever>
sphalerite: also, that server isnt listening on 443
<Dezgeg>
no ssl on the namecheap redirector, yes
<clever>
Dezgeg: and port 80 redirects elsewhere
<nschoe>
vaibhavsagar, not really I just created it o nthe laptop 10 minutes ago. There is basically nothing yet. It's fresh from `cabal init`, adding 'gloss' and 'gloss-examples' in the cabal file and then the build failed.
darlan has joined #nixos
<nschoe>
vaibhavsagar, but when I entered the shell with `nix-shell shell.nix` and ran `cabal install gloss-examples` inside it, it installed a bunch of dependencies and then it failed, telling me that it was missig the C library "GL".
darlan has quit [(Client Quit)]
<__monty__>
woffs: Seems to have worsened the other problem though: http://ix.io/BCv
derped has joined #nixos
ylwghst has quit [(Remote host closed the connection)]
<sphalerite>
rather than restarting the daemon each time I can just run nix tools with NIX_REMOTE unset as root, right?
<Dezgeg>
yes
<clever>
sphalerite: yeah
<clever>
if it has +w to the store and the var is unset, it will just directly spawn the worker
infinisil has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] CrazedProgrammer opened pull request #30691: astah-community: init at 7.2.0 (master...package/astah-community) https://git.io/vdAvC
NixOS_GitHub has left #nixos []
<woffs>
__monty__: I cannot say anything about 'Failed to load module "canberra-gtk-module"'
infinisil has joined #nixos
ryantrinkle has quit [(Ping timeout: 240 seconds)]
<__monty__>
woffs: That message was already there, the other two weren't though.
<woffs>
__monty__: maybe they don't mean too much
<clever>
nschoe: can you throw that project and its .cabal file onto github?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 3 new commits to master: https://git.io/vdAvB
<NixOS_GitHub>
nixpkgs/master ac2acca Tuomas Tynkkynen: Merge remote-tracking branch 'upstream/staging' into master
<NixOS_GitHub>
nixpkgs/master a483373 Tuomas Tynkkynen: cntk: Disable parallel building...
<NixOS_GitHub>
nixpkgs/master 94e88d6 Tuomas Tynkkynen: collectd: Fix build after LVM2 upgrade
NixOS_GitHub has left #nixos []
<sphalerite>
clever: AFAICT nix doesn't seem to even be trying to access the binary cache. How can I debug this?
<__monty__>
woffs: Possible, the canberra message is enough to trip up my application launcher though.
infinisil has quit [(Remote host closed the connection)]
<hyper_ch>
(no need to use the "v" sparsely... there's no shortage of them)
<woffs>
clever: it's interesting to dive into the secrets of NixOS. Just reading lustrateRoot() :-)
<Dezgeg>
something like this I'd try: nix-store -vvvvvvv -r /nix/store/m5pq3pi5m3yhaqn8fa86nf69jfg6cpw0-stdenv
glenn has quit [(Ping timeout: 255 seconds)]
<clever>
woffs: somebody in #nixos made lustrateRoot after hearing the story of how i manually did that when installing nixos onto a netbook without the install media
infinisil has joined #nixos
<clever>
Dezgeg: ah, yeah, that will force it to only go thru the cache, it will fail to build
<woffs>
that community is great
<hodapp>
lustrate? o_O
<clever>
hodapp: it will move everything in / to /old-root, except /nix
<woffs>
commit 3d16af7
<sphalerite>
it seems to be trying 3 substituters and none of them succeed
<clever>
sphalerite: can you gist the full output?
<ghostyyy>
do any of you have any experience with the boot.loader.grub.extraInitrd setting? i cant seem to get my LUKS header available at boot time
<ghostyyy>
if there was some way to open a shell in the initramfs that would also be very helpful
<woffs>
clever: everything is explained in the commit message to commit 3d16af7. Great.
<woffs>
hodapp: ^^^
<clever>
ghostyyy: add boot.debug1 to the kernel params and it will force a shell
<kuznero>
clever: not sure if I completely understand that. Let's say `patchelf --set-rpath "${stdenv.cc.cc.lib}/lib64" dotnet` - how this will be expanded?
<kuznero>
Into $NIX_CC (/nix/store/m3hr6jjlg637240q67as3js21dg6h218-gcc-wrapper-6.4.0 on my machine)?
<clever>
kuznero: you want to write a nix expression that will patch it for you
<kuznero>
yes
c0bw3b has joined #nixos
<seequ>
Heh, cache.nixos.org went down at a terrible time
Thra11_ has quit [(Quit: IRC for Sailfish 0.9)]
glenn has quit [(Ping timeout: 240 seconds)]
<kuznero>
clever: I mean I understand what patchelf is doing, I need to do it myself by calling to patchelf bash function while I am in nix-shell. But at that context ${stdenv.cc.cc.lib} does not want to be expanded.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg merged master into staging: https://git.io/vdAJy
<justin-sleep>
is there a way to just use startx rather than a display manager? I've tried adding xinit, startx and xlaunch to the system package list but none of them are valid.
<iqubic>
clever: does that log help?
<clever>
iqubic: what was the model of laptop again?
<iqubic>
lenovo ideapad 320 15
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/vdAUn
<NixOS_GitHub>
nixpkgs/staging f906d6d Jon Banafato: python36: 3.6.2 -> 3.6.3
NixOS_GitHub has left #nixos []
<clever>
iqubic: not sure what else to check
<iqubic>
darn it.
pxc has quit [(Ping timeout: 240 seconds)]
FrozenCow has quit [(Remote host closed the connection)]
dragon__ has quit [(Ping timeout: 258 seconds)]
glenn has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to release-17.09: https://git.io/vdAUR
<NixOS_GitHub>
nixpkgs/release-17.09 df8e85f Jon Banafato: python36: 3.6.2 -> 3.6.3...
<tgunb>
what is the game on the install medium called? the terminal rpg?
ylwghst has quit [(Ping timeout: 248 seconds)]
<iqubic>
Why does that recognize ideapad extra buttons, but not my touchpad?
<iqubic>
tgunb: I think it's nethack.
<sphalerite>
tgunb: rogue iirc
<MichaelRaskin>
rogue
<sphalerite>
yep rogue
<sphalerite>
nethack is better though ;)
<tobiasBora>
hodapp: Thank you for the link. So I tried to run "nix-build --arg storeDir "${NIX}/store" --arg stateDir "${NIX}/var" --arg confDir "${NIX}/etc" release.nix -A build.x86_64-linux", it writes lot's of things (I fell like it's installing a whole OS, with all tools like chuser...), and finally it fails: https://pastebin.com/JRxS9MKw
<MichaelRaskin>
Or we can stand out of the crowd and provide zangband.
<tobiasBora>
the main error is "/nix/store/5pfzydfayff461z78xibv34rz5bz8sxs-gnum4-1.4.18/bin/m4:configure.ac:1: cannot open `m4sugar/foreach.m4': Bad address
<NixOS_GitHub>
nixpkgs/master 24c61ca Frederik Rietdijk: Merge pull request #30693 from Moredread/bump/calibre...
NixOS_GitHub has left #nixos []
<nixos1022>
Hi there, small question: How can I make nautilus/thunar to give me a thumbnail for every file (like a pdf lookingish symbol for pdf files and a small version of the image for all images)
<seequ>
Can I choose which nvidia drivers nixos uses?
Isorkin has quit [(Ping timeout: 260 seconds)]
<clever>
seequ: which one do you want to use?
<seequ>
I don't actually know. Setting services.xserver.videoDrivers = ["nvidia"]; results in a black screen with a blinking cursor.
<Yaniel>
seequ: you're not the krtdex seequ, are you?
<iqubic>
So, why is my touchpad being a pain in the butt?
<sphalerite>
nixos1022: install gdk_pixbuf into your user profile or systemPackages
<clever>
seequ: this is where most of the closed-source nvidia driver names are defined
<MichaelRaskin>
To be honest, normal touchpads are a pain in the fingers.
<seequ>
Yaniel: IRC rooms have a tendency to destroy my server. :P
erictapen has quit [(Ping timeout: 240 seconds)]
<Yaniel>
do you have synaptic drivers installed?
<clever>
Yaniel: that one didnt work, and neither does libinput
<iqubic>
I tried both of them already. This is just being a pain in the butt.
ylwghst has joined #nixos
<Yaniel>
seequ: you're not in the native one either :o then again that one is dead most of the time :/
<seequ>
clever: Thanks, I'll test them out
<sphalerite>
nixos1022: this is just a workaround, it should really work out of the box and I think jtojnar 's fixed it somewhere, it'll just be a while until it gets into a release version
<seequ>
Yaniel: I didn't even know one existed
zraexy has quit [(Remote host closed the connection)]
<nixos1022>
thx
<Yaniel>
#nix:matrix.org
endformationage has quit [(Quit: WeeChat 1.9.1)]
<gchristensen>
Profpatsch: disregard :)
<iqubic>
What is the latest kernel I can pull from Nixos-unstable?
<tobiasBora>
How can I install checking for libcrypto... no
<tobiasBora>
from nix, I can't find the package that implement it...
<clever>
iqubic: 4.9 i believe
<clever>
iqubic: maybe 4.12
<sphalerite>
nah, at least 4.13 is there
<iqubic>
I'd like to try pulling the latest kernel.
<sphalerite>
4.13.8
Thra11 has joined #nixos
<clever>
iqubic: boot.kernelPackages = pkgs.linuxPackages_4_12; for example
<tobiasBora>
(libssl is not present in nix...)
<sphalerite>
set `boot.kernelPackages = pkgs.linuxPackages_latest;`
<sphalerite>
tobiasBora: it's in openssl
<iqubic>
sphalerite: And that will pull the latest kernel?
<sphalerite>
iqubic: the latest that's in nixpkgs, yes
<sphalerite>
in the nixpkgs version your system is on*
<iqubic>
Not the latest unstable?
<iqubic>
I want the latest unstable.
<sphalerite>
latest unstable kernel?
<sphalerite>
like the rc for 4.14? Or what
srodal has joined #nixos
<iqubic>
No, like latest in unstable.
<ghostyyy>
um... i put the debug1 option in my grub.cfg (in the in-grub editor), to debug my initramfs, and it does ask if i want to start a shell, but my USB keyboard doesnt work?
<clever>
ghostyyy: you need to include usb drivers in the initrd, boot.initrd.availableKernelModules
<clever>
usbhid, and a driver for the usb controller i believe
<sphalerite>
iqubic: if you're on the unstable channel, then yes it'll get 4.13.8 which is the latest kernel in nixos-unstable
<clever>
sphalerite: i'm currently fighting a very weird chromium bug, [pid 13045] mmap(0x9448d800000, 2097152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
glenn has joined #nixos
<iqubic>
Well, this is a thing: error: file ‘nixos-unstable’ was not found in the Nix search path (add it using $NIX_PATH or -I), at /etc/nixos/configuration.nix:13:33
<sphalerite>
iqubic: did you nix-channel --update? What's your NIX_PATH?
<sphalerite>
tobiasBora: to do that, `nix-build '<nixpkgs>' -A nix`
ryantrinkle has joined #nixos
<iqubic>
And now it has to go fetch 17.09 for me.
<iqubic>
Which is stupid
<sphalerite>
yeah
<hyper_ch>
good that it can easily be reverted
<tobiasBora>
sphalerite: this will take the sources from the repo, or from the current folder ? And can I usk to nix-build to automatically choose the needed nixpkgs ?
<sphalerite>
tobiasBora: it'll get the sources from a release tarball. If you want to make local changes, do `nix-shell '<nixpkgs>' -A nix` to get a shell where all of nix's dependencies are available
<iqubic>
Well. The attribute kernelPackages is missing.
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
infinisil has quit [(Remote host closed the connection)]
<clever>
iqubic: what line did you add to configuration.nix?
<iqubic>
nixos-rebuild tells me the error occurs at the open paren there.
<clever>
iqubic: its linuxPackages at the 2nd one
<sphalerite>
tobiasBora: or just `nix-build release.nix -A build.x86_64-linux` if you want to get a completely clean build that resembles the nix from nixpkgs maximally
infinisil has joined #nixos
<sphalerite>
iqubic: what clever said. My bad!
<sphalerite>
And what you want is linuxPackages_latest
<iqubic>
Seems to work
dbmikus has joined #nixos
<clever>
sphalerite: found part of the issue, chromium is using ulimit to limit itself to 2gig of ram
<tobiasBora>
sphalerite: sphalerite I don't know why, but when I run it in the git version, I get this error: https://pastebin.com/Gw3ssJQD
<sphalerite>
clever: nice
<tobiasBora>
/nix/store/5pfzydfayff461z78xibv34rz5bz8sxs-gnum4-1.4.18/bin/m4:configure.ac:1: cannot open `m4sugar/foreach.m4': Bad address
<iqubic>
Is it possible to enable/disable individual kernel modules with this setup?
<clever>
sphalerite: and it fails 100% of the time when trying to load a given page
taktoa has quit [(Remote host closed the connection)]
<seequ>
Is there a way to give services.compton just a config file and ignore all the nix options?
FRidh has quit [(Quit: Konversation terminated!)]
<Unode>
Hi all, I'm trying to increase the resolution of the screen during boot (before X). I've set gfxmodeEfi and gfxmodeBios but resolution remains low. Are there any other options to set this?
<infinisil>
How do I put stuff on NTFS from nixos? It mounts as read-only by default
<MichaelRaskin>
Hm, independently bridge it to IRC and merge them via IRC…
<tobiasBora>
sphalerite: I don't know if it can help, but I'm running nix in a proot "chroot"
<sphalerite>
tobiasBora: that's weird, I don't know why this would happen. It works for me.
<sphalerite>
Hm, that could break nix. I'm not sure. But I think nix itself would complain about that…
Neo-- has quit [(Remote host closed the connection)]
<sphalerite>
Why are you running it in proot?
Neo-- has joined #nixos
<tobiasBora>
sphalerite: I'll try to install nix outside of any proot to see if it's better...
erictapen has quit [(Ping timeout: 255 seconds)]
<Yaniel>
nothing prevents bridging two matrix rooms to the same irc channel
<Yaniel>
but it's heavily discouraged
<Yaniel>
and having a completely separate room has its own merits
<sphalerite>
clever: will qemu-user typically perform better than emulating a whole system?
Arcaelyx has joined #nixos
<clever>
sphalerite: yeah, because it wont need to emulate a kernel
<clever>
sphalerite: also, qemu-system-arm doesnt have SMP support, so its limited to 1 core
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
<clever>
but qemu-user just maps guest threads to host threads, and can use all the cores
<sphalerite>
ooh ok
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
glenn has joined #nixos
erictapen has joined #nixos
<sphalerite>
It's crazy to me how qemu-user actually works
<sphalerite>
I mean, I see no technical reason why it shouldn't
<sphalerite>
but it still feels like it shouldn't
<clever>
sphalerite: whats even more crazy, i just typed in the x86-64 arch one day, and built the same nix expression on a raspberry pi
<clever>
sphalerite: and it sorta worked! (pulseaudio threw an exception though)
<clever>
sphalerite: ive even made an x86-64 qemu-user, on x86-64, and it was able to reproduce problems qemu-system-x86-64 had, without having to emulate the full kernel
thblt has joined #nixos
<sphalerite>
nice
<clever>
sphalerite: turns out, 64bit qemu emulates the very first 64bit cpu, one that lacks sse3 features that are now considered standard
<clever>
sphalerite: so a qemu without kvm, lacks sse3 support by default
<clever>
then cryptonite in haskell segfaults
<clever>
or rather, dies due to an illegal instruction
<clever>
sphalerite: and because i have kvm enabled on my machine, i could never reproduce the problem
<clever>
sphalerite: the presense of /dev/kvm inside the nix sandbox is an impurity, that controled if the problem happened or not!
<sphalerite>
nice…
ma27 has quit [(Ping timeout: 248 seconds)]
<bennofs>
does hydra build python3 packages for aarch64?
<sphalerite>
Where was the nix patch that you used to convince it to use binfmt-misc stuff?
<clever>
sphalerite: in nix-misc
<sphalerite>
oh I see it's right there in the repo
<clever>
yep
<clever>
that adds a new nix.conf field, a list of platforms the cpu "supports"
<clever>
i still need to file a PR for that
<clever>
its been on my todo list for 2 years...
ylwghst has quit [(Quit: Lost terminal)]
dbmikus has quit [(Ping timeout: 248 seconds)]
FRidh has joined #nixos
FRidh has quit [(Client Quit)]
dywedir has quit [(Remote host closed the connection)]
<ivanivan>
Is there any color picker readily available in a nix package?
<ivanivan>
I looked for gpick and pick, but found neither
<tobiasBora>
sphalerite: so I tried to compile it from a real /nix, no chroot, and it's a bit better, but it fails the tests at the end: https://pastebin.com/1hwjgW6H
<clever>
error: cloning builder process: Operation not permitted
<clever>
sphalerite: i believe that forces gcc to treat the literal as a 64bit, even though 1 could fit into a 32bit
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vdAtM
<NixOS_GitHub>
nixpkgs/master 28494e9 Tuomas Tynkkynen: falkon: Disable parallel building...
NixOS_GitHub has left #nixos []
<clever>
sphalerite: so when it gets shifted by 33 bits, it doesnt overflow
<sphalerite>
yeah I guessed as much
<sphalerite>
looks like it's supposed to be NULL though
<sphalerite>
visually
<clever>
sphalerite: but the interesting part, is that the comment perfectly describes my problem, and that whole if statement is missing from the version i'm currently running
<ivanivan>
oh, i see there's a gcolor2 package
ivanivan has quit [(Quit: WeeChat 1.9.1)]
stanibanani has joined #nixos
erictapen has quit [(Ping timeout: 260 seconds)]
katyucha has joined #nixos
ma27 has joined #nixos
stabbmesiter has joined #nixos
<clever>
so, version 60.0.3112.90 is bork, nixpkgs master is at version 62.0.3202.62
<clever>
and 62 does have the fix
glenn has quit [(Ping timeout: 246 seconds)]
jb55 has joined #nixos
<jluttine>
in mkDerivation, name should contain version number, right? name = "package-name-1.2.3". is there some attribute value that could be the package name without the version number?
<jluttine>
i'd like to use the app name without the version number for other purposes
<clever>
jluttine: some languages use pname for that
abbradar has quit [(Remote host closed the connection)]
<clever>
{ name = "package-name"; version = "1.2.3"; }
glenn has joined #nixos
<clever>
jluttine: this is also a thing you can use
<jluttine>
clever: oh, ok. so it's ok if name doesn't contain version..?
<clever>
it generally helps for name to contain the version, but you can also add a pname that lacks the version
<jluttine>
ok, pname seems to work
<jluttine>
thanks!
goibhniu has joined #nixos
Tekmo_ has joined #nixos
<Tekmo_>
Is there a way to add an artificially synthesized `*.drv` file manually to the `/nix/store` (mainly for teaching purposes)?
<clever>
Tekmo_: it might be simpler to call builtins.derivation with the right args, and let nix generate it
<Tekmo_>
I tried copying a `*.drv` file out of the `/nix/store` and adding it back in using `nix-store --add` but then I get a `derivation has incorrect output` error
<Tekmo_>
Yeah, I figure I can use `nix-instantiate`. I was just curious if there was a way to do this without the Nix language as an intermediate
<clever>
Tekmo_: ah, the tricky part that the CLI api wont allow, the .drv must depend on the input .drv's
<clever>
and --add/--add-fixed only allow things that have no deps
stabbmesiter has quit [(Quit: leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vdAmK
<NixOS_GitHub>
nixpkgs/master c815637 Piotr Bogdan: irssi: 1.0.4 -> 1.0.5...
<NixOS_GitHub>
nixpkgs/master ec5f9c8 Tim Steinbach: Merge pull request #30689 from pbogdan/update-irssi...
NixOS_GitHub has left #nixos []
<tobiasBora>
sphalerite: I put here the code I use to create a proot nix install. To use it just git clone, and "./nix_local_install.sh". And then type the two commands that are written at the end of the script to get a shell "prooted" on $HOME
<tobiasBora>
(with nix installed)
<Tekmo_>
It seemed like it almost worked. I'm still debugging
<sphalerite>
tobiasBora: why are you using proot?
nh2 has joined #nixos
nh2 has quit [(Client Quit)]
<clever>
sphalerite: ive been thinking, the fhs userenv stuff is able to use mount namespaces without root, to fake /lib and /bin...
<clever>
sphalerite: how hard would it be to patch it to fake /nix instead?
<sphalerite>
clever: to what end?
<tobiasBora>
sphalerite: because I'd like to provide a way to get nix when you are not a super user, with a bare minimal installation. So the idea was to use proot to get the binaries, and then compile the nix version so that I can use it without proof (which is very slow)
<clever>
sphalerite: so map $HOME/nix to /nix, on systems where you lack root
<Tekmo_>
clever: I figured it out. The issue I was running into was that Nix doesn't like the file that you `nix --add` having a hash in its name. Once I stripped the leading hash from the `.drv` file I copied out of the `/nix/store` I was able to `nix-add` it back without any issues
<sphalerite>
tobiasBora: nix-user-chroot does that basically
<clever>
Tekmo_: ah, but does it have the same path after being added back?
<sphalerite>
and doesn't use ptrace, so it's less likely to break stuff
<Tekmo_>
clever: No
<clever>
Tekmo_: that could be a problem
<sphalerite>
clever: but tha'ts what nix-user-chroot already does basically
<tobiasBora>
sphalerite: it also compiles it so that it can run natively ?
<nixos1022>
sphalerite installing gdk_pixbuf doesn't help showing previews of images.
nixos1022 has quit [(Remote host closed the connection)]
<Tekmo_>
For my use case, it's totally fine if Nix treats this as a completely different derivation that just happens to produce the same build product
<clever>
Tekmo_: .drv files are supposed to be storepaths that have deps, and the hash of the contents (in non-fixed mode) matches the storepath
<sphalerite>
tobiasBora: no, but it provides you with a /nix so that you can just run nix's normal install script
<sphalerite>
tobiasBora: I used this to install nix on my user account at uni for instance
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to release-17.09: https://git.io/vdAYe
<NixOS_GitHub>
nixpkgs/release-17.09 526d41e Tuomas Tynkkynen: falkon: Disable parallel building...
NixOS_GitHub has left #nixos []
<tobiasBora>
sphalerite: but it's as efficient as if you compile it with ~/nix ?
<clever>
sphalerite: ah, nice, feel free to open a PR
nixos1022 has joined #nixos
<sphalerite>
tobiasBora: it's more efficient probably, because it uses namespaces instead of proot
<clever>
ehgads, i thought chrome was nearly done building when it claimed 700/800!!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vdAYt
<NixOS_GitHub>
nixpkgs/master c529454 Tim Steinbach: linux: 4.9.57 -> 4.9.58
<NixOS_GitHub>
nixpkgs/master 69ebd73 Tim Steinbach: linux: 4.13.8 -> 4.13.9
NixOS_GitHub has left #nixos []
dywedir has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 2 new commits to release-17.09: https://git.io/vdAYO
<NixOS_GitHub>
nixpkgs/release-17.09 e934c69 Tim Steinbach: linux: 4.9.57 -> 4.9.58...
<NixOS_GitHub>
nixpkgs/release-17.09 b6a32fe Tim Steinbach: linux: 4.13.8 -> 4.13.9...
NixOS_GitHub has left #nixos []
<tobiasBora>
sphalerite: I mean compared to "native" compilation
<sphalerite>
tobiasBora: nix already runs natively on the machine…
<Tekmo_>
clever: `nix-store --realise` seems to work on it just fine, even if `nix-store --requisites` doesn't detect any dependencies
<clever>
Tekmo_: it may cause problems down the road, when the drv's it references get deleted
Thra11 has quit [(Ping timeout: 240 seconds)]
Thra11 has joined #nixos
<ldlework>
Can I force nix-env to reinstall a package and all of its dependencies?
<sphalerite>
clever: hold on that PR, it's got a few issues
<clever>
kk
<Tekmo_>
clever: Yeah, I confirmed that deleting an upstream derivation gets it into a bad state with the: "don't know how to build these paths" error
<tobiasBora>
sphalerite: I mean, if you compile it with the options that change the /nix. Because for example, proot does lot's of operation to simulate the /nix, that make it not usable in real life (I tried to run qemu with it... It took 10s just to prompt the bios). That's why I'm asking if I need to compile myself nix even if I use this solution to bootstrap the system, or if it's efficient enough to be usable alone.
<Tekmo_>
Either way, this answers my question. This is good enough for teaching purposes even if it doesn't enforce the `nix-store` invariants correctly
<Tekmo_>
I'll just add lots of warnings explaining the issues
ma27 has quit [(Quit: WeeChat 1.9.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vdAYE
<NixOS_GitHub>
nixpkgs/master e9aa686 Tim Steinbach: linux-copperhead: 4.13.8.a -> 4.13.9.a
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to release-17.09: https://git.io/vdAYu
<NixOS_GitHub>
nixpkgs/release-17.09 873f27d Tim Steinbach: linux-copperhead: 4.13.8.a -> 4.13.9.a...
NixOS_GitHub has left #nixos []
<sphalerite>
clever: any reason to copy all of the args rather than just reusing the pointers in qemu-wrap.c?
<sphalerite>
tobiasBora: compiling nix yourself won't help with that.
<tobiasBora>
sphalerite: why ? I saw that I can use some options to change the base /nix directory.
<tobiasBora>
sphalerite: and by the way, your solution does not work for me, I get "unshare(): Operation not permitted
<clever>
sphalerite: cant think of any, see what happens if you just copy the pointers
<MichaelRaskin>
clever: re: Chromium: yes, that's a nice mind trick Chromium build plays.
<sphalerite>
tobiasBora: nix-user-chroot uses namespaces rather than ptrace though, so it should be much, much faster
<clever>
MichaelRaskin: the problem i ran into, is that chromium sets a data size limit of 2gig on every render process
<clever>
MichaelRaskin: and one of my extensions needs >2gig for a single tab
Thra11 has quit [(Ping timeout: 240 seconds)]
<tobiasBora>
sphalerite: ok. And do you know if I've any solution for this unshare(): Operation not permitted bug ?
ma27 has joined #nixos
<MichaelRaskin>
clever: we all know what to do when Blink wants too much RAM.
Thra11 has joined #nixos
<clever>
MichaelRaskin: in this case, i have 32gig of total ram, and 64gig of swap, but the process is setting a fairly low 2gig limit on itself
<clever>
MichaelRaskin: so it can never even attempt to use enough ram to run
mizu_no_oto has joined #nixos
<MichaelRaskin>
Well, as long as you do not migrate to Gecko, obviously!
<clever>
MichaelRaskin: which isnt present in the version 60 i'm currently running
nkpart[m] has quit [(Ping timeout: 240 seconds)]
Obscurity[m] has quit [(Ping timeout: 240 seconds)]
trevorriles[m] has quit [(Ping timeout: 248 seconds)]
reactormonk[m] has quit [(Ping timeout: 246 seconds)]
sirius[m] has quit [(Ping timeout: 246 seconds)]
Dezgeg[m] has quit [(Ping timeout: 246 seconds)]
tokudan[m] has quit [(Ping timeout: 246 seconds)]
necronian has quit [(Ping timeout: 246 seconds)]
aminech[m] has quit [(Ping timeout: 240 seconds)]
FRidh[m] has quit [(Ping timeout: 240 seconds)]
nh2[m] has quit [(Ping timeout: 240 seconds)]
regnat[m] has quit [(Ping timeout: 240 seconds)]
jsv[m] has quit [(Ping timeout: 240 seconds)]
benkolera has quit [(Ping timeout: 246 seconds)]
M-liberdiko has quit [(Ping timeout: 246 seconds)]
thematter[m] has quit [(Ping timeout: 255 seconds)]
AlanPearce[m] has quit [(Ping timeout: 255 seconds)]
baconicsynergy[m has quit [(Ping timeout: 255 seconds)]
cornu[m] has quit [(Ping timeout: 255 seconds)]
timclassic has quit [(Ping timeout: 248 seconds)]
fgaz[m] has quit [(Ping timeout: 246 seconds)]
sziszi[m] has quit [(Ping timeout: 264 seconds)]
aniketd[m] has quit [(Ping timeout: 240 seconds)]
<tobiasBora>
I think that on debian your not allowed to use unshare by default
Li[m]1 has quit [(Ping timeout: 258 seconds)]
smbarte2[m] has quit [(Ping timeout: 276 seconds)]
mpuppe[m] has quit [(Ping timeout: 276 seconds)]
hedning[m] has quit [(Ping timeout: 248 seconds)]
dtz has quit [(Ping timeout: 248 seconds)]
trikl[m] has quit [(Ping timeout: 246 seconds)]
r3mfKm[m] has quit [(Ping timeout: 246 seconds)]
chominist[m] has quit [(Ping timeout: 246 seconds)]
offlinehacker[m] has quit [(Ping timeout: 246 seconds)]
admin[m] has quit [(Ping timeout: 240 seconds)]
adisbladis[m] has quit [(Ping timeout: 258 seconds)]
hendrik[m]1 has quit [(Ping timeout: 264 seconds)]
maralorn[m] has quit [(Ping timeout: 246 seconds)]
magnap has quit [(Ping timeout: 246 seconds)]
ssmike has joined #nixos
Thra11 has quit [(Ping timeout: 240 seconds)]
Thra11 has joined #nixos
justanotheruser has quit [(Ping timeout: 248 seconds)]
mith[m] has quit [(Ping timeout: 240 seconds)]
rycee has quit [(Ping timeout: 240 seconds)]
TaoHansen[m] has quit [(Ping timeout: 240 seconds)]
etcinit[m] has quit [(Ping timeout: 246 seconds)]
puffnfresh has quit [(Ping timeout: 246 seconds)]
spacekitteh[m] has quit [(Ping timeout: 246 seconds)]
Oo[m] has quit [(Ping timeout: 240 seconds)]
bdimcheff has quit [(Ping timeout: 255 seconds)]
sudoreboot[m] has quit [(Ping timeout: 255 seconds)]
apocolocyntos[m] has quit [(Ping timeout: 240 seconds)]
lecorpsnoir[m] has quit [(Ping timeout: 240 seconds)]
codyopel has quit [(Ping timeout: 240 seconds)]
itorres has quit [(Ping timeout: 240 seconds)]
AmineChikhaoui[m has quit [(Ping timeout: 240 seconds)]
malteof[m] has quit [(Ping timeout: 240 seconds)]
pierrebeaucamp[m has quit [(Ping timeout: 240 seconds)]
ipj[m] has quit [(Ping timeout: 246 seconds)]
a123123123[m] has quit [(Ping timeout: 246 seconds)]
bennofs[m] has quit [(Ping timeout: 246 seconds)]
Sovereign_Bleak has quit [(Ping timeout: 246 seconds)]
Manish[m] has quit [(Ping timeout: 248 seconds)]
AdamSlack[m] has quit [(Ping timeout: 248 seconds)]
revoltmedia[m] has quit [(Ping timeout: 248 seconds)]
akavel[m] has quit [(Ping timeout: 248 seconds)]
jack[m] has quit [(Ping timeout: 248 seconds)]
ArdaXi[m] has quit [(Ping timeout: 248 seconds)]
bachp has quit [(Ping timeout: 248 seconds)]
sphalerite has quit [(Ping timeout: 248 seconds)]
hl has quit [(Ping timeout: 276 seconds)]
__monty__ has left #nixos []
noctuid has quit [(Ping timeout: 246 seconds)]
tommyangelo[m] has quit [(Ping timeout: 246 seconds)]
voobscout[m] has quit [(Ping timeout: 246 seconds)]
DIzFer[m] has quit [(Ping timeout: 246 seconds)]
Exee7uvo[m] has quit [(Ping timeout: 246 seconds)]
teh[m] has quit [(Ping timeout: 246 seconds)]
Wysteriary[m] has quit [(Ping timeout: 246 seconds)]
krawiec[m] has quit [(Ping timeout: 264 seconds)]
octalsrc[m] has quit [(Ping timeout: 264 seconds)]
mtncoder[m] has quit [(Ping timeout: 264 seconds)]
abbafei[m] has quit [(Ping timeout: 264 seconds)]
onito[m] has quit [(Ping timeout: 264 seconds)]
NickHu has quit [(Ping timeout: 264 seconds)]
WinterFox[m] has quit [(Ping timeout: 264 seconds)]
JaakkoLuttinen[m has quit [(Ping timeout: 252 seconds)]
kevincox has quit [(Ping timeout: 252 seconds)]
kitten[m] has quit [(Ping timeout: 252 seconds)]
efx[m] has quit [(Ping timeout: 252 seconds)]
peel[m] has quit [(Ping timeout: 252 seconds)]
aspiwack[m] has quit [(Ping timeout: 252 seconds)]
EB[m] has quit [(Ping timeout: 255 seconds)]
spawnthink[m] has quit [(Ping timeout: 255 seconds)]
zigschots20[m] has quit [(Ping timeout: 255 seconds)]
unlmtd has quit [(Ping timeout: 255 seconds)]
davidar has quit [(Ping timeout: 255 seconds)]
bendlas has quit [(Ping timeout: 255 seconds)]
dalaing has quit [(Ping timeout: 240 seconds)]
dash has quit [(Ping timeout: 240 seconds)]
Phil[m]1 has quit [(Ping timeout: 255 seconds)]
moredhel1 has quit [(Ping timeout: 255 seconds)]
sargon[m] has quit [(Ping timeout: 255 seconds)]
nixo[m] has quit [(Ping timeout: 255 seconds)]
myklam[m] has quit [(Ping timeout: 255 seconds)]
copumpkin has quit [(Ping timeout: 255 seconds)]
Barnabas[m] has quit [(Ping timeout: 255 seconds)]
AsherGottlieb[m] has quit [(Ping timeout: 246 seconds)]
icetan has quit [(Ping timeout: 246 seconds)]
Pneumaticat has quit [(Ping timeout: 246 seconds)]
dibblego[m] has quit [(Ping timeout: 246 seconds)]
nocent has quit [(Ping timeout: 246 seconds)]
thomad[m] has quit [(Ping timeout: 246 seconds)]
ycy[m] has quit [(Ping timeout: 246 seconds)]
M-berdario has quit [(Ping timeout: 246 seconds)]
edef[m] has quit [(Ping timeout: 246 seconds)]
Nobabs27[m] has quit [(Ping timeout: 246 seconds)]
peterhoeg has quit [(Ping timeout: 258 seconds)]
gudea[m] has quit [(Ping timeout: 248 seconds)]
jlle[m] has quit [(Ping timeout: 240 seconds)]
JameySharp[m] has quit [(Ping timeout: 255 seconds)]
fearlessKim[m] has quit [(Ping timeout: 255 seconds)]
StuK[m] has quit [(Ping timeout: 255 seconds)]
yochai[m] has quit [(Ping timeout: 255 seconds)]
freeman42x has quit [(Ping timeout: 255 seconds)]
ninegua[m] has quit [(Ping timeout: 246 seconds)]
Elephant454[m] has quit [(Ping timeout: 246 seconds)]
ison[m] has quit [(Ping timeout: 276 seconds)]
wizzup[m] has quit [(Ping timeout: 276 seconds)]
wmertens[m] has quit [(Ping timeout: 276 seconds)]
zoya-kosova[m] has quit [(Ping timeout: 276 seconds)]
danielrf has quit [(Ping timeout: 264 seconds)]
kainospur[m] has quit [(Ping timeout: 264 seconds)]
dylanjust[m] has quit [(Ping timeout: 264 seconds)]
musicmatze[m] has quit [(Ping timeout: 264 seconds)]
scott1 has quit [(Ping timeout: 264 seconds)]
Ralith has quit [(Ping timeout: 255 seconds)]
AndersonTorres[m has quit [(Ping timeout: 252 seconds)]
Phyra[m] has quit [(Ping timeout: 252 seconds)]
Kallegro[m] has quit [(Ping timeout: 252 seconds)]
wak-work has quit [(Ping timeout: 252 seconds)]
xurxo[m] has quit [(Ping timeout: 246 seconds)]
Vincenzo[m] has quit [(Ping timeout: 246 seconds)]
qrilka[m] has quit [(Ping timeout: 246 seconds)]
tobim[m] has quit [(Ping timeout: 240 seconds)]
Naughtmare[m] has quit [(Ping timeout: 240 seconds)]
herzmeister[m] has quit [(Ping timeout: 240 seconds)]
Leo[m]1 has quit [(Ping timeout: 246 seconds)]
M-gst has quit [(Ping timeout: 246 seconds)]
stanibanani has left #nixos []
retrry[m] has quit [(Ping timeout: 248 seconds)]
florianjacob has quit [(Ping timeout: 248 seconds)]
AllanDaemon[m] has quit [(Ping timeout: 255 seconds)]
Singularity[m] has quit [(Ping timeout: 255 seconds)]
jyp[m] has quit [(Ping timeout: 255 seconds)]
equalunique[m] has quit [(Ping timeout: 255 seconds)]
<clever>
matrix is at it again...
mrdaak[m] has quit [(Ping timeout: 240 seconds)]
demyan[m] has quit [(Ping timeout: 240 seconds)]
TimePath has quit [(Ping timeout: 240 seconds)]
pstn has quit [(Ping timeout: 252 seconds)]
primeos[m] has quit [(Ping timeout: 264 seconds)]
maigel[m] has quit [(Ping timeout: 276 seconds)]
EuAndreh[m] has quit [(Ping timeout: 276 seconds)]
M-fishy has quit [(Ping timeout: 255 seconds)]
Khorne[m] has quit [(Ping timeout: 255 seconds)]
the_m4ur1[m] has quit [(Ping timeout: 255 seconds)]
corngood has quit [(Ping timeout: 240 seconds)]
berot3[m] has quit [(Ping timeout: 240 seconds)]
bhipple[m] has quit [(Ping timeout: 246 seconds)]
olejorgenb[m] has quit [(Ping timeout: 246 seconds)]
<adamt>
clever: How so -- is half the channel in here through a matrix-irc bridge of sorts?
Drakonis[m] has quit [(Ping timeout: 264 seconds)]
matrixkrav has quit [(Ping timeout: 264 seconds)]
guest521[m] has quit [(Ping timeout: 276 seconds)]
eqyiel[m] has quit [(Ping timeout: 276 seconds)]
sk23[m] has quit [(Ping timeout: 276 seconds)]
mankyKitty[m] has quit [(Ping timeout: 276 seconds)]
indefini has quit [(Ping timeout: 276 seconds)]
grahamc has quit [(Ping timeout: 276 seconds)]
rnhmjoj[m] has quit [(Ping timeout: 255 seconds)]
seif[m] has quit [(Ping timeout: 255 seconds)]
Johnny44[m] has quit [(Ping timeout: 255 seconds)]
<clever>
adamt: looks like it
mhsjlw[m] has quit [(Ping timeout: 255 seconds)]
Yaniel has quit [(Ping timeout: 255 seconds)]
Geeky[m] has quit [(Ping timeout: 276 seconds)]
viaken[m] has quit [(Ping timeout: 276 seconds)]
pvn[m] has quit [(Ping timeout: 276 seconds)]
maiksen_ has joined #nixos
maiksen_ has quit [(Client Quit)]
mizu_no_oto has quit [(Ping timeout: 260 seconds)]
dywedir has quit [(Remote host closed the connection)]
ma27 has quit [(Ping timeout: 248 seconds)]
stanibanani1 has joined #nixos
glenn has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vdAOg
<NixOS_GitHub>
nixpkgs/master 917bd0b Tuomas Tynkkynen: souffle: Disable parallel building...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to release-17.09: https://git.io/vdA3c
<NixOS_GitHub>
nixpkgs/release-17.09 7c4c71a Tuomas Tynkkynen: souffle: Disable parallel building...
NixOS_GitHub has left #nixos []
<iqubic>
why so many disconnects?
<justin-sleep>
is anyone running LUKS on LVM with linuxPackages_latest? It doesn't prompt me for a password, says the device can't be found (in contrast to the default linuxPackages)
<clever>
iqubic: those are all running on a single machine
<iqubic>
Wha...? HOW?!?!
mizu_no_oto has joined #nixos
<clever>
iqubic: matrix got an exception to allow it
<iqubic>
So is it just one user, or what?
<clever>
its a bouncer
mizu_no_oto has quit [(Client Quit)]
linus1 has joined #nixos
stanibanani1 has quit [(Ping timeout: 260 seconds)]
linus1 is now known as sphalerite_
<sphalerite_>
well that would explain why I wasn't getting any messages
<seequ>
What, did the matrix bridge go down?
<sphalerite_>
seems like it
<seequ>
I have ignored all joins and parts :P
glenn has joined #nixos
<clever>
seequ: it was nearly 10 minutes of people ping-timeouting
<seequ>
yeah, it'd be nifty if we got a bridge that acted like an irc node
Thra11 has quit [(Ping timeout: 255 seconds)]
<iqubic>
Is there a list of acceptable values for boot.kernelPatches anywhere?
<iqubic>
Like what packages can I use as kernel patches?
<sphalerite_>
iqubic: they're attrsets
<iqubic>
What does that mean?
thblt has quit [(Ping timeout: 246 seconds)]
<iqubic>
is there a list attrsets?
<sphalerite_>
iqubic: have a look at nixpkgs/pkgs/os-specific/linux/kernel/patches.nix for some examples
Thra11 has joined #nixos
glenn has quit [(Ping timeout: 264 seconds)]
<clever>
sphalerite_: i think updating to chrome 62 fixed the problem
<sphalerite_>
iqubic: bridge_stp_helper, p9_fixes, etc. are all patches that can be put in kernelPatches
<iqubic>
As pkgs.whatever?
ma27 has joined #nixos
<iqubic>
How do I know what those patches do?
<ldlework>
How can I force nix to rebuild packages?
<clever>
ldlework: why do you want to force a rebuild?
<iqubic>
Also, not too many patches are there.
ylwghst has joined #nixos
<ldlework>
clever, I dunno man - my mono/fsharp is totally busted. I was thinking maybe when I was screwing with forcing overrides to be evaluated and stuff that maybe I caused the package to build poorly
<clever>
ldlework: nix knows when the overrides have changed, and will use a different storepath for the overridden and non-overridden version
<clever>
ldlework: so that kind of mess cant happen
<sphalerite_>
iqubic: if you don't know what they do you probably don't need them :)
<sphalerite_>
iqubic: what do you want kernel patches for?
<iqubic>
acpi is giving me weird results.
<iqubic>
Battery 0: Unknown, 97%
<sphalerite_>
do you know of a patch that fixes it?
<clever>
Battery 0: design capacity 5200 mAh, last full capacity 1741 mAh = 33%
<clever>
iqubic: thanks for reminding me to check, this battery is toast
<iqubic>
sphalerite_: I don't
<iqubic>
I'm not sure there is one.
<iqubic>
I also want to fix my touchpad.
<iqubic>
I'm going to try the latest unstable kernel to get that to work
Thra11 has quit [(Ping timeout: 255 seconds)]
<sphalerite_>
iqubic: yeah nixpkgs is probably not going to be where you find a patch to fix that. If you find one floating about on the internet that you'd like to try I can help you apply it if you need help with that though.
Thra11_ has joined #nixos
Thra11_ has quit [(Client Quit)]
<iqubic>
I will.
<clever>
Battery 0: design capacity 2400 mAh, last full capacity 1543 mAh = 64%
Thra11 has joined #nixos
<clever>
hmmm, this battery looks a bit better
<iqubic>
I have other things I need to work on right now though.
<clever>
wait no
<clever>
its % is better, but its capacity is much worse, lol
<iqubic>
Did you have a spare battery laying around?
<clever>
iqubic: i have 3
<iqubic>
How does acpi give such detailed information for you?
<clever>
Battery 0: design capacity 7800 mAh, last full capacity 3542 mAh = 45%
<clever>
thats better
iqubic has quit [(Quit: Page closed)]
<sphalerite_>
clever: I'm trying to nix-build -E 'with import <nixpkgs> { system = "armv7l-linux"; }; nix', but it says while setting up the build environment: executing ‘/nix/store/1zfrihkxqjqph4kd70syz14zbkmhcps5-busybox’: No such file or directory
<sphalerite_>
clever: I can run /nix/store/1zfrih*-busybox ash just fine though
glenn has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] flokli opened pull request #30695: libcap: already patch Make.Rules in prePatch (staging...libcap-pkgconfig) https://git.io/vdAGE
NixOS_GitHub has left #nixos []
<clever>
sphalerite_: oh, right, nix sandbox, the qemu isnt present
<clever>
sphalerite_: the closure of qemu-user has to be added to build-sandbox-paths
justanotheruser has joined #nixos
<sphalerite_>
what's a neat way to do that in the system config?
<Dezgeg>
now which one's faster, qemu or the chromebook?
<sphalerite_>
that's the question
<sphalerite_>
Now I'm trying to get your binary cache working on my main laptop too >_>
<clever>
even if qemu is 50% the speed, you can still build at an effective 150%, by building across both machines with nix build slaves
<sphalerite_>
oh I was just using the wrong version of nixpkgs
michaelpj has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
demego has quit [(Read error: Connection reset by peer)]
michaelpj has joined #nixos
<sphalerite_>
will compare qemu vs metal as soon as the deps have finished downloading…
<kuznero>
After patchelf with --set-interpreter and --set-rpath I have my executable fail with: Failed to bind to CoreCLR at '/home/kuznero/Projects/Kuznero/public/nixpkgs-dotnet/cli/cli-2.0.2/.dotnet_stage0/x64/shared/Microsoft.NETCore.App/2.0.0/libcoreclr.so'
glenn has quit [(Ping timeout: 264 seconds)]
<sphalerite_>
oh yeah, I imagine qemu will be a fair bit faster also partly due to storage speed. I've got an nvme ssd in the big laptop and an SD card in the chromebook :p
<kuznero>
Is that an indication that I need to patchelf --set-rpath all the .so libs as well?
<clever>
sphalerite_: also, how many cores in the chromebook vs laptop?
<sphalerite_>
clever: 4 in chromebook, 4 with 2 threads each on main laptop
<clever>
so it will be even to double, depending on how hyperthreading handles qemu-user
<sphalerite_>
well the chromebook spent 10 minutes running cp on an 800MB dir
<clever>
thats mostly IO bound
<sphalerite_>
exactly
<sphalerite_>
so I think that'll give the big laptop a major edge
<sphalerite_>
also — the kernel took about 6 hours I think. Funny thing is, I'm probably not even going to use it >_>
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jwiegley pushed 1 new commit to master: https://git.io/vdAZD
<NixOS_GitHub>
nixpkgs/master 89720d8 John Wiegley: coqPackages_8_7: New expression, but don't make it the default yet
NixOS_GitHub has left #nixos []
katyucha has quit [(Ping timeout: 240 seconds)]
sphalerite has joined #nixos
<sphalerite>
heeey are we back?
<sphalerite>
we are!
<sphalerite_>
whoopee!
mrkgnao has quit [(Ping timeout: 248 seconds)]
<ldlework>
Hmm, things compiled with mcs work 👍 with mono
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to release-17.09: https://git.io/vdAnU
<NixOS_GitHub>
nixpkgs/release-17.09 52f381c Tim Steinbach: Merge pull request #30689 from pbogdan/update-irssi...
NixOS_GitHub has left #nixos []
fendor has joined #nixos
<sphalerite_>
Is theere a simple way to get the output of ps -ef --forest but rather than showing everything, only showing all the descendent processes of a given process?
<sphalerite_>
--ppid allows showing only child processes of a given process, but I want all descendentes
<clever>
i use either "ps -eH x" or pstree for that kind of output, but they show the entire system
<sphalerite_>
checking whether we are cross compiling... no
<sphalerite_>
Hehehehe autotools has been bamboozled
<clever>
:D
<clever>
one minor problem ive run into, qemu emulates a v7 with v6 backwards compat
<sphalerite_>
pstree -p seems to do what I want
<clever>
openssl (i think) will notice the v7 support when doing a v6 only build, and force v7 opcodes into the product
<clever>
and then things fail when moved to a real v6, that lacks v7 support
ylwghst has quit [(Remote host closed the connection)]
<sphalerite_>
ah. I guess that can be remedied by getting qemu to emulate armv6?
<sphalerite_>
armv6 only that is
<clever>
i think there is a CLI arg you can pass to do that
<clever>
which qemu-wrap can set
<sphalerite_>
In my case it won't be a problem because the chromebook is armv7
<clever>
but the bigger issue is that the ELF header saying v6 or v7 is too complex for binfmt-misc
<Mic92>
sphalerite_: emulation is pretty slow
<clever>
so you have to lock the entire x86 machine to one type
<sphalerite_>
ok, qemu is definitely a lot slower thtan native compilation
<sphalerite_>
Mic92: yes, just noticed that :D
<Dezgeg>
heh
<clever>
sphalerite_: how many mhz on the chromebook?
<sphalerite_>
clever: ah, that sucks
<ldlework>
I'm trying `nix-env -i dotnetev` but it says the selector isnt' found. I also tried dotnetenv40
<kuznero>
clever: after I have patchelf executable as well as all the *.so libraries that were distributed with the executable I still cannot execute the binary. It is complaining that one of the libs cannot be bound. Then `ldd lib.so` shows that libunwind is not found. But libunwind is the arg for default.nix as well as buildInput. What am I missing potenti
<kuznero>
ally?
<clever>
kuznero: buildInputs dont show up in the rpath when you patchelf
<clever>
kuznero: you have to add libunwind to the rpath
<sphalerite_>
ldlework: yeah that's a linux-specific thing. Just make it null in an overlay
<sphalerite_>
ldlework: if that breaks anything it wasn't going to work on OSX anyway :p
<kuznero>
clever: how do I do that?
<clever>
kuznero: by adding ${libunwind}/lib to the rpath list
<kuznero>
clever: Thanks!
<ldlework>
sphalerite it complains that features.h is missing
<sphalerite>
ldlework: what does?
<ldlework>
In file included from libattr.c:25:
<ldlework>
../include/attr/xattr.h:23:10: fatal error: 'features.h' file not found
<sphalerite>
ldlework: also it really bothers me how your nick isn't Idlework :p
<ldlework>
🤣
<ldlework>
I think something with libgnomecups?
jcarr has quit [(Read error: Connection reset by peer)]
<sphalerite>
ldlework: could you post a full build log?
jcarr has quit [(Read error: Connection reset by peer)]
leat has joined #nixos
<clever>
libuuid.out 0 s /nix/store/aswq968ln90nrykgi7902lg80vmibygf-util-linux-2.29.2/lib/libuuid.so
<kuznero>
clever: what means out?
<clever>
kuznero: libuuid is just an alias to util-linux
jcarr has joined #nixos
<clever>
and util-linux is the one that has libuuid.so
<clever>
${libuuid.out}/lib/
jcarr has quit [(Read error: Connection reset by peer)]
<clever>
heading off to bed now
<sphalerite>
clever: are you in Europe physically or just with your biological clock? xD
<kuznero>
clever: I have tried ${libuuid}, ${utillinux} - none have libuuid.so. So, what is the difference with ${libuuid.out}, why does it have it, but two others not
<kuznero>
?
jcarr has joined #nixos
<clever>
kuznero: util-linux defaults to the .bin output
<sphalerite>
ldlework: same for alsa, it's linux-specific. Again, do you have allowBroken set to true? It shouldn't even be trying to build this stuff
<kuznero>
clever: thanks
jcarr has quit [(Read error: Connection reset by peer)]
<ldlework>
sphalerite I have allowUnsupportedPlatform because otherwise gtk-sharp just refused to build. Without gtk-sharp, you can do basically no windowed programming with Mono on OSX.
jcarr has joined #nixos
<sphalerite>
ldlework: if you unset it, what error do you get?
jcarr has quit [(Read error: Connection reset by peer)]
<ldlework>
gtk-sharp/2.0.nix:18 is not supported on ‘x86_64-darwin’, refusing to evaluate.
<sphalerite>
it should be a lot quicker to give you helpful errors if you don't have allowUnsupportedPlatform enabled
<ldlework>
And you cannot override meta.platforms with an override or overlay
<infinisil>
I'm trying out networkmanager the first time, isn't there supposed to be a GUI? Because I don't have one
<ldlework>
I should probably just give up trying to mono on OSX with Nix for now. It doesn't seem like many people use mono on OSX.
<ldlework>
At least with Nix I mean.
<symphorien>
infinisil: nm-applet
<infinisil>
Ohhhh
<infinisil>
I thought it would be something like that
<ldlework>
sphalerite I did "nix-env --show-trace -I nixpkgs=/Users/dustinlacewell/src/nixpkgs -iA nixpkgs.gtk-sharp-2_0" after editing the file to allow darwin, and I still get Package ‘gtk-sharp-2.12.10’ in /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/pkgs/development/libraries/gtk-sharp/2.0.nix:18 is not supported on ‘x86_64-darwin’, refusing to evaluate.
<ldlework>
error: attribute ‘nixpkgs’ in selection path ‘nixpkgs.gtk-sharp-2_0’ not found
<sphalerite>
didn't realise you were using nix-env
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] maximedenes opened pull request #30698: Partial revert of 89720d851aafe7be2aafc129fd729941a4db18af. (master...fix-coq-dpdgraph) https://git.io/vdAWn
NixOS_GitHub has left #nixos []
<kuznero>
sphalerite: my problem now is that one of the binaries that I patchelf'ed requires `export LD_LIBRARY_PATH="${icu}/lib:$LD_LIBRARY_PATH"`. Currently I do it on buildPhase instead of shellHook.
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to release-17.09: https://git.io/vdAW7
<NixOS_GitHub>
nixpkgs/release-17.09 47d0cf7 Vladimír Čunát: gcj, gccgo: port fixes for 4.9 to 6...
NixOS_GitHub has left #nixos []
<ghostyyy>
hi, i am having trouble debugging my initramfs, i have set boot.availableKernelModules = ["usbhid" "hid_generic" "ahci" "xhci_pci" "xhci_hcd" "hid" "ehci_hcd"];
<ghostyyy>
but i still cant type into the stage 1 debug shell when i set debug1 kernel option
<ghostyyy>
am i missing any?
<samueldr>
laptop, tower? USB keyboard I assume?
<ghostyyy>
also i do not get an error when i try to include modules in that that dont exist, which i find extremely worrying
<ghostyyy>
usb keyboard, yeah
<ghostyyy>
its a tower
erictapen has joined #nixos
ma27 has quit [(Ping timeout: 255 seconds)]
<samueldr>
try adding `atkbd`
<ghostyyy>
ah ill add that too
<samueldr>
not sure it'll help
<samueldr>
that's usually for PS/2 kayboards
<ghostyyy>
i added a few more
bennofs has quit [(Ping timeout: 252 seconds)]
<ghostyyy>
nope didnt work
glenn has quit [(Remote host closed the connection)]
glenn has joined #nixos
ssmike has quit [(Ping timeout: 248 seconds)]
betaboon has quit [(Ping timeout: 258 seconds)]
<ldlework>
sphalerite heh this is a rabbit hole
<sphalerite>
ldlework: not entirely surprised :/
<sphalerite>
ghostyyy: can you boot into some linux system with the keyboard available?
<ldlework>
It might take people smarter than me to get gtk-sharp (and so dotnet framework all together) going on OSX
<sphalerite>
ghostyyy: if so, have a look at what driver it's using (probably the USB HID driver but who knows). ls -l /dev/input/by-id to find out which event node it is, then you can find the driver using ls -l /sys/class/input/eventXY/device/device/driver
<ldlework>
I think brew has abandoned gtk support for Mono
<ldlework>
And uses Quartz
<MichaelRaskin>
You could make _all_ modules available in initrd, actually.
<MichaelRaskin>
That would require a large initrd, but why care.
abbradar has joined #nixos
<ghostyyy>
MichaelRaskin, how do you do that?
<ghostyyy>
i have been at this for two days
<ghostyyy>
i am far beyond caring about initrd sizes at this point
<ghostyyy>
sphalerite, i dont see any drivers in the /sys path
<sphalerite>
ghostyyy: did you substitute XY for the number of the device?
<ghostyyy>
yes, i see some files, bind, new_id, uevent, unbind
<ghostyyy>
and some numeric identifiers for something else
<ldlework>
sphalerite gtk-sharp relies on libgnomegui which relies on libcanberra which I disabled, and it go so far to start compling and compiles for a while but then fails "No package 'libcanberra' found" from the compiler.
<ldlework>
So pretty close, but I don't think I can disable libgnomegui :)
<ghostyyy>
i have it in a separate initrd file that i specify with boot.grub.extraInitrd option
<Dezgeg>
debug1 breaks before loading any of the modules, doesn't it?
<ghostyyy>
it seems so, yeah
<MichaelRaskin>
That should build you a huge initramfs that hopefully can load your keyboard module.
<ghostyyy>
MichaelRaskin, wow, thank you O_O
<MichaelRaskin>
It also includes cryptsetup by default
<Dezgeg>
well how about just boot.debug1devices instead?
<MichaelRaskin>
Dezgeg: well, the problem is lack of keyboard.
<MichaelRaskin>
My initrd run eudev to load keyboard drivers.
<MichaelRaskin>
And everything else.
<Dezgeg>
yes, if you literally put 'debug1' on the command line, it breaks to the prompt before loading the drivers
<ghostyyy>
if there is some way to break right before trying to mount root
<ghostyyy>
because thats where the trouble is
<sphalerite>
ldlework: right, I'm at a loss and need some sleep… sorry
<ldlework>
heh I wear everyone out :D
<sphalerite>
ghostyyy: boot.debug1|debug1) # stop right away boot.debug1devices) # stop after loading modules and creating device nodes boot.debug1mounts) # stop after mounting file systems
<sphalerite>
ldlework: nah it's mostly just not having slept enough last night :p
<Dezgeg>
so no amount of putting things to boot.initrd.availableKernelModules affects plain 'debug1'
<ghostyyy>
oooooooooh
<ldlework>
sphalerite thanks for your help today
<ghostyyy>
Dezgeg, ah!
<ldlework>
At least we tracked it down to libcanberra missing gdk/gdkx.h
<ghostyyy>
ill try debug1devices then!
<sphalerite>
ldlework: my best guess from there would be to patch libcanberra not to require it...
<sphalerite>
probably best to look at how homebrew does it, I think they have libcanberra?
<MichaelRaskin>
Ouch. I haven't used NixOS initramfs for too long.
<ldlework>
They do
ryantrinkle has quit [(Ping timeout: 248 seconds)]
<ghostyyy>
:| so debug1devices didnt work... furthermore, why doesnt it give me an option to put me in the initramfs shell after it cant mount root?
<ghostyyy>
it just tries to mount root
<Dezgeg>
did you spell it "boot.debug1devices" ?
<ghostyyy>
i put it in the grub menu editor on the linux line
<symphorien>
ghostyyy: boot.shellonfail
<MichaelRaskin>
debug1mounts maybe
<MichaelRaskin>
boot.debug1mounts could be
<sphalerite>
ghostyyy: boot.shell_on_fail may also be useful
jb55 has joined #nixos
<symphorien>
not sure about the exact spelling
<sphalerite>
ghostyyy: see nixos/modules/system/boot/stage-1-init.sh for all the options
hiratara has quit [(Ping timeout: 252 seconds)]
hiratara has joined #nixos
Nobabs27 has joined #nixos
Ivanych has quit [(Ping timeout: 240 seconds)]
chris| has quit [(Quit: Quit)]
chris| has joined #nixos
<ldlework>
How can I tell what provides gdk/gdkx.h ?
pikajude has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<ldlework>
Enable GTK+: no
* ldlework
gasps!
<MichaelRaskin>
No idea, but the answer is gtk3.dev
<ldlework>
could this be it?!
<ldlework>
MichaelRaskin haha
<MichaelRaskin>
I mean, I really don't have a good answer to «how to tell».
<ldlework>
MichaelRaskin I'm trying to build libcaberra on OSX and its blowing up because it can't find that header.
<ldlework>
MichaelRaskin yeah fair enough
<MichaelRaskin>
Do you pass pkgconfig?
<MichaelRaskin>
Because it is inside include/gtk-3.0/
<MichaelRaskin>
Not just include/
<MichaelRaskin>
this is supposed to be handled by pkgconfig.
<ghostyyy>
cat the header to /dev/ram0 then pass /dev/ram0 to --header
<ghostyyy>
why in the absolute heck do i need to do that
<ghostyyy>
well, i am at least finally able to get into the system, although i have to do this bizarre "cat the luks header to /dev/ram0 before calling cryptsetup" ritual
pikajude has joined #nixos
<ldlework>
I'm totally lost. 😔
civodul has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 2 new commits to master: https://git.io/vdABX
<NixOS_GitHub>
nixpkgs/master fe41e17 Vincent Laporte: ocamlPackages.merlin: fix homepage URL
<NixOS_GitHub>
nixpkgs/master 97d02a7 Vincent Laporte: 0ad: fix homepage URL
NixOS_GitHub has left #nixos []
Thra11 has quit [(Quit: IRC for Sailfish 0.9)]
<ldlework>
MichaelRaskin do you think maybe the gtk support for darwin just isn't there yet?
<MichaelRaskin>
No idea.
<ldlework>
I mean I can build both gtk2 and gtk3 on their own I guess.
<ldlework>
Just this damn libcanberra can't find either of them
<ldlework>
gtk-sharp wont build without libgnome and libgnome wont build without libcanberra
<MichaelRaskin>
Try explictly adding -I to NIX_CFLAGS_COMPILE?
<MichaelRaskin>
Just to check where the problem is
nixos1022 has quit [(Read error: Connection reset by peer)]
<ldlework>
I don't know how to do that :3
civodul has quit [(Ping timeout: 255 seconds)]
<MichaelRaskin>
Just set NIX_CFLAGS_COMPILE as a parameter to mkDerivation
<Unode>
Hi all, currently nixpkgs includes (for instance) mopidy and a bunch of extensions mopidy-soundcloud, mopidy-spotify, ... If I want to run mopidy as my user, how do you make it find such extensions? It doesn't seem to by default.
<Unode>
in other words, how are these extensions supposed to be used in nixos?
Alling has joined #nixos
<MichaelRaskin>
And the Nix expression?
<sphalerite>
Unode: there seems to be a nixos module for it
dhess has joined #nixos
<Alling>
How can I get access to beautifulsoup4 in mitmproxy? It seems like SUCH a small change, just adding it to propagatedBuildInputs or something. How do I do this?
<Unode>
sphalerite: I saw the module but I didn't want to run it system-wide as otherwise I have to store secrets in system config.
<Unode>
and then when I tried as user, it made me wonder how would this be used.
<sphalerite>
Unode: and in there it seems to use python's buildEnv so you should be able to get it working for your user by e.g. installing `python.withPackages (ps: with ps; [mopidy mopidy-foo mopidy-bar])`
<Unode>
(the question is broader as it applies to other such kinds of modules)
<Alling>
Background: In mitmproxy, I want to run a Python script which uses bs4. But mitmproxy cannot "see" global Python packages, because it has its own Python environment.
<ldlework>
MichaelRaskin also with your NIX_CFLAGS_COMPILE addition
<Unode>
sphalerite: so you basically "re-install" it on the user environment while wrapped with said extensions?
<ldlework>
though the result is the same with or without
<ldlework>
and the platforms to support darwin so it will build
<Unode>
sphalerite: I've added each one to systemPackages. Though I guess unecessary if they are to be installed in user environment anyway.
<sphalerite>
Unode: yeah you install the python env
<Unode>
I see
<Unode>
sphalerite: thanks. I'll give that a look.
Arcaelyx_ has quit [(Ping timeout: 240 seconds)]
<MichaelRaskin>
ldlework: well, add a preConfigure, echo NIX_CFLAGS_COMPILE there. Maybe ls the added include directory.
Arcaelyx has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to release-17.09: https://git.io/vdA0g
<NixOS_GitHub>
nixpkgs/release-17.09 7a6c7ab Tuomas Tynkkynen: x42-plugins: Hack to attempt fixing the perpetual build problem...
<sphalerite>
does nix-build -E 'with import <nixpkgs> {}; python.withPackages (ps: with ps; [mopidy mopidy-spotify mopidy-soundcloud mopidy-youtube])' give more helpful info by any chance?
<Unode>
sphalerite: gives no error and /nix/store/f7y7gc6kl9icaivskkrk3sl55cpgcdhc-python-2.7.14-env
<sphalerite>
and nix-env -iE (same thing)?
<sphalerite>
my best guess would be a collision
<Unode>
error: attempt to call something which is not a function but a set, at undefined position
<Unode>
or you mean "nix-env -iE ('with ...youtube])') ?
<Unode>
sphalerite: that give a very odd error message. I'm probably doing something wrong.
<sphalerite>
what's the error message?
<Unode>
error: getting status of ‘/home/unode/with import <nixpkgs> {}; python.withPackages (ps: with ps; [mopidy mopidy-spotify mopidy-soundcloud mopidy-youtube])’: No such file or directory
<ghostyyy>
opengl core profile version string: 4.5.0 NVIDIA 384.90
<sphalerite>
ghostyyy: glxgears is a terrible benchmark
<ghostyyy>
sure, but it's an order of magnitude difference
<ghostyyy>
(at least)
<sphalerite>
There could be any number of reasons for that
<sphalerite>
Do you notice a difference in performance with stuff that actually uses your graphics properly?
<ghostyyy>
i havent used any graphics applications yet
<ghostyyy>
i just wanted to make sure it was working
<sphalerite>
Try that before trying to dig into optimising for glxgears :p
<ghostyyy>
well, im just wondering where my order of magnitude of framerate went
goibhniu has quit [(Ping timeout: 258 seconds)]
<sphalerite>
It's not relevant
hamishmack has quit [(Read error: Connection reset by peer)]
hamishmack has joined #nixos
<Unode>
ghostyyy: optimus/bumblebee?
<sphalerite>
It's 0.1ms of difference in render time. If it scales up and turns out to amount to 10ms when rendering is a lot more complex, *that's* where it starts mattering
<dhess>
gchristensen: around?
<Unode>
i.e do you have more than one graphic card on your system?
<sphalerite>
But an order of magnitude isn't very meaningful in the context of glxgears
<ghostyyy>
Unode, i think so, there is one in my mohterbord i dont use although its an amd
<Unode>
ghostyyy: then glxgears might just be using the wrong one.
<Unode>
wait, amd?
<ghostyyy>
the video card on the motherboard is an amd
<Unode>
ghostyyy: check the output of glxinfo. Which Vendor do you see there?
<ghostyyy>
there i see nvidia
<gchristensen>
dhess: sort of, what's up?
<Unode>
ghostyyy: then there shouldn't be any confusion.
<dhess>
gchristensen: you wrote this new multi-user installer for Darwin, yes?
<gchristensen>
yeah
p4cman has quit [(Quit: Connection closed for inactivity)]
sigmundv__ has joined #nixos
<ghostyyy>
the drivers are the latest version too
<dhess>
gchristensen: so I've been running Nix for years on Darwin with the old single-user setup, but am just setting up a new Mac, so decided to try the multi-user installer
<gchristensen>
oh nice, are you on high sierra? :/
<Unode>
ghostyyy: try something heavy instead.
<dhess>
gchristensen: yeah is that an issue?
<ghostyyy>
yeah, i guess ill try that
<ghostyyy>
i think blender has a benchmarking program
<gchristensen>
yeah :(
<dhess>
gchristensen: I just took my old environment over there and it seems to be working OK so far except for a permission issue
<gchristensen>
oh interesting
<dhess>
gchristensen: what's the High Sierra issue?
<gchristensen>
nix trips a bug in the kernel where nix kills the whole system :?
<gchristensen>
I've gotta go, but I'll be back in a bit
<dhess>
ohhh shit
<Unode>
ylwghst: even with the simple examples on the python page, "nix-env -iA nixpkgs.myEnv" fails with: "error: attribute ‘nixpkgs’ in selection path ‘nixpkgs.myEnv’ not found" any suggestions?
<dhess>
right I think I saw something on the tracker about that.
<gchristensen>
dhess: theere is an issue about H.S. in the nixos/nix issue tracker
<dhess>
Anyway that's not my current problem. I'll wait until you're back.
<Unode>
ylwghst: I get the same error. There's something off with 'nixpkgs'. When I do "nix-env -iA nixpkgs...." what is nixpkgs? what does it refer to?
<dmj`>
is it possible to use multiple authentication providers w/ the nixos oauth2 proxy module
civodul has quit [(Ping timeout: 255 seconds)]
<Unode>
is "nixpkgs" the name of the channel ? or something else?
<sphalerite>
Unode: ~/.nix-defexpr/*/nixpkgs. Nix-env is a real pain in the arse in that way. It's almost always better to do nix-env -f '<nixpkgs>'
<dmj`>
Unode: nixpkgs isn’t the name of a channel, nixpkgs-unstable would be though. <nixpkgs> is a symbol that resolve to the location of your NIX_PATH
<sphalerite>
Nix-env needs to go die in a fire IMHO
<Unode>
sphalerite: seems like I don't have ~/.nix-defexpr/channels/nixpkgs only "nixos" and "nixos-unstable"
<dmj`>
yea, nix-shell/build 4 lyfe
<Unode>
is there something special about the name nixpkgs?
<dmj`>
Unode: <nixpkgs> resolves to NIX_PATH which is the location of where your nixpkgs on disk is
<sphalerite>
Unode: exactly. That's why nix-env -iA nixpkgs.xyz won't work
<sphalerite>
Unode: nix-env -f '<nixpkgs>' -iA xyz is much more reliable and you should use that instead
<dieggsy>
anyone worked with chicken scheme installed with nix? chicken-install keeps trying to use /usr/local/bin/csc even though PREFIX was set correctly...
<Unode>
sphalerite: so "nix-env -f '<nixpkgs>' -iA pkg"?
<sphalerite>
Reliable, and consistent with other tools
<Unode>
sphalerite: you were quicker.
<sphalerite>
:)
<Unode>
any reason why I shouldn't simply alias nix-env to "nix-env -f '<nixpkgs>'" ?
<sphalerite>
In case you want to use nix-env with -f passing a different path
<Unode>
sphalerite: if I pass 2 -f... does the 2nd override the 1st?
<sphalerite>
I do recommend making an alias for it, just probably not calling it nix-env
<sphalerite>
Actually I don't know that
<sphalerite>
If it does then yeah that alias is great
<Unode>
sphalerite: if yes, then ... it doesn't really matter right?
<sphalerite>
Could you try it and let me know? I'm on my phone so I can't really check
<Unode>
Let me see if I understand this.
<justin-sleep>
does nixos have a way to easily view/change compilation flags a la gentoo?
<justin-sleep>
looking for an analogue to USE flags
<Unode>
Overriding NIX_PATH with 2 paths with different names, and then checking if the 2nd is picked up. sphalerite something along these lines?
<sphalerite>
justin-sleep: not quite as uniform, but yes
dbmikus has quit [(Read error: Connection reset by peer)]