<hodapp>
so, the R package installs /nix/store/i8cbhc7q0l1lkq3ynzxx0q5dh4s3dmd1-R-3.2.3/lib/R/share/texmf/tex/latex/Sweave.sty and I somehow need TeX to see this; what is the current kosher way of accomplishing this?
ilja_kuklic has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
<Ankhers>
I am trying to use XMonad with Taffybar on NixOS. XMonad starts perfectly fine upon logging into the system. However, Taffybar does not start. https://gist.github.com/ankhers/9102bca5ce154125f7b83f7701db7411 is what I have to install XMonad and Taffybar. Is this correct, or am I installing taffybar incorrectly?
markus1199 has joined #nixos
markus1189 has quit [(Ping timeout: 240 seconds)]
eacamero_ has joined #nixos
AllanEspinosa has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
eacamero_ has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
AllanEspinosa has quit [(Ping timeout: 260 seconds)]
lsix has quit [(Remote host closed the connection)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
Shou has quit [(Ping timeout: 255 seconds)]
propumpkin has joined #nixos
MoreTea has quit [(Ping timeout: 240 seconds)]
copumpkin has quit [(Ping timeout: 256 seconds)]
vtomole has joined #nixos
mizu_no_oto has joined #nixos
AmiableCitizen has quit [(Ping timeout: 258 seconds)]
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
stepcut has quit [(Remote host closed the connection)]
indi_ has quit [(Ping timeout: 240 seconds)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
derjohn_mobi has joined #nixos
derjohn_mob has quit [(Ping timeout: 260 seconds)]
tghume has quit [(Quit: WeeChat 1.5)]
tghume has joined #nixos
nekroze has quit [(Quit: leaving)]
acowley is now known as acowley_away
nekroze has joined #nixos
seagreen has quit [(Quit: WeeChat 1.6)]
mbrgm has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
georges-duperon has quit [(Ping timeout: 252 seconds)]
AmiableCitizen has joined #nixos
<nekroze>
Is it possible to place an assert in a config block? I would like to define an option and then run an assert on it but nix does not allow me to put the assert in (or out) of the modules config section
AmiableCitizen has quit [(Ping timeout: 240 seconds)]
sellout- has joined #nixos
hexagoxel has quit [(Ping timeout: 258 seconds)]
danielrf has joined #nixos
hexagoxel has joined #nixos
Sonarpulse has quit [(Ping timeout: 258 seconds)]
martijn923 has quit [(Ping timeout: 240 seconds)]
joepie91 has quit [(Read error: Connection reset by peer)]
joepie91 has joined #nixos
joepie91 has quit [(Changing host)]
joepie91 has joined #nixos
tg has quit [(Ping timeout: 255 seconds)]
lverns has quit [(Quit: Konversation terminated!)]
<justanotheruser>
whats the difference between nixos-install and nixos-rebuild switch
Fare has joined #nixos
afh has quit [(Ping timeout: 272 seconds)]
mizu_no_oto has joined #nixos
systemfault has quit [(Quit: Bye!)]
chpatrick has left #nixos []
phanimah1sh has joined #nixos
athan has joined #nixos
phanimahesh has quit [(Ping timeout: 240 seconds)]
justin_ has quit [(Ping timeout: 240 seconds)]
alx741 has quit [(Quit: alx741)]
AmiableCitizen has joined #nixos
systemfault has joined #nixos
mguentner has quit [(Quit: WeeChat 1.6)]
danharaj has quit [(Ping timeout: 248 seconds)]
<nekroze>
justanotheruser: nixos-install can target different roots other than /
mguentner has joined #nixos
<nekroze>
justanotheruser: I do not believe it is possible to install to a new chroot for example with nixos-rebuild but that is what nixos-install is fore
<NixOS_GitHub>
[nixpkgs] copumpkin opened pull request #21943: [WIP, don't merge] make-disk-image: change to be less VM-centric (master...images-with-less-vm) https://git.io/vMKHP
stepcut has joined #nixos
<nekroze>
Is it possible to place an assert in a config block? I would like to define an option and then run an assert on it but nix does not allow me to put the assert in (or out) of the modules config section
athan has quit [(Ping timeout: 240 seconds)]
athan has joined #nixos
indi_ has joined #nixos
phanimahesh has joined #nixos
indi_ has quit [(Ping timeout: 245 seconds)]
phanimah1sh has quit [(Ping timeout: 260 seconds)]
<justanotheruser>
thanks
magnetophon has joined #nixos
phanimah1sh has joined #nixos
uralbash has joined #nixos
phanimahesh has quit [(Ping timeout: 240 seconds)]
phanimahesh has joined #nixos
phanimah1sh has quit [(Ping timeout: 240 seconds)]
stepcut has quit [(Remote host closed the connection)]
stepcut has joined #nixos
<contrapumpkin>
gchristensen: real0m31.868s
<nekroze>
How can I disable mprotect on a binary in the nix store?
<nekroze>
when I have grsec and pax enabled
<justanotheruser>
trying to reinstall nixos with zfs, I get grub-install: error: filesystem 'zfs' doesn't support blocklists
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
mexisme has joined #nixos
mguentner2 has joined #nixos
mexisme2 has quit [(Ping timeout: 245 seconds)]
systemfault has quit [(Quit: Bye!)]
mguentner has quit [(Ping timeout: 258 seconds)]
phanimahesh has quit [(Ping timeout: 252 seconds)]
tg has joined #nixos
systemfault has joined #nixos
systemfault has quit [(Client Quit)]
zagy has joined #nixos
<puffnfresh>
contrapumpkin: did you end up being able to build a XNU VM?
<contrapumpkin>
puffnfresh: haven't put any more work into that in a while. Been doing more NixOS stuff recently for work reasons
sdothum has quit [(Quit: ZNC - 1.6.0 - http://znc.in)]
<contrapumpkin>
limited free time :)
<puffnfresh>
yeah, sure thing
<puffnfresh>
have you got the work pushed anywhere?
<contrapumpkin>
that one takes about 2 minutes on my EC2 box
<contrapumpkin>
not 100% sure the fakechroot one works yet, even though it doesn't complain :)
<puffnfresh>
looks pretty good
<contrapumpkin>
the current one only has switch-to-configuration and the activation script under a VM
<contrapumpkin>
as far as I can tell, grub-install is unfriendly to this sort of thing
<contrapumpkin>
and the activation script assumes (not entirely unreasonably) that it owns the machine
<contrapumpkin>
it might actually be possible
<contrapumpkin>
I think you can tell it which "device" to send the bootloader modifications to and which folder to write its files to, separately
<contrapumpkin>
which would enable this sort of machinery, but I'm not going to do that for now
<nekroze>
justanotheruser: Sounds like you are trying to have your /boot dir on zfs, you can't do that
<justanotheruser>
I don't think I was, but I fixed it, thanks
<nekroze>
justanotheruser: what was the problem?
<justanotheruser>
I was trying to isntall it to a USB drive, I made a partition in a harddrive that also had a ZFS partition on it and that worked for some reason
<justanotheruser>
(installing to that new partition)
<nekroze>
justanotheruser: huh
<justanotheruser>
yeah, no clue why it worked but it's what I did previously
<justanotheruser>
USB + 8 HDDs where 1 of the HDD has a boot partition. I can't install grub to USB, but I can install to the HDD with the boot partition
athan has quit [(Remote host closed the connection)]
seagreen has joined #nixos
indi_ has joined #nixos
zagy has quit [(Quit: Leaving.)]
nekroze has quit [(Quit: Lost terminal)]
Fare has quit [(Ping timeout: 245 seconds)]
AllanEspinosa has quit [(Ping timeout: 240 seconds)]
shanemikel has joined #nixos
johann__ has joined #nixos
<shanemikel>
I usually write little entry script trampolines for my weird environment setups for other tools.. right now I'm trying to setup Emacs to use nix-shell for haskell-mode. Does the --run option to nix-shell expect the whole command to be the immediate next argument? I usually would use "$@" in a shell script for something like this, but if it expects a single argument I guess I'm SOL...
johann__ has quit [(Ping timeout: 240 seconds)]
copumpkin has joined #nixos
nekroze has joined #nixos
propumpkin has quit [(Ping timeout: 248 seconds)]
zraexy has joined #nixos
nekroze has quit [(Client Quit)]
<contrapumpkin>
anyone know if nix-env --set does anything other than create a couple of symlinks?
<NixOS_GitHub>
[nixpkgs] the-kenny pushed 1 new commit to master: https://git.io/vM6YT
<NixOS_GitHub>
nixpkgs/master a42044c Moritz Ulrich: rustc: Disable another failing tcp test on Darwin....
amir has quit [(Remote host closed the connection)]
MoreTea has joined #nixos
amir has joined #nixos
derjohn_mobi has joined #nixos
phanimahesh has quit [(Ping timeout: 240 seconds)]
phanimahesh has joined #nixos
ilja_kuklic has quit [(Ping timeout: 245 seconds)]
mkoenig has quit [(Read error: Connection reset by peer)]
mkoenig has joined #nixos
dramforever has joined #nixos
justanotheruser has quit [(Ping timeout: 248 seconds)]
<dramforever>
I see that in the nix manual [1] sharing packages between machines is supported over a network. Is there an equivalent over a usb drive (sneakernet)?
<gchristensen>
jophish_: he actually responded last time you asked, but highlighted the wrong person :)
<jophish_>
yeah, I saw that, I wasn't aware of this PR though
<gchristensen>
oh interesting
<jophish_>
It would be super useful to my work, import from derivation doesn't quite fit what I'd like to do
rly has joined #nixos
<NixOS_GitHub>
[nixpkgs] pSub deleted bitlbee-3.5 at 2ba9a67: https://git.io/vM66i
flemming has quit [(Ping timeout: 240 seconds)]
Itkovian has joined #nixos
altphi has joined #nixos
ryantrinkle has quit [(Ping timeout: 240 seconds)]
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
MinceR has quit [(Ping timeout: 258 seconds)]
indi_ has joined #nixos
Fare has quit [(Ping timeout: 255 seconds)]
MinceR has joined #nixos
altphi has quit [(Quit: altphi)]
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
cpennington has joined #nixos
indi_ has quit [(Remote host closed the connection)]
athan has quit [(Read error: Connection reset by peer)]
Fare has joined #nixos
zagy has quit [(Quit: Leaving.)]
<contrapumpkin>
niksnut: hey sorry, rereading my PR responses from earlier, they sound more angry than I intended! I just reacted negatively to your "works fine" comment given my points about it being a miserable experience :)
athan has joined #nixos
<Ankhers>
Would anyone be able to tell me how to run an arbitrary program on startup / login? I'm using XMonad and want taffybar to start automatically.
alx741 has joined #nixos
altphi has joined #nixos
<Fare>
xmonad probably has some configuration option for that, doesn't it?
<ikwildrpepper>
contrapumpkin: oh, which PR is that? :)
<dtz>
I don't care that most things wouldn't work, the foundation is what I want most
alphor has quit [(Quit: Bye!)]
<dtz>
but so what I'm linking is confirmation that on latest windows insider build, the nix installation script runs and can be used to, for example, 'nix-env -iA python' and run the python xD
mkoenig has quit [(Ping timeout: 240 seconds)]
<goibhniu>
that would be massive!
sellout- has joined #nixos
mkoenig has joined #nixos
<dtz>
it would be the greatest haha
<dtz>
now if only one could rip out the ubuntu bits and replace it with NixOS-on-windows... >:D
Avaq has joined #nixos
Lowl3v3l has quit [(Remote host closed the connection)]
<Nafai>
^ there's that, I wonder if it can be used to get Nix on WSL
<Nafai>
I just saw that on HN this morning
<Avaq>
Hi! I've configured NixOS to have a MongoDB server (`services.mongodb.enable = true`), but I would like to use a different version of MongoDB from a modified nix expression.
mkoenig has quit [(Remote host closed the connection)]
<ixxie>
is there anyway to gauge the build time for a given configuration?
mkoenig has joined #nixos
sellout- has quit [(Quit: Leaving.)]
<dtz>
neat, thanks Nafai
AmiableCitizen has joined #nixos
<gchristensen>
on these 96-core Cavium ThunderX's it takes _multiple seconds_ to enumerate all the CPUs..
<hodapp>
hummmmm. If I need to find a way to make a file that's in the R package - Sweave.sty, possibly dependencies - available to texlive in some fashion, should I file an issue on this as I've no idea where to start, or is there a better place?
<rly>
gchristensen: you bought one?
<gchristensen>
no
<rly>
It's not reasonable for it to take that long.
lsix has joined #nixos
<gchristensen>
I'm just the messenger
<hodapp>
96-core?
* hodapp
perks up
<rly>
gchristensen: I understand. Any idea where that comes from?
<gchristensen>
packet.net has them available available for $0.50/hr
* jophish_
wants to know what gchristensen's secret project is :)
<rly>
I think he just wants to run Hydra and perhaps running on ARM is cheaper.
<rly>
Or his company just wants to get some ARM experience.
<rly>
It's in general smart business to make sure your tech can run on multiplle instruction sets.
altphi has quit [(Ping timeout: 255 seconds)]
<rly>
(Not if you are a small shop, obviously.)
moio` has quit [(Remote host closed the connection)]
<hodapp>
Sometimes, small shops are the only places that it's feasible in.
ryanartecona has joined #nixos
mkoenig has quit [(Remote host closed the connection)]
<steveeJ>
when facing non-working display-manager.service, how do I increase the verbosity for debugging? the journal doesn't contain a single (EE)
<steveeJ>
I'm using slim with qtile
mkoenig has joined #nixos
rmeis has quit [(Ping timeout: 255 seconds)]
MoreTea has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Itkovian has joined #nixos
sellout- has joined #nixos
alphor has joined #nixos
<alphor>
after copying a closure to a remote machine's store, how do I get it in a specific profile?
<jophish_>
alphor: nix-env -iA <the derivation>
<peti>
niksnut: Will you be at FOSDEM?
altphi has joined #nixos
danharaj has joined #nixos
<alphor>
jophish_: is the derivation referring to the closure file itself or the package name? In both cases I get an attribute error.
<niksnut>
peti: I think so
<alphor>
a better question might be what's the attrib path of packages imported as closures
Avaq has quit [(Ping timeout: 240 seconds)]
altphi has quit [(Quit: altphi)]
<peti>
niksnut: If you go, let me know. I'll be there.
altphi has joined #nixos
<steveeJ>
why has kernel 4.8 been removed? 4.9 has a bug in the intel drm driver on my machine, now I'm stuck on a old profile
rly has quit [(Ping timeout: 245 seconds)]
<globin>
steveeJ: 4.8 is out of support, 4.4 should be available as LTS kernel
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<niksnut>
peti: great, will do :-)
<steveeJ>
globin: I see. do you have an expression for recent RCs or even linux-next?
<MoreTea>
I look forward to meeting more nixers at FOSDEM.
<LnL>
I'm also going :)
* gchristensen
is jealous
sdothum has quit [(Quit: ZNC - 1.6.0 - http://znc.in)]
<alphor>
no prob. does the derivation always refer to the absolute path of something in the store?
acowley_away is now known as acowley
<LnL>
if it's a closure you can just nix-store --import it
<LnL>
oh n/m you're trying to install it, then you need to know the absolute path
<chpatrick>
how do I get cabal repl to work in nix-shell?
<chpatrick>
it can't find libraries from system deps
<steveeJ>
globin: switching to 4.4 doesn't help, this means that the kernel is upset with something in the userspace that has changed since. the latest change to the xf86-video-intel driver was in september though
<jophish_>
chpatrick: you can do something like: -p 'haskellPackages.ghcWithPackages (p: with p; [acme-now])'
<chpatrick>
is there any way to set the LD_LIBRARY_PATH to include installed packages?
jgertm has quit [(Ping timeout: 240 seconds)]
Sonarpulse-Work has quit [(Ping timeout: 240 seconds)]
<eacameron>
Can someone point me to the docs for declarative config at the per-user level?
digitalmentat has joined #nixos
<gchristensen>
niksnut, ikwildrpepper: is there a way to get, via statsd, a metric along the lines of steps-per-machine?
<gchristensen>
(or if not via statsd, something that could ultimately emit this info)
<eacameron>
Is it just using `~/.nixpkgs/config.nix` in a similar way to `/etc/nixos/configuration.nix`?
<gchristensen>
eacameron: nix doesn't have tooling for declarative configs for users
matthewbauer has joined #nixos
<gchristensen>
it is feasible, just built out
<eacameron>
gchristensen: Oh...what's `~/.nixpkgs/config.nix` used for then?
<gchristensen>
allowUnfree / allowBroken / packageOverides / etc.
<shlevy>
contrapumpkin: nix-env --set is really just symlinks
<shlevy>
contrapumpkin: Also, does fakechroot use user namespaces? You can just doa realchroot :)
<contrapumpkin>
nah, it's library interposition
<contrapumpkin>
I didn't think we could do user namespaces inside Nix builders
<contrapumpkin>
if we can, that simplifies things quite a bit
<shlevy>
Why not?
<contrapumpkin>
not sure!
<contrapumpkin>
I thought the recent sandbox changes to use user namespaces on the outside messed them up for namespaces on the inside
<contrapumpkin>
if that works then it'll be super cute
<contrapumpkin>
although grsecurity will be unhappy :)
teknico has left #nixos []
uralbash1 has quit [(Ping timeout: 240 seconds)]
altphi has quit [(Quit: altphi)]
Sonarpulse-Work has joined #nixos
ixxie has quit [(Remote host closed the connection)]
Sonarpulse-Work has quit [(Ping timeout: 256 seconds)]
endformationage has quit [(Quit: WeeChat 1.5)]
endformationage has joined #nixos
p0le has joined #nixos
ryanartecona has joined #nixos
acowley is now known as acowley_away
alx741 has joined #nixos
<k0001>
How do I get a tarball for a derivation's closure? Something that I can copy around without using `nix-copy-closure`.
Rotaerk has quit [(Read error: Connection reset by peer)]
Rotaerk has joined #nixos
<k0001>
Something like `nix-store --query --references --include-outputs` gives the right info, perhaps?
nschoe has quit [(Quit: Program. Terminated.)]
<NixOS_GitHub>
[nixpkgs] copumpkin pushed 1 new commit to master: https://git.io/vMigh
<NixOS_GitHub>
nixpkgs/master 3ab26fd Dan Peebles: lkl: update to d7470730
goibhniu has quit [(Ping timeout: 240 seconds)]
endformationage has quit [(Quit: WeeChat 1.5)]
simendsjo has joined #nixos
mckeankylej has joined #nixos
<mckeankylej>
Has anyone had experiance with having their patches not get applied into the source? I am trying to patch grafana but my patches end up not applied.
zagy has quit [(Quit: Leaving.)]
<mckeankylej>
Is patching a default phase?
simendsjo has quit [(Client Quit)]
<Nadrieril>
k0001: nix-store --export perhaps ?
<k0001>
Nadrieril: ah! I missed that before. Yes, thanks :)
rmrfroot has joined #nixos
<Nadrieril>
:)
<rmrfroot>
what does the `env` attribute of `mkDerivation` do?
<contrapumpkin>
shlevy: so even ignoring the user namespace stuff, I should be able to replace each of those nix-env calls with two calls to `ln -s`?
<eacameron>
how do folks typically put /etc/nixos/configuration.nix under version control? Do you symlink to some git repo?
<rmrfroot>
eacameron: one way would be to put a git repo in `/etc/nixos` and then have your configuration.nix import stuff from that repo
stepcut has joined #nixos
<contrapumpkin>
there's also nothing forcing it to live under that path
<contrapumpkin>
it's just a default
<eacameron>
contrapumpkin: Ah, now that's interesting.
<rmrfroot>
true, you could import it from anywhere really
<eacameron>
contrapumpkin: And I totally forgot about import
<contrapumpkin>
eacameron, rmrfroot: or even start evaluation from elsewhere
<contrapumpkin>
like, you could literally erase /etc/nixos/configuration.nix if you wanted
<contrapumpkin>
also relevant; I have most of an update ready in a local repo that I'll push up sometime soon: https://github.com/NixOS/nix/pull/709
<eacameron>
contrapumpkin: how would you tell the os to look somewhere else?
stepcut_ has joined #nixos
<pikajude>
eacameron: nixos-config in your NIX_PATH
<pikajude>
i set mine to ~/.nixos/config.nix
<contrapumpkin>
what pikajude said :)
stepcut has quit [(Read error: Connection reset by peer)]
<rmrfroot>
cool!
<eacameron>
pikajude: contrapumpkin: ah. Wow.
jgertm has joined #nixos
<contrapumpkin>
eacameron: it's also possible to build a system derivation like any other derivation, just passing the configuration in as a parameter
<contrapumpkin>
but that's more DIYish
<eacameron>
contrapumpkin: DIY hah
<pikajude>
free range organic nix builds
<contrapumpkin>
:) the configuration parameter defaults to reading the nix path, but you can pass in something explicitly
<contrapumpkin>
pikajude: don't forget artisanal
<pikajude>
my interpreter is grain-fed!
<eacameron>
non GMO
<pikajude>
oh wait, i meant grass fed
<contrapumpkin>
I only feed it beer and foie gras
<eacameron>
grass beer...hmmmm
<rmrfroot>
i wonder if nix will eventually evolve to be used in other domains other than what it is used for now
sellout-1 has joined #nixos
ertes has joined #nixos
simendsjo has quit [(Quit: ERC (IRC client for Emacs 24.5.2))]
endformationage has joined #nixos
sellout- has quit [(Ping timeout: 255 seconds)]
<rmrfroot>
like manufacturing, haha. imagine writing nix derivations for what a manufacturing robot produces, and then to be able to combine those results into other results.
<pikajude>
i don't think nix is very good for that
<pikajude>
how do you take a SHA256 hash of a ball bearing
<contrapumpkin>
jack[m] gave a talk at NixCon last year about using it for chip fab stuff
<rmrfroot>
that's easy
<rmrfroot>
you just make a hash from all the atoms
<contrapumpkin>
I guess it's technically two years ago now
<contrapumpkin>
we need another NixCon!
AmiableCitizen has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
c0bw3b has joined #nixos
<rmrfroot>
pikajude: honestly though, you have a good point!
<rmrfroot>
pikajude: maybe you could define a finite set of basic building blocks that you assign hashes to, and the build from that. not sure if that is viable, but it's a fun idea to play with, i think
altphi has quit [(Quit: altphi)]
mkoenig has quit [(Read error: Connection reset by peer)]
shanemikel has joined #nixos
<chpatrick>
haskell builds in nix seem to be a lot slower than outside
<chpatrick>
any idea why?
<pikajude>
because they're single core maybe
ilja_kuklic has joined #nixos
<brodul>
Hi. Any idea which is the best way to run a script or exec befor systemd suspend?
<chpatrick>
pikajude: is it possible to make them parallel while using the binary cache?
<pikajude>
no
<pikajude>
parallel is disabled for hysterical raisins
<pikajude>
that are not trivial to fix
altphi has joined #nixos
pi3r has joined #nixos
mkoenig has joined #nixos
<rmrfroot>
yeah, i remember reading on some blog that the reason was that GHC is nondeterministic when parallel compilation is used
<pikajude>
it is, for some silly reason
<rmrfroot>
pikajude: maybe you also read that blog article?
<LnL>
contrapumpkin: april/june last I heard
aklt has joined #nixos
<pikajude>
rmrfroot: i remember reading something
<rmrfroot>
pikajude: :D
<LnL>
rmrfroot: that was fixed in ghc802 :D
ThatDocsLady has quit [(Ping timeout: 252 seconds)]
<rmrfroot>
LnL: cool :)
<pikajude>
it was?
deepfire has joined #nixos
<LnL>
yup
<rmrfroot>
pikajude: i think the article was something about using nix for haskell development, can't remember who the author was, though...
<aklt>
Hi, can I use the nix-dev list for n00b questions?
thanegill has quit [(Quit: Connection closed for inactivity)]
<gchristensen>
nix-dev is periodically used for support
MichaelRaskin has joined #nixos
<aklt>
gchristensen: After looking at it it did not seem to be support oriented. Is there a better place maybe?
<gchristensen>
here is pretty good, but if you don't get help, you could mail the list
<rmrfroot>
aklt: you could always ask here
<aklt>
gchristensen: I have been quite happy with the help you have given me here before :-) But I have a bit of text...
<gchristensen>
I don't think you'd upset anyone if you mailed the list
<aklt>
I ran into "nix-shell --pure '<nixpkgs>' -A vim", giving me a different result than when I was using "nix-shell --pure '<nixpkgs>' vim"
<aklt>
I'll give the mailing list a try :-)
<LnL>
huh nix-shell --pure '<nixpkgs>' vim works?
<maurer>
aklt: IIRC the second one searches for packages named vim, which will include vimNox, vimHuge, etc.
<LnL>
or are you talking about -p vim
<aklt>
LnL: Sorry, that should be '-p vim' in the end
<maurer>
aklt: the former is explicitly accessing the vim attribute, which is a particular one
<maurer>
those could point at different packages
<LnL>
aah, there's a bug difference between those two
<aklt>
LnL, maurer: aha, I understood from the man page that they were similar, but I may have misunderstood
<maurer>
-p is talking about package names
<toogley>
is there a way to limit the download speed of "nios-rebuild switch --upgrade" ?
<maurer>
<nixpkgs> itself evaluates to a dictionary (a record technically, but dictionary may be more familiar if not familiar with nixos)
<maurer>
-A is equivalent to doing pkgs.vim
<maurer>
-p is equivalent to searching the entire dictionary for packages named vim
<LnL>
alanz: -A -> nix-shell -E 'import <nixpkgs> {}; vim'
<LnL>
alanz: -p -> nix-shell -E 'import <nixpkgs> {}; stdenv.mkDerivation { name = "user-environment"; buildInputs = [ vim ]; }'
<maurer>
LnL: really?
<LnL>
you can think of it like that
<maurer>
I thought -p searched names
<maurer>
am I wrong?
<maurer>
nevermind, I'm wrong
shanemikel has quit [(Quit: My MacBook Air has gone to sleep. ZZZzzz…)]
<maurer>
the nix-shell manpage says they're attribute names
<maurer>
so I guess derp
<rmrfroot>
ah, now i undestand what the `env` attribute was in the yi wrapper.nix, it's just an environment variable inside nix-shell that points to the built ghc with packages. duuh
<aklt>
Hmm, there is something. I can see from the man page that it is not quite clear to me
<aklt>
LnL: Can that explain that I get a stacktrace when compiling under -p, but not when compiling under -A?
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vMi1c
<NixOS_GitHub>
nixpkgs/master 1503c11 Vincent Laporte: ocamlPackages.omd: init at 1.3.0...
<aklt>
I.e. the resulting executable dumps core
<LnL>
aklt: in other words, -A gives you the build environment for vim (you run genericBuild to build vim in there)
<LnL>
aklt: -p gives you a build environment that depends on vim, meaning that the binary will be available to you
deepfire has quit [(Ping timeout: 258 seconds)]
<aklt>
LnL: Ok, I might be getting closer in understanding, still a bit of a n00b.
<aklt>
:-)
<aklt>
I noticed that there is a vim/configurable.nix, which might be closer to what I would like, is it possible to enter this config as a build environment with -A?
simendsjo has joined #nixos
rmrfroot has quit [(Remote host closed the connection)]
civodul has joined #nixos
ThatDocsLady has joined #nixos
deepfire has joined #nixos
p0le has quit [(Quit: WeeChat 1.6)]
Sonarpulse-Work has joined #nixos
deepfire has quit [(Ping timeout: 258 seconds)]
<LnL>
you can use -A vim_configurable, but if you want to pass an expression you have to use -E or -p
vtomole has left #nixos []
Itkovian has joined #nixos
<aklt>
LnL: Thanks, I tried vim/configurable and others, but can see it sets the name you mention
ThatDocsLady has quit [(Ping timeout: 252 seconds)]
<LnL>
or with the tab completion of nix-repl '<nixpkgs>'
deepfire has joined #nixos
swflint has joined #nixos
<aklt>
LnL cool, thanks. I installed nix-repl yesterday, but ran into some issues and thought it was not up to date... it looks like a good tool for me
<aklt>
Very useful with '<nixpkgs>'!
<LnL>
yeah, I have an alias for that
AllanEspinosa has joined #nixos
<dtz>
speaking of 'vim_configurable'-- AFAICT this produces a single binary (say, "vim"), but not suited for replacing the entire set of aliases that usually exist -- the one I run into the most often being "vimdiff". Am I doing something wrong or does anyone have this working differently?
<dtz>
"vim -d" works lol, as would creating aliases or something but just curious O:)
<LnL>
^ that probably explains why I don't have view on my nixos machine
jgertm has quit [(Ping timeout: 258 seconds)]
mexisme has quit [(Read error: Connection reset by peer)]
mexisme has joined #nixos
<aklt>
Interesting, now I have some aliases to set up (:
deepfire has quit [(Ping timeout: 256 seconds)]
<contrapumpkin>
does proper virtualized KVM work on ARM?
shanemikel has joined #nixos
jensbin has joined #nixos
jensbin has quit [(Client Quit)]
<eacameron>
what kinds of updates does nixos 16.09 get compared to nixpkgs? For example, would something like "git" or "keybase" get updated in 16.09?
<eacameron>
by nixpkgs I mean unstable.
<swflint>
I'm looking to install nixos on a laptop, is there anything i should know about doing so?
mexisme2 has joined #nixos
<maurer>
swflint: If you don't have an ethernet connection, you may need to do a little finagling to get networking during the install
<maurer>
swflint: If you're booting from NVMe, avoid LVM/raid/zfs over it unless you're willing to do a bit of custom work
<maurer>
other than that probably fine
mexisme2 has quit [(Read error: Connection reset by peer)]
<swflint>
Okay. And nvme?
mexisme2 has joined #nixos
<maurer>
NVMe is fine, the only spot it becomes an issue is if you try to do some kind of multidisk thing over it
<swflint>
What is NVMe?
<maurer>
Oh
MichaelRaskin has quit [(Ping timeout: 240 seconds)]
kampfschlaefer has joined #nixos
<maurer>
NVMe is a new communication standard, like SATA, for pci-bus-attached drives
<maurer>
if you don't know that you have an NVMe drive, you probably don't
mexisme has quit [(Ping timeout: 240 seconds)]
<swflint>
Okay. I know I had heard of it, just couldn't remember.
shanemikel has quit [(Quit: My MacBook Air has gone to sleep. ZZZzzz…)]
<hodapp>
NVMe is fine with NixOS on my desktop
<maurer>
hodapp: I only ran into a problem because I'm using zfs over NVMe
<hodapp>
ahh, yeah, no ZFS on mine
<hodapp>
not even LVM
<maurer>
hodapp: so nixos tries to import the zfs pool before the NVMe drives have come up
mexisme has joined #nixos
<maurer>
I'd expect RAID/LVM to have the same potential issues
<maurer>
I ended up adding a stub to my configuration.nix that just waits for the NVMe drives to get populated in dev, then import the pool
<maurer>
swflint: but yeah, tl;dr the main gotcha is that wireless support on the install usb is not great
shanemikel has joined #nixos
<maurer>
swflint: so have ethernet if possible
mexisme2 has quit [(Ping timeout: 255 seconds)]
<swflint>
Okay. That can be difficult, a lot of laptops don't have that.
<maurer>
Yes, it's true
<swflint>
So what would you suggest I do?
mexisme2 has joined #nixos
<maurer>
Dunno, I've always just used ethernet for the install. If you can't find that, I've seen suggestions to use your phone and usb tethering
<maurer>
the problem, afaict, is that configuring the system to have wireless uses packages that need the internet to install
<swflint>
Okay.
<maurer>
which is a little icky
<maurer>
maybe someone else has a better solution
shanemikel has quit [(Ping timeout: 255 seconds)]
<swflint>
Is there a way to slip the packages into the install image?
deepfire has joined #nixos
<maurer>
Yes, but I don't know how to do it. I'd have to go read the documentation to explain it
<NixOS_GitHub>
nixpkgs/release-16.09 3909827 Eelco Dolstra: Create AMIs for eu-west-2 (London)...
mexisme has quit [(Ping timeout: 255 seconds)]
endformationage has joined #nixos
Sonarpulse-Work has joined #nixos
matthewbauer has joined #nixos
<NixOS_GitHub>
[nixpkgs] kjanosz opened pull request #21957: oh-my-zsh: add share dir to pathsToLink (master...oh-my-zsh-share-link) https://git.io/vMibR
deepfire has quit [(Read error: Connection reset by peer)]
JagaJaga has quit [(Quit: WeeChat 1.6)]
JagaJaga has joined #nixos
stepcut_ has quit [(Remote host closed the connection)]
derjohn_mobi has quit [(Ping timeout: 240 seconds)]
twopoint718 has joined #nixos
<endformationage>
If I fail to authenticate (muck up my password) in the display manager (slim), a proceeding correct attempt results in my window manager not correctly loading (awesome). Anyone else run into this?
<NixOS_GitHub>
[nixpkgs] nbp pushed 1 new commit to master: https://git.io/vMipx
<NixOS_GitHub>
nixpkgs/master 0214d94 Nicolas B. Pierron: Remove extra "in" keyword from the release notes about overlays....
<eacameron>
Soo...I set users.mutableUsers = false and now all my user passwords are reset. I can't login as anyone...not even root.
acarrico has quit [(Ping timeout: 240 seconds)]
<gchristensen>
heh
<gchristensen>
eacameron: I'd recommend rebooting and selecting the previous generation :)
<eacameron>
gchristensen: Already tried. :( passwords are "preserved"
<gchristensen>
erm, really?
<eacameron>
gchristensen: yep.
<gchristensen>
yikes
<eacameron>
so it seems passwords are preserved...unless you set mutableUsers = false and switch. I know it preserves them after that...but apparently not during the transition.
<eacameron>
so now I'm locked out of doing anything as root...
<eacameron>
I can't even reset my password, because I don't know the old one
<eacameron>
which was reset.
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<contrapumpkin>
niksnut: how against that PR are you? like 10% against or "I will fight you to the death over it"? :) it really vastly improves my experience with NixOS on EC2... and I think it'll actually speed things up on non-virtualized environments too
<gchristensen>
clever: you mean contrapumpkin?
<eacameron>
clever: Did you see my predicament?
<clever>
gchristensen: you linked it to me a few hours ago
* contrapumpkin
and gchristensen are basically the same person
<gchristensen>
oh right on
<roconnor>
eacameron: loosely speaking you can boot a nixos bootable CD and mount your HD on /mnt
<clever>
eacameron: see the long path in systemConfig, within the grub config?
<roconnor>
eacameron: then you can write a new configuration.nix, with a new root password, and use nixos-install to realize a new configuration from your bootable install CD.
<clever>
eacameron: you can hit E at the grub menu to edit any entry
<clever>
eacameron: use that long path as an example, and change the commandline to init=/nix/store/wl9nfdjkr0yyqpv81i1vsfi8cxvpvhg8-nixos-system-amd-nixos-17.03pre96925.1c50bdd/sw/bin/bash
<eacameron>
roconnor: Ah ok that sounds like a valid way forward; clever may have a faster way
<clever>
eacameron: you shouldnt need the old systemConfig=, so you can just edit around the giant hash
<roconnor>
yeas, it seems like clever is onto something.
<clever>
if done correctly, you will get root without any systemd in the way, and will have full control of the system
<kier>
endformationage: I've been experiencing this for a while too, and have just spent the evening diagnosing it :p
<eacameron>
so change the command from running "init"
<eacameron>
to run "/sw/bin/bash" instead?
<clever>
eacameron: yeah
<contrapumpkin>
clever: if you like it, please feel free to chime in ;) might need all the support I can get!
<clever>
eacameron: ah, forgot it already has a init= in there, that does make it simpler
<eacameron>
clever: Ah so we're getting somewhere...and I'm in bash; however it appears that no drivers have loaded since my keyboard doesn't work
simendsjo has quit [(Quit: ERC (IRC client for Emacs 24.5.2))]
<clever>
eacameron: eek!, do you have a ps2 keyboard available?
<eacameron>
clever: Haha...sadly no
<clever>
cant think of any way around that, the initrd shell would have the same issue
<clever>
back to the cdrom others have mentioned, though there is a tweak, you dont need full nixos-install
<LnL>
can a perl wizard tell me how I can parse --arg <foo> <bar> with GetOptions
<clever>
eacameron: there is a nixos-install --chroot, that will do what you expect, then you are free to "nixos-rebuild boot" with the proper nix-channel, rather then the one the cd had setup
<endformationage>
kier: Ah, good to know I'm not the only one. Read your issuse and just noticed the sessions types on my lousy laptop screen :)
<kier>
yeah, I can only see it if I look at my monitor at an angle
<eacameron>
clever: roconnor: so with my boot USB I could just add an ssh key to the root user and login that way?
<kier>
would be interested to know if yours goes blank after a failed login like mine does too
<clever>
eacameron: yeah
<clever>
eacameron: you can either edit /root/.ssh/authorized_keys directly and call it done, or chroot in and rebuild the system to directly fix it
derjohn_mobi has joined #nixos
stepcut has joined #nixos
<eacameron>
clever: well if I could login as root I could set the password haha...then I'd be back in biz
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<clever>
yeah
endformationage has quit [(Quit: WeeChat 1.5)]
hiratara has quit [(Ping timeout: 245 seconds)]
Itkovian has joined #nixos
<eacameron>
I'm thinking I should report this as a "bug" or some such. Toughts?
endformationage has joined #nixos
<endformationage>
kier: yep, goes blank, but had to duck my head to see, hah.
<kier>
ah cool
bfrog_ has joined #nixos
<endformationage>
kier: cycling back to none + awesome resulted in OK login.
<kier>
that's good, at least there's a reproducible workaround
hiratara has joined #nixos
<endformationage>
I briefly tried sddm but it didn't seem to load awesome as a drop in replacement, and may have required more setup.
<kier>
now to work out why slim decides to change the session type when you fail to login
<clever>
eacameron: i think nixos-generate-config will detect your usb drivers and insert them into the initrd
<clever>
eacameron: but i often skip that step entirely
sellout-1 has quit [(Quit: Leaving.)]
<eacameron>
clever: I'm running the nixos installer image on a USB right now but I'm not very savvy and can't figure out how to access the files on the hard drive
<clever>
eacameron: just mount the root fs to /mnt and then edit /mnt/root/.ssh/authorized_keys
<eacameron>
clever: That's why my non-savviness won't allow me to do :P Do I mount /dev/disk/by-label/nixos somehow?
<clever>
eacameron: oh, and one mild security problem with nixos, shadow doesnt help much
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
georges-duperon has quit [(Ping timeout: 252 seconds)]
ryanartecona has joined #nixos
amir has joined #nixos
Itkovian has joined #nixos
<eacameron>
clever: should I report this as a bug then? I don't know why setting mutableUsers = false; should reset the passwords of all users
<roconnor>
doesn't setting mutableUsers false mean the shadow password file is generated by the configuration?
<gchristensen>
well ... the password is a mutation, eacameron
<gchristensen>
but that is a nasty nasty way to get bit
<eacameron>
gchristensen: well yes that's true; but even with mutableUsers = false; you can (and must) use passwd to actually give passwords to users.
<gchristensen>
how do you mean?
<eacameron>
gchristensen: That's what the nixos manual says; you can give people passwords still, but not declaratively.
<eacameron>
gchristensen: In other words...that part is not actually controlled by mutableUsers
<gchristensen>
they have to be specified in the configuration.nix
chpatrick has left #nixos []
<eacameron>
gchristensen: Where?
<eacameron>
gchristensen: Users added via the declarative configuration (including mutableUsers = true), must have their password set via passwd: you can use the passwd program to set a password, which is retained across invocations of nixos-rebuild.
<eacameron>
Sorry, meant to quote that.
<eacameron>
From manual: "you can use the passwd program to set a password, which is retained across invocations of nixos-rebuild."
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<LnL>
does that give a warning? otherwise it should add one to `warnings`
<eacameron>
gchristensen: Wow...I didn't see that!
acarrico has joined #nixos
<eacameron>
gchristensen: I just tried it. You can actually set a password with passwd but it won't last beyond nixos-rebuild
Itkovian has joined #nixos
<gchristensen>
yeah
<eacameron>
gchristensen: Sigh...so this is very very good to know. In this case I think the manual is not clear enough
<eacameron>
gchristensen: So it's not a bug at all.
<gchristensen>
can you please either open up a github issue, or even better, a pull request, fixing the problem? :/
<twopoint718>
How would I take the sha256 of a gem in a private gem repo? I've ran `shasum -a 256` but that generates a hash that's "too long"
<eacameron>
gchristensen: Yah I definitely will. I'll change the manual to point to this option and say something like "Before setting mutableUsers = false" be very sure you understand the implications: <link>
qryantm has quit [(Ping timeout: 255 seconds)]
<gchristensen>
yeah
<gchristensen>
and having an alert when this gets changed couldn't hurt
<gchristensen>
not sure how though
<eacameron>
gchristensen: Actually.
<eacameron>
gchristensen: There already is an alert when mutableUsers = false and no user is in the wheel group
<eacameron>
gchristensen: We could add another assert that requires *either* a password or an ssh key to be set.
<eacameron>
gchristensen: If neither of them is set then the user can't login as a matter of fact.
<gchristensen>
clever: does this seem reasonable^ ?
<gchristensen>
I mean, just one user would need that
Itkovian has quit [(Client Quit)]
c0bw3b has left #nixos []
<eacameron>
gchristensen: Well...one user in the wheel group
<eacameron>
gchristensen: But also, adding a user without any way to login seems fishy. At least a warning... ;)
<eacameron>
I mean...adding a normal user that is.
justbeingglad has joined #nixos
justbeingglad has left #nixos []
<gchristensen>
yeah
<eacameron>
how do I hash my own password and use it here?
<gchristensen>
this sounds like it is worth exploring :)
<eacameron>
gchristensen: Haha thanks for your patience...what you said about mkpasswd is in the docs for hashedPassword lol
hiratara has joined #nixos
Itkovian has joined #nixos
<gchristensen>
:)
<gchristensen>
I couldn't remember / find it where I was looking either, and I didn't feel the need to bring up the manual even if I'm having a hard time with it
MoreTea has joined #nixos
Fare has joined #nixos
stepcut has quit [(Remote host closed the connection)]
stepcut has joined #nixos
<eacameron>
gchristensen: But wait...how would one define the hashed password for root?
<gchristensen>
I'm not sure I follow
<sheenobu>
I can never figure out how to patchelf go binaries...
<sheenobu>
I want to make my nixos produced go binaries docker compatible without needing static linking
stepcut_ has joined #nixos
<clever>
gchristensen: one user in wheel, or those properties on root
sellout- has joined #nixos
<eacameron>
gchristensen: clever: can you define properties on the root user in configuration.nix?
<eacameron>
I never did...it just exists...
<gchristensen>
yeah
<gchristensen>
users.users.root....
<eacameron>
gchristensen: Ah...so not extraUsers.root
stepcut has quit [(Ping timeout: 240 seconds)]
altphi has quit [(Quit: altphi)]
<gchristensen>
eacameron: users.users is the same as users.extraUsers now :)
ilja_kuklic has quit [(Ping timeout: 258 seconds)]
<eacameron>
gchristensen: Ahhhh
<eacameron>
gchristensen: "now" as in because mutableUsers = false?
qryantm has joined #nixos
<gchristensen>
no, "Now" as in some historical release a while ago
<NixOS_GitHub>
[nixpkgs] NeQuissimus closed pull request #21957: oh-my-zsh: add share dir to pathsToLink (master...oh-my-zsh-share-link) https://git.io/vMibR
<eacameron>
gchristensen: ohh I see.
<eacameron>
gchristensen: even better.
<sheenobu>
weird... my go binaries link against libX11
<sheenobu>
since profiles are just a collection of derivations (i'm guessing) then deleting a profile won't delete anything unless that profile was completely self contained and its derivations were unreferenced elsewhere
<sheenobu>
i should know this
<kier>
AFAICT the profiles stick around as GC roots unless you manually delete /nix/var/nix/profiles/per-user/kier/blah-1-link etc
<sheenobu>
Yes I meant delete the links /nix/var/nix/profiles