weq21 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<Enzime>
gchristensen: maybe not the best idea to -r? ;p
<ldlework>
heh
<clever>
#osdev tried that a few hours ago, and had the same discovery
<Enzime>
TIL of mode +z
<Enzime>
"The effects of +b, +q, and +m are relaxed. For each message, if that message would normally be blocked by one of these modes, it is instead sent to channel operators (+o)."
<Enzime>
if you wanted you could do +mz
<clever>
you would then need to +v everybody
<Enzime>
then opers would have to see each message and vet it then could +v the user
timclassic has joined #nixos
<Enzime>
clever: yeah, it'd be kinda annoying in a big channel if there aren't enough ops
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 240 seconds]
lassulus_ is now known as lassulus
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
slack1256 has joined #nixos
<cmcdragonkai>
Is there a consensus or a discussion or issue about which language packages are "good enough" to be packaged inside nixpkgs like Python and Haskell, and which ones are more haphazardly packaged like NodeJS and almost none at all for PHP. Does it make sense for language specific libraries to be eventually moved outside of nixpkgs into their own repos and package sets for their respective communities to manage...?
<samueldr>
the biggest issues AFAIUI is that nixpkgs cannot import them since it won't do IFD
<samueldr>
,IFD
thc202 has quit [Ping timeout: 240 seconds]
<samueldr>
[21:40:40] <{^_^}> import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2
Supersonic has quit [Ping timeout: 256 seconds]
<samueldr>
(I think the bot's taking a nap)
<angerman>
where does `nix-shell` get `$TMP` from?
epic22 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<benkolera>
Ty gchristensen .
<emily>
wow, old school
Supersonic has joined #nixos
<gchristensen>
(I'll put it backwhen I can also set +f)
<benkolera>
That spam is a bit rough when you are at work and your client autoembeds images.
<gchristensen>
yikes
<benkolera>
OK. gonna have to turn off embedding for this channel. lol
graphene has quit [Remote host closed the connection]
<angerman>
benkolera: work from home :p
<gchristensen>
ok there we go
<gchristensen>
sorry benkolera, that is obviously not what we're all about here.
graphene has joined #nixos
<benkolera>
All good. Everyone is suffering similarly in this spam flood. Channels can't exist without +r anymore. :(
<angerman>
so I need to do `nix-shell` and then set `export TMP=$(mktemp -d)`; why wouldn't nix do that on its own?
<gchristensen>
I was hoping freenode's recent improvements made it unneeded
<jonreeve>
lHi everyone, what would be the appropriate way of installing OMF (oh-my-fish) and a few plugins for the fish shell? Should I try to write a package for it?
selfsymmetric-mu has quit [Remote host closed the connection]
<ldlework>
With 'nixops create' what is the point of the supplying multiple files? How are they combined?
<clever>
ldlework: if the files define different machines, then the cluster will have all of those machines
<clever>
ldlework: and if 2 files define the same machine, the config is merged, the same way nixos modules merge when added to imports
Fare has joined #nixos
<clever>
ldlework: you could also have 3 files, machines.nix defines every machine in the cluster, aws.nix sets aws options, and vbox.nix sets vbox options
<ldlework>
clever: i followed an example, and i have a foo.nix and a foo-aws.nix and they both define foo attributes. in foo.nix foo is defined as a nix module - in foo-aws.nix foo is defined as a function taking "resources" which defines some AWS settings
<clever>
ldlework: then you can create a machines.nix+aws.nix cluster for amazon, and machines.nix+vbox.nix to deploy the same cluster to virtualbox
<ldlework>
clever: right but how are the expressions in the files merged?
<clever>
ldlework: resources is a argument nixops adds to all nixos modules
<ldlework>
they both define "foo = "
<clever>
ldlework: the exact same way as nixos modules being added to the imports field of configuration.nix
<ldlework>
that doesn't seem right though
<ldlework>
let me pastebin my shiz
<clever>
ldlework: gist helps when dealing with multiple files
<ldlework>
oh okay so the attributes are just used for grouping
<ldlework>
that makes more sense to me
<clever>
nixops adds 2 extra arguments that nixos modules can accept, nodes, and resources
<clever>
nodes is a set of every other machine in the cluster, so you can do nodes.sophos.config,services.whatever to read the config of another machine
<clever>
and resources is the non-machine stuff defined in the nixops files
<clever>
in your gist, the only resource is an ec2 keypair
<ldlework>
thanks for the explication
<clever>
a common reason to split them up like in your gist, is that you can create a sophos-vbox.nix, that sets deployment.targetEnv = "virtualbox"; instead
<clever>
and then if you just swap that file out, you can test the same setup there
<ldlework>
clever: if there is a setting like config.foo.<bar>.enable how can I define the option if I have the value of bar in a variable?
<ldlework>
I don't need to define an option, just declare its value
<clever>
foo.${variable}.enable
<ldlework>
nice
nix-build has joined #nixos
<gchristensen>
{^_^} is known as nix-build for the night
<gchristensen>
,IFD
<nix-build>
import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2
<gchristensen>
the other nick connected / quit too many times trying to fix a join bug and has been blacklisted for a few minutes-to-hours but I'm going to bed now, so can't find out :) 'night.
<cmcdragonkai>
When importing nixpkgs (via a fetch), and then reimporting it because you want to apply different overlays, is that an example use of IFD?
<clever>
cmcdragonkai: depends on if you need to complete any builds to do that
<cmcdragonkai>
Yep, I have builds that need an overlay "override".
<ldlework>
I'm doing a (for me) tricky thing. There are some options like I described above (config.foo.<bar>.enable). I want to define my own options such that I take less parameters than the existing options and I set some defaults. I think I understand how to define some options such that it accepts a list of entries... but what I'm totally lost on is how I would then map over the value of my list and assign the
<ldlework>
generated values for config.foo.<bar> entries. Maybe I'm going too far.
scott has joined #nixos
<ldlework>
yeah too confusing
<sb0>
how do I install something from a local copy of nixpkgs?
<clever>
ldlework: that sounds like what 99% of nixos modules do
<clever>
other code in the same file should use something like map to iterate over all values, and apply them to another config option
IRCsum has joined #nixos
<clever>
its a fairly complex area of nixos
<ldlework>
fun employment would be to extract all this knowledge out of the community and put it into user introductory material
<ldlework>
not that i really understand what we just went over anyway
IRCsum has quit [Remote host closed the connection]
IRCsum has joined #nixos
<ldlework>
summarizing, you define the option type that will be repated, then where the option is repeated, you use one of the two techniques shown and refer to the first option type setup. in the config option you simply utilize the option values as structured data and do whatever it is that you want
<clever>
yeah
<elvishjerricco>
So I've got an openvpn server that all my machines use to be able to see each other at all times. Is it possible to get them to see each other by their hostnames over this network, while still preferring any other network they can see each other on? I.e., I want to use the same hostname no matter where I am, but prefer the local network when both machines are at home.
<clever>
ldlework: and the submodule has an extra argument called name
<clever>
so when you set fileSystems."/".foo, it will call this function with name == "/"
<clever>
ldlework: line 62 then maps that into the mountPoint option
<clever>
so its identical to fileSystems = [ { mountPoint = "/"; foo = ...; } ];
<ldlework>
clever: what makes this all confusing
<ldlework>
or more confusing than it already is
<ldlework>
is that it seems like the module system is being for non-module-y things?
<ldlework>
to just have a way to express a way to merge attrsets and stuff?
<ldlework>
do people wield the module-merging machinery all the time like this
<clever>
those sets still have types for all of there keys
<sb0>
now, how do I install a python package from this locak nixpkgs?
<sb0>
*local
<ldlework>
clever: like, it is a functio nthat returns { options = ...; config = ...; }, so I imagine then, that this being accmulated somewhere and the module merge machinery is being called on it?
<ldlework>
clever: i feel like i need a 6 week on site nix bootcamp where you sleep in a dusty dorm room, wake up, have cafeteria breakfast with folks and then just consume lectures for 12 hours
<ldlework>
let's get that going
<sb0>
yay, that works thanks
<clever>
sb0: -I foo/ and <nixpkgs> will try to use foo/nixpkgs
<sb0>
even -p python3Packages.h5py
<clever>
sb0: the same as -I in gcc
IRCsum has quit [Remote host closed the connection]
<sb0>
well both "-I ~/nixpkgs-unstable/" and "-I ~/nixpkgs-unstable" do not work
IRCsum has joined #nixos
<clever>
sb0: yeah, because when nix does <nixpkgs> it resolves to ~/nixpkgs-unstable/nixpkgs
<clever>
which probably doesnt exist
<clever>
so nix ignores that -I entry, and goes to the next thing in $NIX_PATH
IRCsum has quit [Remote host closed the connection]
<nix-build>
[nixpkgs] @Chiiruno opened pull request #45098 → Fix hydron service, update hydron and meguca → https://git.io/fNxjX
IRCsum has joined #nixos
justan0theruser is now known as justanotheruser
kiloreux has joined #nixos
IRCsum has quit [Remote host closed the connection]
Fare has quit [Ping timeout: 240 seconds]
slack1256 has quit [Ping timeout: 244 seconds]
emacsomancer has quit [Read error: Connection reset by peer]
IRCsum has joined #nixos
emacsomancer has joined #nixos
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
growpotkin has left #nixos [#nixos]
slack1256 has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
<elvishjerricco>
Hm. My MacBook fails to wake from either suspend or hibernate
<elvishjerricco>
I just switched it to (encrypted) ZFS, though I never tried either before the switch.
rprije has quit [Remote host closed the connection]
jD91mZM2 has joined #nixos
rprije has joined #nixos
<elvishjerricco>
Looking at the journalctl, it looks as though it reaches suspend or hibernate just fine; no errors or anything. But the very next line is the reboot message from after I've forced it off and on again.
klntsky has quit [Remote host closed the connection]
klntsky has joined #nixos
emacsoma` has joined #nixos
emacsomancer has quit [Ping timeout: 256 seconds]
jonreeve has quit [Ping timeout: 268 seconds]
mayhewluke has quit [Ping timeout: 244 seconds]
mayhewluke has joined #nixos
yosemitesam has joined #nixos
<elvishjerricco>
Is there a way to see the dmesg log from the last session?
Drakonis has joined #nixos
<elvishjerricco>
Assuming `journalctl -k -b -1` is what I want, then yea, the last message just says `PM: suspend entry (s2idle)`. No kind of attempt to wake, it seems.
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hyper_ch>
Hmmm, i just had an interesting issue... z_rd_int spawned about 5+ processes and it read my SSD mirror for like 15 min at full speed.... couldn't really use my notebook anymore.
<hyper_ch>
wrong channel
endformationage has quit [Quit: WeeChat 1.9.1]
simukis has joined #nixos
orivej has quit [Ping timeout: 272 seconds]
orivej_ has joined #nixos
<nix-build>
[nixpkgs] @aszlig pushed to release-18.03 « nixos/systemd: Allow to override serviceConfig »: https://git.io/fNpfz
graphene has quit [Remote host closed the connection]
<YellowOnion>
I'm trying to build a haskell app with nix, and one of my depedencies is refusing to compile because of a version error, anyone know how to fix this?
cbarrett has joined #nixos
<YellowOnion>
I don't even need this depedancy since it's just a testing library.
<srhb>
ldlework: Well, you have found the location of the problem already, with your trace
<srhb>
ldlework: That's supposed to be a string. i'm guessing you're not doing whatever transformations the newznc module is doing before setting that?
<ldlework>
srhb: the newznc module expects stuff like
<ldlework>
Users.ldlework = { ... some config ... };
<ldlework>
so I thought I generated an attrset just like I would set if i were setting the options normally
<ldlework>
with each key being a username
<ldlework>
and each value being the attrset I would normally assign to the username
<srhb>
ldlework: Maybe it is a little too early to look at this, but I guess the problem then is that the way you're using newznc is not causing apply to fire corretly...
<ldlework>
Just trying to remove some duplication/boilerplate, but it is no big deal in the end.
<srhb>
ok, here's the easier way then
<srhb>
Make a function that takes whatever kind of attribute set you like
thc202 has joined #nixos
<srhb>
And then newznc = yourFunction yourValue
<srhb>
No extra modules.
<ldlework>
heh
<ldlework>
not bad and I can ask infinisil later about the issue
philippD has joined #nixos
<srhb>
Yeah, I can't brain module related issues right now it seems. xD
<ldlework>
hehe
<srhb>
I feel like it's *handwave* a problem with the merging/applying rules relating to setting the value as another option
<srhb>
But meh
<srhb>
Let's ask infinisil :-P
<ldlework>
yeah :D
<ldlework>
I did make an easy reproducable case :)
<ldlework>
srhb: it did reproduce for you right?
thetet has quit [Quit: Leaving.]
<ldlework>
how do you test crap like that btw
<ldlework>
personally
<srhb>
It did, yes.
<srhb>
Um, I generally don't make things that complicated, so usually my stack traces are a bit clearer, to be perfectly frank...
<nix-build>
[nixpkgs] @bendlas pushed to master « dropbox: update installer base version »: https://git.io/fNpqg
<srhb>
But other than that, the usual things: Start commenting out things in a bisection-like manner until it builds, then start building back up the intended functionality
<ldlework>
srhb: well the function method was straight forward and worked
<srhb>
ldlework: :) Simple is good.
<ldlework>
// is the best operator
<srhb>
I get the idea of wrapping modules though, I've occasionally tried to use it as a desperate attempt and bringing some sort of type sanity to my configurations, but I always regret it.
<ldlework>
srhb: my whole configuration is staged as custom modules which has very simple interfaces
<ldlework>
and then my actual system config is just a few mine.this mine.that
<ldlework>
inspired by infinisil
<srhb>
ldlework: My approach is to have an overlay that adds a ton of lib functions for helping me write concise configuration modules
<srhb>
I could probably retrofit some of the module system to do duck type checks in it...
<srhb>
Actually I may just import the ADT stuff instead
<ldlework>
what's very strange is now i'm deploying
<srhb>
Where'd that go anyway, hasn't it been like a year?
<ldlework>
it is copying a TON of closures
<ldlework>
SDL?!
<ldlework>
wtf
<ldlework>
why is it copying sdl
<ldlework>
wayland
<srhb>
nix why-depends time :P
<ldlework>
wpa-suplicant
<ldlework>
all the libX libraries
<ldlework>
idgi
<ldlework>
it is jsut gonna run out of space
<ldlework>
lastpass-cli
<srhb>
Well, the answer is simple, you obviously depend on them.
<ldlework>
something is wrong here
<ldlework>
it is like it is deploying my local system config
<ldlework>
srhb: well i just discovered the problem with having all your utility stuff as modules like that
<ldlework>
it all gets sucked into the closure
<srhb>
Huh?
<srhb>
How is that a problem.
<srhb>
I mean, that sounds like the exact intention. :P
<srhb>
If I use a module I certainly want it included.
<ldlework>
no like all the modules are auto imported but guarded with mkIf's around various mine.*.enabled options
<srhb>
Right..
<srhb>
That sounds good?
<ldlework>
but for some reason, it was like all the packages they *might* include in environment.systemPackages were being shipped over to the remote machine
<srhb>
I mean, every module in nixos is included in the exact same fashion, guarded by mkIf cfg.enable
<ldlework>
whether or not i enabled them or not
<srhb>
That sounds like you have a bug.
<srhb>
Because the intention you are stating is how nixos works in general :)
<ldlework>
seems like a lot of data to copy just to not be enabled in the final result
<jonge>
hi there. when i have my own hydra instance running - and my projects include some kind of documentation output, too: is there some way to "post" the latest documentation somewhere in an automatic fashion?
<srhb>
jonge: You're in luck!
<sphalerite>
sb0: and how are you installing this?
<Xyliton>
gives me this? `Unable to find libclang: "couldn\'t find any of [\'libclang.so\', \'libclang.so.*\', \'libclang-*.so\'], set the LIBCLANG_PATH environment variable to a path where one of these files can be found`
<srhb>
Xyliton: I'd say exactly because of the error message.
<srhb>
I see rust packages explicitly having a configurePhase that sets that.
<Xyliton>
srhb: `export LIBCLANG_PATH="${pkgs.llvmPackages.libclang}/lib"` in my configure phase doesn't seem to do anything. Any idea what I messed up?
<srhb>
Xyliton: You're using it as a nix-shell, right?
<Xyliton>
yea
<srhb>
Xyliton: can't you just set it like you do with RUST_BACKTRACE then
<srhb>
You're not executing the build, just getting the build environment, when you use nix-shell
thetet has joined #nixos
thetet has left #nixos [#nixos]
<Xyliton>
oh, yea, that seems to work
<srhb>
:)
<joko>
Hey, is anyone using Pulseaudio? It seems it's not working anymore for me on latest nixos-unstable-small
<joko>
sphalerite: no sound, pavucontrol shows only "Establishing connection to PulseAudio. Please wait...", although I can see a "pulseaudio --start" process from my user
<sphalerite>
joko: what if you kill it and run pulseaudio --start in the terminal?
cryp2nomicon has joined #nixos
<cryp2nomicon>
i'm `nix-env -iA nixos.cscope` in my 32-bit dell mini, and it goes again to the 'rust' thing, which takes forever in my old netbook. I have to cancel
<joko>
sphalerite: good call, it seems to be working now
<sphalerite>
joko: hm well that's not ideal xP
<sphalerite>
cryp2nomicon: 32-bit support is fairly limited nowadays unfortunatley.
<sphalerite>
cryp2nomicon: luckily x86_64 is backwards-compatible so what you *could* do is build it all on a more powerful x86_64 machine
revtintin has quit [Ping timeout: 260 seconds]
<nix-build>
[nixpkgs] @flokli opened pull request #45110 → sqldeveloper: simplify, add darwin support → https://git.io/fNplK
<cryp2nomicon>
sphalerite: i have a more powerful x86_64. How can i copy to my 32-bit?
<sphalerite>
cryp2nomicon: ^ should build cscope for 32-bit on host and copy it over, after that you should be able to install it without any building using the same nix-env command you mentioned before
ericsagnes has quit [Ping timeout: 265 seconds]
alex`` has joined #nixos
<nix-build>
[nixpkgs] @jfrankenau opened pull request #45111 → splix: install color profiles and enable JBIG → https://git.io/fNp4v
<jonge>
hey there, what is the state of nixos on raspberry pi? is it possible to build a .iso file from a full configuration.nix, blast that iso file on the memory card and boot the readily preconfigured system?
<ajs124>
I've been trying to package linphone-desktop for nixos and it compiles, but fails crashes with some (qt related?) error messages, which I do not really understand
tertle||eltret has quit [Quit: Connection closed for inactivity]
<srhb>
nikivi: Yes, you can use overrideAttrs to change the name of the package
<Xyliton>
so... anyone got an idea why the expression for the emojicode compiler works, but another one using rust and bindgen (but the _same_ header file) results in clang complaining about stuff missing like cstdint and "new"?
fdietze has joined #nixos
<fdietze>
Hi, is there something like a fold in the nix language? I want to iterate over a list and construct one set out of it
<srhb>
fdietze: Yep, fold!
<tazjin>
fdietze: yep, there are lots of primitives like that - the ones that aren't language builtins are hidden under `lib` in the package set
<fdietze>
nice, thank you. Where can I find the docs or an example?
siers has quit [Quit: Connection closed for inactivity]
<LnL>
there's also gccStdenv for the opposite on eg. darwin
wigust has joined #nixos
ciil has joined #nixos
endformationage has joined #nixos
<layus>
I assumed that stdenv were named stdenvXXX after stdenvNoCC, but apparently it's more XXXStdenv, and the nocc is the exception....
<layus>
Aaah, naming in nix ;-)
<LnL>
there's also gcc.stdenv :p
balsoft has joined #nixos
<LnL>
but that's not what you might think it is
inquisitiv3 has joined #nixos
<inquisitiv3>
Is there a simple and easy way to get third-party applications that is distributed in Appimages or tarballs to run on Nixos? E.g. Sublime text or Tor browser.
<balsoft>
Well, appimage should run "as is"
<LnL>
dunno about appimage, but we have sublime AFAIK
<balsoft>
Just patchelf --set-interpreter `nix-build <nixpkgs> -A glibc`/lib/ld-linux-x86-64 app.AppImage should make it work
<layus>
LnL, I guess gcc.stdenv is just the stdenv that is used to build gcc itself, right ?
<inquisitiv3>
balsoft: I'll test that.
<inquisitiv3>
LnL: I couldn't find Sublime when I searched in the search form on the website.
<LnL>
yes, that doesn't show unfree packages
rprije has joined #nixos
<LnL>
layus: yeah
<Zajcev>
Network name: test1
<Zajcev>
ups
<Denommus>
how can I manually set the IP of my nixops deployments?
arjen-jonathan has quit [Ping timeout: 268 seconds]
kyren has joined #nixos
<inquisitiv3>
balsoft: When I run the command I get the error message "patchself: command not found".
<balsoft>
inquisitiv3: patchElf, not patchself
arjen-jonathan has joined #nixos
<inquisitiv3>
LnL: How do I search after unfree packages?
<inquisitiv3>
balsoft: I get the error message that it isn't installed. Guess I should install it?
<balsoft>
inquisitiv3: nix-shell -p patchelf
<balsoft>
oh, the command is just "patchelf"
<balsoft>
no capital E
<balsoft>
wait a sec, I'm going to test it with subsurface
Fare has quit [Ping timeout: 272 seconds]
<balsoft>
I just heard that it should work
<inquisitiv3>
balsoft: Now I get the error message "bash: nixpkgs: No such file or directory".
qtoni has joined #nixos
<balsoft>
patchelf --set-interpreter `nix-build '<nixos>' -A glibc`/lib64/ld-linux-x86-64.so.2
kiloreux has quit [Quit: Leaving]
<balsoft>
oh, that wouldn't work as well
<balsoft>
patchelf --set-interpreter `nix-build '<nixpkgs>' -A glibc`/lib64/ld-linux-x86-64.so.2
<balsoft>
don't forget quotes
<balsoft>
and at the end, your appimage
<balsoft>
Doesn't quite work with Subsurface
<balsoft>
it still misses some libs
<inquisitiv3>
balsoft: Appimages isn't fully self-contained. They can depend on system libs (don't know if you know that).
<balsoft>
Do you happen to know which libraries exactly can AppImages depend on?
<inquisitiv3>
balsoft: I'm not sure. I don't know if it's specified in a standard, or if it's up to the packager to choose which libs is assumed to be accessible.
<Denommus>
I manually edited the nixops sqlite file
<inquisitiv3>
balsoft: I want to reserve myself for misinterpreting some information, but to my knowledge AppImages is allowed to depend on system libs.
<balsoft>
What are "system libs" exactly?
<Mic92>
Has somebody nixos configuration for kubernetes that I can copy and paste to check something quick?
<balsoft>
I believe it would be easy to create a script that would allow us to run AppImages
<balsoft>
or better, a binFmt so that it runs out-of-the-box
<inquisitiv3>
balsoft: That seems to be the list for that. :)
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<balsoft>
I am working on a script. I've been thinking for the past couple of days about a script that would run "arbitrary" binaries on nixos by composing a list of commonly used libs. AppImages are a good place to start
<makefu>
isnt there a patchelfhook now which does most of the hard work?
<inquisitiv3>
tilpner: Is that a derivate one need to install, or it something else?
<tilpner>
inquisitiv3 - Yes, try installing nixpkgs.appimage-run, then using "appimage-run ./your.appimage"
rprije has quit [Ping timeout: 244 seconds]
kyren has joined #nixos
<tilpner>
It's not meant for packaging, just the same "I need to run this now, don't want to package it" as steam-run
<inquisitiv3>
tilpner: When I try to run `nix-shell -p appimage-run` I get the error message "error: undefined variable 'appimage-run' at (string):1:94 [...]".
<inquisitiv3>
tilpner: Is it only available in unstable?
<tilpner>
Hmm, not sure what channels it's in
<tilpner>
Maybe only unstable, yes
balsoft has quit [Ping timeout: 260 seconds]
<inquisitiv3>
tilpner: Well, 18.09 is around the corner so it isn't so much time to wait. Is everything in unstable going in 18.09?
fdietze has quit [Quit: Page closed]
<tilpner>
Anything that isn't removed before 18.09 will be in 18.09
<sb0>
is there a way I can tell nix to stop setting $HOME to /homeless-shelter and instead provide a writable directory?
<tilpner>
(So practically yes)
<sb0>
I want to check how far a certain way of building a package can get, and I don't want to figure out how to make it stop using $HOME yet
<inquisitiv3>
tilpner: Good to know! I'll just have to wait one and a half month then (hopefully).
<tilpner>
sb0 - export HOME=$(mktemp -d)?
<tilpner>
inquisitiv3 - You can use it now, if just to try it
<sb0>
by the way, why does nix refuse to build when that directory exists? is there a case when this isn't because the user wants to work around that problem?
<sb0>
i'd suggest turning it into a warning (or having a flag to turn it into a warning)
<inquisitiv3>
makefu: Thanks!
<inquisitiv3>
tilpner: `appimage-run` was successfully installed and in my path when I jump into the nix-shell environment. But I get some error messages when I try to run the Appimage.
<tilpner>
inquisitiv3 - What error messages, with which appimage?
<inquisitiv3>
tilpner: I'll posting the error message to pastebin. The AppImage is the Skycoin wallet (a cryptocurrency)
<infinisil>
> _show = x: if lib.isDerivation x then "<derivation ${x.drvPath}>" else x
<{^_^}>
_show defined
<inquisitiv3>
tilpner: Now it works! Took some time to start the app, but now it runs :D
<inquisitiv3>
tilpner: Thanks for the help!
<tilpner>
inquisitiv3 - Subsequent runs will be faster
<tilpner>
(slightly)
mzan has joined #nixos
abueide has joined #nixos
<inquisitiv3>
I've noticed some applications that I run in nix-shell environments that saves their dotfiles in my $HOME. I'm thinking of situations there applications have incompatible dotfiles between versions. Is there a good solution to this problem?
<inquisitiv3>
I don't have the problem now, but I like to be prepared and have good habits from the beginning.
<{^_^}>
[nixpkgs] @jtojnar merged pull request #45107 → lightdm: enable the accounts daemon to find dbus interface → https://git.io/fNpGf
<seanparsons>
Is there a simple way of producing nix expressions for emacs packages akin to cabal2nix? I'm finding myself wanting to use some slightly more bleeding edge versions than are in nixpkgs.
Ariakenom has quit [Ping timeout: 268 seconds]
<Myrl-saki>
seanparsons: Technically not Nix, but there's a declarative package manager for Emacs called `straight`
mzan has left #nixos [#nixos]
vidbina has joined #nixos
<ivan>
phry: does your virtualbox manage to boot a nixos livecd?
<phry>
ivan: actually I've got an idea. could it be that activationScripts are sourced, so calling "exit" withgin them kills the whole OS?
<{^_^}>
[nixpkgs] @shlevy pushed to master « Add back (optional) deterministic profiling patch for GHC 8.4 »: https://git.io/fNpbS
<seanparsons>
Myrl-saki: I'm already using the nix infrastructure for Emacs, it's more that I need specific versions of the packages that nixpkgs holds.
abueide has quit [Ping timeout: 260 seconds]
<phry>
ivan: yup, that actually was it. argh -.-
<ivan>
heh
<Dezgeg>
a good reason to avoid using activation scripts as much as possible
<tilpner>
phry - I have a few activation scripts, and they all just call an external generated script, so that a syntax error doesn't break my system
<cransom>
an activation script would be an odd place to be doing software management. for the instance here, it should just be a package and if you really need /srv, do the linking then.
<phry>
yeah, I know this is kind of hacky but for a demo-VM that is probably used once or twice this should suffice. I just wrapped it with a call to bash, now everything works
Cale has quit [Remote host closed the connection]
<tilpner>
emily - Not generally, and without details. Don't override, don't use environment.noXlibs, don't overlay core packages, etc.
<{^_^}>
[nixpkgs] @lsix opened pull request #45116 → pythonPackages.django: update django_2_0 and add django_2_1 → https://git.io/fNpAB
johnw has joined #nixos
ryanartecona has joined #nixos
kolb has joined #nixos
lsyoyom has joined #nixos
Ariakenom has joined #nixos
orivej has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @Mic92 merged pull request #45111 → splix: install color profiles and enable JBIG → https://git.io/fNp4v
dkibi has quit [Remote host closed the connection]
__Sander__ has quit [Quit: Konversation terminated!]
Drakonis has quit [Remote host closed the connection]
Drakonis has joined #nixos
vmandela has joined #nixos
<Henson>
When using mkDerivation and nix-build with a bash build script, how are dependant files included in the derivation and referenced inside the build script? I'm just assigning the file paths to variables in the derivation, and referencing them by the similarly-named environment variable in the shell script. This doesn't seem to be working consistently. Is this the correct way to do it?
<Henson>
clever: I'm adapting a closed-source program to a Nix derivation
<clever>
Henson: it is much much simpler to write these things if you dont use builder/args
<clever>
Henson: first, paste the entire contents of builder.sh into buildCommand = '' .... ''; in the nix file, and delete args/builder
<Henson>
clever: oh really? Nix Pills told me to do it :-)
<clever>
those are more examples of how it works internally, doing it that way heavily limits what you can do
<Henson>
clever: I'll give it a try
<clever>
when you use buildCommand, PATH is handled entirely for you, so you can omit line 8
<clever>
and then you dont need binPath, so line 32 can go as well
doyougnu has joined #nixos
<clever>
coreutils, gzip, and many others are in the default stdenv, so those too can be deleted
<clever>
Henson: after making those changes, you can post the new version to a gist and any errors you may be having
<kalbasit[m]>
hey guys, is it possible to use serial console with systemd-boot?
vmandela has quit [Ping timeout: 260 seconds]
<infinisil>
samueldr: You probably know this ^
<Henson>
clever: after doing that, the problem is still the same as before. In the same directory as default.nix there are three files, referred to on lines 9 through 11 in the derivation file. Only the pylonArchive file (19 MB in size) seems to be copied into the /nix/store directory. If the build succeeds, then the others are also copied and are found by the "ls" command on lines 20 and 21 of the...
<samueldr>
infinisil: I actually don't know :)
<samueldr>
but I can check quickly
<Henson>
clever: build script. If the build fails, then they are not found. Regardless of the build pass/fail state, the pylon file appears in /nix/store, but the other files do not.
<samueldr>
kalbasit[m]: I was thinking about checking whether it can or cannot *from upstream* first :)
<Henson>
clever: using the buildCommand, it gets upset if I use ${out} instead of $out, but doesn't seem to care about the other shell variables. Shouldn't shell variables properly be enclosed in curly braces?
<clever>
samueldr: give up and use grub? lol
<samueldr>
probably easier!
<kalbasit[m]>
most likely yea
<kalbasit[m]>
I'll give grub a try
<clever>
Henson: ${pylonArchive} is no longer a shell variable but a nix variable
<clever>
Henson: its refering to line 9 of the old default.nix
<kalbasit[m]>
but I'm still looking for the config option
sanscoeur has quit [Remote host closed the connection]
aarvar has joined #nixos
<kalbasit[m]>
`boot.loader.grub.extraConfig` I see
<kalbasit[m]>
ok I'll give it a try
<samueldr>
kalbasit[m]: using qemu, and the installer iso I get serial
<samueldr>
that is, without changing anything
<samueldr>
and it doesn't look like there's anything special in the systemd-boot config from the installer
<kalbasit[m]>
samueldr: so it works for you?
<kalbasit[m]>
what speed?
<samueldr>
no configuration as far as qemu is concerned
<samueldr>
just `-serial stdio`
<kalbasit[m]>
coz I have a serial console on my desktop (now server) and I have a dedicated embedded device for using the serial but I can't seem to connect to it. This used to work with Arch
<kalbasit[m]>
samueldr: was that after boot or during boot?
<samueldr>
that was systemd-boot's own menu
<kalbasit[m]>
I need it mainly to type in the luks password
kyren has joined #nixos
<samueldr>
that's another issue then
<samueldr>
the kernel (AFAIK) won't know about the serial console even if the bootloader itself does
sanscoeur has joined #nixos
<clever>
kalbasit[m]: if you want linux on the serial and dont care about grub, you need to add console=ttyS0 to the kernel params
<kalbasit[m]>
clever: yea but this would work only after boot
abueide has joined #nixos
<kalbasit[m]>
so it won't allow me to type in the password
<kalbasit[m]>
maybe I should make a key-file USB device?
<clever>
kalbasit[m]: that effects the initrd as well, and handles the luks passwords
<gchristensen>
man, I just use GRUB. it supports so much stuff at boot time.
kyren has quit [Client Quit]
<kalbasit[m]>
gchristensen: for my laptop, systemd is so just enough
<kalbasit[m]>
but I think I have to move to GRUB for my server
<clever>
kalbasit[m]: to start with, try adding boot.kernelParams = [ "console=ttyS0" ]; and then nixos-rebuild boot and reboot
jperras has joined #nixos
arjen-jonathan has quit [Ping timeout: 272 seconds]
<gchristensen>
infinisil: around?
<infinisil>
Yup
slyfox_ is now known as slyfox
<gchristensen>
infinisil: want to write a cute, simple little {^_^} extension?
kyren has joined #nixos
<infinisil>
If it doesn't take too long to implement, sure :)
<infinisil>
What is it?
<infinisil>
(I still haven't implemented your "wish me luck" thing btw)
<gchristensen>
no worries :)
kyren has quit [Client Quit]
<tilpner>
gchristensen - I saw you removed the bot code from ofborg, does it have a new home yet?
kyren has joined #nixos
Thra11 has joined #nixos
alex`` has quit [Ping timeout: 260 seconds]
Fare has quit [Ping timeout: 240 seconds]
<gchristensen>
infinisil: every 2-5min send a message to #nixos-unregistered: Hello! You've been sent to #nixos-unregistered due to the recent spam attacks on Freenode. Please register and identify with NickServ to join #nixos (/msg NickServ help). Sorry for the inconvenience! (I thought about asking something fancier, like the first time anyone says something, send it, but eh)
<gchristensen>
(you could make it fancier if you want, but it doesn't have to be)
<LnL>
well, maybe only when somebody sends a message
<gchristensen>
then it is easy for it to be an amplification attack, so it would need to be a timeout + messages were sent
<LnL>
yeah, not _evey_message ;)
alex`` has joined #nixos
<infinisil>
My code currently only supports sending messages when a message is received, so what LnL suggested (with a timeout) would be the easiest
<MichaelRaskin>
Wiping the channel with unprovoked reminders seems excessive in any case
<gchristensen>
how about make a list of people who have said something, and every time someone new says something, send the notice
<clever>
gchristensen: i easily missed the notice Sigyn sent when i started to flood a bit
<gchristensen>
right now the situation is bad with people being frustrated by no help. "you're in the wrong place" spam seems much better.
<infinisil>
I'd rather not have it require any state
<gchristensen>
LnL's feature is not implementable without state
<MichaelRaskin>
gchristensen: unprovoked — I mean when there is nothing else happenning
<MichaelRaskin>
Keeping track of people is not as useful as it seems, either — one could miss that authentication went wrong after a reconnect
<infinisil>
Ah right, I'll just make it a timer though (e.g. have the bot say something max every minute)
<kalbasit[m]>
gchristensen: do you use an EFI Partition as the grub device?
<gchristensen>
you don't count that as state?
<LnL>
gchristensen: yes, but doesn't the current implementation already have spam protection?
<samueldr>
kalbasit[m]: for EFI you're kinda forced to have an ESP
<MichaelRaskin>
Every minute is pain…
<samueldr>
but for the configuration, it's "nodev"
<samueldr>
kalbasit[m]: give me a sec
* gchristensen
is just going to go build this
<LnL>
was thinking it might be reusable for this
<kalbasit[m]>
samueldr: sure
<infinisil>
gchristensen: Ah yeah, but it only requires a simple date to store, not a list of users
<gchristensen>
infinisil: don't worry about it, I've got it
<infinisil>
I mean, I got pretty much all code ready already
<infinisil>
(Even for the per-user state)
<Xyliton>
I think I figured out why my emojicode bindings aren't compiling. Any idea why the include search path has entries when running `clang++` manually but through bindgen they are empty? Do I have to manually set that in my nix expr?
<gchristensen>
infinisil: ok, sure
<gchristensen>
I'm just not willing to spend more than 5min talking about a "you're in the wrong place" message.
betaboon has quit [Quit: WeeChat 2.1]
siers has joined #nixos
{^_^} has quit [Remote host closed the connection]
<growpotkin>
Hey I'm sure somebody can help me with this. I am trying to patch a src directory immediately after fetching it. I'm imagining something like `my-derivation...; src = myWrapper { src = fetchFromGitHub {...}; patches = [./mypatch]; }; rest-of-my-derivation...; }
<growpotkin>
but I'm having a hard time finding an example to work off of.
erickomoto has joined #nixos
erickomoto has left #nixos [#nixos]
erickomoto has joined #nixos
graphene has quit [Remote host closed the connection]
<clever>
Henson: `set -e` is not needed, the stdenv does that for you
<clever>
Henson: line 24, you can change the cp to: cp -a ${./69-basler-cameras.rules} .... and then delete line 8, and repeat for other similar things
vidbina has quit [Ping timeout: 260 seconds]
<Henson>
clever: the one thing that's unsatisfying is the findMissingLibraries flag. This changes the derivation so the buildCommand will output the ldd information on the executable files and then fail, allow me to greg the results for any unsatisfied libraries (line 15). But on line 49 if glibc is included, then I get a "version GLIBC_PRIVATE not defined" error in ldd. So I have to remove glibc for it
<clever>
Henson: if you run ldd after patchelf, then you dont need LD_LIBRARY_PATH
<clever>
line 63 is also not needed, the stdenv already defaults to the current system
<Henson>
clever: yeah, but using ldd is when I'm trying to find all of the libraries to include in buildInputs when I'm writing the derivation file. It gets disabled once I've found all the libraries to include.
<clever>
and line 61 will be wrong on 32bit, you want --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)"
<adamantium>
clever: well i wonder if there is any benefit of using zfs-auto-snap for root if you are not snapshotting /nix
<clever>
you have snapshots of /etc/nixos, so you can just rollback the config and nixos-rebuild
lawlesseel has joined #nixos
<inquisitiv3>
Is there a difference between derivates for NixOS and other systems just having Nix?
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen>
infinisil: please decrease the time from 1hr to 5-10 minutes
<adamantium>
clever: so to clarify for me, you are saying the benefit of a zfs snapshot of root ( / ) sans /nix is that you have snapshots of your /etc/nixos directory for rebuilding your system?
<gchristensen>
1hr is much too long for people who join and ask a question
<infinisil>
gchristensen: Oh yeah good point
<gchristensen>
I mean, that is fundamentally a hard thing and is why I was wanting every minute or five minutes.
<gchristensen>
any timeout in place can cause people to miss the warning
<clever>
adamantium: yeah, as long as i have the config, and maybe the nixpkgs rev, i can repair almost any damage to /nix (except the nix-env profile list of packages)
<infinisil>
gchristensen: Would you prefer 1 minute?
<clever>
adamantium: this module adds a full nixos installer into /boot/, and then you can just select that and repair a missing /nix if you wanted to
<adamantium>
oreally
alex``` has joined #nixos
<adamantium>
how can i get this onto my menu too
<adamantium>
^_^
<clever>
adamantium: just copy that file into /etc/nixos/ and add ./rescue_boot.nix to the imports list
<adamantium>
using the same format as hardware.nix that is already in there?
<clever>
yep
<adamantium>
k
<adamantium>
ty
<clever>
adamantium: note, that it uses about 300mb on /boot
<clever>
so you will need a sizeable /boot
<adamantium>
my /boot is in my root pool so no worry there
<adamantium>
s/pool/dataset
alex`` has quit [Ping timeout: 240 seconds]
<adamantium>
what is this netboot stuff ?
<clever>
the netboot scripts in nixpkgs are for creating a kernel+initrd pair, that have the rootfs in the initrd, and booting it over the network
alex``` has quit [Client Quit]
<clever>
but nothing stops you from putting the same kernel+initrd pair on /boot and just loading them with grub
<Denommus>
gosh
<Denommus>
configuring a docker registry with gitlab is hard
<srk>
clever: I'm wondering about netboot right now - how to get rid of paths not actually required for booting but pulled in by script.ipxe .. init=/nix/store/3hsznn9sq2kn2lam5ihn7g0dd1ib72m8-nixos-system-nixos-17.09.3243.bca2ee28db4/init
<clever>
srk: builtins.unsafeDiscardStringContext
<srk>
nice
<srk>
clever++
<{^_^}>
clever's karma got increased to 20
<clever>
srk: all strings in nix have some magic context, that allows nix to track dependencies
<clever>
so when you do "${hello}/bin/hello" it knows that the string depends on the hello package
<adamantium>
while im here, guys, emacs' nix-mode, wtf tab isn't aligning my code ???
<srk>
I see
<clever>
but "${builtins.unsafeDiscardStringContext hello}/bin/hello" just throws that out, so now you have the path, but dont depend on it
<clever>
and if you use that on the kernel params in script.ipxe, then script.ipxe wont depend on the init
<srk>
nice, less time waiting for closures to be copied \o/
<clever>
srk: and any time your using that, it helps to make sure the nix sandbox is enabled
stanibanani has joined #nixos
stanibanani has left #nixos [#nixos]
<clever>
because if you use it the wrong way, it wont even be in the sandbox, and you will catch the problem a lot sooner
<srk>
ok
<MichaelRaskin>
gchristensen: infinisil: whay is 1 hour timeout too long?
<MichaelRaskin>
Person speaks, person gets direct-mentioned.
<gchristensen>
<John has joined #nixos-unregistered> John: hi! Bot: wrong place! **5 minutes pass** <Roger has joined #nixos-unregitered> Roger: Hi! **crickets**
<MichaelRaskin>
I thought 1-hour timeout is per-person?
<infinisil>
Oh it's per-user though
<clever>
gchristensen: sometimes you just need to rip the safety labels off and let natural selection take its course :P
<srk>
having some hard time with sandboxing lately due to secrets-not-in-store requirement. looks like even that is doable without turning off sandboxing (seen that yesterday in nixops code iirc)
<gchristensen>
oh well
<gchristensen>
cool :)
<infinisil>
MichaelRaskin: gchristensen: I think it makes sense to not encourage people to talk there at all, a message every minute will be good against that
<adamantium>
does anybody use nix-mode in emacs, and does pressing tab not align your code?
<gchristensen>
+1
* adamantium
is trying to figure out if dealing with a bug or a feature
<MichaelRaskin>
infinisil: argh, I don't want that kind of attack on my unread counter!
<infinisil>
Should I decrease it to an hour again? :P
<gchristensen>
infinisil: no
<MichaelRaskin>
Ah, it is only reply timeout
<MichaelRaskin>
Then it at most doubles, that's not a problem
<adamantium>
clever: i rebooted and tried the "nixos installer" menuentry, it doesn't load, says needs to load the kernel first, that "rescue-kernel" is not found.
<adamantium>
clever: yet in /boot i see rescue-kernel is there plainly.
ambro718 has joined #nixos
<clever>
adamantium: the grub config expects that /boot/ is the root of a partition
<clever>
and that the existing grub.cfg has mapped $drive1 to that partition
<ambro718>
A NixOS live "CD" can be dd'd to a flash drive and will boot, right? there is no funny setup needed?
<clever>
if its just a folder on / then you will need to insert a /boot onto the paths on lines 17&18 of the nix file
<sphalerite>
ambro718: yes
<adamantium>
k
<ambro718>
thanks
<clever>
ambro718: yep, just dd to the root of the drive, it already has partition tables
Xyliton has quit [Remote host closed the connection]
mayhewluke has joined #nixos
timokau[m] has joined #nixos
<timokau[m]>
For some reason a makefile in a `buildFHSUserEnv` only uses one core even though I'm passing `-j4`. Why is that?
<inquisitiv3>
I got the help earlier to install `appimage-run` from unstable in a nix-shell environment to run an appimage. I was successfull to start the application in the environment. But now there is a symbolic link named `result` in the directory I was in then I launched the AppImage.
pie_ has joined #nixos
<sphalerite>
timokau[m]: maybe there aren't any targets that can be built in parallel?
<{^_^}>
[nixpkgs] @lopsided98 opened pull request #45130 → Fix documentation of default option priority → https://git.io/fNhL9
<inquisitiv3>
The link seems to go to glibc in the /nix/store.
Fare has joined #nixos
<timokau[m]>
sphalerite: it can normally use 4 cores
<sphalerite>
timokau[m]: if you clean the build directory and run make -j4 again, does it use 4?
<inquisitiv3>
I tried to remove the directory with root privileges (with `sudo`) without thinking first (fucking stupid, I know).
<clever>
inquisitiv3: rm result
<sphalerite>
inquisitiv3: just remove the symlink
<clever>
not `rm result/`
<timokau[m]>
sphalerite: I initially ran from a clean build directory and it only used 1. I don't want to redo the build since its pretty slow
<sphalerite>
timokau[m]: I highly doubt that the FHSUserEnv stuff is to blame
ryanartecona has quit [Quit: ryanartecona]
<sphalerite>
inquisitiv3: so you broke your nix entirely?
<inquisitiv3>
I've ran `sudo nix-collect-garbage`. Is there any way to verify I haven't deleted something I shouldn't?
<adamantium>
clever: i still don't have it right yet, now looking at my current working nixos generated grub, it uses the format: linux ($drive2)//ROOT/nixos/@/nix/store/...
<timokau[m]>
sphalerite: It probably does some fancy sanity checking of core counts or something that is broken by the chroot / needs some additional dependency
<inquisitiv3>
sphalerite: Nope, I don't think to. I only get the error message that it's a read-only filesystem.
<clever>
adamantium: ive not tried zfs support in grub, so it may need something like that to deal with zfs
<adamantium>
clever: but your .nix generated using ($drive1)
<adamantium>
i think i should modify it to match what grub is doing currently?
<balsoft>
So I've found out that there is already appimage-run script. Apparently I'm blind
<clever>
adamantium: yeah
<balsoft>
and stupid
<adamantium>
cool
<inquisitiv3>
sphalerite: Is the option `--no-sigs` correct?
<sphalerite>
inquisitiv3: err I meant --no-trust
<inquisitiv3>
sphalerite: With or without root priv?
<sphalerite>
it's not needed
doyougnu has quit [Ping timeout: 240 seconds]
<inquisitiv3>
sphalerite: It just returned "[8941 paths verified]", nothing more. Is the system OK?
ambro718 has quit [Quit: Konversation terminated!]
<sphalerite>
inquisitiv3: yep
<inquisitiv3>
sphalerite: Thanks!!!
<inquisitiv3>
But isn't even I with root privileges able to directly remove things from /nix/store?
<clever>
inquisitiv3: nixos bind-mounts /nix/store read-only by default to stop you
peel has joined #nixos
<sphalerite>
inquisitiv3: yep. There are some situations in which python stuff run as root manages to modify the nix store, not sure about the exact circumstances
<adamantium>
ok clever, works surprisingly great now ! i'm impressed. just fyi for grub2 and zfs i needed: linux ($drive2)//ROOT/nixos/@/boot/rescue-kernel
<sphalerite>
inquisitiv3: you can delete stuff using nix-store --gc and --delete
<inquisitiv3>
clever, sphalerite: I'm just surprised that you can set read-only on directories. I thought that they at least needed to be separate partitions.
<clever>
adamantium: i dont really trust grub with zfs, so i use an ext4 /boot/
<clever>
inquisitiv3: mount /nix/store /nix/store -o bind,ro
<clever>
inquisitiv3: the read-only is on the mount point, not the directory
<adamantium>
yeah, i know the reasons the why and am comfortable with it.
<adamantium>
but i don't blame you
<clever>
adamantium: ive heard stories of grub taking 5 minutes to load because it doesnt read the index in /nix/store properly
<clever>
adamantium: and it failing to even find kernels because there are too many directories in store
<inquisitiv3>
clever: You learn something new every day :)
<adamantium>
lol
<neonfuz>
Anyone know how to enable redshift properly?
<neonfuz>
I set service.redshift.enable = true; and set lat + long
<neonfuz>
I tried 'systemctl start redshift', got 'redshift.service not found', tried 'systemctl --user enable redshift', says something starting with 'The unit files have no installation config'
<clever>
neonfuz: its a user service, not a system service
<clever>
so you need systemctl --user
<neonfuz>
yeah I tried that
<neonfuz>
systemctl --user enable redshift, errored out
<adamantium>
clever: now you got me curious, my nixstore kernel is currently this deep: linux ($drive2)//ROOT/nixos/@/nix/store/sny3mhrza6bz8fb1fa0pv193j809mcf4-linux-4.14.54/bzImage
<neonfuz>
or just start?
<clever>
neonfuz: enable doesnt work on nixos
<clever>
neonfuz: use --user with start
<neonfuz>
okay
<adamantium>
clever: do you suppose it will get even longer in due time?
<neonfuz>
also, any recommended way to start this on logging in?
<neonfuz>
I'm using i3 and lightdm
<clever>
adamantium: the path length wont change, but as more directories get added to /nix/store it may break booting
orivej has quit [Ping timeout: 272 seconds]
<neonfuz>
I used to start my emacs daemon in windowManager.i3.extraSessionCommands, but that seems to have broken lol
<{^_^}>
[nixpkgs] @xeji pushed commit from @dtzWill to master « ssdeep: 2.13 -> 2.14.1 (#45114) »: https://git.io/fNhZ4
<castilma>
hey, can someone help me with ltrace? it doesn't show me library calls from selfmade shared libraries. i tested it with foo.c:int bar(int a) {return a+1;} and main.c:int bar(int); int main() { return bar(1);} #should exit with 1+1=2. compile/run with gcc -shared -o libfoo.so foo.c; gcc -o main main.c -L. -lfoo; env LD_LIBRARY_PATH=. ltrace ./main;
<emily>
"dhcpcd = if !config.boot.isContainer then pkgs.dhcpcd else pkgs.dhcpcd.override { udev = null; };" maybe it's stuff like this in nixpkgs causing problems :/
<adamantium>
clever: i have added generationsDir.copyKernels = true; in addition to grub.copyKernels = true; and it seems to have made no difference? what is generationsDir.copyKernels for?
witchof0x20 has quit [Remote host closed the connection]
kyren has joined #nixos
witchof0x20 has joined #nixos
sir_guy_carleton has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
goibhniu has quit [Ping timeout: 240 seconds]
<inquisitiv3>
How do I search for available packages? I've looked at the cheatsheet on the wiki but it seems to have parts that I don't know if they're necessary.
<inquisitiv3>
E.g. I want to search for Sublime text and Tor browser bundle.
<adamantium>
I have a similar question, i feel like things i expect might be missing. Like I just typed "file" and was command not found. Is there some meta package I could install that will just give me all the typical tools I have come to expect and know
orivej has joined #nixos
<samueldr>
inquisitiv3: `nix search sublime`
<shlevy>
ryantm: (is basvandijk here?): I'd like to propose we turn on the deterministic profiling patch for GHC by default now that we have profiling libs built by default
<shlevy>
ryantm: peti originally wanted it disabled by default because it produces binaries with a different ABI than upstream's (different symbol names), but upstream's names are non-deterministic anyway (that's the whole point of the patch) and we're now populating cache.nixos.org with non-deterministic results.
<shlevy>
ryantm: the patch is already in 8.6, by the way
<clever>
adamantium: every attribute under boot.loader is a seperate bootloader
goibhniu has quit [Ping timeout: 260 seconds]
<adamantium>
ty
<inquisitiv3>
samueldr: I got it working
<inquisitiv3>
:)
<adamantium>
clever: do you also recommend i consider setting zfs.force=1 or using one of the related nix configuration options? I have seen on other distros sometimes the pool can fail to import without it in some circumstances
Lisanna has joined #nixos
<clever>
adamantium: force is only needed if the pool was last used by a different hostid
jluttine has quit [Ping timeout: 268 seconds]
trcc has quit [Remote host closed the connection]
<adamantium>
clever: i had trouble installing nixos at the beginning, because i was bootstrapping it into a dataset on a prexisting pool, it needed the hostid before it would proceed. I chrooted the old distro's dataset and found the hostid there, then gave that to nixos
<inquisitiv3>
samueldr: I've added `sublimetext3` to the list of applications to install in my configuration.nix. When I run `sudo nixos-rebuild switch` I get the error message "error: undefined variable 'sublimetext3' at /etc/[...]".
<inquisitiv3>
I've copied the name of the package from the list of search matches to avoid typos.
<samueldr>
inquisitiv3: package name != attribute name for the package
<samueldr>
(let me know if you need more hints)
<inquisitiv3>
samueldr: Aah. I took a deeper look at the search result after reading your hint. That's really confusing...
<samueldr>
yeah, attribute names vs. package names at first are confusing
Ariakenom has quit [Quit: Leaving]
<inquisitiv3>
samueldr: Btw, how is the job as a release manager going?
<inquisitiv3>
Your first or second time?
<clever>
adamantium: if both distros have the same hostid, then nixos wont notice it was last in use by a different "machine"
<samueldr>
inquisitiv3: fine, first time, kinda overwhelmed at first since I also break-in in the shoes of maintainership, though I manage, I think the next two weeks and the next months will be more hectic, but not that bad
<adamantium>
clever: oh, so maybe that was the wrong idea I did there? Maybe I should have just used / made up a random number?
<clever>
adamantium: if its a dual-boot on the same pool, sharing the hostid is perfect
<adamantium>
ok ok ! then i did the wrong thing. I know there can be some dangers involved, clever , admittedly, i do not understand the issue or the hostid for that matter.
<adamantium>
(Right!! thing. I did the //right // thing !!)
<inquisitiv3>
samueldr: I can understand that it's overwhelming. Lots of new things to learn and think about. But exciting?
<samueldr>
definitely exciting and interesting :)
<adamantium>
clever: do you know, if i ever am unable to import my pool, can i use grub edit and add the parameter zfs.force=1 to force it? Will that work here?
lord| has joined #nixos
<adamantium>
I don't know if it is in the initramfs or not...
<clever>
adamantium: possibly
nckx has quit [Quit: Updating my GNU GuixSD server — gnu.org/s/guix]
balsoft[away] is now known as balsoft
<adamantium>
knowing me i will do some monkey business at some point and forget to export my pool thats why i ask
<inquisitiv3>
samueldr: I read quickly vcunat's post on Discourse about 18.09 being forked of in about a month, but I can't find any info if you had any "theme" for Jellyfish. Do you have any or is it a lot of smaller changes?
<clever>
adamantium: you can also use one of these to get a shell inside the initrd, then just manually do zpool import --force
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nckx has joined #nixos
<samueldr>
inquisitiv3: I don't think there's any "theme" or large changes specifically targetting, but I can't say for sure... though it's in fewer than two weeks...
orivej has quit [Ping timeout: 272 seconds]
<samueldr>
... everyone time to polish your PRs :)
<adamantium>
clever: ok that sounds good
arjen-jonathan has quit [Ping timeout: 260 seconds]
<adamantium>
clever: how do i activate that boot.shell_on_fail
<clever>
adamantium: add it to the kernel params from grub, or boot.kernelParameters
<adamantium>
does it go in configuration.nix or on the boot parameter
<clever>
either
<sphalerite>
adamantium: press E in your boot loader
<adamantium>
i'm aware of E
<inquisitiv3>
Does Nix have any repository for the source code that is used to build packages?
<sphalerite>
inquisitiv3: sort of.
<sphalerite>
inquisitiv3: you can do `nix build nixpkgs.hello.src` to get a `result` symlink pointing to the source code for hello
kyren has joined #nixos
<sphalerite>
inquisitiv3: and some of the source is somehow or other mirrored on cache.nixos.org, but I'm not sure of the exact details
<adamantium>
clever: the grub paramater, should it be boot.shell_on_fail=1 ? or allowShell=1 ? I don't know how to read this.
<sphalerite>
there definitely isn't any systematic source mirroring
<sphalerite>
adamantium: the former
<adamantium>
k
<adamantium>
ty sphalerite
<clever>
adamantium: just boot.shell_on_fail by itself
<drbrule>
Hello fair inhabitants of #nixos, I bring frankencense and myrrh in hopes of some enlightenment. I suck at nix, and I am attempting to write a nix expression that replaces `pkgs.haskellPackages.callPackage ./cabal2nix.nix {}` with `pkgs.haskellPackages.cabal2nix "whatgoeshere?"` any ideas
graphene has quit [Remote host closed the connection]
<drbrule>
is `whatgoeshere?` simply the name of the filename of the cabal file?
graphene has joined #nixos
Drakonis has quit [Remote host closed the connection]
<LnL>
cabal2nix is a package not a function so adding whatgoeshere would result in error: attempt to call something which is not a function but a set
<ldlework>
how to get the contents of a file as a string?
<ldlework>
ah
jperras has joined #nixos
hlolli has quit [Remote host closed the connection]
drewr has quit [Remote host closed the connection]
Denommus has quit [Remote host closed the connection]
<ldlework>
infinisil: you know your auto importer, what happens when you want to break up a module into multiple files? like if you had a foo/default.nix and foo/support.nix
<ldlework>
inside the path that was under the purview of auto importing
<clever>
adamantium: in the past, i have used the source command in grub.cfg to source another grub.cfg file
<infinisil>
ldlework: Just use whatever auto-importing behaviour is right for you, it's just a bunch of functions after all
<clever>
adamantium: you could potentially have 2 /boot partitions, for different OS's (even 2 nixos's!), and then have a menu option that sources the other one on-demand
<adamantium>
that is not good clever, i have found a massive grub bug with that sourcing approach
<clever>
adamantium: they could even share a zpool, if they have different roots
<infinisil>
ldlework: And if it really doesn't work with auto-importing, then just don't use it and put the files in a different dir
<clever>
adamantium: i had source inside a menuitem, so it only sources when i tell it to
<adamantium>
grub built with zfs support does not support sourcing a custom.cfg reliably.
<adamantium>
that much, i do know.
<clever>
adamantium: this is something i did back when i wasnt commited to nixos, and i was still using the gentoo grub to source the nixos grub.cfg
<adamantium>
well, i'm just trying to be helpful :) it's only my experience
<adamantium>
but yes, clever, right now i have two datasets in my ROOT pool with two operating systems, my funtoo and now this nixos. It is pretty fun
<Mateon2>
Hey, does anyone here know where the default backgrounds for xfce are stored? Something got messed up when I moved computers, and my background is now a solid color.
<Mateon2>
Huh, this is confusing. I can't actually set the desktop background, the images don't show up in the Desktop settings menu
haitlah has joined #nixos
seanparsons has quit [Ping timeout: 240 seconds]
ollieB has quit [Ping timeout: 240 seconds]
seanparsons has joined #nixos
haitlah has quit [Read error: Connection reset by peer]
<techieAgnostic>
am i just really dumb, or is it really hard to run `stack upgrade`?
haitlah has joined #nixos
<Mateon2>
Oh, I think I see the issue, I just straced a program that didn't work, and found out that /etc/profiles/per-user does not exist
<Mateon2>
Is it safe to just copy that directory from the old machine?
<ldlework>
infinisil: do you notice that when you use nixops with a machine that has included the auto-importer, that even options you don't enable, they get packages copied over in the closure ?
<Mateon2>
Wait, the old machine does NOT have that directory, I'm confused why a bunch of env variables point to it, then
bennofs has quit [Ping timeout: 240 seconds]
jmeredith has joined #nixos
philippD has joined #nixos
<drbrule>
Could someone explain what pkgs.haskellPackages.callPackage is doing?
<drbrule>
I don't even know where to look that up
<drbrule>
I am attempting to run `pkgs.haskellPackages.cabal2nix` instead of `pkgs.haskellPackages.callPackage ./cabal2nix.nix {}`
<drbrule>
it would be nice to not have to manually generate the cabal2nix.nix, and just have nix do it on the fly
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Acou_Bass has joined #nixos
rprije has joined #nixos
<{^_^}>
[nixpkgs] @LnL7 opened pull request #45163 → mypy-protobuf: init at 1.6 → https://git.io/fNhKy