ibrahims has quit [(Ping timeout: 240 seconds)]
ibrahims has joined #nixos
ambro718 has quit [(Ping timeout: 260 seconds)]
<yegortimoshenko> error: a ‘i686-linux’ is required to build ‘/nix/store/k48ha66pwjybgb79wgk1j2iy8bidyx2m-wine-2.12.drv’, but I am a ‘x86_64-darwin’
<yegortimoshenko> is that to be expected?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] primeos pushed 1 new commit to master: https://git.io/v7JMj
<NixOS_GitHub> nixpkgs/master 90afb0c Michael Weiss: maim: 5.4.63 -> 5.4.64
NixOS_GitHub has left #nixos []
<ottidmes> yegortimoshenko: From what I remember from the last time someone asked about wine is that by default if the system is x86_64 it will default to having both the 32 and 64 bits version installed
<yegortimoshenko> ottidmes: it's a darwin-specific issue
<yegortimoshenko> (macOS)
<ottidmes> yegortimoshenko: I see, I have no clue about anything MacOS related (and I want to keep it that way :P), but this might help: https://github.com/NixOS/nixpkgs/issues/8849
<ottidmes> yegortimoshenko: So unfortunately it seems it is not supported on Darwin as of yet
<cwre> How can I refresh my install? Should I just make a new user?
<ottidmes> cwre: Refresh? Any change should trigger a rebuild, but only for what has been changed and the default stuff (grub, if enabled, symlinking of /etc and /run/current-system/..., etc.)
<cwre> ottidmes: so I'll just make a new user
<cwre> I'm running into a plethora of stupid issues.
ryanartecona has joined #nixos
<ottidmes> cwre: In the worst case, if something really is messed up, you could always use a basic config (just enough to get your system to be useful) and then install your actual config again, this has helped me in the past
<boomshroom> Hm... nix isn't in the path of my remote machine, but nix-copy-closure was still able to send a precompiled nix binary. Does nix-copy-closure even depend on the target system having nix, or does it only check the existence of the store?
eacameron has quit [(Remote host closed the connection)]
revoltmedia[m] has joined #nixos
eacameron has joined #nixos
erictapen has quit [(Ping timeout: 260 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
magnetophon has quit [(Ping timeout: 260 seconds)]
<ottidmes> boomshroom: That seems to be the case looking at the source code: https://github.com/NixOS/nix/blob/master/src/nix-copy-closure/nix-copy-closure.cc
Rotaerk has joined #nixos
magnetophon has joined #nixos
<cwre> Infinisil: how can I go about automating this Overlay for the nightly version?
<cwre> Of firefox
<catern> i'm pretty excited about the idea of the combining CloudABI and Nix
<yegortimoshenko> sorry if it's off-topic, but what file system would you use on a laptop with ssd drive (trim-enabled) and why?
hamishmack has quit [(Ping timeout: 240 seconds)]
hamishmack has joined #nixos
<Infinisil> cwre: Hold on, I'm looknig into it right now
<cwre> Infinisil: alrighty
<ottidmes> yegortimoshenko: All still worked on filesystems have SSD support, so you would not be able to base you decision on using a SSD, rather, what kind of features do you want from the file system? Personally I use ext2 for my boot partition, btrfs on LUKS encrypted LVM for my main systems and ZFS for my backup server (more stable then btrfs)
<cwre> So... If I want to use ati_unfree on my MBP that runs an M370x... Can I?
vaibhavsagar_ has quit [(Remote host closed the connection)]
<cwre> I tried it just now and it doesn't seem to work... Video broke on reboot.
<yegortimoshenko> ottidimes: just good performance, good design, hopefully TRIM support. i don't plan to use LUKS.
<ottidmes> yegortimoshenko: And those choices come down on features, ext2 is simple, no journaling, which is not necessary for your boot partition, btrfs, because it has many great features, such as snapshots and flexible partitioning, and ZFS because btrfs has unstable raid 5 and 6 support, and is generally known to be more stable (rather important for backups)
<yegortimoshenko> i had some experience with zfs on freebsd, but i'm not sure if it's a good use case
<yegortimoshenko> ottidimes: got you, will read about btrfs and snapshots. do journaling file systems wear out ssds? i'm not against an occasional 10-minute fsck
<taktoa> I use ZFS on my laptop, which has an SSD
ryanartecona has quit [(Quit: ryanartecona)]
<taktoa> haven't noticed any particular wear-out, even though it doesn't support TRIM
<ottidmes> yegortimoshenko: No, journaling should not wear out a SSD
<taktoa> honestly I think SSD wear-out may be slightly overrated
<taktoa> seems like it was probably a lot more of a problem years ago
<ottidmes> I agree, mine is 7 years old I think, at least 6, every day use, still no errors
<taktoa> the only problem I have with ZFS (and I actually don't know if this is caused by ZFS, but I have installed NixOS with ZFS on three laptops with relatively simple configs and all of them display it) is that when I shut down it will just hang at the "reached target shutdown" systemd journal entry
<taktoa> also occasionally I see "failed unmounting /home" which scares the shit out of me
<taktoa> so before I shut down I always run `sync` like 20 times
<taktoa> after closing everything
<ottidmes> taktoa: I cannot confirm the reached target shutdown, I have yet to setup that backup server with ZFS (so no ZFS in use so far), but I did see the failed to unmount /home for a long time
<cwre> I have that issue on my macbook pro right now
<cwre> No matter what it just sits.
<cwre> Also, this touchpad is driving me insane.
<ottidmes> taktoa: But since I have updated my configs, not sure what did the trick, maybe just updating certain packages, I have not seen it in a while
<cwre> I feel like I can't rest my hands comfortably on the keyboard.
<taktoa> two of the machines that displayed this for me were macbooks, but the third is a clevo w740su
<taktoa> so I doubt it's macbook-specific
jgertm has quit [(Ping timeout: 240 seconds)]
<cwre> taktoa: I'm just annoyed right now.
<cwre> UGH
<cwre> Still can't make my cursor larger.
<taktoa> KDE or no?
<cwre> i3
<taktoa> (I'm a long-time xfce + xmonad user but when I got this macbook for work I switched to KDE + xmonad for the HiDPI features)
<ottidmes> cwre: Why not select a different xcursor then?
taktoa has quit [(Remote host closed the connection)]
<cwre> ottidmes: I don't know what that means
<cwre> I have xcursor size set
Supersonic112 has quit [(Disconnected by services)]
<cwre> Doesn't change anything
Supersonic112_ has joined #nixos
<cwre> anyone have an overlay for this? https://www.googleplaymusicdesktopplayer.com/#!
Supersonic112_ is now known as Supersonic112
hellrazo1 has quit [(Read error: Connection reset by peer)]
hellrazo1 has joined #nixos
vaibhavsagar_ has joined #nixos
<cwre> Nevermind it exists
vaibhavsagar_ has quit [(Remote host closed the connection)]
<Infinisil> cwre: I feel like I'm very close with the firefox thing, but I'm having some problems
<cwre> Infinisil: what? I can try to help
hamishmack_ has joined #nixos
<Infinisil> cwre: I've got this for now: https://gist.github.com/f6b7d3bb2b4a2a8ed03fbf9e35b955df
<Infinisil> Running nix-shell update.nix --argstr package firefox-nightly-bin updates the hash for the binary
<Infinisil> That is within the nixpkgs-mozilla directory
<Infinisil> And I'm using builtins.fetchTarball so I don't need to provide a hash
<Infinisil> But that gives me an error that it lacks a signature
<Infinisil> And the nix-shell command in the derivation gives me an error that /nix/var could not be created
<Infinisil> And I have no idea how to solve either
<ottidmes> cwre: This is what I am using to have a custom X cursor installed on NixOS: https://gist.github.com/ottidmes/dcdb4dcb2a02392860e0b3c7e9a7ace0
hamishmack has quit [(Ping timeout: 255 seconds)]
hamishmack_ is now known as hamishmack
<cwre> ottidmes: make it public so I can clone it?
<Infinisil> cwre: Oh the builtins.fetchTarball works when invoked from a rebuild
<ottidmes> cwre: done
<cwre> Infinisil: interesting..
<cwre> ottidmes:
<cwre> thanks, sorry
<Infinisil> clever: You here?
<clever> Infinisil: yeah
<Infinisil> clever: Does this work what I'm trying to do here? https://gist.github.com/f6b7d3bb2b4a2a8ed03fbf9e35b955df
<Infinisil> Well it doesn't, but could it work?
<clever> Infinisil: i think its better to just do pkgs.firefox-nightly-bin
<clever> Infinisil: the overlay is already setup, no need to use mozillaPkgs
MP2E has joined #nixos
<Infinisil> clever: But I think the overlay doesn't have the correct hashes
<Infinisil> The problem with the same url which always gives the latest version
<clever> you may need to apply an override to pkgs.firefox-nightly-bin then
<clever> id have to read more of the expressions to know what exactly is going on
<Infinisil> clever: Ah right, probably it's not made for that
<Infinisil> It's probably easier to just clone nixpkgs-mozilla and call nix-shell yourself (or automate that using a shell script) cwre
<Infinisil> This added complexity from trying to use configuration.nix for that is getting on my nerves
<cwre> Infinisil: ugh... I'm just gonna stick with firefox, then.
<cwre> Thanks for trying D:
<Infinisil> cwre: nightly is more fluent for me, gonna stick with that
lambdamu_ has joined #nixos
fikse has joined #nixos
<ottidmes> About nix-shell, how do I prevent the make flags from growing due to SHELL=... being prepended on every invocation of buildPhase?
lambdamu has quit [(Ping timeout: 268 seconds)]
<Infinisil> ottidmes: I've never seen such a thing, what is happening exacly?
<Infinisil> ottidmes: Weird, that seems like a bug
nckx has quit [(Quit: I'm probably just restarting my server.)]
<boomshroom> I'm waiting on a few other things, so in the meantime I can ask another one of my questions. I'm vaguely familiar not not-os, but I'm curious what it would take to have a vm with a kernel and a minimal initrd. By "minimal," I mean one init executable that I can replace and play around with.
<ottidmes> Infinisil: Agreed, I would clasify it as a bug, but I have no clue what is causing it (new to C development and using nix-shell to do this)
jtojnar has quit [(Quit: jtojnar)]
jtojnar has joined #nixos
<Infinisil> ottidmes: Can you show the expression that's causing it? Or just a general idea what you're doing?
<ottidmes> Infinisil: At the point where it starts filling up half your screen, it starts to get really annoying
<boomshroom> The only documentation that I can find on this particular problem is http://www.mustafaak.in/2016/02/08/writing-my-own-init-with-go.html
<Infinisil> ottidmes: Oh wait, are you calling make in nix-shell?
<Infinisil> Umm, buildPhase i mean
<ottidmes> Infinisil: Yeah? Indirectly via buildPhase indeed
joehh has quit [(Ping timeout: 260 seconds)]
<Infinisil> ottidmes: You can see what buildPhase does with `type buildPhase`
<Infinisil> and you can use `set -x` to see exactly what it's doing
<Infinisil> Ahh I found it
fikse has quit [(Ping timeout: 255 seconds)]
<ottidmes> Infinisil: I see, but would it not need a corresponding export?
<Infinisil> ottidmes: Probably, not sure what's exactly happening
<cwre> ottidmes: the premium cursor theme you sent isn't loading properly
s33se has joined #nixos
<ottidmes> cwre: You might need a reboot? That is the exact code I am using right now on my desktop, so it should work, any errors?
<Infinisil> ottidmes: Ah, no, you can assign bash variables by doing just `hi=test`, you only need export when you want subsequently executed commands to see them
<ottidmes> Infinisil: The strange thing is that you would expect people complaining about this before me, I mean, the referenced pull request orignates from 2013
hamishmack has quit [(Read error: Connection reset by peer)]
s33se_ has quit [(Ping timeout: 260 seconds)]
<ottidmes> Infinisil: Yeah, but that is why I was asking, why is it reflected in subsequent calls to buildPhase, when they are not exported?
<Infinisil> ottidmes: Well it's not a bad bug, doesn't hurt anybody, and I don't think many nix people are checking the flags
<Infinisil> ottidmes: It's all in the same bash process
hamishmack has joined #nixos
mbrgm has quit [(Ping timeout: 240 seconds)]
<ottidmes> Infinisil: Ah right! function, not a external command
<Infinisil> ottidmes: Exactly
mbrgm has joined #nixos
<ottidmes> Infinisil: Well it should be easy enough to fix, I just hope it does not mean that everything wants to rebuild, it being stdenv and all
<Infinisil> ottidmes: I'm actually not sure how one would fix that
<Infinisil> gracefully
<ottidmes> Infinisil: Simple, just create a local instead
<Infinisil> ottidmes: Ohh right
<Infinisil> forgot about locals
<Infinisil> ottidmes: Wanna do a PR for that?
<Infinisil> It should probably also be in checkPhase then
<ottidmes> Infinisil: Yeah, I should check the whole script. I can try to do it
<Infinisil> ottidmes: Actually I know a better solution
<ottidmes> Infinisil: Do tell
<Infinisil> Creating a $makeShellFlag variable that contains "SHELL=$SHELL", then calling make with both $makeShellFlag and $makeFlag
<Infinisil> ottidmes: But I don't know, it's not so nice after all
<Infinisil> Or maybe it is
<cwre> ottidmes: let me gist it
Eisfreak1 has joined #nixos
Eisfreak7 has quit [(Ping timeout: 240 seconds)]
<ottidmes> Infinisil: Hmm, what I was afraid for, it will start to build all kinds of things after changing setup.sh
<ottidmes> Infinisil: I will try it tomorrow, hopefully it does not mean having to rebuild everything (does not seem to)
<ottidmes> cwre: You have to include the Premium xcursor theme as a package, it is not a NixOS config file
freusque has quit [(Ping timeout: 255 seconds)]
joehh has joined #nixos
<ottidmes> cwre: e.g in your systemPackages something like this: (pkgs.callPackage /path/to/premium-xcursor-theme.nix { }) (I would add it to packageOverrides first in your nixpkgs config and then just use pkgs.whatever-name-you-gave-it)
<cwre> ottidmes: what do you mean?
<cwre> ohhhh
<Infinisil> ottidmes: I may do this now
<Infinisil> ottidmes: But I'm afraid it rebuilds everything..
<Infinisil> Well I know it rebuilds everything because I just tried it
<cwre> ottidmes: what do you mean by whatever I name it?
nh2 has quit [(Quit: Leaving.)]
fikse has joined #nixos
<Infinisil> cwre: Typically you do something like packageOverrides = pkgs: { hello = pkgs.hello.override... ; }
<ottidmes> cwre: They are all files containing Nix, but generally you can categorize Nix files to be either, NixOS modules, Nix pkgs, NixOS configuration (setting the options defined in modules), just data (e.g. I have a file containing attrsets defining my hosts).
<ottidmes> cwre: Exactly, what Infinisil said, I have something like packageOverrides = pkgs: { premium-xcursor-theme = pkgs.callPackage ./premium-xcursor-theme { }; }
<cwre> God this is so hard to learn.
<ottidmes> cwre: I agree, it is hard, but you are happy when you have learned it, because it maybe hard at first, it is also very powerful
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] sauyon opened pull request #27530: Add solid-server to the list of node packages (master...master) https://git.io/v7J57
NixOS_GitHub has left #nixos []
<Infinisil> cwre: I'm a few months in and it's smooth sailing, I'm also contributing already :D
<ottidmes> Infinisil: I think I will work around this issue for now, but I will put making a pull request on my TODO list, it could take a while though, the list is rather long at the moment
zeus_ has quit [(Remote host closed the connection)]
<Infinisil> ottidmes: Well there's no way around rebuilding everything
zeus_ has joined #nixos
<Infinisil> ottidmes: I can open as issue for that
<cwre> ottidmes: the line you gave me isn't working, I get a syntax error
<ottidmes> Infinisil: Great, please do so, it needs to be known upstream
<cwre> Tells me the option doesn't exist
<ottidmes> cwre: The packageOverrides is part of the nixpkgs config.nix, not your nixos configuration.nix
freusque has joined #nixos
<cwre> Ohhh so in my home?
<ottidmes> cwre: Although you can set it through the nixpkgs.config for use within your nixos configuration
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis opened pull request #27531: kde-frameworks: 5.34 -> 5.36 (master...kde_frameworks_5_36) https://git.io/v7JdT
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis opened pull request #27532: kde-applications: 17.04.2 -> 17.04.3 (master...kde_applications_17_04_3) https://git.io/v7JdI
NixOS_GitHub has left #nixos []
<cwre> oohh
<cwre> Makes more sense
<ottidmes> cwre: Yeah, wherever it is you have it, probably .nixpkgs/config.nix or some such, I am using the system-wide location: /etx/nix/nixpkgs-config.nix
zeus_ has quit [(Ping timeout: 246 seconds)]
<cwre> I should do that.
<ottidmes> cwre: BTW I think you still would need to set nixpkgs.config, but you could probably use something like: nixpkgs.config = import /etc/nix/nixpkgs-config.nix;
<cwre> This is so confusing
<cwre> ottidmes: where am I calling this package name like a regular package?
<cwre> configuration.nix?
<ottidmes> cwre: Yeah, in you environment.systemPackages, so it will be installed system wide
<cwre> Okay.
<cwre> But then I need to import /etc/nix/blah in .config/nixpkgs/config too
<ottidmes> cwre: At least, xcursor.nix file in my gist assumes this, since it is using /run/current-system to locale the xcursor theme
<swflint> When fetching source, is there a way to fetch 2 git repositories?
<cwre> swflint: no
<cwre> Unless I'm misunderstanding the question.
<cwre> You can only have one origin per repo
<ottidmes> cwre and swflint: You can have multiple sources, but one per fetchFromGitHub call
<swflint> I have two repositories that I need the contents of.
<swflint> How would I accomplish that?
<ottidmes> swflint: Use srcs I think
<swflint> Can they both be fetchfromgithub?
<ottidmes> swflint: I do not see why not
<cwre> so the premium cursor works, but my cursor is still microscopic
<swflint> Perfect!
<ottidmes> cwre: You were using i3?
<cwre> ottidmes: correct
<ottidmes> And Xcursor.size:48 in your .Xresources did not work?
ibrahims has quit [(Ping timeout: 248 seconds)]
<cwre> I actually have it set much higher
<ottidmes> And did not forget to do: xrdb $HOME/.Xresources
<cwre> I did
<cwre> Still nothing
<ottidmes> Hmm, so you are using a HDPI monitor
<cwre> Macbook Retina
* cwre hangs self
<ottidmes> As a plan B you could try to do what someone else was doing, use KDE's support for HDPI, but run i3 within it, they were using xmonad, but i3 probably would work similarly
<pikajude> seems like the hydra package is missing a BUNCH of perl dependencies
<pikajude> based on the test failures
<pikajude> can anyone reproduce that
<ottidmes> cwre: Because even if you fix the cursor, something similarly might popup
ibrahims has joined #nixos
<cwre> ottidmes: yeah, but this is annoying. I might as well just use KDE then because I hate KDE.
<cwre> Might as well bite the bullet then.
<cwre> Ugh, DE's suck.
<cwre> Like, literally all of them.
<ottidmes> cwre: I agree, I personally dislike KDE as well, but it is one desktop environment that I know of that has good support for it, apparently, I do not own a HDPI screen, so never had the need
<ottidmes> cwre: I still like Gnome3 for low resolution and single screen machines, but I have become a fan of manual tiling WMs
eacameron has joined #nixos
alx741 has quit [(Read error: Connection reset by peer)]
alx741 has joined #nixos
<cwre> ottidmes: yeah I like using WM's because they're more configurable.
<cwre> But these small annoyances make me just want to go back to MacOS.
alx741 has quit [(Read error: Connection reset by peer)]
alx741 has joined #nixos
<ottidmes> cwre: If you just want things to work out of the box, and you do not care about them, as long as they work, you should be sticking to something like MacOS, Windows, or Ubuntu or a similar distribution
<cwre> ottidmes: I don't have a problem with things not working OOTB, but this isn't out of the box, the pieces aren't there.
<jtojnar> I am getting “package has an unfree license” error when trying to install firefox-nightly from nixpkgs-mozilla channel https://github.com/mozilla/nixpkgs-mozilla/blob/master/default.nix
<ottidmes> cwre: In my experience though, you are just exchanging annoyances, especially when doing development, you tend to need things outside of the box ;)
<jtojnar> I have unfree packages enabled though https://gist.github.com/jtojnar/da5390efd7db8a2e93e52e9e9f0ac696
eacameron has quit [(Ping timeout: 268 seconds)]
<ottidmes> cwre: Maybe this fixes your cursor: https://bbs.archlinux.org/viewtopic.php?id=164935
garbas has quit [(Quit: WeeChat 1.7.1)]
eacameron has joined #nixos
<cwre> One thing I love about nix though is that now I'm on KDE.
<cwre> It took like 2 minutes
<dtzWill> hahah yeah
<dtzWill> "wait are you sure you don't want to like... process some post-install hooks or something for 10 minutes?"
<dtzWill> unrelated, and I suppose folks interested in hydra might already be subscribed but since I've previously chatted about hydra occcasionally perma-skipping jobs in the queue
<dtzWill> just filed this, hope it makes sense and folks can help resolve it :)
eacameron has quit [(Ping timeout: 240 seconds)]
<ottidmes> cwre: I really have to go get some sleep now, but one final suggestion I could make it that now that you can change your x cursor, you could always scale the source images to be bigger, which should increase the size. There are loads of x cursors out there, some of which are designed for HDPI, so, maybe you could just use one of those
<cwre> ottidmes: I'm already on KDE, haha.
<cwre> Wish me luck.
<cwre> Gnight!
<cwre> Thanks for trying to help
<cwre> I really appreciate it
<ottidmes> cwre: Good luck with KDE and figuring out more of NixOS, it is really worth it in my opinion! Good night
ottidmes has quit [(Quit: WeeChat 1.7.1)]
jophish has joined #nixos
<boomshroom> Is it possible to install GNU Guix in the same partition as NixOS using a shared store? If that's possible, then any number of Nix based OSes could theoretically be installed into the same environment without conflicts.\
<catern> boomshroom: there was definitely a point at which Guix and Nix could share a store
<boomshroom> by GNU Guix, I mean GuixSD.
<catern> I don't know if it's still true
<gchristensen> guix uses a different / now
<gchristensen> they use /guix/store I think
<catern> gchristensen: sure sure but you could still conceivably merge them together with a bind mount or something
<gchristensen> yeah
<catern> gchristensen: also it's /gnu/store
<gchristensen> you could concievably merge all /nix/store/*'s together and get fhs
Wizek_ has quit [(Ping timeout: 260 seconds)]
<catern> is that sarcasm? :)
<gchristensen> just that b/c you can doesn't mean that it makes it compatible :P
<catern> yes
<catern> that is why I said
<catern> "there was definitely a point at which Guix and Nix could share a store"
<catern> because they were compatible at one point
<catern> at that time, you could bind mount them together and it would work
<boomshroom> According to the build instructions, guix has a --disable-daemon flag to make it use Nix instead, and options to change the store and state directories.
newhoggy_ has joined #nixos
<boomshroom> speaking of which, is it possible to get the store and state directories used for the running nix instance, or should I just guess at /nix/{store,var}?
zeus_ has joined #nixos
fresheyeball has joined #nixos
<fresheyeball> anyone seen a nix-shell fail with this?
<fresheyeball> *** abort because of serious configure-time warning from Cabal
newhoggy has quit [(Ping timeout: 258 seconds)]
<boomshroom> Along the same lines of guix, clever, do you know if it's currently possible to install not-os into a separate profile and boot from it?
<boomshroom> clever: ^
Sonarpulse has joined #nixos
ibrahims has quit [(Ping timeout: 255 seconds)]
Infinisil has quit [(Quit: leaving)]
slack1256 has joined #nixos
eacameron has joined #nixos
phinxy has quit [(Quit: Leaving)]
<cwre> which package is for discord?
eacameron has quit [(Ping timeout: 255 seconds)]
<boomshroom> Building Guix on NixOS. Wish me luck. Or don't; too much luck and the chance of an unpredictable uutcome decreases and unpredictability is fun.
<boomshroom> *outcome
heath has joined #nixos
schoppenhauer has quit [(Ping timeout: 268 seconds)]
schoppenhauer has joined #nixos
newhoggy_ has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
heath has left #nixos []
fresheyeball has quit [(Quit: WeeChat 1.7.1)]
roconnor has joined #nixos
roconnor_ has joined #nixos
roconnor has quit [(Ping timeout: 260 seconds)]
sjouke has joined #nixos
<sjouke> i am trying to build a package with optparse-applicative. i managed to get around the last error thanks to a suggestion in here. here is the new problem and relevant files: https://gist.github.com/fikse/6499f8738fc5191b12f1c52841e0a24b
roconnor_ has quit [(Remote host closed the connection)]
roconnor_ has joined #nixos
dshin_ is now known as dshin
pikajude has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
pikajude has joined #nixos
roconnor_ has quit [(Ping timeout: 240 seconds)]
<boomshroom> OK, so trying to build guix leads to an error of guile not being found. It specifically mentions the development packages, but guile-2.2.0-dev/include is present in NIX_CFLAGS_COMPILE. Does anyone know what the problem is?
jgertm has joined #nixos
hellrazo1 has quit [(Quit: WeeChat 1.9)]
<cwre> So... Konsole won't keep my profile settings and Suspend to RAM is garbage.
* cwre sighs
<cwre> The joy of KDE.
<boomshroom> It seems adding pkgconfig to either buildInputs or nativeBuildInputs solves that problem.
<cwre> Which one?
<joehh> sjouke: I haven't spotted your earlier help, but wouldn't you just run cabal configure
<joehh> and cabal build within the nix-shell
<joehh> sjouke: what command did you use to enter your nix-shell
<boomshroom> From what I can tell, Guix can be configured to use the nix-daemon, but maintains its own store and localstatedir. Is there any word on having guix and nix respect each others gc roots when using a shared store?
<dalaing> joehh: normally you run nix-build from outside of the nix-shell (unless I've missed something about your use case)
<dalaing> whoops, read-o
<joehh> :)
<dalaing> we have mandatory pub lunch on Fridays, that probably didn't help :)
fikse has quit [(Ping timeout: 240 seconds)]
sjouke has quit [(Ping timeout: 248 seconds)]
<dalaing> I'll help if I can, but I'm struggling to find your problem in the scrollback
<cwre> Konsole is literally garbage. What's the point of having profiles if you fucking ignore them?
<cwre> Hmm me?
<cwre> Konsole won't keep my profile settings and Suspend to RAM is garbage.
<pikajude> ugh
<pikajude> why does hydra never build
<cwre> StR freezes on resume.
<catern> boomshroom: there was a guix package in nixpkgs at one point, look at that
<pikajude> i don't understand
fresheyeball has joined #nixos
noffle has left #nixos ["WeeChat 1.9-dev"]
<fresheyeball> what is nar info?
reinzelmann has joined #nixos
Ridout has quit [(Quit: Lost terminal)]
rauno has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] KaiHa opened pull request #27534: diffoscope: wrap executable and include tools in PATH (master...master) https://git.io/v7Jj4
NixOS_GitHub has left #nixos []
joehh has quit [(Ping timeout: 248 seconds)]
<boomshroom> Yay, GNU Hello built on my university install of Nix! ^_^
<boomshroom> That said, it doesn't seem to have created a .nix-profile.
<dash> boomshroom: building stuff won't create .nix-profile
<dash> nix-env -i puts stuff there
<boomshroom> dash: it was a nix-env
<boomshroom> Which stdenv is the default one? I want to make sure I don't have to rebuild it when compiling every package.
<boomshroom> after a GC.
revolt has quit [(Ping timeout: 255 seconds)]
mog has quit [(Quit: im quiting!)]
hamishmack has quit [(Quit: hamishmack)]
Wizek__ has quit [(Quit: Connection closed for inactivity)]
hamishmack has joined #nixos
lsix has quit [(Ping timeout: 255 seconds)]
lsix has joined #nixos
magnetophon has quit [(Ping timeout: 255 seconds)]
hamishmack has quit [(Ping timeout: 255 seconds)]
mog has joined #nixos
celph has joined #nixos
<celph> I'm having trouble understanding chapter 14 of the Nix manual. Specifically 14.3 https://nixos.org/nix/manual/#sec-arguments
<celph> More specifically: what the elipses are supposed to mean
LexLeoGryfon has joined #nixos
<celph> Do I need to clone pkgs and build inside it?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 opened pull request #27536: WIP linking hack for macOS Sierra (master...appease-sierra-linker) https://git.io/v7Uvz
NixOS_GitHub has left #nixos []
<celph> And set stdenv = import ../stdenv
LexLeoGryfon is now known as justlex
Sonarpulse has quit [(Ping timeout: 258 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] sigma opened pull request #27537: fzf: 0.16.8 -> 0.16.9 (master...pr/fzf-0.16.9) https://git.io/v7Uvh
NixOS_GitHub has left #nixos []
tikhon has joined #nixos
<justlex> NixOS_GitHub y u left m8?7 we luv u, c0m4 b4ck!1
<hyper_ch> so, what's going on with nixos-unstable channel?
<justlex> what?
<hyper_ch> hasn't been updated for 17 days while everything else does get updated
<justlex> oh
<justlex> seems becomes more stable like debian
<justlex> hyper_ch: i see new fresh commits in to master https://github.com/NixOS/nixpkgs/commits/master . shouldn't they be available as nix-unstable?
<hyper_ch> justlex: no
<srhb> hyper_ch: Aren't you being told like every day why it hasn't updated?
<hyper_ch> srhb: no, I keep asking but never really getting any answer
<srhb> hyper_ch: OK, let me link you to an issue at hand then.
<hyper_ch> like 1 week ago it was told it should update.... still another week has passed
<justlex> ah oh, now I discovered that nix-pkgs and nixos-unstable are different repos\channes
<srhb> hyper_ch: There has been ongoing discussions about the reasons the last many days which I thought you had read. :)
<srhb> hyper_ch: But I'll try to find the issue, hang on.
<hyper_ch> srhb: it's ok
<hyper_ch> I probably won't understand it anyway
<fresheyeball> is there an example of using dockerTools to make a working postgres container?
<fresheyeball> pullImage seems to be broken
slack1256 has quit [(Remote host closed the connection)]
<justlex> fresheyeball: but u can still use dockerfile to build it https://hub.docker.com/_/postgres/ , or downgrade pullImage of older works
<fresheyeball> justlex: how can I use the dockerfile?
k2s has joined #nixos
<justlex> fresheyeball: sure, here you go fella http://lmgtfy.com/?s=d&iie=1&q=how+to+build+docker+file
indi_ has quit [()]
<fresheyeball> ok man
<fresheyeball> I know how to build with docker from a docker file
<fresheyeball> but no where in dockerTools docs do I see anything of the sort
<fresheyeball> if I intend to build by container with nix
<fresheyeball> the fromImage must be a docker image inside of the nix expression
<fresheyeball> the only way I see to obtain one is with pullImage
<fresheyeball> and that doesn't work
<fresheyeball> so if there is an alternative approach, to build a dockerfile with nix
<fresheyeball> such that I can extend it
<fresheyeball> its clearly not documented or easilty accessed information
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jonafato opened pull request #27538: nim: 0.16.0 -> 0.17.0 (master...nim-0.17.0) https://git.io/v7UJJ
NixOS_GitHub has left #nixos []
<justlex> oh, sorry me, I didn't understood the complexity of the issue from first question
MercurialAlchemi has joined #nixos
<justlex> you right
Mutter has joined #nixos
<fresheyeball> is there a nix way to do something like
<fresheyeball> buildFromFile "./mydockerfile" "somesha" ?
Mutter has quit [(Client Quit)]
<fresheyeball> I really wish pullImage worked
<fresheyeball> it 404's always
<justlex> I just get away with "$ docker build ." command in directory where Dockerfile is, https://docs.docker.com/engine/reference/commandline/build/ and sometimes add bash\shell-scripting
<justlex> *it builds in ubuntu okay
<fresheyeball> well sure
<fresheyeball> but that's outside the nix expression
<fresheyeball> and all the goodies are trapped inside
<hyper_ch> so, time to update my debian VMs to Stretch...
reinzelmann has quit [(Ping timeout: 255 seconds)]
celph has quit [(Ping timeout: 260 seconds)]
slack1256 has joined #nixos
slack1256 has quit [(Remote host closed the connection)]
reinzelmann has joined #nixos
<srhb> hyper_ch: Sorry, I can't find it. But perhaps you can follow this one: https://github.com/NixOS/nixpkgs/issues/27381
<hyper_ch> srhb: as said, I probably won't understand it anyway
<srhb> hyper_ch: Ah, okay.
<srhb> hyper_ch: Anyway, when this job succeeds, the channel will upgrade: http://hydra.nixos.org/job/nixos/trunk-combined/tested#tabs-constituents
<srhb> hyper_ch: (The leftmost common is the most recent build, which has failures)
<srhb> Er, column
<hyper_ch> plasma is causing issues
<srhb> hyper_ch: There was a recent build that succeeded (56296734
<srhb> But a failure on hydra caused the channel to not advance
<srhb> So we'll have to wait for the next successful build.
jensens has joined #nixos
<hyper_ch> thx
endformationage has joined #nixos
jgertm has quit [(Ping timeout: 240 seconds)]
k2s has quit [(Remote host closed the connection)]
pie_ has joined #nixos
fresheyeball has quit [(Quit: WeeChat 1.7.1)]
reinhardt has joined #nixos
reinzelmann has quit [(Ping timeout: 258 seconds)]
ertes has quit [(Ping timeout: 240 seconds)]
nslqqq has quit [(Ping timeout: 240 seconds)]
nslqqq has joined #nixos
ixxie has joined #nixos
ambro718 has joined #nixos
zraexy has quit [(Ping timeout: 260 seconds)]
zraexy has joined #nixos
newhoggy has quit [(Ping timeout: 246 seconds)]
zeus_ has quit [(Remote host closed the connection)]
gillmanash has joined #nixos
zeus_ has joined #nixos
adamCS has quit [(Ping timeout: 240 seconds)]
boomshroom has quit [(Ping timeout: 260 seconds)]
adamCS has joined #nixos
ertes-w has joined #nixos
gillmanash has quit [(Remote host closed the connection)]
arjen-jo1 has joined #nixos
MP2E has quit [(Quit: leaving)]
nschoe has joined #nixos
Ivanych has joined #nixos
ambro718 has quit [(Ping timeout: 246 seconds)]
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
Ivanych has quit [(Ping timeout: 276 seconds)]
python476 has joined #nixos
globin_ is now known as globin
tikhon has left #nixos ["ERC (IRC client for Emacs 25.2.2)"]
zeus_ has quit [(Remote host closed the connection)]
impredicative has joined #nixos
zeus_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vdemeester opened pull request #27539: Fix docker packaging without sandbox (master...fix-docker) https://git.io/v7UtT
NixOS_GitHub has left #nixos []
mudri has joined #nixos
zeus_ has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/v7Utu
<NixOS_GitHub> nixpkgs/master 1932555 Vincent Demeester: Fix docker packaging without sandbox...
NixOS_GitHub has left #nixos []
joehh has joined #nixos
<Filystyn> helo
<sphalerite[m]> ehlo
bennofs has joined #nixos
<Filystyn> im gona now try your solution from yesterday
<hyper_ch> that would be?
ison111 has quit [(Ping timeout: 255 seconds)]
pie_ has quit [(Remote host closed the connection)]
pie_ has joined #nixos
joehh has quit [(Ping timeout: 240 seconds)]
magnetophon has joined #nixos
endformationage has quit [(Quit: WeeChat 1.7)]
<Filystyn> annnd it did not work but i think i know where is the problem
<Filystyn> steam-run fucks up
fxr has joined #nixos
<Filystyn> i have binary ( no source ) that is runed inside my script.c with system maybe ill just add steam-run there
<Filystyn> just a sec
Ivanych has joined #nixos
<Filystyn> worked
<Filystyn> sphaletrin problem wa si runed not compile don nix binary inside
<Filystyn> my program
civodul has joined #nixos
ibrahims has joined #nixos
jgeerds has joined #nixos
fxr has quit [(Ping timeout: 260 seconds)]
ibrahims has quit [(Ping timeout: 240 seconds)]
Jaanus has joined #nixos
xadi has joined #nixos
magnetophon has quit [(Ping timeout: 260 seconds)]
arjen-jo1 has quit [(Ping timeout: 260 seconds)]
athan has quit [(Ping timeout: 240 seconds)]
athan has joined #nixos
thc202 has joined #nixos
pietranera has joined #nixos
spear2 has joined #nixos
<spear2> was there a problem with networking in 1482 ?
<spear2> no iwconfig, interfaces in display manager doesn't show any devices besides loop
<bennofs> 1482?
<spear2> 17.03.1482
<spear2> ISO
<bennofs> hmm sorry i don't know, last time I used the ISO i used the unstable minimal one
<spear2> i had a slightly older minimal ISO that appeared to work, thought i would use the newer one that finished downloading, however it was the graphical version
<spear2> guess i'll just try the latest minimal installer
<bennofs> spear2: i don't think the minimal vs graphical will affect anything
cinimod has joined #nixos
<spear2> well, it will be faster to download :)
__Sander__ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/v7UOU
<NixOS_GitHub> nixpkgs/master 581637b Tuomas Tynkkynen: yle-dl: 2.17 -> 2.20
NixOS_GitHub has left #nixos []
takle has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lo1tuma opened pull request #27540: nodejs: 8.2.0 -> 8.2.1 (master...nodejs-8.2.1) https://git.io/v7UOZ
NixOS_GitHub has left #nixos []
charlycoste has joined #nixos
<charlycoste> hi everyone
Wizek_ has joined #nixos
ThatDocsLady has joined #nixos
dannyg has joined #nixos
hamishmack has joined #nixos
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
snikkers has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] edolstra pushed 1 new commit to gcc-6: https://git.io/v7UsY
<NixOS_GitHub> nixpkgs/gcc-6 a13802b Eelco Dolstra: Merge remote-tracking branch 'origin/master' into gcc-6
NixOS_GitHub has left #nixos []
IITaudio_ has joined #nixos
<IITaudio_> Hi, the unstable channel has not been updated for some time, right?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/v7UsW
<NixOS_GitHub> nixpkgs/master e879033 Tuomas Tynkkynen: fio: 2.21 -> 2.99
NixOS_GitHub has left #nixos []
ebzzry has joined #nixos
ThatDocsLady has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 closed pull request #27537: fzf: 0.16.8 -> 0.16.9 (master...pr/fzf-0.16.9) https://git.io/v7Uvh
NixOS_GitHub has left #nixos []
abcrawf has joined #nixos
garbas has joined #nixos
arjen-jo1 has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03 advanced to https://github.com/NixOS/nixpkgs/commit/48ecdcf598 (from 11 hours ago, history: https://channels.nix.gsc.io/nixos-17.03)
nix-gsc-io`bot has quit [(Client Quit)]
<niksnut> gchristensen: hm, I don't see the nixos-17.03 channel update mentioned ^ at https://nixos.org/channels/nixos-17.03
Jaanus has quit [(Quit: Page closed)]
<joepie91> IITaudio_: https://howoldis.herokuapp.com/ says 17 days :/
<joepie91> oh wait
<joepie91> that's nixos-unstable
erictapen has joined #nixos
<joepie91> nixpkgs-unstable was 2 days
<IITaudio_> joepie91: yes I'm on nixos
<joepie91> unsure what the difference between the channels is
<joepie91> :p
Filystyn has quit [(Ping timeout: 248 seconds)]
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
mpcsh has joined #nixos
ebzzry has quit [(Ping timeout: 260 seconds)]
<cinimod> I think I am going to abandon my attempt to use nix :(
hamishmack has quit [(Read error: Connection reset by peer)]
hamishmack has joined #nixos
<niksnut> gchristensen: I assume you're looking at the nixpkgs-channel repo update
zraexy has quit [(Ping timeout: 276 seconds)]
<IITaudio_> cinimod: why?
Guest64705 is now known as grahamc
grahamc has quit [(Changing host)]
grahamc has joined #nixos
grahamc has quit [(Changing host)]
grahamc has joined #nixos
<cinimod> Mainly because I get a linker error when I try to build my main via ghc but I can run my main from within ghc
<cinimod> But also I seem to have to ask questions to which the answer is something like
<grahamc> Exactly niksnut. I've been meaning to add code to also check the /channels to watch for a actual updates vs attempted updates
<cinimod> nix-shell -p "haskellPackages.ghcWithPackages (pkgs: [ pkgs.numeric-ode pkgs.chart-unit pkgs.numhask pkgs.numhask-range ])" 'haskellPackages.diagrams-haddock.override { cautious-file = haskell.lib.doJailbreak haskellPackages.cautious-file; }’
<cinimod>
<cinimod> So although I think it will get rid of cabal hell I run into a lot of other issues
Negher has joined #nixos
kyren has quit [(Ping timeout: 260 seconds)]
<cinimod> But I wanted to say thank you to everyone who has helped me
<IITaudio_> cinimod: I'm not an haskell dev so I'm sorry I can't help. But if you are sure you want to stop using it I suggest you to keep an eye on it. For me it introduced new kind of problems, but nonetheless it solved others
<cinimod> I'd rather not but now I am stuck
<cinimod> Also people whose opinions I admire use nix
seppellll has quit [(Ping timeout: 240 seconds)]
arjen-jo1 is now known as arjen-jonathan
ibrahims has joined #nixos
Ivanych1 has joined #nixos
ibrahims has quit [(Client Quit)]
Ivanych has quit [(Ping timeout: 260 seconds)]
<cinimod> And now I am building lens :(
<cinimod> But at least this route will work (fingers crossed)
FRidh has joined #nixos
seppellll has joined #nixos
kyren has joined #nixos
<bennofs> ah, darwin :/ these darwin failures are quite hard to understand if you don't happen to own a Mac :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/v7UWO
<NixOS_GitHub> nixpkgs/master 77ebd34 Mathias Schreck: nodejs: 8.2.0 -> 8.2.1
NixOS_GitHub has left #nixos []
justlex has quit [(Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)]
simukis has joined #nixos
python476 has quit [(Ping timeout: 246 seconds)]
python476 has joined #nixos
stranger__ has joined #nixos
reinhardt has quit [(Quit: Leaving)]
<stranger__> hey folks. I override some package with overrideDerivation. how could I override gcc version that package is built with?
cpennington has joined #nixos
<stranger__> ok figured it, sorry
reinzelmann has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] k0ral opened pull request #27541: network-manager-l2tp: fix configure step (master...l2tp) https://git.io/v7U4I
NixOS_GitHub has left #nixos []
mrcheeks has joined #nixos
<mudri> Is anyone using Wayland on NixOS? How well does it work? I might give it a try this summer.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] edolstra pushed 1 new commit to master: https://git.io/v7U4l
<NixOS_GitHub> nixpkgs/master 8a31137 Eelco Dolstra: nixUnstable: 1.12pre5506_3162ad5f -> 1.12pre5511_c94f3d55
NixOS_GitHub has left #nixos []
reinhardt has joined #nixos
bennofs has quit [(Quit: WeeChat 1.9)]
reinzelmann has quit [(Ping timeout: 240 seconds)]
erictapen has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] edolstra pushed 2 new commits to release-17.03: https://git.io/v7U0Y
<NixOS_GitHub> nixpkgs/release-17.03 f2c6262 zimbatm: nixUnstable: pre5413_b4b1f452 -> pre5506_3162ad5f...
<NixOS_GitHub> nixpkgs/release-17.03 02cecb3 Eelco Dolstra: nixUnstable: 1.12pre5506_3162ad5f -> 1.12pre5511_c94f3d55...
NixOS_GitHub has left #nixos []
cinimod has quit [(Ping timeout: 240 seconds)]
erictapen has joined #nixos
rtjure has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
reinhardt has quit [(Quit: Leaving)]
<stranger__> mudri: I've once tried wayland/sway and it worked. but not yet switched to it from x11/i3 as there is still no login manager https://github.com/NixOS/nixpkgs/issues/5071
<mudri> stranger__: thanks! I might try a similar setup. Are there configuration.nix options and so on?
python476 has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 4 new commits to master: https://git.io/v7UEh
<NixOS_GitHub> nixpkgs/master 5181d75 Tim Steinbach: linux: 4.4.77 -> 4.4.78
<NixOS_GitHub> nixpkgs/master 232f497 Tim Steinbach: linux: 4.9.38 -> 4.9.39
<NixOS_GitHub> nixpkgs/master 98ad0f4 Tim Steinbach: linux: 4.12.2 -> 4.12.3
NixOS_GitHub has left #nixos []
xadi has quit [(Quit: Leaving.)]
xadi has joined #nixos
<stranger__> mudri: I've just disabled the xserver, added sway to packages, and run sway on the console and it worked. Missing login manager :-)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 4 new commits to release-17.03: https://git.io/v7Uum
<NixOS_GitHub> nixpkgs/release-17.03 4950dc5 Tim Steinbach: linux: 4.4.77 -> 4.4.78...
<NixOS_GitHub> nixpkgs/release-17.03 5a44619 Tim Steinbach: linux: 4.9.38 -> 4.9.39...
<NixOS_GitHub> nixpkgs/release-17.03 9e426c5 Tim Steinbach: linux: 4.12.2 -> 4.12.3...
NixOS_GitHub has left #nixos []
<mudri> Aah, right, that makes sense.
<mudri> stranger__: Maybe I should try i3 in X11 first, and use the same config for sway (if that's how it works).
andymandias has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
erictapen has quit [(Remote host closed the connection)]
<stranger__> mudri: perhaps, if they missing default config or wizard. you could also try mutter (gnome) or way-cooler :-)
andymandias has joined #nixos
<mudri> stranger__: I'd want a tiling setup, but I'm also really faffy about having the right config.
Ivanych1 has quit [(Ping timeout: 240 seconds)]
<gchristensen> (niche ask) anyone around familiar with ipxe-booting installers writing efi bootloaders?
erictapen has joined #nixos
spear2 has quit [(Quit: ChatZilla 0.9.93 [Firefox 46.0.1/20160521140538])]
erictapen has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
erictapen has joined #nixos
<LnL> clever knows a lot about that sort of stuff
eacameron has quit [(Ping timeout: 276 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] taku0 opened pull request #27542: oraclejdk: 8u131 -> 8u141 [Critical security fix] (master...oraclejdk-8u141) https://git.io/v7UgX
NixOS_GitHub has left #nixos []
thblt has joined #nixos
eacameron has joined #nixos
<gchristensen> ^ can anyone merge this and `git cherry-pick -x` to 17.03 please cc fpletz / domenkozar / copumpkin / lnl
<LnL> sure
<gchristensen> after all of taku0's PRs I highlight my editor when "taku0 opened pull request" comes through :P
seppellll has quit [(Ping timeout: 258 seconds)]
cpennington has quit [(Remote host closed the connection)]
<gchristensen> s/editor/client/
Ivanych has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/v7U2J
<NixOS_GitHub> nixpkgs/master 3bccedb Peter Hoeg: owl-lisp: init at 0.1.14
NixOS_GitHub has left #nixos []
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
ixxie has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Ping timeout: 248 seconds)]
ixxie has joined #nixos
arjen-jonathan has quit [(Ping timeout: 246 seconds)]
justanotheruser has quit [(Quit: WeeChat 1.7.1)]
seppellll has joined #nixos
justanotheruser has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03-small advanced to https://github.com/NixOS/nixpkgs/commit/02cecb3e8d (from 70 minutes ago, history: https://channels.nix.gsc.io/nixos-17.03-small)
nix-gsc-io`bot has quit [(Client Quit)]
nh2 has joined #nixos
iyzsong has joined #nixos
justanotheruser has quit [(Quit: WeeChat 1.7.1)]
justanotheruser has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 closed pull request #27542: oraclejdk: 8u131 -> 8u141 [Critical security fix] (master...oraclejdk-8u141) https://git.io/v7UgX
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 1 new commit to release-17.03: https://git.io/v7Uaj
<NixOS_GitHub> nixpkgs/release-17.03 2b6aced taku0: oraclejdk: 8u131 -> 8u141...
NixOS_GitHub has left #nixos []
<mpickering> Is there a way to combine together two shell.nix files rather than running nix-shell twice (which messes up my cmdline)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/v7UVy
<NixOS_GitHub> nixpkgs/master 23ad77b Kai Harries: diffoscope: wrap executable and include tools in PATH...
<NixOS_GitHub> nixpkgs/master e66195d Jörg Thalheim: Merge pull request #27534 from KaiHa/master...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to release-17.03: https://git.io/v7UVF
<NixOS_GitHub> nixpkgs/release-17.03 40315ac Kai Harries: diffoscope: wrap executable and include tools in PATH...
NixOS_GitHub has left #nixos []
Filystyn has quit [(Quit: Konversation terminated!)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus opened pull request #27543: openjdk: 8u131-b11 -> 8u141-b15 (master...openjdk_8u141) https://git.io/v7Uwg
NixOS_GitHub has left #nixos []
deltasquared has joined #nixos
arjen-jonathan has joined #nixos
takle has quit [(Remote host closed the connection)]
<gchristensen> on cache.nixos.org, are .narinfo files in the top level?
<gchristensen> ie cache.nixos.org/hash.narinfo and cache.nixos.org/nar/hash.nar ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #27526: {lib}mediainfo{-gui},libzen: 0.7.95 -> 0.7.97; 0.4.34 -> 0.4.35 (master...mediainfo) https://git.io/v7fjp
NixOS_GitHub has left #nixos []
<niksnut> yes
<gchristensen> thank you!
<deltasquared> gchristensen: did you solve the nss module issue for yourself in the end
<gchristensen> deltasquared: I left it as a TODO :) I have limited time to get $work running NixOS on hack day :)
xadi has quit [(Quit: Leaving.)]
<deltasquared> my hack days are weekends. I need to get an rsync thing going for my desktop tower, as the gigabit ethernet adapter in it is currently the only way of getting data to it fast enough (it only has USB2 ports and I'm going to be shifting a lot of data frequently)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #27528: armadillo: Make use of openBLAS's built-in LAPACK (master...fix-armadillo-lapack) https://git.io/v7Jcu
NixOS_GitHub has left #nixos []
cpennington has joined #nixos
IITaudio_ has quit [(Ping timeout: 240 seconds)]
xadi has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 4 new commits to master: https://git.io/v7Uo1
<NixOS_GitHub> nixpkgs/master eea396c Patrick Callahan: pythonPackages.arrow: 0.7.0 -> 0.10.0
<NixOS_GitHub> nixpkgs/master 98fe450 Patrick Callahan: pythonPackages.pympler: disable tests on Darwin since the included...
<NixOS_GitHub> nixpkgs/master ce67c7c Jörg Thalheim: pythonPackages.arrow: move to python-modules
NixOS_GitHub has left #nixos []
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03-small advanced to https://github.com/NixOS/nixpkgs/commit/2b6aced488 (from 44 minutes ago, history: https://channels.nix.gsc.io/nixos-17.03-small)
nix-gsc-io`bot has quit [(Client Quit)]
<NickHu> Is it a reasonable workflow to have the system tracking nixos-unstable and have my local profile (i.e. nix-env operations) track nixpkgs-unstable?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] edolstra pushed 2 new commits to master: https://git.io/v7UoH
<NixOS_GitHub> nixpkgs/master 3e68fac Eelco Dolstra: Revert "diffoscope: wrap executable and include tools in PATH"...
<NixOS_GitHub> nixpkgs/master 91dc811 Eelco Dolstra: diffoscope: Move all required tools into pythonPath...
NixOS_GitHub has left #nixos []
<gchristensen> NickHu: sure
<gchristensen> that should be just fine
nh2 has quit [(Quit: Leaving.)]
IITaudio_ has joined #nixos
nh2 has joined #nixos
<NickHu> gchristensen: I'm guessing that services in /etc/nixos/configuration.nix won't respect use new versions of packages I install with nix-env though..
<gchristensen> it won't
<cwre> So... Suspend to RAM. It's supposed to work, right? There's no open issues that I can find that says there's an error when resuming. When I close my laptop lid it'll suspend but then when I open my laptop again the screen is just blue with a mouse cursor and it's frozen, can't change tty's or anything.
<NickHu> cwre: Yeah that's not normal - what hardware are you on?
<cwre> NickHu: MacBookPro11,5
<cwre> From neofetch
<NickHu> Usually things like this are because of crappy wifi drivers which cause some sort of kernel taint when you suspend
<NickHu> I've heard macs have abysmal linux driver support, but I don't know
<cwre> NickHu: well this is a broadcom wifi device
<cwre> Also, how can I see what graphics driver it's using?
<cwre> My device, that is.
<NickHu> I don't think broadcom is great in that respect
<cwre> I'm trying to use ati_unfree, but it seems like it doesn't work. I'm trying to give it additional options this time like intel and vesa, but I have a radeon discrete in here along with integrated graphics from intel.
<cwre> NickHu: no, it's absolute trash.
<NickHu> oh ati drivers
<NickHu> rip
<NickHu> Check lsmod to see if it's loaded
ng0 has joined #nixos
<NickHu> I thought Macs only had Nvidia cards
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] GlennS opened pull request #27544: linode-api: init at 4.1.1b1 (master...linode-api-python) https://git.io/v7U6P
NixOS_GitHub has left #nixos []
<cwre> NickHu: yeah typically!
<cwre> Thanks Apple
<cwre> NickHu: so you're saying like `lsmod | grep ati` right?
<cwre> Nothing
<NickHu> yeah something like that
<cwre> I'm also enabling bumblebee
<NickHu> I don't know what the kernel module for the ati driver is called
<cwre> Maybe that will fix the issue?
<NickHu> For nvidia it's nvidia
<NickHu> Hard to say, bumblebee and graphics switching is a giant PITA
<cwre> amdgpu
<cwre> Yeah it's loaded
darlan has joined #nixos
darlan has quit [(Client Quit)]
<cwre> But the unfree drivers don't seem to work.
<cwre> And by don't seem I mean it bricks my machine on reboot.
<cwre> The video module seems to be apple_gmux though
<cwre> ...?
takle has joined #nixos
<cwre> Okay, I added the amdgpu module to hardware-configuration.nix
<NickHu> I'm almost certain it's something to do with your graphics drivers
<cwre> WUNDERFUL
<cwre> Bumblebee is nvidia exclusive
<cwre> rebooting with the new module loaded, wish me luck
<mog> does anyone one here run stumpwm?
<mog> i cant get stumptray to work like i did on my last box
<mog> and im not sure what im missing
<cwre> Didn't fail
<cwre> Surprisingly
<cwre> Konsole is still ignoring profiles I create.
<cwre> I think this is a nixos thing but IDK how to fix it.
<NickHu> cwre: just disable the gpu
<cwre> NickHu: that's really not ideal.
<cwre> But I guess I have windows on this for gaming.
hamishmack has quit [(Quit: hamishmack)]
<NickHu> All it's going to do is drain power
<NickHu> Which you probably care about on a laptop
<deltasquared> an AMD hybrid graphics system, that's new. haven't seen one of those before
<NickHu> AMD are somehow even worse than Nvidia when it comes to graphics drivers
<cwre> deltasquared: it's from 2015 :P
<deltasquared> waaaat? the OSS amdgpu drivers have been the best ones so far!
<deltasquared> cwre: so what's the CPU and GPU out of curiosity
IITaudio_ has quit [(Ping timeout: 258 seconds)]
erictapen has quit [(Ping timeout: 258 seconds)]
<cwre> deltasquared: neofetch says an intel i7-4980Q and an m370x I think
<cwre> brb again
<deltasquared> well I'd be. I never thought I'd see a laptop (presumably) with a "blue" CPU and "red" GPU working in harmony
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth opened pull request #27545: tinc service: add CLI tools to the $PATH (master...tinc-cli-wrappers) https://git.io/v7UPh
NixOS_GitHub has left #nixos []
<deltasquared> ... well, ideally in harmony, but I get the feel from the backlog maybe less so
<cwre> back
jgeerds has quit [(Quit: Leaving)]
<deltasquared> hmm, a functional method of building iso images from little files that specify the headers and tree structures
<deltasquared> just me having random ideas again
<deltasquared> "explodeiso" and "unexplodeiso"
arjen-jonathan has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
<cwre> Yeah, the drivers were the issue. Thanks NickHu
<cwre> So now... to figure out why Konsole keeps ignoring my profiles.
aw has quit [(Quit: Quitting.)]
spacefrogg has quit [(Quit: Gone.)]
<deltasquared> cwre: define ignoring your profiles... are we talking shell rc files here?
<deltasquared> nix terms get confusing >_>
<cwre> deltasquared: no I mean profiles inside of Konsole specifically.
<cwre> I have a color profile that it doesn't deem fit enough to use.
aw has joined #nixos
<cwre> And this black background is grating on the eyes.
<deltasquared> it wouldn't be solarised by any chance? :P
<cwre> Tomorrow Night
<cwre> But no color profiles are being set.
<deltasquared> erm. haven't heard that one. doesn't really matter
spacefrogg has joined #nixos
<deltasquared> well I've never tried konsole because anything KDE drags the entire kitchen sink in frameworks
<deltasquared> ... unless that's just arch's setup, no idea
<cwre> deltasquared: yeah. I'm using KDE because HIDPI support sucks.
hamishmack has joined #nixos
<cwre> It's apart of that project.
<cwre> And my brightness buttons aren't working...
<cwre> I have service.illum.enable = true; set
<bachp> Die anybody else experience that SDDM doesn't start anymore on master?
<srhb> bachp: Its test fails on hydra as well, so yes.
<srhb> (I assume)
<cwre> good morning srhb
<srhb> cwre: Good afternoon :)
<deltasquared> does that illium thing always work globally? I would hope so. any such solution would likely be a whole lot nicer than my current hacked-up setup of shell scripts
<bachp> srhb: That would explain it 😁
<srhb> bachp: Which means the current build will also fail. Sad.
<cwre> deltasquared: I have no Idea.
<cwre> But I would assume it does.
<srhb> (oh well, hooray for hydra :))
<cwre> srhb: any chance you know how to fix my problems? :) Konsole profiles and brightness buttons
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03-small advanced to https://github.com/NixOS/nixpkgs/commit/40315ac217 (from 78 minutes ago, history: https://channels.nix.gsc.io/nixos-17.03-small)
nix-gsc-io`bot has quit [(Client Quit)]
<srhb> cwre: I know absolutely nothing about desktop environments, I use a standalone xmonad.
<srhb> cwre: Sorry!
<cwre> :(
<cwre> Understandable.
<deltasquared> cwre: I just used a triggerhappy (global hotkey daemon which calls scripts on keys) setup writing to a pipe of a shell script daemon which changed backlight via the /sys controls. !shrug
<deltasquared> I'm too used to hacks like that I guess
<srhb> I bind my brightness keys to commands as well
<cwre> Konsole has to be doing something stupid because it's being symlinked to oblivions
<srhb> light -U -p "10%"
stranger__ has quit [(Quit: Connection closed for inactivity)]
<deltasquared> for some reason occasionally the hotkey daemon fucks up on VT switches, but usually un-fucks itself in due course.
<deltasquared> must be logind doing it's pause thing or something...
<adisblad`> bachp: That's a known issue
adisblad` is now known as adisbladis
<cwre> srhb: I have light installed but it's not letting me change my brightness
<srhb> cwre: Doesn't KDE allow you to bind the brightness keys somehow?
<cwre> `light` returns 0.00
<cwre> srhb: I can't find anywhere
<adisbladis> bachp: You can cherry-pick this commit to make things work again https://github.com/NixOS/nixpkgs/pull/27427
<srhb> Oh, you can't even use light on its own?
<deltasquared> ohhhh, so this base16 thing is like a set of conventions for term colours, now I get it
<srhb> Guess that's a driver thing then
<deltasquared> even has a solarised variation.
<cwre> deltasquared: yeah
<deltasquared> *solarized. zzzzzzzZZZZZ argh every time
xadi has quit [(Quit: Leaving.)]
<cwre> lol
<cwre> srhb: do you know what the drive would be?
seppellll has quit [(Ping timeout: 240 seconds)]
<cwre> I only see one driver regarding brightness
<cwre> And it's that illum thing
adisbladis has quit [(Changing host)]
adisbladis has joined #nixos
<bachp> adisblad`: Thanks that is what I was looking for
strobelight has joined #nixos
<srhb> cwre: cwre Do you have anything in /sys/class/backlight ?
fikse has joined #nixos
sjouke has joined #nixos
IITaudio_ has joined #nixos
<adisbladis> bachp: You are gonna be rebuilding a lot of stuff..
<deltasquared> hmm. see SciTE allows mapping to symbolic constants, so I could associate the per-lang highlighters to use those constants then use an include in the top level to swap the base16 theme
<cwre> Illum is broke.
<srhb> cwre: Wait, this is on a laptop, right?
<cwre> srhb: yeah
<srhb> Ah, good.
<cwre> gmux_backlight and radeon_bl0 are in that dir
<srhb> cwre: What kind of values do they spit out if you cat them?
<bachp> adisbladis: my machine can handle it
<cwre> srhb: those are actually symlinked dirs
<adisbladis> bachp: Just wanted to give you a heads up :)
<srhb> cwre: Right, so something like cat /sys/class/backlight/*/brightness
<cwre> srhb: there's a recusive symlink here
<cwre> That's why it fails
<srhb> Sounds fun!
<cwre> Device is symlinked in gmux_backlight which is symlinked in backlight inside of device.
<cwre> So...?
<cwre> That's why illum fails.
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
<cwre> It detected the leak and stopped.
<cwre> But what the fuck
<cwre> DUDE THERE'S MORE IN HERE
<cwre> HOW DOES THIS HAPPEN
<srhb> I don't know if that's the driver going bonkers or something else.
jensens has quit [(Ping timeout: 255 seconds)]
<cwre> srhb: I mean it has to be the symlinking that's broken so I think this might be a nix issue.
<cwre> Like, why is it symlinking like that?
<srhb> cwre: Why do you think that's Nix?
<srhb> cwre: Not saying you're wrong, it might be some udev shenanigans.
<cwre> I mean, didn't nix set up that upon install?
<cwre> I'm wondering what happens when I delete the symlink
<cwre> Probably bad things.
<srhb> I would have assumed that the kernel set that up as part of sysfs
roberth has quit [(Ping timeout: 260 seconds)]
<cwre> What kind of dir is /sys/class/backlight/gmux_backlight/device/driver/00:03
<cwre> ???
<cwre> And that's a symlink loop, too.
<deltasquared> cwre: try stat'ing some of the paths. also symlink loops are expected
<cwre> What do you mean by stating
<deltasquared> run "stat" on some of the parent directories of that path you specified
xadi has joined #nixos
<deltasquared> some of them often lead to other subsystems inside /sys
<deltasquared> symlinks in general in /sys are weird
Rotaerk has quit [(Quit: Leaving)]
<deltasquared> they can break associativity on .. and such
<deltasquared> for example, my /sys/class/backlight/intel_backlight is a symlink to "../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-LVDS-1/intel_backlight", which works out to be a path under /sys/devices... etc.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #27543: openjdk: 8u131-b11 -> 8u141-b15 (master...openjdk_8u141) https://git.io/v7Uwg
NixOS_GitHub has left #nixos []
<deltasquared> cwre: looks like an ACPI backlight device
FRidh has quit [(Quit: Konversation terminated!)]
<cwre> so wut do
<deltasquared> I don't know, what's the issue?
<srhb> cwre: Try a different driver, or a different kernel.
<srhb> Or kernel options
<srhb> All sorts of things!
<cwre> But IDK how
<deltasquared> if backlight doesn't want to work, try directly manipulating the "brightness" file in there
xadi has quit [(Remote host closed the connection)]
<deltasquared> if that doesn't work the kernel be fucked up somewhere
<deltasquared> also pay attention to the value of max_brightness to see the range.
<cwre> The max brightness is -1
<cwre> xD
iyzsong has quit [(Ping timeout: 255 seconds)]
<deltasquared> ... ok, what does reading brightness say?
<cwre> Oh linux, what a fickle maiden you are.
<cwre> 1
<deltasquared> set it to 2? ┐(ツ)┌
<deltasquared> what could possibly go wrong
<cwre> I set it to 3
<cwre> Nuclear fallout
<deltasquared> ... and?
<deltasquared> erm
<cwre> Nothing
<deltasquared> huhhh... well that be annoying.
<NickHu> cwre you might need to set the acpi_backlight kernel parameter to something else
<dshin> How do you set make flags? I wanted to add -j8 for faster build
<NickHu> I had this kind of problem with my Thinkpad X1 Carbon
anelson- has quit [(Quit: Using Circe, the loveliest of all IRC clients)]
<srhb> dshin: Look at nix options, nix.buildCores for instance
<cwre> NickHu: where do I put those in Nix?
<cwre> hardware config?
<cwre> gtg for now
<cwre> be back in a half hour
<deltasquared> cwre: see if it's a hybrid system I would have been tempted to see if intel_backlight would do anything (assuming the outputs go via the intel chip so the AMD chip can be turned off)
<deltasquared> also dmesg | grep backlight couldn't hurt
thblt has quit [(Ping timeout: 248 seconds)]
seppellll has joined #nixos
MercurialAlchemi has quit [(Remote host closed the connection)]
<srhb> cwre: boot.kernelParams is where you put those arguments
IITaudio_ has quit [(Remote host closed the connection)]
<charlycoste> is there a recommended way to configure encrypted luks partitions so it can work well with plymouth ?
nckx has joined #nixos
<charlycoste> I didn't find any tutorial about it
<dshin> Is there a way to install multiple package versions without conflict?
<srhb> dshin: Install in what sense?
<deltasquared> dshin: that's kinda a feature already in one sense
<srhb> dshin: They trivially coexist in the store.
gpyh has joined #nixos
<gpyh> hi
<deltasquared> welcome to #nixos, tell us how you fu- oh wait, that's not the line here
<gpyh> I have a weird problem that I don't know how to debug. I installed a Wordpress server on a nixos-container. If I make an HTTP request from the container it's instantaneous. But if I make it from the host it takes more than 10sec. I tried with a simple netcat server and there's not problem. It's *very* weird.
<gpyh> no*
<gpyh> I've never had any problem with node servers either. If it's related to apache I wonder what's happening
<deltasquared> gpyh: that sounds like the name lookup is timing out.
<deltasquared> is this going to be *another* nss module issue... DX
<gpyh> I hit the container with its IP address. Does that warrant a name lookup?
<deltasquared> ... huh, no it shouldn't
<gpyh> I'm so confused by this issue. I wished I knew how to "trace" an HTTP request to see what's going on
erasmas has joined #nixos
<srhb> it only it didn't work entirely I'd suggest firewall.checkReversePath = false;
<srhb> But ten seconds timeout is.. weird.
<gpyh> I disabled the firewall
<srhb> Is apache trying to lookup the client perhaps?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to release-17.03: https://git.io/v7UHB
<NixOS_GitHub> nixpkgs/release-17.03 d49a115 Tim Steinbach: openjdk: 8u131-b11 -> 8u141-b15...
NixOS_GitHub has left #nixos []
<srhb> (I would be surprised if that's the default, but...)
mpcsh has left #nixos ["THE NUMERICONS! THEY'RE ATTACKING!"]
<gpyh> srhb: I just tailed apache's access-log
<gpyh> it receives the request at the end of the 10sec
<gpyh> so it's probably not Apache
<srhb> Doesn't it log when the request ends?
jsgrant has quit [(Read error: Connection reset by peer)]
<gpyh> I'll find out
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth opened pull request #27546: environment.etc: allow usernames in environment.etc.*.{uid,gid} (master...etc-name-owners) https://git.io/v7UQl
NixOS_GitHub has left #nixos []
<srhb> gpyh: I don't know, it just really sounds like one of those issues that might occur from reverse lookups, wp might also be doing gethostbyaddr or some weird stuff, you could test lookups from the container.
<srhb> If that's not it, I've no idea.
<gpyh> it writes it at the end and prints out the time at which the request was received
<gpyh> there's indeed a 10s delay
<srhb> Ah, good.
<gpyh> thank very much srhb
ison111 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] copumpkin closed pull request #27508: exhibitor: init at 3.4.9 (master...exhibitor) https://git.io/v7eB5
NixOS_GitHub has left #nixos []
hyper_ch has quit [(Quit: ZNC - http://znc.sourceforge.net)]
FRidh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to master: https://git.io/v7U7D
<NixOS_GitHub> nixpkgs/master 1697684 Franz Pletz: docker module: fix autoPrune.enable description...
NixOS_GitHub has left #nixos []
<cwre> srhb: so you mean like boot.kernelParams = [ "acpi_osi=linux" "acpi_backlight=vendor" ]; ?
<srhb> cwre: I have no idea about the values of those options, I just know how to set them. :)
<cwre> srhb: so that's how I'd set them?
<srhb> cwre: Yes.
<cwre> Alright! let see if these options work
<srhb> Oh poo, it has no examples
sjouke has quit [(Quit: Lost terminal)]
hyper_ch has joined #nixos
ng0 has quit [(Ping timeout: 248 seconds)]
<cwre> Hmm, nope.
<cwre> :(
<srhb> ugh, I'm sick of connman.
<srhb> Whether or not it manages a reconnect seems arbitrary.
<deltasquared> connman? is that the new wifi thing?
dannyg has quit [(Quit: dannyg)]
<srhb> I don't know if it's new, I think it's an intel thing, but yes.
<deltasquared> oh wait, iwd is what "plugs in" to connman to provide wifi things.
Fare has joined #nixos
<deltasquared> supposedly a bit better at remembering state between invocations.
<deltasquared> also being able to use AF_ALG more easily!
<srhb> AF_ALG?
<deltasquared> (meaning hardware crypto accel if that's your thing)
<srhb> Ah.
<deltasquared> srhb: it's a netlink socket family. you can tell the kernel "decrypt this" and it'll talk to crypto coprocessors etc. which userspace can't
<deltasquared> not sure why it ain't a chardev
ng0 has joined #nixos
<gpyh> srhb: got it. It's indeed a reverse lookup that times out. I need network access from the container. Problem now is that I don't know how to do that...
<gpyh> deltasquared: thank you aswell, you were right ;)
<srhb> gpyh: The NixOS manual has a chapter on containers that I think addresses this
<deltasquared> gpyh: oh wait, so the server did a reverse lookup to test the origin address... possibly it is an nss issue then
<deltasquared> what it's trying to touch though, I have no idea
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
rtjure has joined #nixos
pi3r has joined #nixos
<pi3r> Does someone know how to add the git master version of the protolude into haskell.packages.ghc821 using overlays ?
hyper_ch has quit [(Ping timeout: 258 seconds)]
<gpyh> srhb: I followed the instructions. ping 8.8.8.8 can't send any packet :(
<pi3r> I can manage such a override for the default ghc compiler (haskellPackages) but I don't see how to do it for `ghc812`)
hellrazor has joined #nixos
ryanartecona has joined #nixos
<srhb> gpyh: Perhaps you can make a paste of what you did step-by-step and someone can assist.
<gpyh> sure!
<srhb> pi3r: haskell.packages.ghc812.override ?
hyper_ch has joined #nixos
tmaekawa has joined #nixos
Ivanych has quit [(Ping timeout: 260 seconds)]
nslqqq has quit [(Ping timeout: 248 seconds)]
<srhb> gpyh: For the record, I just created a declarative container and it immediately had network access. I do have checkReversePath = false though
* srhb wants a declarative, composable firewall
<gpyh> I'm using imperative containers
Sonarpulse has joined #nixos
<gpyh> I'll switch to a declarative then for the time being, thanks
<srhb> gpyh: The nat config should go on the host
<pi3r> srhb: in overlays/default.nix I can do `ghc821= super.haskell.packages.ghc821.override` but it does not magically override `haskell.packages.ghc821` if you see what I means.
<gpyh> I have feelings of joy mixed with feelings of shame right now :P Thanks a lot for your patience and your help
<srhb> gpyh: Don't, I'm not even sure that's sufficient :-)
<srhb> pi3r: I don't think I got enough context there. That's not even a valid override.
proteusguy has quit [(Ping timeout: 246 seconds)]
freusque has quit [(Quit: WeeChat 1.9)]
gpyh has quit [(Quit: WeeChat 1.9)]
ottidmes has joined #nixos
<dshin> Is there a faster way to query packages? I'm doing nix-env -qaP | grep -i mypkgname, and it usually takes around 5 seconds to get the result
<srhb> dshin: You can use nox, which i believe uses a cache
<dash> dshin: i keep the output in a file and grep it later
gpyh has joined #nixos
<dash> but most of the time i grep all-packages.nix
<dshin> i see. thanks
<gpyh> srhb: I did work! Apache now answers instantly
<srhb> gpyh: Networking is voodoo. Glad you got it to work :)
<gpyh> thanks again ;)
<srhb> Welcome.
<ToxicFrog> dshin: I use the package search website, but it doesn't include nonfree (yet)
<dtzWill> dshin: https://nixos.org/nixos/packages.html or bouncing through a nixpkgs clone sometimes
<pi3r> srhb: to give you a bit more context, this is what I am trying but it does not work: https://paste.ee/p/rWHsu
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix opened pull request #27547: nano: 2.8.5 -> 2.8.6 (master...update_nano) https://git.io/v7Up8
NixOS_GitHub has left #nixos []
tvon has joined #nixos
<dtzWill> dshin: depending on what you're doing, 'man configuration.nix' is often helpful for "what can I easily do with a NixOS system" particularly re:services/options/etc
tvon has quit [(Client Quit)]
<cwre> Anyone have MacBook brightness working?
Ivanych has joined #nixos
<cwre> Still struggling, could use some pointers
<ottidmes> dshin: I generally tend to just Google for it with: nixpkgs pkg-name, which then gives me the service (if there is any) and the package, one benefit is that you have to be less exact, but the downside is that it might miss something, I have not run into this problem, with Github, yes, plenty of time it missed something, with Google search, not that I can remember
<dshin> the package search website is awesome. thanks dtzWill, ToxicFrog
<ToxicFrog> dshin: there's also an options search webpage, which is similarly great
pi3r has quit [(Ping timeout: 260 seconds)]
jgertm has joined #nixos
nslqqq has joined #nixos
<ottidmes> I love the options search page: https://nixos.org/nixos/options.html Probably the page on nixos.org I use the most
snikkers has quit [(Remote host closed the connection)]
proteusguy has joined #nixos
<ottidmes> cwre: Seems to need a kernel patch: https://bugzilla.kernel.org/show_bug.cgi?id=105051#c32
seppellll has quit [(Ping timeout: 255 seconds)]
erictapen has joined #nixos
<ottidmes> cwre: There also seem to be a lot of other fixes available here: https://aur.archlinux.org/packages/linux-macbook/
<cwre> So... how do I apply that patch D:
<ottidmes> cwre: And if you have a 2013 edition, this might be enough: https://askubuntu.com/questions/370857/cant-adjust-screen-brightness-on-macbook-pro-10-1-ubuntu-13-10
<cwre> 2015
ison111 has quit [(Ping timeout: 240 seconds)]
<cwre> ottidmes: do you know how I could apply this? I've never applied a kernel patch before.
<ottidmes> cwre: That makes two of us :P Never had the need so far, should probably not be too difficult in NixOS
<cwre> srhb: any chance you have time to help me learn to kernel patch? D:
<srhb> cwre: Look at how an example kernelpatch looks, duplicate that with your changes, add to boot.kernelPatches
<srhb> *cough* that's the high-level description ;-)
<cwre> Where do I put the patch to reference it?
<srhb> cwre: Either you import it under some name in configuration.nix or you add it to your nixpkgs checkout with corresponding fixes to all-packages.nix
<srhb> I would suggest the former
<pbogdan> cwre: on NixOS you can do boot.kernelPatches = [ { patch = /path/to/some.patch; name = "some name"; } ];
seppellll has joined #nixos
<pbogdan> so just save it anywhere locally and adjust the path as needed (assuming the patch applies cleanly on the kernel you're using)
lsix has quit [(Quit: Konversation terminated!)]
<srhb> cwre: You can see other examples in os-specific/linux/kernel/patches.nix
<srhb> cwre: (They're basically just that.)
ng0 has quit [(Quit: Alexa, when is the end of world?)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus closed pull request #27547: nano: 2.8.5 -> 2.8.6 (master...update_nano) https://git.io/v7Up8
NixOS_GitHub has left #nixos []
<srhb> cwre: Some of them fetch their own sources, which might interest you.
<srhb> pi3r: You'll want to do something like haskell = super.haskell // { packages = super.haskell.packages // { ghc821 = super.haskell.packages.ghc821.override { ...
filystynhue has joined #nixos
<srhb> pi3r ie. haskell equals super.haskell except packages, which equals super packages except ghc821, which is the overriden version of super 821
Filystyn has quit [(Ping timeout: 260 seconds)]
digitus has joined #nixos
jgertm has quit [(Ping timeout: 248 seconds)]
<cwre> srhb: oh interesting so I can add a fetchpatch instead of updating it every time?
<cwre> But won't I need to update the sha256?
<srhb> cwre: Yes you will
<srhb> cwre: Otherwise it wouldn't be pure.
<cwre> Eh I'd rather get the file manually each time.
__Sander__ has quit [(Quit: Konversation terminated!)]
<cwre> Chances are this patch won't change much anyway.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v7TJY
<NixOS_GitHub> nixpkgs/master 596e279 k0ral: network-manager-l2tp: fix configure step (#27541)...
NixOS_GitHub has left #nixos []
<srhb> cwre: If it doesn't change, neither does the hash.
<cwre> Where would I get the hash, anyway?
chpatrick has quit [(Quit: Connection closed for inactivity)]
<srhb> cwre: Put in a wrong one and rebuild, depending on it. The error will tell you the right hash.
<cwre> Mm, okay.
<srhb> Or you can use nix-prefetch-url
<ottidmes> I saw an issue on the nixpkgs github about whether you could switch network settings without using nixos-rebuild switch everytime. This made me wonder, is there already a general solution towards these kind of use cases? There has been nix profiles for ages, but let's call them NixOS profiles, do they already exist?
<srhb> ottidmes: No, I think people generally write up some systemd services for those things.
<srhb> Of course, that sidesteps the issue instead of fixing it.
<ottidmes> Or would that basically come down automating the switching of the NixOS configuration and calling nixos-rebuild switch?
<cwre> srhb: Is this really what a patch looks like? https://aur.archlinux.org/cgit/aur.git/plain/apple-gmux.patch?h=linux-macbook
<cwre> I just want to make sure I'm grabbing the right file.
<srhb> cwre: Yes. Line numbers of where changes start, removals and additions
<cwre> Ahh so it's a git patch
<cwre> I learn more every day.
<srhb> cwre: Young whippersnappers, that's a patch. ;-)
<cwre> D:
<ottidmes> cwre: I would say a git patch, is just a patch :P
<srhb> cwre: I'm kidding of course. :)
<cwre> Dude I'm 22
<cwre> I only used a diskette once
<srhb> haha!
endformationage has joined #nixos
<srhb> That's just cruel.
<cwre> We had flat monitors in my elementary school
<ottidmes> what!
* srhb remembers Civilization some version or the other failing to install because diskette 22 was corrupted...
justanotheruser has quit [(Ping timeout: 255 seconds)]
FRidh has quit [(Quit: Konversation terminated!)]
<cwre> My first school project was a powerpoint on the black rhino, saved on the very same diskette.
rtjure has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
mudri has quit [(Ping timeout: 258 seconds)]
erictapen has quit [(Ping timeout: 260 seconds)]
ixxie_ has joined #nixos
erictapen has joined #nixos
<ottidmes> In technology age does not really mean a lot, only that you are likely to have more knowledge to fallback on, but other that, things are moving so fast that most things are not that old, so someone just starting good be just as much as an expert on something as someone who has a lot more working experience in general (absolute in years)
ixxie has quit [(Ping timeout: 248 seconds)]
<dash> ottidmes: for particular subject matter yes
ixxie_ has quit [(Client Quit)]
<dash> ottidmes: but it takes time to absorb programming wisdom
ixxie has joined #nixos
rigelk has quit [(Ping timeout: 240 seconds)]
<dash> there's plenty of old fools in programming, but more young ones
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03-small advanced to https://github.com/NixOS/nixpkgs/commit/d49a1157cd (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.03-small)
nix-gsc-io`bot has quit [(Client Quit)]
tvon has joined #nixos
<cwre> srhb: so... Could I theoretically make a package for this patch? Or is there a better way to make this easily available for other users?
<cwre> Hasn't finished patching yet... But once I confirm it works I'd like to allow others who need it to use it.
<srhb> cwre: It basically is a package by the time you've done that. You'll just have to include it in the file I referenced earlier and submit a pull request on that. :)
<cwre> :OOOOOO
<srhb> cwre: inorite.
zeus_ has joined #nixos
<cwre> If this works, this'll be my very first contribution to a large project
<srhb> cwre: Excellent!
<srhb> cwre: nixpkgs is a gateway drug to oss contribution.
zeus_ has quit [(Remote host closed the connection)]
<cwre> Because it's so easy.
<srhb> Yep :)
zeus_ has joined #nixos
<srhb> You should base your branch on master or nixos-unstable by the way
<srhb> Before submitting the PR I mean
<cwre> I'm running unstable
<cwre> So I'd do that.
<srhb> Ah, easy :)
alx741_ has joined #nixos
<srhb> cwre: This is why I point my nixos at my local checkout by the way
<srhb> cwre: Testing is trivial when your system is based off the repo. :-)
charlycoste has quit [(Quit: Leaving.)]
<cwre> I don't really understand how all that works.
pietranera has quit [(Quit: Leaving.)]
alx741 has quit [(Ping timeout: 240 seconds)]
<srhb> cwre: nix.nixPath = [ "nixpkgs=/home/sarah/src/nixpkgs" ];
<srhb> cwre: Instead of using channels.
jsgrant has joined #nixos
<srhb> cwre: I just have channels/nixos-unstable checked out there by default.
<srhb> cwre: Switching around as needed, and rebuilding.
<cwre> Mmm, okay.
<srhb> (Where channels is a remote for nixpkgs-channels, upstream is nixpkgs, and origin is my nixpkgs fork)
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
<dshin> Is there a way to change the "result/include" directory for a specific package in a build env? I want to use the header files from both protobuf3_2 and protobuf3_1, but there's a conflict in the symlink paths
<cwre> How long do patches take? D:
<srhb> cwre: Patches not long, rebuilding the kernel might take 10 minutes or something
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] roberth opened pull request #27548: lvm2: 2.02.140 -> 2.02.173 (master...lvm-update) https://git.io/v7TTp
NixOS_GitHub has left #nixos []
gpyh has quit [(Quit: WeeChat 1.9)]
<srhb> cwre: I built all of ceph last weekend. Over two hours. Not fun. :-)
<srhb> (And I'll have to do it a few more times this weekend. Sigh!)
<cwre> Ewww
<cwre> So is Nix it's own language?
endformationage has quit [(Read error: Connection reset by peer)]
<cwre> Where can I learn it?
<srhb> The Nix Expression Language, yes.
<srhb> cwre: It's deceptively simple. There's an online tutorial that's basically 10 minutes, interactive, and covers (I think) all of it
<srhb> The rest is just idioms and combinations
<srhb> If only I could find it...
<dash> cwre: it's like 'make' but actually good
ryanartecona has quit [(Quit: ryanartecona)]
nix-gsc-io`bot has joined #nixos
impredicative has quit [(Ping timeout: 258 seconds)]
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/0d9a0efc88 (from 3 days ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
rigelk has joined #nixos
filystynhue has quit [(Quit: Konversation terminated!)]
[0x4A6F] has joined #nixos
ng0 has joined #nixos
<cwre> srhb: so why do I have to recompile the kernel if it's just a patch?
<cwre> Oh wait. I misunderstood.
<srhb> cwre: Because the patch changes the source code of the kernel.
<cwre> The patches themselves don't take long, but then I need to rebuild it.
<srhb> Right. The patch is just substituting things in a source file.
<srhb> cwre: Still building?
<cwre> Yeah :/
<srhb> cwre: Is it only using one core?
<cwre> Can't tell
<srhb> cwre: top, 1
<srhb> Should give you an indication
<cwre> Still not sure.
<srhb> mkay. :)
<cwre> it isn't pegging cpu0
<cwre> So I'd assume not.
<srhb> If it were using them all, they should all be at 100% more or less
<cwre> It's not doing either of them
<cwre> :/
pi3r has joined #nixos
<cwre> Either of those possibilities.
<pi3r> srhb: thanks ! I would not have found this myself
<srhb> Setting nix.buildCores equal to your number of cores will be nice
<srhb> pi3r: It's in the nixpkgs manual for another time :)
<cwre> srhb: cores or threads?
ryanartecona has joined #nixos
<cwre> I have 8 threads
<cwre> srhb: should I just cancel the build then and change that real quick?
<srhb> cwre: I tend to use hyperthreaded core number, because it's not an exact science, and sometimes I get starvation if I go much lower.
<cwre> Also, I'm putting that in configuration.nix right?
<srhb> cwre: Up to you. And yes.
<cwre> srhb: so 8 in my case
mudri has joined #nixos
<srhb> cwre: Adjust as needed. :) You might want to leave a core free for other stuff anyway. It's a matter of taste.
<cwre> srhb: quotes or no?
takle has quit [(Remote host closed the connection)]
<cwre> nix.buildCores = "7";?
<srhb> cwre: No.
<cwre> thanks
<srhb> Is there a --no-cache equivalent option for nix-build?
jgertm has joined #nixos
<srhb> (I wanted to see how fast linux builds here, but they're all cached ._.)
<deltasquared> well you could always change something that won't effect behaviour, like a config option or something
<deltasquared> anyways, DINNER TIME
deltasquared has quit [(Quit: Leaving)]
rigelk has quit [(Ping timeout: 246 seconds)]
<srhb> deltasquared: Yeah, I know.
Fare has quit [(Ping timeout: 258 seconds)]
<srhb> aha
<srhb> --option use-binary-caches false
<srhb> Though I suppose that would grab the deps from source as well...
<srhb> I suppose I can circumvent that by first opening a nix-shell
<srhb> That should work
<srhb> ... I can just run the builder from there. Derp.
* srhb is slow today
<cwre> Don't worry I'm slow every day.
<srhb> Nonsense. :-)
<cwre> Holy shit this is trippy.
<srhb> cwre: Hmm?
<cwre> Functions can just be defined with func = a: b: c:?
<cwre> Those are args?
<srhb> cwre: Yup.
<cwre> How does it know when I'm done defining args?
<srhb> cwre: Think of it like this
<cwre> I can see that it knows a+b+c isn't an arg, but how?
<srhb> func = a: (b: (a: ...
<srhb> cwre: So func is a function of ONE argument
<srhb> namely a
<srhb> Which returns a function that takes an argument b
<srhb> which returns a function that takes an argument c
<srhb> cwre: So in that interpretation, function take on argument always :)
<srhb> one*
<cwre> This is vaguely familiar, but IDK how.
<cwre> I'
<srhb> Ever heard of currying?
<srhb> I don't know what your programming background is
<cwre> I'm trying to think of where I've seen this before.
<cwre> It's mostly Java(sadly)
<Dezgeg> probably haskell
<cwre> No it's not haskell.
<srhb> I'm afraid I don't know enough Java to know if there's an equivalent to currying there...
<cwre> I've no experience with haskell.
<srhb> But anyway, it could just be reduced to a parsing problem
<srhb> (Though it's not)
<catern> it's like bash
<cwre> Anychance any of you have experience with verilog?
<catern> kind of :)
ertes-w has quit [(Ping timeout: 246 seconds)]
<cwre> Or maybe it's Matlab.
<srhb> cwre: very vaguely to both
<cwre> Eh, not worth it.
<cwre> I'll continue on, even though I'm having trouble wrapping my head around this.
<srhb> cwre: Anyway if you just think of all functions as taking one argument, that should help.
jgertm has quit [(Ping timeout: 255 seconds)]
<srhb> The rest are just anonymous / lambda functions
<cwre> Still not helping, haha...
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/4af15b5b4a (from 2 days ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
<srhb> cwre: Well, I'm not sure you're actually stuck :-)
<cwre> I'm not stuck, but I'm trying to understand how it works.
<srhb> Consider: foo = a: bar a
<srhb> bar = b: baz b
<srhb> baz: c: ...
<cwre> So a function calls a function a which calls a function b which calls a function c which adds all args'
<srhb> Now let's go backwards and "inline" the function definitions
darlan has joined #nixos
<srhb> ie. substitute in the defintions of first bar in foo
<srhb> so foo becomes
<cwre> Let me!
<srhb> OK!
<cwre> foo = a: b: c: ...?
<srhb> cwre: Exactly
<cwre> Yeah, so I guess it was too simple for me to understand xD
<cwre> Expected it to be more confusing.
<srhb> Simple ideas are often the most complicated to understand :-P
<mbrock> `(a: b: c: a + b + c) 1 2 3' evaluates to `1 + 2 + 3' by three function applications: first bind a=1 getting `(b: c: 1 + b + c) 2 3', then bind b=2 getting `(c: 1 + 2 + c)', then bind c=3 getting `1 + 2 + 3'
<catern> mbrock: it's vaugely important to note that that's not quite right
ng0 has quit [(Quit: Alexa, when is the end of world?)]
<mbrock> yeah? I thought I was so careful...
<cwre> yeah, this must remind me of verilog.
<catern> the first evaluation gives you `(b: c: a + b + c) 2 3', with a bound to 1
darlan has quit [(Quit: Communi 3.5.0 - http://communi.github.com)]
<catern> it's only when you get down to (a+b+c) with bindings a=1, b=2, c=3
<catern> that the lookups actually happen
<srhb> catern: Because a isn't scrutinized yet?
<catern> that's kind of just an implementation thing though
<cwre> Mm, okay so you can't use an attribute set without also calling it as an attribute set.
<cwre> I mean an attrset function like {a,b}: blah
<srhb> cwre: Not sure what that means.
<srhb> cwre: Ah
<mbrock> you would do `min { a = 5; b = 3; }'
<mbrock> in that case, min is just taking one argument, and that argument is an attribute set
<mbrock> though colloquially you might say that it takes the arguments "a" and "b"
<mbrock> it's a nice design in Nix that packages are mostly defined as such functions -- that they're parameterized with their dependencies, leaving the exact choice of dependency unspecified until use
<mbrock> (so called "dependency injection" in the OO world)
ixxie has quit [(Quit: leaving)]
<ottidmes> Ghehe, I had to loop up "colloquially", English not being my native language. And when I read that is basically means informally, I always think in such instances, why then not just use the word informally, but there probably is some nuance to it.
<joepie91> (step-by-step walkthrough of the language)
<jeaye> ottidmes: I would rather define colloquially as conversationally.
digitus has quit [(Ping timeout: 268 seconds)]
<joepie91> ottidmes: colloquial refers specifically to language, whereas 'informal' is a more generic descriptor that's usually used to talk about behaviour, attitudes, etc.
ixxie has joined #nixos
<ottidmes> jeaye: The dictionary agrees with you, it is the first alternative given ;)
<ottidmes> joepie91: Ah, thanks for the insight :)
* jeaye uses wordnet locally with a bash fn for these sorts of things.
<dash> dict.org is nice too
<joepie91> ottidmes: one case I forgot: "informal" is also often used to describe situations or environments
<cwre> Well and a word could be used informally but not have a colloquial meaning.
<ottidmes> joepie91: Yeah, informal is rather a broad term
<cwre> Like how the eggplant emoji means penis for whatever reason.
<joepie91> (I'm totally procrastinating here)
<cwre> I can tell ;)
<ottidmes> I was just suprised I had not clue what the word meant, other then its context
<joepie91> back to studying Rust :P
<clever> joepie91: do you know much about how 'cargo fetch' runs?
leat has quit [(Ping timeout: 255 seconds)]
<joepie91> clever: not yet! ask me again in a month
<joepie91> :P
<joepie91> (my practical experience with Rust is very limited so far)
<cwre> srhb: it's still building :(
<joepie91> (but I intend to spend more time on it)
<clever> joepie91: ah, for context: this line is trying to network IO when nix has disabled the network: https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/rust/default.nix#L86
<ottidmes> I find it somewhat funny that I recently started to use C for something else then my Pebble watchface, while if you start out, Rust would be way better, but I have yet to write something considerable in Rust
<joepie91> $ cargo help fetch
<joepie91> Fetch dependencies of a package from the network.
<joepie91> :)
<clever> joepie91: except, nixpkgs has done some trickery to provide it everything pre-fetched
<joepie91> "If a lockfile is available, this command will ensure that all of the git dependencies and/or registries dependencies are downloaded and locally available. The network is never touched after a `cargo fetch` unless the lockfile changes."
<joepie91> that may be where it breaks?
<clever> joepie91: nixpkgs uses the lock file to pre-fetch things in a fixed-output derivation when it has network
<clever> and then you provide the sha256 over that entire set of deps
<clever> then cargo should just run without network
<clever> but its trying to do network again afterwards
<joepie91> right, point being - I'd start looking at "does the lockfile mismatch the lockfile during the pre-fetch phase>"
* mbrock has rewritten rust software in haskell just to circumvent these problems
<joepie91> ?*
bennofs has joined #nixos
<joepie91> don't have much more advice than that at this point
<joepie91> may have more advice in a month
<clever> joepie91: nix will re-do the fetch job if the lock file has been modified
<clever> so the fetch and build always use the same lock file
<joepie91> should use *
<joepie91> :)
<clever> yeah
<ottidmes> mbrock: I feel like Haskell is the best supported programming language in NixOS, it was one of the reasons for me to stick with NixOS
<clever> joepie91: this script also breaks if any of the cargo deps happen to use a git submodule
<mbrock> ottidmes: yeah, it's really a pleasure to have the whole Hackage in there just working
<joepie91> clever: I'll probably end up looking at that at some point in the near future anyway
<clever> mbrock: i just skipped cabal and stack, and went directly to haskellPackages.ghcWithPackages, and it works fine
<joepie91> when it breaks
<mbrock> clever: I use cabal2nix and haven't had any problems yet :)
<joepie91> should probably also try to learn some haskell some day, for the heck of it
<srhb> cwre: Linux is a big piece of software!
<mbrock> the NixOS build servers right now are also a really great community resource
<cwre> srhb: I blame systemd
<cwre> :o
<mbrock> there's no other way to get binary GHC packages for random Hackage packages, as far as I know
<gchristensen> cwre: you have to give linux _some_ credit for its many millions of LOC
<catern> mbrock: by problems you mean problems with Rust in Nix?
<mbrock> catern: yeah
<cwre> gchristensen: LOC?
<srhb> cwre: I don't think systemd is involved :-P
<gchristensen> lines of code
<cwre> Ah, yeah.
<ottidmes> joepie91: You will be a better and worse programmer by doing so. I liked this blog post about it: https://lukeplant.me.uk/blog/posts/why-learning-haskell-python-makes-you-a-worse-programmer/
<dash> ottidmes: sounds like he didn't learn how to write non-tiny programs in haskell
<srhb> cwre: Looks like mine took 20 minutes.
<simpson> ottidmes: Learning a new language does not make one worse at programming. It's like saying that learning a new instrument makes you worse at instruments that you already know.
<joepie91> ottidmes: yep, familiar with the points mentioned there. it's not a big issue for me, because I have a tendency to just build the necessary tooling myself if something is missing :P
tokudan has joined #nixos
<joepie91> and cobble together bits and pieces from other languages
<joepie91> and other tooling
<ottidmes> dash: He is basically saying right from the start: "even though I have used Haskell very little"
<clever> joepie91: i find i dont even look hard enough for such tooling
<dash> ottidmes: "a little learning is a dangerous thing ..."
tvon has quit [(Quit: System is sleeping...)]
<joepie91> ottidmes: a second way in which I cheat is by writing the documentation on how to use the more complex things :)
<dash> useful lessons from haskell can be applied to C# but not at the scale of 1-10 lines of code
<joepie91> (I've realized that I'm half programmer, half technical writer)
<dash> Bernhardt's "Boundaries" talk is a good description of them
<ottidmes> simpson: I did not say I wholeheartedly agreed with the blog post, I mean I said "better and worse". I however do agree, that you might become worse in being a certain type of programmer, but overall, sure you will always be better of learning new languages
<LnL> dash: that's a great talk
<joepie91> ottidmes: simplified explanation, explains some of the concepts, well enough to 1) make people intuitively understand code using it, and 2) make them use it themselves
tvon has joined #nixos
<joepie91> so I don't have to deal with the "WHY DON'T YOU JUST USE A FOR LOOP" :)
<simpson> ottidmes: That is straight-up not my experience, and I know dozens of languages. Could you give me an example of how knowing a certain language makes you worse at programming?
<dash> learning php made me dumber
<ottidmes> dash: Agreed, I like to think more about paradigms and ways of thinking about programming than programming languages themselves, although there clearly are differences between languages even if they support the same way of thinking, the more fundamental insights are made by truly gasping other paradigms
LexLeoGryfon has joined #nixos
<dash> ottidmes: that's why i started implementing a new programming language :)
<ottidmes> dash: That is why I am working on a new paradigm ;)
<dash> ottidmes: do you have a newsletter I can subscribe to
LexLeoGryfon is now known as justlex
<simpson> ottidmes: A new theory of computation, or a new theory of arranging code?
<dash> ("My project is a paradigm too!")
<ottidmes> simpson: Sure, I am worse at writing certain software in certain languages that I was in the past, because I used to be more comfortable with certain boilerplate code, while now I will try and work around said boilerplate code
earldoug1as has joined #nixos
earldoug1as is now known as jamestastic
<ottidmes> dash: Not as of yet, but once I have enough material about it, I will definitely make it open to the public, because that is the only way for it to grow
<simpson> ottidmes: Why is not wanting boilerplate a bad thing?
<ottidmes> simpson: Making me less productive in those languages than I use too, but overall I would say I am steady becoming a better programmer, but e.g. I am a way worse code monkey type of programmer than I used to be
<simpson> ottidmes: Are you saying that it's bad that, having returned to the cave, you can now see how to do things differently?
<simpson> ottidmes: Are you really sure that you were productive before? Or did you just write a lot of code? They are different things.
<simpson> Anyway, I'm interested in your new paradigm and how it works. I want details.
<cwre> srhb: it's done!
<cwre> rebooting to see if it works
<justlex> any lispfanboy here? who could encourage me to learn lisp instead of language X
<gchristensen> nope
<gchristensen> use whatever makes you happy :)
<cwre> srhb: it works! Praise RMS!
<simpson> justlex: What's your goal?
<catern> ~Language X~, a secret language developed by government scientists in Area 51
<cwre> catern: and then some schmuck in a basement will make XXX because they won't merge a PR.
<ottidmes> simpson: You seem to miss my point. From a theoretical perspective you are completely right, but from a practical or business perspective, getting things done quick, good enough and understandable enough for you teammates is more benifical then thinking too much about how to remove certain boilerplate code, that is not really problematic or might be thrown out sooner rather than later anyway
<simpson> catern: Divs, CSS / React and JS / these were the ingredients chosen to create the perfect Web app / but the professor added an extra ingredient to the concoction / LANGUAGE X
<catern> having the strength of ten lisps, language X computes in the defense of truth, justice, and the american way
<catern> simpson: :D
<mbrock> justlex: Lisp (at least Common Lisp, but also Emacs Lisp for example), along with Smalltalk, is a very unusual environment compared to almost all other languages, and you can do some pretty amazing things
<justlex> simpson: great quesstion! verry correct one. my goal is to just earn money, do own business in order to enjoy skydiving\watertiving\thaigirlsdiving\yacht. and eachtime someone suggest lisp\math I don't feel it correlates to my main goal.
jamestastic has quit [(Quit: leaving)]
<catern> offtopic?
<simpson> ottidmes: No, that is the line of thinking that leads to technical debt. Your engineers should always be mindful of how to make code more maintainable.
<ottidmes> justlex: I can only encourage Clojure to some extent, I really like much of the thinking about it, but it is not the language for me
<gchristensen> justlex: quite off topic :)
<simpson> justlex: If you want money, go into finance.
<ottidmes> simpson: Agreed, they should be mindful, but for certain kind jobs, I probably have become to mindful
<simpson> ottidmes: I can't share details, but based on the day job I just left, I have to disagree. Things should be documented, tested, maintained, etc. There should not be any code which there is not somebody responsible for somewhere in the organization.
<gchristensen> ^^^^^
<simpson> ottidmes: Anyway, I really would like to read documentation on your new language design ideas. As a language designer, I am very interested in new theories of computation and code arrangement.
ryanartecona has quit [(Quit: ryanartecona)]
<ottidmes> simpson: Hmm, I agree with you, but what I meant is, basically I get annoyed at using e.g. Java way more quickly than I used, because I notice much boilerplate and patterns than I have trouble abstracting
<mbrock> there's the argument that technical debt is not a bad thing, it's like financial debt: you'd like to pay it back at a reasonable pace, but this debt can still be really useful
jgertm has joined #nixos
<simpson> ottidmes: Well, yeah, Java is not really able to do any meta-programming, so abstracting common patterns is nearly impossible. That doesn't make you a bad programmer; it makes Java a bad language.
<mbrock> and if you're too afraid of debt, you might not be able to finance the thing you want to make fast enough
<ottidmes> simpson: Unfortunately I do not have the time right now to continue working on it as much as I would like, but it has been brewing for years now and I have yet to find any language that matches what my approach is
<dash> ottidmes: that's why we keep having new languages
<mbrock> of course most businesses I've seen have been totally swamped in an ever-growing pile of horrible technical debt that they can never find the time to pay off
<simpson> mbrock: Yes, and that argument is why "technical debt" is a bad term. The way that we "pay it back" is very different from evenly-spaced evenly-apportioned payments, and the effect is very different too.
<simpson> mbrock: Whereas, in finance, having some debt is not just acceptable, but (as you said) beneficial if it improves capital utilization and cash flow.
<ottidmes> mbrock: Exactly, and although I personally hate having to create technical debt, especially since I am now aware of creating it most of the times, most companies still want to make the tradeoff, and unfortunately they tend to prefer more debt then I would like
<simpson> ottidmes: I've been "brewing for years" and as a result I have a pile of code and docs. Do you have anything written down?
<dash> simpson: OTOH most technical debt is dealt with by declaring technical bankruptcy and abandoning the codebase :)
<simpson> ottidmes: So stop giving employers those opportunties. Work on stuff that is not going to create more debt.
<ottidmes> simpson: I agree, that is why I plan to start my own company ;) freedom in the technology I want to use
<simpson> dash: Ever seen a project manager say "we'll get to it next quarter"? I got to see a goalpost get bumped for *nine quarters*.
<dash> simpson: Me too, and the larger project our service supported was cancelled for other reasons, so putting those things off was wise
<justlex> I feel like many people could write a lot of fast productive useful software on C, instead of messing with buggy java\javascript\otherlanguage
<ottidmes> simpson: I have plenty written down about it so far (privately), but I want to have a working prototype with clear examples first to show my idea is feasible and work out some potential issues in my thinking
<dash> justlex: No.
<joepie91> justlex: err, what?
<simpson> justlex: It is highly likely that there are no people able to write correct C of any serious amount.
<dash> simpson: Well, there's DJB
<dash> but it's not clear if he's human, really
<simpson> justlex: As a consequence, nobody should be writing C.
<gchristensen> justlex: I wonder if ##programming would be a better place to discuss this
<mbrock> djb is also really good at splitting his systems into separate programs according to "the Unix philosophy"
<simpson> dash: It's also not clear whether his code is correct or just carefully-written; he has a feud with optimizing compiler authors, which usually indicates an animus against the C language standard.
<clever> simpson: the GHC RTS has a hefty amount of C in it...
<joepie91> obligatory note about "working" and "correct" not being the same thing, and only one of those two having any future value whatsoever
<joepie91> (and it's not "working")
<ottidmes> I refuse to work on large C codebases, and only use C when I truly must, I don't dare use C++, especially since the point of C++ is to scale C programs and like I just said, no way I am working on such codebases
<joepie91> that is; "working" only tells you that the software appeared to function as you expected at the precise moments you verified as such; it gives you zero assurances about whether it will work in the future, in other circumstances, environments, surviving changes, etc.
<joepie91> which is why you want "correct"...
<clever> simpson: pretty much any haskell program in existance is calling this code on a regular basis: https://github.com/ghc/ghc/blob/master/rts/sm/MBlock.c#L106
<ottidmes> dash: What is the language you were working on?
<justlex> most of my favourite gnu\linux\posix is written in C. and I ejoy it, it is fast, easy to use\distribute\compile, the best pieces are static binaries. but other software in java\otherfraweworks eats lot of ram\disk, requires huge runtime .
Ivanych has quit [(Ping timeout: 240 seconds)]
<joepie91> justlex: none of that has anything to do with 'buggy' nor necessarily performance
<joepie91> also, none of the things you mentioned are "frameworks"
<joepie91> plus RAM use is entirely dependent on runtime implementation
<ottidmes> justlex: So small grokkable C programs, I do not mind those, if tested properly
<catern> justlex: this is off topic, try ##programming instead
<simpson> ottidmes: dash and I work on Monte: http://monte.readthedocs.io/en/latest/
<simpson> justlex: What is the *most* important part of a language to you? Is it speed, safety, readability, expressive power, toolability, etc.?
* mbrock finds, after quite some experience with Rust and Haskell, that compilation speed is an actually significant factor
<ottidmes> simpson and dash, nicely documented! I am quite sure I have seen it before, I try and find anything novel about programming languages
seagreen has quit [(Ping timeout: 260 seconds)]
<simpson> mbrock: Sure, for some folks that is a primary concern, and there are languages like Oberon and Go where it appears to be either the top concern or close to it.
<ottidmes> simpson: Hah, nice to see Nix is being used to install Monte
<dash> we <3 nix
<mbrock> I still use Haskell as my go-to language because it ticks so many of my other desirable factors
<simpson> ottidmes: It's 2017; building our own package manager seemed rude.
<mbrock> but I also try to be neutral and just look at the problems at hand and stay competent with many different languages
<mbrock> that's something I love about Nix too, how it's based on this really great purely functional core, but then it's also a huge blob of shell scripts
takle has joined #nixos
<cwre> So... Is I want to submit a PR, what should I be cloning and modifying?
<mbrock> 'cause at the end of the day you just need the computer to do some stuff in the easiest and most straightforward way possible
<ottidmes> simpson: But the short version of my programming paradigm is that I aim to allow programmer insights and knowledge to become concrete as part of the programs. To try and solve having the programmer play the pre-compiler too some extent and to be able to remove boilerplate code, and boilerplate decision making during withing programs and programming respectively
<justlex> simpson: for me IMHO it is readability, high expressivness, speed of implementation and after that speed of execution, good libraries\frameworks, ability to call C & scripting language, ability to generate statically linked binaries for portability\deployment
<joepie91> mbrock: fwiw, I find Nix to be a rather interesting language, due to how relatively simple and small it is
<simpson> justlex: Pick *one*.
<joepie91> mbrock: almost feels like the smallest possible functional real-world language one could possibly implement
<mbrock> cwre: the basic workflow is probably to check out the master of github.com/NixOS/nixpkgs and make your change there. You can test it for example by `nix-env -f ~/my-nixpkgs-clone -i myPackage'
<ixxie> simpson: monte looks cool
<simpson> ottidmes: So is this a change to how computation works? It sounds more like a matter of tooling.
<justlex> simpson: then Cython
<cwre> mbrock: I'm actually adding a kernel patch to support macbook brightness
<mbrock> joepie91: yeah, agreed. Reminds me of Gabriel Gonzalez's "Dhall" work, e.g. http://www.haskellforall.com/2017/01/typed-nix-programming-using-dhall.html
<simpson> joepie91: Nix is pretty big compared to Scheme, for example. (Not Guile, but Scheme.)
<simpson> justlex: I meant one feature, but sure. Cython's terrible, though; it forces you to write not-quite-Python and barely grants any speedup. Have you tried PyPy?
<mbrock> joepie91: I guess Dhall is supposed to be in some way the simplest typed and total functional language, actually I haven't researched it much though
<mbrock> joepie91: it strikes me that Nix is kiiiind of like the JavaScript of pure functional languages ;)
<ixxie> simpson: how does monte compare with things like actor models / Akka? Is there a historical connection?
celph has joined #nixos
<joepie91> mbrock: I'm very skeptical of the "typed" thing. static typing can be a valuable building block for other language features, but too many assign too much value to it in and of itself
<joepie91> mbrock: mm, JS is still a lot more complex :P
<dash> ixxie: yes
<simpson> ixxie: Yep. Actors come from PLANNER and then Scheme, and Monte's ancestor E is part of that lineage. Monte vats are a lot like actors or Erlang processes.
<dash> ixxie: come visit #monte :)
<justlex> simpson: it boost my calculation of prime numbers with shit ton load of speed up! 100x faster than java\python
<ottidmes> simpson: No, not tooling, although you could write off everything as being tooling, since in the end all compilers/interpreters are tools to run some program on your machine, and no it is not a fundamental new way of computing, but it new way of thinking about how to approach programming (just like functional programming is to imperative)
<joepie91> too many people *
<simpson> justlex: Try PyPy. Seriously.
<simpson> ottidmes: When I said "theory of computation", I was hoping for something like lambda calculus, pi calculus, CoC, JVM-style, CVM-style, Horn clauses, Post correspondence, Wang tiles, etc.
reinzelmann has joined #nixos
<simpson> ottidmes: What are your values like? What kinds of operations do you do with values? What kind of formalism are you using underneath to relate them?
hellrazor has quit [(Ping timeout: 240 seconds)]
<joepie91> mbrock: anyway, my issue regarding 'static typing' can be summarized as: it prevents a very specific class of errors, that is a subset of another class of errors that can be almost entirely solved through good development practices, and the cost of static typing in terms of developer time/effort is generally not worth it compared to other solutions, when looking at the resulting value
<joepie91> mbrock: (this only applies to static typing as a feature in and of itself)
<joepie91> anyhow, brb
fikse has quit [(Ping timeout: 260 seconds)]
ixxie has quit [(Quit: Lost terminal)]
<ottidmes> simpson: I would not categorize it as such, it quite ungrounded by design, which necessary for it to achieve what it wants to achieve. So it that sense it is closer to tooling and not fundamental theory, but it is definitely an approach to programming, making it a paradigm (way of thinking) on its own
<simpson> ottidmes: Okay. Well, if you ever write docs, I'll probably still be interested.
romildo has joined #nixos
<ottidmes> simpson: That is why I want to make it more concrete first before I can show it off, extraordinary claims require extraordinary evidence and all that, or better put otherwise it is just empty words
leat has joined #nixos
<romildo> How to set the titlebar height?
justlex has quit [(Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)]
<ottidmes> romildo: Of what? Would that not be window manager dependent?
<romildo> ottidmes, awesome window manager. Sorry, wrong channel.
fikse has joined #nixos
<ottidmes> romildo: Apparently via this line http://git.sysphere.org/awesome-configs/tree/rc.lua#n269 as mentioned here https://bbs.archlinux.org/viewtopic.php?id=139836, but I have no experience in Awesome, might be outdated, good luck!
seagreen has joined #nixos
<ottidmes> romildo: Or screen 0 { titlebar { height = 40 } }, as they have here: http://cinderwick.ca/files/linux/configs/awesomerc
<lambdael> how can i find toe command in nixos?
<cwre> Does anyone know why I'm unable to modify my "Look and Feel" settings with KDE?
<joepie91> nice to come back to a rebuild that *just* finished :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] sigma opened pull request #27551: fzf: 0.16.9 -> 0.16.10 (master...pr/fzf-0.16.10) https://git.io/v7T09
NixOS_GitHub has left #nixos []
<ottidmes> lambdael: Did you really meant toe? No typo? I cannot even find it on Google, regardless of NixOS
Filystyn has joined #nixos
<Filystyn> guys
<Filystyn> ntfs
<Filystyn> i have packet for writing ntfs
<Filystyn> it's still only reading
<Filystyn> how to fix it ?
<romildo> ottidmes, those links seem to be outdated. There were some incompatible changes in configuration with versions 4.x released this year. I am reading the doc at https://awesomewm.org/doc/api/libraries/awful.titlebar.html to find out.
<lambdael> otttidmes: its terminal thing, i thought its in ncursors, but its not.
miguelnegrao has joined #nixos
<ottidmes> Filystyn: Do you have something like udisk / gvfs on your system?
michaelpj has quit [(Read error: Connection reset by peer)]
miguelnegrao has quit [(Client Quit)]
<Filystyn> udisk?
<Filystyn> ottidmes sec
<lambdael> otttidmes: http://www.linux-commands-examples.com/toe this command
<Filystyn> i don't what are those
jgertm has quit [(Ping timeout: 240 seconds)]
<ottidmes> Filystyn: Yeah, I assume it is something external, and udisk is often (always?) used for handling that, and polkit to determine privilages (probably your issue)
<ottidmes> Filystyn: What environment are you in? A desktop enviroment such as e.g. KDE or Gnome, or no GUI at all, or just window manager (often the case for tiling window managers)
<Filystyn> xfce
<ottidmes> Filystyn: Ahh, I will give you some snippets of my configuration, they might help you out then. I am using parts of XFCE myself
<mbrock> joepie91: that's mostly not how I experience it but then when I say static typing I mostly mean Haskell, and there the type system is mostly really helpful. The amount of help I get from it while refactoring is so, so nice.
<mbrock> joepie91: but I recognize that, for example, "adding" static typing to Nix is not a simple matter, and you might end up making the language too complicated for most people to understand easily
<mbrock> joepie91: (Haskell's type system is really complicated, and people mostly want more and more features from it)
<dash> mbrock, joepie91: That guy did a thing: http://www.tweag.io/posts/2017-05-23-typing-nix.html
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 closed pull request #27551: fzf: 0.16.9 -> 0.16.10 (master...pr/fzf-0.16.10) https://git.io/v7T09
NixOS_GitHub has left #nixos []
<ottidmes> Filystyn: It might not be relevant to you issue, but this solved it for me at the time: https://gist.github.com/ottidmes/043a0b7bb3de4399308699c95c8114ac
michaelpj has joined #nixos
ison111 has joined #nixos
<ottidmes> lambdael: I think the NixOS package is missing: moveToOutput "bin/toe" "$out", I have apparently do have toe in Arch Linux and the link you gave mentions it is part of ncurses, and googling it with ncurses gives me enough results, so it seems a packaging issue
<mbrock> joepie91: btw, the more expressive your type system, the less specific the kinds of errors it can catch. Servant for Haskell is a good example, checking statically that your web routes deliver the right content types, and stuff
<cwre> I'm getting a shared library not found error with KDE in certain settings panes...
<cwre> What do I need to do, should do to verify I'm not crazy?
<lambdael> ottidmes: what can i do?
<ottidmes> joepie91: I rather have the compiler yell at me then what I call, having to doubt most of my program (not that it happens often, but when that situation occurs, I dislike (putting it kindly) dynamic typing or at least the programming language in question with a passion)
<simpson> So, the thing about static typing is that any particular static type system always seems to have its warts. Some of these warts are pattern-based and seem to recur often.
<simpson> So it's not really clear exactly how much expressivity is lost. Somewhere between "all of it" and "a lot of useful things" are prohibited.
pbogdan has quit [(Read error: Connection reset by peer)]
<ottidmes> lambdael: I am testing it for you, but I seem to have a problem with my configuration (it is installing way more then it should and it fails eventually, unrelated to your problem though)
<ottidmes> lambdael: I just added: moveToOutput "bin/toe" "$out", to the default.nix of ncurses of my local nixpkgs checkout, if you have a local checkout, you might try it yourself
romildo has quit [(Quit: Leaving)]
<lambdael> ottidmes: thx, i gonna try it
<ottidmes> lambdael: That is probably for the best, it seems I have somehow triggered a complete rebuild of my system
pbogdan_ has joined #nixos
takle has quit [(Remote host closed the connection)]
<Filystyn> otti thx man
michaelpj has quit [(Read error: Connection reset by peer)]
<ottidmes> Filystyn: So it worked for you?
<Filystyn> had tio find other work around since no time i will check tomoroow
<Filystyn> this problem happened few tiem salready so it;'s crucial anyway
<Filystyn> cu!
Filystyn has quit [(Quit: Konversation terminated!)]
takle has joined #nixos
<ottidmes> Yikes, my cores are reporting close to 100 degrees celcius... Ehm, I hope that the sensors are wrongly reported...
<ottidmes> Would it not otherwise kill my machine?
takle has quit [(Ping timeout: 240 seconds)]
seppellll has quit [(Ping timeout: 260 seconds)]
<tokudan> cpu cores at that temperature is ok. cpu ambient temperature at 100 °C is bad
<dash> ottidmes: 100C is pretty high. IIRC some systems will throttle things to stay below that
<dash> I had this problem for a year or so before I put in a better cpu cooler
<ottidmes> I stopped compiling, not is back to 76
<dash> yeah, you need a better cooler
deltasquared has joined #nixos
<ottidmes> I just need a new desktop, GPU fan is partly broken (making noise) and I already replaced the cooling paste of the CPU a few months back
<dash> at idle your cpu should not be above 40C probably
oida_ has joined #nixos
<deltasquared> new desktop entirely? eesh, I personally wouldn't be buying right now
<ottidmes> deltasquared: Yeah entirely, why not?
<dash> deltasquared: waiting for Talos II? :)
<deltasquared> dash: no such luck with me, Pentium IV in my desktop right noww
<deltasquared> ottidmes: DRAM/NAND shortages
<deltasquared> the market kinda sucks for getting onto the ladder as it were right now.
<ottidmes> deltasquared: Hmm, that sucks, I did read about certain CPU and GPU being sold out due to high demand of crypto farms and such
michaelpj has joined #nixos
<deltasquared> I'll probably get skylake in a few months time so it's settled. GPU may be similarly lagging behind the latest, but I'm not necessarily buying for the most power per $$$
<deltasquared> even then it'll be a considerable improvement over a ten-year-old motherboard and CPU.
oida has quit [(Ping timeout: 255 seconds)]
<ottidmes> deltasquared: mine is almost 8 years old, so I really do not like to invest in it anymore, but it sits at idle 59C I will try to better its air flow later this evening
pie_ has quit [(Ping timeout: 240 seconds)]
<deltasquared> I'm just intending to buy an up-to-date system in one go so that while it may not be the fastest performance wise, it'll last for a fair bit into the future
<deltasquared> e.g. right now I'm stuck on PCIe 1.0
<deltasquared> I would be getting PCIe 3.0 and DDR4 RAM, which shouldn't be too antiquated for some time to come
<ottidmes> How do you cope? I mean, is the software you are using so undemanding? My first personal desktop had a pentium IV, I cannot imagine running the latest browser with plenty of tabs open on it
reinzelmann has quit [(Quit: Leaving)]
<dash> ottidmes: use a phone or tablet for web :>
<deltasquared> ottidmes: are you kidding? it handles firefox just fine! it's the sites that are completely overbloated that are the problem, which I have fixes for.
<deltasquared> it sounds great too, though sometimes the sound is inconvienient.
<ottidmes> deltasquared: My desktop right now is zooming, bzzzzzzzzz... half of the time due to a half working GPU fan... But not something playing some Metal cannot fix ;)
seppellll has joined #nixos
pie_ has joined #nixos
erictapen has quit [(Ping timeout: 240 seconds)]
Jackneill has joined #nixos
ryanartecona has joined #nixos
pie_ has quit [(Read error: Connection reset by peer)]
seppellll has quit [(Ping timeout: 260 seconds)]
<ottidmes> lambdael: I can confirm, adding that line adds toe to ncurses
<ottidmes> lambdael: Can you make a pull request yourself, or do I have to do it?
pie_ has joined #nixos
<dshin> how do I modify the outputsToInstall attribute of packages? I've been stuck on this for a while
<dshin> I have a default.nix that looks like this: https://gist.github.com/daeyun/788fa29e0c4eaa840fe30e3534f555df
<joepie91> ottidmes: right, my point is that there are ways to not-have-to-doubt-your-program beyond static typing :) it isn't 'either static typing or uncertainty'
<adisbladis> domenkozar: How would you feel about removing substanced https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/python-packages.nix#L8998 ?
<joepie91> ottidmes: but those other approaches are things to learn about in and of themselves, so if you write code in a dynamically typed language like you would [naively] do in a statically typed language, you're going to have issues
<dshin> basically I'm trying to have those packages installed and symlinked to a local directory. but boost is not installing the headers because outputsToInstall is set to ["out"]. I want to change it to ["out" "dev"]
<cwre> I'm getting a shared library not found error with KDE in certain settings panes... What do?
jsgrant_ has joined #nixos
jsgrant has quit [(Ping timeout: 246 seconds)]
<joepie91> ottidmes: my RSI is playing up so I don't want to spend too many keystrokes on this right now, but here's an explanation I gave to somebody else yesterday in another channel: https://gist.githubusercontent.com/joepie91/fc50414ddb8231c1db40d67cf60db3af/raw/c8630af11c39a9d63bd38294298f6881dde37791/gistfile1.txt
<joepie91> ottidmes: (context: a discussion about typescript, which is basically "javascript with static typing glued onto it")
<ottidmes> cwre: pinpoint what is missing the shared library, use ldd to list its runtime dependencies, open the relevant pkg on nixpkgs and see what dependency should supply this
<cwre> ottidmes: I don't know how to pinpoint the shared library.
<cwre> It's just saying "shared library"
<ottidmes> cwre: sudo journalctl -e gives you more maybe?
<cwre> I'll look. Installing shit on my bootcamp partition currently.
<ottidmes> dshin: Did you read this bit? http://nixos.org/nixpkgs/manual/#idm140737318217328
riclima has joined #nixos
riclima has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joelthompson opened pull request #27552: exhibitor: Fix bugs in previous package (master...exhibitor) https://git.io/v7T6D
NixOS_GitHub has left #nixos []
<ottidmes> joepie91: I know about TypeScript, PureScript and the lot. And I indeed now use TypeScript when I have to use JavaScript. I do not use PureScript I tend to need to do a lot of interop, and then the paradigm mismatch becomes annoying and you are more busy writing glue code between the two worlds then writing the actual code
seppellll has joined #nixos
<joepie91> my opinion of typescript is 'not very good', to say the least :)
<joepie91> as far as I can tell, it's glueing on static typing for the sake of static typing
<joepie91> technical tradeoffs make no sense
slack1256 has joined #nixos
<joepie91> (and I'd recommend that anybody considering TypeScript would instead spend some time to get acquainted with JS *properly*, or if different tradeoffs are required, to consider something like Flow instead)
<deltasquared> it wouldn't hurt to have a separate validation pass for dynamic languages if done right.
<deltasquared> I can't speak for typescript though
<deltasquared> !g pluggable type systems paper
<deltasquared> ...
<deltasquared> fuck no bot wrong channel
tvon has quit [(Quit: System is sleeping...)]
<ottidmes> joepie91: I agree with most of what you are saying in that gist, but generally, I would maybe even go so far as, inherently I consider static typing to be superior. But that does not make static typing the best choice over dynamic typing in all situations. I personally like the approach of having static typing but trying to win back most of the benefits of dynamic typing
<joepie91> but yeah, honestly, my experience has been that precisely 0 of the people I've spoken to who use typescript have a comprehensive understanding of JS as a language, and how to make the most of it in terms of producing reliable code effectively
<tilpner> Is anyone else experiencing cannot download flash_player_npapi_linux.x86_64.tar.gz from any mirror? https://github.com/NixOS/nixpkgs/issues/26704
<joepie91> I'd love for somebody to show me otherwise, but so far it has not happened
<joepie91> :P
<BlessJah> Does the nix-devel mailing list have merely 12 threads or do I fail to use google groups interface properly?
<joepie91> and I always get the distinct impression of TypeScript being used as a 'crutch' to regain static typing
<joepie91> due to familiarity (or rather, unfamiliarity with how to approach development in dynamically typed languages)
phinxy has joined #nixos
<ottidmes> joepie91: I think I have quite an understanding of JavaScript, but still prefer TypeScript, but maybe we should not discuss this further at length here...
<joepie91> ottidmes: when my RSI is less bad perhaps we should discuss it more :)
slack1256 has quit [(Remote host closed the connection)]
<joepie91> (and I could then save you some time by giving you some pointers on the whole 'writing reliable code in JS' thing)
<deltasquared> joepie91: read that paper I linked, 'tis intradesting. I think it discusses the fact that certain things about the program can't be encoded in types but have to be checked in other ways anyway
zraexy has joined #nixos
<joepie91> deltasquared: will add to reading list, thanks
<deltasquared> there's no reason you couldn't e.g. add a semantic check pass to a given set of javascript. bloody hard granted, but not impossible
<joepie91> my mind is currently in a different gear (learning Rust) so it won't be tonight
<joepie91> :p
<ottidmes> joepie91: Regarding RSI, I feel for you, I've had it years ago, but managed to heal from it, but there many types of RSI
<deltasquared> rust aurgh
<tilpner> For some reason my nixos-config is evaluating my user's ~/.config/nixpkgs/config.nix. How do I debug why this happens?
* joepie91 is finding the documentation on lifetimes to be rather weak
<deltasquared> joepie91: there have been a couple of people asking about a formal definition of lifetimes for mathematical rigour. they couldn't do it :P
<ottidmes> deltasquared: Thanks for the link. I am a firm believer of going at it from the other side, static -> dynamic instead of dynamic -> static, but I try to keep an open mind
<deltasquared> it's not like rust invented the concept first though, I'm informed Ada has had "region analysis" of where pointers started and ending for a while now
<simpson> deltasquared: Escape analysis is hard. Escape analysis when weird temporal things are happening is an active field of research.
<dash> deltasquared: graydon didn't want anything in rust that was less than 10 years old
<dash> anyway, another major predecessor to rust was Cyclone
<joepie91> deltasquared: I'm less concerned about that, and more about the lack of an intuitive explanation; the lifetime documentation feels like it's written for people who already understand lifetimes
<joepie91> which... is not terribly useful :)
<deltasquared> joepie91: there's a a google tech talks video about rust which seemed to get it across quite well
<simpson> deltasquared: Languages like Ada and Virgil do this by adding a "region" concept to the language with syntax, but I think that Rust dreamed of being a little more flexible so that it could be used to implement stuff that can GC or codegen.
<deltasquared> want me to go find it?
<joepie91> deltasquared: would be appreciated
<joepie91> not a fan of videos generally, but since the written material is a bit lacking, who knows
<joepie91> might help
<simpson> Ada is truly amazing; it proves that the C++ idea of "take good ideas and bolt them on" can work, somehow.
<deltasquared> oh wait, *mozilla sorry
ison111 has quit [(Ping timeout: 240 seconds)]
<simpson> OTOH I would not actually want to write Ada. I guess if I worked for NASA, maybe?
<deltasquared> ... damnit
<dash> simpson: still not 100% convinced ada was not started as a cold war psyop
jgertm has joined #nixos
<cwre> ottidmes: journalctl -e has nothing in it
ryanartecona has quit [(Quit: ryanartecona)]
TheNumb has joined #nixos
<deltasquared> joepie91: a bit of stuff you might already know at the beginning but https://www.youtube.com/watch?v=d1uraoHM8Gg
<joepie91> deltasquared: I can see why you thought of Google :P
<ottidmes> cwre: That is too bad, but when do you get the error? I is it a certain application, that would be really useful to know
<joepie91> (the giant logo, the uploader username, ...)
<joepie91> deltasquared: anyway, thanks, will have a watch if this random blogpost doesn't manage to explain it properly either
<cwre> ottidmes: I get it when I navigate to certain settings panes.
<cwre> Like settings>workspace themes>{look and feel, desktop theme, splash screen}
Fare has joined #nixos
riclima has joined #nixos
<ottidmes> joepie91: You likely now all this stuff already, or is not applicable in your case, but what helped my RSI was to buy a better desk chair, bought a bigger mouse that filted most of my hand, stopped using the mouse after 23:00 (this was really important in my case) and stop playing games that require way to much mouse interaction
<joepie91> ottidmes: ironically, the mouse isn't the problem anymore...
<joepie91> ottidmes: I now use a Delux M618 as my mouse (a vertical mouse), that made the RSI in my right wrist pretty much disappear entirely
<joepie91> the issue now is my left wrist, due to keyboard use apparently :P
<ottidmes> joepie91: That could still be caused by a wrong sitting position, chair, keyboard, keyboard placing, not having enough breaks, I would really try to experiment, it is basically your body telling you strain certain parts too much, so something has to change
deltasquared has quit [(Quit: Leaving)]
<joepie91> ottidmes: aware, working on it :)
<cwre> ottidmes: https://ptpb.pw/mA6D.png
<cwre> UGH
<joepie91> ottidmes: already using workrave with a pretty tight break schedule, got a very sensitive keyboard, bought a better desk chair a while ago, etc.
<cwre> ottidmes: sorry, that's a bad screenshot
<ottidmes> cwre: https://github.com/NixOS/nixpkgs/issues/27050 this seems related?
<cwre> ottidmes: https://ptpb.pw/uyoF.png
<joepie91> ottidmes: and cancelled work today due to RSI :P so mostly just reading now
tvon has joined #nixos
<cwre> ottidmes: that looks like it!
<cwre> Thanks for being my google.
<joepie91> ottidmes: unfortunately my hauling of large trash today made it worse
<ottidmes> joepie91: Ah, figured as much, but I hate myself for not acting quicker in my case, because in the end it was completely preventable
ison111 has joined #nixos
<joepie91> also, a good mattress, a desk that's designed specifically for RSI prevention, etc. etc.
<joepie91> you name it, I've probably done it
<joepie91> :p
<ottidmes> joepie91: Ghehe, I was just about to say, what about a new mattress... I will shut up :P
<joepie91> on which note, praise IKEA
<cwre> ottidmes: that fixed it, thank you so much!
<joepie91> pretty much the only place that sells higher-end mattresses / desk chairs that actually last for a good while, are within reasonable (though not cheap) pricing brackets
<ottidmes> Indeed, half of my furniture is from IKEA and still using the desk I got 17 years ago from IKEA
<joepie91> I think I paid... about 220 EUR for my mattress? and like 150 EUR for my desk chair
<joepie91> equivalent mattress would cost >700 EUR elsewhere, equivalent desk chair would easily cost >400 EUR
<ottidmes> cwre: Great to hear! How about your HDPI issues, are they now solved on KDE? Or was that what you were trying to configure, which crashed?
<cwre> ottidmes: nope KDE solved the issues. Although I was having issues with firefox which was solved with a GDK_BLAH variable I needed to set.
<cwre> Now I need to figure out how to change lockscreen background and user Icon.
<joepie91> ottidmes: I rarely buy furniture fwiw, just physical-health-related things :P pretty much all my other furniture is hand-me-downs, random stuff picked up from the street, etc. (I live on a low budget...)
python476 has joined #nixos
<joepie91> so approximately 100% of my purchased furniture is IKEA furniture
<joepie91> heh
<ottidmes> joepie91: My mattress was very expensive, definitely one of the most expensive things I own, but 100% worth it, I mean, considering how many hours you spend on the damn thing, spending well worth if it improves your health
<joepie91> right
<joepie91> ottidmes: on which note, it saddens me how many people work on a laptop permanently....
<joepie91> upwards of 6 hours a day...
<joepie91> professional developers and all...
<ottidmes> lol
<joepie91> with absolutely no awareness of RSI whatsoever
<joepie91> so, for anybody reading this who uses a laptop permanently and for their job: use a desktop, because using a laptop for extended periods of time is virtually a guarantee of health issues later
<joepie91> can't have a good posture with them
<joepie91> (unless you dock them, in which case, well, it's basically a desktop)
<ottidmes> joepie91: That was my cause of RSI, laptop combined with small laptop mouse, initiated my RSI in my right (mouse) hand and was made horrible when I played hack and slash games (Diablo 2, Titan Quest)
<joepie91> also, NixOS makes it easier than ever to synchronize your system config between a desktop and a laptop :D
<joepie91> so really no excuse there
<joepie91> ah, scheduled break time :P
<dash> system config is the easy part, it's everything else that's a nuisance
<dash> joepie91: anyway this is why God created chiropractors
simukis has quit [(Quit: simukis)]
celph has quit [(Ping timeout: 260 seconds)]
TheNumb has left #nixos []
<xplat|work> i use a laptop docked with a full-sized keyboard and mouse and 2 extra monitors not counting the laptop screen, so i guess that doesn't count?
<joepie91> xplat|work: 'laptop screen' is the problem there, most likely
<joepie91> xplat|work: there are very, very few laptop configurations where the laptop screen is at the correct viewing height
<joepie91> having it at the wrong viewing height will cause neck and shoulder issues
<cwre> joepie91: amen to that
fikse has quit [(Ping timeout: 240 seconds)]
justelex has joined #nixos
tmaekawa has quit [(Ping timeout: 255 seconds)]
<cwre> *sigh* having to install zip and unzip separately.
<cwre> Love you linux.
<joepie91> lol
<joepie91> ~unix philosophy~
pi3r has quit [(Ping timeout: 260 seconds)]
<cwre> ~~~~~aesthetics~~~~~
07IAAKJ6Z has joined #nixos
<07IAAKJ6Z> [nixpkgs] copumpkin closed pull request #27552: exhibitor: Fix bugs in previous package (master...exhibitor) https://git.io/v7T6D
07IAAKJ6Z has left #nixos []
07EABB12X has joined #nixos
<07EABB12X> [nixpkgs] copumpkin pushed 2 new commits to master: https://git.io/v7TSG
<07EABB12X> nixpkgs/master 9dc51dc Joel Thompson: exhibitor: Fix bugs in previous package...
<07EABB12X> nixpkgs/master ac56eba Daniel Peebles: Merge pull request #27552 from joelthompson/exhibitor...
07EABB12X has left #nixos []
pie_ has quit [(Read error: Connection reset by peer)]
pie_ has joined #nixos
<joepie91> alright, time to get back to Rust lifetimes...
<cwre> So what's the most approriate way to modify things in /run/current-system/sw/share?
<joepie91> cwre: there's a set of paths (in store paths) that will be linked automatically into /run/current-system/sw/share if present; https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/config/system-path.nix#L102-L121
<joepie91> er, /sw/share? am I getting that right?
<joepie91> yeah
<cwre> yeah that's right
cpennington has quit [(Ping timeout: 240 seconds)]
<joepie91> so if you have eg. $out/share/themes containing something, that something will be symlinked from /run/current-system/sw/share/themes automatically
<cwre> ooooh
<joepie91> after build
<cwre> So I just append to that
<cwre> And put stuff in my actual /usr/share
<joepie91> have a look at eg. desktop environment / window manager theme packages to see it in action
<joepie91> well, you put it into $out/share
<cwre> out?
<joepie91> eg. this is my hacky expression for the bluebird gtk theme: https://gist.github.com/joepie91/771ecce3212c03586d9e5111da230a9b
<cwre> ah interesting
dualinity has joined #nixos
<joepie91> cwre: $out is whatever the target path in the Nix store is for the derivation that's being built
<joepie91> it's an env var
justanotheruser has joined #nixos
<joepie91> (set by Nix)
<dualinity> hey guys, what is a recommended laptop for running nixos?
<dualinity> I guess not a macbook (im now running arch linux)
<dualinity> lenovo should be good?
<ToxicFrog> Depends on the lenovo.
<dualinity> recent thinkpads?
<ToxicFrog> I've been pretty happy with my T550, it was a complete shitshow (as were SUSE and Ubuntu) on my wife's Helix
<dash> dualinity: I run NixOS on an X1 Carbon.
jsgrant has joined #nixos
jsgrant_ has quit [(Ping timeout: 276 seconds)]
<dualinity> it's scary huh
<dualinity> I'd really like to take a laptop which would have the hardlayer perfected already
<cwre> what is?
<dualinity> hardware*
<dualinity> you don't want to fight the driver's battle.....
<cwre> dualinity: Mac's aren't that hard to get working... :)
<cwre> I just had to rebuild the kernel!
<dash> dualinity: Nope, I had no problems
<dualinity> im now doing arch linux but im not happy
<dualinity> stuff breaks from underneath you -_-
<cwre> Why not?
<cwre> How?
<dash> dualinity: computers will not make you happy
<cwre> dash: so true...
<joepie91> dualinity: fwiw, most Dell Latitude models run Linux fine
<joepie91> integrated-Intel-everything
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] stesie opened pull request #27553: owncloud-client: 2.3.1 -> 2.3.2 (master...update-owncloud-client) https://git.io/v7THC
NixOS_GitHub has left #nixos []
<joepie91> which is exceptionally well-supported under Linux
<dualinity> hmmm
<dualinity> im a lenovo fan :)
<xplat|work> dell in general is not bad for running linux
<dualinity> i dont like the macbook ^^
<joepie91> basically, all-Intel systems will virtually always work - by now most bluetooth and wifi thingiemajigs work under Linux too
<joepie91> broadcom may be an issue
<dash> I like the X1 because I can carry it in one hand while open
<joepie91> as per usual
<dualinity> bluetooth still is not working on mine
<cwre> Psh why not! Macbooks are linux on hardcore mode :)
<dualinity> and i've installed all the bluetooth programs out there -_-
<dualinity> btw, if someone made the config for a model, you could just copy it no?
<cwre> dualinity: theoretically, yes
<cwre> No one has, though :(
<cwre> Problem is Mac's change frequently without much explanation or warning.
<cwre> Like, my 2015 15" is probably much different than one released later in the year.
<joepie91> dualinity: btw, bluetooth is generally a nightmare under Linux, but the $1 ebay dongles work
<dualinity> I have a late 2015 15" :o
<cwre> dualinity: well then you're fucked :)
<cwre> dualinity: but seriously, you could try it
<cwre> I don't know how much would work.
<cwre> I can upload mine to github, just be aware you won't have discrete graphics(if you have it)
tokudan has quit [(Quit: Leaving)]
<cwre> Well, you won't have radeon discrete graphics.
<joepie91> (more generally speaking, anything you can order 3 of for under $10 will work well on Linux)
<dualinity> the graphics card on this one is screwed
ryanartecona has joined #nixos
<dualinity> joepie91: that's a nice suggestion!
<cwre> dualinity: it's a macbook with discrete graphics, what do you expect?
<dualinity> heh
<cwre> I regret getting one :/
<dualinity> I can't wait to get a high end lenovo again
magnetophon has joined #nixos
<dash> dualinity: it's pretty good
<dualinity> i believe in the philosophy of nix, i really do
<dualinity> i was considering to install it, but went with arch
<cwre> How do you feel now?
<dualinity> tried nixos on a VM but it seemed like a lot of work
<cwre> dualinity: it is
<cwre> But isn't all Linux?
<dualinity> hmmm yea....
<dualinity> well not really ubuntu
<cwre> Low hanging fruit
<dualinity> its just the main issue with arch is that stuff breaks
<dualinity> and moreso that it is a non repeatable build
<cwre> I've never really had that experience with arch.
<dualinity> it is haunting me
<ToxicFrog> I've been considering moving away from Nix on my laptop just because I want to play games and organize photos
<cwre> ToxicFrog: just get a desktop or make a small windows partition
<dualinity> i plan to get the lenovo and just keep win10 on it and dualboot linux next to it
<cwre> I have 100gb for Windows.
<ToxicFrog> It's great on the server, and I love having a reproduceable configuration and ZFS support and stuff, but it's a huge headache in some ways
<dualinity> yea... that's the best setup
<ToxicFrog> cwre: you misunderstand; I have a windows desktop for windows games
<ToxicFrog> I want to play games on linux, and organize photos with digikam
<cwre> ToxicFrog: oh, is gaming on Nix a pain?
<ottidmes> dualinity: That is my experience with Arch Linux as well, death by a thousand cuts (death = me being fed up with it), I have not had major breakage but little breackage here and there at every update, never having a bugless system for long
<dualinity> ottidmes: yea exactly !
<ToxicFrog> cwre: if they're FOSS games and they've been packaged for Nix they're fine. If they're Steam games you are entering a world of pain.
<simpson> ToxicFrog: I play games on Linux with NixOS.
<simpson> ToxicFrog: I haven't had Steam problems lately that weren't GPU-related instead of NixOS-related.
<dualinity> you always have to fix something on arch is how it feels
<cwre> ToxicFrog: I'm not sure why, though. Wouldn't the games just go to your home dir?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor pushed 1 new commit to master: https://git.io/v7TQE
<NixOS_GitHub> nixpkgs/master 75290ad Stefan Siegl: owncloud-client: 2.3.1 -> 2.3.2
NixOS_GitHub has left #nixos []
celph has joined #nixos
<ToxicFrog> cwre: most of them assume that things like libz can be found by the dynamic linker, which is not a safe assumption on NixOS
<ToxicFrog> Nor is the assumption that bash is in /bin for startup scripts and the like
takle has joined #nixos
<ottidmes> dualinity: With NixOS you exchange it for having to put some more time into your system, but it will reward you with stability, still the ability to be bleeding edge for those packages that require it and reproducability
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor closed pull request #27553: owncloud-client: 2.3.1 -> 2.3.2 (master...update-owncloud-client) https://git.io/v7THC
NixOS_GitHub has left #nixos []
<ToxicFrog> simpson: so, I moved from SUSE to Nix on the same hardware, and an awful lot of Steam games that worked fine on SUSE, like Squarecells and Caves of Qud, abruptly stopped working
<celph> Something I was having trouble with last night: In order to build a package for Nix using dependencies in nixpkgs, do I need to clone nixpkgs?
<cwre> ToxicFrog: oh, that's a shame.
<dualinity> ottidmes: yea, the problem is that i've now spent too much time on arch already... and i realized I don't like to be busy with all this... i want a system that works
<joepie91> I'd say that in current-day NixOS you exchange some upfront effort/time for saving a ton of headaches/time/effort down the road
<cwre> ToxicFrog: you could tell the devs to make linux scripts that don't follow poor scripting practices?
<simpson> ToxicFrog: That's unfortunate.
<cwre> :D
<ToxicFrog> I assume that this is something going wrong with the wacky chroot tricks that NixOS does to get Steam to run at all, but I definitely do not have the time or the inclination to debug that
<joepie91> (for flexible values of 'some')
<ToxicFrog> cwre: hmmm yes attempting to single-handedly reform the gaming industry sounds like a fun and productive use of my time
<cwre> ToxicFrog: merely kidding, I feel your pain.
<joepie91> celph: you can use an overlay since 17.03
<ToxicFrog> And on the photos side, Digikam works fine but kipi-plugins (used, in particular, to export/upload photos) are totally busted on Nix
<dualinity> btw guys, just wanted to tell you the atmosphere in here is a lot better than in #archlinux ^_^
<cwre> dualinity: you need to check out #archlinux-offtopic
<dash> dualinity: this is the value of the nix language
<celph> joepie91: thanks, I'm struggling a bit with the manual
<ottidmes> dualinity: I would suggest then to stay on Arch Linux, but maybe just install Nix the package manager to experiment with somewhat? And if you are planning reinstall, I would drop it and install NixOS instead. Because, at least in my case, I remember having to lookup all kinds of configuration stuff all again, because you simply forget that kind of stuff, with Nix you have it explicit, can copy/share/whatnot it
<ottidmes> easily, so it truly is a big win
<dash> it's confusing enough to keep the riff-raff out
<joepie91> celph: you are not the first nor only one to do so :)
<joepie91> celph: of use, although some of this may be outdated: https://gist.github.com/joepie91/ce9267788fdcb37f5941be5a04fcdd0f
<cwre> dash: my experience is that the long beards are worse than the confused users.
<ToxicFrog> There's a lot that I like about it and I'm definitely not moving away from it on the server anytime soon, and on the laptop the stuff that works is great, but the stuff that doesn't is just perpetually frustrating.
<dualinity> ottidmes: great suggestion, I went for full nixos experience, but just nix sounds a good plan on arch!
fikse has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
<joepie91> celph: eventually(tm) the documentation will improve but for now it's still a bit meh
<ToxicFrog> So next time I feel like spending a while tinkering with my laptop, I might just move back to SUSE, or SUSE + nix package manager to install stuff like the backup software
<cwre> ToxicFrog: its funny because the server(vps) I run is on arch and I've had almost no issues with it.
<celph> joepie91: Thanks again, I'll have a go at it a bit further tonight
<cwre> You know I've never used SUSE.
<ToxicFrog> cwre: and I haven't had any issues with NixOS on my server, but I'm not trying to play Steam games on it, either
<joepie91> fwiw, running NixOS on desktop here, and I run into issues every now and then, but so far they've always been solvable *somehow*
<joepie91> then again I don't use Steam
<cwre> ToxicFrog: psh, why not?? You don't want a home brew Gefore NOW?
<clever> i have nixos on my desktop, 2 netbooks, 1 laptop, the router, and the NAS
<dualinity> cwre: not sure what to expect with archlinux-offtopic, but indeed #archlinux itself has a very narrow scope :p
<dualinity> *not supported*
<dash> cwre: what does it say about a person if they have stuck with arch for years and years
<dash> cwre: not much good IMO :)
<cwre> dualinity: #archlinux-offtopic is just much chiller IMO and you can ask unrelated questions to arch without getting screamed at.
* joepie91 comes from openSUSE and is not planning on moving back
<ottidmes> I would not think about using Steam on NixOS. I know it kinda works, but I would just use some other distro, or just use Windows (which is what I am doing now for games)
<cwre> dash: they're masochists, that's for sure.
<clever> i was mostly gentoo based prior to discovering nixos
<celph> joepie91: when I was searching around for resources I found some documentation on how/why the wiki was killed and people admiring the Arch wiki a lot (which is something I also really like). Maybe as I figure things out I'll try to help with the documentation
<cwre> clever: ah, so you're insane?
<cwre> :D
<clever> cwre: i have also ran linux from scratch on my router, so yes
<cwre> Ohmygod, I've never tried, don't plan to.
<joepie91> celph: unofficial wiki reboot can be found at https://github.com/nixos-users/wiki/wiki
<cwre> Props
<clever> cwre: having done LFS, i'm able to read and understand the stdenv bootstrap in nixpkgs
<joepie91> celph: also I'm slowly (very slowly...) working on better tooling and guidelines for documentation, so things should improve; but for now, you should expect to have to do a good amount of research to get things going
<cwre> I've seen enough of the hotdog making process to know that I don't really want to know much more about it. :)
<clever> lol
<ottidmes> ignorance is bliss!
<clever> cwre: the basics of LFS, is building an entire toolchain (bash, gcc, glibc), that is rooted to /tools/
<cwre> Until things break!
<clever> cwre: so it uses /tools/lib and /tools/bin/ and even /tools/lib/ld.so
<celph> joepie91: yeah, that's where I've been for a while, funny enough I found a different user wiki last night and got a ways with that
<cwre> clever: no, stop!
<cwre> Learning!
<cwre> Bad!
<ToxicFrog> The aggravating thing is that what I really want isn't nix-on-SUSE but some sort of SUSE-on-NixOS
<joepie91> celph: oh, and I regularly pillage the Arch wiki and AUR for hints on how to get stuff working in NixOS :P
<clever> cwre: then you can mount that entire thing into a chroot, and be 100% isolated from the original host toolchain
<ToxicFrog> Like, I want NixOS's immutable system snapshots and rollbacks and not having to worry about /etc getting all crufty and stuff
<joepie91> celph: which wiki is that?
<cwre> In reality, I am interested, I just don't have the time/patience for stuff like that anymore.
<clever> cwre: and then repeat it all, but against / this time, to make the real install
<ToxicFrog> But I also want to be able to run things on it that expect an FHS system
<clever> cwre: nix simplifies it with storepaths, but does the same basic process
<cwre> clever: so you build the toolchain to build the toolchain?
<celph> joepie91: same here. re, wiki: https://nix-cookbook.readthedocs.io
<clever> cwre: yeah
<joepie91> ahhhh
<joepie91> that one
<cwre> Where does the recursion end??
<joepie91> not strictly a wiki though is it?
<cwre> At the recursion, of course.
<celph> joepie91: it is... extremely incomplete
<clever> cwre: with LFS, they need a toolchain at a non-standard path, that can be transplanted from the host to the guest
<joepie91> cwre: recursion will continue until morale improves...
<clever> cwre: without it depending on any part of the host
fikse has quit [(Ping timeout: 255 seconds)]
<celph> joepie91: it's technically not a wiki, and most of its useful resources just link to some blog posts
<clever> cwre: and nix's closures can basicaly do the same thing, just write the right expression s and it does it for you
<joepie91> this explains the alnguage
<joepie91> language*
<ottidmes> What do people do to install their servers (e.g. a VPS) without setting up the filesystem manually and such?
<joepie91> in a way that Actually Makes Sense
<celph> joepie91: yes I've got that open
<ottidmes> I could create a custom ISO, but is that what is generally done?
<joepie91> ottidmes: with NixOS you mean?
<cwre> ottidmes: what do you mean?
<ottidmes> joepie91: Yeah
<celph> this weekend is "study Nix weekend"
<cwre> celph: amen to that brother!
<cwre> or sister
<celph> and possibly also "learn rust weekend" and "reimplement a good algorithm that only has this one shitty fortran implementation weekend"
<joepie91> ottidmes: there's a few approaches. some providers offer NixOS installation ISOs or images, in other cases you need to eg. `nixos-infect` a Debian system to get NixOS running. besides that, NixOps is a tool that can actually do the configuration on any existing NixOS host
<joepie91> etc
<celph> cwre: sister :p
* cwre reads fortran
* cwre shudders
<joepie91> ottidmes: I currently have a collection of 1 (one) servers running, at Afterburst, and they added a NixOS image for me on request, and I use NixOps to manage it
<clever> ottidmes: i have also written a kexec based tool that works similiarly to nixos-infect
<cwre> celph: huzzah, I had a 50% chance of being right!
<joepie91> (can strongly recommend Afterburst if it's within budget, btw)
<cwre> Unless you take into account statistics regarding linux users, nix in particular, and then irc users that are also nix users.
<ottidmes> joepie91: NixOps seems to be more cloud scale, like having many amazon instances and being able to easily scale those (not my use). I can mount a custom ISO on my VPS
<joepie91> celph: you seem to be on a similar learning path to me :p
<joepie91> ottidmes: nah, works fine for one system too
<clever> ottidmes: i have considered using nixops just to manage my laptops
<joepie91> ottidmes: here's my current NixOps configuration: https://git.cryto.net/joepie91/nixops-configuration -- presently it's only running https://pastebin-stream.cryto.net/ but more will be added later
<ottidmes> joepie91 and clever: Alright, thanks, I will give NixOPS another look!
<joepie91> ottidmes: start in networks/ and systems/ and follow the imports from there :)
<celph> cwre: it's fortran 95, less bad, but they fucking inlined everything and someone who worked on this decided "rather than refactor this for multiprocessing, lemme just write a script that does a find-and-replace on it to insert a slightly different hard-coded filepath which then re-compiles the program n times where n is the number of processes, one for each chunk of the inputs"
<clever> ottidmes: if you set the targetEnv = "none"; in nixops, it will just ssh into an existing nixos machine and manage it
<celph> fucking psychologists
<clever> ottidmes: and its up to you to deal with the hardware layer (or creation of VM's within control panels)
<joepie91> clever: dont even have to set it explicitly
hiratara has quit [(Ping timeout: 240 seconds)]
<cwre> celph: I don't even know fortran, I just know it's bad.
<clever> joepie91: ah, its the default value?
<cwre> celph: and that's disgusting, lol. I don't know multithreading but that sure as hell isn't how you do it.
<joepie91> clever: yep
<clever> ah
rardiol1 has joined #nixos
<cwre> Being a linux user, I feel really out of place because I'm like one foot in CS and hands and other foot in sysadmin.
<ottidmes> clever: Yeah, so that bit, is there a way to automate it other than an image if you can create them, or some setup script, I would love to just be able to mount an ISO containing everything ready, but maybe that means doing a custom ISO with NixOPS and a setup script for the hardware if there is no way around
<joepie91> ottidmes: you *can* produce a custom ISO, but most providers won't let you upload it
<joepie91> :p
<clever> ottidmes: this is a custom nixos module, that pre-installs a script called justdoit
<celph> cwre: it's not "bad" so much as it shows its age, newer programming constructs are bootstrapped onto 40 year old ideas about how code should be written, as a result it can be messy and fragile, and newer constructs can be syntactically unintuitive.
<clever> ottidmes: when ran, that will format /dev/sda, and install nixos
<cwre> joepie91: take this iso I made that definitely doesn't contain a kubernetes 0day exploit on it, please!
<joepie91> cwre: don't think you need to put your own vulns in it
<joepie91> :)
<clever> ottidmes: so you could create an ISO that has this module included, boot the ISO, ssh in, and run justdoit, and your done
<cwre> celph: definitely doesn't sound fun though
<ottidmes> clever: Nice, I will definitely steal some ideas from that!
<joepie91> I have been, uh, less than impressed with the security hygiene in the containerize-all-the-things community
<cwre> joepie91: where's that salt meme when you need it?
<cwre> joepie91: it's not good, that's for sure.
<joepie91> by which I mean "everything is pwnable"
<dash> joepie91: for now
<ottidmes> clever: Yeah, I chose my VPS provider in part on its support to mount custom ISOs, so yay, that seems a nice approach :)
<clever> ottidmes: the directory above that file, is a kexec trick i made, that can hijack any existing linux machine
<clever> ottidmes: so you dont even need support for custom ISO's
<cwre> ottidmes: but how much more expensive?
<joepie91> ottidmes: which provider?
hiratara has joined #nixos
<ottidmes> cwre: It was also the cheapest provider I could find given the amount of memory
* joepie91 bets OVH
<cwre> ottidmes: gimee the DEETS yo
* cwre uses Pacmanvps
<ottidmes> big disclaimer: I have yet to install NixOS on it, so maybe the hardware is not as good as I like, I have not tested it thorougly yet, not yet have had the time
<cwre> ottidmes: I bet you don't have to worry about HIDPI though :)
<ottidmes> I have a VPS at: https://budgetnode.com/ but used some discount link which gave me like 1GB more memory for the same price
<joepie91> ahh, budgetnode.
<joepie91> be very careful :)
<ottidmes> experience with them?
<cwre> with a name like that I was expect some Web 1.0 bullshit.
<celph> cwre: I'd much rather be working in Rust, C++, or Go tbh. The only performance reason to implement anything this low is stripped away by the fact that everything takes too long to put in working order, breaks too easily, and winds up suboptimal because unsafe languages promote messy practices when strict guidelines aren't adhered to.
<cwre> s/expect/expecting
<joepie91> ottidmes: they botched a provider acquisition and generally behaved rather shadily throughout the process
<dualinity> yea i was wondering actually how to easily install a nice nixos...... you can't really "copy paste" on a empty system ;P
<joepie91> and they have (or at least had) some dubious ToS that led me to not sign up with them
<dualinity> also wifi won't work out of the box
<celph> cwre: C would actually be worse for this job though, I think...
<cwre> celph: I don't program much at all.
python476 has quit [(Read error: Connection reset by peer)]
propumpkin has joined #nixos
<cwre> celph: surprising, haha.
<joepie91> ottidmes: their service is fine afaik, it's just that I don't trust them as a company
<ottidmes> joepie91: Hmm, good to know, my previous one was Verelox... ex-admin broke the place, but they should be up and running again
<joepie91> and Verelox has its own special story
<ottidmes> lol, so basically, do not follow my advice regarding VPSs :P
<joepie91> ottidmes: in particular here onwards: https://www.lowendtalk.com/discussion/comment/2303654/#Comment_2303654
<joepie91> heh
<joepie91> ottidmes: I suspect you might be trying to target too low a price bracket
<celph> cwre: F95 implements some good tools abstract vector manipulation - useful in psych where you're doing statistics, neural nets, etc.
<ottidmes> joepie91: I am :P but none of them failed due to the hardware quality
<joepie91> ottidmes: there's a certain price point below which you end up with summerhosts that literally only operate for a summer holiday, hosts with poor company operations, dubious stability, etc.
<joepie91> ottidmes: generally "whatever ramnode charges" is a reasonable reference for what's a sustainable price
<celph> cwre: C hasn't changed since 99, as it shouldn't. It's a simple abstraction from a very standard model of computer. That's a very good thing to be, but not for all purposes.
contrapumpkin has quit [(Ping timeout: 255 seconds)]
<joepie91> ottidmes: anyway, all my more important stuff is hosted with slightly-more-expensive-than-cheap providers, just because it means they're going to be around for a while and are financially stable
<dash> celph: it was a good thing in 1970 :)
<joepie91> afterburst, ramhost, ramnode, etc.
<ottidmes> joepie91: I believe you, I mean, some of the prices could never sustain a company realisticly, but since it is for a personal server, I am fine with
<celph> cwre: *barely changed
<celph> dash: I'm sure it was but I'm a dirty millenial who wasn'
<celph> wasn't around to see it
* cwre high fives celph
<joepie91> ottidmes: ramnode is not within your budget? :)
<joepie91> that's probably the cheapest of the sustainable lot
* cwre is 22, so he's not sure if he counts as a millenial
<dash> celph: same here
<joepie91> ottidmes: oh, warning ahead; NixOS will currently *not* run on OpenVZ
<dash> celph: C has been a bad idea for several years but we're just now getting to the point that we have credible alternative for all of its use cases
<joepie91> it is theoretically possible to make it work
<joepie91> but nobody has done it yet
<joepie91> :p
<joepie91> at least not in a way that requires no cooperation from the provider and that works cross-provider
<cwre> joepie91: what's that?
<joepie91> cwre: OpenVZ, you mean?
<ottidmes> joepie91: Considering I am living on my savings with no income (will change soon), I try to get the best lowend hosting
<cwre> OHH
<cwre> sorry
<cwre> joepie91: mishighlight
<joepie91> ah
<joepie91> lol
<cwre> dash: what's the alternative?
<dash> cwre: depends on what you're doing
<joepie91> ottidmes: right. just don't forget the time cost :)
<cwre> joepie91: #ircproblems
<joepie91> cwre: another one: trying to tabcomplete difficult-to-spell words
<celph> dash: Eh, I don't think C will be a bad idea for a while, it just has better alternatives for most use-cases
<ottidmes> joepie91: True, that is why I no longer want to host at a place that does not support custom ISOs
<joepie91> years of IRC use and I still try to do that
<cwre> joepie91: yeah, haha...
<joepie91> ottidmes: right :P
<dash> cwre: java, rust, haskell, javascript, python, C#, clojure, ...
<cwre> I only use python and bash for anything ever
* joepie91 has a small fleet of cheapo VPSes
ryanartecona has quit [(Quit: ryanartecona)]
<joepie91> lots of OpenVZ though
<cwre> joepie91: we like to call that a "botnet"
<joepie91> so I really need to figure out NixOS-on-OpenVZ
<joepie91> otherwise consolidate stuff
<dash> celph: C is an acceptable choice for programs that don't have to be correct
<joepie91> lol
<clever> joepie91: my irc client is good at completing with just 2 letters most of the time
<joepie91> cwre: nah, they're VPSes I own :p
<cwre> joepie91: "compliant botnet"
<ottidmes> joepie91: I also have a VPS at TransIP, but even though they fall into the better bracket, they do not support custom ISO mounting
<celph> dash: ouch >.>
<joepie91> I have some that I pay $1.50/month for
<clever> joepie91: and i have considered setting loose ~30 bots in this channel named after nix functions, just so i can tab-complete things like callPackage in here :P
<joepie91> heh
<joepie91> clever: I feel like a client plugin is easier at that point...
<cwre> joepie91: lol.... What is that a stick of ram that they plug into an outlet for you?
<joepie91> hahaha
<dash> celph: the evidence for the existence of people that can write correct programs in C is scant
<clever> joepie91: but then nobody else benefits! lol
<joepie91> cwre: nah, usually tiny OpenVZ boxes
<joepie91> cwre: HostForce is probably the most outrageous one, sec
<rardiol1> Could someone please look at this pr please? https://github.com/NixOS/nixpkgs/pull/16683 . It's old and looks like it got lost in the backlog, but I just updated and fixed the problem and wanted it merged before I have to update it again...
<celph> dash: C is an acceptable choice for programs that have extremely strict resource requirements, most good C is on embedded stuff rn
<joepie91> cwre: oh, it's gotten a little more expensive, cheapest plan went up from $2/month to $3/month: https://clients.hostforce.com/index.php?/cart/vps/
<joepie91> oh, they have a KVM VPS for $2.50/month
<joepie91> :p
<celph> dash: I would agree that most people are terrible at C and it's unsuited for projects of any typical size
<cwre> haha..
<joepie91> no word on quality yet though
<tilpner> Is there no way to make nix-build ignore ~/.config/nixpkgs? :/
sary has quit [(Remote host closed the connection)]
<cwre> celph: lets migrate linux to node
<clever> tilpner: nix-build --arg config '{}'
<ottidmes> celph: Do you have suggestions for stress testing a C program. I have made my first C project ever (besides my Pebble watchface), and learned about valgrind fast enough after one too many segfault, but what tools could you suggest to remove as many bugs as possible
<joepie91> cwre: but yeah, I have some stupidly cheap boxes that I've picked up during temporary promos throughout the years
<joepie91> pretty sure some of them are at cost
<ottidmes> clever: I said stress testing, but I think fuzzy testing is more applicable for correctness
<cwre> joepie91: VPS hoarding, up next on hoarders.
<cwre> joepie91: that is pretty funny though.
<joepie91> mind, that is yearly
<clever> ottidmes: there is even a variant that is embeded into a modified qemu, that can fuzz kernels
<cwre> joepie91: holy shit
<cwre> xD
<celph> ottidmes: as far as I know Valgrind is the gold standard
dualinity has quit [(Quit: Page closed)]
<joepie91> so yeah, I have a $17.50/year OpenVZ box with 1024MB RAM, normally $70/year, hosting my more... controversial security research stuff :P
<joepie91> DDoS mitigation too
<cwre> joepie91: xD
<joepie91> (for obvious reasons)
<joepie91> host in question is SecureDragon
<cwre> Alright, gotta go. Driving to IL tonight.
<ottidmes> clever: Thanks! Heard about the term, heard about it before, but nice to have found it again :D
fikse has joined #nixos
<joepie91> good host too
<cwre> I'll be on later probably!
celph_ has joined #nixos
<joepie91> also, you'd be surprised how helpful it is to know your providers personally... means issues can be resolved via IRC PM 90% of the time
<clever> ottidmes: triforce works by forking the entire bloody qemu process, to create clones of the vm
<clever> ottidmes: and then each clone of the vm gets different input data
<clever> ottidmes: so you can boot the vm once, then test a single function on 1000's of different bits of data
<celph_> Connection dropped whoops
* joepie91 wants to see more Rust on embedded stuff
<tilpner> clever - Thank you! What component accepts this argument? (It's oddly global)
<ottidmes> clever: Nice project, and the fact that they are using AFL, seems they believe in its capability
<clever> tilpner: which argument?
ryanartecona has joined #nixos
<tilpner> clever - config. My nix file takes "{ ... }:", so I wonder where "config" is passed to
<celph_> ottidmes: I'm probably not the best person to ask, I know a bit about engineering because I know engineers, but I'm a scientist. QA isn't my wheelhouse.
celph has quit [(Ping timeout: 260 seconds)]
<dash> clever: zowie
<clever> tilpner: can you link a gist with the file?
<celph_> most of what I do needs to compile low and run quick, but once it works it's unlikely to need to be run more than a couple times.
<tilpner> clever - It's my equivalent to configuration.nix [ https://gist.github.com/tilpner/317d4a8a9189d9a1ae0137a4f7e67ad7 ], and evaluating the system argument somehow took my users ~/.config/nixpkgs/config.nix into account (which enabled Firefox flash, which currently doesn't build)
<ottidmes> celph_: Ah ok, thanks anyway
fikse has quit [(Ping timeout: 268 seconds)]
<clever> tilpner: ah, try putting a syntax error into your config.nix and then run it with --show-trace
<clever> tilpner: that should give a backtrace to where it came in from
* tilpner tries that
<ottidmes> I have been programming of years, but only started programming in C a few weeks ago, because I firmly dislike such unsafe languages, but I have toned down somewhat, and now am OK with smallish C projects, still don't like big C projects and C++ though
<clever> tilpner: also, useSandbox is a nix option, not a nixpkgs option, so it does nothing on lin e13
<celph_> ottidmes: No worries, sorry I can't give you more than just basic recommendations
<dash> C is probably OK if you never have to process any user input
<celph_> ottidmes: that's fair, big C projects are mostly a terrible idea, and C++ Was A Mistake
<ottidmes> I am using it for a X tool, so I am using XCB/X11, there are wrappers, but all documentation obviously is about C, so it just makes way more sense to stick to C, also it small enough
<celph_> dash: I'd raise C is probably okay, if you only have to operate on a well-defined set of inputs
<tilpner> clever - That points to pkgs/top-level/default.nix at "stages = ...", which inherits lib, localSystem, config and others. Could it be localSystem that causes the evaluation?
seppellll has quit [(Ping timeout: 240 seconds)]
Jackneill has quit [(Remote host closed the connection)]
<clever> tilpner: can you add the entire trace as another file in the previous gist?
<tilpner> (And I'll remove the useSandbox, thanks for noticing)
<dash> celph_: Sure. which pretty much rules out reading from file descriptors ;-)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor pushed 1 new commit to master: https://git.io/v7TNU
<NixOS_GitHub> nixpkgs/master 8537cf0 Bjørn Forsman: CONTRIBUTING.md: suggest "nixos/<module>" prefix for NixOS changes...
NixOS_GitHub has left #nixos []
mrcheeks has quit [(Quit: ERC (IRC client for Emacs 26.0.50))]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor closed pull request #27404: CONTRIBUTING.md: suggest "nixos/<module>" prefix for NixOS changes (master...contributing-add-nixos-prefix) https://git.io/vQd0b
NixOS_GitHub has left #nixos []
<celph_> dash: You're not strictly wrong.
<clever> tilpner: all of that is inside a copy of nixpkgs-channels from revision ed07, which isnt mentioned in any of the fetchurl or fetchgit calls
<clever> tilpner: oh, i think i know
<clever> tilpner: if you import the default.nix from this "overlay", it wont actualy be used as an overlay
<tilpner> Haha, yes, I just noticed it. I was testing Infinisils snippet, and forgot to remove it :D
<clever> tilpner: internally, it will re-import its own chosen nixpkgs version, and not force the config
<clever> and then apply the overlay to that nixpkgs
<celph_> dash: I would argue you can be a little looser. Parsing is out of the question. You have a set of valid inputs, you read n characters, check if they match a valid input, otherwise do a clean exit.
<ottidmes> celph_: Whoops, I happen to have 2 parsers and I read 1 to 2 files...
<tilpner> This was bad, I should not have left their file in my config. Thanks for helping once again, clever! :)
erasmas has quit [(Quit: leaving)]
<clever> tilpner: yep
<celph_> ottidmes
<celph_> whops that was supposed to be a backspace
thc202 has quit [(Ping timeout: 248 seconds)]
hiratara has quit [(Quit: ZNC - http://znc.in)]
<celph_> ottidmes: Honestly then if you can switch to a language that has memory safety (Rust) it's probably a good idea, there's a fair chance your problem is happening because of insufficient checking. C is also fine if you don't care about having loads of undefined behaviour
hiratara has joined #nixos
<ottidmes> tilpner: What did you just setup, overlay stable and unstable with nixpkgs-mozilla? I have yet to use overlays, but would love to have complete working example
<ottidmes> celph_: I don't really have a problem, but I am unsure whether the might still be problems lurking, hence my question about a fuzzy tester, but you are right. Rust would be better, maybe I will do a rewrite someday. I will probably first finish the C version to completion
<celph_> ottidmes: oh sorry I thought you mentioned segfaults at some point
<yegortimoshenko> can i make my own derivation that is based on another derivation, the same build instructions but different default options?
<ottidmes> celph_: I did, that is how I came to know about valgrind at the time, but as far as I know valgrind is not a fuzzy tester
<celph_> ottidmes: other good way to find undefined behaviour: give your program to users, have it log all sets of inputs in the background
<tilpner> ottidmes - Infinisil was trying to get nixpkgs-mozilla working, and I tried to help them, so I put their snippet into my module imports directory, but forgot to remove it afterwards. stable and unstable are not overlays, but two different versions of nixpkgs so I can choose what branch to have my system on and pick packages from either. I define my environments in my own overlay instead of packageOverrides,
<tilpner> and I pass that overlay to stable/unstable
<ottidmes> celph_: Yikes, that sounds scary, I would rather just have clear link to my github page then, and have them submit issues themselves
<ottidmes> celph_: But true, the more people are using it, the more changes edge cases will be found
<celph_> ottidmes: the problem with that is some users don't know what they did to cause an issue. there was something I read at some point about how it's a good idea to have a general error catcher thing that catches a crash and logs the program state at the time of the crash. I forget ideas about how to implement such a thing.
<ottidmes> tilpner: Ah that explains. I have the same setup (choosing between stable and unstable), but have yet to replace packageOverrides with an overlay
<celph_> see now we're getting to the part where it starts to show that I'm not-an-engineer
<ottidmes> celph_: I once did an internship at a company and worked on software that did just that for the software suite they were selling there customers
<ottidmes> celph_: So no, you could still have fooled me ;)
<joepie91> time for sleep
<joepie91> night, all!
<ottidmes> good night!
<celph_> ottidmes: it's a good idea. although I firmly believe that sharing crash reports should be optional, and it takes effort to design things in such a way that you not only know the program state, but how the program arrived at that state.
<joepie91> (also, I think I understand Rust lifetimes now)
ryanartecona has quit [(Quit: ryanartecona)]
<celph_> ottidmes: or: program statelessly
<ottidmes> celph_: Yeah, that was the point of the crash analysis software, it was capable of generating all kind of useful graphs that made it easy to pinpoint were things were going wrong in the software, it also highlighted the most important issues that way, so the dev's could focus on fixing those first, so quite useful
sary has joined #nixos
<celph_> ottidmes: wonder if there are any tools like that for FOSS
<qknight> is there a types.function/
<qknight> s%/%?%g
<jtojnar> I am getting “package has an unfree license” error when trying to install firefox-nightly from nixpkgs-mozilla channel https://github.com/mozilla/nixpkgs-mozilla/blob/master/default.nix
<jtojnar> even though I have unfree packages enabled https://gist.github.com/jtojnar/da5390efd7db8a2e93e52e9e9f0ac696
<jtojnar> any ideas?
<celph_> ottidmes: just a drop-in "import state-tracker"
<tilpner> jtojnar - Try enabling unfree in your ~/.config/nixpkgs/config.nix
<celph_> all it does is catch segfaults and dump the state before exit
<celph_> maybe also provide some tracing
<celph_> I'm sure it's out there
<ottidmes> celph_: Probably a variant of it, but to be on the level of what that company was using it probably has to be specialized too much
<bachp> Does somebody have experience with mass deploying nixos servers to bare metal. For example a blade system with 16 servers?
<celph_> anyway I've put off work too much
<tilpner> ottidmes - There's no rush to replace your packageOverrides, but I feel like overlays scale better because multiple overlays combine nicely into a new nixpkgs. I e.g. have an overlay that automatically provides pkgs/foo.nix as pkgs.foo without listing them anywhere, and another overlay that overrides a few packages with custom sources and every overlay can stay in its own file (so everything feels clean)
<clever> celph_: i recently did systemd.coredump.enable = true; and have found it handy in catching things
<clever> celph_: though it still relies on ulimit being set as normal
<jtojnar> tilpner: that seems to work, thanks, I do not understand why putting it to configuration.nix as suggested by the error message for nixos-rebuild does not work
<ottidmes> tilpner: Yeah it definitely seems a objectively better way of doing things, but I will probably only start looking seriously into them when packageOverrides is not powerful enough (or becomes to ugly)
<celph_> clever: useful (although I feel like I need to dislike it because systemd) - but for ottidmes there was the thought that there might be a dumper that would do the job on.. was it a Pebble? Can a pebble run Linux?
<clever> celph_: which pebble?
Sonarpulse has quit [(Ping timeout: 255 seconds)]
<celph_> clever: I don't know, although given we were talking about C on embedded systems, I'm guessing it's one of the ones that can't.
<ottidmes> celph_: I mentioned my Pebble because that was the first time I had to use C
<celph_> Pebble has full-blown smartwatches and also microcontroller based stuff right?
<celph_> Oh
<ottidmes> Pebble is no more :(
<clever> if the cpu has an MMU, they you should be able to set a pagefault handler that catches access to unmapped memory
<celph_> I know nothing of these watch contraptions. What is watch.
<clever> but thats typically handled by the existing kernel
Rotaerk has joined #nixos
<ottidmes> I do not dare to tinker with its firmware, considering Pebble went bankrupt, I want to keep it in working order as long as possible
<clever> ottidmes: that will depend heavily on how reliable the unbricking method is
<tilpner> jtojnar - I had a related issue just minutes ago, and clever pointed out that nixpkgs-mozilla imports its own nixpkgs if you don't provide one, which would discard your configuration.nix allowUnfree: https://github.com/Infinisil/nixpkgs-mozilla/blob/master/default.nix#L14
<ottidmes> Alright, in addition, it is not really my thing to tinker with the hardware, I am more of software person, hence my preference for higher level programming languages in general
<celph_> ottidmes: Learn To Love Your Electronics On Every Level (TM)
<srhb> cwre: Backlight and everything? Nice!
<clever> ottidmes: at a glance, i dont think the cpu supports pagefault detection
<ottidmes> The more I get to know about OSes and hardware, the more I get to think, how the hell do they manage to work this reliable
ison111 has quit [(Quit: WeeChat 1.7.1)]
NightTrain has joined #nixos
<ottidmes> clever: It is more, there are so many things that could go wrong at all the different levels, so it amazes me how reliable hardware generally is
<clever> yeah
jgertm has quit [(Ping timeout: 255 seconds)]
fikse has joined #nixos
<Fare> What does this message from nixos-rebuild mean? don't know how to build these paths: /nix/store/7q220zq7319h6ysg1azv8qf94xsz9vs1-kross-5.34.0-bin /nix/store/7y7pzwafawx6zxsqli5y781ypa4ay4gc-kross-5.34.0
<Fare> and then nix-daemon eating 100% of CPU
justelex has quit [(Ping timeout: 240 seconds)]
<Fare> meanwhile download-from-binary-cache.pl (yikes, perl) eats 5% of CPU
fikse has quit [(Ping timeout: 260 seconds)]
<Fare> great, now it wants to recompile the android sdk or so :-/
markus1189 has joined #nixos
<srhb> Fare: Please tell us more about what you're trying to do and what system you're on
markus1199 has quit [(Ping timeout: 260 seconds)]
* Fare is trying to understand whether it's a good idea to work from nixpkgs master. Probably not.
<Fare> looks like the jdk was updated lately, but public hydras haven't caught up with it, so everything java is getting re-built.
<celph_> Out of curiosity, what does the crowd here think of Redox?
jgertm has joined #nixos
bennofs has quit [(Ping timeout: 255 seconds)]
<celph_> RedoxOS but also the kernel. I like the concept, don't know much about how the actual architecture works besides it being a microkernel arch
<tilpner> Fare - You really want to stay on a channel, they have binary caches. Look up their current status on howoldis.herokuapp.com
<Fare> what's Redox?
<celph_> https://www.redox-os.org/ microkernel *nix implemented entirely in Rust
<qknight> does the options system have support for passing functions?
ison111 has joined #nixos
<celph_> since we were singing Rust's praises just a bit earlier
endformationage has joined #nixos
<celph_> Fare: whoops meant to direct the above link to you
<tilpner> celph_ - I'm sceptical about how competitive they can get. I like the safety promise, but "We still have a relatively slow kernel since not much time has been spent on optimizing it" may stay a problem for adoption
<Fare> celph_, so, is nixpkgs-unstable what I should be following?
phreedom has joined #nixos
<tilpner> Fare - I'm on nixos-unstable and nixos-17.03
<tilpner> (and it works well)
<celph_> tilpner: ah, didn't know they hadn't been doing much wrt optimization. As far as I know it's mostly maintained by this one guy as his side thing, and next release is targeting code minimalism.
<tilpner> celph_ - I was quoting https://doc.redox-os.org/book/design/kernel/disadvantages.html , which may be out of date. Their organization seems to be very active, it doesn't give the impression of a one-person side-project: https://github.com/redox-os
<tilpner> (Look at all those Updated ... ago (and their changelogs))
<celph_> tilpner: sorry, I meant to specify, the kernel is one dude. that I remember, although there may be more enthusiasm since last I checked
takle has joined #nixos
<ison111> Not an important question, but maybe someone has some advice? Some of the games I've gotten working on NixOS (using things like patchelf) have some typing issues. Keyboard input seems to register just fine for in-game stuff but when typing in a chatbox for example nothing shows up and I have to copy-paste to type. Maybe some library still isn't being loaded?
<Fare> if I pick nixpkgs-unstable, does that mean all the packages will be built, or only a "common" subset of them?
<tilpner> qknight - Options themselves should take functions too, but I can't find a type for them, so you would forfeit the type checking and end up with possibly bad errors: https://nixos.org/nixos/manual/#sec-option-declarations-eot
<tilpner> celph_ - Ah, that might be true, yes
<Fare> ison111, maybe you need a proper LD_LIBRARY_PATH to help find some dynlibs?
pie__ has joined #nixos
pie_ has quit [(Remote host closed the connection)]
Infinisil has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
<ison111> Fare: Well the games complain about missing libraries and I've added their paths to LD_LIBRARY_PATH until the game runs. But I'm wondering if I'm still missing some things that just fail silently. Other than typing in input-boxes though everything else seems to work perfectly
<tilpner> Fare - It's not a good idea to use nixpkgs-unstable as your main channel for NixOS. It might be fine for a Nix installation on another distro
<yegortimoshenko> Is it possible to isolate a single binary from a package so that other binaries are not seen in $PATH?
<ottidmes> yegortimoshenko: create your own package that depends on the package you want to isolate from, and copy its bin file to your new package's $out/bin, and then replace your new package with the targeted package in systemPackages
<ottidmes> yegortimoshenko: But that is just an idea, not sure if it will work
<Fare> tilpner, what should I be using as my main channel?
<ottidmes> yegortimoshenko: so in the installPackage of your new package do something like "cp ${pkgs.target-package}/bin/target-bin $out/bin"
<yegortimoshenko> ottidmes: it sounds solid and should work. thanks! i thought about introducing options to the derivation, but i don't see anything helpful in package's ./configure --help
<Fare> do you recommend having one channel for root, another channel for $USER ?
<ottidmes> Fare: I would recommend to use the latest stable if you are running NixOS, like Fare said, if you are only using the Nix package manager, the unstable branch generally is fine
<gchristensen> nixos-unstable is acceptable for nixos. nixpkgs-unstable is dangerous to use for nixos
<tilpner> Fare - nixos-17.03 and nixos-unstable are fairly common. You can also mix channels to e.g. run your system on the more stable nixos-17.03 and pick a few packages from a more up-to-date nixos-unstable. As I understand it, nixpkgs-unstable is just nixos-unstable with fewer successful tests (and thus passes sooner)
<gchristensen> however stable will receive security updates faster
<Fare> so, say, track nixos-17.03 for nixos-rebuild, and track nixpkgs-unstable for $user's nix-env ?
<yegortimoshenko> gchristensen: i didn't have much luck with nixos-unstable on AWS two days ago, GRUB required manual input
<gchristensen> that would work
<gchristensen> nixos-unstable is unstable :)
<yegortimoshenko> it works on packet though ;-)
<Fare> what about security updates?
<Fare> say when there's a 0-day exploit for systemd...
<yegortimoshenko> they push the update to stable nixos branch
<gchristensen> the update will be availale fastest through nixos-17.03, as I noted a few minutes ago
<gchristensen> it isn't uncommon for nixos-unstable to take 2wks+ to receive critical updates, due to its unstable nature and the stringent testing
riclima has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Fare> ok
<Fare> so I really want to track nixos-17.03 for nixos-rebuild as root
<gchristensen> IMO? yes :)
<Fare> and if I have some bleeding edge packages, have $USER use nix-env from whichever bleeding edge channel I'm working on.
<gchristensen> sure
<Fare> speaking of which... I couldn't convince nix-env to follow a git checkout in my NIX_PATH, contrarily to nixos-rebuild
<Fare> How am I supposed to tell nix-env to follow some branch on some nixpkgs fork repo?
riclima has joined #nixos
<gchristensen> I dunno, I've never really used nix-env