<lvernschrock>
it looks like the 'From' header is now being re-written to be 'nix-dev@lists.science.uu.nl" instead of being left as the original
bennofs has quit [(Ping timeout: 276 seconds)]
koserge has quit [(Ping timeout: 240 seconds)]
ryanartecona has joined #nixos
Fare has joined #nixos
pxc1 has quit [(Ping timeout: 260 seconds)]
mkoenig has quit [(Remote host closed the connection)]
bennofs has joined #nixos
tvon has quit [(Quit: System is sleeping...)]
ryanartecona_ has joined #nixos
tvon has joined #nixos
ryanartecona has quit [(Ping timeout: 248 seconds)]
ryanartecona_ is now known as ryanartecona
ison111 has joined #nixos
tvon has quit [(Ping timeout: 260 seconds)]
JagaJaga has joined #nixos
Wizek__ has joined #nixos
alunduil has quit [(Quit: leaving)]
pxc1 has joined #nixos
Wizek_ has quit [(Ping timeout: 248 seconds)]
Wizek has quit [(Ping timeout: 248 seconds)]
Sonarpulse has joined #nixos
Wizek__ has quit [(Ping timeout: 260 seconds)]
pxc1 has quit [(Ping timeout: 260 seconds)]
boomshroom has joined #nixos
<boomshroom>
Hello!
<boomshroom>
I've built cross compilers with nix before. Now I'm wondering if I can build gcc with a source fork. I'm trying to build RedoxOS and it needs their fork of GCC to build.'
eacameron has joined #nixos
ennui has quit [(Ping timeout: 260 seconds)]
<boomshroom>
Alternatively, if someone had a complete derivation that builds RedoxOS, that would be amazing!
eacameron has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
cpennington has joined #nixos
phinxy has quit [(Quit: Leaving)]
eacameron has quit [(Ping timeout: 276 seconds)]
ryanartecona has quit [(Quit: ryanartecona)]
eacameron has joined #nixos
ryantrinkle has joined #nixos
JagaJaga has quit [(Quit: WeeChat 1.5)]
eacameron has quit [(Ping timeout: 260 seconds)]
JagaJaga has joined #nixos
orivej has joined #nixos
ris has quit [(Ping timeout: 240 seconds)]
ertes has joined #nixos
hellrazo1 has joined #nixos
hellrazor has quit [(Ping timeout: 248 seconds)]
<Drakonis[m]>
now that's a issue with nix, you can't use prebuilt binaries that aren't patched to function with nixos
<gchristensen>
LnL , any chance you're still awake? :)
orivej has quit [(Ping timeout: 240 seconds)]
lambdamu_ has joined #nixos
<gchristensen>
Sonarpulse: ^ it has apparently come up in chat 4 times, with no resolutions.
<Sonarpulse>
wow
ennui has quit [(Ping timeout: 248 seconds)]
lambdamu has quit [(Ping timeout: 276 seconds)]
sidpatil has left #nixos []
ertes has quit [(Ping timeout: 240 seconds)]
<Drakonis[m]>
clever: i'm aware that there's patchelf
tvon has joined #nixos
<gchristensen>
wtf
<gchristensen>
looks like I need to stop working on this thing for the evening, this is crazy.
<Sonarpulse>
you mean crawl through nix?
<Sonarpulse>
it is it literally same binary
<Sonarpulse>
at least you don't need to debug autoconf
<Sonarpulse>
but rather just @asdfasdf@ substitutions
<gchristensen>
multiple versions of nix on darwin are saying they don't have libsodium support, and my script for some reason gets Stopped in the middle, exactly between two functions for some reason.
tvon has quit [(Ping timeout: 240 seconds)]
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
alpha_sh_ has joined #nixos
Supersonic112_ is now known as Supersonic112
filterfish_ has joined #nixos
alpha_sh has quit [(Remote host closed the connection)]
alpha_sh_ has quit [(Remote host closed the connection)]
alpha_sh has joined #nixos
alpha_sh has quit [(Remote host closed the connection)]
alpha_sh has joined #nixos
s33se_ has joined #nixos
<gchristensen>
which is a bit disappointed, because it is (I believe) the very last problem to debug in a fairly friendly, thorough, and correct nix-daemon installer for OSX, without first starting with a single-user installer
<boomshroom>
I'm trying to run a script to build dependencies of RedoxOS, and it tries to invoke autoconf2.64. I installed autoconf264, but it seems to just add the bare binary and not the suffixed one.
ertes has joined #nixos
noobly has joined #nixos
<Sonarpulse>
gchristensen: :( nice work on script though
<noobly>
has anyone else dealt with only being able to connect to one wifi source?
<noobly>
I can only connect to my homes wifi for some odd reason, get a RTNETLINK answers: Operation not permitted after running ip link set dev wls3 up
<gchristensen>
". It turns out that the version of nix in the installer does not have libsodium support, while the one in nixpkgs does, knowing that makes the issue here pretty obvious.Installing the one from nixpkgs after using the installer will fix this:nix-env -f -iA nixpkgs.nix"
<noobly>
I edited wpa_supplicant.conf to have the right info too, and followed the nixOS manual and arch manual wireless section
<noobly>
Maybe the errror is in my configuration.nix? I have networking.wireless.enable = true, but commented out networking.manager.enable = true. In my user groups I also have "networkmanager"
tghume has joined #nixos
Infinisil has quit [(Quit: leaving)]
<noobly>
is wireless a group?
<noobly>
or a group permission rather
danl1240 has quit [(Quit: My iMac has gone to sleep. ZZZzzz…)]
athan has joined #nixos
Rajsun has quit [(Quit: Leaving)]
boomshroom has quit [(Ping timeout: 260 seconds)]
mounty has quit [(Quit: Konversation terminated!)]
mounty has joined #nixos
mounty has quit [(Client Quit)]
mounty has joined #nixos
<chominist[m]>
What's something you changed about your workflow that is as close to/better than nixos? As in something of similar caliber
noobly has quit [(Ping timeout: 260 seconds)]
<chominist[m]>
For instance, going from bash to fish
<gchristensen>
chominist[m]: thinking more carefully about what I'm doing
<chominist[m]>
gchristensen (IRC): do you use any mental techniques?
<chominist[m]>
gchristensen (IRC): or mental moves
darlan has joined #nixos
iyzsong has joined #nixos
celph has quit [(Quit: Page closed)]
eacameron has joined #nixos
ericsagnes has quit [(Ping timeout: 240 seconds)]
<gchristensen>
chominist[m]: to be honest, I think just experience and trying to think more carefully
<chominist[m]>
gchristensen (IRC): 👍
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 276 seconds)]
mrcheeks has quit [(Quit: ERC (IRC client for Emacs 26.0.50))]
pxc1 has joined #nixos
eacamero_ has quit [(Ping timeout: 248 seconds)]
pxc1 has quit [(Ping timeout: 248 seconds)]
eacameron has joined #nixos
acarrico has joined #nixos
isidore has joined #nixos
eacameron has quit [(Ping timeout: 248 seconds)]
eacameron has joined #nixos
moet has joined #nixos
MinceR has quit [(Ping timeout: 276 seconds)]
eacameron has quit [(Ping timeout: 248 seconds)]
MinceR has joined #nixos
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
Fare has quit [(Ping timeout: 260 seconds)]
eacameron has joined #nixos
cpennington has quit [(Remote host closed the connection)]
<dalaing>
chominist[m]: I'm also interested in that question
<chominist[m]>
dalaing (IRC): which one, other high leverage tools or the mental moves?
<dalaing>
high leverage tools
<dalaing>
I haven't tried alternative shells yet - I have some workmates who are into zsh, I might have a look at some point
<dalaing>
I've gotten most of them into nixos, it seems fair
<aanderse>
not noticing unrar program on nixos... am i just missing something extremely obvious?
filterfish_ has quit [(Ping timeout: 276 seconds)]
filterfish has joined #nixos
<chominist[m]>
dalaing (IRC): I am trying xmonad and fish, and both seem awesome
<chominist[m]>
Also keyboard + mental moves + attention/vision placement during programming
<chominist[m]>
Also important
<dalaing>
a lot of us are using xmonad at work, it's pretty great
<dalaing>
got a lot of configuration still to play with, but I've got time for that
<dalaing>
I'm mostly doing Haskell these days, which changes the kind of attention I have to use during programming
<dalaing>
(through a combination of having learned how to let types guide me / keep me out of trouble, and a few other higher-level workflow idioms that seem to bump me towards better higher level abstractions)
<dalaing>
event+behavior FRP also seems like a big win in that area
<dalaing>
git / DVCSs in general were a big one, back in the day
tvon has joined #nixos
hyphon81 has quit [(Remote host closed the connection)]
tvon has quit [(Ping timeout: 260 seconds)]
filterfish has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 268 seconds)]
<c74d>
aanderse: try the program `atool`, which supports many formats including RAR
eacamero_ has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQ6IR
<NixOS_GitHub>
nixpkgs/master 59ad971 Vincent Laporte: mono: 5.0.0.48 -> 5.0.1.1
NixOS_GitHub has left #nixos []
<aanderse>
c74d: thanks!
eacameron has joined #nixos
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
eacamero_ has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Ping timeout: 248 seconds)]
filterfish has joined #nixos
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 248 seconds)]
jmeredith has quit [(Quit: Connection closed for inactivity)]
filterfish has quit [(Remote host closed the connection)]
eacameron has quit [(Ping timeout: 240 seconds)]
filterfish has joined #nixos
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 268 seconds)]
ndrei has quit [(Quit: WeeChat 1.9)]
ericsagnes has quit [(Ping timeout: 240 seconds)]
<cwre>
how is lib sodium installed on nixos? I'm trying to build something depending on it and I'm not sure how it's expecting the library to be available.
<cwre>
I installed it via `nixos-env -i libsodium`
<cwre>
And it doesn't seem to see it.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 3 new commits to master: https://git.io/vQ6tN
<NixOS_GitHub>
nixpkgs/master 43b2b55 Vincent Laporte: hol_light: 2016-07-23 -> 2017-07-06
<NixOS_GitHub>
nixpkgs/master cacc9fa Vincent Laporte: camlPackages.camlp5: 6.17 -> 7.01
<NixOS_GitHub>
nixpkgs/master 4523f02 Vincent Laporte: ocamlPackages.bolt: fix for ocamlopt
NixOS_GitHub has left #nixos []
tput has joined #nixos
<c74d>
cwre: libraries can't (or at least shouldn't) be installed with `nix-env` (which I assume you mean); libraries should be made available using `nix-shell`.
<c74d>
Running `nix-shell -p libsodium` will start a shell in which the libsodium package is available
<c74d>
One can add more `-p` arguments to get more packages, or write a `shell.nix` file to specify the packages
justelex_ has quit [(Quit: Konversation terminated!)]
<c74d>
cwre: yes, unless it provides some program that you use
<c74d>
(some libraries, like openssl, also come with programs)
<cwre>
I installed opensll like that, too...
<cwre>
I don't need it though.
<cwre>
So how do I ensure libsodium is available on every shell?
cinimod has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQ6qZ
<NixOS_GitHub>
nixpkgs/master eb2be6d Vincent Laporte: acgtk: 1.1 -> 1.3.1
NixOS_GitHub has left #nixos []
ericsagnes has joined #nixos
<cwre>
So how do I ensure libsodium is available on every shell? Also, it seems like it's still not detecting the library...
tvon has quit [(Ping timeout: 240 seconds)]
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
<c74d>
cwre: I suppose it's possible to wrap all your shells in nix-shell, but it's only meant to wrap a project's build system or some other command that needs a package
<cwre>
Ahh, I guess that makes sense.
<c74d>
e.g. `nix-shell -p libsodium --run 'make build'`
<cwre>
I'm trying to compile this from source, because the project doesn't provide a binary.
<cwre>
c74d: I'm just being stupid and tired... I'm sorry for bothering you. I think I've figured it out now. I'm glad I know about nix-shell now though!
<cwre>
I started outside of the shell, so it wasn't working. Extracting fresh and building seems to have fixed it. I just need to give it a c compiler now.
* cwre
doesn't do much compiling
<cwre>
in case that wasn't obvious :D
Havvy has quit [(Ping timeout: 240 seconds)]
<cwre>
Now this is a more nuanced question... Where should/would I install this compiled binary?
<cwre>
Obviously it's "my choice" but I want to ensure I'm sticking with NixOS's system.
Ivanych has joined #nixos
<c74d>
cwre: In a `bin` directory in your home directory, I guess. The full Nix way would be to write a Nix package definition for the software, and install that package.
mkoenig has quit [(Remote host closed the connection)]
<srhb>
cwre: Write a nix derivation for it and install it properly. :-)
mkoenig has joined #nixos
<cwre>
srhb: I know I know... I'm working on it.
<srhb>
:-)
<srhb>
cwre: Good to see you've made some progress.
<srhb>
cwre: We could work through it together, but perhaps you need some sleep first? :-)
<cwre>
stdenv and fetchurl are clearly args, but I don't understand where I'm calling this function.
<cwre>
Ahh, damn you, voice of reason!
Sonarpulse has quit [(Ping timeout: 276 seconds)]
Wizek__ has joined #nixos
endformationage has quit [(Quit: WeeChat 1.7)]
<srhb>
cwre: Hehe :-) It would take a while, so I think that's be more productive
<cwre>
I'll catch some sleep, then I'll be on later. I'm in CST, JSYK.
Wizek_ has joined #nixos
<srhb>
cwre: Cool, I'm in CEST, so it's morning here now
<cwre>
Ah, haha. Complete opposites.
<cwre>
Well... Not 12 hour opposites.
<cwre>
Anyway, bedtime!
<srhb>
Sleep well :)
<cwre>
Thanks for the help, guys!
<srhb>
cinimod: Looks like it's missing a hash
<cinimod>
You mean the sha256?
<srhb>
cinimod: Yeah
<cinimod>
How do I give it hash?
<srhb>
cinimod: I think if you enter any sha256 hash, it will give you the right hash next time it errors out instead of just complaining about a missing one
<srhb>
This is a hash of "hi": 98ea6e4f216f2fb4b69fff9b3a44842c38686ca685f3f55dc48c5d3fb1107be4
<srhb>
Very good hash, in my opinion!
<srhb>
:-)
<cinimod>
I was told to use this: cabal2nix ./numeric-ode.cabal --sha256="" --shell > default.nix
<srhb>
I don't know why you were told that.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] therealpxc opened pull request #27236: fish: suppress expected warnings in fish init on NixOS (master...fish) https://git.io/vQ6mT
NixOS_GitHub has left #nixos []
Itkovian has joined #nixos
<srhb>
To be honest I'm quite confused what you're trying at all. Is it a local unpacked source package?
<cinimod>
srhb: It now tries to download the package when I thought I had told nix it was local :(
<srhb>
avn: Ah. I guess that should always really be used to avoid accidental impurities.
<avn>
srhb: is on linux/NixOS, I know closing to nothing about darwin
<avn>
srhb: as I know --pure is about setup of resulting shell, when useSandbox is about build process.
<srhb>
avn: Oh, I wasn't aware of that difference.
anelson has quit [(Ping timeout: 276 seconds)]
cinimod has quit [(Ping timeout: 240 seconds)]
JayVii has quit [(Quit: WeeChat 1.0.1)]
JayVii has joined #nixos
JayVii has left #nixos []
carlosda1 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to master: https://git.io/vQ6O5
<NixOS_GitHub>
nixpkgs/master e99b904 Robert Helgesson: unifont: 10.0.01 -> 10.0.02
NixOS_GitHub has left #nixos []
marsel has joined #nixos
eacameron has joined #nixos
filterfish_ has joined #nixos
Wizek has joined #nixos
hotfuzz_ has joined #nixos
filterfish has quit [(Ping timeout: 240 seconds)]
ericsagnes has quit [(Ping timeout: 248 seconds)]
hotfuzz has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Ping timeout: 268 seconds)]
Wizek_ has quit [(Ping timeout: 248 seconds)]
Wizek__ has quit [(Ping timeout: 248 seconds)]
Wizek_ has joined #nixos
<sphalerite>
yep — nix-shell --pure basically ensures a fairly similar environment to an actual nix-build *without* sandboxing — you can still access /home and the network and stuff
thc202 has joined #nixos
apeyroux has quit [(Quit: Lost terminal)]
apeyroux has joined #nixos
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
<srhb>
I see, okay.
<srhb>
I kind of wanted to step through a build just as if it were sandboxed
<srhb>
I'm trying to fix up a "helpful build script" that tries to download dependencies - woo.
<sphalerite>
yeah, I'd really like that too
<sphalerite>
>_>
<srhb>
Yeah, it's... Ugh. I might just rewrite it from scratch.
<srhb>
Though that's kind of nasty too.
<srhb>
It even has some logic to determine whether to fetch the needed sources from http or git somewhere. I've no idea what the point is.
<sphalerite>
Can't you just take the existing script and delete all the dependency stuff?
<srhb>
sphalerite: That might be a better idea. Use patchPhase for that?
<qknight>
fpletz[m]: gerade kurz zeit?
carlosda1 has quit [(Ping timeout: 276 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
<sphalerite>
srhb: You could write a patch for it and put it in patches, or just copy the parts of the script you want straight into the nix expression, or modify it using sed or something in prePatch/postPatch, depending on how much there actually is, how much it's likely to vary across upstream releases, etc
<srhb>
sphalerite: Yeah, thanks. I'll see what I can do. grmlb. :-)
<sphalerite>
I'd advise against setting patchPhase because it makes overriding the package with extra patches much more of a pain
<srhb>
Ah, yes, okay.
eacameron has joined #nixos
hellrazo1 has joined #nixos
eacameron has quit [(Ping timeout: 248 seconds)]
<srhb>
srcs seems to imply I could fetch multiple source files, is that right?
hellrazo1 has quit [(Read error: Connection reset by peer)]
hellrazor has joined #nixos
<the-kenny>
You can use fetchurl or similar for any attribute, nothing special there
Unode has quit [(Read error: Connection reset by peer)]
Unode has joined #nixos
revtintin has joined #nixos
iyzsong has quit [(Read error: Connection reset by peer)]
butchery has joined #nixos
<sphalerite>
is /usr/bin/env not available in stdenv.mkDerivation builders?
<butchery>
I'm running 17.03, but I'd like to use the xserver service changes (I believe they're in unstable now too), what would be the preferred way to do that?
freusque has joined #nixos
<sphalerite>
butchery: I'd probably have a checkout where I have the changes cherry-picked onto nixos-17.03 and build from there
<butchery>
hmm...I'm using an overlay with custom packages at the moment, can I import a module in the overlay?
<cinimod>
Can someone point me at the documentation for this? Googling doesn't seem to have worked for me
phreedom has joined #nixos
<cinimod>
Ok I will try putting it default.nix
revtintin has joined #nixos
<srhb>
butchery: overlays just rewrite nixpkgs however you like
<srhb>
butchery: In other words, it's just as if nixpkgs were different, you're not "in" the overlay
<cinimod>
Hmmm that didn't work
ambro718 has quit [(Ping timeout: 240 seconds)]
<cinimod>
The nix linker command has `-framework Cocoa` at the end
<cinimod>
But this is not found
anelson has joined #nixos
<cinimod>
OTOH this works: clang cocoatest.c -o cocoatest -framework Cocoa
<cinimod>
So why does `/nix/store/xnxsxvlz09315wi63jbyam9p9d5c835z-clang-wrapper-4.0.0/bin/cc` not find it?
cpennington has joined #nixos
Neo-- has joined #nixos
Eisfreak7 has joined #nixos
ioajewf has joined #nixos
<Eisfreak7>
I have a python script that relies on ctypes and X11lib. How can I make it run (tell it where to find X11lib) on NixOS?
<Eisfreak7>
Maybe use the nix-shll as shebang feature to insert the full path somehow?
<ioajewf>
Hi! Nixos-loving newbie here. I've created a second user account (by editing /etc/nixos/configuration.nix). When in the new account I want to use nix-shell -p. It tells me it can't locate utf8.pm - which sounds crazy to me. This is the output I get: https://pastebin.com/raw/H4ifG6gq. I suspect a chmod is needed - but am wondering if this is a known error or if I screwed up especially bad?
Neo-- has quit [(Ping timeout: 255 seconds)]
jonte has joined #nixos
<gchristensen>
ioajewf: as your new user, what does the env var $NIX_REMOTE contain?
<ioajewf>
gchristensen: $ echo $NIX_REMOTE
<ioajewf>
daemon
<ioajewf>
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 4 new commits to master: https://git.io/vQ6Zj
<NixOS_GitHub>
nixpkgs/master ec359a8 Vincent Laporte: ocamlPackages.sequence: 0.8 -> 0.10
<NixOS_GitHub>
nixpkgs/master 9d52667 Vincent Laporte: ocamlPackages.qtest: requires OCaml ≥ 4
<NixOS_GitHub>
nixpkgs/master ff24bf1 Vincent Laporte: ocaml: 4.04.1 -> 4.04.2
NixOS_GitHub has left #nixos []
<gchristensen>
hmmm how did you log in as this user?
<ioajewf>
I log into my first user (named "x") via SSH - then I did sudo to get to the new user
<ioajewf>
su
<ioajewf>
not sudo - su. Sorry
<gchristensen>
oh! there we go :)
<gchristensen>
ioajewf: maybe try doing `sudo su theaccount -`
Neo-- has joined #nixos
<ioajewf>
gchristensen: Thank you. It gives a different error - still does not work. This is the error I get: https://pastebin.com/raw/HeFVwB7s
<gchristensen>
exciting ...
<ioajewf>
Happy one of us thinks so ;-)
<gchristensen>
can you (as x, and then as newuser) run `env | grep NIX` and paste those separately?
leat has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQ6n4
<NixOS_GitHub>
nixpkgs/master 53e6778 Vincent Laporte: ocamlPackages.sedlex: fix name
NixOS_GitHub has left #nixos []
freusque has quit [(Ping timeout: 240 seconds)]
<gchristensen>
domenkozar: how did you drop it so far?? what closure was it?
<gchristensen>
ioajewf: are you in a nix-shell when you sudo su?
<sphalerite>
I seem to recall there being a way to get the output path of a derivation within that derivation in nix, anyone know how to do that?
<sphalerite>
sorry within the expression for the derivation
<sphalerite>
er
<sphalerite>
something like that
magnetophon1 has quit [(Remote host closed the connection)]
leat has joined #nixos
<ioajewf>
gchristensen: I don't think so - my prompt looks like "[monero@nixos:~]$ " and usually when in nix-shell there are a few more "[" and "]" around that. Just fresh of SSH from my laptop to my home server, running Nixos
iyzsong has joined #nixos
<gchristensen>
ioajewf: when you ran the whoami for x, were you in a nix shell?
<ioajewf>
No - the whole paste is unadultered, except for the prompt being shortened to a "$".
<ioajewf>
gchristensen:
<gchristensen>
ioajewf: I believe you, but the environment for x shows things that are usually only present in a nix shell -- most notably IN_NIX_SHELL=1
<gchristensen>
so I'm curious if you're accidentally getting in to a nix shell somehow
<domenkozar>
gchristensen: I think that's cabal-install
<domenkozar>
getting rid of sdk private stuff in darwin now
<gchristensen>
nice!
<ioajewf>
gchristensen: Will create a new SSH session and re-run those commands. Is nix-shell not supposed to be nesting? When running as x, I often nest it with success (a reason why I adore this distro...). Brb with a new paste :)
<gchristensen>
by the by, do you know people who want to get the nix daemon on their mac? I need testers
<gchristensen>
domenkozar: ^
<cinimod>
If I do `nix-shell -p haskellPackages.numeric-ode` then my exe gets linked
<domenkozar>
we want :)
<domenkozar>
gchristensen: give us ~week
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] domenkozar created osx_private_sdk/cleanup (+1 new commit): https://git.io/vQ6no
<NixOS_GitHub>
nixpkgs/osx_private_sdk/cleanup cbde2d3 Domen Kožar: WIP: get rid of some usages of sdk_private_sdk
NixOS_GitHub has left #nixos []
<ioajewf>
gchristensen: I'm happy to be a tester, running a mac laptop (sorry for running 2 threads of conversation)
<gchristensen>
ioajewf: let's get you fixed, then we can test :)
<cinimod>
If I do `nix-shell -p "haskellPackages.ghcWithPackages (pkgs: [pkgs.chart-unit pkgs.numhask pkgs.numhask-range])"` and then `ghc -isrc/Examples src/Examples/TestChart.hs -v` then the linker can't find Cocoa
<gchristensen>
domenkozar: I could call it multi-user if that is the right name. I have used nix-daemon in the name because I'm not wanting it for it to be multi-user, but for the other benefits of usingthe daemon
<gchristensen>
sphalerite: why didn't sudo su - nix-shell do that?
<ioajewf>
sphalerite: :O I didn't know that - thank you very much.
<sphalerite>
As a rule of thumb, to log in as a user — always use su - user or sudo -iu user
<ioajewf>
gchristensen: no idea...
<sphalerite>
sudo + su = chaos
moet has quit [(Ping timeout: 268 seconds)]
<gchristensen>
ioajewf: can you please please please open an issue on github.com/nixos/nixpkgs and describe your problem and this solution?
<gchristensen>
especially mentioning the "Can't locate utf8.pm: /home/x/.nix-profile/lib/perl5/site_perl/utf8.pm: Permission denied at /run/current-system/sw/bin/nix-shell", maybe even in the title of the issue
<ioajewf>
Wow... Thank you irc friends. gchristensen I'll do so - I suppose this means nis-shell won't work in non-login shells by default. Is this something on your machines as well?
<gchristensen>
ioajewf: to be honest, I've never switched to a user other than root, then used a nix-shell,h eh
k0001 has quit [(Remote host closed the connection)]
k0001 has quit [(Remote host closed the connection)]
k0001 has joined #nixos
ioajewf` has joined #nixos
<gchristensen>
ioajewf, ioajewf` : can you link me to the issue when you open it?
tosmi has quit [(Remote host closed the connection)]
tosmi has joined #nixos
ioajewf has quit [(Ping timeout: 260 seconds)]
Wizek__ has joined #nixos
k0001 has quit [(Remote host closed the connection)]
k0001 has joined #nixos
MrSchwifty has joined #nixos
MrSchwifty is now known as GRBurst
Wizek_ has quit [(Ping timeout: 246 seconds)]
Wizek_ has joined #nixos
<pie_>
um, any info on how to use my hp printer?
Wizek has quit [(Ping timeout: 260 seconds)]
<pie_>
oh nevermind i needed to set it up in kde :I
<GRBurst>
hey folks. i am new to nixos and currently trying to rebuild the environment i used in arch linux. despite that i can configure programs like vim on a system wide basis (using /etc/nixos/) - is there a way to define my vim plugins, configurations and more on a per user basis, described in a nix file? or should i use a plugin manager and define my own vimrc in home like i used to do in other sys
ioajewf`` has joined #nixos
ioajewf` has quit [(Read error: Connection reset by peer)]
<sphalerite>
Right, what I was looking for earlier is the placeholder builtin. But it looks like it's not in 1.11.11 (nice version number though)
<gchristensen>
!m ioajewf
<[0__0]>
You're doing good work, ioajewf!
<gchristensen>
ioajewf: perfect :o :D
<gchristensen>
ioajewf: thank you
<ioajewf>
Lol best bot ever! Thank you :-)
<gchristensen>
everybody around here does such great work so often, we can't possibly type out someone is doing good work every time ;) :D
<sphalerite>
Hm, what's the most convenient way to build stuff that will only work with nixUnstable without upgrading the daemon systemwide?
Wizek_ has joined #nixos
<jophish>
sphalerite: NIX_REMOTE=local?
<sphalerite>
surely then I'll run into permission issues because my user can't write to the nix store?
<jophish>
add the user to trusted users then
<jophish>
or run as root
<jophish>
actually, I'm not sure trusted users works for that
<sphalerite>
and wouldn't it still fail to acquire the database lock?
GRBurst has quit [(Ping timeout: 268 seconds)]
cpennington has quit [(Remote host closed the connection)]
ioajewf has quit [(Remote host closed the connection)]
Wizek has quit [(Ping timeout: 248 seconds)]
pie_ has quit [(Ping timeout: 258 seconds)]
<sphalerite>
I'll just use a VM
indi_ has joined #nixos
marsel has quit [(Ping timeout: 240 seconds)]
Wizek has joined #nixos
lambdamu_ has quit [(Remote host closed the connection)]
lambdamu has joined #nixos
GRBurst has joined #nixos
Wizek_ has quit [(Ping timeout: 248 seconds)]
revtintin has quit [(Ping timeout: 255 seconds)]
cinimod has joined #nixos
GRBurst has quit [(Ping timeout: 258 seconds)]
<Gravious>
bah, pkg i need says it's broken :<
<Gravious>
error: Package ‘lua5.1-lrexlib-2.7.2’ in ‘/home/nix/nixpkgs/pkgs/development/lua-modules/generic/default.nix:21’ is marked as broken, refusing to evaluate.
<Gravious>
i guess that means i get to fix it :p
Wizek_ has joined #nixos
k0001 has quit [(Remote host closed the connection)]
k0001 has joined #nixos
Wizek__ has quit [(Ping timeout: 255 seconds)]
Neo-- has quit [(Remote host closed the connection)]
<jophish>
Hey guys, I got nixos booting on an Arria 10 FPGA SoC!
Neo-- has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Profpatsch opened pull request #27239: Int between (master...intBetween) https://git.io/vQ6W2
NixOS_GitHub has left #nixos []
<gchristensen>
jophish: nice!
<jophish>
gchristensen: was a huge hassle, the only version of u-boot which worked by default was from 2014, without extlinux support
freusque has joined #nixos
<jophish>
now to fix networking, doesn't seem to be using dhcp
k0001 has quit [(Remote host closed the connection)]
k0001 has joined #nixos
mt has quit [(Remote host closed the connection)]
peacememories has joined #nixos
mt has joined #nixos
indi_ has quit [()]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQ6WQ
<NixOS_GitHub>
nixpkgs/master 645f11b Vincent Laporte: smplayer: 17.6.0 -> 17.7.0
<jophish>
mmm, it takes about 20 seconds to print an option
Wizek__ has joined #nixos
orivej has joined #nixos
GRBurst has joined #nixos
himmAllRight has joined #nixos
Wizek has quit [(Ping timeout: 258 seconds)]
carlosda1 has joined #nixos
sary has joined #nixos
<jophish>
ah, it's generated as /nix/store/l795vz468rxqgbiqfhcnhycdcik5bkl4-configuration.nix
<himmAllRight>
Does anyone know where I can find documentation to get virt-manager working? I can't get libvirtd connected. How do I enable it?
Wizek has joined #nixos
freusque has quit [(Quit: WeeChat 1.7.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQ6l9
<NixOS_GitHub>
nixpkgs/master 4a3e1d8 Robin Raymond: godot 2.1.1-stable -> 2.1.3-stable
NixOS_GitHub has left #nixos []
Wizek__ has quit [(Ping timeout: 240 seconds)]
Wizek__ has joined #nixos
Wizek_ has quit [(Ping timeout: 248 seconds)]
Wizek_ has joined #nixos
tvon has joined #nixos
ericsagnes has joined #nixos
Wizek__ has quit [(Ping timeout: 240 seconds)]
Wizek__ has joined #nixos
tvon has quit [(Ping timeout: 240 seconds)]
Wizek_ has quit [(Ping timeout: 240 seconds)]
revtintin has joined #nixos
sary has quit [(Ping timeout: 240 seconds)]
<Olgierd>
hi, I want to build a program against glib, but if I nix-env -iA nixos.glib or add glib to buildIinputs, it is not registered in pkg-config nor there is glib.h in my .nix-profile (when using nix-env), what am I missing?
k0001 has quit [(Remote host closed the connection)]
<butchery>
himmAllRig: iirc you need virtualisation.libvirtd.enable option on?
<sphalerite>
Olgierd: does the default.nix also have pkg-config in it?
<sphalerite>
actually I think the attribute name is pkgconfig for wahtever reason. In any case you'll want it there
civodul has joined #nixos
<Olgierd>
added that, and it works now
<Olgierd>
thank you!
InfinalityIsDead has joined #nixos
<butchery>
himmAllRig: just looked at my old config, I had it working prviously with virtualisation.libvirtd.enable = true; and the libvirt and virtmanager systemPackages, plus some extra libvirtd config for KVM and qemu, but iirc I needed to run virtmanager as root and manually connect to libvirtd every time
eacameron has joined #nixos
Wizek__ has quit [(Read error: Connection reset by peer)]
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
InfinalityIsDead has quit [(Ping timeout: 260 seconds)]
k0001_ has joined #nixos
Wizek has quit [(Ping timeout: 240 seconds)]
leat has quit [(Quit: leat)]
k0001 has quit [(Read error: Connection reset by peer)]
Wizek_ has joined #nixos
<sphalerite>
jophish: just realised, easiest way to use nixUnstable without the stable daemon getting in the way is probably nix-user-chroot!
orivej has quit [(Ping timeout: 255 seconds)]
leat has joined #nixos
k0001_ has quit [(Remote host closed the connection)]
<jophish>
sphalerite: oh! I didn't know about that!
<sphalerite>
jophish: intended mainly for use on systems where you don't have root/sudo AFAIK, but it's useful for this on nixos as well
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQ68h
<NixOS_GitHub>
nixpkgs/master 3a227e6 Vincent Laporte: mldonkey: 3.1.5 -> 3.1.6
NixOS_GitHub has left #nixos []
<gchristensen>
jophish: do you use multi-user nix on darwin?
peacememories has quit [(Client Quit)]
<jophish>
glad to hear someone's having a successful day, I'm still trying to figure out where nix is getting this 169.254.0.0 ip from
<jophish>
gchristensen: I can't remember
<jophish>
I'll have to check at home
<jophish>
I don't *think* so though
peacememories has joined #nixos
InfinalityIsDead has quit [(Ping timeout: 260 seconds)]
<jophish>
I don't remember ever setting up the daemon on darwin, so I think probably not
<gchristensen>
jophish: even though you don't, can you uninstall nix to try out my installer? it'll help you subsequently uninstall it later, for you to redo your single-user install :)
revtintin has quit [(Ping timeout: 248 seconds)]
<jophish>
gchristensen: sure, I can give that a try
<jophish>
looks good, I'll try to do it when I get home today
<jophish>
you might have to remind me if I forget :)
<gchristensen>
awesome :D thank you! I've run out of computers to try it on :P
<gchristensen>
what is your timezone?
<gchristensen>
or rather, how many hours until you get home?
<jophish>
gchristensen: and it's worked on the ones you've tried it on?
<jophish>
gchristensen: not sure at the moment
<gchristensen>
yeah, it worked and when it wasn't able to, always provided correct instructions on how to fix it
InfinalityIsDead has joined #nixos
<jophish>
nice :)
<gchristensen>
:) I hope so! I'd try it on new users, but I want to start with people comfortable with debugging nix first
<jophish>
speaking of which, any idea why nix isn't getting the correct address from the dhcp server?
<sphalerite>
I'd try it too but I've lent my mac to someone else
<gchristensen>
sphalerite: you could unborrow it for a bit ... :P
<sphalerite>
jophish: is the dhcp server running?
<gchristensen>
jophish: what address does it get?
InfinalityIsDead has quit [(Ping timeout: 260 seconds)]
<jophish>
it gets 169.254.185.103
<sphalerite>
it's an unusual hardware platform right? Maybe it's a kernel/hardware issue, you could try sniffing the packets it sends from another machine
<gchristensen>
that looks like the "we didn't talk tothe dhcp" type IP
<sphalerite>
that's a link-local address, won't be assigned via DHCP
<jophish>
the server is up, and works for everything else including another nixos machine
<jophish>
sphalerite: ah, then I suppose I should ask, why isn't it using dhcp...
<sphalerite>
jophish: well, is the DHCP client running?
<sphalerite>
Or for a start, is it enabled?
<sphalerite>
(nixos-option networking.useDHCP
<jophish>
yup, that's true
<jophish>
there's no dhclient binary in the store
mudri has joined #nixos
<jophish>
I'm flashing nixos with 'dhcp' in the environment
revtintin has joined #nixos
<jophish>
ah, running dhclient works
<jophish>
now, why's this not running automatically...
k0001_ has quit [(Remote host closed the connection)]
k0001_ has joined #nixos
<sphalerite>
jophish: I think it uses dhcpcd normally
orivej has joined #nixos
<sphalerite>
what does systemctl status dhcpcd say?
revtintin has quit [(Ping timeout: 240 seconds)]
k0001_ has quit [(Remote host closed the connection)]
<grw>
the .cz mirror is down and when i uncomment the utah.edu mirror, a lot of the hashes are changed
freusque has joined #nixos
Rajsun has joined #nixos
<grw>
this breaks build of entire system because polkit needs latex for some reason
k0001_ has quit [(Remote host closed the connection)]
k0001_ has joined #nixos
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
revtintin has joined #nixos
k0001_ has quit [(Remote host closed the connection)]
Guest21457 has joined #nixos
k0001_ has joined #nixos
<Guest21457>
hello, i need to use the latest version of terraria-server, but the one on nixpkgs isn't up to date
<Guest21457>
how can i force override the version and hash
revtintin has quit [(Ping timeout: 260 seconds)]
adeohluwa has joined #nixos
<grw>
Guest21457: you can download the nixpkgs repo and change the definition there
k0001_ has quit [(Remote host closed the connection)]
orivej has quit [(Ping timeout: 240 seconds)]
k0001_ has joined #nixos
<gchristensen>
you can also use overrideAttrs and replace the `src`
cinimod has quit [(Ping timeout: 240 seconds)]
peacememories has joined #nixos
ndrei has joined #nixos
peacememories has quit [(Client Quit)]
pie_ has joined #nixos
<ndrei>
I've been recently getting an error upon starting Dropbox "This application failed to start because it could not find or load the Qt platform plugin "xcb"", the strange thing is, only on one of my machines, and they share the same config
<ndrei>
Anybody seen this lately? I found some earlier references, but no definite answers
cinimod has joined #nixos
ertes has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #27240: moby, linuxkit: init at 2017-07-07, 2017-07-08 (master...feature/moby-linuxkit) https://git.io/vQ6Rn
NixOS_GitHub has left #nixos []
<dtzWill>
ndrei: hmm, what NixOS version are you using? And which qt packages do you have installed? I seem to recall that mix/matching Qt bits from stable/unstable can be problematic due to changes in how things are handled/packaged
<ndrei>
oh, unstable
<ndrei>
I haven't tried stable though, I was under the impression most people use unstable :)
<dtzWill>
seems to work on my 17.03 via 'nix-shell'
<ndrei>
thanks
<dtzWill>
i'd be curious if it's true that most use unstable, couldn't say :)
<ndrei>
ya, that would be interesting, the binary cache maintainers sure know
<ToxicFrog>
I tried unstable and it was, well, unstable, so I stopped using it except for a few select packages
<ndrei>
what problems did you have?
<ndrei>
dtzWill: it works for me via nix-shell as well, because it's using stable
<ndrei>
is the
<ToxicFrog>
Unstable breaking a lot so that the channel stops updating for days/weeks at a time, or unstable breaking a bit so that the channel is updating but `nixos-rebuild` doesn't work
<ndrei>
ok, I guess I'm going
<ndrei>
sorry, some Tmux glitches
<dtzWill>
np
<dtzWill>
nice thing about NixOS is it's generally nbd to hop channels, modulo configuration.nix changes occasionally
<ndrei>
it's strange, sometimes when I type the letter n Tmux starts triggering a command and I have no idea why
<dtzWill>
which sounds like it means it's hard to switch, but you know since all declarative and whatnot it's not like trying to downgrade an ubuntu install lol
<ndrei>
I have to quit to fix this, brb
<dtzWill>
kk GL
<jophish>
sphalerite: Unit dhcpd.service could not be found.
ndrei has quit [(Quit: WeeChat 1.9)]
ndrei has joined #nixos
<jophish>
sphalerite: isn't dhcpd a dhcp *server*?
<ndrei>
I guess I'll switch to unstable then
<sphalerite>
sorry dhcpcd
sary has joined #nixos
<spinus>
sphalerite: it's client server I think
<spinus>
refreshes leases etc
<jophish>
active (running) since Sat 2000-01-01 00:00:49 UTC; 17 years 6 months
<jophish>
hsh
<jophish>
hah*
<ndrei>
Is there a way to tell nix to use stable for a given package?
orivej has joined #nixos
<gchristensen>
shlevy: pdng
<gchristensen>
....... ping
<jophish>
ah, boot.initrd.network.enable = false
<spinus>
ndrei: usually you specify exact derivation/version, so potentially you can pass whatever version you want, I double there is "switch"
<dtzWill>
ndrei: switching usually entails changing root's "nixos" channel and checking that your configuration.nix builds (do a nixos-rebuild build --upgrade, or w/e) and switching to it when ready
ndrei has quit [(Quit: WeeChat 1.9)]
<dtzWill>
I strangely am not finding the documentation detailing this, at least after a quick search, but hopefully that makes sense and we can help if ---eep he quit
ndrei has joined #nixos
* dtzWill
hopes that's due to network-manager restart or something xD
<ndrei>
dtzWill: thanks
<ndrei>
I'm decently confortable with this part, but to spinus's point about specifying an exact derivations, it doesn't seem it would work as nixpkgs stable and unstable have different versions with the same name
<ndrei>
or perhaps their deps are at other versions
<ndrei>
and unstable has a "dropbox-cli" package, stable also has a "dropbox" package
<ndrei>
the main thing keeping me on unstable is latest Firefox, though I guess I could live without it
<ndrei>
or just import that derivation, that would work
freusque has joined #nixos
<ndrei>
I gotta say switching an entire OS version with one command is **magic**
Infinisil has joined #nixos
Infinisil has quit [(Client Quit)]
Guest21457 has quit [(Quit: Lost terminal)]
NickSeagull has joined #nixos
<NickSeagull>
Hi! :)
<Gravious>
hi!
<NickSeagull>
I was wondering, what is the correct way of overriding a variable for a package in Nix? I mean, I'm trying to install a package and in its definition it tells me to override different variables for enabling different features, any ideas on how to approach so?
k0001_ has quit [(Remote host closed the connection)]
<gchristensen>
alright :D let's see what happens ... here is the script: https://gitlab.com/grahamc/mac-nix-multi-user/raw/master/install.sh it might ask you to run some commands yourself before running install.sh again, can you tell me exactly what you're going to do before you do it? that way, I know for sure you didn't misunderstand
k0001_ has quit [(Remote host closed the connection)]
k0001_ has joined #nixos
<imalsogreg>
gchristensen: Giving it a little read...
<gchristensen>
imalsogreg: yep, sounds good :) maybe skip ahead to main() to get your bearings first
pie_ has quit [(Read error: Connection reset by peer)]
pie_ has joined #nixos
<imalsogreg>
I think this is the chattiest bash script I've ever read. Nice.
<imalsogreg>
SuprDewd has joined #nixos
<gchristensen>
one goal was to not be surprising. a prior version of it _prompted_ on every sudo, which was like 100 prompts, it was a bit much.
orivej has quit [(Ping timeout: 240 seconds)]
<Christian[m]1>
What do i have to do to enable Selinux on a NixOs?
<imalsogreg>
gchristensen: I've written the script to `ginstall.sh`, am about to call `./ginstall.sh`. I have to leave in about 10 minutes.... is tonight a better time to test, or is 10 minutes enough?
<gchristensen>
imalsogreg: it should finish in less than 5 minutes, unless you have a very slow network connection
freusque has quit [(Quit: WeeChat 1.7.1)]
<imalsogreg>
In that case, `./ginstall.hs`
<gchristensen>
if your bio is right & you're in cambridge, you should be ok :)
k0001_ has quit [(Remote host closed the connection)]
<manveru>
gchristensen: how does that compare to nix-darwin?
<imalsogreg>
I'm in baltimore, same TZ :)
k0001_ has joined #nixos
<gchristensen>
ah, cool
<imalsogreg>
I've broken the "nix isn't already installed" constraint.
<gchristensen>
is it helping by telling you how to uninstall it?
<imalsogreg>
gchristensen: Yep, I'll report each command as I run it
<gchristensen>
cool
<gchristensen>
manveru: nix-darwin is installed after you install nix
<imalsogreg>
cmd1 (sudo launchctl ... ... org.nixos.nix-daemon.plist) >> "No such file or directory"
<gchristensen>
ok
<S0rin>
Hey, I am trying to bump the wine unstable / staging to 2.11 but I don't know how to generate the sha256 in the recipe I've did one with the sh256 command but it is much longer anyone knows why ?
<gchristensen>
S0rin: nix sometimes uses a different encoding making them shorter, it is okay to use the long ones too.
<dash>
S0rin: also you can use nix-prefetch-url to get the hash
k0001_ has quit [(Remote host closed the connection)]
<imalsogreg>
gchristensen: I've used my time budget trying to rm /nix - I should have anticipated that! Will see if you're on later tonight.
kwork has quit [(Client Quit)]
<gchristensen>
ok :) sorry I was wrong about the time.
<gchristensen>
imalsogreg: talk to you soon!
<imalsogreg>
You a developer? :) ttys!
<gchristensen>
yep
obadzabot has joined #nixos
<obadzabot>
telnet bots are fun
obadzabot has quit [(Client Quit)]
<imalsogreg>
Developers & time estimates joke, not a questioning-your-credentials jab. Ok. Probably will be back at this an 7pm EST. If you're around I'll go to the next step (rather than just following the bash instructions, so we can verify I'm doing the right thing).
kwork has joined #nixos
<gchristensen>
cool :)
<gchristensen>
though you should be able to start at the beginning and be ok anyway
kwork has quit [(Changing host)]
kwork has joined #nixos
<obadz>
so what's going to be new in 17.09 ?
<obadz>
(other than packages…)
k0001_ has quit [(Remote host closed the connection)]
k0001_ has joined #nixos
Neo-- has quit [(Remote host closed the connection)]
Neo-- has joined #nixos
butchery has quit [(Remote host closed the connection)]
koserge has joined #nixos
<manveru>
hopefully nix 1.12 becomes stable? :)
<cwre>
srhb: believe or not I'm alive
<cwre>
Just gotta shower.
erlandsona has joined #nixos
GRBurst has quit [(Ping timeout: 255 seconds)]
<erlandsona>
Hey all, is NixUP something anyone is using yet? If not, how are people doing declarative "user-level" package configs? I'd prefer to use a *.nix file in my home directory instead of a shell script with a bunch of calls to `nix-env -whatever`.
tmaekawa has quit [(Read error: Connection reset by peer)]
<erlandsona>
cwre: sorry yeh, spinus is correct. By declarative, I mean using a *.nix file to specify which packages I want on my system.
revtintin has joined #nixos
<spinus>
cwre: with nix-env you are mutation the state of your user environment, with declarative way, it enforces whatever you have declared in the file
<erlandsona>
cwre: nix-env is like homebrew where you just run it a bunch of times in your terminal to install what you want.
<spinus>
mutation->mutating
<erlandsona>
But spinus is more correct.
<cwre>
But using nix-env will mutate my configuration, correct?
<erlandsona>
spinus: is your config on gh?
<spinus>
erlandsona: no, but it's very simple, I just added bunch of packages and vim config, I can put to some gist if you want
<erlandsona>
spinus: that'd be nice, but before you spend the half a second, did you then remove those configs from your /etc/nixos/configuration.nix file? Or you're using them to override?
civodul` has joined #nixos
wak-work has quit [(Ping timeout: 276 seconds)]
<spinus>
cwre: no, it won't - that's the difference :-) with declarative way you change the file and enforce changes in the system, with imperative way you only mutate the state, of course you can have bash script which will try to mutate the state the way you think it's declarative :)
<srhb>
cwre: It will mutate your user profile, not the system one.
<spinus>
erlandsona: what are those configs?
<spinus>
I have /etc/nixos/configuration.nix and I also have ~/.nixpkgs/config.nix which are separate sets of things
civodul has quit [(Ping timeout: 268 seconds)]
<srhb>
And configuration.nix specifies the system configuration while config.nix usually just alters nixpkgs for your user to make packages _available_ for nix-env and nix-shell
<erlandsona>
cwre: yeh like srhb: mentioned nix-env only affects /home/user/.nix-profile whereas /etc/nixos/configuration.nix is file you "declare" all the packages you want on you're system. The issue I'm asking about is I want an /etc/nixos/configuration.nix file but for user-level stuff instead of installing say vim or chrome or spotify as root.
<srhb>
A lot of us are anxiously awaiting something like configuration.nix for user profiles (and several approaches are being worked on by different people)
<cwre>
Mmm, okay. So it's persistent, but nixos-build switch doesn't actually upgrade those packages?
<cwre>
Packages installed by nix-env -i
<srhb>
cwre: No.
<cwre>
No I'm wrong or No I'm correct, haha.
<srhb>
cwre: No you're right, it does not.
<cwre>
Okay.
<spinus>
erlandsona: yeah, ~/.nixpkgs/config.nix would work for that, in that file I declare derivation which is buildEnv and has a list of packages that I want to have. than I do nix-env -iA nixos.my-user-env and all stuff is installed
<cwre>
Anyway, more distractions. I still gotta shower.
<srhb>
spinus: Things like NixUP and home manager and whatnot promise to be more configuration.nix like in that they also manage eg. your vimrc and other homedir things :)
<srhb>
Instead of just "this package is available / installed"
mrcheeks has joined #nixos
<erlandsona>
spinus: okay but some of the comments in that NixUP chain mentioned doing that but that there were features missing by doing it that way and that the other two "solutions" weren't polished yet?
<spinus>
srhb: I manage my vim config with ~/.nixpkgs :-), but yeah, I would try nixup, but it's not in nixpkgs yet, right?
<srhb>
Being able to go back to my vimrc from yesterday is what I expect from declarative user configs. :)
<srhb>
spinus: Oh, with generations too?
<erlandsona>
I mean I guess for now, it'll solve my immediate issues though which is just to move a lot of my config out of system-level into user-level.
<srhb>
I don't think it's in nixpkgs proper, no.
<spinus>
srhb: what do you mean by "with generations" ?
<srhb>
spinus: I mean, can you go back to your previous config without manually rolling back changes?
<spinus>
ah, probably yes
<srhb>
spinus: Just like I can boot the previous generation from grub.
<spinus>
never used that
<spinus>
but it generates user profile so you can probably do that with nix-env
<erlandsona>
spinus: in which case, a gist with a little HowTo would be wonderful if you have the time?
<srhb>
mhm.
<spinus>
I have my config in git so I just rollback git and rebuild :)
<srhb>
Yeah, that's a little different. :)
koserge has quit [(Ping timeout: 240 seconds)]
<spinus>
erlandsona: ok, give me sec
koserge has joined #nixos
<erlandsona>
srhb: I think spinus using git as a rollback mechanism would map pretty well to the idea of generations. I think that might also be more familiar to non-nix users coming over. ?
<erlandsona>
spinus: Thanks!
<srhb>
erlandsona: Insofar as it switches in a new ~/.nix-profile atomically, sure.
<srhb>
But your symlinks into that would not be managed by nix in a atomical or declarative fashion
aneeshusa has joined #nixos
<srhb>
Or I'm lacking the imagination to see how that could be done easily :)
adeohluwa has quit [(Quit: Connection closed for inactivity)]
<erlandsona>
srhb: yeh, my main issue right now, is I'm starting to use this machine for Music Production with Bitwig studio which means I have to use a kernel with the realtime patches so I have Musnix in my system config, but if I also want to upgrade vim or chrome or a user-level package that means my kernel is getting rebuild every time I run `nixos-rebuild switch --upgrade` which is literally THE most annoying thing ever.
<srhb>
erlandsona: I mean, Nix will support switching in new ~/.nix-profiles atomically, but your ~/.vimrc link into ~/.nix-profile is not managed by the same kind of "one change" -- the altering of one single symlink
<srhb>
erlandsona: I don't understand, if you don't change those options between each rebuild, why does a new one occur?
<srhb>
spinus: Thanks :)
<erlandsona>
shrb: honestly I don't really understand it very well either but it's something to do with having to patch the kernel at build time, so if there's an update it has to rebuild the kernel to make the patches. But then for whatever reason if other packages get updated I have to rebuild the kernel too? I'm not really solid in my understanding of Nix'ing all-the-things so :shrug:
<srhb>
erlandsona: That is not normal nix behaviour for sure.
<srhb>
erlandsona: If the inputs don't change, the output shouldn't either.
<srhb>
If I choose a custom kernel with custom options, it will rebuild only if I change an option or a new version of the source is chosen.
<srhb>
(or if a dependency changes, like gcc for instance)
<srhb>
But that's an input :)
<srhb>
Mind, I've only ever used some tiny rt changes and jack with ardour wrt. audio things.
koserge has quit [(Ping timeout: 248 seconds)]
<srhb>
but none of that should deviate from the principe.
<srhb>
On another topic: Is peti the only one handling haskell changes these days?
koserge has joined #nixos
<erlandsona>
srhb: So I'm basically doing the same, and all of what you said is true. But it prevents me from being confident running `nixos-rebuild switch --upgrade` that none of the kernel dep's have been updated when all I'm really trying to get are the latest packages for Vim or Chrome or whatever.
nox_ has joined #nixos
<srhb>
erlandsona: If you're using some sort of latest kernel package, they may indeed just change that often.
<srhb>
But I doubt that's really necessary for rt audio, and I'm not sure if you're doing that.
<srhb>
But I totally get the "graded upgrade" things, and I use my user profile for the same things.
<srhb>
I have a version of chromium in my user profile for instance.
<srhb>
My system nixpkgs is pinned to a specific commit though, so that doesn't just change without me intervening.
<erlandsona>
srhb: I mean, primarily I'm just running a newer model computer so the newer kernels have patches that I'm hoping will fix the internal speaker drivers. Otherwise though, my external DAC works just fine with the current kernel. I still need to move my user-space packages into a user config though. Just not sure the best way to approach that.
<erlandsona>
I just wish I didn't have to learn a separate tool for doing user-space stuff. `nixos-rebuild switch` is just soooo nice, I just wish it worked for user stuff.
<srhb>
erlandsona: Agreed. Hopefully soon. :)
SuprDewd has quit [(Remote host closed the connection)]
SuprDewd has joined #nixos
<spinus>
erlandsona: but if you do --upgrade you are downloading new nixpkgs, if you are on unstable, your kernel may change often (I assume there is no cached versions of your custom kernel on nix cache)
<Infinisil>
Today I was thinking, isn't NixOS pretty much resistant to `sudo rm -rf /`? Since /nix/store is read-only (I don't know how that works btw), it shouldn't be possible to delete anything from it with rm, right?
<jophish>
Infinisil: let me try
<spinus>
Infinisil: I think most value sits in /var :-)
nox_ has joined #nixos
<spinus>
and /home (on desktops)
<Infinisil>
spinus: But like you wouldn't be able to delete `ls` and all these commands (you'd just have to enter direct store paths, but it would still work)
tokudan has joined #nixos
aneeshusa has quit [(Ping timeout: 248 seconds)]
<jophish>
Infinisil: my computer no longer boots
<jophish>
probably because I removed everything in /boot, not too surprising really
<cwre>
Boom
<Infinisil>
jophish: :O
<Infinisil>
Didn't think of that
<Infinisil>
A nixos-rebuild should fix it though, right?
<cwre>
WHAT NO DISCORD PACKAGE
Nobabs27 has joined #nixos
<srhb>
cwre: There is on unstable.
<cwre>
I thought I was on unstable
<srhb>
cwre: How are you searching?
<cwre>
nixos.org
<Infinisil>
Hmm, I can install discord-0.0.1 on 17.03
<cwre>
:o
<srhb>
cwre: How does that work? :-P
<srhb>
cwre: I'm assuming that'll be 17.03
<cwre>
Probably
<srhb>
cwre: nix-env -qaP | grep discord
<pbogdan>
cwre: you may need "allowUnfree = true;"
<obadz>
Infinisil, jophish: if you want to "factory reset" your nixos, touch /etc/NIXOS_LUSTRATE && reboot
<obadz>
anwyay, to recreate /boot if you've deleted it jophish, you can do /nix/var/nix/profiles/system/bin/switch-to-configuration boot
<jophish>
What's the easiest way to use a kernel with socfpga_defconfig?
<Infinisil>
obadz: I just wanted to send the exact same link to nixos-infect
<jophish>
obadz: oh, don't worry about me :)
<cwre>
pbogdan: how do I put that properly in my configuration.nix?
<jophish>
I'm porting nixos to a new platform today, I've flashed an sd card with nixos about a hundred times :)
<srhb>
cwre: nixpkgs.config.allowUnfree = true;
<cwre>
once I get my shell setup I'll be ready to start beating my head into a wall with package srhb
<cwre>
Oh thanks
<cwre>
:o
<Infinisil>
jophish: I assumed it was something like this, nobody's gonna run `sudo rm -rf /` just like that :P
<srhb>
cwre: I almost completed that package before I realized it's already in nixpkgs. :-P
<srhb>
cwre: Not a good starter package either, the installer does weird shit, trying to download dependencies (breaking purity)
<cwre>
srhb: wait what
<Infinisil>
srhb: Eww
<srhb>
Infinisil: Yeah.
SuprDewd has quit [(Read error: Connection reset by peer)]
<cwre>
srhb: mpw already exists?
<srhb>
cwre: It does.
<cwre>
UGHHH
<srhb>
cwre: At least the terminal client.
<cwre>
I'm an idiot
<cwre>
srhb: that's what I was building
<srhb>
cwre: Be thankful, it was not fun to make it (again...) :-P
<cwre>
Never try things when you're sleep deprived!
<srhb>
cwre: Indeed!
<cwre>
So can someone explain to me why Firefox actually installs firefox-nightly?
SuprDewd has joined #nixos
<cwre>
And why that nightly version is incredibly old?
<srhb>
cwre: When you say "Firefox" what did you mean exactly
<cwre>
firefox package
<cwre>
nix-env -i firefox
<srhb>
cwre: As in systemPackages = [ firefox ] ?
<srhb>
Ah
<cwre>
Even with systemPackages.
<Infinisil>
cwre: If you mean why it's called Nightly, that's just because Mozilla doesn't allow unofficial compiled distributions to be called Firefox
<cwre>
Ohhhh
<cwre>
Well, yeah. I guess that's my question.
<cwre>
But I want pure bleeding edge nightly!
<Infinisil>
You can compile it with the official branding yourself if you want
<jophish>
How does nixos get the target platform
<srhb>
cwre: Is one of the version from nix-env -qaP | grep firefox new enough?
<cwre>
I don't have an issue with the Nightly tag, I just wanted to know why it was called nightly but wasn't actually nightly
<jophish>
it just seem to take a "system" string (nixos/default.nix that is)
<srhb>
cwre: Try to install with -iA by the way, it will not have to traverse everything when you give the attribute path.
<Infinisil>
cwre: Well you can use the unstable branch if you want newest newest stuff
<srhb>
cwre: ie -iA nixpkgs.firefox instead of -i firefox
<cwre>
Oh, okay.
<cwre>
But still, that package is super old.
<srhb>
cwre: Which one?
<cwre>
I'm on unstable, unless I'm completely misunderstanding how I make myself on unstable.
<srhb>
cwre: nixos-version says what?
<cwre>
nixos.firefox is only on 54
<cwre>
17.09
<cwre>
Assuming that's unstable, no?
<srhb>
cwre: 54.0.1 is from June 29
<cwre>
Yeah, old.
<srhb>
:P
<cwre>
The real nightly is on 56 already
<Infinisil>
cwre: It's the currently stable version
<srhb>
That's not a useful definition of old, use different words.
<srhb>
If you want one of the betas or dev editions, install those.
<srhb>
So I can nix-env -iA nixpkgs.nightly-mozilla.firefox-nightly-bin
<srhb>
(and just amend that git repo as I need)
<ndrei>
cwre: so I'm importing the default.nix and adding the correct attr and getting "value is a function expecting set" error, what could I be doing wrong?
<Infinisil>
srhb: I used something like this at first, but eventually decided against it because it's stateful
<srhb>
Infinisil: Good call ;-)
<cwre>
ndrei: that's not a question for me, haha.
<srhb>
ndrei: Did you import the/path {}; ?
<ndrei>
ups :)
<ndrei>
oh...right, I'm not calling the imported function right?
<ndrei>
trying it now
<srhb>
ndrei: Sounds like you forgot to, yeah :)
mrcheeks has quit [(Quit: ERC (IRC client for Emacs 26.0.50))]
<ndrei>
okay, more interesting now,"package has an unfree licence "unknown""
<ndrei>
I do have unfree set but scoped to nixpkgs I guess so that can't work, right?
<ndrei>
I guess srhb would know too?
<Infinisil>
If you're using nix-env to install it, you need to set allowUnfree = true; in ~/.config/nixpkgs/config.nix
<srhb>
ndrei: as in global nixpkgs? Not user stuff?
<ndrei>
yep global
<srhb>
What Infinisil said :)
<ndrei>
I'm not using user stuff at all
<srhb>
Uh, that's weird.
<srhb>
Oh, hang on, you're not overriding nixpkgs, just defining a top level attribute?
<srhb>
Then your initial assumption sounds correct.
<ndrei>
yep
<srhb>
How did you even do that? :-P
<Infinisil>
Great, a hash mismatch on the firefox source
<ndrei>
haha, importing inside let
<srhb>
ndrei: I don't think that will work..
Ivanych1 has joined #nixos
<srhb>
Infinisil: I saw that too. Looks like Mozilla change their tarballs without altering the name. Fun.
<ndrei>
well it indeed doesn't but it's the approach I've used so far
<ndrei>
will go for the nixpkgs overrides
<srhb>
ndrei: Well, since it's a nixpkgs itself, perhaps you can override its config too? I'm not sure though. it sounds sketchy :P
<ndrei>
um, not following you
<ndrei>
tbh I'm only a nixos user for barely two weeks
<srhb>
ndrei: nixpkgs.mozilla.config ...
<srhb>
I doubt that would work anyway, just forget about it ;-)
Ivanych has quit [(Ping timeout: 240 seconds)]
<cwre>
How can I approrpiately change my login shell?
<ndrei>
oh right, and override the licence?
<ndrei>
sounds good :)
<cwre>
Infinisil: how do I use that overlay?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vQ6wn
<NixOS_GitHub>
nixpkgs/master 50831d5 Tim Steinbach: busybox: 1.26.2 -> 1.27.0
NixOS_GitHub has left #nixos []
<srhb>
cwre: users.cwre.shell = ...;
<cwre>
AWESOME
<cwre>
So I just set it to zsh or do I need the full path?
<srhb>
cwre: You probably have nixpkgs in scope as pkgs, so pkgs.zsk
<srhb>
er
<srhb>
pkgs.zsh
<ndrei>
srhb: could you point me to an example that I could use as a starting point? I've seen a few but I've got so many .nix files in my browser history..
<Infinisil>
Well I won't update it everyday so that's okay :)
<jophish>
hmm, I'm running into this: Filesystem with huge files cannot be mounted RDWR without CONFIG_LBDAF
<jophish>
however I have kernelExtraConfig = ''CONFIG_LBDAF y'';
<srhb>
jophish: isn't CONFIG_ implied?
<srhb>
I might be misremembering
<jophish>
oh yes
<jophish>
that looks right
<jophish>
thanks for the error, build system
zraexy has joined #nixos
<srhb>
jophish: :/
hotfuzz_ has quit [(Ping timeout: 268 seconds)]
<srhb>
Sometimes software innovations from 40 years ago are still not mainstream, and it's maddening.
<ndrei>
srhb: still getting the same error about the licence, this is what I'm doing: nixpkgs.config.packageOverrides = pkgs : { firefox-nightly-bin = (import ../nixpkgs-mozilla/default.nix {}).firefox-nightly-bin; };
<srhb>
ndrei: Odd. Let me try.
<ndrei>
(probably not relevant though)
<ndrei>
thanks
<srhb>
ndrei: Give me five :)
<ndrei>
sure
<jophish>
ugh, it's such a pain to change this, I change my configuration, hit nix-build, wait for it to fail to build /nix/store/r84d662z9i89wf89jzyaczpm5w8cjw9r-linux-4.10.8.drv (because this isn't an armv7l machine (even though it's built (remotely) loads of other armv7 packages (Perhaps linus-4.8.10 doesn't build remotely?)))
<jophish>
nix-copy-closure the .drv to the remote builder, nix-store --realise there, nix-copy-closure the output back
<jophish>
then continue with the build,
<jophish>
then dd the image across (takes a few minutes) even though very little has changed
<jophish>
then move the sd card around, push it into the tiny slot, then boot
<jophish>
and it fails for a different reason
<jophish>
D:
<ndrei>
oh, must be because the package doesn't specify a licence at all? hmm
<srhb>
ndrei: I see that too.
<ndrei>
okay
marsel has joined #nixos
<jophish>
I should probably ask, does anyone know why linux fails to build remotely, is there some IFD magic going on?
ryanartecona has quit [(Quit: ryanartecona)]
<Infinisil>
Firefox nightly works :D
<zraexy>
Is there any rationale for or against putting things like makeDesktopItem in the derivation as opposed to in a let-expression?
<ndrei>
Infinisil:
<Infinisil>
Hold on it doesn't
<ndrei>
really? cool
<ndrei>
oh :/
<Infinisil>
Goddamnit
<Infinisil>
why does firefox's "About" window say 54, when firefox --version says 56
<srhb>
They didn't update it yet, I guess :-P
<ndrei>
are you sure you closed firefox?
<Infinisil>
ohh, maybe because an instance of the old version is running
<ndrei>
probably
<Infinisil>
RIP all my tabs
<Infinisil>
Ohhh it works
<ndrei>
you lost your tabs? you know it's pretty easy to recover them
<ndrei>
brb neeed to reload weechat
ndrei has quit [(Quit: WeeChat 1.9)]
ndrei has joined #nixos
<Infinisil>
ndrei: Yeah I know, I don't really need the tabs though, I'm a tab hoarder
spinus has quit [(Ping timeout: 260 seconds)]
<ndrei>
haha, yeah.. as long as it's nothing important
koserge has joined #nixos
aneeshusa has joined #nixos
<jophish>
srhb: also, how could I have huge files, this is a 2GB sd card!
<srhb>
jophish: No idea! :-)
<ndrei>
srhb: about the licence issue, isn't this a thing about supplying a meta.licence attr to the package?
<srhb>
ndrei: I'm suspecting it's to do with the "inner" nixpkgs messing things up
<ndrei>
Infinisil: your solution looks good!
<srhb>
ndrei: As a workaround, this works: firefox-nightly-bin = pkgs.callPackage /home/sarah/src/nixpkgs-mozilla/pkgs/firefox-nightly-bin {};
<ndrei>
oh great
<srhb>
Not great, but it works ;-)
<ndrei>
I was thinking of trying that
<ndrei>
well, my entire config right now is a mess of hacks so I don't mind
<ndrei>
still, _much_ better than everything I've used until now (ex Arch user)
<jophish>
hmm
<srhb>
ndrei: Yeah, likewise :)
<ndrei>
ha, cool, I guess there are quite a few of us
<sphalerite>
former debian user here. SSHing into the server I run which is still on debian makes me sad every time
<srhb>
sphalerite: I'm often tempted to nixos-infect my entire workplace :-P
<simpson>
It's only Debian. It's not like it's Arch.
<ndrei>
thanks again for your help, I'm going to use Infinisil so I don't have to clone the repo manually
<srhb>
There's squeeze machines around that no on dares upgrade :|
<srhb>
And it's understandable
<sphalerite>
srhb: infect the people, then the machines ;)
<srhb>
sphalerite: Trying!
<Infinisil>
ndrei: :)
<Infinisil>
sphalerite: srhb: Can I run nixos-infect on people? :D
<srhb>
Infinisil: In version 42.
<srhb>
(tba)
<ndrei>
what's holding you all from doing that?
spinus has joined #nixos
<sphalerite>
Infinisil: yes but it's a bit of a manually-involved process, and a different codebase, which won't run on a computer so you have to evaluate it yourself
<Infinisil>
It's really hard to get normal people excited for nix because it's really hard to show
<Infinisil>
I didn't know I had the problem nix solved before I used it
<ndrei>
well, depends of what you mean by "normal" people, but hey, if you've ever managed a *nix machine, declarative config + nixos-rebuild just blows minds
<ndrei>
Infinisil: interesting statement, yes
<srhb>
ndrei: Infecting the workplace? Lack of enthusiasm to try new things from other people
<ndrei>
basically having to "manage" a machine is the problem, so it's hard to explain when it's taken as normal
<srhb>
I can't just go changing things willy-nilly and they don't care enough to try.
<ndrei>
ah, yeah.. I dunno, I think there's a decent chance for Nix to get some people excited if there's any chance at all
<srhb>
Agree. :)
<ndrei>
I personally was never this happy with a new technology since.. ever, at least not in the OS space, and that's including beginning to use *nix
<srhb>
ndrei: By the way, the warning about mozilla changing the files in place applies to you especially since you're using the global configuration
<ndrei>
oh, what does it do? I haven't yet done the edit, going to right now
<Infinisil>
ndrei: I'm really excited for IPFS, which is also OSS
<srhb>
ndrei: they change the file, but not the name, so you get hash mismatches.
<ndrei>
oh yeah, IPFS too! also IPFS + Nix
<ndrei>
still getting the same error about the licence!
<ndrei>
using your file Infinisil
<ndrei>
really weird
<srhb>
Yes, I'm not sure what's causing it...
<Infinisil>
ndrei: Weird, what's exactly the error? I missed that message of yours
<ndrei>
"has an unfree license (‘unknown’), refusing to evaluate"
<Infinisil>
ndrei: You included the nixpkgs.config.allowUnfree = true;? And you did imports = [ ./mozilla.nix ]; in configuration.nix?
<ndrei>
yep
<ndrei>
it's in your file as well
<ndrei>
I had it already anyway
avn has quit [(Ping timeout: 240 seconds)]
endformationage has joined #nixos
<Infinisil>
Hmm
<sphalerite>
ndrei: are you using nix-env or nixos-rebuild?
<ndrei>
rebuild
<ndrei>
haven't tried nix-env
<ndrei>
I could but I'd really like to keep just the global config
spinus has quit [(Ping timeout: 240 seconds)]
<sphalerite>
Can you paste the relevant part of the file, including where you're importing the alternte nixpkgs?
<cwre>
neofetch isn't giving me the dope logo! I think it's because the colors for xfce terminal are all wonky.. Haven't encountered this before on another *nix botx
<Infinisil>
cwre: I got this figured out before
<sphalerite>
(because iiuc you're using a different nixpkgs for firefox than for other stuff?)
<sphalerite>
ndrei: right — change config={} to config={allowUnfree = true;}
<ndrei>
awesome, had my eyes on this looking at the file, thank you
<ndrei>
still wondering why it works for Infinisil
<sphalerite>
Quite possibly Infinisil has allowUnfree set in the impure config location (~/.config/nixpkgs/config.nix)
<Infinisil>
cwre: You need a config file at ~/.config/neofetch/config
<sphalerite>
for root or something
<ndrei>
sphalerite: still same error
<ndrei>
strange
<Infinisil>
cwre: Copy it from /nix/store/<hash>-neofetch/etc/neofetch/config
<cwre>
Oh interesting
<cwre>
Is there an easy way to find that hash?
<Infinisil>
cwre: realpath $(which neofetch)
ennui has quit [(Ping timeout: 248 seconds)]
<cwre>
Thanks so mcu Infinisil
<cwre>
*much
<Infinisil>
cwre: No problem, does it work like this?
proteusguy has joined #nixos
<cwre>
I does, but Shell is broken, haha
<Gravious>
is there a way to get nix to leave behind the builddir it creates udring a build?
nox_ has quit [(Ping timeout: 260 seconds)]
<Gravious>
it would make this easier to debug
<cwre>
Infinisil: Shell: zsh /run/current-system/sw/bin/neofetch: line 545: /bin/zsh: No such file or directory
<Gravious>
*during
<srhb>
Gravious: With nix-build, it's -K
<Infinisil>
cwre: Weird, it works for me no problem
<cwre>
Infinisil: it's not that big of a deal, haha.
kragniz has quit [(Quit: WeeChat 1.7)]
<cwre>
Just weird that it's throwing that erro.
<Infinisil>
cwre: By the way, neofetch is all in a single bash script, so you can just view it with `vim $(which neofetch)` and debug it a bit with `bash -x $(which neofetch)`
kragniz has joined #nixos
<jophish>
Why wouldn't sshd start on boot?
<srhb>
jophish: permissions, failure to allocate port, broken config, ...
<ndrei>
I'm stumped by this licence thing, haven't tried but I'm pretty sure it's only happening in the global config, since srhb kindly tried and reproed
<srhb>
ndrei: That's accurate, yes.
<Gravious>
srhb, awesome, thanks :)
<sphalerite>
jophish: in which environment?
<jophish>
An arm board, with enable = true; passwordAuthentication = true; permitRootLogin = true;
avn has joined #nixos
<jophish>
I can systemctl start sshd, and then it works fine
<cwre>
What do I change this to if I'm on unstable? nixpkgs.rustChannels.nightly.rust
<cwre>
What do I change system.stateVersion to if I'm on unstable?
<Infinisil>
cwre: You don't
<sphalerite>
jophish: the image might be based on an installer config, where sshd is enabled but not set to start automatically
<cwre>
Infinisil: ah, okay. Thank you!
<Infinisil>
cwre: This should never be changed when updating
<jophish>
ah, that must be it
<sphalerite>
jophish: setting systemd.services.sshd.wantedBy = ["multi-user.target"]; manually might help
<jophish>
perhaps there's a better configuration I should be basing my image on
<cwre>
Infinisil: good to know
<jophish>
sphalerite: hmm, that didn't cause a rebuild of the image
<Infinisil>
cwre: system.stateVersion is there because certain stuff such as postgres databases won't automatically update to the next version, postgres needs to know the state is in an older version
<jophish>
nixos-option just printed "Value:\n"
<sphalerite>
jophish: you might need to use lib.mkForce, as the installer config uses mkOverride 50. I'm not sure what the normal priority for user-provided values is
<sphalerite>
ah, mkForce = mkOverride 50
<sphalerite>
so yes, mkForce should do it I think
<Infinisil>
Why oh why is firefox using 30% CPU when I'm only moving the mouse over the website..
<Infinisil>
3% without movement
<sphalerite>
jophish: if that doesn't help try mkOverride 49 instead of mkForce
<simpson>
Infinisil: The page you're on does a lot of work to handle mouse events. Try disabling JS.
<sphalerite>
Infinisil: the nixos website?
<jophish>
ah, that seems to have made a difference
<jophish>
thanks sphalerite !
<sphalerite>
great
<Infinisil>
simpson sphalerite: It's youtube, I have all javascript disabled with NoScript, maybe a plugin is causing it though, I'll try disabling them next
<cwre>
Can I not install overlays at a systemwide level?
<simpson>
Infinisil: youtube-dl is available in nixpkgs~
pie_ has quit [(Ping timeout: 240 seconds)]
<sphalerite>
Infinisil: youtube is madness :p
<sphalerite>
I think noscript also whitelists youtube by default?
<Infinisil>
simpson: Yeah, but I don't want to download every single video i watch manually, I use YouTube a lot, and also I don't think it's exclusively YouTube, general internet usage is CPU intensive for some reason
<Infinisil>
sphalerite: I'll have a look
<sphalerite>
Infinisil: you can also play youtube videos without downloading them manually using mpv for instance
<simpson>
sphalerite: NoScript does not whitelist Youtube.
pie_ has joined #nixos
<sphalerite>
oh ok
<Infinisil>
Restarting with addons disabled
<Infinisil>
I can't really use my laptop like this when I'm out
<Infinisil>
alright It's better, only about 13% now
<Infinisil>
Javascript is the wort
<Infinisil>
worst
<sphalerite>
that's still pretty bad
<sphalerite>
The modern web is terrible
<Infinisil>
Yeah
<simpson>
We should just turn it all off.
<Infinisil>
systemctl stop internet.service
<ison111>
Does anyone know how to get mpd working on nixos? I've tried running it as both a systemd service and also as my own user. It's able to find my music and in the log files it shows that it adds everything. But whenever I connect with a client there is 0 songs (I've tried connecting with ncmpcpp and mpc). Also I know it is connecting because both mpd and the client print messages saying they've connected
* Infinisil
disconnected
<simpson>
Infinisil: The Web, not the Internet.
<sphalerite>
I'd say the internet is fine, just the web
<sphalerite>
yeah
<Infinisil>
Heh yes
<Infinisil>
ison111: I've got mpd running, I can show you my config
<cwre>
I don't understand how to use nixpkgs-mozilla...
<Infinisil>
And I'm using mpc as my client, invoked via keyboard
Nobabs27 has quit [(Quit: Leaving)]
<Gravious>
ah, i have a pkg fix that als updates the pkg to the latest version
<Infinisil>
sphalerite: simpson: I bet it's somehow possible to use my server to get all webpages statically, as in the server does all the javascript nonsense and it makes it into a static version and serves me that
<Gravious>
what should the commit msg look like? pkgs: version (broken) → new_version ?
revtintin has quit [(Ping timeout: 260 seconds)]
<sphalerite>
Infinisil: probably. Selenium could be useful for that I think
<Gravious>
or pkg: broken (version) → new_version ?
<simpson>
Infinisil: Maybe, but I wouldn't bet on it.
<Gravious>
i'll go with the first
<ndrei>
srhb: I've ended up using your solution (callPackage with the path) in the meantime, and everything works great, thanks!
<Infinisil>
sphalerite: Selenium looks interesting, but I won't try to cobble together a solution for now, I've got enough other problems to worry about
<sphalerite>
Maybe you could also just use w3m or links or something
pie_ has quit [(Quit: Leaving)]
pie_ has joined #nixos
<Infinisil>
sphalerite: w3m heh
<sphalerite>
they have much faster rendering engines as well ;)
<ndrei>
cwre: if you're going with the global config route, just clone / submodule add the git repo at https://github.com/Infinisil/nixpkgs-mozilla (clone by Infinisil to add a missing hash), and than add firefox-nightly-bin = pkgs.callPackage ../nixpkgs-mozilla/pkgs/firefox-nightly-bin {}; somewhere in your configuration.nix
<cwre>
I'll have to do that later.
tvon has joined #nixos
<pie_>
alternatively, anyone know how to install lutris?
<Infinisil>
pie_: Lutris looks like a pain to package
<Infinisil>
The list of "supported runners" is really long and it includes Steam, Wine, Atari800 and a lot more
<ison111>
Infinisil: it still won't work. I'm also using pulseaudio.
<pie_>
clever, think of all the time you'll waste after you make it work!
<clever>
pie_: factorio
<pie_>
haha
<Infinisil>
ison111: What's the error?
Havvy has joined #nixos
<sphalerite>
pie_: civ as in?
<pie_>
sphalerite, civ6 the game
<sphalerite>
oh right civ6
<sphalerite>
I didn't know that even existed :D
isHavvy has quit [(Ping timeout: 248 seconds)]
<ison111>
Infinisil: There isn't one, that's why it's so frustrating. Mpc connects just fine, it just immediately quits because there's no songs (and ncmpcpp also displays a blank list, even though it says it connects). If I run mpd as a normal user (with the same config options in "~/.config/mpd/mpd.conf") with --no-daemon mode it even prints out a message when something connects. The log file actually lists every song
<ison111>
saying it was added, so mpd is definitely finding the music.
<Infinisil>
ison111: Have you added songs to the current playlist with something like `mpc ls | mpc add`
<Infinisil>
?
nox_ has quit [(Ping timeout: 260 seconds)]
<ison111>
Infinisil: yeah, and I see that as soon as I enter it MPD prints out: process command "add "SONGNAME.mp3""; command returned 0. But then when running mpc it still just quits like there's nothing.
<Infinisil>
ison111: With `mpc play`?
<ison111>
Infinisil: hmm, ok now it looks like it tries to play it but reports not being able to connect to pulseaudio. Also, I just ran ncmpcpp and now it's showing songs in the list too. Do I need mpc to populate the list for ncmpcpp?
<Infinisil>
ison111: It doesn't matter, both are clients of mpd, which is running in the background
<Infinisil>
mpc and mcmpcpp are both just programs that can give mpd instructions, they're doing exactly the same
<ison111>
Infinisil: But what was the list in ncmpcpp always blank until I ran that "mpc ls | mpc add" command you mentioned?
<Infinisil>
ison111: Well mpd has a current playlist, which is empty by default, you need to add songs to it to be able to play them
<ison111>
and I did press "u" to update the database, and it looks like it worked but still ncmpcpp would have a blank list
<Infinisil>
ison111: Well that's weird then, no idea
<Infinisil>
mcmpcpp should behave the same as any other mpd client
<Infinisil>
I'll have a look if ncmpcpp works for me
<Infinisil>
ison111: Don't know what the problem could be, it also took me a while to get mpd running with pulseaudio
<Gravious>
^ is the fix for that broken package i mentioned
<Gravious>
it's just a one line change pretty much
pie__ has joined #nixos
pie_ has quit [(Read error: Connection reset by peer)]
hyphon81 has quit [(Remote host closed the connection)]
k0001_ has quit [(Ping timeout: 255 seconds)]
<Gravious>
wow 418 open prs
<Infinisil>
Gravious: I have 2 open ones as well, no update in a while
<Gravious>
Infinisil, if only i knew enough nix to review!
<Infinisil>
I feel like there's too few people with the power of merging PR's
<jeaye>
It's easy enough to use packageOverrides, but how I can override a service config?
<Infinisil>
Considering nixpkgs is one of the most active repos on github
<ison111>
Infinisil: Well you said ncmpcpp was working for you but maybe that's because you've already done the "mpc add" since you use mpc. What if you try making a change to a song, say renaming it or something and see if you can get ncmpcpp to update it in its list
obadz has quit [(Ping timeout: 240 seconds)]
<jeaye>
The spamassassin service in 17.03 is weak sauce compared to what's in master, and I require the flexibility.
proteusguy has quit [(Ping timeout: 260 seconds)]
oida_ has joined #nixos
<Infinisil>
ison111: I've never renamed a song, do you mean changing the metadata or just the filename?
pie__ has quit [(Read error: Connection reset by peer)]
pie_ has joined #nixos
<ison111>
Infinisil: I don't know. But for example I just tried adding a new song in my music directory and there seems to be no possible way to get ncmpcpp to recognize that without using mpc to do it. If update it in mpc and then it works in ncmpcpp
oida has quit [(Ping timeout: 240 seconds)]
<Infinisil>
ison111: Have you read through `man ncmpcpp`?
<srhb>
jeaye: afaik nixos modules aren't very easily modifiable, but perhaps you can duplicate it under a different name?
<srhb>
Though again, they're not very composable either, so that might be a problem...
<jeaye>
hrmph
<srhb>
jeaye: Perhaps branch 17.03 and cherry pick new spamassassin?
<jophish>
What's the earliest kernel nixos will boot at?
<jophish>
and is booting against time (more or less) monotonic?
<jeaye>
srhb: I could do that, but I'm not familiar with running NixOS from a repo.
<sphalerite>
Infinisil: can't be ssh keys, those wouldn't cause TCP errors
swflint has quit [(Ping timeout: 246 seconds)]
<Infinisil>
Okay it doesn't work anymore..
<srhb>
Infinisil: ssh -4 ?
<Infinisil>
`ssh infinisil.io -4`
<Infinisil>
Pseudo-terminal will not be allocated because stdin is not a terminal.
<Infinisil>
ssh: connect to host infinisil.io port 22: Connection refused
swflint has joined #nixos
<srhb>
Infinisil: Other way around
<srhb>
ssh -4 infinisil.io
<Infinisil>
haha that does the same
<srhb>
Uh..
<manveru>
-4?
<Infinisil>
Or not?
<manveru>
oh, ipv4
<srhb>
Anyway, it connected.
<Infinisil>
Well it gives me the same error
<srhb>
I guess order does not matter
eacameron has quit [(Remote host closed the connection)]
<manveru>
it only has an A and SOA entry anyway...
<Infinisil>
srhb: That's how pretty much all commands are designed
<Infinisil>
Alright I'll connect to a different network
eacameron has joined #nixos
<srhb>
Infinisil: Could this be what's happenning? Sometimes you're not being let through on the ipv4 address, and ssh then tries ipv6, which fails with a networking error.
<srhb>
Infinisil: When you force it to ipv4, you see the connection refused error immediately
<srhb>
I would honestly be a little surprised if ssh does that.
orivej has joined #nixos
mkoenig has joined #nixos
xadi has quit [(Quit: Leaving.)]
Ivanych1 has quit [(Ping timeout: 260 seconds)]
<Infinisil>
srhb: I'll check for ipv4/6 support on the server
<sphalerite>
Yeah the order does matter for ssh, because anything after the hostname will be considered a command to run remotely
<Infinisil>
clever: I have no idea.. Am I being MITMed?
<clever>
try running an ftp client against that
<Infinisil>
Ohhhh lol
<clever>
does it let you login?, does it advertise a hostname?
<Infinisil>
Actually no
<Infinisil>
clever: Where would it advertise that?
<clever>
i think its just shown when you connect with a CLI fpt client
<clever>
ftp*
<Infinisil>
Right now it's working.. That is ssh
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
Ivanych has joined #nixos
<Infinisil>
ssh is shown as open now, ftp still open as well
<clever>
weird
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vQ6XQ
<NixOS_GitHub>
nixpkgs/master 12f54a5 Florian Jacob: networkmanager service: use resolved if enabled
<NixOS_GitHub>
nixpkgs/master 0d2d5e2 Michael Raskin: Merge pull request #27143 from florianjacob/networkmanager-support-resolved...
NixOS_GitHub has left #nixos []
<Infinisil>
And it's not working anymore
<Infinisil>
well whatever, I can't be bothered anymore, I'll try later agai
<Infinisil>
n
eacamero_ has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c closed pull request #27197: yices library: enable full functionality by adding libpoly polynomial library and fix soname linking. (master...master) https://git.io/vQoUH
NixOS_GitHub has left #nixos []
eacameron has joined #nixos
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 255 seconds)]
<Infinisil>
Well turns out my droplet doesn't have internet for some goddamn reason..
<srhb>
Infinisil: I'm confused. Your droplet is not infinisil.io ?
<Infinisil>
It is
<srhb>
Infinisil: Then it certainly has internet.
<Infinisil>
Okay turns out droplets need a given nameserver, doesn't work without one
<Infinisil>
(I just removed it before because I thought 8.8.8.8 might be the problem
eacamero_ has quit [(Ping timeout: 240 seconds)]
<Infinisil>
Works agai
<srhb>
I think you're the only one who has consistently had problems connecting to it :-P
<Infinisil>
srhb: Yup..
<srhb>
Infinisil: Are you using fail2ban or something?
<Infinisil>
My internet situation is always pretty bad so I'm not even suprised
<Infinisil>
srhb: I am
<srhb>
Infinisil: Ah, that explains.
<Infinisil>
srhb: How?
eacameron has joined #nixos
<srhb>
Infinisil: You fail a few times logging in over ipv4, probably due to shitty connection, you get throttled by fail2ban, ssh switches to ipv6, you get network unreachable
<srhb>
(I can reproduce this too by spamming login attempts)
<Infinisil>
srhb: Ohh...
<Infinisil>
I'll try to turn it off
<srhb>
Infinisil: You should certainly be careful with it if you have a shoddy connection :)
<Infinisil>
srhb: The thing is, my connection is lately always pretty bad.. Oftentimes I just lose connection, have huge ping, download is always 500KiB/s even though it should be much higher
<srhb>
Infinisil: Ugh :/
<Infinisil>
Maybe I should urge my dad to change ISP's again..
<srhb>
Infinisil: PErhaps you can find a way to exempt yourself from fail2bans rules
eacameron has quit [(Ping timeout: 260 seconds)]
erlandsona has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
<Infinisil>
Maybe
Filystyn has quit [(Quit: Konversation terminated!)]
erlandsona has left #nixos []
<Infinisil>
srhb: Turning off fail2ban seems to have done it, Thanks a lot!
eacameron has joined #nixos
<Infinisil>
While I can't leave it turned off, I now at least know what's the problem
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
filterfish_ has quit [(Ping timeout: 276 seconds)]
eacamero_ has quit [(Ping timeout: 240 seconds)]
MP2E has joined #nixos
eacameron has joined #nixos
mrcheeks has joined #nixos
<slabity>
So I have gcc and clang installed. Is there some way to choose which one `cc` links to?
Sonarpulse has quit [(Ping timeout: 258 seconds)]
<slabity>
On other systems I would just change the symlink, but I'd like to know what way to do that in nix would be
<sphalerite[m]>
Infinisil: you could manually add a firewall rule — before the fail2ban chain is reached — that just accepts connections from your IP
eacameron has quit [(Ping timeout: 248 seconds)]
<Gravious>
did nixpkgs rebase master at some point?
eacameron has joined #nixos
<Gravious>
more likely i screwed something up i guess
spear2 has joined #nixos
<spear2>
how can one see what version of NixOS is installed/running?
<srhb>
spear2: nixos-version
<spear2>
ty
<Infinisil>
Gravious: What is the problem?
eacameron has quit [(Ping timeout: 260 seconds)]
<Gravious>
Infinisil, oh i just have about 1800 commits that have different shas to the ones on master
<Gravious>
Infinisil, i guess i must have screwed something at some point and forgotten about it
<gchristensen>
Gravious: maybe you accidentally mixed 17.03 with master
<Gravious>
oh, right, yes i guess that's possible, if they have divergent histories
Infinisi1 has joined #nixos
<gchristensen>
they do, after branch-off they diverge and never merge back together
eacameron has joined #nixos
phreedom has quit [(Ping timeout: 255 seconds)]
<Gravious>
ah well there we are then :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] MP2E pushed 1 new commit to master: https://git.io/vQ6DK
<LnL>
you made me scared there for a second, I just merged part of staging
Ivanych has quit [(Ping timeout: 255 seconds)]
phreedom has joined #nixos
<slabity>
Okay, so for some reason gcc6 automatically creates the cc link, but not gcc5. I
eacameron has quit [(Ping timeout: 260 seconds)]
eacameron has joined #nixos
<Gravious>
LnL, heh, sorry :/
<LnL>
:)
eacameron has quit [(Ping timeout: 248 seconds)]
eacameron has joined #nixos
<Gravious>
i have a feeling i need to figure out this output splitting thing, i have depended on "pcre" but for some reason only the -dev output is included, which does not actually contain the shared objects required, just pkgconfig files
eacameron has quit [(Ping timeout: 260 seconds)]
praduca has joined #nixos
<slabity>
Is there a way to select a specific python version as the default?
<joachifm>
Gravious: commonly, the dev output will propagate at least the main "real" output as well
<simpson>
slabity: To pick what `pythonPackages` will point to? Not AFAIK.
koserge has quit [(Ping timeout: 246 seconds)]
<joachifm>
Gravious: in what sense have you "depended" on pcre?
<Gravious>
joachifm, i have 'pcre' listed as a build input
<joachifm>
Gravious: pcre.dev propagates lib and bin, but I notice pcre appears to use bin as the default output
<Gravious>
ah
<Gravious>
maybe i will just depend on pcre.dev then
<joachifm>
Gravious: worth a try anyhow
<joachifm>
can't really think of any other reason why it wouldn't work for pcre specifically (unless you're using a custom stdenv setup or something)
<Gravious>
hrm, i would have expected that to force a rebuild, interesting....
eacameron has joined #nixos
<joachifm>
Gravious: nvm, probably not what's causing it ...
eacameron has quit [(Ping timeout: 240 seconds)]
hiratara has quit [(Ping timeout: 255 seconds)]
<Gravious>
joachifm, it's quite weird, 'bin' doesn't have the so, fine, nor does 'dev'.
hiratara has joined #nixos
<Gravious>
maybe i need .out
<joachifm>
Gravious: pcre.out should have it
<Gravious>
yeah
<simpson>
Gravious: What do other derivations do when they depend on PCRE? There's often hints.
<joachifm>
Gravious: just adding pcre to buildInputs *should* be enough ...
<Gravious>
joachifm, yeah weirdly even though i've specified pcre.out the build still seems to be looking in pcre.dev
<Gravious>
simpson, yeah i might check other derivations
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<Gravious>
oh wait
<Gravious>
pcreVariable = "PCRE_DIR=${pcre.dev}";
<Gravious>
>.>
<Infinisi1>
Ohh
marsel has quit [(Ping timeout: 240 seconds)]
michalrus has quit [(Quit: leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] domenkozar force-pushed osx_private_sdk/cleanup from cbde2d3 to d660ce2: https://git.io/vQ6y5
<NixOS_GitHub>
nixpkgs/osx_private_sdk/cleanup d660ce2 Domen Kožar: WIP: get rid of some usages of sdk_private_sdk
NixOS_GitHub has left #nixos []
nmattia has joined #nixos
michalrus has joined #nixos
<nmattia>
hi guys, I'm having some issues with nixops. When I perform the first deploy (using ssh/password), everything seems to work as expected and key pairs are created. However subsequent deploys fail
<nmattia>
nixops doesn't seem to be using it's key pairs, and stranger even, the sshd unit doesn't seem to accept any connection from my computer in spite of my public key being present on the host on `/.ssh/authorized_keys`
<nmattia>
anybody got ideas on what might be going wrong here?
thc202 has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] domenkozar opened pull request #27245: WIP: get rid of some usages of sdk_private_sdk (master...osx_private_sdk/cleanup) https://git.io/vQ6yj
<imalsogreg>
I do see a nixpkgs at ~/.nix-defexpr/channels_root/nixpkgs , fwiw. Perhaps I forgot to delete one of my own bash init files that sets NIX_PATH?
Mateon3 has joined #nixos
Mateon1 has quit [(Ping timeout: 248 seconds)]
Mateon3 is now known as Mateon1
<gchristensen>
yes, the nix path as I set it is export NIX_PATH="/nix/var/nix/profiles/per-user/root/channels"
<gchristensen>
imalsogreg: can you find where you set your nix path and let me know where that is?
<imalsogreg>
gchristensen: I'll search for it.
<imalsogreg>
gchristensen: it was in .zshrc :)
<gchristensen>
hmm!
<imalsogreg>
Dropped that, new terminal window, running your test nix-shell line...
<gchristensen>
imalsogreg: `for file in ~/.bash_profile ~/.bash_login ~/.profile; do` I'm so biased against zsh :P
<imalsogreg>
Ooooh. I see "nix rules" in beautiful colors. And I agree!
<gchristensen>
imalsogreg: nice! can you uninstall, download the installer again, and try again? :D
<imalsogreg>
I will revert to my old .zshrc to see if this catches it.
<gchristensen>
<3
<imalsogreg>
zsh check complains, good :)
<gchristensen>
yay! error message make sense?
<imalsogreg>
They make more than 95% of error messages.
<gchristensen>
hah, ok, well if you have any suggestions I'm all ears :D
<c74d>
Is globally installing (rather than loading in nix-shell) the toolchain for R as unidiomatic as globally installing the toolchain for (e.g.) C?
Fare has quit [(Ping timeout: 240 seconds)]
<simpson>
c74d: I made the nix-shell leap a few weeks ago, stopping using nix-env (almost) entirely, and at this point I'd say yes, toolchains not in nix-shell is an anti-idiom.
<gchristensen>
can you say that with fewer negations? :o
markus1189 has joined #nixos
<c74d>
the difference being that I'd use R interactively, whereas one doesn't use Clang or GCC interactively
<simpson>
gchristensen: No, De Morgan's would lead you astray, since both of those conditions are more-than-binary.
<gchristensen>
haha ok fine
markus1199 has quit [(Ping timeout: 260 seconds)]
<c74d>
perhaps a more popular example would be: if I used Python
<c74d>
perhaps a more popular example would be: if I used Python's REPL, or Perl for replacing patterns in files, should I load those with nix-shell, rather than installing them?
<simpson>
c74d: I also have stuff like custom bash aliases to run a nix-shell with Python rlcompleter.
tmaekawa has quit [(Read error: Connection reset by peer)]
<c74d>
hm
<c74d>
how long does starting a nix-shell take for you?
<imalsogreg>
gchristensen: Something may have broken on the second install. http://lpaste.net/356807
<simpson>
Hm. It's hard to say for sure. A significant fraction of a second, definitely noticeable, definitely fewer than 2s.
tmaekawa has joined #nixos
<gchristensen>
imalsogreg: do you have the log from when you uninstalled before?
tmaekawa has quit [(Read error: Connection reset by peer)]
<imalsogreg>
To uninstall, I just reran install, to find the list of files to delete, and deleted those.
<imalsogreg>
So there aren't any logs :/
<gchristensen>
ah ok, cool
<gchristensen>
can you paste the launchctl portion of the install log?
<c74d>
okay; it's about one second for me, with everything in cache. it's annoying to do often, but I guess I can accept it.
<c74d>
simpson: hm, what *would* you install?
<c74d>
(if anything)
<cwre>
Can someone help me install an overlay for firefox-nightly?
<cwre>
I'm a little confused how it works.
<gchristensen>
imalsogreg: did you run: sudo launchctl unload /Library/LaunchDaemons/org.nixos.nix-daemon.plist then sudo rm /Library/LaunchDaemons/org.nixos.nix-daemon.plist when uninstalling?
simukis has quit [(Ping timeout: 240 seconds)]
<simpson>
c74d: There's a couple things that have to be installed in nix-env for my X11 tools to be able to find them.
<simpson>
XDG tools, fonts, terminal emulators, they all kind of interact in cruddy impure environment-based ways.
<imalsogreg>
No, I didn't run those commands. I probably skimmed the instructions on the second run.
<gchristensen>
ahhh yeah that'll do ya, run sudo launchctl unload /Library/LaunchDaemons/org.nixos.nix-daemon.plist; sudo launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist then
<cwre>
Infinisil: mmm, okay. So I'll just throw it in /etc/nixos/
<Infinisil>
cwre: Sure
<cwre>
Infinisil: wait... You're running Nix on MacOS or running NixOS on your Mac?
<imalsogreg>
gchristensen: Yes, I am in a world of happiness! I'm testing building a couple nix-heavy projects at once. They're happily downloading things and neither is stuck waiting for a lock. This is due to the multi-userness?
<Infinisil>
cwre: NixOS on my mac :)
<cwre>
Infinisil: ahh, okay.
<cwre>
I'm doing something similar.
<Infinisil>
Dual booting, so I actually also have nix in macOS
<cwre>
But I'm running it in a VM, because I don't want to actually break my system.
<cwre>
I have dualboot OSX/Windows.
<cwre>
I had a triple boot with Arch for a while.
<cwre>
But it was basically a waste of space.
<cwre>
A cool project nonetheless.
<Infinisil>
cwre: Nice :)
<Infinisil>
I can't really run this stuff in a VM as I need all the efficiency I can get on my laptop