<gchristensen>
globin: is staging a mess right now?
ebzzry has joined #nixos
<clever>
Infinisil: i can see the log
<gchristensen>
ooh wow I just got ipv6
<Sonarpulse>
gchristensen: I don't think it should be?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NickHu opened pull request #27823: urxvt_autocomplete_all_the_things: init at 2016-10-30 (master...aatt) https://git.io/v7Bu5
NixOS_GitHub has left #nixos []
<gchristensen>
I'd like to merge several mass rebuilds :)
alx741 has joined #nixos
johnw has joined #nixos
m0rphism has joined #nixos
<joepie91>
whee, Servo doesn't build
<joepie91>
pretty sure it's using the wrong rustc version...
joehh has quit [(Ping timeout: 260 seconds)]
<joepie91>
(when using the build stuff in the Servo repo, that is)
<joepie91>
ah, nevermind, I think I know why
<joepie91>
downloads its own copy of rustc and cargo and everything, which of course isn't going to work unpatched, so I'm guessing that it tries to prepend the bundled copy to PATH, and then that fails to execute, and therefore it falls back on the next result in PATH which is the system-environment rustc/cargo...
<Infinisil>
clever: Lol, it doesn't work when I have only javascript allowed for nixos.org
<Infinisil>
As in it gives me the error that logs aren't available
<Infinisil>
And jquery
<Infinisil>
Need to also allow nixos.s3.amazonaws to see them
eacameron has quit [(Remote host closed the connection)]
<Infinisil>
NoScript is messing with me sometimes
<clever>
Infinisil: aha
<Infinisil>
Damn, it's that keyboard "f" key error again
<mpcsh>
is it possible to have multiple src = builtins.fetchurl lines?
<mpcsh>
or at least, is it possible to fetch something from a different location?
<mpcsh>
oh wait nvm
<mpcsh>
I'm dumb
<mpcsh>
ignore me
eacameron has joined #nixos
https_GK1wmSU has joined #nixos
https_GK1wmSU has quit [(Excess Flood)]
eacameron has quit [(Remote host closed the connection)]
jgertm has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
<mpcsh>
Infinisil: so I figured out the directory patching is relatively easy to do. Their included run_keybase script will work so long as I replace every occurrence of "/opt/keybase" with the value of "$opt/share". this is less of a nix-specific question but how the hell do I manage that with sed?
thc202 has quit [(Ping timeout: 240 seconds)]
<mpcsh>
(keeping in mind that "$out" has slashes in it)
eacameron has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
https__GK1wmSU has joined #nixos
https___GK1wmSU has joined #nixos
<Infinisil>
mpcsh: Have a look at the substitute function, hold on
https___GK1wmSU has quit [(Read error: Connection reset by peer)]
https__GK1wmSU has quit [(Read error: Connection reset by peer)]
<mpcsh>
Infinisil: well sure, the problem is that just "s/\/opt\/keybase/$out\/share/" doesn't work because when the shell expands $out, it termitates the command early
<hodapp>
huaaaargh. I finally got OpenCV's Python-wheel-reinventing-footgun-loading-explosive-laden script to generate Python bindings for my own C++ code, and it's compatible with the existing OpenCV Python bindings
eacameron has quit [(Remote host closed the connection)]
Nobabs27 has joined #nixos
eacameron has joined #nixos
<hodapp>
I guess I should put this into a Nix build somehow... I'd have to do some weird crap, like patch the files in a way that depends on arguments to the derivation
<Nobabs27>
how do I get GTK themes to work & be set?
<Infinisil>
hodapp: \o/
<mpcsh>
Infinisil: oh, sorry that's not sed lol I'll read it
<Infinisil>
mpcsh: ;)
<Infinisil>
mpcsh: And a good resource is to just grep through nixpkgs for usage examples
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel pushed 1 new commit to master: https://git.io/v7B2E
<NixOS_GitHub>
nixpkgs/master f3a54b0 Thomas Tuegel: otfcc: init at 0.8.6
NixOS_GitHub has left #nixos []
kriztw has quit [(Remote host closed the connection)]
<mpcsh>
Infinisil: so I tried this command: substitute usr/bin/run_keybase $out/bin/run_keybase --replace /opt/keybase $out/share
<mpcsh>
clever Infinisil: thanks to both of you for all the help - it might not be much but I feel like I learned a lot about nix/nixos just building this little package. I'm gonna walk the dog and then submit a PR. Thanks again for being so welcoming and helpful to a noob :)
joehh has quit [(Ping timeout: 240 seconds)]
hellrazor has quit [(Ping timeout: 255 seconds)]
Sonarpulse has quit [(Ping timeout: 260 seconds)]
https_GK1wmSU has joined #nixos
gnuhurd has quit [(Ping timeout: 240 seconds)]
https_GK1wmSU has left #nixos []
joehh has joined #nixos
<Infinisil>
mpcsh: I'm glad I could help!
<Infinisil>
Writing a first package is a great way to learn it
johnw has quit [(Ping timeout: 258 seconds)]
johnw has joined #nixos
darlan has joined #nixos
<jtojnar>
Does anyone here use Firefox Nightly? I see broken fonts there.
<Infinisil>
jtojnar: I tried a few days ago, didn't work at all, reverted back immediately
takle_ has quit [(Remote host closed the connection)]
<Infinisil>
Using the mozilla-nixpkgs overlay
<jtojnar>
Infinisil: It worked for me until I installed some fonts few days ago, now even if I removed them from configuration.nix it did not fix
<Infinisil>
jtojnar: Are you using the overlay?
nslqqq has quit [(Read error: Connection reset by peer)]
<Infinisil>
Eh, no idea how to fix and don't have the time to look into it right now
<jtojnar>
Infinisil: I imported them using `-I mozilla=path/to/nixpkgs-mozilla`
<kriztw>
I'm pretty sure its a retarded mistake, but I've been looking at it for an hour now
<Infinisil>
kriztw: It's certainly not retarded, we've all had issues that took a while to figure out but turned out to be something simple in the end :)
Wizek has quit [(Quit: Connection closed for inactivity)]
eacameron has quit [(Ping timeout: 260 seconds)]
sheenobu has joined #nixos
<sheenobu>
hrmmmmmmmmmmmm
<contrapumpkin>
whoa it even has a progress bar for logging in
cpennington has quit [(Remote host closed the connection)]
<sheenobu>
Will a nix-based OS always be non-posix? could you use Nix to build something resembling debian?
<contrapumpkin>
is it actually non-posix? it's non-FHS definitely
<sheenobu>
or would it be lots of copy from /nix to the 'understood' place. Yes I probably meant FHS
<clever>
sheenobu: does the fhs chroot not count?
eacameron has joined #nixos
<sheenobu>
i don't know anything about that clever
<clever>
steam uses it for example
<clever>
its an FHS layout, with symlinks pointing into the nix store
<clever>
and a script to chroot into it
<sheenobu>
hrmmm
<clever>
steam apps cant be patchelf'd because steam downloads them at runtime
<clever>
and the update stuff may detect a patched version as either a hax or old of date
<sheenobu>
right. I didn't realize that is how it worked. it's not to get over a technical issue it's to get over the political, this is not FHS, issue
nslqqq has quit [(Ping timeout: 240 seconds)]
<gchristensen>
sheenobu: I'd not neuter nixos to handle a political issue, but instead focus on their fear of not being fhs
<sheenobu>
gchristensen eh. i actually _like_ fhs. i just like nix because of it's expressive nature. there are other declarative languages to define a system in, though
zeus_ has joined #nixos
slack1256 has joined #nixos
<contrapumpkin>
we like FHS so much that we give each package its own little FHS filesystem
<contrapumpkin>
;)
eacameron has quit [(Ping timeout: 260 seconds)]
<sheenobu>
hah!
<sheenobu>
mind if i dm you gchristensen ?
nslqqq has joined #nixos
<gchristensen>
nope :) but I may be heading out pretty soon!
<sheenobu>
okay!
<sheenobu>
crap i'm drawing a blank
<sheenobu>
what i might do is create a 'bootstrap distro' with which others can get up and running and install whatever distro they like
<clever>
sheenobu: not-os could be modified to do that
<simpson>
sheenobu: What do you want the FHS for?
<clever>
sheenobu: or my kexec trick
eacameron has joined #nixos
<sheenobu>
oh shit clever
<sheenobu>
license?
<slack1256>
haskellPackages.callPackage what does the second argument do and expect?
<sheenobu>
that's why i've heard of it someone said it today and i ddin't understand
<gchristensen>
anywho, later y'all
<contrapumpkin>
clever: you should go to Nixcon
<gchristensen>
contrapumpkin: ^
<contrapumpkin>
we can have a US folks party there
<gchristensen>
clever: ^
<clever>
canadian :P
<joehh>
are there any guides or checklists for submitting pull requests for new packages (in this case pymssql...)?
<contrapumpkin>
clever: north american folks
<contrapumpkin>
>_>
<clever>
only people who drive on the right side of the road?
<sheenobu>
(i'm trying not to fuck things up here or i'd explain more). But yeah facebook has too much code and people to completely abandon the FHS on any level (desktop, server)
<sheenobu>
nixcon is still in russia?
<gchristensen>
munich
<sheenobu>
oh shiiiit
<contrapumpkin>
you can even go to neuschwanstein nearby
<gchristensen>
:D
<Infinisil>
How the hell do i run this nox review thing against already committed changes
<sheenobu>
i'll look into going but i don't even have a passport
<clever>
gchristensen: is it this weekend? lol
<gchristensen>
sheenobu: go apply now
<contrapumpkin>
sheenobu: yeah the more the merrier!
<sheenobu>
i don't want to take seats for people who can actually go
<clever>
oh, october
<contrapumpkin>
we can talk about the joys of FHS
<contrapumpkin>
clever: see, plenty of time!
<sheenobu>
"No public registration yet."
<contrapumpkin>
yeah :)
<sheenobu>
did it still go through?
<contrapumpkin>
talk submission deadline is tonight though
<contrapumpkin>
which is why it's on my mind
<sheenobu>
dang i could've talked about nix-home
<contrapumpkin>
not too late!
<sheenobu>
i don't know what i'd say
<sheenobu>
here is a thing
<contrapumpkin>
well, I don't think so
<sheenobu>
it's called nix-home
<contrapumpkin>
I forgot tonight was the night
<sheenobu>
you should use nix to build your own DSLs
<sheenobu>
talk over
<contrapumpkin>
so I just threw together two quick proposals at the last minute half an hour ago
<contrapumpkin>
you can ask for particular slot sizes :)
<contrapumpkin>
down to 15 minutes
<sheenobu>
i'm not on the list of contributors for 2017
isidore has joined #nixos
<contrapumpkin>
you can still propose talks! they just prioritize non-speaker registration that way
<sheenobu>
ah just top 150 yeah i wouldn't make that
<sheenobu>
yeah
<sheenobu>
I'd rather just go and not talk cause i'm timid
<contrapumpkin>
but I'm sure plenty of folks outside the github contributor list will end up going
<contrapumpkin>
fair enough :)
zgrep has left #nixos ["Alas, it seems NixOS, and nix, are not for me. :("]
<sheenobu>
i'm kciking butt at fb though. that does mean i can't contribute to nixkpgs as often
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] neilmayhew opened pull request #27824: cabal-bounds: fix build error by raising upper bound on directory lib (release-17.03...release-17.03) https://git.io/v7Biy
NixOS_GitHub has left #nixos []
<sheenobu>
clever what license is not-os?
<clever>
havent thought about that
<sheenobu>
ahh
<clever>
its more of an example you can fork and customize to suit your needs
<sheenobu>
yeah
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] mpcsh opened pull request #27825: Create a keybase-bin nixpkg based on the keybase binary releases (master...master) https://git.io/v7BiQ
NixOS_GitHub has left #nixos []
inflames has joined #nixos
<contrapumpkin>
clever: even forking and customizing is subject to licensing though :) and by not putting anything there you're basically implicitly "all rights reserved"
<contrapumpkin>
which makes some folks super afraid to try stuff out
<contrapumpkin>
it's the bane of corporate FOSS users
<Infinisil>
Radicale update PR incoming
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Infinisil opened pull request #27826: Radicale: update to v2, fixing and enabling test (WIP) (master...radicale) https://git.io/v7Bi5
NixOS_GitHub has left #nixos []
<clever>
contrapumpkin: yeah, i should probably go over most of my projects and pick them
<Infinisil>
It's about time for a Radicale update, version 2 has been out for a while
<clever>
contrapumpkin: most of the time, if i'm modifying something where the source is available (i tend to ignore the license), i just put my changes up on github and call it done
<clever>
contrapumpkin: and if i care about the project, i'll try to upstream them
<contrapumpkin>
yeah, mostly the same here
<contrapumpkin>
just saying that some licenses will get lawyers squirming and most companies will refuse to touch some of the with a barge pole :)
<contrapumpkin>
including the absence of one
<clever>
yeah, i can see how that would look like a giant mess to approach
<Infinisil>
Aaand another day wasted studying nothing
<Infinisil>
Oh well, I got 2 PR's for nixpkgs done, that's something
<Infinisil>
Night
<Infinisil>
:)
Infinisil has quit [(Quit: leaving)]
michiel_l has quit [(Quit: No Ping reply in 180 seconds.)]
joepie91 has quit [(Excess Flood)]
isidore has quit [(Quit: WeeChat 1.9)]
eacameron has joined #nixos
<mpcsh>
is there a way to run a more up-to-date kernel with nixos unstable?
<adisbladis>
mpcsh: Ah right, that one is not in the unstable channels. It's just an alias for pkgs.linuxPackages_4_12 right now anyway
<mpcsh>
adisbladis: is it in any of the channels?
<adisbladis>
mpcsh: Does not seem like it
<mpcsh>
adisbladis: sad :(
<adisbladis>
mpcsh: The definition in all-packages.nix is just this anyway: linuxPackages_latest = linuxPackages_4_12
eacamero_ has quit [(Ping timeout: 240 seconds)]
<mpcsh>
adisbladis: well sure, but presumably someone would change that alias when 4.13 comes out
<mpcsh>
adisbladis: how frequently does the pkgs.linux package get updated in unstable?
eacameron has joined #nixos
MP2E has joined #nixos
treaki__ has quit [(Ping timeout: 260 seconds)]
treaki_ has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
yegortimoshenko has left #nixos ["ERC (IRC client for Emacs 25.2.1)"]
eacameron has joined #nixos
<dhess>
hi, I've got a Jetson TX1 and I'm trying to package up the Nvidia L4T kernel for it. I took the linux-rpi.nix derivation and modified it to grab the source tarball from Nvidia.
<dhess>
but I need to run my own postUnpack because of the weird way they package it.
<dhess>
Can't get the postUnpack hook to run. Anyone done something similar?
<dhess>
The kernel build stuff is a bit different than the typical standard derivation it seems
<dhess>
It's odd because the linux-rpi.nix derivation provides a postConfig and a postFixup, and I assume those work.
<clever>
dhess: what about adding those headers in the postPatch phase?, or prePatch?
sheenobu has joined #nixos
<dhess>
clever: so what's going on here is that Nvidia dumps a bunch of tarballs into a larger tarball, so I let the unpackPhase untar the big tarball, then I need a postUnpack and a 'sourceRoot =' to unpack the actual kernel source tarball
<dhess>
clever: so I could do it in prePatch I guess... but is there a reason it doesn't run postUnpack?
<dhess>
is that missing from the kernel build stuff?
<dhess>
clever: Yeah I was staring at that file earlier today, couldn't really figure out why it's not running postUnpack
<clever>
ah, i suspected that
<dhess>
but I didn't dig any deeper than that
<clever>
your override modifies the kernel to add a postUnpack
<clever>
the error is in the kernel config
<dhess>
it's mostly just a bunch of 'let's and then some other thing that gets called at the end
<clever>
so your applying the override to the wrong derivation
<dhess>
that's where I ran out of time
<dhess>
ohhhhhh
<clever>
it can be tricky to get to the right one here, but i have another idea
<dhess>
ok that makes sense
<clever>
create a new derivation, like this
<dhess>
good catch
<clever>
runCommand "kernel-source" {} ''
eacameron has quit [(Ping timeout: 240 seconds)]
<clever>
mkdir -pv $out ; cd $out
<clever>
unpack all the tars to .
<clever>
''
<clever>
now use this derivation as the src for the whole kernel
<dhess>
hmm interesting
<dhess>
clever: and that derivation downloads the big tarball
<clever>
then use a few fetchtarball derivations to download the tar
<clever>
nix is a bit weird, in that the downloads are seperate "packages", that you need to "compile" by running curl
<clever>
and fetchurl generates a package when given a url
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] mpcsh closed pull request #27825: Create a keybase-bin nixpkg based on the keybase binary releases (master...master) https://git.io/v7BiQ
NixOS_GitHub has left #nixos []
<dhess>
clever: so is there no way to reach into the linux-config derivation and override its attrs from generic.nix ?
<clever>
not easily
eacameron has joined #nixos
<dhess>
ok this is helpful
<dhess>
thanks, clever. Nix would be a lot more difficult without you around :D
<clever>
but if you change the src passed into generic.nix, it will go into both config and kernel
<dhess>
right
<clever>
at a glance, i think you would need to do this
<dhess>
I think that's a good way to go. I didn't really want src set to the big tarball which is why I added the sourceRoot statement. But I didn't catch that there are 2 derivations being built.
<clever>
that would apply an override to the kernel, that mutates the derivation held in the configfile arg
<clever>
but then you need to apply the exact same postUnpack to the kernel as well
<clever>
the src route seems simpler
alx741 has quit [(Quit: alx741)]
<adisbladis>
mpcsh: I have no idea
<dhess>
you know, I think I've seen a couple of derivations that do what you recommended earlier. I think they were related to some of the Steam support and other things that grab a weirdo tarball and then re-package it for Nix.
alx741 has joined #nixos
<dhess>
I'll go spelunking around there for examples.
<dhess>
they defined sub-derivations inside the "real" one.
<clever>
dhess: chrome and firefox also do that
<adisbladis>
mpcsh: Presumably with every LTS release
<dhess>
clever: ok thanks for the pointer
eacameron has quit [(Ping timeout: 276 seconds)]
<disasm>
so I know new packages the git message should be pkg: init at version but what if the package already exists and your adding a service? Is there a standard message format for that?
mitchty has quit [(Remote host closed the connection)]
<dhess>
clever: another related Q. I need to set the right defconfig for this kernel (Nvidia includes one for it in their modified kernel source). I did this for the BeagleBone kernel that I packed up by defining a new platform in NixOS and setting the defconfig there.
<dhess>
clever: But in this case I'm trying to debug the whole thing first with just nix-build. Do you know how I can set stdenv.platform.kernelConfig with nix-build?
<dhess>
well, override it, more like.
<dhess>
it'll be aarch64-whatever by default
<clever>
dhess: looking...
<disasm>
I could just bump the version and add myself as a maintainer... package is way outdated
<dhess>
the kernelConfig normally comes via lib/systems/platform.nix
michiel_l has quit [(Remote host closed the connection)]
<clever>
it takes the normal stdenv.platform, and overrides the kernelBaseConfig to make a custom platform
<clever>
then it takes the normal stdenv, and overwrites the platform attribute with that
eacameron has joined #nixos
<dhess>
clever: ahh put that in the linux-jetson-tx1.nix derivation?
<clever>
then it passes that custom stdenv to generic.nix
<clever>
yeah
<dhess>
got it, thanks!
joshie has quit [(Ping timeout: 240 seconds)]
alx741 has quit [(Quit: alx741)]
https_GK1wmSU has joined #nixos
eacameron has quit [(Ping timeout: 258 seconds)]
https__GK1wmSU has joined #nixos
https_GK1wmSU has quit [(Read error: Connection reset by peer)]
https__GK1wmSU has quit [(Read error: Connection reset by peer)]
https___GK1wmSU has joined #nixos
https__GK1wmSU has joined #nixos
joshie has joined #nixos
https___GK1wmSU has left #nixos []
https__GK1wmSU has left #nixos []
hamishmack has quit [(Quit: hamishmack)]
https_GK1wmSU has joined #nixos
https___GK1wmSU has joined #nixos
https___GK1wmSU has quit [(Max SendQ exceeded)]
<disasm>
Mic92: seems like the nix -> json -> toml implementation for telegraf example isn't quite right. It's outputting [outputs.influxdb] when it should be [[outputs.influxdb] It also generates an extra [outputs] section in the file.
<disasm>
err [[outputs.influxdb]]
https_GK1wmSU has quit [(Excess Flood)]
wigust has quit [(Ping timeout: 268 seconds)]
sheenobu has quit [(Quit: My Mac has gone to sleep. ZZZzzz…)]
<ben>
anyone know an invocation to get networking up in the initrd before blocking for devices to appear?
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
<adisbladis>
rodarmor: It's libusb and fuse so I think you wouldn't need to be in any groups :)
MercurialAlchemi has joined #nixos
<rodarmor>
adisbladis: Hmmm, I'm getting some kind of permission error though. `mtp-detect` fails when run normally, but `sudo mtp-detect` succeeds. Same for `jmtpfs mnt`
<rodarmor>
Fixed it! I needed `udev.packages = [ pkgs.android-udev-rules ];`
https_GK1wmSU has joined #nixos
https_GK1wmSU has quit [(K-Lined)]
<adisbladis>
rodarmor: Congrats :) I think this is one of those things a DE with a proper desktop session might take care of, hence I never saw the issue
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 30 new commits to master: https://git.io/v7BS8
<NixOS_GitHub>
nixpkgs/master 9719e43 Franz Pletz: jool: 3.5.3 -> 3.5.4
<NixOS_GitHub>
nixpkgs/master d40f993 Franz Pletz: fail2ban: 0.9.6 -> 0.9.7
<NixOS_GitHub>
nixpkgs/master 694dbae Franz Pletz: libite: 1.8.3 -> 1.9.2
NixOS_GitHub has left #nixos []
uralbash has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to release-17.03: https://git.io/v7BSR
<NixOS_GitHub>
nixpkgs/release-17.03 604043f Franz Pletz: pythonPackages.supervisor: 3.1.1 -> 3.1.4 (security)...
NixOS_GitHub has left #nixos []
<rodarmor>
adisbladis: Yeah, I believe you're right. Not having a DE is like playing some kind of survival game where you're dropped onto a muddy beach with no clothes and the first thing you need to do is find a rock and bash a tree until you get wood and then make wood pants or something.
uralbash has left #nixos []
<adisbladis>
rodarmor: That's why I switched back to DEs a few years back. I like to do things like plugging in external monitors and things just works
<rodarmor>
Pshhh, infidel. I love my splintery wooden pants.
<adisbladis>
rodarmor: I do miss my stumpwm though...
<rodarmor>
adisbladis: What DE are you using? I was using gnome for a while, but had a lot of problems with it
<adisbladis>
rodarmor: kde
<adisbladis>
It's the DE that gets the least in my way
zeus_ has quit [(Remote host closed the connection)]
<adisbladis>
As an emacs user that's my primary wm anyway ^_^
<rodarmor>
adisbladis: I should really give KDE a shot. Their development process seems much more together than gnome.
proteus-guy has quit [(Remote host closed the connection)]
ison111 has quit [(Ping timeout: 240 seconds)]
ertes has quit [(Ping timeout: 260 seconds)]
FRidh has joined #nixos
indi_ has joined #nixos
<adisbladis>
rodarmor: I think it's pretty good nowadays
<NixOS_GitHub>
[nixpkgs] fpletz pushed 6 new commits to release-17.03: https://git.io/v7BNl
<NixOS_GitHub>
nixpkgs/release-17.03 8a52a02 Franz Pletz: ipsecTools: add patch to fix CVE-2016-10396...
<NixOS_GitHub>
nixpkgs/release-17.03 d93dc06 Franz Pletz: mysql55: 5.5.54 -> 5.5.57 for multiple CVEs...
<NixOS_GitHub>
nixpkgs/release-17.03 a004cd9 Franz Pletz: mysql57: 5.7.17 -> 5.7.19...
NixOS_GitHub has left #nixos []
freusque has joined #nixos
m0rphism has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej opened pull request #27831: Respect NIX_DONT_SET_RPATH when .so appears in the command line (master...dont-set-rpath) https://git.io/v7BAH
NixOS_GitHub has left #nixos []
seanparsons_ has quit [(Read error: Connection reset by peer)]
seanparsons has joined #nixos
takle has quit [(Remote host closed the connection)]
pietranera has joined #nixos
gnuhurd has joined #nixos
Wizek_ has joined #nixos
Arcaelyx has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh closed pull request #27799: Python: disable user site-packages for programs and environments. (staging...nosite) https://git.io/v78KR
NixOS_GitHub has left #nixos []
nslqqq has quit [(Ping timeout: 276 seconds)]
nslqqq has joined #nixos
seanparsons has quit [(Remote host closed the connection)]
ThatDocsLady has joined #nixos
seanparsons has joined #nixos
civodul has joined #nixos
phinxy has joined #nixos
Guest50 has joined #nixos
Guest50 has left #nixos []
Guest50 has joined #nixos
Guest50 has left #nixos []
vinymeuh has joined #nixos
takle has joined #nixos
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
<NixOS_GitHub>
[nixpkgs] globin closed pull request #27831: Respect NIX_DONT_SET_RPATH when .so appears in the command line (staging...dont-set-rpath) https://git.io/v7BAH
NixOS_GitHub has left #nixos []
indi_ has joined #nixos
<stranger__>
hey, if i add custom patch to the kernel via configuration.nix, and there are conflicting options in common-config.nix, is it possible to shut them off w/o modifying of nixpkgs sources?
<domenkozar>
Profpatsch: around? :)
<domenkozar>
what API is one supposed to use in hnix to work with Fix?
indi_ has quit [(Remote host closed the connection)]
<domenkozar>
are there some morphism functions around
<domenkozar>
for recursive schemes
<dhess>
domenkozar: are you using hnix in production?
<makefu>
anyone knows how i need to configure the firewall that ftp works? https://paste.krebsco.de/sj77a7so/+inline , i tried setting autoLoadConntrackHelpers = true;
<domenkozar>
dhess: using it in stack2nix, although it's one of those haskell things that you're supposed to know how to use, but it uses concepts that are unknown
<makefu>
but currently it only works when i disable the firewall
treaki_ has quit [(Ping timeout: 260 seconds)]
viric_ is now known as viric
<dhess>
domenkozar: interesting.
<goibhniu>
makefu: if you just want to the port for FDP: networking.firewall.allowedTCPPorts = [22];
<NixOS_GitHub>
[nixpkgs] Ma27 closed pull request #27766: geogebra: make language configurable via `config.nix` (master...geogebra/allow-configuration-through-config) https://git.io/v7l0R
NixOS_GitHub has left #nixos []
<domenkozar>
dhess: I hope it's useful :)
freusque has joined #nixos
MercurialAlchemi has quit [(Ping timeout: 260 seconds)]
Wharncliffe has joined #nixos
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 5 new commits to master: https://git.io/v7RkK
<NixOS_GitHub>
nixpkgs/master 27d1d15 Robin Gloster: afflib: 3.7.15 -> 3.7.16
<NixOS_GitHub>
nixpkgs/master 3fb4c9e Robin Gloster: allegro5: 5.2.1.1 -> 5.2.2.0
<NixOS_GitHub>
nixpkgs/master 63b6179 Robin Gloster: alpine: 2.00 -> 2.21
<seequ>
Any idea why all USBs get mounted as read-only, o matter what I do?
iyzsong has joined #nixos
<Turion>
seequ, do you mount them as root?
<seequ>
yes
<Turion>
and what filesystem is on there?
<Turion>
what does mount say after you have mounted it?
<seequ>
Apparently the problem was that I didn't have ntfs-3g
<Turion>
Ah yes
<seequ>
Didn't say anythin g
<Turion>
So is your problem solved now?
<seequ>
Yup.
reinzelmann has quit [(Ping timeout: 276 seconds)]
<seequ>
Sometimes you just need a rubber duck :P
cpennington has joined #nixos
reinzelmann has joined #nixos
Jackneill has quit [(Quit: Leaving)]
thaega has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel pushed 1 new commit to master: https://git.io/v7RY5
<NixOS_GitHub>
nixpkgs/master bded592 Thomas Tuegel: Revert "otfcc: init at 0.8.6"...
NixOS_GitHub has left #nixos []
Jackneill has joined #nixos
joelpet has quit [(Ping timeout: 246 seconds)]
v0|d has joined #nixos
peacememories has joined #nixos
gnuhurd has quit [(Remote host closed the connection)]
gnuhurd has joined #nixos
<sphalerite>
I have two machines. One of them does not have wifi support enabled and I want to enable it (and I have no other internet access), but don't have an internet connection on it. The other does have wifi. I have a USB stick that I can use to copy files between them. Any idea what to do?
andymandias has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<TimePath>
bit of a weird use case; I have a project with multiple subprojects, each with their own nix derivations. I currently run an editor with nix-shell to put the dependencies on the path, but only one project at a time
<TimePath>
is there an easy way I can compose the whole thing?
<sphalerite>
Yes
<spacefrogg>
sphalerite: See nix-store(1), the example of nix-store --export
<TimePath>
sphalerite: thanks, I'll try that. I do use shellHook on a few though
<sphalerite>
TimePath: that should work.
<TimePath>
sphalerite: it decided to build everything first
<TimePath>
not quite what I was after
<spacefrogg>
TimePath: You actually want to have all the dependencies of your development projects available, right?
<sphalerite>
spacefrogg: trying that right now, but `--import` is saying "error: path ‘/nix/store/1xs5nb15mkpbxgmqqd3hkazfk8jgpphj-install-grub.sh.drv’ is not valid"
<TimePath>
spacefrogg: that's correct
<spacefrogg>
sphalerite: You shouldn't try to import derivations but their build products
<sphalerite>
TimePath: oh right, whoops :)
peacememories has joined #nixos
<sphalerite>
spacefrogg: but how am I meant to find their build products on the wifi-enabled machine?
<spacefrogg>
You could copy the configuration of your target machine to the build machine and build the new system configuration. Then export the whole closure back.
<sphalerite>
spacefrogg: I was thinking export the system derivation closure on the no-wifi machine, then import that on the wifi machine, realise it on the wifi machine, copy it onto the usb stick, then import it on the non-wifi machine again
<sphalerite>
I can't do that because the machines have different architectures
<spacefrogg>
Like i686 vs. x64 or like ARM vs. Intel?
<sphalerite>
the no-wifi one is i686 (32-bit), the wifi one is ARM
<sphalerite>
just to make things complicated :P
gnuhurd has quit [(Ping timeout: 240 seconds)]
<TimePath>
I'm going to assume bridging the i686 one to the wifi through the ARM one with an ethernet cable isn't an option?
<domenkozar>
huh I've managed to get my system in unbootable state with GC and UEFI
<spacefrogg>
Hm, there is a fixed mapping between build products and NAR's on cache.nixos.org. If you can figure that out, you derive the NARs on the target and download them on the wifi-enabled machine
<sphalerite>
nope, the ARM one doesn't have an ethernet port and I also don't have an ethernet cable ^^
<sphalerite>
that's the idea, I just don't know how to d oti
cpennington has quit [(Remote host closed the connection)]
<spacefrogg>
You should be able to use nix-install-package on the wifi system. It should download the full closure if possible.
takle has quit [(Remote host closed the connection)]
gnuhurd has joined #nixos
<spacefrogg>
wpa_supplicant, I figure
tmaekawa has joined #nixos
<goibhniu>
sphalerite: does the ARM one have a usb port? ... can you use an usb tethering on an android phone for networking? (it normally works out of the box for NixOS)
<v0|d>
then use nix-copy-closure.
<gchristensen>
nix-copy-closure requires ssh
<spacefrogg>
We've been there already.
<goibhniu>
ach sorry ... "the no-wifi one is i686"
<goibhniu>
obviously, that's the one I'd try to use usb tethering on :)
<v0|d>
hm openStore() supports any remoteUri other than ssh?
<TimePath>
there's a super hacky option available if you can mount the i686 drive on the ARM machine and use QEMU to boot it :)
<spacefrogg>
Yeah, thought about that, too. But qemu on the ARM might be a bit of a burden.
<sphalerite>
goibhniu: facepalm why didn't I think of that
<spacefrogg>
:)
<sphalerite>
Just using usb tethering did the trick
k2s has quit [(Ping timeout: 246 seconds)]
<goibhniu>
sweet \o/
<gchristensen>
it is so neat that android tethering works like that.
<v0|d>
how is it called, OTU?
<v0|d>
:)
<TimePath>
still not having much luck composing derivations for shell use
jtojnar has quit [(Quit: jtojnar)]
<TimePath>
I can create a separate top derivation and duplicate all the dependencies, but...
jtojnar has joined #nixos
<spacefrogg>
I think the derivation provide an env attribute you could make use of, maybe just merge in some way.
<spacefrogg>
derivations*
<hodapp>
uhm, any hints as to why in a stdenv.mkDerivation, postPatch is completely not being run, while buildCommand is?
<TimePath>
perhaps an easier way to do this is to produce the sub-projects from the master one
<spacefrogg>
Does it set phases?
<spacefrogg>
TimePath: But then you don't have the buildInputs available.
<hodapp>
no, it only sets name, src, postPatch, buildCommand, buildInputs, propagatedBuildInputs
<TimePath>
spacefrogg: I do if I make the master one a function that takes a set of targets
<TimePath>
i.e: A = master { projectA = true; };
<spacefrogg>
hodapp: Mayby postPatch isn't run with patches being empty.
<spacefrogg>
Sure. But your subproject are no longer independent, right? If that is not a constraint, why not.
<TimePath>
they already aren't, because they rely on the master project as a prelude :)
<TimePath>
so, no loss
<hodapp>
spacefrogg: postUnpack isn't being run either if I change it to that
<spacefrogg>
hodapp: You probably don't want to use buildCommand.
<spacefrogg>
hodapp: In completely disables the phases mechanics.
<spacefrogg>
It*
<spacefrogg>
Use buildPhase instead.
<hodapp>
sigh
<hodapp>
I work from examples because that's pretty much the only choice I have, and then I end up in cases like this
<spacefrogg>
Did you read the manual?
<seequ>
Can I run nixos-install again after a failed install or should I format the nixos partition?
<hodapp>
spacefrogg: yes.
<goibhniu>
seequ: you can
<hodapp>
spacefrogg: it happens to cover certain things, and be utterly useless for a lot of other practical ones, or for helping understand what an example is doing (and why)
nschoe has quit [(Quit: Program. Terminated.)]
nschoe has joined #nixos
mudri has quit [(Ping timeout: 255 seconds)]
rydnr has joined #nixos
<NickHu>
Has anyone managed to get gtk icon themes working?
tvon has joined #nixos
<kiloreux>
How can I get a full path of an installed python package in nix ?
ixxie has joined #nixos
tmaekawa has quit [(Quit: tmaekawa)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] volth opened pull request #27833: nixos/hardware/raid/hpsa: init at 2.40 (master...hpsa-2.40) https://git.io/v7RRa
NixOS_GitHub has left #nixos []
gnuhurd has quit [(Ping timeout: 240 seconds)]
gnuhurd has joined #nixos
gnuhurd has left #nixos []
gnuhurd has joined #nixos
nh2 has joined #nixos
cpennington has joined #nixos
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
nschoe has quit [(Remote host closed the connection)]
<goibhniu>
kiloreux: if you import the module from a python shell it will show you the path
peacememories has joined #nixos
nschoe has joined #nixos
retrry[m] has quit [(Ping timeout: 240 seconds)]
hendrik[m]1 has quit [(Ping timeout: 240 seconds)]
indefini has quit [(Ping timeout: 240 seconds)]
cwopel has quit [(Ping timeout: 246 seconds)]
dtz has quit [(Ping timeout: 246 seconds)]
ninegua[m] has quit [(Ping timeout: 240 seconds)]
jsv[m] has quit [(Ping timeout: 240 seconds)]
Exee7uvo[m] has quit [(Ping timeout: 240 seconds)]
mith[m] has quit [(Ping timeout: 240 seconds)]
thematter[m] has quit [(Ping timeout: 240 seconds)]
regnat[m] has quit [(Ping timeout: 240 seconds)]
M-liberdiko has quit [(Ping timeout: 240 seconds)]
frio[m] has quit [(Ping timeout: 246 seconds)]
<gchristensen>
jeepers matrix
berot3[m] has quit [(Ping timeout: 255 seconds)]
jack[m] has quit [(Ping timeout: 255 seconds)]
sargon[m] has quit [(Ping timeout: 255 seconds)]
sirius[m] has quit [(Ping timeout: 255 seconds)]
TimePath has quit [(Ping timeout: 255 seconds)]
fpletz[m] has quit [(Ping timeout: 246 seconds)]
ycy[m] has quit [(Ping timeout: 246 seconds)]
BurNiinTRee[m] has quit [(Ping timeout: 246 seconds)]
Oo[m] has quit [(Ping timeout: 246 seconds)]
Magnap[m] has quit [(Ping timeout: 246 seconds)]
corngood has quit [(Ping timeout: 240 seconds)]
timclassic has quit [(Ping timeout: 240 seconds)]
wak-work[m] has quit [(Ping timeout: 240 seconds)]
spacekitteh[m] has quit [(Ping timeout: 240 seconds)]
Khorne[m] has quit [(Ping timeout: 255 seconds)]
trikl[m] has quit [(Ping timeout: 255 seconds)]
AlanPearce[m] has quit [(Ping timeout: 255 seconds)]
grahamc has quit [(Ping timeout: 255 seconds)]
lecorpsnoir[m] has quit [(Ping timeout: 258 seconds)]
Elephant454[m] has quit [(Ping timeout: 258 seconds)]
sphalerite has quit [(Ping timeout: 240 seconds)]
pstn has quit [(Ping timeout: 276 seconds)]
edef[m] has quit [(Ping timeout: 276 seconds)]
AmineChikhaoui[m has quit [(Ping timeout: 246 seconds)]
qrilka[m] has quit [(Ping timeout: 246 seconds)]
rycee[m] has quit [(Ping timeout: 240 seconds)]
myklam[m] has quit [(Ping timeout: 240 seconds)]
etcinit[m] has quit [(Ping timeout: 264 seconds)]
cornu[m] has quit [(Ping timeout: 264 seconds)]
eqyiel[m] has quit [(Ping timeout: 246 seconds)]
WinterFox[m] has quit [(Ping timeout: 240 seconds)]
musicmatze[m] has quit [(Ping timeout: 240 seconds)]
benkolera has quit [(Ping timeout: 240 seconds)]
danielrf has quit [(Ping timeout: 255 seconds)]
sziszi[m] has quit [(Ping timeout: 255 seconds)]
zimbatm has quit [(Ping timeout: 255 seconds)]
Kirill[m] has quit [(Ping timeout: 258 seconds)]
reactormonk[m] has quit [(Ping timeout: 246 seconds)]
Yaniel has quit [(Ping timeout: 240 seconds)]
mhsjlw[m] has quit [(Ping timeout: 240 seconds)]
tommyangelo[m] has quit [(Ping timeout: 240 seconds)]
bhipple[m] has quit [(Ping timeout: 240 seconds)]
JameySharp[m] has quit [(Ping timeout: 255 seconds)]
dash has quit [(Ping timeout: 255 seconds)]
scott2 has quit [(Ping timeout: 255 seconds)]
mtncoder[m] has quit [(Ping timeout: 240 seconds)]
Drakonis[m] has quit [(Ping timeout: 240 seconds)]
jlle[m] has quit [(Ping timeout: 240 seconds)]
bendlas has quit [(Ping timeout: 240 seconds)]
aspiwack[m] has quit [(Ping timeout: 240 seconds)]
xj9[m] has quit [(Ping timeout: 240 seconds)]
a123123123[m] has quit [(Ping timeout: 246 seconds)]
DIzFer[m] has quit [(Ping timeout: 246 seconds)]
spawnthink[m] has quit [(Ping timeout: 246 seconds)]
Dezgeg[m] has quit [(Ping timeout: 276 seconds)]
florianjacob has quit [(Ping timeout: 276 seconds)]
peterhoeg has quit [(Ping timeout: 246 seconds)]
Kallegro[m] has quit [(Ping timeout: 258 seconds)]
ArdaXi[m] has quit [(Ping timeout: 258 seconds)]
baconicsynergy[m has quit [(Ping timeout: 258 seconds)]
sudoreboot[m] has quit [(Ping timeout: 258 seconds)]
Wysteriary[m] has quit [(Ping timeout: 258 seconds)]
octalsrc[m] has quit [(Ping timeout: 255 seconds)]
sk23[m] has quit [(Ping timeout: 255 seconds)]
bennofs[m] has quit [(Ping timeout: 255 seconds)]
primeos[m] has quit [(Ping timeout: 255 seconds)]
admin[m] has quit [(Ping timeout: 240 seconds)]
davidar has quit [(Ping timeout: 240 seconds)]
hl has quit [(Ping timeout: 264 seconds)]
Ralith has quit [(Ping timeout: 264 seconds)]
unlmtd has quit [(Ping timeout: 264 seconds)]
taktoa[m] has quit [(Ping timeout: 255 seconds)]
revoltmedia[m] has quit [(Ping timeout: 255 seconds)]
offlinehacker[m] has quit [(Ping timeout: 255 seconds)]
herzmeister[m] has quit [(Ping timeout: 255 seconds)]
dibblego[m] has quit [(Ping timeout: 255 seconds)]
seif[m] has quit [(Ping timeout: 240 seconds)]
icetan has quit [(Ping timeout: 240 seconds)]
necronian has quit [(Ping timeout: 240 seconds)]
wmertens[m] has quit [(Ping timeout: 246 seconds)]
NickHu has quit [(Ping timeout: 258 seconds)]
jyp[m] has quit [(Ping timeout: 240 seconds)]
copumpkin has quit [(Ping timeout: 240 seconds)]
alain[m] has quit [(Ping timeout: 276 seconds)]
bachp has quit [(Ping timeout: 276 seconds)]
chominist[m] has quit [(Ping timeout: 255 seconds)]
adisbladis[m] has quit [(Ping timeout: 264 seconds)]
dalaing has quit [(Ping timeout: 264 seconds)]
Sovereign_Bleak has quit [(Ping timeout: 264 seconds)]
konfou[m] has quit [(Ping timeout: 246 seconds)]
Barnabas[m] has quit [(Ping timeout: 276 seconds)]
matrixkrav has quit [(Ping timeout: 276 seconds)]
StuK[m] has quit [(Ping timeout: 276 seconds)]
takle has joined #nixos
luigy_ has joined #nixos
JagaJaga has joined #nixos
cpennington has quit [(Remote host closed the connection)]
JagaJaga has quit [(Client Quit)]
drakonis has joined #nixos
eschnett has joined #nixos
eschnett has quit [(Quit: eschnett)]
eschnett has joined #nixos
<kiloreux>
I can't do that
<kiloreux>
is there any command line option to extractr the path of a python module ?
eschnett has quit [(Client Quit)]
<goibhniu>
kiloreux: how about looking at sys.path?
eschnett has joined #nixos
<eschnett>
how do i show the current priority of a package?
peacememories has quit [(Read error: Connection reset by peer)]
<kiloreux>
goibhniu, that means i will have to run the build again and it's not a choice either :(
<goibhniu>
kiloreux: what problem are you trying to solve?
<kiloreux>
I am using numpy in an external python script. Whenever i try to call it require numpy as not found.
<kiloreux>
So i need to add that numpy path to the PYTHONPATH
<goibhniu>
are you using nix-shell to create the environment you use to run the script?
<FRidh>
kiloreux: create a python env with python.withPackages
<kiloreux>
Not using the nix-shell no. FRidh how can I do that ?
<FRidh>
kiloreux: check the Python section in the Nixpkgs manual
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 3 new commits to master: https://git.io/v7RKB
<NixOS_GitHub>
nixpkgs/master fc74a36 Tim Steinbach: alacritty: Don't use xclip from PATH
<NixOS_GitHub>
nixpkgs/master d06bd38 Tim Steinbach: alacritty: Remove xclip with buildInput
<NixOS_GitHub>
nixpkgs/master 92a40d2 Tim Steinbach: Merge pull request #27818 from NeQuissimus/alacritty_xclip...
NixOS_GitHub has left #nixos []
MoreTea has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 2 new commits to openssl-1.1: https://git.io/v7RiJ
<NixOS_GitHub>
nixpkgs/openssl-1.1 606020f Robin Gloster: xml-tooling-c: use newer version from git...
<NixOS_GitHub>
nixpkgs/openssl-1.1 51ce1a4 Robin Gloster: libwebsockets: 1.4 -> 2.3.0
NixOS_GitHub has left #nixos []
michiel_l has joined #nixos
michiel_l has quit [(Client Quit)]
dbmikus has joined #nixos
arximboldi has joined #nixos
arximboldi has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 3 new commits to master: https://git.io/v7RPh
<NixOS_GitHub>
nixpkgs/master ef6849c Peter Simons: structured-haskell-mode: fix location of the "site-lisp" symlink
<NixOS_GitHub>
nixpkgs/master 4fe328c Peter Simons: haskell-hindent: fix location of the "site-lisp" symlink
<NixOS_GitHub>
nixpkgs/master 92031d6 Peter Simons: structured-haskell-mode: bump version to latest git head...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to openssl-1.1: https://git.io/v7RXP
<NixOS_GitHub>
nixpkgs/openssl-1.1 b13d89b Robin Gloster: php56: fix line endings to make patch apply again
NixOS_GitHub has left #nixos []
jtojnar has quit [(Read error: Connection reset by peer)]
jtojnar has joined #nixos
reinhardt has joined #nixos
goibhniu1 has joined #nixos
cpennington has joined #nixos
goibhniu has quit [(Ping timeout: 240 seconds)]
unlmtd has joined #nixos
reinhardt has quit [(Client Quit)]
reinzelmann has quit [(Ping timeout: 276 seconds)]
arximboldi has joined #nixos
erictapen has quit [(Ping timeout: 260 seconds)]
wigust has joined #nixos
ebzzry has joined #nixos
__Sander__ has joined #nixos
<gchristensen>
I wish the emacs syntax highlighter didn't incorrectly highlight /* in strings
<gchristensen>
anyone have a fix for this? I feel there was a fix kicking around
<domenkozar>
there are about 2 in nix repo
<spacefrogg>
There are?
peacememories has joined #nixos
nslqqq has quit [(Ping timeout: 260 seconds)]
baconicsynergy[m has joined #nixos
cornu[m] has joined #nixos
berot3[m] has joined #nixos
konfou[m] has joined #nixos
sirius[m] has joined #nixos
xj9[m] has joined #nixos
indefini has joined #nixos
Guest99571 has joined #nixos
primeos[m] has joined #nixos
jyp[m] has joined #nixos
aspiwack[m] has joined #nixos
NickHu has joined #nixos
davidar has joined #nixos
cwopel has joined #nixos
bachp has joined #nixos
revoltmedia[m] has joined #nixos
timclassic has joined #nixos
M-liberdiko has joined #nixos
TimePath has joined #nixos
hendrik[m]1 has joined #nixos
mith[m] has joined #nixos
frio[m] has joined #nixos
ArdaXi[m] has joined #nixos
wak-work[m] has joined #nixos
Kallegro[m] has joined #nixos
sudoreboot[m] has joined #nixos
Oo[m] has joined #nixos
matrixkrav has joined #nixos
Exee7uvo[m] has joined #nixos
octalsrc[m] has joined #nixos
hl has joined #nixos
Drakonis[m] has joined #nixos
AlanPearce[m] has joined #nixos
Elephant454[m] has joined #nixos
herzmeister[m] has joined #nixos
myklam[m] has joined #nixos
spacekitteh[m] has joined #nixos
copumpkin has joined #nixos
reactormonk[m] has joined #nixos
thematter[m] has joined #nixos
Wysteriary[m] has joined #nixos
spawnthink[m] has joined #nixos
edef[m] has joined #nixos
necronian has joined #nixos
sargon[m] has joined #nixos
Magnap[m] has joined #nixos
florianjacob has joined #nixos
Yaniel has joined #nixos
offlinehacker[m] has joined #nixos
benkolera has joined #nixos
pstn has joined #nixos
Sovereign_Bleak has joined #nixos
dtz has joined #nixos
bhipple[m] has joined #nixos
BurNiinTRee[m] has joined #nixos
sk23[m] has joined #nixos
bennofs[m] has joined #nixos
WinterFox[m] has joined #nixos
dash1 has joined #nixos
zimbatm has joined #nixos
regnat[m] has joined #nixos
mtncoder[m] has joined #nixos
StuK[m] has joined #nixos
musicmatze[m] has joined #nixos
dibblego[m] has joined #nixos
Barnabas[m] has joined #nixos
Ralith has joined #nixos
scott2 has joined #nixos
DIzFer[m] has joined #nixos
lecorpsnoir[m] has joined #nixos
peterhoeg has joined #nixos
jack[m]2 has joined #nixos
bendlas has joined #nixos
dalaing has joined #nixos
jsv[m] has joined #nixos
qrilka[m] has joined #nixos
wmertens[m] has joined #nixos
corngood has joined #nixos
adisbladis[m] has joined #nixos
JameySharp[m] has joined #nixos
rycee[m] has joined #nixos
trikl[m] has joined #nixos
chominist[m] has joined #nixos
Dezgeg[m] has joined #nixos
seif[m] has joined #nixos
a123123123[m] has joined #nixos
ycy[m] has joined #nixos
tommyangelo[m] has joined #nixos
Khorne[m] has joined #nixos
devel123 has joined #nixos
taktoa[m] has joined #nixos
eqyiel[m] has joined #nixos
etcinit[m] has joined #nixos
ninegua[m] has joined #nixos
icetan has joined #nixos
retrry[m] has joined #nixos
admin[m] has joined #nixos
AmineChikhaoui[m has joined #nixos
mhsjlw[m] has joined #nixos
sziszi[m] has joined #nixos
fpletz[m] has joined #nixos
sphalerite has joined #nixos
Kirill[m] has joined #nixos
alain[m] has joined #nixos
vinymeuh has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
danielrf has joined #nixos
jlle[m] has joined #nixos
<devel123>
can anyone help me figure out how to run the protege ontology tool on nixos? I am having a program with it calling java binaries
drakonis has quit [(Read error: Connection reset by peer)]
zx2c4 has quit [(Excess Flood)]
zx2c4 has joined #nixos
arximboldi has quit [(Read error: Connection reset by peer)]
arximboldi_ has joined #nixos
erictapen has joined #nixos
arximboldi_ has quit [(Client Quit)]
peacememories has quit [(Read error: Connection reset by peer)]
arximboldi_ has joined #nixos
<hodapp>
err, so I have something created with pkgs.python35.withPackages; how do I get from this to the Python binary in some kosher way? .interpreter, .executable aren't doing it
peacemem_ has joined #nixos
<FRidh>
hodapp: those attributes still need to be fixed
arximboldi has quit [(Read error: Connection reset by peer)]
devel123 has quit [(Ping timeout: 260 seconds)]
arximboldi has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/v7Rh6
<NixOS_GitHub>
nixpkgs/staging ea4121d Frederik Rietdijk: python.buildEnv: fix passthru...
NixOS_GitHub has left #nixos []
<FRidh>
hodapp: fix ^
<hodapp>
thanks
<gchristensen>
FRidh: what is the state of staging? would you like to merge (or mind me merging) a handful of small mass-rebuilds to it?
arximboldi has quit [(Remote host closed the connection)]
arximboldi has joined #nixos
arximboldi has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/v7Rh5
<NixOS_GitHub>
nixpkgs/staging f747594 Frederik Rietdijk: Merge remote-tracking branch 'upstream/master' into HEAD
NixOS_GitHub has left #nixos []
<FRidh>
gchristensen: sure, merge away.
<gchristensen>
FRidh: would you like to take a look at them before I do? :)
<LnL>
was merged recently I thought
arximboldi has joined #nixos
<LnL>
just make sure you use a commit that hydra has built
arximboldi has quit [(Client Quit)]
<FRidh>
I merged staging into master yesterday or the day before
<manveru>
man... node-sass makes me wanna cry :(
arximboldi has joined #nixos
<MoreTea>
manveru, :(
arximboldi has quit [(Client Quit)]
<FRidh>
gchristensen: I've seen the PR's. Let's hope they don't cause breakage ;)
arximboldi has joined #nixos
<adisbladis>
manveru: I'm looking at another application that makes me wanna cry too....
<__Sander__>
hmm is there a way to bypass the 'restricted mode' error in a private hydra instance?
<gchristensen>
ok :) also volth deleted all her comments again, that is _extremely_ annoying
<gchristensen>
s/her/their/
<FRidh>
gchristensen: hmm, did notice at some point that a lot of PR's were closed and branches deleted.
<seequ>
Is mpstat packaged?
mudri has joined #nixos
<adisbladis>
gchristensen: Huh.. Can you delete github comments?
<gchristensen>
sure
<gchristensen>
but it is very frustrating and IMO antisocial
<adisbladis>
gchristensen: Did not know. Guess I never even considered it
k2s has joined #nixos
<seequ>
Ah, it's in sysstat
ebzzry has quit [(Ping timeout: 246 seconds)]
arximboldi has quit [(Quit: arximboldi)]
arximboldi has joined #nixos
earldouglas has quit [(Ping timeout: 276 seconds)]
earldouglas has joined #nixos
arximboldi has quit [(Client Quit)]
arximboldi has joined #nixos
arximboldi has quit [(Client Quit)]
arximboldi has joined #nixos
arximboldi has quit [(Client Quit)]
Sonarpulse has joined #nixos
ison111 has joined #nixos
magnicida has joined #nixos
arximboldi has joined #nixos
magnicida has quit [(Client Quit)]
bennofs has joined #nixos
arximboldi has quit [(Read error: Connection reset by peer)]
gnuhurd has left #nixos ["Killed buffer"]
arximboldi has joined #nixos
stranger__ has quit [(Quit: Connection closed for inactivity)]
gnuhurd has joined #nixos
arximboldi has quit [(Remote host closed the connection)]
arximboldi has joined #nixos
<hodapp>
huh. I did something perhaps unconventional, in that this build does nothing more than generate a build script to be run inside of a specific nix-shell, but I suppose it works
gnuhurd has quit [(Ping timeout: 260 seconds)]
<tnks_>
I'm having a hard time finding documentation about how envHooks work.
tnks_ is now known as tnks
<tnks>
actually, I still need to find the sourc code that consumes it too.
<tnks>
I don't think it's in nixpkgs.
<tnks>
2
peacemem_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
gnuhurd has joined #nixos
k2s has quit [(Ping timeout: 248 seconds)]
zraexy has joined #nixos
Guest50 has joined #nixos
gnuhurd has quit [(Remote host closed the connection)]
gnuhurd has joined #nixos
<LnL>
gchristensen: oh that's why I've seen some confusing replies
erasmas has joined #nixos
thaega has quit [(Ping timeout: 255 seconds)]
Guest50 is now known as vinymeuh
multun has quit [(Ping timeout: 268 seconds)]
Mercuria1Alchemi has quit [(Ping timeout: 258 seconds)]
jb55 has joined #nixos
peacememories has joined #nixos
<arximboldi>
hi!
<arximboldi>
guix has a `guix system` command for creating disk images out of a system configuration
<arximboldi>
is nixops the nix equivalent?
<arximboldi>
i don't see how to create a disk image using it
<copumpkin>
you can make disk images just using nix-build and some nixos stuff, but we don't have an easy front-end for it yet
<copumpkin>
kiloreux: I'd probably make the expression take an explicit parameter though unless it absolutely must have an environment variable
<kiloreux>
srhb, i lost internet connection actually, sorry. When i tried it on my machine it worked. But not on my vagrant VM probably due to our complicated PATHS in the VM.
<kiloreux>
Got a hack to work though
<tnks>
yeah, I just combed through nixpkgs, and all I see are people setting envHooks, not accessing what's set.
<srhb>
kiloreux: Huh, odd. OK. :)
<kiloreux>
copumpkin, do you have any sample for that ?
betaboon has joined #nixos
<mog>
can anyone help me with an upgrade? i am doing nixos-rebuild switch --upgrade but it got caught on chrome deb no longer existing
FRidh has quit [(Quit: Konversation terminated!)]
ertes-w has quit [(Ping timeout: 240 seconds)]
<mog>
i googled and downloaded it by hand and then added it to the nix-store but it still is failing
<clever>
it has to be the exact version nix is expecting
<betaboon>
hello #nixos, I'm just trying to migrate to nixpkgs overlays, but i seem to have hit a roadbump. nixos-rebuild throws "file ‘nixpkgs-overlays/testoverlay'" with the setup found in the attached gist. any hints/ideas/solutions? gist: https://gist.github.com/betaboon/2ef9066e1293c463f86be6bdad016e97
<grantwu>
+ if I'm not mistaken, this means I have to rebuild anything that uses OpenSSH?
proteusguy has joined #nixos
<nh2>
can I write nixos modules "inline" or do I *have* to put them into a separate file?
k2s has joined #nixos
<clever>
nh2: they can be inlined into the imports, but the backtrace will no longer have its own filename
<clever>
nh2: if you have a sample that isnt working i can take a look at it
<nh2>
clever: so instead of a file path in `imports = [ ... ]` I can also give the module expression?
<clever>
yeah
<symphorien>
grantwu: Not necessarily. You can build your whole system with openssh without kerberos except the openssh in systemPackages which you override with kerberos support
<clever>
symphorien, grantwu: you want to change programs.ssh.package
drakonis_ has joined #nixos
<grantwu>
So how does this work if I'm not using NixOS but have Nix on Ubuntu
<clever>
that will affect which version is pre-installed, and used for sshd
<clever>
grantwu: just nix-env -iA the version you want
<nh2>
clever: ah cool. That should be put into the manual I think -- the "Writing NixOS modules" only says "paths of other modules" so I thought that was the only way. Are there other drawbacks besides backtraces?
<grantwu>
clever: And what about programs with dependencies on OpenSSH?
freusque has quit [(Quit: WeeChat 1.9)]
<clever>
nh2: the file will usually look worse, and i cant see any reason you couldnt just put the module in the parent, rather then the imports list
<clever>
grantwu: depends on if they refer to pkgs.ssh, or rely on ssh being in path already
<Profpatsch>
This class does not have regular instances; instead they are created on-the-fly during type-checking. Trying to manually declare an instance of Coercible is an error.
<johnw>
oh, right, maybe not!
<johnw>
then just "coerce" it
<srhb>
coerce is magic of the best kind.
<Infinisil>
I feel like I'm missing out on something, I'm not an expert with Haskell
<fpletz>
LnL: yeah, but I thought niksnut fixed it
<LnL>
was it a nix or hydra issue?
[0x4A6F] has joined #nixos
deltasquared has joined #nixos
thetaepsilon has joined #nixos
<fpletz>
iirc the evaluation was taking too much memory
<LnL>
it happens when copying builds to a cache
<LnL>
let me pull the hydra repo again to make sure
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/v70zn
<NixOS_GitHub>
nixpkgs/master 161f0d3 Peter Hoeg: cantata: 2.0.1 -> 2.1.0
NixOS_GitHub has left #nixos []
jensens has quit [(Ping timeout: 240 seconds)]
thetaepsilon has quit [(Quit: Leaving)]
deltasquared has quit [(Remote host closed the connection)]
deltasquared has joined #nixos
<LnL>
weird, a reboot seems to have fixed it
<deltasquared>
ok, a question for you guys. I get the impression that nixos has essentially reproducable configuration files, but does a similar sort of system exist for user config directories?
<deltasquared>
it just came to me as being a nice idea to be able to rm -rf some directories (such as FF's, which store cache in the same place -_-) and rebuild them
<srhb>
deltasquared: There are several attempts to bring this to Nix. most recently rycee[m]'s home-manager, I think it was called.
<srhb>
but there are others, none baked into Nix.
<deltasquared>
srhb: got a link to the mentioned one?
<srhb>
deltasquared: No idea how fragmented my btrfs is.
<srhb>
A lot, probably.
<grantwu>
Have you considered using a better filesystem? :P
<srhb>
Yes, I have, though I haven't really found a good candidate so far.
<srhb>
Or haven't been convinced at least.
<deltasquared>
grantwu: I'm seriously considering converting some filesystems on my laptop to ext4 after seeing ext4 benchmarks having good random small file performance
jgertm has quit [(Ping timeout: 240 seconds)]
<grantwu>
Considering we're in #nixos, which makes ZFS on root easy, or so I've heard...
<deltasquared>
currently btrfs root there and... boot times kinda suck.
<srhb>
grantwu: Doesn't that mean even _more_ fragmentation?
<deltasquared>
grantwu: disclaimer: I come here to *talk* about nix-y stuff, I don't run nixos :P
<grantwu>
deltasquared: O. Same.
<grantwu>
Still waiting for GNOME 3 to get good on NixOS; otherwise I'm stuck with Nix on Ubuntu. (It'
<grantwu>
's still questionable, right?)
<srhb>
grantwu: I was under the impression that that's probably the one area where ZFS is worse than btrfs.
<grantwu>
srhb: I don't think it should be _more_ fragmented?
<deltasquared>
gnome in general is... ugh. I wonder if it induces packagers to drink
<grantwu>
I don't think it has a defrag command though
<deltasquared>
*online* defragment, go big or go home
<deltasquared>
well, to be fair most FSes can defragment the stupid way anyway, which is "read and re-write each file contigiously"
<grantwu>
ZFS chose not to have online defragment for a reason
<srhb>
Still, unpredictable performance should be less bad under ZFS, which does make me pause.
<srhb>
Aside from that btrfs is just so nice :/
<deltasquared>
srhb: do you use any of it's features?
<grantwu>
I used btrfs until it randomly went into read only mode because I ran out of metadata space. Like, wot?
<srhb>
Mostly snapshotting.
<deltasquared>
as it turns out I basically don't.
erictapen has joined #nixos
<srhb>
And, well, the trivial raid 1
<srhb>
Which anything can do.
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<deltasquared>
I was using it because the whole "COW everything" approach is categorically more robust, if done right
<ToxicFrog>
NixOS does indeed make /-on-zfs pretty easy
<ToxicFrog>
Although you need to use `legacy` mountpoint for ~everything last time I checked because stuff doesn't reliably automount on boot
<deltasquared>
oh, does ZFS have automatic "subvolume" mounting? it's been ages since I looked into how the whole pool idea
<grantwu>
"seems to be good enough" is not the kind of thing I like to read when dealing with filesystems
<grantwu>
Assuming subvolume = dataset, yes
<copumpkin>
yeah, I trust zfs far more than I trust btrfs
<srhb>
grantwu: I think the btrfs people are generally pessimistic and zfs generally optimistic in their wording. :-P
<deltasquared>
copumpkin: well if oracle use it...
<srhb>
The raid56 failure on btrfs really hurt though.
<deltasquared>
which one was that again
<srhb>
deltasquared: The "oops, there goes your data" one
<deltasquared>
o.o
<vagrant->
hello everyone, does anyone know if there's a nix expression that provides libpq.so? neither postgresql.out or postgresql.lib seem to provide this, although they provide `libpq.a`.
<deltasquared>
you're giving me a very big incentive to switch to ext4 in a damn hurry srhb
<srhb>
vagrant-: pQ?
<srhb>
deltasquared: Hehehe.
<vagrant->
srhb: not sure what you're asking
<srhb>
vagrant-: Just making sure that's the name, it could have been a type. Anyway, find /nix/store -name libpq.so shows all of postgresql-lib derivaitons I have containing it.
<srhb>
vagrant-: For instance, /fs6c96zi4rbsxxkdhys6igfiszljhimz-postgresql-9.6.2-lib/lib/libpq.so
<vagrant->
ok, weird... that file doesn't exist for me
<grantwu>
And ZFS was made at Sun. Oracle essentially took it closed source; OpenZFS (umbrella of ZoL, illumos, FreeBSD, macOS) people develop the open source version now
<vagrant->
building postgresql 9.5 off of current nixpkgs-unstable
<srhb>
vagrant-: how are you building it?
<vagrant->
nix-build -A pkgs.postgresql96
<clever>
vagrant-: postgresql.lib 0 s /nix/store/caibx9mv6yr0qlj5j8jjl1qskxwaaanh-postgresql-9.5.6-lib/lib/libpq.so.5
<deltasquared>
I was just thinking, if I move to ext4 I'll lose that built-in checksumming... hmm
<deltasquared>
of btrfs, that is
<Infinisil>
I can also recommend ZFS, haven't had a single problem with it
<ndash>
oh yeah, it's scrub day
<LnL>
how come we always end up in zfs discussions here? :p
<ndash>
(also mailman day)
<ndash>
LnL: people who choose nixos obviously like good things
<deltasquared>
hehe, for you guys maybe... the closest arch gets to ZFS support is the AUR linux-zfs (I forget) package. not exactly "official"
<Infinisil>
ndash: ++
<LnL>
heh
<Infinisil>
I really feel like people here are more willing to try out new non-traditional stuff
<Infinisil>
Idris is also known here by a lot of people for probably the same reason
<srhb>
I think there's a separate, FP overlap.
<deltasquared>
I'm thinking it's something to do with nixos's declarative configuration making the process of these kinds of changes so much easier
<srhb>
Hence all the haskellers too. And then there's subgenres (like reflex, because it's packaged using Nix)
<LnL>
I wouldn't really call zfs new
<Infinisil>
LnL: Yeah, but it has still ideas that aren't common in most used filesystems today
<Infinisil>
Well admittedly most people don't even know what a filesystem is, maybe it's a different story for those that actually do and care
<deltasquared>
I care when I want to push the go-faster button.
<deltasquared>
a system taking 20secs to get to a TTY login prompt is a bit annoying sometimes
<Infinisil>
deltasquared: (It takes even longer for mine :()
<deltasquared>
no display manager or anything, mind. that's literally just systemd booting to multi-user
nico202 has quit [(Ping timeout: 255 seconds)]
<deltasquared>
all the stuff I have... I suspect it's less the critical chain and more the other stuff going on at the same time causing a shitton of disk seeks
<Infinisil>
Well tbh I rarely shut it down
<srhb>
I remember stub booting on Arch, that was fun and fast.
<deltasquared>
Infinisil: neither do I on my laptop, but every now and again (like today) comes times when I have to reboot a couple times
<deltasquared>
partly due to some undeletable files in my homedir which apparently were missing their inodes. -_-
stanibanani has joined #nixos
<srhb>
... ow
<deltasquared>
srhb: needless to say, I backed everything important up pdq
<Infinisil>
deltasquared: Wait what fs are you using again?
<deltasquared>
Infinisil: btrfs
<Infinisil>
lol, wel
<Infinisil>
l
<deltasquared>
I think I should have ran scrub readonly first to see if it were corruption.
<srhb>
Yeeeah, it's getting hard to ignore this. :-P
<Infinisil>
^^
<deltasquared>
erm, ignore?
<srhb>
This is fine. Everything is fine.
<deltasquared>
I don't-
<deltasquared>
halp
* deltasquared
segfaults
tvon_ has joined #nixos
<Infinisil>
Maybe i'll try btrfs at some later time, Im having enough other problems that I don't need another one with my fs
eacameron has quit [(Remote host closed the connection)]
<Infinisil>
lassulus: I just checked out the man page, it just generates a hashed password to stdout from a password and salt (which is random by default)
Phillemann has joined #nixos
<Infinisil>
Eh no wait
<Phillemann>
I don't really understand the syntax "import ./foo.nix { bar };". Where is this described?
<Infinisil>
I don't know how salt works exactly
<Phillemann>
I can't find it in the NixOS manual.
<LnL>
it's a couple of things combined
tmaekawa has joined #nixos
<clever>
the bar part doesnt look valid
<lassulus>
Infinisil: ah, yeah, but I still need some software to store the hash somewhere and check it
<lassulus>
outside of /etc/shadow
<Phillemann>
Ah, the Nix manual seems to explain it.
<Phillemann>
So I got a little confused with the manuals.
tmaekawa has quit [(Client Quit)]
<Infinisil>
lassulus: Oh right, hmm
<Infinisil>
lassulus: Wait, why do you need to check the password?
<Phillemann>
LnL: Ah, I'll read that also, thanks!
ixxie_ has joined #nixos
tvon_ has quit [(Ping timeout: 260 seconds)]
ixxie has quit [(Ping timeout: 240 seconds)]
<Infinisil>
lassulus: Well I just think a bash script using mkpasswd would be simpler, but I appreciate you using haskell for scripting!
<lassulus>
I did it actually first with bash
<Infinisil>
or just this kind of stuff
<lassulus>
but I didn't trust my code enough ;D
<Infinisil>
bash is horrible, I should really start using haskell or so
<Infinisil>
Gotta go for now, bbl
ixxie_ has quit [(Client Quit)]
<mpcsh>
alright, about to abandon arch for nixos! wish me luck everyone!
ixxie has joined #nixos
<gchristensen>
good luck, mpcsh!
<lassulus>
mpcsh: hfgl, I did the same 3 years ago, and never looked back
<grantwu>
Hrm.
<grantwu>
if I have an existing zpool, would it be possible to install NixOS on a dataset there
<grantwu>
Then I can triple boot Ubuntu/NixOS/Windows :D
<lassulus>
btw, is anyone at sha2017?
* krav_
<lassulus>
cool, I will also be there, maybe doing a nixos workshop.
<krav_>
i would go to that!
<Infinisil>
mpcsh: Good luck! I'll gladly help you transition :)
<Infinisil>
grantwu: Sure, nixos doesn't really care where it's being installed afaik. The only thing you might need to watch out for is /boot
<grantwu>
Right, I guess I'm asking more specifically how I'd do it
<grantwu>
and how to avoid it screwing over my bootloader
<Infinisil>
grantwu: you know how to use zfs already right?
<grantwu>
Yes
bennofs1 has joined #nixos
<grantwu>
I already have a pool; I want to install it onto a new filesystem onto that pool
<Infinisil>
I'm not sure how to avoid a mess with bootloaders
<Infinisil>
grantwu: And you want to share /home i assume?
<grantwu>
Probably unshared for now
<grantwu>
I'd presume that it's easy to fix
<Infinisil>
Just creating a new dataset with mountpoint=legacy set should be fine as the nixos root
<lassulus>
grantwu: the "easy way" would be to let nixos handle your bootloader
<grantwu>
Hrm... but would that break Ubuntu/Windows
<Infinisil>
grantwu: I'm like 60% sure nixos doesn't mess with other boot loaders
<lassulus>
grantwu: you could use boot.loader.grub.extraEntries to add the entries for ubuntu/windows
<lassulus>
if you are using grub
nix-gsc-io`bot has joined #nixos
<grantwu>
I just want to test out NixOS, and don't want to judge it in a VM because I feel like I wouldn't be able to distinguish which problems are caused by graphics drivers and which are caused by NixOS package immaturity
<grantwu>
"Please note that NixOS at the moment lacks a nice, user-friendly graphical installer. Therefore this form of installation may not be suitable for novice Linux users."
<grantwu>
"The graphical installation CD contains the NixOS installer as well as X11, Plasma 5 Desktop and several applications."
<grantwu>
Does it have a graphical installer or not?
deltasquared has joined #nixos
<srhb>
grantwu: The graphical is in the sense that you get nice graphics to hold your terminal which does not have a graphical installer.
<Infinisil>
grantwu: There isn't an installer
<grantwu>
ah.
<srhb>
grantwu: And yes, dd away.
<Infinisil>
The graphical thing just comes with X11, so you can try out some DE or whatever
<srhb>
You will also need to do a few minor fixups, but that should be easier to explain once you've tried doing what Infinisil guided you to do and then trying to build it (nix-build path-to-your-nixpkgs-checkout -A deluge)
<Infinisil>
grantwu: Oh and the expression also needs some adjustements
<srhb>
Ah, you're still on it, sorry :)
<Infinisil>
srhb: :P
<grantwu>
sorry, dealing with some GitHub key issues, just a sec
<grantwu>
It really is a pain that you can't reuse deploy keys.
<grantwu>
I'm on a work computer so I would like to restrict which repos my work SSH key has access to, but that would require generating a unique key for every repo...
<Infinisil>
grantwu: NixOps?
<grantwu>
Er, I'm referring to GitHub stuff
<srhb>
Oh, that makes perfect sense though. Never thought of doing that.
<Infinisil>
grantwu: GitLab has good team management, which would do exactly what you need
<grantwu>
Infinisil: Clearly we should switch NixOS to GitLab, then. /s
<Infinisil>
srhb: Didn't know you were female btw, I'm always assuming there's only men here lol
<srhb>
Infinisil: That's a bad habit. :)
<Infinisil>
srhb: In my computer science degree there's like 5-10% women, soo..
<grantwu>
There is indeed a dearth of women.
<srhb>
Ah, I didn't mean it's statistically improbable, I meant it reinforces the male dominance in tech.
<grantwu>
It gets better at some schools.
<srhb>
(My school was the same)
<grantwu>
CMU SCS is up to 40%, I think?
<srhb>
That's a very good ratio :)
<grantwu>
Well, they can pretty much get whoever they want...
<srhb>
Ah, I looked up the acronym. yeeeah. :-P
<grantwu>
WIth the money caveat
<Infinisil>
I don't know if the lack of women in IT is because generally women aren't so into technology, or if it's because how society treats when from young age
<Infinisil>
I'd like to think it's the latter
Ivanych has joined #nixos
arximboldi has quit [(Quit: arximboldi)]
<Infinisil>
Well, as long as everybody does what they're happy with :)
<srhb>
I don't want to get into this discussion in a public channel. Not that I don't find it interesting, sorry. :)
<Infinisil>
srhb: Yeah ;)
<Infinisil>
grantwu: In what timezone are you?
<grantwu>
EST
<Infinisil>
That you're still working, it's 9am here
<grantwu>
er, Eastern
<Infinisil>
Ah, america
<deltasquared>
GMT reporting in, happy 8PM
tvon has quit [(Quit: System is sleeping...)]
<srhb>
GMT *and* PM
<srhb>
Perverse. :-)
<srhb>
Wait, is that normal on the isles?
<deltasquared>
is what
<srhb>
AM/PM
<deltasquared>
erm, it's mixed really
<srhb>
Shows what I know...
<deltasquared>
I cba to type out 20:00
<deltasquared>
"20 o'clock" would get objects thrown at me.
<grantwu>
I'm a bit surprised - is all-packages.nix manually maintained?
<srhb>
grantwu: Yes it is.
<Infinisil>
Ohhh, sorry, I meant to say it's 9 *PM* where I am, said am before
<ndash>
grantwu: no they have special service dogs
<Infinisil>
grantwu: Yup
<Infinisil>
ndash: lol
<grantwu>
Is it not possible to have it be autogenerated?
<ndash>
grantwu: From what? :)
Filystynzhakowan has quit [(Quit: Konversation terminated!)]
<grantwu>
The other directories, I suppose
<srhb>
grantwu: Sure, you could, but the manual control is actually used here.
<Infinisil>
grantwu: It worked pretty well so far I guess
<grantwu>
I see
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
<srhb>
grantwu: For instance, not all packages in nixpkgs go in the top level of nixpkgs there
<srhb>
grantwu: (like for instance most pythonPackages do not)
<srhb>
A lot of *subsets* of all-packages are auto generated.
<ndash>
grantwu: The problem is that there's actual structure in all-packages, it's not a one-to-one mapping between nix files and all-packages attributes (several are invoked multiple times with different attributes)
<srhb>
What we *could* do (though I don't see the need) is make something like packages/all-packages/auto.* get generated (or even auto generate), but it sort of messes up the structure a bit.
<srhb>
That was unclear. I mean move all packages to be auto-included to some special tree in nixpkgs.
betaboon has quit [(Quit: This computer has gone to sleep)]
<srhb>
It's python3 only instead of python2 only
<srhb>
Right, exactly thusly :)
<Infinisil>
grantwu: You also need to remove the `deluge = ` at the beginning and the semicolon at the end in default.nix
<clever>
i see this in some areas, but i would avoid that, because renaming the variable can lead to confusion
gnuhurd has quit [(Ping timeout: 240 seconds)]
<srhb>
That's curious, I was recommended doing that exactly by the python peoples.
<Infinisil>
srhb: But this package he's wanting to package only works with python2
<srhb>
Infinisil: Right, the only difference :)
<clever>
Infinisil: python2Packages.callPackage
<Infinisil>
srhb: Wouldn't it make more sense to take the argument python2Packages then?
<srhb>
Infinisil: I also don't see a problem with your point of using python2Packages directly in the package, really.
<clever>
using python2Packages.callPackage will make the argument names be python package names
<srhb>
But too many chefs right now.
<clever>
so its more obvious which python packages it needs
betaboon has joined #nixos
<Infinisil>
clever: I see
<srhb>
clever: That's strictly opposite of every other package in all-packages.nix
<Infinisil>
^^
<clever>
i usually try to use the properly scoped callPackage whenever its available
<srhb>
Yeah, and I understand your argument, but I think we should change them all instead then.
<srhb>
Anyway, it can easily be fixed up in the PR. Do either. :-P
<srhb>
Back to happy first-PR mode :-P
<Infinisil>
Hmm, I'm not sure, using pythonpackages.callPackage instead of the normal one makes the pakcages file even more independent, as you now need to also call pythonPackages.callPackage when building the package from the file only
drakonis_ has quit [(Read error: Connection reset by peer)]
Myrl-saki has quit [(Ping timeout: 268 seconds)]
<Infinisil>
s/independent/dependent on nixpkgs
<srhb>
I agree, I'm just a little wary of introducing the first "opposite land" python application to all-packages.nix. Wouldn't it be wiser to fix them all at once?
gnuhurd has joined #nixos
<srhb>
(I can't immediately see any problem with doing either thing, really)
<dhess>
clever: you were helping me earlier to package up this NVIDIA kernel for the Jetson TX1. I implemented your idea to use runCommand to define src for the TX1 kernel derivation and that works nicely... except that now I need to set sourceRoot as well.
<Infinisil>
srhb: I don't think it's worth the effort to change them all. It works either way
<srhb>
Infinisil: That's true..
<dhess>
clever: the NVIDIA kernel source puts the kernel in $out/kernel/kernel-4.4 and that is not where the nixpkgs kernel builder expects it to be of course.
<clever>
dhess: do you need anything above that directory?
Ivanych has quit [(Ping timeout: 276 seconds)]
<dhess>
clever: Yes, the out-of-kernel modules are there
<clever>
dhess: or could you just cut out that subtree and put it into $out with the runCommand?
<clever>
ah
<grantwu>
Wait, so... what am I supposed to put for the list of dependencies?
colabeer has quit [(Ping timeout: 255 seconds)]
<clever>
dhess: out-of-kernel modules can always be built as a different derivation
<dhess>
clever: I'm tempted to just pre-edit it all and stick it in a GitHub repo, but that feels like cheating.
<clever>
dhess: that makes it far simpler to manage
<grantwu>
Presumably I want this { stdenv; }
<dhess>
clever: I see, any examples of that in the nixpkgs tree?
<grantwu>
er, { stdenv }:
<srhb>
grantwu: Basically nix-build will yell at you if it doesn't find them all.
<LnL>
grantwu: you don't need to add the stdenv explicitly
<clever>
dhess: many, one sec
kiloreux has quit [(Ping timeout: 246 seconds)]
<srhb>
grantwu: But every package deluge depends on in its buildinputs. You may want to explicitly leave some out just to see the error message :)
<srhb>
grantwu: It's nice to know how it looks.
<Infinisil>
grantwu: You don't need stdenv if stdenv isn't used in your nix file
<grantwu>
Oh, I see
<srhb>
Infinisil: Ah, cleanups are nice :-)
<grantwu>
srhb: So this doesn't have any buildInputs. It only has propagatedBuildInputs and nativeBuildInputs
<dhess>
clever: I'm not exactly sure this will work, though, as Nvidia modifies the kernel Makefiles in various locations to point to the out-of-tree modules. Depends on which targets those are I suppose.
<dhess>
clever: ok I'll look there for some guidance
<LnL>
grantwu: that's fine, it's not required
<clever>
dhess: this will build the kernel first, then build the modules against that kernel
<clever>
dhess: and if you add ot to the linuxPackagesFor function, it will auto-generate a derivation for every kernel
<grantwu>
hrm... still not sure what to put at the top. Do I copy the propagatedBuildInputs and nativeBuildInputs into the { }: thing?
<Infinisil>
grantwu: You probably need the arguments intltool, libtorrentRasterbar, lib (and python2Packages)
<Infinisil>
grantwu: then you change the `with self` part at propagatedBulidInputs to `with python2Packages`
<grantwu>
would it not be with pythonPackages?
colabeer has joined #nixos
<grantwu>
because we did the whole pythonPackages = python2Packages thing
<srhb>
grantwu: Depends which version you went with in all-packages.nix
<srhb>
grantwu: We were too busy theorizing about it :-P
<Infinisil>
grantwu: Well if you use pythonPackages in your file, it's possible for people to override pythonPackages with python3Packages, which probably isn't what you want because it wouldn't work with v3
<Infinisil>
I would take python2Packages as an argument, but I'm not 100% certain on this convention
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 5 new commits to master: https://git.io/v70dJ
<NixOS_GitHub>
nixpkgs/master 46c9739 Michael Alan Dorman: elpa-packages: 2017-08-01
<NixOS_GitHub>
nixpkgs/master 4ea23a0 Michael Alan Dorman: org-packages: 2017-08-01
<NixOS_GitHub>
nixpkgs/master 8be846e Michael Alan Dorman: melpa-stable-packages: 2017-08-01...
NixOS_GitHub has left #nixos []
nico202 has joined #nixos
MP2E has joined #nixos
eacameron has joined #nixos
Filystyn has quit [(Quit: Konversation terminated!)]
<grantwu>
does taking python2Packages as an argument work if we pass in pythonPackages
<clever>
no
<clever>
you either need to map it over like callPackage ../applications/editors/neovim/neovim-remote.nix { pythonPackages = python3Packages; };
<clever>
or rename it in your default.nix
<grantwu>
so Infinisil's suggestion isn't compatible with the current convention for python packages that are either Python 2 or Python 3 specific
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to master: https://git.io/v70dS
<NixOS_GitHub>
nixpkgs/master 9396587 Christian Albrecht: nixos/auditd: break ordering cycle (#27577)...
NixOS_GitHub has left #nixos []
<FRidh>
If you have an application, then the convention is that the argument is pythonPackages when its supported on 2 and 3, python2Packages if only on 2, and python3Packages if only on 3. The solution by clever, to use pythonPackages.callPackage is fine as well. But again, use the set with the number in case its only supported on that version.
<grantwu>
Is the result
<Infinisil>
grantwu: Hmm yeah, maybe it's better to do it the other way
oida has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] adevress closed pull request #893: Solve issue #889. Add support for configurable runstatedir ( nix-daem… (master...patch-runstate) https://git.io/vw1JD
NixOS_GitHub has left #nixos []
<Infinisil>
FRidh: Ahh, so it's right what I said
eacameron has quit [(Remote host closed the connection)]
<FRidh>
Infinisil: I haven't read the whole discussion so I can't say that.
<grantwu>
w/e - it's easier to look at the commit and see if it's broken
<grantwu>
Infinisil: lol - look at who asked me to do this
<Infinisil>
grantwu: Yeah :P
kiloreux has joined #nixos
<grantwu>
I still don't know how to determine what to put as parameters. All I've put there so far is what people have told me - how did y'all figure that out?
<Infinisil>
Oh hey FRidh, you have requested changes for a PR of mine, but they are long fixed. Could you have another look / accept / merge it ?
<srhb>
grantwu: Again, you could start with an empty argument list for learning reasons, try to build it with nix-build your-nixpkgs-path -A deluge and see the errors
<Infinisil>
FRidh: Oh another thing, you apparently got an automatic code review for this PR: https://github.com/NixOS/nixpkgs/pull/27809 (because of the codeowners file or something)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/v70F1
<grantwu>
The gist of it is that pythonPackages.nix is for packages that are compatible with both 2 and 3, and therefore deluge doesn't belong there; therefore it needs to be moved elsewhere
arximboldi has quit [(Quit: arximboldi)]
<FRidh>
python-packages.nix is for Python libraries or tools that are used inside a Python development environment
takle has quit [(Remote host closed the connection)]
<FRidh>
But deluge is just an application that happens to be written in Python.
<grantwu>
I'm muddling along with the help of people in this channel because I've never written Nix before
<grantwu>
although, actually, I'm currently reading the Nixpkgs manual.
<Infinisil>
grantwu: I'll have a look at how far you've gotten
<grantwu>
...nothing has changed since I last posted it
<Infinisil>
Ah
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh closed pull request #27809: pkgs: refactor needless quoting of homepage meta attribute (master...url-quote-refactor) https://git.io/v74XW
NixOS_GitHub has left #nixos []
justanotheruser has quit [(Ping timeout: 255 seconds)]
<Infinisil>
FRidh: Thanks
<Infinisil>
grantwu: Should I fix it for you so you can have a look at it? It's really hard to explain diffs in IRC :P
<grantwu>
Eh
<grantwu>
I'll look at it later tonight
<grantwu>
when I actually have a computer with Nix installed, heh...
<Infinisil>
Or maybe you can push your latest changes again
<Infinisil>
grantwu: Oh you're testing this without nix? lol
<grantwu>
I'm not testing this at all :D
<grantwu>
I'm at work, and I don't use Nix at work. Unfortunately.
<grantwu>
I should also uh. Go do actual work
<Infinisil>
grantwu: Well yes :P
<MP2E>
haha :)
<grantwu>
It's kind of painful because of the packaging problems we have at work >.>
<grantwu>
Last night they were talking about "ugh our Docker images are so huge"
<LnL>
how big?
<Infinisil>
grantwu: Gotta convince everyone to use nix
<Infinisil>
Or are you using Windows?
<deltasquared>
how's the master takeover plan going
<grantwu>
Work computer is macOS, deploy to Linux
leat has quit [(Quit: leat)]
<grantwu>
I'm just an intern, and I leave in a week
<grantwu>
So despite gentle suggestions of using Nix, it's not really going to happen
<grantwu>
LnL: I dunno, low hundreds of megs?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to staging: https://git.io/v70hy
<NixOS_GitHub>
nixpkgs/staging 733e20f Tim Steinbach: binutils: 2.28 -> 2.29...
<NixOS_GitHub>
nixpkgs/staging 3b436d1 Frederik Rietdijk: Merge pull request #27744 from NeQuissimus/binutils_staging_2_29...
NixOS_GitHub has left #nixos []
<Infinisil>
grantwu: They just don't know it well enough, nobody can deny the beauty of nix when they see it
<LnL>
there's a team at my work that uses 8g development images xD
<Infinisil>
Never heard of 8g
<grantwu>
I think LnL means 8GB
<clever>
8gig vm images
<LnL>
no docker images
<cement>
I got lucky that my work deploys using nixops
<cement>
and I didn't even have to convince them
<Infinisil>
Ah lol
<Infinisil>
cement: Nice
<MP2E>
I got lucky and got a position at a financial firm basically handling their technical department, and the COO is sympathetic to my mad experiments :)
cpennington has quit [(Remote host closed the connection)]
seanparsons has quit [(Remote host closed the connection)]
seanparsons has joined #nixos
MP2E has quit [(Read error: Connection reset by peer)]
MP2E has joined #nixos
[0x4A6F] has quit [(Ping timeout: 258 seconds)]
gnuhurd has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to release-17.03: https://git.io/v7EYy
<NixOS_GitHub>
nixpkgs/release-17.03 5eb78b6 Eric Litak: factorio: 0.15.30 -> 0.15.31...
NixOS_GitHub has left #nixos []
<Infinisil>
copumpkin: You here?
<copumpkin>
sort of :)
<maurer>
I'm trying to use the rust overlay for nixpkgs, but am getting unusual errors where cargo can't find the core or std crates
<maurer>
any idea what may have gone wrong?
<LnL>
Infinisil: feel free to write it in markdown and ask somebody else to convert it
<Infinisil>
LnL: Eh, not worth it, it's just a paragraph
<maurer>
For anyone who finds this in logs and was wondering - the problem was that I only included the rustc and cargo attributes
<maurer>
in mozilla's derivations, the stdlib is split into a separate package, .rust-std
<Infinisil>
LnL: Quick! tell me how to write [an url](https://google.com/) in xml doc style!
<maurer>
either depend on .rust to get everything, or depend on .rustc, .rust-std, and .cargo
<maurer>
Infinisil: I agree with you but this has been rehashed over and over again, another person repeating the same argument isn't going to cause them to change their mind
<Infinisil>
copumpkin: I was kind of suprised to see FridH merge it so quickly, should have had some more eyes on it. Do you think this should be reversed?
<maurer>
Infinisil: If you actually want to write docs but think docbook is a PITA, call the docbook folks bluffs by writing markdown docs and submitting it for translation
<Infinisil>
maurer: Yeah yeah, I don't really care anyways, as I won't be writing xml docs much lol
simukis has quit [(Quit: simukis)]
sauyon has quit [(Ping timeout: 240 seconds)]
<Infinisil>
maurer: If I feel like documenting something bigger I'll do something like that yes :)
<Infinisil>
There certainly is a tool to do md -> docbook
<Infinisil>
somewhere
<maurer>
Automated tools like that are not going to produce good output tbh. I'd expect one of the docbook gurus to essentially end up running the tool and then fixing up the output by hand
<LnL>
I usually just scroll around in the file I'm updating and use the relevant tags I find there
<clever>
Infinisil: probably a feature in pandoc
<copumpkin>
Infinisil: I don't think consistency hurts today, in one direction or the other. I'd like to see it move in the opposite direction but there's nothing wrong with what you did. I just wouldn't expect it to stay in the current state, since new folks will show up and add quotes
bennofs1 has joined #nixos
<Infinisil>
copumpkin: All right :)
leat has joined #nixos
arximboldi has joined #nixos
<Infinisil>
clever: Confirmed, although that was kind of obvious
<globin>
Sonarpulse: that even has the hardening example included
<globin>
but that will still take time until we can really use it
rpifan has joined #nixos
<Infinisil>
Nice
<Sonarpulse>
globin: indeed
<rycee[m]>
Infinisil: Hey hey.
<rycee[m]>
Sorry, haven't had time to look at your PR. Tomorrow should be freer :-)
eacameron has quit [(Remote host closed the connection)]
yegortimoshenko has joined #nixos
<Infinisil>
rycee[m]: Np, it's nothing big
<Infinisil>
rycee[m]: I was just wondering: I saw there being a manual.nix module, how does this exactly work?
<yegortimoshenko>
hi! i want to make a pull request to nixos-hardware. what should i do about function key handling (volume up, down, brightness, etc.), is it a part of hardware configuration? what about hibernation?
<rycee[m]>
Infinisil: Hehe, it is quite hacky. It reaches into the NixOS manual and pulls out the man pages but replaces its content with that of the Home Manager modules. That's why when you do `man home-configuration.nix` it says "configuration.nix - NixOS system configuration specification".
<Infinisil>
rycee[m]: The thing is that I can't do man home-configuration.nix
<Infinisil>
Oh wait
<Infinisil>
It work
<Infinisil>
s
<rycee[m]>
Cool :-)
<rycee[m]>
If you are using Nixpkgs unstable then it didn't work for a while because of some improvements that happened in Nixpkgs. It's been fixed now, though, so the man page should work both for 17.03 and master.
<Infinisil>
Nice
<Infinisil>
I was just looking at how nixos generates these, should be applicable to home-manager as well
<Infinisil>
Maybe I'll experiment with this a bit
zeus_ has quit [(Read error: Connection reset by peer)]
MoreTea has quit [(Ping timeout: 246 seconds)]
zeus_ has joined #nixos
silver_hook has quit [(Ping timeout: 240 seconds)]
gnuhurd has quit [(Remote host closed the connection)]
gnuhurd has joined #nixos
<rycee[m]>
I'd like for the NixOS one to have some form of template that could be replaced so that, e.g., the name and description sections could talk about home-configuration.nix rather than configuration.nix.
<Infinisil>
clever: Ohh, but then files in .links don't work correctly when they have a relative symlink
silver_hook has joined #nixos
silver_hook has quit [(Changing host)]
silver_hook has joined #nixos
<clever>
its relative to whever the name exists
<clever>
so a relative link can point to different things, depending on which hardlink you use
<Infinisil>
Yeah
<Infinisil>
that means you can't expect files in .links to be correct, but that doesn't matter anyways
nico202 has quit [(Ping timeout: 258 seconds)]
<clever>
for symlinks, the only content is the target of the link itself
<clever>
dont follow it
<Infinisil>
yeah
<yegortimoshenko>
i've never used gnome (or kde for that matter), does it manage function keys? (volume up, down, or play/pause, etc.)
<clever>
xfce with pulseaudio running does manage volume up/down on my usb headset
<clever>
sometimes..., it doesnt do anything today
<Infinisil>
Damnit, the only irssi script that does auto identify without requiring the password to be plain-text uses MD5
<yegortimoshenko>
i use pulseaudio but not xfce, and function keys don't work (out of the box). so probably desktop managers do manage function keys..
<clever>
Infinisil: the problem, is that no mater what you do, the computer has to be able to decrypt it on its own, and then an attacker can do the same
<clever>
Infinisil: so your only option left is to put a master password over it that you must enter to decrypt, and then its not automatic
<grantwu>
Infinisil: use SASL or something?
<Infinisil>
clever: Right..
* Infinisil
looks up SASL
<grantwu>
I mean that doesn't really solve your problem
<clever>
Infinisil: saved passwords in a browser have the same issue
<grantwu>
Your client needs your keys
<clever>
Infinisil: internet explorer would "encrypt" the password with the domain name
<clever>
Infinisil: which means, if i want the password for paypal.com, oh, thats also the key to decrypt it! (facepalm)
markus1199 has joined #nixos
<clever>
Infinisil: firefox doesnt try to give you a false sense of security, and just lets you view all saved passwords
<Infinisil>
clever: I've tried to use the pass firefox extension, but it didn't work that well
<clever>
and it has an option to encrypt the entire thing with a master pass
<clever>
i just mean the stock password manager built into the browser
<clever>
i use lastpass now
<Infinisil>
Yeah
<Infinisil>
I just want the gpg-agent to ask me for my password when I start irssi so it can send it in a msg to nickserv
<clever>
i also discovered a nasty interaction between lastpass and hydra
betaboon has joined #nixos
<clever>
if i try to edit any user in hydra, it auto-fills my info ontop of them
Wizek has joined #nixos
markus1189 has quit [(Ping timeout: 240 seconds)]
<Infinisil>
Whew
<Infinisil>
Not good
<Infinisil>
If I knew enough Perl I could write an irssi plugin that calls out to passwordstore
hamishmack has joined #nixos
<clever>
dont do it, you wont survive!
digitus has quit [(Quit: digitus)]
<Infinisil>
Hmmm, maybe I could check out some Matrix clients
<clever>
i would just make a new password for irc, and accept that it will be plain-text in the irssi config
<Infinisil>
clever: :( But then I need some way to prevent this from getting to github, since I'm putting my config there
erictapen has joined #nixos
<Infinisil>
Are remote-specific .gitignores a thing?
<yegortimoshenko>
why the split between nixpkgs/lib/systems/platforms.nix and nixos-hardware?
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
<clever>
Infinisil: nope
<clever>
Infinisil: i would put the passwords into a different file, and import them
<clever>
and just never commit that file
<Infinisil>
yegortimoshenko: Doesn't seem to be the same
<Infinisil>
clever: The thing is that irssi needs the password embedded in its config, so I just wouldn't be able to share my irssi config between machines..
<yegortimoshenko>
Infinisil: both are about running NixOS on specific hardware
<Infinisil>
Oh yeah i saw that too clever
<Infinisil>
yegortimoshenko: Have you had a closer look at the files in nixos-hardware?
earldouglas has quit [(Quit: leaving)]
<clever>
Infinisil: yeah, your only option there is to either store a template in git, and run sed over it on startup to sub in the passwords
<yegortimoshenko>
Infinisil: i did. i don't see any *inherent* difference between one and the other.
<clever>
Infinisil: or use a custom script that can get passwords via the env
<Infinisil>
clever: Ohh right, I could use env vars
<Infinisil>
didn't know irssi can use them
ison111 has quit [(Quit: WeeChat 1.7.1)]
<Infinisil>
clever: Oh I got it: I'll make a wrapper of irssi where i set the env var PASSWORD =$(pass freenode)
<Infinisil>
Then it asks me for my password on every start :D
<yegortimoshenko>
if there's a line between one and the other i do want to know. it's confusing for me to separate what is a part of the hardware definition and what isn't.
<Infinisil>
yegortimoshenko: I really don't know how lib/systems/platforms.nix is comparable to nixos-hardware. The former declares all architectures and the needed kernel parameters, the latter offers hardware-specific nixos modules that set options that were needed for them to work nicely. How is this the same?
Wizek_ has quit [(Ping timeout: 268 seconds)]
<Infinisil>
Former is very low level, latter is very high-level config
<Infinisil>
And latter is hardware-specific, former isn't
<yegortimoshenko>
Infinisil: the only difference i can think of is compile time vs build time. many nixos-hardware modules set kernel parameters that might have as well been set in compile-time.
rpifan has joined #nixos
<Infinisil>
yegortimoshenko: But platforms.nix is *not* hardware-specific
<Infinisil>
yegortimoshenko: You can't change some kernel flag for all x<whatever> machines just because it doesn't work on a windows surface or whatever
<yegortimoshenko>
how is that? platforms.nix has raspberry pi 2, scaleway-specific configs
<Infinisil>
yegortimoshenko: That's because they're different platforms
<Infinisil>
(I honestly don't really know what the difference between platform and architecture is btw)
bennofs1 has quit [(Ping timeout: 246 seconds)]
<yegortimoshenko>
then what's the difference between a platform and hardware? surely raspberry-pi2 platform won't work on anything but raspberry pi 2 the hardware
<clever>
arm is far less standardized then x86, even though its all "made" by one company
<yegortimoshenko>
ok
<clever>
the rpi3 can run armv6, armv7, and aarch64 code
<clever>
but the aarch64 build slaves for hydra.nixos.org are 64bit only
<clever>
and armv6 vs armv7 are sort of like 32bit with or without mmx
silver_hook has quit [(Ping timeout: 240 seconds)]
<clever>
so just with the above, you have 2 variants of the 32bit instruction set, and 64bit only chips with no backwards compat
<clever>
and also chips that can do all 3
<Infinisil>
Nice to know
<clever>
and then just how they boot, and what hardware they have, is even less standardized
<dhess>
I think platforms.nix is just more specific than hardware, is all.
<dhess>
it can still be hardware-dependent
<clever>
all of the rpi's start the boot from a rom in the GPU!!, which will load firmware from a few places, and then it puts a stub at physical address 0, along with a kernel, and sets the ARM loose on it
<dhess>
there's a generic platform for each arch and then you can get more specific if needed.
<clever>
but the allwinner line will start in the ARM, with a bootrom that loads a stub from a set offset in various storage media
<yegortimoshenko>
dhess: people want to make nixos-hardware more abstract and general as well (judging by pull requests), but unfortunately nixos-hardware doesn't seem to be very active
<clever>
and what hardware you can even use after you start booting varies wildly
<dhess>
yegortimoshenko: I don't even know what that is.
<dhess>
yeah I see now. Never heard of that before and have never seen it used anywhere.
jtojnar has quit [(Quit: jtojnar)]
<dhess>
the rpi2.nix derivation, for example, looks like it's completely subsumed by the rpi stuff in platforms.nix
<dhess>
well not quite completely, e.g., nix.buildCores
<yegortimoshenko>
i'd like to see it having more traction. it could very well substitute many use cases of a wiki
<dhess>
I have something very similar in my nixops deployment repo that sets things like that.
joehh has joined #nixos
<yegortimoshenko>
i can't imagine how more efficient it is than reading archwiki or random forums and finding those kernel flags that fix hardware problems
<yegortimoshenko>
(at least macbooks have a few of these)
mudri has quit [(Ping timeout: 260 seconds)]
<clever>
dhess: nixos-generate-config usually handles nix.buildCores
<clever>
dhess: but that isnt aware of the low ram and may try to make more use of the cores then the ram can allow
<yegortimoshenko>
yeah, it shouldn't include nix.buildCores (or nixpkgs.config.allowUnfree for that matter, which should be always set manually)
<dhess>
it would obviously get more attention if it were moved to nixpkgs
<dhess>
clever: there are other bits in there as well, like power management, etc.
<clever>
yeah
<dhess>
setting the platform so that you get the nice rpi stuff, and so on.
<dhess>
some of that is very important
<clever>
dhess: in the rpi, the power management is handled by the gpu firmware
jensens has quit [(Ping timeout: 240 seconds)]
<clever>
without the right kernel drivers, you wont get any video output on an rpi
<clever>
and youll be lucky to even get usb
<clever>
and if both of those are gone, its nearly imposible to even know its booting
ison111 has joined #nixos
<clever>
and the drivers all exist in a fork of linux, so it must have the right linuxPackages set
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] primeos pushed 1 new commit to master: https://git.io/v7Egq
<NixOS_GitHub>
nixpkgs/master 40c2559 Michael Weiss: slop: 6.3.48 -> 7.3.48
NixOS_GitHub has left #nixos []
<yegortimoshenko>
clever: iirc openbsd people don't want to support raspberry pi 2 since they don't want to have an in-tree GPU firmware blob
<clever>
yegortimoshenko: the gpu blob only has to exist as a file in the /boot directory, it never gets linked into anything at build time
<dhess>
clever: right, so what yegortimoshenko is saying, and I think he's right, is that there should be some nice .nix you can import into your config when you're running on an RPi N that sets all of those things for you, rather than making you define your own or go spelunking through archive.org to find the old wiki pages
<Infinisil>
brb, testing irssi script to auto-identify with password
Infinisil has quit [(Quit: leaving)]
<dhess>
I've been working on this kind of stuff for 3 months now and I hadn't even heard of the nixos-hardware repo!
<clever>
dhess: yeah, it should be as simple as just nixpkgs.platform = pkgs.platforms.foo;
<clever>
dhess: but a recent change in nixpkgs broke that and made it overly complex
Infinisil has joined #nixos
<dhess>
clever: yeah I suppose it should go in there
<yegortimoshenko>
dhess: true. i also think there is no inherent difference between platform and hardware, and it should be composable, from generic stuff like generic x86_64 platform up to specifics, like a specific laptop model
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] primeos pushed 1 new commit to master: https://git.io/v7EgV
<NixOS_GitHub>
nixpkgs/master 4472928 Michael Weiss: maim: 5.4.65 -> 5.4.66
NixOS_GitHub has left #nixos []
Infinisil has quit [(Client Quit)]
Infinisil has joined #nixos
<Infinisil>
It works :D
<clever>
yay
<clever>
now you just need the ident service working right
<clever>
nisil [~infinisil@17
<clever>
that little known service that nobody ever used, lol
<Infinisil>
clever: What's that?
<clever>
Infinisil: it was a service where you can query what user is owning the connection on a given port
<clever>
its why you have a ~ in your ident, Infinisil [~infinisil@178.197
<Infinisil>
clever: How can I see this?
<yegortimoshenko>
platforms.nix seems to be very limited though
<clever>
*** No ident response; username prefixed with ~
<gchristensen>
Infinisil: nobody ever sets this up :P
<clever>
Infinisil: its why you get this error when connecting
<yegortimoshenko>
i.e. i can't include an arbitrary config option
<clever>
Infinisil: i dont think the service really exists in any modern linux distro, but older irc clients used to implement it