<rycee> Best of luck!
<benley> I can live with it breaking dbus activation of user-installed packages
fenedor has quit [(Quit: Leaving)]
<benley> (probably)
<rycee> Make sure you have a way to start a terminal that doesn't require dbus activation (like gnome terminal) :-D
<benley> I'm using konsole, I think it starts up sanely when you run it as a normal executable
cybrian has quit [(Read error: Connection reset by peer)]
phdoerfler has quit [(Quit: Leaving.)]
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
typeggzero has joined #nixos
cybrian has joined #nixos
<benley> this seems good so fra.
<benley> *so far.
<magnetophon> I'm having a weird problem with nixos-rebuild: I'm expecting an error because of a hash I still need to change, but instead I get a completed build.
typeggze1o has quit [(Ping timeout: 240 seconds)]
<samueldr> magnetophon: replace some characters with others, like a couple x
ambro718 has joined #nixos
<samueldr> I might be wrong, but I think that nix sees the hash, sees it's already loaded, continues with existing file
<benley> rycee: with services.dbus.socketActivated=true I don't need the symlink in ~/.local/share/dbus-1/services anymore
<magnetophon> samueldr: I allready did
<samueldr> (please correct me if I'm wrong!!)
<samueldr> ah
* benley makes a pleased face
<magnetophon> I'm trying to see which parts of the code are reached, by changing some code to nonsense and checking if I get an error
<benley> rycee: thanks for your help!
<rycee> benley: No problems. Glad it works for you :-)
<magnetophon> I get errors as expected, till I end up at the line "linux_4_14_rt = callPackage path"
<rycee> benley: If you run into some oddities then putting `XDG_DATA_DIRS DEFAULT=@{HOME}/.nix-profile/share:@{HOME}/.nix-profile/lib` in `~/.pam_environment` may resolve them.
<magnetophon> there, if I change 14 to 15, I get an error as expected, but when I change callPackage to callPackage1, nixos-rebuild proceeds without complaining
<magnetophon> samueldr: isn't that super weird?
<rycee> benley: Mainly if you install to your user profile something that depends on dbus activation.
<benley> huh, I've never heard of ~/.pam_environment before.
roconnor has quit [(Quit: Konversation terminated!)]
fikovnik has quit [(Ping timeout: 260 seconds)]
<samueldr> magnetophon: it might mean that what you're modifying isn't reached, but still feels weird to my still learning self
ambro718 has quit [(Quit: Konversation terminated!)]
frankpf has quit [(Ping timeout: 250 seconds)]
<magnetophon> samueldr: I don't understand. the code is: "linux_4_14_rt = callPackage ../some/path". when I change the 4 into a 5 I get an error, as expected, so that line is reached. when I change callPackage to nonsense,or the path to a non-existing one, the build proceeds. That doesn't make sense to me...
agjacome has quit [(Quit: leaving)]
<samueldr> question for the room: would the right part be evaluated somewhat lazily&
<samueldr> this doesn't seem to be in nixpkgs
<magnetophon> samueldr: it's in https://github.com/musnix/musnix
<magnetophon> that's for kernel 4.13. I'm trying to add 4.14
shanemikel has quit [(Quit: My MacBook Air has gone to sleep. ZZZzzz…)]
shanemikel has joined #nixos
laggy_wifi has joined #nixos
shanemikel has quit [(Client Quit)]
simukis has quit [(Ping timeout: 248 seconds)]
<magnetophon> samueldr: thanks for your time so far. I hope someone can help me get this mystery solved!
astronavt has joined #nixos
laggy_wifi has quit [(Quit: Konversation terminated!)]
<pcarrier> anybody tweaks memory usage of ZFS on nixos? it was great until I started running too much stuff :P
<infinisil> pcarrier: #zfsonlinux
<benley> I haven't but I probably ought to :-P
<benley> but yeah, any zfs memory tweaks for nixos should apply equally well to any other linux distro
<infinisil> yup
<pcarrier> infinisil: I'm guessing there are special considerations with nixos so it works out for initrd modules?
MP2E has joined #nixos
<infinisil> zfs on linux is the same zfs as on any other distro, nixos has nothing to do with high memory consumptions (with like 99.9% probability)
<pcarrier> infinisil: thanks for the platitudes. I might need the setting to be picked up by my kernel before my root is mounted.
<pcarrier> infinisil: I doubt "that's the same for every distro"
phreedom has joined #nixos
<pcarrier> eg does boot.extraModprobeConfig get propagated to the initrd?
<infinisil> pcarrier: no idea, I mean if you need help with setting some kernel thing with nixos, then #nixos is your place, but i don't think people would happen to know how to tweak ZFS here
typeggze1o has joined #nixos
<pcarrier> I swear I understand how freenode channels work. I'm wondering about the nixos part here.
<benley> pcarrier: I think all the kernel module level changes you'll need to make can go in boot.kernelParams
<benley> errrr wait sorry
<benley> make that boot.extraModprobeConfig
typeggzero has quit [(Ping timeout: 248 seconds)]
<benley> e.g. boot.extraModprobeConfig = "options zfs zfs_arc_max=6442450944";
<pcarrier> OK thanks. that's what I was hoping for :)
<benley> and I *think* you can put a list of strings in that option and they'll magically get concatenated together into one multiline string.
<clever> kernelParams = [
<clever> "zfs.zio_taskq_batch_pct=50"
<clever> "spl.spl_taskq_thread_bind=1"
<clever> benley: this is how i was setting various zfs flags
<benley> my guess is that accomplishes the same thing, but via the kernel commandline rather than modprobe options
<clever> the kernel args also let you set options to things that where linked in at compile time
<clever> so modprobe can never set those
<benley> of course :-)
<benley> but I don't think it's possible to link zfs and spl in at compile time, so ...
<benley> which is to say, your way works perfectly well, carry on
typeggzero has joined #nixos
sigmundv__ has joined #nixos
<infinisil> sorry pcarrier, i didn't understand you correctly before, was a bit too unfriendly
<pcarrier> worries, sorry for my reaction
<infinisil> :)
typeggze1o has quit [(Ping timeout: 255 seconds)]
<magnetophon> clever: I hope you don't mind me pinging you, but as a fellow musnix user you might be able to help me with my question above ^^^
typeggze1o has joined #nixos
<infinisil> magnetophon: Why are you using musnix if i may ask?
<magnetophon> infinisil: because I nead real-time audio?? Not sure if I understood the question correctly.
typeggzero has quit [(Ping timeout: 260 seconds)]
<infinisil> like are you a musician or running a home-cinema? I don't know what real-time audio is used for
<infinisil> i'm using the normal pulseaudio setup and I've never noticed a too long deloy
<samueldr> RT kernels are usually used for live audio stuff
<samueldr> (or other realtime uses, like automation with hardware)
<magnetophon> infinisil: ah. I have a recording studio: www.magnetophon.nl, and I wrote some FX/synth crossover software: https://github.com/magnetophon/VoiceOfFaust
<samueldr> magnetophon: how did you add the rt kernel to your configuration.nix?
<samueldr> (I've loaded musnix, updated my test machine, and want to test)
<clever> magnetophon: is something actually using the overriden kernel?
rosa has joined #nixos
<magnetophon> infinisil: for the recording it's crucial that the audio gets full priority, so there are no dropouts, and for the FX software you want really low latencies (less than 10ms) so it feels like the output reaches you as soon as you give input. clear?
rosa has quit [(Client Quit)]
laggy_wifi has joined #nixos
<magnetophon> samueldr: you need to do: kernel.realtime = true; and kernel.optimize = true;
<magnetophon>
<magnetophon> in musnix, that is.
<infinisil> magnetophon: samueldr: I see, thanks!
<samueldr> not 100% sure, but it looks like you might also need `musnix.kernel.packages` with the proper attribute
<magnetophon> clever: yeah, I've been using (almost) the same config for as long as musnix exists. when I boot into the profile I have for it, and do uname -a, I see that I have in fact an rt kernel. does that answer your question?
<samueldr> infinisil: realtime in OS design (afaik) means that when a program asks to run for X amount of time at Y moment in the future, it WILL, guaranteed
<clever> magnetophon: boot.kernelPackages has to be set correctly to make it use that version
<samueldr> clever: looking at musnix, they might have their own option that overrides the nixos option
<magnetophon> clever: yeah, I have that too.
<infinisil> samueldr: Yeah I already know what real-time scheduling is, but wasn't quiet sure of the use-casese
<samueldr> ah, sorry then
<magnetophon> samueldr: yup: musnix.kernel.packages = pkgs.linuxPackages_latest_rt;
<samueldr> and, did you change latest_rt to point to 4_14 (dumb question, but you never know!)
<clever> magnetophon: line 99, it will decide between kernelpackages and linuxPackages_opt, depending on what kernel.realtime is set to
* samueldr is waiting for the kernel build
<magnetophon> samueldr: yes I did. and I probably *did* forget something dumb somewhere, so no offence taken for asking
rosa has joined #nixos
<magnetophon> clever: yeah, I have musnix.kernel.realtime = true;
<clever> magnetophon: then you will want to either override linuxPackages_4_9_rt, or set kernel.packages to a set of kernel packages built around your overriden kernel
<magnetophon> clever: that's what you meant, right? (sorry it's getting late here,I'm not trusting my understanding anymore)
<magnetophon> clever: I'm not following that last remark, sorry
griff_ has quit [(Quit: griff_)]
<samueldr> once 4.13 is built and booted (as a sanity check), I'll check for 4.14
<clever> magnetophon: your override sets linux_4_14_rt, but musnix uses the linuxPackages_4_9_rt
<clever> magnetophon: so i dont think that override will have any effect
<magnetophon> samueldr: many thanks for your help! I hope you have a use for a rt kernel! :)
<samueldr> not at all, but I want to help and support here, and I've done my fair share of kernel compilation
<samueldr> I really need to write-up documentation, but I have an overlay for a kernel fork with support for cheap cherry trail (z8350) tablet platform
<magnetophon> clever: I have musnix.kernel.packages = pkgs.linuxPackages_latest_rt; and have changed linuxPackages_latest_rt to point to 4.14 inside musnix.
<magnetophon>
<clever> magnetophon: ah, that may work then
<magnetophon> clever: doesn't the testing I described above (and in #musnix) "prove" that I have all that set correctly? (genuine question, since *something* is obviously wrong somewhere!)
<samueldr> magnetophon: assuming what you described is what you did, it looks right, from what I've seen
<magnetophon> samueldr: well, I'm 100% sure I got the errors where I said I got them (tbc 100% expected errors), and also that I didn't get the errors where I said I didn't get them (that's the weird part)
<magnetophon> samueldr: maybe do an upstream PR for your overlay? henrytill (author of musnix) will try to upstream these kernels soon as well.
<samueldr> there's a big issue where the contributor often force pushes over their own branch, it's not intended for direct consumption
<samueldr> their fork is built as a patch set of patches that generally are sent to be upstreamed
<samueldr> it's a known kernel developer
cybrian has quit [(Read error: Connection reset by peer)]
typeggzero has joined #nixos
hamishmack has quit [(Quit: hamishmack)]
mbock has joined #nixos
mbock is now known as moon`
<magnetophon> samueldr: ok. (all I understood was "it's not intended for direct consumption", but that was the main part, right?) :)
<samueldr> right
moon` is now known as moa
<samueldr> it's a work-in-progress branch that he often rebases
<samueldr> it makes it impossible for the derivation to work long-term
<magnetophon> samueldr: right.
typeggze1o has quit [(Ping timeout: 268 seconds)]
astronavt has quit [(Remote host closed the connection)]
<magnetophon> clever: maybe you missed this part, so I'll ask again: isn't it super weird that if you have the code "linux_4_14_rt = callPackage /some/path", and change 14 to 15 you get an error, proving that line is called, but if you change callPackage to nonsense, the build finishes???
<moa> hi! with buildEnv I can set up a specific development environment which is started by nix-shell. Sometimes in a dev environment it needs a bit more than having the right packages at hand.. for instance some project specific shell aliases.. is there a way to archive this in nix/nixos?
<clever> magnetophon: also, callPackage expects 2 arguments
hamishmack has joined #nixos
<magnetophon> clever: sorry, I misquoted the code. It's this: https://github.com/musnix/musnix/blob/master/modules/kernel.nix#L143 adapted for 4.14 instead of 4.13
<infinisil> moa: Set the `shellHook` attribute and add your aliases there
<samueldr> assuming you set linuxPackage_latest_rt to 4_14, and renamed 4_14 to 5_14, it would cause issues
<infinisil> wait, does buildEnv not pass along attributes
<clever> magnetophon: and also line 160 of the file you linked, that makes a set of packages around the kernel
thc202 has quit [(Ping timeout: 260 seconds)]
<magnetophon> samueldr: it does cause isues. I renamed it to see if that code is reached. when I rename it back and change callPackage to nonsense, I weirdly don't get issues. did I misunderstand you?
<samueldr> I might not know how to explain myself properly, I'll wait until 4.13 is finished building and then test
<magnetophon> clever: yup, I copied and changed 13 to 14 in that line as well.
<infinisil> moa: Or you can just use a shell.nix file and put something like stdenv.mkDerivation { buildInputs = [ your packages ]; shellHook = '' alias x=y ''; }
<clever> magnetophon: and then set kernel.packages to the new thing?
ryantrinkle has quit [(Ping timeout: 248 seconds)]
<magnetophon> samueldr: It's probably also that I'm not optimally understanding at my end. It's late here, and I wanted to try to get a kernel build going before going to sleep. sorry
<magnetophon> clever: yes. otherwise it wouldn't reach the line we are discussing, and it wouldn't report an error when I change into nonsense, right? (I'll go test that assumption now)
ris has quit [(Ping timeout: 250 seconds)]
rosa has quit [(Quit: rosa)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to release-17.09: https://git.io/vbY5e
<NixOS_GitHub> nixpkgs/release-17.09 2014fd7 Tuomas Tynkkynen: make-squashfs: Hack to avoid building images where nixos-install won't run...
NixOS_GitHub has left #nixos []
astronavt has joined #nixos
<magnetophon> clever: just tested: when I change https://github.com/musnix/musnix/blob/master/modules/kernel.nix#L135 from 4_11 to 4_15: no error, cause that line is not used. when I change the equivalent line from 4_14 to 4_15: error, imho proving that that line is used. right?
<clever> magnetophon: sounds right
shanemikel has joined #nixos
<samueldr> hmm, it'll be a wee bit longer, it seem something was stuck in the pipes and I was only using about a sixth of the processing power
<magnetophon> clever: so can you think of a reason that changing callPackage to nonsense does not error? nether does changing path to nonsense.. I'm baffled... :(
<samueldr> could you gist a git diff of your nonsense?
shanemikel has quit [(Client Quit)]
<magnetophon> samueldr: for me, building a kernel takes hours, on a dual core with 4 hyperthreading cores
<magnetophon> samueldr: sure, one sec.
<samueldr> ~25 minutes here, 6 cores that totals to 12 HT
shanemikel has joined #nixos
mizu_no_oto has joined #nixos
yegortimoshenko has joined #nixos
<yegortimoshenko> can i escape a character in filename inside <>?
<magnetophon> samueldr: wow! thats fast!
<moa> infinisil: that worked!
<magnetophon> samueldr: so here is the code that I think *should* work, except for the bad hashes: https://github.com/magnetophon/musnix/tree/test
<yegortimoshenko> i.e. <my_overlay/modules/MacBookAir4,1.nix> doesn't work, i want to escape the comma
<samueldr> off-topic, but older (~2012) workstation or server hardware can do wonder for compilation jobs, for a lower price than equivalent computation power with newer cpu
<magnetophon> samueldr: there is also a WIP 4.13 upgrade in the last commit, that I never finished due to the same problem, so you can ignore that.
<infinisil> yegortimoshenko: import "${<myoverlay>}/modules/..."
<magnetophon> samueldr: oof-topic: I have a 2011 laptop :)
<yegortimoshenko> infinisil: thanks, that works. but rather verbose, i guess i'll rename the file...
<magnetophon> samueldr: do you still require a diff of my nonsense edits? I can push some more commits to that branch if it helps...
<infinisil> Is there like a nix debugger? One that let's you step through evaluation?
<samueldr> it would help out making sure we're on the same page about nonsense
<magnetophon> samueldr: OK, I'll push a commit of the nonsense that claims to build to that branch
yegortimoshenko has quit [(Remote host closed the connection)]
nuncanada has quit [(Ping timeout: 260 seconds)]
<samueldr> kernel is built, mostly, it's doing the install dance
dan_b_ has quit [(Ping timeout: 260 seconds)]
<magnetophon> samueldr: cool
<samueldr> (that's where I/O kills perfs)
<magnetophon> no ssd?
<Olgierd> hello everyone, I'd like to setup a Nix environment (for use with nix-shell) for developing operating system kernels. I mostly need QEMU, gdb and GCC for target x86_64-elf. how can I make a custom build of GCC, is it better to adapt a package/derivation from nixpkgs or to start from scratch?
<samueldr> that's with a SATA SSD
<samueldr> still, hitting the FS, and the SATA bus for every little file kills perfs
* magnetophon only jumped on the ssd bandwagon last year, and is still amazed by the speeeeeeeeeeeeed!
<infinisil> Olgierd: Not sure, but I'd start with something from nixpkgs. Just wondering, why do you need a custom gcc build for kernel dev?
<Olgierd> is compiling GCC with the usual ./configure --target=… && make && make install dance going to work? (I've done this once on a stateful distribution)
<Olgierd> infinisil: because I need to generate pure ELF binaries without linux-specific stuff, I guess.
<infinisil> Olgierd: gcc built with nix shouldn't output different binaries than normal gcc
<infinisil> it only patches the gcc binary, not the binaries it creates
<Olgierd> I'd have to test on a stock GCC—so far I've only tried to compile kernels with GCC for that specific target ($CPU-elf), and the default is $CPU-linux-gnu or something like that
<Olgierd> I know Nix has nothing to do with the generated binaries — I just need to build GCC for a different target platform
<infinisil> So cross compiling gcc?
<Dezgeg> it really won't matter, consider that you can build the linux kernel just fine with the userspace C compiler
<Olgierd> yup
<samueldr> magnetophon: I won't be able to verify the 4.14 boots up entirely since 4.13.7-rt1 decided it didn't like my crypt setup and LVM, but it did start up
<infinisil> Olgierd: And you can even still use nix to build it, just don't use stdenv
<Olgierd> what do you mean by not using stdenv?
<samueldr> (I really like "just" booting an older generation when you screw something up)
<infinisil> Olgierd: That's what patches the binaries
<magnetophon> samueldr: I guess that's ok. once it builds, I can test it further. (never had problems with any of the +/- 7 musnix kernels I used)
<infinisil> Olgierd: Well actually, maybe just preventing the patching only will make it work already, stdenv.mkDerivation is quiet useful
<Olgierd> btw apart from setting up the toolchain, I would also like to learn about Nix itself, since my greatest achievement so far is installing neovim 0.2 before the package was updated in nixos)
<magnetophon> samueldr: yeah, for me the rollback plus the config file are why I use nixos. I'm using none of the other features...
typeggze1o has joined #nixos
<Olgierd> same as magnetophon, but I'd like to learn them
<Olgierd> (the other features)
typeggzero has quit [(Ping timeout: 255 seconds)]
<infinisil> Olgierd: Sooo, do you have an actual specific question?
Acou_Bass has quit [(Ping timeout: 255 seconds)]
mbrgm has quit [(Ping timeout: 248 seconds)]
<moa> could someone point me to a sample nix-profile file?
mbrgm has joined #nixos
<infinisil> moa: What do you mean by nix-profile file?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth opened pull request #32268: initrd-ssh: generate hostkeys if absent (master...patch-74) https://git.io/vbYdo
NixOS_GitHub has left #nixos []
<Olgierd> infinisil: appearently for now I'm a noob who doesn't know what they need
<samueldr> magnetophon: I'm building 4.14, give it 20 minutes and it should be ready
<moa> ok, that's why I did not find one immediately. I'm trying out soe ways to define contained development environments and switch between them. the first attempt was the nix shell thing you suggested. Then I was wondering if I can go a step further: Making one specific environment the current one (user wide, and not only scoped to a sub shell)..
shanemikel has quit [(Quit: My MacBook Air has gone to sleep. ZZZzzz…)]
hellrazo1 has joined #nixos
Acou_Bass has joined #nixos
<infinisil> moa: That's what nix-env is for
typeggzero has joined #nixos
<magnetophon> samueldr: weird. in case it wasn't clear: here, when i do "nixos-rebuild test", it just goes trough the motions without trying to build the kernel. so after 20 sec, it just says "the following new units were started:" just as if it succeeded.
<samueldr> I'll show you my configuration.nix afterwards
<infinisil> moa: You can use its -r option and give it a file, which makes it install every package given in that file and removes everything else, essentially building your user env from that file
hellrazor has quit [(Ping timeout: 255 seconds)]
<infinisil> moa: home-manager (https://github.com/rycee/home-manager) is related in that it's essentially a configuration.nix for your home directory, allowing you to specify config files, packages and systemd units declaratively. You could also use this to specify different environments
typeggze1o has quit [(Ping timeout: 260 seconds)]
<infinisil> (note that home-manager uses nix-env under the hood
<magnetophon> samueldr: doesnt the fact that I get errors when I change 14 to 15 in https://github.com/magnetophon/musnix/blob/364047b08c22cd3365575a803eb3b0f50ee5f00f/modules/kernel.nix#L152 prove that my config should build the kernel?
<samueldr> it is something I would have assumed too, I think
Supersonic112 has quit [(Disconnected by services)]
<magnetophon> samueldr: I even tested my assumtion about lazy evaluation by changing the 11 in line 136 to 15, and as expected: no errors.
Supersonic112_ has joined #nixos
<magnetophon> samueldr: but yeah, *something* is off...
Supersonic112_ is now known as Supersonic112
ryantrinkle has joined #nixos
<moa> infinisil: home manager sounds interesting, maybe a bit too experimental for now. I'd give nix-env a try. I guess I'd invoke it like `nix-env -f myenv.nix -r`.. no? I was looking for a minimal structure that myenv.nix in this case would have to have..
<magnetophon> samueldr, clever: again: many thanks for your patience!!!! :)
<samueldr> I'm hardly working there, and even get some heat for my feets!
<magnetophon> :D your selling yourself short. you've patiently listened to me (often repeating myself) and tried to come up with decent answers. for 2:45 hours !!!! really appreciated!
<samueldr> (while reading reddit and watching youtube videos nonetheless)
<magnetophon> lol
<infinisil> moa: Hold on, i think i know how
typeggze1o has joined #nixos
typeggzero has quit [(Ping timeout: 268 seconds)]
<infinisil> moa: Use a file.nix with contents `with import <nixpkgs>{}; [ hello ]` and execute `nix-env -rif file.nix`
<infinisil> so it's pretty much just a list of packages to install
<Olgierd> infinisil: with the help of https://github.com/NixOS/nixpkgs/blob/master/doc/old/cross.txt and cargo cult programming, I've managed to build a derivation with binutils for x86_64-elf!
<moa> infinisil: great, this works!
<infinisil> Olgierd: is x86_64 different from x86_64-elf?
<infinisil> Olgierd: or are you on arm or something?
lambdamu_ has joined #nixos
<magnetophon> Olgierd: ah, so that's what my style of programming is called! ;)
<moa> infinisil: the meta-question would be of course now, if this is extandable to setting i.g. shell aliases..
<Olgierd> well, I've once compiled a kernel using stock gcc on x64 and it didn't boot. ¯\_(ツ)_/¯
<infinisil> moa: What does it 'mean' to install shell aliases?
<moa> to make them available user wide
<infinisil> moa: and where would you do this normally?
dieggsy has joined #nixos
<Olgierd> the next step is GCC, but I think I'll actually read some nix documentation first.
<moa> I'd only know about some options in the configuration.nix
<infinisil> moa: What I'm trying to get at is that you'd use something like .bashrc to set them, so that when you start a shell and it sources that file it can set aliases and stuff
lambdamu has quit [(Ping timeout: 268 seconds)]
<infinisil> moa: nix-env can't manage user files though
<infinisil> but home-manager can
<moa> ok, I see. it's ok. maybe i'll give it a try in a while
<infinisil> moa: Oh actually I just thought of something
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<infinisil> How about installing a package that acts as bash, but is really a wrapper for bash that first sets up some aliases
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg closed pull request #32214: wordpress: 4.7.6 -> 4.7.8 (release-17.09...update-wordpress-17.09) https://git.io/vbteX
NixOS_GitHub has left #nixos []
<moa> infinisil: yeah.. true. that sounds reasonable.
<samueldr> magnetophon: this built 4.14.3 with rt patches (same issue with crypt/lvm/maybe me at boot)
<samueldr> I'm uploading a closure cache *if you want to trust a random stranger on the internet*
<infinisil> this bash overriding sounds rather ugly though, I'd personally never use this
<moa> it's also a bit too hacky for me now
<infinisil> moa: so your intention is to run a command that switches between development environments, including changing aliases and making it persist over different shells?
<magnetophon> samueldr: well, I don't need the binaries so much as a way to build them myself. I'd like to keep contributing to musnix (I kind of founded it), and I can't anymore... :( Thanks for the offer though!
<moa> infinisil: yes, exactly
<samueldr> magnetophon: you can then test the diff I sent, git apply it, and compare with what you have, you might see what was wrong
<samueldr> I really don't know
<samueldr> but at a glance, your stuff looked right
<samueldr> wait
<samueldr> I never sent the gist link *facepalms*
<infinisil> moa: Oh, i guess an alternative is to have the shellHook write the aliases to some files that you source with bash by default
<samueldr> https://stuff.samueldr.com/nixos/rt-4.14.closure / you should be able to `nix-store --import < rt-4.14.closure` and skip the long build, if I did it properly
<magnetophon> samueldr: thanks
<samueldr> (if you trust me [should you?] and try the closure cache, please tell me if it worked)
astronavt has quit [(Remote host closed the connection)]
<moa> infinisil: I'd prefer the bash wrapping over this..
Mateon2 has joined #nixos
Mateon1 has quit [(Ping timeout: 240 seconds)]
Mateon2 is now known as Mateon1
<magnetophon> samueldr: I really want the ability to build, not the binary, so thanks but no thanks. ;)
<samueldr> no worries, I understand that
<infinisil> moa: Something like this is what i mean by writing a file to source: https://git.io/vbYbm
<samueldr> magnetophon: I added as a comment to the gist what I have in my configuration.nix with regards to musnix
<infinisil> moa: Then add `source $HOME/.aliases` to your .bashrc
<magnetophon> samueldr: I will check your diff against my changes, but iiuc you only needed to change the hashes and used my code for the rest, right?
<samueldr> I wrote it before I'd seen your changes, so no, I haven't built directly upon yours
<samueldr> but unless I'm missing a glaring typo in yours, they do look like twins
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/58307d15a7e (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<magnetophon> ok, I'll diff the two.
nix-gsc-io`bot has quit [(Client Quit)]
rogue_koder_ has quit [(Ping timeout: 248 seconds)]
millettjon has joined #nixos
<moa> infinisil: looks good.. but how would you feed that into nix-env?
<infinisil> moa: that's without using nix-env
<infinisil> just nix-shell that file
<millettjon> how do i customize resolv.conf in a container?
<moa> infinisil: maybe it can be even combined.. as long as the file returns a list of packages
dieggsy has quit [(Remote host closed the connection)]
<infinisil> moa: a shellHook only does something when invoked with nix-shell, so it doesn't make sense to combine nix-shell with nix-env
<infinisil> in that case
sigmundv__ has quit [(Ping timeout: 260 seconds)]
<moa> infinisil: alright.. thanks for the help.. I think i get sufficiently close to what I was looking for now.
<infinisil> moa: Oh, actually one more idea
<magnetophon> samueldr: yup: I've got the same config, and the only difference in the code was the hashes. weird...
<infinisil> moa: If your aliases just invoke binaries, then you can just use actual packages instead of aliases
<moa> infinisil: sure..
<mightybyte> How do you make mkDerivation get all the files in the current directory?
<magnetophon> I'll try with your hashes, but logically that shouldn't make a difference, since I should be getting just a "wrong hash" error...
<catern> hmmm
<clever> magnetophon: src = ./.; is one common way
<mightybyte> clever: I tried that and it didn't work.
rogue_koder_ has joined #nixos
<gchristensen> what does it mean to have not worked?
<magnetophon> clever: I don't understand
<mightybyte> gchristensen: I did a "nix-build -K" and the files did not show up in the directory.
<moa> infinisil: man, that's it!
<clever> mightybyte: did the build pass or fail?
<catern> hmmm
<catern> should I use recursive make or non-recursive make?
<mightybyte> clever: The build failed, but I suspect that it failed because the files weren't there.
<magnetophon> samueldr: nope, same result... :( well, we sure tried!
exfalso has joined #nixos
<infinisil> moa: that indeed seems like it would actually work very well if your aliases and customizations are simple
<samueldr> it's then possibly a configuration(.nix) issue
<magnetophon> clever: ah, you where talking to mightybyte, not me. I was confused since I was discussing hashes...
<millettjon> i had to set useHostResolvConf = mkForce false; and then update, stop, and start the container for it to work
<magnetophon> samueldr: how do you figure that? I mean, there's not much else it could be, but at the same time we already eliminated that option, didn't we?
<samueldr> not really, the configuration issues could be from not importing the right musnix path, to having some other option elsewhere that replaces the configured kernel
<samueldr> ideally, if there are no secrets, sharing the full configuration should allow better verification
<moa> infinisil: even better... Check out this: https://pastebin.com/1xqiC7je , it can go directly to nix-env
<Olgierd> should I use -j`nproc` in my builder.sh, or is there a environment variable for it?
<samueldr> but the fact that it built and worked for me makes me believe that the musnix stuff is right
<mightybyte> clever: I'm trying to nixify the building of a presentation i have that uses LaTeX
<magnetophon> samueldr: sure no secrets: https://github.com/magnetophon/nixosConfig/blob/master/machines/thinknix/rt.nix I'm just trying to follow your reasoning.
<infinisil> moa: Indeed, that's what i was thinking of :)
<magnetophon> samueldr: what's your nixos-version ?
<samueldr> working off of 17.09
<magnetophon> that might be a factor. I'm on unstable
<moa> infinisil: it's just a bit noisy.. all it needs is a `writeBash` function...
<infinisil> moa: Another advantage is that you don't need to restart the shell to apply updates (as you would with aliases), since it just searches for the binaries in $PATH, which includes where the stuff gets installed to
<infinisil> moa: well, create one
<moa> infinisil: sure..
millettjon has quit [(Quit: Page closed)]
<moa> infinisil: the funny part now is of course that you're not limited to bash anymore..
<magnetophon> samueldr: I'll comment it out and try again, but it shouldn't matter....
<infinisil> moa: Indeed :)
<magnetophon> samueldr: *thank you!!!!* that was it!!!! \o/
<infinisil> moa: https://git.io/vbYNt
<samueldr> btw, once it starts building, if you cancel and import my closure, than rebuild, it *should* be proof that you can compile at will, and you can test it more quickly
ivanivan has joined #nixos
<samueldr> (and anyway, the closure couldn't have bypassed the fact that it didn't use that package)
<samueldr> but oh
<samueldr> anyway it's useless to you
<samueldr> it was built in 17.09, disregard all that
<magnetophon> I don't understand what you mean, sorry
<magnetophon> samueldr: ^^^
<samueldr> I was building the kernel with NixOS 17.09, the compler and environment being different on unstable would mean that you anyway would have had to rebuild
<ivanivan> I really like the colors and shell config used in the minimal installation CD, but have no idea where they're defined. Can anyone point me in the right direction?
exfalso has quit [(Ping timeout: 260 seconds)]
cybrian has joined #nixos
<magnetophon> samueldr: but if I had been on 17.09 too, then ??? sorry, I'm slow...
<samueldr> you could have used the closure I linked earlier, to import a pre-built kernel to skip the long build
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/4e7deb7100b (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
<samueldr> don't worry, I sometime fail to properly communicate what I want
<infinisil> ivanivan: I don't see anything that would change colors
<infinisil> ivanivan: So it's probably the default?
<moa> infinisil: very good! Actually I was reasearching for those functions in the meanwhile...
<pie_> hi guys, whats the best way to get a specific gcc version?
<infinisil> pie_: how specific do you need it?
rogue_koder_ has quit [(Ping timeout: 268 seconds)]
<magnetophon> samueldr: ok. anyway: you are my hero. almost 5 hours of help!!!! with result! \o/ if I can ever do something for you, let me know!!! :)
screamin_jimmy has joined #nixos
<pie_> well probably not specific at all but i dont want to risk related issues, so im told i need 7.1.0
<ivanivan> infinisil: Hm, I guess. There are small things that are nice, like paging in man pages is sort of "animated" (smooth-ish)
<moa> infinisil: also nice that it accepts the nested lists in the end..
<samueldr> magnetophon: keep nixing on
<infinisil> ivanivan: Um, I'm pretty sure that comes from the fact that the terminal is so slow, getty i think it is
<magnetophon> samueldr: I will; I surely will :D
<pie_> infinisil, welllll i guesss i could use 7.2.9
<pie_> * 7.2.0 , which is packaged
notdaniel has quit [(Quit: Leaving)]
* screamin_jimmy beginner here, how do I ditch stuff i do NOT want ? It's not in configuration.nix so no idea why it is installed ...
orivej has joined #nixos
moa has quit [(Remote host closed the connection)]
<pie_> wow wtf does gcc not have a simple per version changelog
<magnetophon> screamin_jimmy: try "nix-env -q". Is the stuff you don't want in there?
<magnetophon> screamin_jimmy: if not try as your other users, or as root
<ivanivan> Is the source code for the live installation CD available somewhere?
<samueldr> unhelpful answer: in nixpkgs
jb55 has joined #nixos
<magnetophon> screamin_jimmy: or do you mean you have progs in /nix/store that is not in your path but that you don't want anymore?
<ivanivan> hm, I was looking there, but got the sense there was more to it elsewhere...
shanemikel has joined #nixos
<samueldr> those files include many other files
<screamin_jimmy> nix-env -q shows nothing, but yes, in /nix/store have junk I never wanted
<samueldr> but that's the entry point for building the installer images, from there you should be able to piece together how it's built
<samueldr> (though, if you have a specific need, ask)
<magnetophon> screamin_jimmy: in that case "nix-collect-garbage" should remove it.
<ivanivan> samueldr: excellent, thanks!
<screamin_jimmy> i will try that now, tnaks
mbock has joined #nixos
mbock is now known as moa
notdaniel has joined #nixos
shanemikel has quit [(Client Quit)]
davidak has joined #nixos
<screamin_jimmy> still a lot os useless garbage and is this supposed to be a read-only file system ?
shanemikel has joined #nixos
shanemikel has quit [(Client Quit)]
<infinisil> pie_: If you want to specifically use 7.1, here is the commit that updated it to 7.2
<infinisil> pie_: 98ec5f7279726c2ee096753a13befd8e149827a2
<pie_> thanks
dieggsy has joined #nixos
ivanivan has quit [(Quit: WeeChat 1.9.1)]
davidak has quit [(Quit: Leaving.)]
<magnetophon> screamin_jimmy: yes, it's supposed to be read-only, though if you insist, you can turn that off in your config. What garbage are you seeing? could it be from previous generations? If you don't mind losing the ability to rollback, you can garbage-collect (some of) those too.
notdaniel is now known as notnotdaniel
<screamin_jimmy> magnet : it's a new install to a vps, so I have no idear what I am doing :) But it looked pretty nifty.
notdaniel has joined #nixos
notnotdaniel has quit [(Quit: Leaving)]
<screamin_jimmy> I rm -rf-ed the first try cuz I figured I blew it but same thing on try 2. I do NOT want Gnome or fontconfig stuff ! have very little room.
<screamin_jimmy> I think I insist :) I HATE it when I am root but the system tries to be my mom
schoppenhauer has quit [(Read error: Connection reset by peer)]
<magnetophon> screamin_jimmy: you can tab-complete nicks in irc, that way i get a notification that someone's talking to me, and you don't have to type long-ass nicks! :)
<screamin_jimmy> magnetophon: okay will do, sorry I am primitive, normally a Solaris / Irix user. All this new-fangled stuff goes over my head :)
<magnetophon> screamin_jimmy: I'm pretty sure you will regret that. it's kind of the whole point of nixos that the store is immutable
<magnetophon> you might wanna start by reading this short section of the manual: https://nixos.org/nixos/manual/#sec-nix-gc
<screamin_jimmy> magnetophon: me and nixos probaly have a few different ideas :) But I can see getting it to where I want it, then changing back. Honestly, I am not a fan of Loonix. In fact I pretty much hate it but trying this vps thing and what they got is what I get
<magnetophon> screamin_jimmy: now you got me curious: which vps provider has nixos pre-installed (that's what you're saying, right?) And why do you hate loooooonix?
Isorkin has quit [(Ping timeout: 268 seconds)]
<screamin_jimmy> magnetophon: anynode.net. They seem okay. It's not preinstalled, you have to do it yourself which was kind of an adventure but that's okay. NixOS is about the first thign I've seen in ten years that has any new ideas so of course I had to try it.
<magnetophon> in general: nixos is a very opinionated system, and if you don't like what it does, there are a *lot* of downsides to it. if you *do* like what it offers, then those downsides are totally worth it, imho.
<screamin_jimmy> magnetophon: why hate loonix, that subject is too long for the bytes in the Universe. Mostly because nothign works right, tho. Solaris works. Always. Irix works mostly and it's nice to use. loonix just drives me crazy. The little kids writing it don't even know how to sue the alphabet (see their --help files some day :( )
<samueldr> though, some of the opinions can be bent
<catern> pie_: surely gcc has a NEWS or a ChangeLog? those are mandatory for GNU projects
<samueldr> and it stays coherent when bending those opinions (if this all makes sense)
<screamin_jimmy> samueldr: it's probaly okay. Just need to get it the way I want it to start, then should be fine
<magnetophon> screamin_jimmy: why would you want to sue the alphabet? ;)
<screamin_jimmy> magnetophon: dyslexic fingers :) better than a dyslexic Brian, i guess :p
<samueldr> is your name brian?
<magnetophon> sorry, that was a childish way of saying: typo's can happen to the best of them, even the kiddies that write looooooooonix
<magnetophon> bad reason to hate, imho
<screamin_jimmy> magnetophon: Have to say, the first impression I got was great. New install pops you into root with no password. Hooray ! all these distros that make you jump through hoops to configure something you just created, they are stoopid.
<pie_> uhhhh....so im just trying to compile a simple .c file with gcc and i get this:
<pie_> /nix/store/9i5bj3c48vrdb4m4khbhaipvhy3m0bh0-binutils-2.28.1/bin/ld: cannot find -lc
<pie_> i did nix-shell -p stdenv gcc7
<pie_> oh its becuase im trying to do a static build...
<magnetophon> screamin_jimmy: I was about to recommend you reformat and install an OS you like, but maybe you have enough of an open mind after all ;)
Wizek_ has quit [(Ping timeout: 240 seconds)]
<screamin_jimmy> magnetophon: I would love to, but Solaris is not an option :) And Irix only runs on mips ... I can live with loonix but it is annoying. Nothing works the way it is supposed to. Even OS/2 was betetr :p
rogue_koder_ has joined #nixos
<screamin_jimmy> magnetophon: plus you can joke about my spelling, that's okay :) It's not the spelling, it's the darned fingers :(
<screamin_jimmy> magnetophon: anyway, no easy way to get rid of thigns I will never use ? Why did it install parts of gnome ? that's NOT in my config, and I thought that was the point of nixos ?
<magnetophon> screamin_jimmy: you do realize we are all linux users here, and talking shit about it will decrease your chances of getting help, right? Personally I'm almost impossible to offend, but I do get the feeling you don't really want to be helped if you keep talking like this.
dieggsy has quit [(Ping timeout: 255 seconds)]
<magnetophon> screamin_jimmy: that is very odd. I can't tell you why it happened, but I wouldn't have expected it either
zraexy has joined #nixos
<magnetophon> normally, you only get the SW you ask for
laggy_wifi_ has joined #nixos
<screamin_jimmy> magnetophon: some people have thin skins :p Yes. I thought that was the pont, you tell it what you want and that's what you get. My guess is something wants gnome ? But what ? Ssh ? and fontconfig ? no room for that stuff. Hmmm.
<magnetophon> and there *is* an easy way to get rid of it. the piece of manual I linked you to fits on one sceen.
<screamin_jimmy> okey-doke, thank you, I'm on it now ...
<magnetophon> s/sceen/screen
laggy_wifi has quit [(Ping timeout: 268 seconds)]
jb55 has quit [(Ping timeout: 260 seconds)]
<magnetophon> screamin_jimmy: seriously, I have a *very* thick skin; I often don't even register when people *are* trying to offend me or tell me they don't like me. it's just that you don't give the impression you want to be helped by talking this way. is that a strange point of view from your perspective?
typeggzero has joined #nixos
<screamin_jimmy> magnetophon: I grew up in a rough neighborhood :) I seriously think us old folks have a different way of looking at things. I don't think of asking as question of infformed peopel as "needing help". I tell peopel I can't stand how to measure gears every day. Different times, I guess. Anyway, I am still puzzled at why I have gnome stuff in store when I can't see ANYTHING that would use it...
<screamin_jimmy> ...? There's not even X. Just the bare bones minimum, like DOS 3.1.
typeggze1o has quit [(Ping timeout: 260 seconds)]
<screamin_jimmy> magnetophon: and yes, I do need new fingers :oops:
<magnetophon> screamin_jimmy: it's all right. I was just trying to help you get help, that's all. :) If you don't need the ability to roll-back, you can do "nix-collect-garbage -d" and get rid of everything that's not currently installed. but I'm sure you already read that and tried it, right?
typeggze1o has joined #nixos
<magnetophon> there's also a command to figure out what caused a certain store-path to get installed, but I forgot it, sorry.
tmaekawa has joined #nixos
<jeaye> magnetophon: You can see what depends on what using the nix dep tree.
<magnetophon> screamin_jimmy: there ya go ^^^ :)
tmaekawa has quit [(Client Quit)]
<screamin_jimmy> magnetophon: Yes, i did in fact ... the rollback feature seems nice but for me, one or two steps back will be fine.
<jeaye> It's easy for a headless machine to bring in X, annoyingly. You can customize them out, but then you'll be working against Hydra and likely compiling a lot of packages yourself.
<magnetophon> I'll fall asleep real soon, it's way past my bedtime. good luck screamin_jimmy
leat has quit [(Read error: Connection reset by peer)]
<jeaye> I can imagine GNOME coming in through a dep on gnome-keyring.
<screamin_jimmy> magnetophon: thanks, magent ! you are a help, even if you don't like it :p
typeggzero has quit [(Ping timeout: 255 seconds)]
<screamin_jimmy> jeaye: that was my guess too - that something wanted gnome for some reason, so I am stuck with it. But the nice thing is, apparently I can go back and change the config to NOT use things I don't want ? that's appealing.
<magnetophon> nah, I actually enjoyed it! I always like it wen people are less politically correct than me: makes me seem more normal :p
<screamin_jimmy> magnetophon: no one is less normal than me :) maybe you have found the nadir of normalness :) I live in Chian and like the freedom ...
<magnetophon> screamin_jimmy: here? https://www.google.com/maps/place/Xi'an,+Shaanxi,+China/@34.2590616,108.687021,10z/data=!4m5!3m4!1s0x366379e922ac17b9:0x85d466fda794582e!8m2!3d34.341574!4d108.93977
<screamin_jimmy> magnetophon: You live in xi'an ? It's not bedtime here !
<magnetophon> screamin_jimmy: no, i was asking if you live there! can't be sure with those fat fingers of yours!
<screamin_jimmy> magnetophon: no, I am in Shanghai. I like the countryside better but work requires access to the finer thigns in life. Telephones, roads, that kind of stuff.
<screamin_jimmy> magnetophon: I don't think they are fat, actually. More like spastic. And this apple keyboard is no help at all. The Assistant likes how cool it looks but the action is less than wunderbar.
<magnetophon> you're funny
<screamin_jimmy> magnetophon: anyway, I am going to pass over the gnome problem for now and try to install squid. That should be a lot of fun :(
jsgrant has quit [(Remote host closed the connection)]
<screamin_jimmy> magnetophon: Living in Chian does that. Either you develop a healthy sense of humor or you go crazy. You would not BELIEVE the stuff that is normal here. Anyway, thanks youse guys, pointed me the right way and y'all have anice nap mr magnet
<magnetophon> screamin_jimmy: i think i'm over my sleep.... anyway, you should just do "services.squid.enable = true;" and rebuild. easy huh?
<magnetophon>
leat has joined #nixos
<screamin_jimmy> magnetophon: ooh. See, that was a generous gesture to a loonix-hater :) I will try that instead of the nix-env -i that I was using. Do you have a preference for 3 over 4 or the other way around ?
<magnetophon> idk, you should be able to look up what version nixos uses, no?
<screamin_jimmy> magnetophon: Both are available. One is squid, one is squid4. Normally I use an old Java cache program but not sure I want java on this, either. Thought I'd try masochi ... no, I meant squid :)
<magnetophon> so there's your answer, no?
<magnetophon> ?
<screamin_jimmy> magnetophon: Yeah, all the info on the net pertains to squid 3.1 or so, 4 might be better or it might be worse, sigh. The only way to know is to try them out. Yes, thank you, I am using the package page. Works good. Some thigns about nixos seem very well done. Unlike most Loonix :p.
phreedom has quit [(Ping timeout: 248 seconds)]
<magnetophon> note: they don't show you unfree sw
<magnetophon> lol at the capitalization of looooonix!
<screamin_jimmy> magnetophon: that's okay ... I only want a few things on this box anyhow. A proxy and a way to do ftp - the innernet here is s-l-o-w -- and maybe some day a vpn to get to craigslist
<screamin_jimmy> magnetophon: the craigslistes in their infinite wisdom use googlecaptchas on the reply box, so I cannot talk to ANYONE !! google is blocked hre.
<magnetophon> :(
<screamin_jimmy> magnetophon: you saiddit :( Although I can understand why. I do not know why any country outside the US allows google. It's obviously going to hand over Big Data to the US that other countries should want to keep private. Competition and all that ...
<magnetophon> i kind of agree there, but do you really think yhats the reason it's blocked?
<screamin_jimmy> magnetophon: yes. China is VERY particular about the info they give out. And of course most of it is lies :) the "censorship" thing is only there from the US end where "communism" is the bogeyman. Nothing else is "censored" here ... but over time you see that they push out all the foreigners and make sure the money stays in china. i can understand that, it's just inconvenient for me.
phdoerfler has joined #nixos
<magnetophon> I think we're getting mostly lies in the west too. especially tose poor americans
<screamin_jimmy> magnetophon: and oh. The gov't people have very thin skins. Most of the stuff you read overseas is nonsense but anythign that sounds negative about our great and happy lives gets crushed. I s'pose that's censorship but it's not so much political as it is the China Worldview for the past 1,000 years.
<screamin_jimmy> magnetophon: don't get me started on US propaganda,. It's at least as bad, maybe worse. The trick is, think for yourself, don't believe any of it. And buy ten acres in the Yukon for when they destroy the place :P
<magnetophon> I'm a poor bastard. no idea what land costs over there, nor where it is, but I probably couldn't ven afford the trip to get there! :p
justan0theruser is now known as justanotheruser
<magnetophon> but yeah, try to think for yourself, and try to see trough the lies. I say try, cause I don't thinks it's as easy as it may seem
<screamin_jimmy> magnetophon: tell me about it ! Last time I looked even the yukon was sky-high :D Eek, did a nix-env -aqP, lots of thigns that are useless. a2ps ? For a proxy ? hmm :) A suggestion to pass up the line if you know anyone -- it might be nice to have a REALLY bare installation setup for people like me who want to do a limited system.
<magnetophon> idk what those are, but if you think it helps, just create an issue on github
<jeaye> Agreed, make an issue about it.
<screamin_jimmy> magnetophon: nixos.afterstep ?
<screamin_jimmy> I like afterstep but ... :p
<screamin_jimmy> hang on, I am mistaken. Some of this is not installed, phew :) But still some other thigns that are. Anyway, time to go fight with squid
typeggzero has joined #nixos
<magnetophon> screamin_jimmy: I just finished compiling my rt kernel, so time to reboot. for my own good I won't log back on to irc, or will never get to sleep. good luck, and hope to see you again in here some time!
magnetophon has quit [(Remote host closed the connection)]
<screamin_jimmy> magnetophon: thanks again, and I hope you DON'T see me again ! that will mean everyhthing is workign peachy-keen :) If you are involved with this, it is pretty cool. Maybe I can get over my distaste for unowhat os :)
laggy_wifi_ has quit [(Quit: Konversation terminated!)]
typeggze1o has quit [(Ping timeout: 248 seconds)]
theseriousadult has joined #nixos
Lisanna_ has joined #nixos
<phdoerfler> Hi! How do I upgrade vom 17.03 to 17.09? Do I merely sudo nix-channel --add the new one and then sudo nix-channel --update and then sudo nixos-rebuild switch?
<theseriousadult> How do I figure out which ld-linux.so.2 to use in patchelf?
<Lisanna_> What's the use-case for "nix-push --link"? The man page says that it will only work if the target is on the same filesystem as the Nix store, but when would that ever be the case?
cybrian has quit [(Read error: Connection reset by peer)]
Myrl-saki has joined #nixos
<Myrl-saki> Any tips on how to improve battery life?
<Myrl-saki> Also
<Myrl-saki> How do I turn off bluetooth on boot?
notdaniel has quit [(Ping timeout: 255 seconds)]
justin-sleep has quit [(Quit: WeeChat 1.9.1)]
pallavag has joined #nixos
rogue_koder_ has quit [(Ping timeout: 260 seconds)]
<pallavag> Hi! Does anyone here have experience with cross compiling packages for windows from within NixOS? I am trying to learn how cross compilation toolchains in NixOS work, but the documentation I found was rather sparse.
<pallavag> I tried this: https://www.hastebin.com/izicuhimog
<pallavag> From my understanding, other parameters in crossSystem should be inferred from the triple.
<pallavag> However, the build of the toolchain itself fails. Any lead in the correct direction would be helpful :)
oida has quit [(Ping timeout: 260 seconds)]
Oida has joined #nixos
<Myrl-saki> Also.
<Myrl-saki> Err, wrong channel. Sorry.
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/2014fd7c1eb (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
notdaniel has joined #nixos
endformationage has quit [(Quit: WeeChat 1.9.1)]
Isorkin has joined #nixos
<theseriousadult> len
<theseriousadult> shit, sorry, palm detect failed
hellrazor has joined #nixos
zzamboni has joined #nixos
jluttine has quit [(Ping timeout: 248 seconds)]
zzamboni has quit [(Client Quit)]
notdaniel has quit [(Quit: Leaving)]
notdaniel has joined #nixos
hellrazo1 has quit [(Ping timeout: 248 seconds)]
<adelbertc> do nix overlays subsume packageOverrides? i have some stuff in `~/.config/nixpkgs/config.nix` that let me do something like `nix-env -iA nixpkgs.myDevStuff` that installs a bunch of packages, should i be replacing those with overlays?
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/4f75e27657d (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
laggy_wifi has joined #nixos
<screamin_jimmy> jeaye: I do have to say that putting configuration files e.g. squid.conf on a read-only file system might be considered less than opimum in some quarters !!
simukis has joined #nixos
<Lisanna_> If I have multiple channels, is there a way to do a nix-env query on a specific channel without having to mess around with my nix path? e.g., I know that I can do "nix-env --dry-run -iA channel.package" to install from a different channel
iyzsong has joined #nixos
mahalel_ has joined #nixos
iyzsong-x has joined #nixos
theseriousadult has quit [(Ping timeout: 255 seconds)]
iyzsong has quit [(Ping timeout: 248 seconds)]
mrkgnao has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #32186: nixos/i2pd: tunnel configuration fixes (master...patch-1) https://git.io/vbIRD
NixOS_GitHub has left #nixos []
i-am-the-slime has joined #nixos
pallavag has quit [(Quit: Page closed)]
dj_goku has quit [(Quit: Lost terminal)]
JosW has joined #nixos
<srhb> /reconnect
<srhb> Woops
nalc has joined #nixos
<srhb> Lisanna_: nix-env -qaP -A channel
i-am-the-slime has quit [(Ping timeout: 260 seconds)]
<Lisanna_> srhb: awesome, thanks!
i-am-the-slime has joined #nixos
hellrazor has quit [(Ping timeout: 260 seconds)]
hellrazor has joined #nixos
<nalc> Hey I am trying to use the coreclr nixpkg for a project using nix-shell. For some reason it's not listed in the official nixpkg search, but it *is* in the nixpkg github repository. Is something wrong with search, or are not all pkgs in the repository included in search?
<Lisanna_> nalc: maybe it's unfree software?
<Lisanna_> the web search excludes non-free software
<nalc> It's MIT
<Lisanna_> could be under a different name
<Lisanna_> or a name you're not expecting
<nalc> The nixpkg source contains this line: name = "coreclr-${version}";
<nalc> That would mean I should expect to find a package like coreclr-X somewhere in the search, yes?
<Lisanna_> nalc: "error: Package ‘coreclr-1.0.4’ in /nix/store/r71x3cfasyk0risx3r4759rl3kla1k7p-nixos-17.09.2253.559ebb7ed02/nixos/pkgs/development/compilers/coreclr/default.nix:101 is marked as broken, refusing to evaluate."
<nalc> Ok thanks for the information. Where did you find it marked as broken?
<Lisanna_> I just tried to install it with --dry-run
<Lisanna_> nix-env -iA --dry-run nixos.coreclr
mrkgnao has quit [(Ping timeout: 255 seconds)]
<Lisanna_> hmm, I'm trying to make a custom module use a custom channel. So far I don't think any knowledge about how to do this exists on the web. There's an unanswered email about it here: <https://nixos.org/nix-dev/2016-April/020100.html>. Step 1 is to first just get the module distributed with my channel, but I'm not sure where to put it in my channel's expression. Maybe I shouldn't be trying to do that...?
mrkgnao has joined #nixos
typeggzero has quit [(Ping timeout: 268 seconds)]
<i-am-the-slime> I want to pass an argument to spotify
<i-am-the-slime> But I'm failing: --force-device-scale-factor=2
mbock has joined #nixos
mbock is now known as moa`
<i-am-the-slime> Wasn't using an equals sign...
<i-am-the-slime> Sorry
<Lisanna_> i-am-the-slime: also, wrong IRC window? ^^
<pie_> im trying to build this: https://github.com/nazarov-yuriy/without-libc with the following input/output: https://pastebin.com/y5GzqVee
<moa`> hi! Anyone experienced with configuring emacs through nix? I'm roughly following this snippet and it works so far: https://github.com/NixOS/nixpkgs/issues/24243 .. But it's not possible to require a previously added package inside the elisp code I'm about to inject. For instance, I'd not be able to use `(require 'graphiz-dot-mode)` in there.. any suggestions?
mahalel_ has quit [(Ping timeout: 255 seconds)]
<pie_> does nixos do something weirD? i get the stack protect issue regardless of -fno-stack-protector
<Lisanna_> pie_: use hardeningDisable to turn it off
<pie_> ok but how do i disable it in nix-shell -p gcc7 glibc.static
<pie_> huh...
<Lisanna_> you would need to override the package
<pie_> :| ok. man thats good but really annoying in this case
<Lisanna_> or use an overlay or whatever the current trendy thing is :)
<pie_> yeah im still barely capable of hacking together a nix expression :P
<Lisanna_> pie_: that was me not too long ago, then one day it "clicked"
<Lisanna_> it was the language itself that was the biggest barrier for me
<pie_> same
<Lisanna_> but only because I don't do FP very much, not because the langauge is bad or anything... I actually find it very nice :)
<pie_> ok apparently i could set an env var
<pie_> yeah ill learn it eventually, i think i probably have a couple specific things that just mess me up constantly that i havent sat down to learn because im always doing somethng else
<i-am-the-slime> So, now I'm still failing to get anything going with https://github.com/alexmingoia/pux-starter-app
Dr8128 has joined #nixos
cfricke has joined #nixos
cfricke has quit [(Client Quit)]
<Lisanna_> i-am-the-slime: I think you have the wrong IRC chat, what does pux-starter-app have to do with Nix?
<i-am-the-slime> That it doesn't work.
<i-am-the-slime> On Nix.
<i-am-the-slime> Os.
jtojnar has quit [(Read error: Connection reset by peer)]
jtojnar has joined #nixos
<i-am-the-slime> Maybe it's a more general question about how to develop JS stuff with NixOs, but I'm not sure.
<herzmeister[m]> helloes, i'm running gnome3 unstable channel. After updating configuration because of hardware changes, i now get an error about `powerManagement.cpuFreqGovernor" defined multiple times, in the hardware config and in the per-user channel `power-managerment.nix` file.
<herzmeister[m]> I guess that is a bug?
<herzmeister[m]> What's the best practice to resolve the situation for now?
cybrian has joined #nixos
<sphalerite> herzmeister: set it using mkForce
<sphalerite> So powerManagement.cpuFreqGovernor = lib.mkForce "powersave";
<sphalerite> (Or whatever governor you want)
<herzmeister[m]> and i change that in which file?
<herzmeister[m]> wouldnt it be overwritten again?
moa` has quit [(Remote host closed the connection)]
<pie_> for the record the musl-gcc wrapper doesnt work because nixos passes a ton of stuff https://pastebin.com/fhi6acEP
kreetx has joined #nixos
<pie_> Lisanna_, turns out NIX_DEBUG=1 is a thing
erictapen has joined #nixos
<Lisanna_> pie_: yep
hiroshi- has joined #nixos
ylwghst has joined #nixos
hiroshi has quit [(Ping timeout: 248 seconds)]
hiroshi- is now known as hiroshi
<sphalerite> herzmeister: in configuration.nix
moa has quit [(Remote host closed the connection)]
laggy_wifi has quit [(Read error: Connection reset by peer)]
laggy_wifi_ has joined #nixos
<herzmeister[m]> tnx, will try to understand later ;)
laggy_wifi_ has quit [(Read error: Connection reset by peer)]
<screamin_jimmy> what is the recommended solution for programs that can't start becasue they can't write their PID into a read-only file system ?
cybrian has quit [(Read error: Connection reset by peer)]
MP2E has quit [(Remote host closed the connection)]
Lisanna has quit [(Ping timeout: 240 seconds)]
sigmundv__ has joined #nixos
laggy_wifi_ has joined #nixos
phdoerfler has quit [(Quit: Leaving.)]
Myrl-saki has quit [(Read error: Connection reset by peer)]
cybrian has joined #nixos
ylwghst has quit [(Remote host closed the connection)]
dywedir has joined #nixos
ylwghst has joined #nixos
griff_ has joined #nixos
ylwghst has quit [(Remote host closed the connection)]
erictapen has quit [(Ping timeout: 255 seconds)]
<sphalerite> screamin_jimmy: get them to write their PID elsewhere
<sphalerite> usually that's a config option
<screamin_jimmy> I did the unthinkable - un-read-only-ed the /nix/store :)
cybrian has quit [(Read error: Connection reset by peer)]
<sphalerite> >_>
<sphalerite> now you won't' be able to tell if the path is actually corrupted anymore
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar pushed 2 new commits to master: https://git.io/vbOk3
<NixOS_GitHub> nixpkgs/master 9534764 Tor Hedin Brønner: nix-bash-completions: 0.5 -> 0.6
<NixOS_GitHub> nixpkgs/master 60d3a11 Tor Hedin Brønner: nix-zsh-completions: 0.3.5 -> 0.3.6
NixOS_GitHub has left #nixos []
<screamin_jimmy> Sorry but to my mind, I install something from a package manager and it should work. There went two hours of my life while I hunted through the firewall ... /me dumb sometimes :(
<LnL> what's the package?
ixxie has joined #nixos
<screamin_jimmy> squid. The 3.5 one. The 4+ one MAY have the same situation but I didn't try it yet. Installed with nix-env -i just to try it
<screamin_jimmy> -iA, to be exact.
<screamin_jimmy> nix-env -iA nixos.squid
thc202 has joined #nixos
<ixxie> disasm: assuming you are disassembler on github, have you had time to review https://github.com/NixOS/nixpkgs/pull/31950
<screamin_jimmy> it also tries to write the rest of its files in a read-only location but starting the program "squid -f /path-to-config" fixed that problem
<LnL> you probably want to use https://nixos.org/nixos/options.html#services.squid then
<ixxie> disasm: FRidh[m] had a differing opinion than you so it would be nice to decide what to do
<LnL> that will configure it properly for you
<screamin_jimmy> LnL: tried that but ... there are difficulties with that approach. It becomes a service which is a pita to mess with when you are setting it up
<screamin_jimmy> sphalerite: and also, I think it didn't work so well either ... the config files were still read-only which made it a bear to get running
<screamin_jimmy> LnL: oops, wrong tab sorry
mrkgnao has quit [(Ping timeout: 260 seconds)]
<screamin_jimmy> LnL: thanks ... it's running now tho, I'll struggle with squid first then coem back to the nixos situation after I am happy with the squid ...
mrkgnao has joined #nixos
<toogley> my path to my libclang.so is /nix/store/nzjzr5pdinfycd7rldhdmkirn8nz81q3-clang-5.0.0/lib/libclang.so.5.0
ylwghst has joined #nixos
<screamin_jimmy> LnL: doing network stuff out of China takes a little extra experimentation. Besides the lying dns anything overseas is SLOW and has a tendency to time out. Local stuff is fine but that doesn't solve my problem.
<toogley> i want to use that path in some kind of script (neovim clang_complete config). but i don't want to have to change that when the hash (but not the version) changes
<toogley> what would be the best way to achieve that?
<LnL> generate the config with nix :)
<screamin_jimmy> LnL: however, I do think that packages installed according to the directions should not have these hiccups. Putting config files on a read-only file system is not very pretty :(
<LnL> agreed, but most of that kind of stuff is usually solved in the service module
<LnL> some packages have defaults that work and some don't
<toogley> LnL: hm, i manage those files in a separate dotfiles repo, to be also useful with other OS - and i don't want to change that at this point^^
<screamin_jimmy> LnL: sometimes I think the guys writing operating system stuff should occasionally be forced to use programs. And do their development on a 486 :P
cybrian has joined #nixos
<sphalerite> :/ gcc seems to be failing to build on ARMv7 for me, nondeterministically
coot has joined #nixos
<coot> Hello, when I run `nix --dry-run -iA nixpkgs` on linux I get an assertion error:
<coot> error: assertion failed at /nix/store/ijssn5ilfhl29cnhn0ifl72c93yhnvc1-nixpkgs-18.03pre121853.e53ebf3a31e/nixpkgs/pkgs/os-specific/darwin/apple-source-releases/CF/default.nix:4:1
<coot> (use ‘--show-trace’ to show detailed location information)
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
<coot> I am running nix package manager in gentoo linux
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
<LnL> you'll want to specify a package like nixpkgs.hello
<LnL> that command will try to install _everything_ in nixpkgs
<coot> I see, thanks
ylwghst has quit [(Ping timeout: 260 seconds)]
griff_ has quit [(Quit: griff_)]
<coot> where I am getting: error: path ‘/bin’ is not in the Nix store, at /home/marcin/repos/iohk/cardano-sl/fetch-nixpkgs.nix:20:15
<LnL> that should be nix-env -iA nixpkgs.nix or nix-env -f '<nixpkgs>' -iA nix
<coot> thanks @LnL, just my first steps into nix ;)
<coot> (I ment :) )
<sphalerite> does anyone know of a reliable way to await a process's termination without being its parent?
ris has joined #nixos
notdaniel has quit [(Quit: Leaving)]
<toogley> how can i find out which package i have to install to have ctype.h ?
erictapen has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bendlas pushed 1 new commit to master: https://git.io/vbOIs
<NixOS_GitHub> nixpkgs/master bccd410 Herwig Hochleitner: dwarf-fortress-packages.stoneSense: remove vestigial package...
NixOS_GitHub has left #nixos []
<pie_> so uh how do i get man pages
<pie_> toogley, i think theres some way to find ouy but if you mean ctypes.h i think thats in libc?
<sphalerite> toogley: should be in the standard libray package. But you don't install packages to get libraries: https://nixos.wiki/wiki/FAQ#I_installed_a_library_but_my_compiler_is_not_finding_it._Why.3F
<sphalerite> pie_: which man pages?
<pie_> well the lic man pages for now..
<pie_> *libc
<sphalerite> pie_: usually installing the package (via nix-env or system config) or entering a nix-shell with the package) should get you the manpages. If not, it's a bug in the package
<sphalerite> ah right, that's an exception
<toogley> sphalerite: i use already a nix file to be loaded with nix-shell, but thanks
<sphalerite> nix-env -f '<nixpkgs>' -iA man-pages
<sphalerite> (or similar)
<toogley> sphalerite: pie_ and i have installed glibc, but still my compiler cannot find it
dywedir has quit [(Remote host closed the connection)]
<pie_> actually now that you mention it...wow talk about the brain being weird, i never realized a lot of man pages work, its only man 3 thats not present, i could have sworn man pages didnt work for me xD
screamin_jimmy has quit [(Quit: ChatZilla 0.9.93 [Firefox 45.7.0/20170118123525])]
<sphalerite> toogley: you don't install glibc, you put it in the shell
<toogley> i meant that
<sphalerite> pie_: packaging bugs that stop the manpages from working aren't rare, so that's where that misconception might be coming from :p
<sphalerite> toogley: how are you compiling the code?
<sphalerite> My first guess at this point would be that you're trying to compile C++ as C
fendor has joined #nixos
<sphalerite> Oh yeah, and you shouldn't need to add glibc manually, the gcc wrapper should already pull it in for you
<pie_> ok well globablly installing man-pages worked
<toogley> sphalerite: or rather, i can compile my project successfully (neomutt using autosetup) but neovim's linting engine ALE doesn't find it. and that uses gcc
<toogley> eh not gcc, clang
<sphalerite> aaah well that's a different issue ;)
<toogley> however, ALE complains only about some packages (ctype.h and regex.h)
dywedir- has joined #nixos
dywedir has joined #nixos
<sphalerite> What's autosetup? Do you mean autotools, or is this some neomutt-specific thing?
nalc has quit [(Quit: Textual IRC Client: www.textualapp.com)]
nalc has joined #nixos
<toogley> sphalerite: basically its replacing autoreconf to some extend, as far as i know
<toogley> written in tcl, seems very nice. :D
<toogley> ah, i think i have to use a compilation_commands.json
<toogley> it won't work without it
jtojnar has quit [(Read error: Connection reset by peer)]
jtojnar has joined #nixos
i-am-the-slime has quit [(Ping timeout: 260 seconds)]
b73_ has joined #nixos
<toogley> jep, works
<toogley> thansk anyway sphalerite
<toogley> :)
hellrazor has quit [(Ping timeout: 255 seconds)]
ylwghst has joined #nixos
frankpf has joined #nixos
ylwghst has quit [(Remote host closed the connection)]
<b73_> Hi, I have installed the MySQL package on macOS - with `nix-env -i -A nixpkgs.mysql57`. Anyone know what I need to do to actually get MySQL running? The he Nix mysql57 package doesn't install any launchd files (like Homebrew would).
<b73_> If I run the `mysql` cmd I get the following error: `ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2)`
<pcarrier> tried to make my own installer, now suffering from:
coot has quit [(Quit: coot)]
<sphalerite> pcarrier: what do you mean?
<pcarrier> @sphalerite did you see the error message?
coot has joined #nixos
ixxie has quit [(Ping timeout: 248 seconds)]
<sphalerite> b73_: nix-darwin brings something like NixOS to macOS AFAIK. Not sure it includes mysql, but I think that would be where it is if anywhere
<pcarrier> oh and by "own installer" I mean the ISO was generated by https://github.com/pcarrier/config/blob/master/installer.nix
<sphalerite> pcarrier: yes but
ylwghst has joined #nixos
<sphalerite> yeah that's what I wanted to know
<sphalerite> :)
<pcarrier> system: "x86_64-linux", multi-user?: no, version: nix-env (Nix) 1.12pre5732_fd10f6f2, channels(root): "nixos-18.03.git.b14ca66", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
<sphalerite> pcarrier: I suspect it might be the nixUnstable bit
<LnL> sphalerite: b73_: it only has postgres at the moment
<pcarrier> sphalerite: oh too bad.
<pcarrier> will try without thanks
<sphalerite> maybe nixos-install doesn't work with 1.12. Try without it, and see if it works again. I'd consider this a bug in nixos-install though, so stick it on github if it isn't already
<tilpner> There's an issue for it
phdoerfler has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/b7c8134be0a (from 77 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
gspia has quit [(Quit: Leaving)]
nix-gsc-io`bot has quit [(Client Quit)]
griff_ has joined #nixos
coot has quit [(Quit: coot)]
<b73_> @sphalerite oh ok your suggesting that the `mysql` package in the default nix channel is for Linux only (the `platform` metadata for the package seems to support this)
<b73_> Had not see `nix-darwin` before, but a quick look through the repo suggests there is not a MySQL pacakge
<sphalerite> b73_: no, it's just that building a piece of software and configuring it are different things, and the package only does the building bit.
<sphalerite> Configuration is then up to a separate component, like NixOS's module system or nix-darwin
<sphalerite> It's perfectly possible to run the mysql daemon from the nix package on macOS, there just isn't any ready-made config for it
cybrian has quit [(Read error: Connection reset by peer)]
ma27 has joined #nixos
griff_ has quit [(Quit: griff_)]
andrewmc1eigh has quit [(Ping timeout: 260 seconds)]
<b73_> @sphalerite: nix-darwin sounds like something I should look into... Any idea of the steps to run the mysql daemon without a ready-made config?
<sphalerite> my first attempt would be to just run mysqld
<sphalerite> but what to do when that (probably) fails, I don't really know, I don't know much about mysql
<sphalerite> Looking at the nixos module would also probably be helpful
<b73_> yeah when I run `mysqld` from within my nix-profile I get: `mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 2 - No such file or directory)`
<gchristensen> you'll need to at least set the datadir
<gchristensen> iirc you can set that at the commandline, mysqld --datadir=...
test8888 has joined #nixos
<flokli> rycee: Did you play a bit with dbus-activated systemd (user) services?
<LnL> creating a launchd module for it should be pretty straightforward since I can just look at the nixos implementation
<flokli> rycee: it seems systemd doesn't notice dunst being started. I tried implementing reload for it on change
guillaum3 has quit [(Quit: Lost terminal)]
johs has joined #nixos
phdoerfler has quit [(Quit: Leaving.)]
Oida has quit [(Ping timeout: 248 seconds)]
ilyaigpetrov has joined #nixos
oida has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl opened pull request #32270: ocamlPackages.ocurl: 0.7.8 -> 0.8.0 (master...ocurl-0.8.0) https://git.io/vbOqe
NixOS_GitHub has left #nixos []
<b73_> @gchristensen where would be a suitable location for `datadir`?
griff_ has joined #nixos
hellrazor has joined #nixos
<sphalerite> I want to update nixUnstable in nixpkgs, but I don't know how to get the new version string, particularly the number. e.g. currently it's at 1.12pre5732_fd10f6f2, but I don't know what to replace the 5732 with. Can anyone tell me? :)
exfalso has joined #nixos
<gchristensen> b73_: wherever you want mysql to put its data :)
<gchristensen> b73_: for example, you could use ./mysql-data (you'd probably need to make it first)
<b73_> @gchristensen I get a bunch of output when I run that, but it includes a couple of errors: `[ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.`
<b73_> and `[ERROR] Could not create unix socket lock file /run/mysqld/mysqld.sock.lock.`
<b73_> If I run `mysql_upgrade` (as promoted) I get: `mysql_upgrade: Got error: 2002: Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2) while connecting to the MySQL server
<b73_> Upgrade process encountered error and will not continue.`
griff_ has quit [(Quit: griff_)]
<gchristensen> yeah you'll also need to set where to put the socket among a few other things
ylwghst has quit [(Ping timeout: 248 seconds)]
<gchristensen> you'll have to do some of your own research here, but it is definitely doablee
<b73_> @gchristensen - ok thanks for pointing me on the right track
sigmundv__ has quit [(Ping timeout: 240 seconds)]
i-am-the-slime has joined #nixos
cybrian has joined #nixos
<gchristensen> you're welcome!
Wizek_ has joined #nixos
laggy_wifi_ has quit [(Quit: Konversation terminated!)]
zzamboni has joined #nixos
Dr8128 has quit [(Ping timeout: 255 seconds)]
nuncanada has joined #nixos
phreedom has joined #nixos
ylwghst has joined #nixos
thblt has joined #nixos
Dr8128 has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/de7eae5d1f3 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
thblt has quit [(Remote host closed the connection)]
hellrazor has quit [(Ping timeout: 260 seconds)]
zzamboni has quit [(Quit: Leaving.)]
hellrazor has joined #nixos
ma27 has quit [(Ping timeout: 255 seconds)]
ma27 has joined #nixos
Wizek_ has quit [(Ping timeout: 260 seconds)]
hellrazor has quit [(Ping timeout: 255 seconds)]
hellrazor has joined #nixos
exfalso has quit [(Ping timeout: 248 seconds)]
orivej has quit [(Ping timeout: 268 seconds)]
nalc has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Wizek_ has joined #nixos
Tobba has joined #nixos
ylwghst has quit [(Remote host closed the connection)]
ylwghst has joined #nixos
zzamboni has joined #nixos
<gchristensen> nic!
<gchristensen> nice!
<b73_> Then ran: `mysqld --defaults-file=~mysql_config/my.cnf` --initialize`
<b73_> `mysqld --defaults-file=~mysql_config/my.cnf --initialize`
<b73_> This will create a `root` mysql user (and output a temp password)
civodul has joined #nixos
<b73_> and then can use `mysql --defaults-file=~/mysql_config/my.cnf -u root -p`
<b73_> @ghchristensen: Thanks very much for your help!
<gchristensen> I'm glad you got it working! good luck, have fun :)
zzamboni has quit [(Quit: Leaving.)]
cybrian has joined #nixos
ylwghst has quit [(Quit: Lost terminal)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] garbas closed pull request #32004: zsh-prezto: updating "4f19700" -> "221c6cd" (master...update-pretzo) https://git.io/vFpDA
NixOS_GitHub has left #nixos []
cfricke has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
iyzsong-x has quit [(Ping timeout: 255 seconds)]
dieggsy has joined #nixos
hellrazor has quit [(Ping timeout: 255 seconds)]
leat has quit [(Ping timeout: 260 seconds)]
hellrazor has joined #nixos
dieggsy has quit [(Remote host closed the connection)]
ma27 has quit [(Ping timeout: 255 seconds)]
cfricke has quit [(Quit: WeeChat 1.9.1)]
Dr8128 has quit [(Ping timeout: 248 seconds)]
<toogley> running unstable should be genereally safe, because if one package breaks, i can just install a former version of that broken package, right?
leat has joined #nixos
georges-duperon has joined #nixos
<gchristensen> nixos-unstable yeah is pretty safe
<gchristensen> other than the potential security issues
<toogley> security issues?
<gchristensen> !which channel
ma27 has joined #nixos
<toogley> gchristensen: ah,thanks. but i guess i could also install specific packages from unstable, right?
<toogley> while being still on stable, i mean
<toogley> found it.
orivej has joined #nixos
<hyper_ch> gchristensen: security issues?
<hyper_ch> ah
simpson has joined #nixos
<simpson> Good morning. It's time to find a working Haskell Lojban parser. So far, haskellPackages.lojban and haskellPackages.lojbanParser aren't working.
nuncanada has quit [(Remote host closed the connection)]
<hyper_ch> good luck
<simpson> haskellPackages.tersmu fails and panics GHC, which I think is worth Internet points.
nuncanada has joined #nixos
ris has quit [(Ping timeout: 250 seconds)]
{^_^} has quit [(Ping timeout: 255 seconds)]
<simpson> haskellPackages.zasni-gerna makes GHC chew CPU for several minutes before failing.
davidak has joined #nixos
griff_ has joined #nixos
<simpson> Okay, guess it's time to wrap camxes.js. Oh well.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] WilliButz opened pull request #32277: nasm: 2.13.01 -> 2.13.02 (staging...update-nasm) https://git.io/vbOZ2
NixOS_GitHub has left #nixos []
<LnL> gchristensen: :o
ylwghst has joined #nixos
typeggzero has joined #nixos
bennofs has joined #nixos
ma27 has quit [(Ping timeout: 255 seconds)]
georges-duperon has quit [(Ping timeout: 260 seconds)]
<GlennS> does anyone know the state of `command-not-found` on Nixos? I found this https://github.com/NixOS/nixos-channel-scripts/issues/9 which seems to indicate it's still broken?
simendsjo has joined #nixos
ma27 has joined #nixos
exfalso has joined #nixos
Mic92 has quit [(Ping timeout: 276 seconds)]
Otis has joined #nixos
drakonis has joined #nixos
guillaum2 has joined #nixos
cybrian has joined #nixos
<guillaum2> hi there. Does it exists some tool to: a) generate a "fetchFromGitHub" file for nixpkgs pinning based on some constraints (pin to last commit of a channel, pin to last commit of nixpkgs, pin to master of a repository). if not, I'll write it. b) List the dependencies (name and version) of a derivation, for documentation purpose.
ma27 has quit [(Ping timeout: 255 seconds)]
drakonis has quit [(Ping timeout: 260 seconds)]
astsmtl has quit [(Ping timeout: 276 seconds)]
gspia has joined #nixos
drakonis has joined #nixos
ylwghst has quit [(Ping timeout: 260 seconds)]
Tarinaky has joined #nixos
<Tarinaky> Hi. I'm having trouble enabling SSH on a custom ISO image.
erictapen has joined #nixos
<Tarinaky> I've added the line systemd.services.sshd.wantedBy = lib.mkForce [ "multi-user.target" ];
<Tarinaky> But it's giving me the error 'undefined variable 'lib' at...'
<srhb> guillaum2: The usual approaches tend to use nix-shell to bump a json-file with the revision and hash. Check out mozillas overlay for an example.
<srhb> guillaum2: Well, the first part at least.
<Tarinaky> Nvm, I'm an idiot and forgot to add lib at the top of the file
<Tarinaky> It's been way too long since I read the manual...
Turion has joined #nixos
<guillaum2> srhb: thank you.
ma27 has joined #nixos
<rycee> flokli: Yeah, it actually doesn't go through systemd at all. Best to just kill the process and let dbus start it again. So admittedly it is misleading to have a dunst systemd unit in HM.
<rycee> flokli: In any case, thanks for the PR. I'll try to have a look at it next week.
georges-duperon has joined #nixos
dieggsy has joined #nixos
<flokli> rycee: take your time :-) I don't really understand why it doesn't go via systemd, but lets discuss it inside the PR :-)
<rycee> flokli: Thanks :-)
<rycee> flokli: You can read about the dbus thing here: https://github.com/NixOS/nixpkgs/issues/17943#issuecomment-341860410
erictapen has quit [(Ping timeout: 255 seconds)]
cybrian has quit [(Read error: Connection reset by peer)]
<flokli> will do, thanks
ShalokShalom has quit [(Ping timeout: 248 seconds)]
i-am-the-slime has quit [(Quit: Konversation terminated!)]
sigmundv has joined #nixos
dieggsy has quit [(Remote host closed the connection)]
ma27 has quit [(Ping timeout: 255 seconds)]
ylwghst has joined #nixos
i-am-the-slime has joined #nixos
ma27 has joined #nixos
b73_ has quit [(Quit: Connection closed for inactivity)]
<ryantrinkle> zimbatm: how long do you think i should wait for feedback before merging these NAT things?
<ryantrinkle> i don't want to shortcircuit anybody's input, but i also suspect very few people care about it :P
ylwghst has quit [(Ping timeout: 258 seconds)]
<zimbatm> yeah as long as you don't break anything :p
<ryantrinkle> haha yeah, indeed
<ryantrinkle> speaking of breaking things
<ryantrinkle> someone told me how they had nix set up in a deployment
<ryantrinkle> so that after switching to a new configuration
<ryantrinkle> there was a 30-minute timer
<ryantrinkle> and if they didn't ssh in and shut it off, the thing switched back to the old config
<ryantrinkle> this was for networked kiosks that were at distant locations
<zimbatm> yeah, the lumiguide people are doing that
<ryantrinkle> yeahhhh
<ryantrinkle> that's the one
<ryantrinkle> i wonder if they have/would contribute that
<ryantrinkle> it would be perfect for my home router
<ryantrinkle> though more like a 30 *second* timer
<LnL> they talked about it at nixcon
<ryantrinkle> ahhh, nice
<zimbatm> yeah it's recorded on youtube, but he didn't share the code AFAIK
<ryantrinkle> what's the guy's nick?
<andi-> has anyone ever tried to build a minimal php interpreter? It seems all f*cked.. just wanted to bump weechat to 2.0 and found broken stuff :/
<ryantrinkle> oh, it's bas van dijk?
<zimbatm> I have his visit card somewhere, might shoot him an email
<ryantrinkle> andi-: oh man, that does not sound like a fun time
<andi-> I think he said (during dinner on saturday) that they just start a systemd-timer that reverts configuration and they cancel that timer with an alias/script
dmi3y has joined #nixos
<zimbatm> ryantrinkle: regarding the PRs, the most interesting bit is the new regexp types, I'm a bit worried to rush it
<zimbatm> it looks like it does what we want but I'm not sure, something seems off
erictapen has joined #nixos
hexa- has quit [(Remote host closed the connection)]
simpson has left #nixos ["WeeChat 1.0.1"]
<ryantrinkle> zimbatm: ah, ok
<zimbatm> would you mind grouping all the NAT changes into 1 PR and the regexp types into another?
<LnL> ryantrinkle: I'm not sure if it's available somewhere, but he contributes stuff regularly
<ryantrinkle> zimbatm: they are grouped that way now, but the nat changes depend on the regexp types ones, currently
<zimbatm> where the regexp PR has the NAT protection
<ryantrinkle> ah, got it, sure
asymmetric2 has quit [(Ping timeout: 255 seconds)]
<zimbatm> thanks
<ryantrinkle> is there someone we should loop in on the types thing?
dmi3y has quit [(Client Quit)]
ylwghst has joined #nixos
<zimbatm> yeah, let's add nbp to the conversation
<zimbatm> he's not 100% active but he's the one that came up with those
cybrian has joined #nixos
<ryantrinkle> zimbatm: ok, cool; i agree that it's a bit more powerful of a type than normal
hexa- has joined #nixos
<ryantrinkle> if it were in a statically typed language, it'd need promoted types
<ryantrinkle> i.e. to have a string at the type level
<ryantrinkle> (or a regexp of some sort, anyway)
<ryantrinkle> but i actually thought about that a bit and i think the types would be surprisingly nice
<ryantrinkle> for instance
dmi3y has joined #nixos
<ryantrinkle> if you have a :: strMatching "regexpA" and b :: strMatching "regexpB"
<ryantrinkle> a + b :: strMatching ("regexpA" + "regexpB")
<ryantrinkle> so it appears there are actually meaningful laws and stuff
<ryantrinkle> otoh, from the perspective of what i was trying to immediately achieve, this gave the best error messages and such
magnetophon has joined #nixos
sigmundv__ has joined #nixos
<magnetophon> sometimes I get rectular parts of the screen that show a previous version of that area, and then blink back and forth about once a second. they are rectangular areas, usually as wide as the screen.
<LnL> ryantrinkle: I think I prefer the attributes, even tho it's more verbose
<magnetophon> I have it with 2 different kernel versions, with and without compton
erictapen has quit [(Ping timeout: 260 seconds)]
griff_ has quit [(Quit: griff_)]
Turion has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bhipple opened pull request #32278: Init Centos 7.4 vmTools diskImage (master...centos-7.4-vmtools.image) https://git.io/vbOWA
NixOS_GitHub has left #nixos []
Dr8128 has joined #nixos
asymmetric2 has joined #nixos
Neo-- has joined #nixos
<ryantrinkle> LnL: that's fine with me, too, but there was a discussion where others seemed not to want to go that way
cmacrae has joined #nixos
<ryantrinkle> my goal here is just to support the feature in whatever way people prefer
<ryantrinkle> i don't have any strong personal opinions about the syntax
jb55 has joined #nixos
Turion has joined #nixos
nadley has quit [(Quit: No Ping reply in 180 seconds.)]
nadley has joined #nixos
erictapen has joined #nixos
<cmacrae> Sup people o/ Is there a means by which I can get i3 configured as my window manager in a Gnome3 session? I've tried setting `windowManager.default` to `"i3"` and `windowManager.i3.enable = true`, but I'm guessing I may have to do some more work
Harpalus has joined #nixos
ryantrinkle has quit [(Ping timeout: 255 seconds)]
i-am-the-slime has quit [(Ping timeout: 268 seconds)]
Tarinaky has quit [(Quit: Page closed)]
sigmundv has quit [(Ping timeout: 248 seconds)]
cmacrae has quit [(Remote host closed the connection)]
ambro718 has joined #nixos
jsgrant has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
hellrazo1 has joined #nixos
hellrazor has quit [(Ping timeout: 240 seconds)]
Isorkin has quit [(Ping timeout: 255 seconds)]
exfalso has quit [(Quit: Lost terminal)]
i-am-the-slime has joined #nixos
erictapen has quit [(Ping timeout: 248 seconds)]
MP2E has joined #nixos
<phg> hey guys, how do I get a piece of non-free firmware to load?
<phg> What I have: hardware.enableAllFirmware set to true
<phg> correct module specified (amdgpu) and loaded
<phg> dmesg: 200~amdgpu 0000:01:00.0: Direct firmware load for amdgpu/polaris12_mc.bin failed with error -2
jb55 has quit [(Ping timeout: 248 seconds)]
ryantrinkle has joined #nixos
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
mrkgnao has quit [(Ping timeout: 255 seconds)]
Isorkin has joined #nixos
akfp has quit [(Ping timeout: 248 seconds)]
Myrl-saki has joined #nixos
goibhniu has joined #nixos
<Myrl-saki> I'm so sleepy right now. How do I run an sh file on patchPhase from configuration.nix?
<Myrl-saki> Does that make any sense?
stphrolland has joined #nixos
<stphrolland> I noticed a strange thing in vim in my nixos setup. Backspace seems to be mapped to Ctrl then tabp. verbose imap does not show any key mapping corresponding to this that I would mistakingly do in my vimrc. Does anyone else experimented this ? Any idea ?
<Myrl-saki> stphrolland: Try an empty vimrc?
ambro718 has quit [(Quit: Konversation terminated!)]
<stphrolland> good I idea
<stphrolland> ambro718: thanks for the tip, it obviously come from MY vimrc, since with none the behaviour is ok
dmi3y has quit [(Quit: dmi3y)]
<Myrl-saki> stphrolland: Wrong ping. :P
<Myrl-saki> stphrolland: Good luck though!
<stphrolland> Myrl-saki: :-)
i-am-the-slime has quit [(Ping timeout: 260 seconds)]
<Myrl-saki> Well
<Myrl-saki> I think I messed up my /tmp. It's not mounted as tmpfs.
<Myrl-saki> Is it normally tmpfs?
dejanr has joined #nixos
<ryantrinkle> Myrl-saki: iirc, it's not mounted with tmpfs on nixos by default
<Myrl-saki> ryantrinkle: That's weird.
<ryantrinkle> i always end up adding that to my config by hand
<ryantrinkle> yeah, i'm not sure why
<Myrl-saki> ryantrinkle: No one complained about security yet?
<Myrl-saki> Well, it's more privacy over security, I guess.
<ryantrinkle> hm, i always just thought of it as a performance thing
<dejanr> Hello, i have an issue with second zfs pool, my setup is main zfs pool which is raidz for system, and addditional zfs pool for backup which is raid2z, second backup pool is not imported during the build, and whenever i create a fileSystems entry point for second pool i end up into emergency mode
<ryantrinkle> but in any case, yeah, i'd tend to make it tmpfs and then add swap if necessary
<Myrl-saki> ryantrinkle: That too, but I have a lot of image files files in my /tmp, that I'm not proud of. :D
<ryantrinkle> dejanr: has the second zfs pool been imported to that system?
<ryantrinkle> if it has a different hostId recorded, it'll need to be force-imported
ris has joined #nixos
<dejanr> ryantrinkle: yes i created it on same host, at the same time
<ryantrinkle> dejanr: ah, ok; in that case, i think you've exhausted my limited knowledge of zfs :P
<dejanr> ryantrinkle: and when i import it manually i can see it in zfs list
jtojnar has quit [(Remote host closed the connection)]
<Myrl-saki> I'm actually curious.
jb55 has joined #nixos
<Myrl-saki> Not exactly NixOS, but Linux in general. Is /tmp/ "allowed" to be cleared on a running system?
<ryantrinkle> Myrl-saki: i wouldn't recommend it
<ryantrinkle> lots of socket files and such end up there
<Myrl-saki> ryantrinkle: Ah, true.
<Myrl-saki> I just did. So I'll reboot.
<ryantrinkle> my guess would be: pulseaudio and postgres, at least, would stop working
cybrian has joined #nixos
drakonis has quit [(Ping timeout: 260 seconds)]
<ryantrinkle> dejanr: my only other guess would be that perhaps with two pools the paths are ambiguous somehow
<ryantrinkle> and therefore the thing that's trying to mount them at boot is not able to figure it out
<ryantrinkle> i run zfs on my machines, but i haven't used multiple pools
<dejanr> ryantrinkle: i just found now in journal that zfs faild mounting second pool, maybe default mountpoint
<ryantrinkle> ahh, yeah, that could be
<ryantrinkle> maybe turn more things to legacy?
<dejanr> will try now
<gleber_> The home-manager readme says that to enable graphical services, home-manager needs to start xsession. In my case I do not have `xsession.enable = true`, yet `services.compton.enable` does work. Am I missing something? rycee
Myrl-saki has quit [(Ping timeout: 248 seconds)]
<dejanr> ryantrinkle: is legacy necessery only for root?
zraexy has quit [(Ping timeout: 260 seconds)]
<dejanr> or for any fileSystems entries?
dmi3y has joined #nixos
<ryantrinkle> dejanr: i think it's necessary for anything you want nixos to mount for you
thblt has joined #nixos
<ryantrinkle> my current setup is that i have a pool called rpool
<ryantrinkle> NAME USED AVAIL REFER MOUNTPOINT
<ryantrinkle> rpool 253G 669G 96K /rpool
<ryantrinkle> rpool/home 253G 669G 253G legacy
<ryantrinkle> the /rpool mountpoint doesn't seem to have any effect
<ryantrinkle> rpool/home is what gets mounted as /home, but nixos handles that
jb55 has quit [(Ping timeout: 255 seconds)]
<LnL> legacy allows nixos to manage it
phreedom has quit [(Ping timeout: 248 seconds)]
erictapen has quit [(Ping timeout: 255 seconds)]
Turion has quit [(Ping timeout: 248 seconds)]
colabeer has joined #nixos
myrl has joined #nixos
<myrl> I nuked my /tmp
<myrl> And I got a kernel panic on reboot
<myrl> I also just recently collected garbage
<myrl> I have an external drive with NixOS.
<myrl> How should I go through with this?
<hyper_ch> boot live iso, re-create it, boot nixos
<myrl> hyper_ch: I don't think I have the luxury of recreating.
<myrl> Err
<hyper_ch> sure you have
<myrl> The luxury of time
<gchristensen> LnL: hm?
<myrl> It's 2:40 here, I want to sleep. I have classes at 8, travel time's around 30 mins.
<LnL> gchristensen: ?
<myrl> And my packages are around ~3G, which takes 2 hours.
<gchristensen> LnL: you said ":o" a bit ago
cybrian has quit [(Read error: Connection reset by peer)]
phreedom has joined #nixos
<LnL> ah
<myrl> hyper_ch: What can I do aside from recreating?
<colabeer> I want to use powerline in tmux, so I have to put source "/usr/lib/python3.6/site-packages/powerline/bindings/tmux/powerline.conf" into my ~/.tmux.conf how do I do that in nixos? Can I just tell my /etc/nixos/configuration.nix to create this file and put sth like ${pkgs.powerline}/binding/tmux/powerline.conf into .tmux.conf?
<myrl> hyper_ch: I should be able to mount it on my desktop and dd.
<hyper_ch> meanwhile you could already h ave downloaded the iso and copied it to a usb stick
<LnL> gchristensen: the !which channels thing :)
<gchristensen> oh :)
<myrl> hyper_ch: I have a full install on my drive.
{^_^} has joined #nixos
<myrl> hyper_ch: On my USB drive, I mean.
<hyper_ch> meanwhile you'd alreday have booted the iso, mounted your nixos and recreated it
<Harpalus> colabeer: use /run/current-system/sw/lib/… which links to your current configuration
<myrl> Kk. Wait.
drakonis has joined #nixos
dejanr has quit [(Quit: WeeChat 1.9.1)]
phreedom has quit [(Ping timeout: 248 seconds)]
myrl has quit [(Ping timeout: 255 seconds)]
<colabeer> Harpalus: thx, what I needed :)
endformationage has joined #nixos
georges-duperon has quit [(Ping timeout: 260 seconds)]
mahalel_ has joined #nixos
<LnL> huh, python stuff gets linked to the system profile!?
Ralith_ has quit [(Ping timeout: 255 seconds)]
i-am-the-slime has joined #nixos
<Harpalus> LnL: whoops, seems I didn't pay enough attention. sorry for that
Ralith_ has joined #nixos
<Harpalus> colabeer: ^
<LnL> well what you mentioned works
<colabeer> whu? it works
<LnL> but it shouldn't IMHO
<colabeer> works for me :D
<colabeer> ok wait, whats the prober way to do than then?
* samueldr wonders if !which would better serve as a wrapper for nix-locate to find a package serving a binary
<colabeer> some while back I had a similar problem and then i wrote a python wrapper which could run that script, but I dont remeber how I did that..
<Harpalus> LnL: okay, misunderstood you, then. It was a wild guess from my side since I figured everything in environment.systemPackages is linked in /run/current-system/…
<Harpalus> LnL: Why do you think it should be different?
sigmundv__ has quit [(Ping timeout: 240 seconds)]
MichaelRaskin has quit [(Ping timeout: 240 seconds)]
<neonfuz> mplayer won't play audio with pulseaudio for me
colabeer has quit [(Ping timeout: 240 seconds)]
jtojnar has joined #nixos
<hyper_ch> works fine for me with smplayer
<neonfuz> is that using mplayer, mplayer2 or mpv
<LnL> Harpalus: your packages can contain conflicting libraries, so whatever gets linked there is unreliable
<neonfuz> I need mplayer
MichaelRaskin has joined #nixos
<Harpalus> LnL: I see
colabeer has joined #nixos
<rycee> gleber_: Yeah, I think the readme no longer is true. The HM services that depend on X may very well work even when HM does not manage the x session.
<Harpalus> ouch
<gleber_> rycee: That is my impression
<rycee> gleber_: If you are able to test this with some module then I'd very much appreciate if you could create an issue on github to say that this. I'll make sure to remove the text.
Harpalus has quit [(Quit: Leaving)]
<rycee> gleber_: It used to be true that they wouldn't work without HM manager managing the X session, that's why it is mentioned in the readme.
<gleber_> rycee: It works for me for `compton` and `gpg-agent`, at least. Although I did have to run `systemctl --user start foobar` manually after `home-manager switch`.
<colabeer> LnL: so how can I link to an external file within a config file? I mean, how do you link from i3config to i3blocks or i3pystatus?
<rycee> gleber_: The gpg-agent service doesn't require X at all. But yeah, I think compton does.
<viric> still noone packaged https://github.com/Valloric/YouCompleteMe <- Maybe it doesn't work well? I have not tried it yet.
<LnL> colabeer: I would probably do something like this
<gleber_> rycee: right, I will test it with another service and record what I have observed along the way in an issue
<LnL> viric: ycmd and vimPlugins.youcompleteme
<rycee> gleber_: I recommend trying out, e.g., the redshift module. Saves your eyes ;-)
<viric> LnL: aaah!
<viric> LnL: thank you
<gleber_> rycee: sounds good! I want to try to package `parcellite` as a service (although not sure if it will work as a systemd user service)
<LnL> colabeer: environment.etc."tmux/powerline.conf".source = "${pkgs.powerline}/binding/tmux/powerline.conf";
<neonfuz> I see that the mplayer package references "config.pulseaudio", if I set "hardware.pulseaudio.enable" does that get set?
<viric> description = "Fastest non utf-8 aware word and C completion engine for Vim";
<LnL> colabeer: then you can source /etc/tmux/powerline.conf
<gleber_> rycee: Looks like it does work for others: https://github.com/kevincox/systemd-user-apps/blob/master/parcellite.service
<viric> a rant in the description? :)
<neonfuz> or do I manually need to add "config.pulseaudio = true" somewhere
<colabeer> LnL: ah sounds good, I'll check it out
<neonfuz> hmm, I manually set "pulseaudio = true;" in ~/.config/nixpkgs/config.nix and it's reinstalling mplayer now
<rycee> gleber_: Had a quick look. Seems to me it would be a good candidate for a service!
<neonfuz> I wasn't aware I needed to set that
<rycee> gleber_: To start the module you generally can just copy another graphical module. Like the compton or redshift ones.
Neo-- has quit [(Ping timeout: 255 seconds)]
<gleber_> rycee: ack
cybrian has joined #nixos
<neonfuz> is there anyway to say "reinstall all packages that need to be reinstalled now that I have changed my config"?
<rycee> gleber_: Note, the things about `graphical-session(-pre).target` in the service description are mandatory for graphical services.
dejanr has joined #nixos
<neonfuz> in nix-env not system packe
Ralith_ has quit [(Ping timeout: 255 seconds)]
<dejanr> ryantrinkle: i have recreated zfs pool with legacy, it works now. Thanks a lot :)
ylwghst has quit [(Remote host closed the connection)]
<jeaye> neonfuz: If you're talking about /etc/nixos/configuration.nix then you should use `nixos-rebuild switch`
<jeaye> neonfuz: Nevermind, I see your "in nix-env..." bit now.
typeggze1o has joined #nixos
dejanr has quit [(Quit: WeeChat 1.9.1)]
typeggzero has quit [(Ping timeout: 255 seconds)]
Ralith_ has joined #nixos
phreedom has joined #nixos
jluttine has joined #nixos
dejanr has joined #nixos
<boxofrox> gchristensen: fyi, I posted an initial patch for rust-utils.nix to extract the shell code. would like to know you thoughts when you have time. I posted links to the new files in issue/31150.
<neonfuz> jeaye: so are packages installed by nix-env just completely unaware of your options set in /etc/nixos/configuration.nix?
Mic92 has joined #nixos
<jeaye> neonfuz: I'm not the one to ask, sorry.
<jeaye> I'd think that they are aware though.
dejanr has quit [(Client Quit)]
<colabeer> LnL: thx setting environment.etc ... did the job
Ralith_ has quit [(Ping timeout: 248 seconds)]
phreedom has quit [(Ping timeout: 255 seconds)]
theseriousadult has joined #nixos
<neonfuz> I ask questions about this like every other day here and nobody ever knows :/
<neonfuz> seems like real it should be real simple shit
<neonfuz> nixos really needs more noob friendly reading material
<LnL> colabeer: great :)
<jeaye> neonfuz: I agree with you there.
cybrian has quit [(Read error: Connection reset by peer)]
<gchristensen> oops boxofrox I missed those, thank you for the ping
<neonfuz> any way to rebuild all derivations of installed packages and reinstall them?
<neonfuz> that should fix me not having configuration.pulseaudio set
<LnL> eh? why would you want that
Ralith_ has joined #nixos
<jeaye> LnL: He's having issues using pulse with mplayer.
<jeaye> Everything following is XY, I think.
simpson has joined #nixos
<LnL> if it's not rebuilding then nothing changed
<neonfuz> it would rebuild
<simpson> Is there a trick to getting the Idris contrib package loaded? I'm currently doing `with idrisPackages; with-packages [ contrib ]` and it's not working.
<neonfuz> the derivation would be different for all the packages that reference "config.pulseaudio"
<jeaye> neonfuz: Do you have `ao=pulse` in your ~/.mplayer/config?
<neonfuz> no but I fixed it
<neonfuz> I needed to set "config.pulseaudio"
<neonfuz> now it's set, and it works
<jeaye> Then what's the problem?
<neonfuz> I just want to reinstall all packages that refence "config.pulseaudio" to fix those packages
<neonfuz> because I have a lot of software installed
<jeaye> Nix should handle that all for you.
<neonfuz> when I run what?
<LnL> just nix-build / nixos-rebuild
<neonfuz> what about my nix-env packages
<LnL> no need to figure out what changed yourself :)
<neonfuz> nixos-rebuild doesn't do anything to my nix-env does it?
<neonfuz> oh lame
<neonfuz> there's no way to re-derive all installed packages?
bkchr has joined #nixos
georges-duperon has joined #nixos
<LnL> nix-env -u --leq should should replace everything
<neonfuz> thanks
<neonfuz> that's what I was looking r
<jeaye> This is the issue with non-declaratively handling those packages.
<neonfuz> no issue imo
<neonfuz> just needed to know what to run
<neonfuz> I'm fine with re-generating all my derivations
<jeaye> Nothing like that should be needed. Serious issue, in my opinion.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vbO2n
<NixOS_GitHub> nixpkgs/master 959364c Andreas Rammhold: tor: 0.3.1.8 -> 0.3.1.9 (CVE-2017-{8819,8820,8821,8822,8823})...
<NixOS_GitHub> nixpkgs/master 2d0ed7b Joachim F: Merge pull request #32283 from andir/tor-sec...
NixOS_GitHub has left #nixos []
Ralith_ has quit [(Read error: Connection reset by peer)]
<neonfuz> well maybe it should automatically run --leq always
<neonfuz> how expensive is it really?
<neonfuz> not that bad it sems
<neonfuz> the real problem is that nix can leave your system in an inconsistent state where some packages are using an old config
<neonfuz> --leq isn't that expensive and fixes that
Ralith_ has joined #nixos
griff_ has joined #nixos
<neonfuz> btw I come from gentoo
<simpson> neonfuz: That's one way of looking at it. Another way of looking at it is that nix-env is inherently flawed because of how it works, and we should all be using nix-shell to set up local environments.
<neonfuz> true
<neonfuz> yeah I think nix-env is flawed especialy tho --leq
<neonfuz> without*
<LnL> the only stuff I have in my user profile are things I forgot about :p
<simpson> I mean, do you understand what --leq is doing? It's a pretty quirky way to solve problems.
sigmundv__ has joined #nixos
<gchristensen> yeah I think most people don't use nix-enev on nixos
<jeaye> I would if I could have it declarative, bound to `nixos-rebuild`, and scoped within the user's session. I haven't seen something which allows for all three though, perhaps for lack of looking, so I settle for configuration.nix.
<simpson> LnL: I have a few X11 and vim things in there because I've been bitten too hard by not having them, but otherwise I've fully converted away from nix-env.
<jeaye> + nix-shell where needed.
Ralith_ has quit [(Ping timeout: 268 seconds)]
rihards has joined #nixos
Synthetica has joined #nixos
<Synthetica> What might be up if a package only works when installed with `nix-env`?
<neonfuz> simpson: I do understand what leq does and I think it's fine
<neonfuz> the hashes are what uniquely identify the packages, not the version number, so why do we try to rely on the version number to determine if a package needs to be rebuilt?
<neonfuz> leq makes more sense
zzamboni has joined #nixos
<LnL> something like this is a simple way to manage user stuff in a declarative way https://gist.github.com/LnL7/570349866bb69467d0caf5cb175faa74
cybrian has joined #nixos
puck1pedia has joined #nixos
<jeaye> LnL: Is that only available for the lnl user?
sigmundv__ has quit [(Ping timeout: 248 seconds)]
<jeaye> If it's global, then it's not much different from an import in configuration.nix
<LnL> yes, just a wrapper around nix-env
puckipedia has quit [(Quit: *eh*)]
puck1pedia is now known as puckipedia
<jeaye> LnL: Does that automagically update, as necessary, when nixos-rebuilding?
<LnL> it removes and reinstalls everything atomically
<jeaye> Sounds like it does exactly what I'd expect it to do, being a NixOS system.
<jeaye> Which is great.
<neonfuz> nice
<neonfuz> also I'm really inept with nix-shell lol
<neonfuz> I need to learn it better
Ralith_ has joined #nixos
stphrolland has quit [(Quit: leaving)]
<jeaye> That requires a `nix-env -iA ...` for each user though, not just a `nixos-rebuild switch`.
<jeaye> In a system with a dozen users, realizing it should ideally just require installing the configuration.nix and running `nixos-rebuild switch`, which builds not only the global system, but also all of the user environments.
bkchr has quit [(Remote host closed the connection)]
<i-am-the-slime> Is it normal that I can't click on the face representing me to change it to a picture of myself?
<neonfuz> lol wu
Ralith_ has quit [(Ping timeout: 260 seconds)]
<neonfuz> wut*
<neonfuz> in what?
Ralith_ has joined #nixos
b1956 has joined #nixos
JosW has quit [(Quit: Konversation terminated!)]
b1956 has left #nixos []
<pcarrier> before I risk losing access to my root filesystem, anything I need to take care of before putting the zpool holding my root fs (but not boot/EFI fs) under luks?
phreedom has joined #nixos
<pcarrier> (I do have snapshots and a live system but it'll get annoying)
MinceR has quit [(Ping timeout: 248 seconds)]
stphrolland has joined #nixos
erictapen has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gnidorah opened pull request #32285: Make less known wayland window managers usable (master...wayland-wm) https://git.io/vbOVW
NixOS_GitHub has left #nixos []
MinceR has joined #nixos
asymmetric3 has joined #nixos
Ralith_ has quit [(Ping timeout: 240 seconds)]
asymmetric2 has quit [(Ping timeout: 260 seconds)]
dmi3y has quit [(Quit: dmi3y)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] offlinehacker closed pull request #28939: tor module: add support for transparent proxy and dns (master...nixos/tor/trans_proxy) https://git.io/v505n
NixOS_GitHub has left #nixos []
cybrian has quit [(Read error: Connection reset by peer)]
fendor has quit [(Quit: Leaving)]
Ralith_ has joined #nixos
dejanr has joined #nixos
goibhniu has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir opened pull request #32286: [stable/17.09] tor: 0.3.1.8 -> 0.3.1.9 (CVE-2017-{8819,8820,8821,8822,8823}) (release-17.09...tor-sec-stable) https://git.io/vbOw8
NixOS_GitHub has left #nixos []
zzamboni has quit [(Ping timeout: 255 seconds)]
cybrian has joined #nixos
babyflakes has quit [(Quit: Connection closed for inactivity)]
Dr8128 has quit [(Ping timeout: 248 seconds)]
joshuaks has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir opened pull request #32287: polybar: 3.0.5 -> 3.1.0 (master...polybar-3.1.0) https://git.io/vbOrR
NixOS_GitHub has left #nixos []
<joshuaks> Hey all, I'm trying to install Stack properly with Nix (I already have GHC and Hakyll installed properly). So I ended up following some errors down the rabbit hole with that. Right now I'm trying to add XCode 5.1 to the Nix store, which fails with this error: 'error: writing to file: Invalid argument'...And I'm not really sure what to do.
<joshuaks> It looks like 'add-fixed' isn't supported anymore?
zzamboni has joined #nixos
simendsjo has quit [(Quit: it's late)]
<nixy> Anyone on NixOS having issues with Stack? It seems to be bombing out on a #!/bin/bash script when configuring GHC
<joshuaks> I am! haha
cybrian has quit [(Read error: Connection reset by peer)]
<joshuaks> Sounds like we have idfferent issues though -- I'm on macOS too. Didn't see that until now.
<nixy> Yeah, it seems stack is consistently a naughty child :)
<stphrolland> joshuakx: if had some problem with my former custom script beginning by #!/bin/bash, and correct them as #!/usr/bin/bash
<stphrolland> joshuakx: it worked for me
<stphrolland> joshuakx: but I did not played with Stack on my new nixos system for now, so I cannot know if it bugs like yours do
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bkchr opened pull request #32288: plasma: 5.11.3 -> 5.11.4 (master...plasma_5_11_4) https://git.io/vbOok
NixOS_GitHub has left #nixos []
endformationage has quit [(Quit: WeeChat 1.9.1)]
wolfcub has joined #nixos
<joshuaks> I'm on macOS actually. That was my bad.
<joshuaks> I got all excited when I saw someone else having Stack issues and missed the NixOS stuff.
davidak1 has quit [(Quit: Leaving.)]
hariel has quit [(Ping timeout: 255 seconds)]
<nixy> joshuaks: Are you having trouble getting stack installed or running it once installed?
<nixy> Oh. I guess I have to use `stack --nix setup` instead of `stack setup`. How embarassing...
jmeredith has joined #nixos
<joshuaks> I have problems when I run 'stack build'
<nixy> What is the error you be getting? Also did you install stack through `nix-env`?
<joshuaks> yeah I did
<joshuaks> Uh gimme a moment to get everything
<nixy> That second one was a silly question. If you didn't install it through `nix-env` you wouldn't be here lol
jb55 has joined #nixos
ma27 has quit [(Ping timeout: 255 seconds)]
colabeer has quit [(Remote host closed the connection)]
<joshuaks> '***
<joshuaks> Unfortunately, we cannot download file xcode_5.1.dmg automatically.
<joshuaks> Please go to https://developer.apple.com/downloads/ to download it yourself, and add it to the Nix store
<joshuaks> using either
<joshuaks> nix-store --add-fixed sha256 xcode_5.1.dmg
<joshuaks> or
<joshuaks> nix-prefetch-url --type sha256 file:///path/to/xcode_5.1.dmg
<joshuaks> ***'
<joshuaks> I did the former
<joshuaks> I also had to allow unfree packages and...something else. I had to add zlib as a dependency in the stack.yml file.
ma27 has joined #nixos
hiratara has quit [(Ping timeout: 255 seconds)]
<LnL> wat
<LnL> why did you need to add xcode to your store
hiratara has joined #nixos
tmaekawa has joined #nixos
typeggzero has joined #nixos
<joshuaks> it asked me to
<joshuaks> Running that gave me: 'error: writing to file: Invalid argument'
tmaekawa has quit [(Client Quit)]
typeggze1o has quit [(Ping timeout: 240 seconds)]
akfp has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #32286: [stable/17.09] tor: 0.3.1.8 -> 0.3.1.9 (CVE-2017-{8819,8820,8821,8822,8823}) (release-17.09...tor-sec-stable) https://git.io/vbOw8
NixOS_GitHub has left #nixos []
coot has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bhipple opened pull request #32289: android-platform-tools: 26.0.0 -> 26.0.2 (master...feature/android-platform-tools-26.0.2) https://git.io/vbOKb
NixOS_GitHub has left #nixos []
kriztw has joined #nixos
ma27 has quit [(Ping timeout: 255 seconds)]
coot_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #32290: gnome3.gpaste: fix keybindings path (master...gpaste-keybindings-path) https://git.io/vbO6I
NixOS_GitHub has left #nixos []
coot has quit [(Ping timeout: 255 seconds)]
bennofs has quit [(Ping timeout: 260 seconds)]
simukis has quit [(Ping timeout: 248 seconds)]
cybrian has joined #nixos
<akfp> when building kernel 4.15rc1 with some extraConfig I'm getting error: unused option: DONGLE. Even if I put 'DONGLE n' in extraConfig. I'm assuming that this option depends on some USB subsystem that I disabled. Shouldn't extraConfig somehow override that or what's happening?
Otis is now known as b
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vbO69
<NixOS_GitHub> nixpkgs/master aeb32cf Jan Tojnar: gnome3.gpaste: fix keybindings path...
NixOS_GitHub has left #nixos []
<sphalerite> akfp: is DONGLE really a config option available in the kernel?
<Dezgeg> probably whatever you disabled hid the option
<dhess> Does anyone here send their systemd logs to AWS CloudWatch?
<Dezgeg> maybe 'DONGLE? n' fixes that
<gchristensen> dhess: I think I've used https://github.com/saymedia/journald-cloudwatch-logs before
<dhess> gchristensen: Thanks. I've seen that mentioned elsewhere. Any thoughts on it?
<gchristensen> it was mostly fine, I guess mostly I'm surprised there isn't anything more ..... official?
<dhess> I share your surprise.
theseriousadult has quit [(Ping timeout: 255 seconds)]
griff_ has quit [(Quit: griff_)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
ShalokShalom has joined #nixos
hiratara has quit [(Quit: ZNC - http://znc.in)]
hiratara has joined #nixos
griff_ has joined #nixos
i-am-the-slime has quit [(Ping timeout: 260 seconds)]
i-am-the-slime has joined #nixos
astsmtl has joined #nixos
astsmtl has quit [(Changing host)]
astsmtl has joined #nixos
i-am-the-slime has quit [(Quit: Konversation terminated!)]
<akfp> what does DONGLE? n mean?
<akfp> and it seems to help, but then why isn't comon-config.nix using it?
i-am-the-slime has joined #nixos
<WilliamHamilton> what should I do if I'd like to customize a file for a program but it's only a symlink into the nix store, and so it's read only?
dywedir has quit [(Remote host closed the connection)]
dywedir- has quit [(Remote host closed the connection)]
typeggze1o has joined #nixos
coot_ has quit [(Quit: coot_)]
dan_b_ has joined #nixos
typeggzero has quit [(Ping timeout: 255 seconds)]
thblt has quit [(Ping timeout: 248 seconds)]
leothrix has quit [(Ping timeout: 260 seconds)]
<i-am-the-slime> I have problems with my bluetooth headset.
<i-am-the-slime> It sometimes works, but disconnects rather quickly. Often refuses to connect etc.
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
rihards has quit [(Quit: rihards)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vbOXi
<NixOS_GitHub> nixpkgs/master 6809cb0 Andreas Rammhold: polybar: 3.0.5 -> 3.1.0
<NixOS_GitHub> nixpkgs/master b4f4e06 Joachim F: Merge pull request #32287 from andir/polybar-3.1.0...
NixOS_GitHub has left #nixos []
<akfp> WilliamHamilton: you might be able to use nixpkgs.config.packageOverrides to adjust the file
oida has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] paluh opened pull request #32292: psc-package: 0.2.4 -> 0.2.5 (master...master) https://git.io/vbO1e
NixOS_GitHub has left #nixos []
oida has joined #nixos
<WilliamHamilton> akfp: thanks, I'll google it and try
i-am-the-slime has quit [(Ping timeout: 260 seconds)]
cybrian has quit [(Read error: Connection reset by peer)]
<pcarrier> Trying to rebuild my system in a chroot
<pcarrier> From the installer
<pcarrier> nixos-install --chroot and straight chroot both fail
<pcarrier> Is that just not an option or am I missing steps maybe?
dan_b_ has quit [(Ping timeout: 248 seconds)]
sigmundv__ has joined #nixos
stphrolland has quit [(Quit: leaving)]
zzamboni has quit [(Quit: Leaving.)]
typeggzero has joined #nixos
<catern> hey #nixos
<catern> why does nix-shell on my Debian system change TMPDIR to /run/user/1000 (my uid) ?
<catern> that is much smaller than /tmp on my system (only 100MB in fact) and that causes test failures...
{^_^} has quit [(Ping timeout: 240 seconds)]
typeggze1o has quit [(Ping timeout: 268 seconds)]
<joepie91> catern: wild guess, might be one of Nix' measures to prevent accidental impure state?
astsmtl has quit [(Ping timeout: 248 seconds)]
<catern> hmm
<catern> I guess
m has joined #nixos
<samueldr> catern: outside of nix-shell, is TMPDIR set?
<catern> samueldr: yes
m is now known as Guest76269
<samueldr> oh, anyway, I didn't read what I was reading properly
<catern> theoretically maybe it's a foolish attempt to restrict access to tmp files to a single user, but that could also be done by just creating a directory in /tmp
<catern> but yeah I guess that's what it is
<catern> though I wonder where it is getting /run/user from?
<Guest76269> I added eclipses.eclipse-platform to my .nix package list, but the installation I get is seemingly missing all of the usual things included with eclipse. I'm sure I've done this wrong, any ideas?
<Dezgeg> XDG_RUNTIME_DIR probably
Guest76269 is now known as zab
<catern> oh wait a second!
<catern> samueldr: TMPDIR is not set outside of nix-shell :)
<samueldr> ah, then I understood some perl
<catern> nice
<catern> yeah, that's what my XDG_RUNTIME_DIR is set to
<samueldr> a bit beforehand, it sets $tmp to either TMPDIR, or that runtime dir, or /tmp
ShalokShalom has quit [(Remote host closed the connection)]
dejanr has quit [(Ping timeout: 255 seconds)]
ShalokShalom has joined #nixos
ShalokShalom has quit [(Remote host closed the connection)]
ShalokShalom has joined #nixos
<dhess> jesus, the options for shipping journald logs are incredibly poor
<dhess> (unless it's to another journald server)
dieggsy has joined #nixos
leothrix has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/de7eae5d1f3 (from 12 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
nix-gsc-io`bot has quit [(Client Quit)]
remexre has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
thc202 has quit [(Ping timeout: 260 seconds)]