<sheenobu>
yeah where does this firewall entry come from?
<Dezgeg>
I guess it looks better with iptables -vL: 500 35450 nixos-fw-accept all -- lo any anywhere anywhere
<sheenobu>
OH. Thanks Dezgeg
eacameron has quit [(Ping timeout: 252 seconds)]
eacameron has joined #nixos
herzmeister has quit [(Quit: Leaving)]
<sheenobu>
ech chromium is a 400mb download
eacameron has quit [(Ping timeout: 248 seconds)]
<clever>
-r-xr-xr-x 1 root root 179M Dec 31 1969 /nix/store/f6r0xahj842q7b2kkg4rlcjnxl8a1lw6-chromium-53.0.2785.143/libexec/chromium/chromium
herzmeister has joined #nixos
<clever>
sheenobu: the correct statement is, ech chromium is a bloody 179mb binary
<sheenobu>
woooow T_T
<clever>
and thats WITH dynamic linking
<sheenobu>
my system usually forces a compilation of chromium
<clever>
sheenobu: one of the plugin options causes a recompile
<sheenobu>
yes. not sure if i'm downloading the source or the binary yet. I do use widevine and flash which causes it
vandenoever has quit [(Ping timeout: 258 seconds)]
pi3r has quit [(Ping timeout: 250 seconds)]
<sheenobu>
huh. nix-prefetch-url is /much quicker/ than nixos-rebuild build for this URL. I'm guessing nixos-rebuild build has some option to limit bandwidth?
<clever>
it shouldnt
<clever>
but nix builds sometimes cheat and use tarballs.nixos.org
<k11`>
clever: I have same problem... It seems my configuration is bad :\
<sheenobu>
I just grabbed the cache.nixos.org URL that nixos-rebuild was reporting
<sheenobu>
(and it doesn't accept it)
pi3r has joined #nixos
thc202 has quit [(Ping timeout: 246 seconds)]
<clever>
sheenobu: the cache.nixos.org url's are NAR files, which need to be unpacked to the correct location in /nix/store, so nix-prefetch-url wont like them
justan0theruser has quit [(Ping timeout: 250 seconds)]
mbrgm has quit [(Ping timeout: 244 seconds)]
mbrgm has joined #nixos
filterfish has quit [(Read error: Connection reset by peer)]
ericsagnes has quit [(Ping timeout: 245 seconds)]
alx741 has quit [(Quit: alx741)]
alx741 has joined #nixos
filterfish has joined #nixos
nh2_ has quit [(Ping timeout: 265 seconds)]
evck has joined #nixos
<gchristensen>
hrm. this is turning in to a difficult project.
PragCyph1 has quit [(Read error: Connection reset by peer)]
PragCyphr has joined #nixos
gfixler has quit [(Ping timeout: 265 seconds)]
mizu_no_oto has joined #nixos
evck has quit [(Ping timeout: 252 seconds)]
mizu_no_oto has quit [(Client Quit)]
systemfault has quit [(Quit: Bye!)]
<gchristensen>
nathan7: do you have any tips on getting a nixos install working over there?
gfixler has joined #nixos
hexagoxel has quit [(Ping timeout: 264 seconds)]
Fare has joined #nixos
sdothum has quit [(Quit: ZNC - 1.6.0 - http://znc.in)]
hexagoxel has joined #nixos
mguentner2 has quit [(Quit: WeeChat 1.6)]
evck has joined #nixos
mguentner has joined #nixos
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
filterfish has quit [(Read error: Connection reset by peer)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
mizu_no_oto has joined #nixos
viric_ has joined #nixos
viric__ has quit [(Ping timeout: 240 seconds)]
ericsagnes has joined #nixos
evck has quit [(Ping timeout: 240 seconds)]
Fare has quit [(Ping timeout: 246 seconds)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
glines has joined #nixos
mguentner2 has joined #nixos
mguentner has quit [(Ping timeout: 248 seconds)]
<nathan7>
gchristensen: well, I nearly have network
filterfish has joined #nixos
glines has quit [(Ping timeout: 240 seconds)]
filterfish has quit [(Read error: Connection reset by peer)]
lverns has joined #nixos
<gchristensen>
nathan7: are you finding fast internet there? my ubuntu box, as installed, is taking several minutes to download a 30mb file
<gchristensen>
curl is reporting the speed as "68"
filterfish has joined #nixos
filterfish has quit [(Read error: Connection reset by peer)]
lverns has quit [(Quit: Konversation terminated!)]
lverns has joined #nixos
<nathan7>
gchristensen: I've only used the NJ and Amsterdam DCs
filterfish has joined #nixos
<gchristensen>
I just brought one up in ewr1
filterfish has quit [(Read error: Connection reset by peer)]
justanotheruser has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
hotfuzz has quit [(Read error: Connection reset by peer)]
hotfuzz_ has joined #nixos
stepcut has quit [(Remote host closed the connection)]
stepcut has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
stepcut has quit [(Ping timeout: 256 seconds)]
lverns has quit [(Ping timeout: 258 seconds)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
evck has joined #nixos
osa1 has joined #nixos
jacob_ has joined #nixos
jacob_ is now known as Guest90750
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
stepcut has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
stepcut has quit [(Remote host closed the connection)]
hotfuzz_ has quit [(Read error: Connection reset by peer)]
hotfuzz_ has joined #nixos
stepcut has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
nckx has quit [(Ping timeout: 246 seconds)]
stepcut has quit [(Ping timeout: 248 seconds)]
nckx has joined #nixos
eacameron has joined #nixos
Guest77172 is now known as TimePath
TimePath is now known as Guest81133
Guest81133 is now known as TimePath[m]
eacameron has quit [(Ping timeout: 252 seconds)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] amiloradovsky closed pull request #21012: planner: making Gantt and Resource Usage views usable (master...planner-line-styles) https://git.io/v1aAL
indi_ has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
wink has quit [(Remote host closed the connection)]
indi_ has quit [(Remote host closed the connection)]
k11` has quit [(Quit: k11`)]
filterfish has quit [(Ping timeout: 258 seconds)]
filterfish has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos []
zraexy has joined #nixos
chattered has joined #nixos
<joepie91>
this is driving me crazy... nixos-rebuild is *insisting* that it can't install unfree packages even though I have allowUnfree set to `true`...
<joepie91>
I'm trying to move my system config out into a repository of profile / software sets and this is breaking me up right now :/
<joepie91>
how do I debug this?
slack1256 has quit [(Remote host closed the connection)]
<pikajude>
clever: you can cross compile mac -> linux???
<clever>
joepie91: pkgs.newScope self; creates a new instance of callPackage, and then for each argument in a given file, it will try self.arg, then pkgs.arg
<clever>
pikajude: that setup was just using linux build slaves, not a proper cross-compile
<clever>
maybe you want _module.args.foo, then you can just do { foo, pkgs, config, ... }: at the top
<joepie91>
clever: callPackageFile is a small wrapper to pass my custom `packages` attribute set into them after importing them
<clever>
then you wont need 2 lambda's in every file
<joepie91>
that `packages` attribute set contains a few different package collections
<joepie91>
(intentionally separated)
<clever>
_module.args.packages = packages; would do the same thing
<pikajude>
clever: *can* nix cross-compile darwin -> linux?
<clever>
and merge it into the existing attrset
<clever>
pikajude: using the crossDrv stuff, it probably could, but it would rely on package maintainers correctly using nativeBuildInputs and buildInputs
<joepie91>
clever: _module.args?
<clever>
joepie91: that is an internal part of the nixos module framework, that adds options to the { config, ... }: area
<clever>
packages: {config, ...}: {
<clever>
would become
<clever>
{ packages, config, ...}: {
<joepie91>
clever: is that documented somewhere?
<clever>
dont think ive seen it documented anywhere
<clever>
and i think i'm the only person to have reused that module framework to create something that is not nixos
vandenoever has quit [(Ping timeout: 240 seconds)]
<srhb>
ocharles_: If I'm not misremembering, you've been deploying Haskelly webby things with nix-copy-closure. Have you detailed this approach anywhere? I'm currently using NixOps, and I feel it's a bit heavyweight for most simple thiongs.
<ocharles_>
srhb: right now we're deploying with nix-env -i and binary caches against hydra
<ocharles_>
I haven't documented it much though :(
<ocharles_>
If you check my github there is a heroku build pack
<clever>
srhb: i have recently considered using nix-env to manage some network booting servers
<clever>
let me pull up the man page and finish that idea up
<sphalerite>
Hm. The application I'm working on uses gobject introspection, and I've got pygobject3 in the shell expression and it's working. It doesn't seem to be working with gtk though. I thought maybe I could get it by just adding it to the list of python packages, but I wasn't too hopeful that would work. What can I add to https://sphalerite.org/shell.nix to make gtk3 work?
<clever>
srhb: this will built the rpi_image attribute of release.nix, and then set the rpi3-netboot profile to the resulting storepath, no -i or -e stuff to merge things
<sphalerite>
The manual doesn't mention gobject at all
<clever>
srhb: the reason ive been wanting to go this way, is that i now gain nix-env --rollback, so i can revert changes without having to revert the nix expressions first
<clever>
srhb: and if copy-closure is in the mix, you should also be able to use nix-env -p /nix/var/nix/profiles/per-user/root/rpi3-netboot --set /nix/store/93pacv7s9k0fm2d497c6cd1j0g95vxrq-rpi_image
viric_ has joined #nixos
zagy has joined #nixos
viric__ has quit [(Ping timeout: 268 seconds)]
<srhb>
ocharles_: OK, thanks!
<srhb>
clever: Hmm, I will explore this.
m` has joined #nixos
<sphalerite>
is it possible to pretty-print a derivation?
<MichaelRaskin>
Well, start with indent
<sphalerite>
ooh, much better
<MichaelRaskin>
Another option is sed -re 's/[([]/\n&/g'
<MichaelRaskin>
(and maybe indent afterwards)
zagy has quit [(Ping timeout: 245 seconds)]
<NixOS_GitHub>
[nixpkgs] xvapx opened pull request #21059: steam: added java and steam-run to documentation, removed patchelf info (master...fix/steam-doc) https://git.io/v1oW7
filterfish has quit [(Remote host closed the connection)]
zagy has joined #nixos
<sphalerite>
YES I got it working! Used mkDerivation with buildInput and stuff
jacob_ has joined #nixos
jacob_ is now known as Guest97229
esmiurium_ has joined #nixos
esmiurium has quit [(Quit: IRC (Quit: Page closed))]
zagy has quit [(Quit: Leaving.)]
mudri has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
vanrein has joined #nixos
<vanrein>
Hi. I'm new to NixOS
<NixOS_GitHub>
[nixpkgs] LnL7 opened pull request #21060: stdenv: add runPhase function (master...stdenv-run-phase) https://git.io/v1oli
indi_ has quit [(Remote host closed the connection)]
<vanrein>
I tried to setup ZFS for root, but modprobe cannot find the module
<clever>
vanrein: you need to set boot.supportedFilesystems = [ "zfs" ]; and run rebuild-switch on the livecd
<vanrein>
Is there documentation on how modprobe looks into /nix/store/... for zfs.ko (and similarly, dependencies)?
<clever>
and the extra/zfs entry is a symlink, from the "all modules" package to the zfs package
Wizek_ has quit [(Ping timeout: 240 seconds)]
<vanrein>
ah, that's quite like nix indeed :) but zfs.ko isn't there
<vanrein>
I suppose I should install it in *some* nix-env then?
<LnL>
you get it when you nixos-rebuild with boot.supportedFilesystems
indi_ has joined #nixos
<clever>
vanrein: nix-env will never work with kernel modules, they have to go into /etc/nixos/configuration.nix
<vanrein>
@LnL @clever OK, I'm nixos-rebuilding now, lot of work after the update
<clever>
its usualy better if the channel isnt updated first, because the kernel version has to match the module
spacekitteh has joined #nixos
<vanrein>
I now got extra/zfs and such in /run/current-system/kernel-modules
<vanrein>
not sure why it was missing before
<vanrein>
but I did get an error with starting the ZFS Event Daemon :'-(
<clever>
vanrein: thats a bug in nixos, it tries to start zed before loading the module
<clever>
you can manualy systemctl start zed once the module is loaded
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixops] domenkozar force-pushed deployment.hasFastConnection from b356e9a to a75d991: https://git.io/v1wrS
<NixOS_GitHub>
nixops/deployment.hasFastConnection a75d991 Domen Kožar: Move has_really_fast_connection() to Nix...
<vanrein>
ok, good to know, thanks! that should me get started. (except I rebooted and now accounts seem to be reset. I really have things to learn about NixOS.)
<vanrein>
thanks a lot!
<clever>
yeah, the livecd doesnt save anything, so its all reset to defaults after a reboot
ambro718 has quit [(Remote host closed the connection)]
ambro718 has joined #nixos
Wizek_ has joined #nixos
Wizek_ has quit [(Read error: Connection reset by peer)]
m` has quit [(Remote host closed the connection)]
Wizek_ has joined #nixos
<NixOS_GitHub>
[nixpkgs] taku0 opened pull request #21062: thunderbird-bin: adopt common update script (master...thunderbird-bin-common-update-script) https://git.io/v1o86
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
kampfschlaefer has quit [(Ping timeout: 258 seconds)]
zagy has joined #nixos
pi3r has quit [(Ping timeout: 245 seconds)]
<NixOS_GitHub>
[nixops] domenkozar force-pushed deployment.hasFastConnection from a75d991 to e73c4ee: https://git.io/v1wrS
<NixOS_GitHub>
nixops/deployment.hasFastConnection e73c4ee Domen Kožar: Move has_really_fast_connection() to Nix...
pi3r has joined #nixos
zagy has quit [(Quit: Leaving.)]
<angerman>
say I want to use fetchurl on a git repo, how do i compute the result hash?
filterfish has joined #nixos
<angerman>
is there some documentation somewhere, I've missed?
filterfish has quit [(Remote host closed the connection)]
<clever>
angerman: nix-prefetch-git and fetchgit
pi3r has quit [(Ping timeout: 258 seconds)]
<kmicu>
You can use ‘nix-prefetch-git’ and ‘fetchgit’.
<NixOS_GitHub>
[nixops] domenkozar opened pull request #566: Move has_really_fast_connection() to Nix (deployment.hasFastConnection) (master...deployment.hasFastConnection) https://git.io/v1o4z
kampfschlaefer has joined #nixos
<kmicu>
(Also putting a ‘dummy’ hash value in a fetchgit definition gives you a proper value in the error message.)
<angerman>
clever that nix-shell trick you showed me could that expression somehow be evaluated and return the result on stdout or so without having to deal with the interactive nix-shell? (with import <nixpkgs>; buildins.unsafeGetAttrPos "z" x.y)
filterfish has joined #nixos
<clever>
angerman: i believe it used nix-instantiate
filterfish has quit [(Remote host closed the connection)]
<clever>
2015-11-01 10:17:17< bennofs> Profpatsch: oh, I've just found out that nix has a builtins.unsafeGetAttrPos function: nix-instantiate --eval -E 'builtins.unsafeGetAttrPos "mkDerivation" (import <nixpkgs> {}).stdenv'
<Profpatsch>
Of course, that shows you everything with the same name, so a bit of experience is required to distinguish some.
<angerman>
Profpatsch yea, that's the thing. I gladly admit, I'm new to nix.
<Profpatsch>
angerman: Yeah, the missing introspection support kind of sucks tbh
<angerman>
But a tool that would allow to lookup a function definition would be nice. And taking nix-instantiate with unsafeGetAttrPos seems like a good first approximation to actually finding the function.
<Profpatsch>
Most devs just use grep and bear with it after a while.
<angerman>
assume you had $ nix-lookup "pkgs.callPackage" and it would dump you the definition.
<angerman>
with a location.
<Profpatsch>
Believe me, I’ve thought about this so many times. :)
<angerman>
Profpatsch that doesn't sound like a reason to keep it that way :)
Ivanych has joined #nixos
<angerman>
However, I've got way too many yacks to shave, but this is definetly going into my nix-learn doc.
<Profpatsch>
What you have to keep in mind: lots of the language has no static meaning until it is evaluated.
<Profpatsch>
So you need to “close the closure” from outside first.
* kmicu
ಠ_ಠat how easily people forget about universal TAGS systems :/
<Profpatsch>
kmicu: Right, that works as well.
<Profpatsch>
But not sure if it consistently finds the right definitions?
<angerman>
I think the initial learning hurdle is just massive. And if want to make nix part of our dev workflow at work, I need to know the pitfalls.
<Profpatsch>
I can’t imagine that.
<Profpatsch>
angerman: It’s possible to generate TAG files.
<Profpatsch>
There was a mail on the ML a while back
<angerman>
kmicu sure, but that requires you have people that *know* what TAG files are and *how* to use them.
dju has joined #nixos
<angerman>
Profpatsch would be a welcome addition to the nix manual I guess, documenting how to generate and use TAGs with nix.
<kmicu>
Then, for sure, you should not add more learning and ignore ‘tagging’ for now. Nix, the expressions language, is a DSL and lack of tooling is the price for that decision.
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to master: https://git.io/v1oBg
<NixOS_GitHub>
nixpkgs/master cb5c052 Joachim F: Merge pull request #21063 from schneefux/pkg.nextcloud...
<angerman>
kmicu sorry, I don't follow. If *I* want to reap the benefits of using nix at work, *I* need to make sure I can sell it to the team.
<angerman>
kmicu if that leads to more tooling, I don't see the downside of that.
hotfuzz has quit [(Read error: Connection reset by peer)]
hotfuzz has joined #nixos
<kmicu>
There is no tooling. As you can see, the common advice if you cannot find something is, ‘just grep the source code’. ( ͡~ ͜ʖ ͡°)
<angerman>
kmicu great, we have an understanding :-)
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
hokuJU has joined #nixos
<hokuJU>
hi! I was trying to do a complete system update. after successfully doing 'nix-channel --update nixos' I started 'nixos-rebuild switch'. Unfortunately this happens after a while:
<hokuJU>
output path ‘/nix/store/hy7qmy[...]-v35_64-nodebug-pcoem-6_30_223_271.tar.gz’ has sha256 hash ‘008vdmsk[...]vj7a7w’ when ‘1gj485qqr190[...]6pfyaz’ was expected
<clever>
hokuJU: the upstream source changed the contents of that tar
<hokuJU>
mh, what do you mean by 'spstream source'?
<hokuJU>
up
<clever>
hokuJU: it appears to be the broadcom wifi drivers
<hokuJU>
yes, I figured this out
<kmicu>
If outside worlds updates sources in place you need to fix/override it locally.
<clever>
hokuJU: so broadcom has changed the tar, without telling anybody
xwvvvvwx has quit [(Ping timeout: 240 seconds)]
<kmicu>
You could also find the old tar and add it manually to nix store.
mudri has joined #nixos
acarrico has joined #nixos
<hokuJU>
alright, I'm not that experienced with nix yet, could anybody tell me how to add the old tar manually?
<clever>
hokuJU: find it somewhere on google. and then nix-store --add-fixed sha256 ~/Download/hybrid-v35_64-nodebug-pcoem-6.30.223.271.tar.gz
<hokuJU>
actually this is file still in my local nix-store: hy7qmy0[...]rdp-hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz
<hokuJU>
that should be it, no?
<NixOS_GitHub>
[nixpkgs] schneefux opened pull request #21065: owncloud: update minor versions (master...pkg.owncloud) https://git.io/v1oRO
<clever>
hokuJU: how large is it?
pi3r has quit [(Ping timeout: 245 seconds)]
sdothum has joined #nixos
<hokuJU>
'ls -lah' says '102', w/o a unit...
<clever>
hokuJU: ah, sounds like it 404'd
<clever>
hokuJU: if you run "file" on that path, it will probably say html
filterfish has joined #nixos
<hokuJU>
right!
<clever>
so broadcom hasnt actualy modified the tar, they just took it down
<clever>
and all nix knows, is that the hash is wrong
<joachifm>
there was a commit recently that updated url for broadcom-sta
<hokuJU>
ok, now I understand
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/v1oRW
schneefux has quit [(Quit: ZNC 1.6.3 - http://znc.in)]
schneefux has joined #nixos
osa1 has quit [(Ping timeout: 252 seconds)]
bennofs1 has joined #nixos
<clever>
LnL: heh, and youve proven me wrong, just a couple hours ago, i said i was probably the only one to be using the module framework outside of nixos
<hokuJU>
clever: alrigth, I'm giving it a try. adding worked, now it's rebuilding....
<LnL>
clever: nope, I started using this about a month month ago or something
indi_ has quit [(Remote host closed the connection)]
<gchristensen>
clever: can't debug now, but so the ramdisk tool you sent me ends up with /nix/store being read-only, and can't run nixos-install b/c it wants to touch /nix/store/.links
<clever>
gchristensen: ah, i filed a PR for that, which nix channel did you build from?
<gchristensen>
ok I'll try that in a few hours. big storme
c0bw3b has joined #nixos
<gchristensen>
big-ish storm coming my way, getting groceries
<c0bw3b>
where is that?
hokuJU has quit [(Ping timeout: 258 seconds)]
glines has joined #nixos
Wizek_ has joined #nixos
<angerman>
I'm getting "invalid character ‘&’ in name ‘D2733?id=9915&dowload=true’" when trying to construct an url for fetchurl. How do I have to handle &?
<LnL>
did you quote the url?
<MichaelRaskin>
specify name=
<MichaelRaskin>
it defaults to url-derived name, but in this case the default is unusable
hokoJU has joined #nixos
tomberek has joined #nixos
<hokoJU>
clever: the rebuild worked finally. However, I'm still not having the latest versions of some programs. for instance firefox remains at version 48. is it maybe because I'm only subscribed to the nixos-16.03 channel?
<angerman>
LnL: I tried "....D${val}?id=${val2}&download=true"
<clever>
hokoJU: pretty sure everybody should be switching to 16.09 now
<angerman>
MichaelRaskin, let me try.
<LnL>
angerman: then it's probably the name
<tomberek>
Anyone know how to properly wrap systemd services such that I can deploy via Disnix/DisnixOS/Dydisnix? All the examples I see use "service" as an overloaded term, not as in "systemd service".
filterfish_ has quit [(Read error: Connection reset by peer)]
<hokoJU>
clever: alright, I added 16.9, I guess I should remove the old one?
filterfish has quit [(Remote host closed the connection)]
<clever>
hokoJU: yeah, and the channel should be called nixos
filterfish_ has joined #nixos
filterfish_ has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
filterfish_ has quit [(Remote host closed the connection)]
filterfish_ has joined #nixos
filterfish_ has quit [(Remote host closed the connection)]
filterfish_ has joined #nixos
filterfish_ has quit [(Remote host closed the connection)]
filterfish_ has joined #nixos
filterfish_ has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
Fare has joined #nixos
filterfish_ has quit [(Remote host closed the connection)]
filterfish_ has joined #nixos
filterfish_ has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
hokoJU has quit [(Ping timeout: 268 seconds)]
filterfish_ has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
filterfish_ has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
filterfish_ has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
osa1 has quit [(Ping timeout: 250 seconds)]
filterfish_ has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
<angerman>
Thanks everyone for the help!
filterfish_ has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
filterfish_ has quit [(Remote host closed the connection)]
pi3r has joined #nixos
filterfish_ has joined #nixos
<NixOS_GitHub>
[nixpkgs] offlinehacker opened pull request #21068: Add bash completions for a few packages (master...pkgs/completions/add) https://git.io/v1oEj
filterfish_ has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
rmrfroot has joined #nixos
filterfish_ has quit [(Remote host closed the connection)]
osa1 has joined #nixos
filterfish_ has joined #nixos
filterfish_ has quit [(Remote host closed the connection)]
filterfish_ has joined #nixos
filterfish_ has quit [(Remote host closed the connection)]
filterfish_ has joined #nixos
<NixOS_GitHub>
[nixpkgs] offlinehacker opened pull request #21069: kubernetes: generate docs, fix empty man files (master...pkgs/kubernetes/docfix) https://git.io/v1ouY
filterfish_ has quit [(Remote host closed the connection)]
filterfish_ has joined #nixos
<tomberek>
Anyone know how to properly wrap systemd services such that I can deploy via Disnix/DisnixOS/Dydisnix? All the examples I see use "service" as an overloaded term, not as in "systemd service".
filterfish_ has quit [(Remote host closed the connection)]
filterfish_ has joined #nixos
filterfish_ has quit [(Remote host closed the connection)]
<viric__>
I was struggling making my webrtc work on it... but I think chromium is just broken
<clever>
viric__: complete failure on firefox, let me find chrome
<viric__>
in firefox it works for me
<clever>
firefox 49.02 "nightly" from nixos-unstable
<viric__>
ah, internalError now I get... in firefox 49 it worked
<viric__>
ha.
goibhniu has joined #nixos
<viric__>
my fault - it does work in firefox
<viric__>
but not in chromium
<viric__>
the 2nd video appears black here
<clever>
viric__: in chromium, i had to allow the camera first
<viric__>
that's normal
<clever>
then i can see myself
<hodapp>
how many pots of coffee should I be prepared to brew if I'm about to put NixOS on my laptop?
<viric__>
it properly shows the local camera (left video), but the call does not make the 2nd video show
<clever>
and if i hit call, i can see myself twice
<viric__>
clever: really? mh
<viric__>
clever: here I get black on 2nd window. I had ".90"... let me check chromium ".100"
<hodapp>
it's occurred to me that I'm in a lull in between classes/clients, but NixOS has no particular known issues on laptops, right?
<clever>
viric__: and chromium cant render the about page
<clever>
hodapp: i have it running on my laptop without issue
<clever>
viric__: 53.0.2785.143
<viric__>
and firefox on android does not grab properly from the local camera. damn browsers :)
<viric__>
clever: I had 54.0.2840.90
k11` has joined #nixos
<hodapp>
clever: what laptop?
<viric__>
damn chromium. how do you go to an address you have in the copy buffer?
<clever>
hodapp: dell d630, Core(TM)2 Duo 1.8ghz, 3gig of ram
<hodapp>
ahh, okay
<hodapp>
this is a Thinkpad T410 and it's run Fedora flawlessly so hopefully it's fine
filterfish has quit [(Remote host closed the connection)]
<vanrein>
after @clever's remark about the live CD, I reinstalled from "minimal". All seems to be working, until a reboot... then zpool does not find back the volumes created. Any suggestions are welcomed.
<viric__>
clever: the 54.0.2840.100 does not work either. Black window in 2nd video
filterfish has joined #nixos
<vanrein>
mind you, reboot is again from the "minimal" CD
filterfish has quit [(Read error: Connection reset by peer)]
<clever>
vanrein: nixos wont import all pools on bootup, it only imports the pools listed in the active configuration.nix
filterfish has joined #nixos
<vanrein>
ah!
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
<vanrein>
@clever are these the fileSystem."/" and such? because I set those after a full install -- ah but didn't boot that NixOS, I restarted the live CD -- so you are saying *that* is the cause, right?
filterfish has joined #nixos
<vanrein>
if so, I'll try another fresh install
<vanrein>
(catch-22 -- don't have the zpool, cannot find how to load it, so the old install is gone)
<clever>
vanrein: yeah, the livecd has its own config
filterfish has quit [(Read error: Connection reset by peer)]
<vanrein>
tx!
<clever>
vanrein: you need to re-add zfs to boot.supportedFilesystems, on the livecd's config, then nixos-rebuild switch
filterfish has joined #nixos
<clever>
vanrein: then you can see the install on the hdd and mount it
filterfish has quit [(Read error: Connection reset by peer)]
<vanrein>
okay, I think I'm starting to understand (and appreciate) how NixOS works :) thanks, @clever!
<clever>
vanrein: it is also possible to build a custom livecd that just has zfs by default, but i find it more powerfull to just point nixos-install at a usb stick
<clever>
vanrein: if you install directly to usb, then you wont loose everything upon reboot, and you can add tools you often use at install and they stay
osa1 has quit [(Ping timeout: 248 seconds)]
viric has joined #nixos
viric__ has quit [(Ping timeout: 268 seconds)]
glines has quit [(Ping timeout: 265 seconds)]
Guest97229 has quit [(Quit: leaving)]
jacob_ has joined #nixos
jacob_ is now known as Guest41835
osa1 has joined #nixos
osa1 has quit [(Ping timeout: 256 seconds)]
<NixOS_GitHub>
[nixpkgs] abbradar closed pull request #21059: steam: added java and steam-run to documentation, removed patchelf info (master...fix/steam-doc) https://git.io/v1oW7
<c0bw3b>
openssl libev and zlib are declared as optionals in the parameters but then they are used as build inputs
<c0bw3b>
so they are not optionals in fact no ?
tomberek has quit [(Ping timeout: 260 seconds)]
<clever>
c0bw3b: callPackage will always specificy the optional things
<clever>
c0bw3b: so somebody has to make an override that sets it to null to actualy disable it
viric has quit [(Ping timeout: 245 seconds)]
<c0bw3b>
so if you want to build httpd or curl with httpd2 support you would override this definition with null params in order to build only the nghttp2 lib
evck has quit [(Remote host closed the connection)]
iyzsong has quit [(Quit: bye.)]
<Fare>
is there a REPL for the Nix language?
<clever>
Fare: nix-repl
<Fare>
doh
systemfault has joined #nixos
<NixOS_GitHub>
[nixpkgs] montag451 opened pull request #21074: pytun: init at 2.2.1 (master...pytun) https://git.io/v1oaF
hokuJU has joined #nixos
<hokuJU>
hi! I installed nixos on a 30gb stick, from which I boot. works super. Now, I switched to the latest 16.9 channel and tried to update the system. I'm running into 'free disc space' issues when rebuilding. My nix-store dir is about 19gb, the home dir 5gb, so this seems to be quite logical. How would you handle this for now?
osa1 has joined #nixos
<clever>
hokuJU: start by seeing how much you can save by running nix-collect-garbage, and then consider deleting older generations, like "nix-collect-garbage --delete-older-than 30d"
<Fare>
is there an error / bottom function in the nix language that terminates early, beside creating a non-terminating (x: x x)(x: x x) that doesn't terminate?
<clever>
Fare: throw "foo"
<Fare>
thanks
<c0bw3b>
yheah okay other packages actually depend on nghttp2.lib though it's not clearly apparent in their nix definition
<LnL>
c0bw3b: you can use nox-review to see what stuff depends on you local changes
<Fare>
can a set be the result of a least fixed point operation, where the labels themselves are determined by the fixed point?
osa1 has quit [(Ping timeout: 260 seconds)]
hokuJU has quit [(Ping timeout: 258 seconds)]
<c0bw3b>
LnL & clever : thanks for your protips :)
* Fare
tries to port his trivial prototype OOP to Nix
<hokoJU>
hi! I installed nixos on a 30gb stick, from which I boot. works super. Now, I switched to the latest 16.9 channel and tried to update the system. I'm running into 'free disc space' issues when rebuilding. My nix-store dir is about 19gb, the home dir 5gb, so this seems to be quite logical. How would you handle this for now?
<NixOS_GitHub>
[nixpkgs] rlupton20 opened pull request #21075: helm (kubernetes): init at v2.0.2 (master...kubernetes-helm) https://git.io/v1oVs
<clever>
hokuJU: start by seeing how much you can save by running nix-collect-garbage, and then consider deleting older generations, like "nix-collect-garbage --delete-older-than 30d"
<hokoJU>
clever: alright, the first thing gave me 3,6 gig
<clever>
hokoJU: id try the 2nd command then, that should get you some more
<sheenobu>
hrm. how do I re-enable docker on this machine without having to force this chromium recompilation? Should I just be running docker in a container?
<sheenobu>
might just step out. I need to pick up a new sim card anyway
<sphalerite>
Is there a way to patch an executable to run on nixos based on guesswork with the available libraries/the ones that the executable wants?
<sheenobu>
sphalerite, patchelf is what you want. patchelf --set-interpreter first. then i check "ldd binary" to find missing libs
<sheenobu>
when I /need/ an interpreter, i check "ldd /bin/sh" and use its listed interpreter
<sphalerite>
perfect, thanks
<sheenobu>
justanotheruser, looks like a problem with chromium 53? chromium 54 is released for nixos 16.09. are you on 16.03?
<sphalerite>
Right, managed to get the official binary to run by hacking in the right loader using patchelf and generous abuse of LD_LIBRARY_PATH... the grid bug bites! You die...
<sphalerite>
oops, wrong channel
<sheenobu>
Haha!
<sphalerite>
(in case anyone was wondering: blender. They don't like distro versions of software and the go-to response when anyone complains about a potential bug is "use the official build". Which is of course easier said than done on nixos)
<sheenobu>
sphalerite, there should be a way to create package that 1. installs the required libraries, then 2. create a wrapper for the binary in question that uses LD_LIBRARY_PATH. I think this is how Steam is done
<sphalerite>
Yeah, this is more of a one-off thing though so I don't think it's worth it
<sphalerite>
all I wanted to do was check if the bug is reproducible with the official build too
<sheenobu>
and you'll want to nixos-rebuild --update if you haven't.
<sheenobu>
is it --update? --upgrade?
<c0bw3b>
upgrade
<justanotheruser>
ok, will run thanks
<sphalerite>
sheenobu: oooh that looks nice
<clever>
sheenobu: the only thing --upgrade does, is run "nix-channel --update" first, which sort of makes the whole "nixos-rebuild --upgrade switch" non-atomic
<sheenobu>
justanotheruser, yeah e4fb65a isn't the most recent release (it's 7 weeks ago according to git log e4fb65a)
<sheenobu>
clever, yeah i typically run nix-channel --update first
<clever>
sheenobu: it turns into 2 atomic operations, and the 1st isnt undone in the event of the 2nd failing
<justanotheruser>
I didn't realize I had to upgrade as well, I am a noobie
<sheenobu>
which is why i never remember the flag.
<justanotheruser>
thank you
Guest350 has joined #nixos
<sheenobu>
justanotheruser, welcome to nix. Yes nixos-rebuild build will build a config. nixos-rebuild switch will switch to the config. nothing will change until you 'update your channel' via nix-channel --update (as root)
<sheenobu>
sphalerite, thanks. I'm proud of it. spotify is one of the things I manage via nix-home since the spotify deb can magically disappear. The less you have in /etc/nixos/, the less costly a nixos-rebuild switch is (post channel upgrade, that is)
<sphalerite>
Hm, that's another thing I don't understand
<sphalerite>
What exactly is <nixpkgs>? I figure it expands to the path of nixpkgs as a string, but what is it syntactically and how does it get evaluated?
<MichaelRaskin>
Fare: __noChroot derivation attribute, and build-use-sandbox should be set to relaxed
<Fare>
MichaelRaskin, thanks!
<Fare>
in an unrelated question, sometimes my soundcard is in a weird state at startup, and my "solution" is to manually modprobe -r snd_hda_intel ; modprobe snd_hda_intel ... are there modprobe options that would get it not hosed, and/or a way to automatically run the unhosing command later during startup?
<sphalerite>
How can I build the documentation from the nix repo?
<Fare>
grw: I have no idea. I've never done it. You have to edit some script or program to change the path of a random state file
<clever>
gchristensen: heh, i didnt think fdisk would be happy with echo on stdin
<gchristensen>
yeah that works ok
<Dezgeg>
sfdisk is better for scripting I think
<gchristensen>
oh cool
<gchristensen>
next I need to make this work with a single script
<clever>
Dezgeg: main issue i ran into with sfdisk, is making it fill the entire disk up automaticaly
<gchristensen>
with a hosted kexec bootstrapper
<NixOS_GitHub>
[nixpkgs] offlinehacker opened pull request #21077: npm module: add npm module for global npm config (master...nixos/programs/npm/add) https://git.io/v1oKX
<Dezgeg>
I think my scripts for the arm images do that
<clever>
gchristensen: you should be able to paste it into here, and then just make a systemd unit to spit status out over http maybe?, and do a real reboot at the end
<kmicu>
sphalerite: Nix manual is in Nix package ‘/nix/store/*-nix-*doc/share/doc/nix/manual/index.html’
<sphalerite>
kmicu: no I wanted to actually build it to see my changes. Got it now though. Thanks anyway!
<clever>
sphalerite: there is also a difference between <nixpkgs>/foo and <nixpkgs/foo>
edvorg has quit [(Ping timeout: 256 seconds)]
<clever>
sphalerite: <nixpkgs/foo> will keep checking each nixpkgs it can find, until it comes across one that has a foo in the root, while <nixpkgs>/foo will pick the first one, then just blindly append /foo to the end
<sphalerite>
clever: makes sense, the former is more likely to fail
<sphalerite>
yeah
<sphalerite>
I've submitted a PR with doc changes as the bot pointed out
<sphalerite>
Not sure if my explanation is that good, but hey at least it's there
<sheenobu>
anyone build any android kernels on nix? not running nixos on an android device, just running the android build process.
<sheenobu>
would love to get boot2gecko (the basis of the now defunct firefox os) built but all the instructions are 1. ubuntu specific 2. download the entire internet in shell scripts
osa1 has joined #nixos
osa1 has quit [(Changing host)]
osa1 has joined #nixos
<clever>
sheenobu: heh, ouch
earldoug1as has quit [(Ping timeout: 244 seconds)]
RchrdB has joined #nixos
<clever>
sheenobu: i recently wanted to fix a bug in my custom android app for my thermostat system, it took an hour just to find the source (last-mod times in 2013), and then another hour to remember how to build it
<sheenobu>
clever, yeah whenever i want to try something new (nes homebrew, custom android stuff) my first steps are to get everything Nix'ed. Having a setup that uses nix to fetch android sources, build a derivation, then convert that derivation to the appropriate images would be great.
<MichaelRaskin>
I wonder if it is feasible to have support for rebuilding F-Droid stuff managed by Nix
<sheenobu>
oh wow I've never heard of f-droid. I just started using cyanogenmod myself
jgertm_ has joined #nixos
<MichaelRaskin>
F-Droid is generally useful even if you stick with the vendor's install
<MichaelRaskin>
With F-Droid your chances to reproduce the same set of apps on the next device are quite high
<MichaelRaskin>
With vendor-supplied stuff, close to zero…
<sheenobu>
gotcha. I haven't bothered with gapps and may never try.
<sheenobu>
(at least, since I've switched to cm)
systemfault has quit [(Quit: Bye!)]
<NixOS_GitHub>
[nixpkgs] LnL7 opened pull request #21078: darwin.stdenv: use minial python to bootstrap clang (master...darwin-stdenv-python) https://git.io/v1o6Q
<sphalerite>
wait so where did you get apps from sheenobu ?
<sheenobu>
sphalerite, i.. i don't.
<sheenobu>
it's only been a week or so.
<sphalerite>
aaaah okay
<MichaelRaskin>
I even prefer K-9 to whatever shipped stuff pretends to support email
<clever>
error: could not set permissions on ‘/nix/var/nix/profiles/per-user’ to 1777: No space left on device
<k11`>
how I tune lvm config options?
<k11`>
I neet to set issue_discards = 1
zagy has joined #nixos
glines has joined #nixos
c0bw3b has left #nixos []
<sheenobu>
rm: out of space. womp womp.
<MichaelRaskin>
The joys of BtrFS?
<clever>
MichaelRaskin: zfs, had to delete 3 snapshots to get gc to run
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to master: https://git.io/v1oPy
<NixOS_GitHub>
nixpkgs/master 601058e Joachim Fasting: grsecurity: 4.8.13-201612082118 -> 4.8.14-201612110933
<clever>
the issue, is that i'm testing something that involves building 300-400mb tarballs
<clever>
and i have 5gig free
pi3r has quit [(Ping timeout: 258 seconds)]
<gchristensen>
clever: with mdadm, do I need to do anything special in my configuration.nix after I create the array?
<clever>
no idea, havent tried mdadm
<clever>
ive only used lvm and zfs for multi-disk arrays
<gchristensen>
ay.
zagy has quit [(Quit: Leaving.)]
<gchristensen>
"6 × 480GB SSD"
goibhniu has quit [(Ping timeout: 245 seconds)]
<gchristensen>
back in a while. *is very in-and-out this weekend*
<clever>
gchristensen: oh, another thing thats massively usefull, <enter>~. will make the linux ssh client hang up instantly
<clever>
i havent looked into solving that issue yet in the script, it improperly shuts the host down, in the middle of you using ssh, so its a bit tricky to get out
e1 has joined #nixos
goibhniu has joined #nixos
<NixOS_GitHub>
[nixpkgs] sternenseemann opened pull request #21080: gopher: init at 3.0.11 (master...gopher) https://git.io/v1oXB
<NixOS_GitHub>
[nixpkgs] Mic92 opened pull request #21081: libxslt: add option to enable crypto support (master...libxslt) https://git.io/v1oX0
ambro718 has quit [(Ping timeout: 268 seconds)]
<sphalerite>
clever: to get out of the ssh session?
<sphalerite>
enter ~ .
<clever>
sphalerite: yeah, for when the ssh server has stopped responding
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to release-16.09: https://git.io/v1oXo
<NixOS_GitHub>
nixpkgs/release-16.09 dd9483b Joachim Fasting: couchdb service: fix test in preStart...
<NixOS_GitHub>
nixpkgs/release-16.09 632100b Joachim Fasting: grsecurity: 4.8.13-201612082118 -> 4.8.14-201612110933...
m` has joined #nixos
mudri has quit [(Ping timeout: 252 seconds)]
<sphalerite>
enter then ~ is the default escape sequence for the SSH client and . will terminate the connection
<clever>
yep
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v1oXH
<NixOS_GitHub>
nixpkgs/master d568cb9 Linus Heckemann: google-apputils: enable for py3k (#21079)...
hotfuzz has quit [(Read error: Connection reset by peer)]
<NixOS_GitHub>
[nixpkgs] guillaumekoenig opened pull request #21082: enpass: fix install to work with browser extensions (master...fix-enpass-browser-extension) https://git.io/v1oXj
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/v1o1U
<NixOS_GitHub>
nixpkgs/staging 1626b1b Frederik Rietdijk: json_glib: use multiple outputs
<m`>
hi! I installed nixos on a 30 gb stick. After successfully upgrading to the 16.9 I'm really running out of disk space. and the nix store causes this. I already garbage collected + removed generations older than 10 days. In a long term I will install nixos on the hard drive. but for now, does anybody have an idea to free some disk space? I think it would feel wrong to further remove generations. how about manually d
<m`>
eleting some end-user applications from the nix store folder, which I definitely will not need anymore? of course this would break the system, but would it make a rollback completely inpossible?
e1 has quit [(Ping timeout: 265 seconds)]
<kmicu>
Check with ‘nix-store --gc --print-roots’ if you have any ‘result’ symlinks blocking garbage collection of older generations.
Fare has quit [(Quit: Leaving)]
<kmicu>
(If you plan to manually delete anything from the /nix/store then use ‘nix-store --delete …’ tool.)
<m`>
the suggested command prints out about 20-30 links
<hodapp>
that's pretty much what I ran, but with LVM
pi3r has joined #nixos
m` has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<m`>
clever: net was broken, read your answer in the log, just to make sure: 'sudo rm /home/m/result' and not via a nix-tool?
<clever>
m`: yes
<m`>
alright, and then nix-collect-garbage once again?
<clever>
m`: yes
<m`>
ok, this freed some 40 mb
<NixOS_GitHub>
[nixpkgs] msteen opened pull request #21083: google-chrome: add new dependency on libxcb (release-16.09...google-chrome-libxcb-16.09) https://git.io/v1oDN
<clever>
m`: id try just doing "nix-collect-garbage -d" then, that should get rid of a decent chunk of things, at the cost of rollbacks
<Rotaerk>
are there any functions for mapping sets to sets? something like Set a v -> ((a, v) -> (a, v)) -> Set a v
<Rotaerk>
or do I need to use attrNames, then index the set for each
<m`>
clever: I know this would help here. but, really, when is having a the option to rollback more important than after a complete system update ;-) (which was the last switch)?
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/v1oym
<NixOS_GitHub>
nixpkgs/master a4bbf4c Frederik Rietdijk: pythonPackages.scikitlearn: 0.18 -> 0.18.1
<Ralith>
m`: well, you have to choose between having effectively two copies of NixOS installed and not
<clever>
m`: if you run that without root, then it can only delete the user profiles, it cant delete system profiles
<clever>
m`: so it wont have an effect on your ability to boot
<m`>
ok, then I'll do it. Didn't actually know that there is a notion of 'user generations' (simlilarly to system generations). Just for curiosity: Does it create a new user gen. every time something is installed via nix-env -i?
<clever>
m`: yes
<clever>
m`: and every time you remove something with nix-env -e
<m`>
alright, interesting. ok nix-collect-garbage -d (as non-root) gave me 1100 mb now..
<m`>
so now I know how to carry on will remove unnecessary stuff from the user profile. learned a lot. thx!
<rycee[m]>
Rotaerk: Maybe mapAttrs will do what you want? Check attrsets.nix file in nixpkgs.
<Rotaerk>
thanks
<hodapp>
IT BOOTED \o/
<clever>
gchristensen: aha, at least in the vbox case, virtualisation.virtualbox.guest.enable = true; allows the GPU to recover after a kexec
<Rotaerk>
rycee[m], perfect
<clever>
gchristensen: though only if i unbind it first
osa1 has quit [(Ping timeout: 250 seconds)]
m` has quit [(Ping timeout: 240 seconds)]
m` has joined #nixos
hotfuzz_ has quit [(Read error: Connection reset by peer)]
hotfuzz_ has joined #nixos
XeonSquared has joined #nixos
<NixOS_GitHub>
[nixpkgs] offlinehacker opened pull request #21085: pachyderm: init at 1.3.0 (master...pkgs/pachyderm/init) https://git.io/v1oS6
m` has quit [(Ping timeout: 248 seconds)]
justanotheruser has quit [(Ping timeout: 250 seconds)]
wangoe has joined #nixos
justanotheruser has joined #nixos
<NixOS_GitHub>
[nixpkgs] pSub pushed 1 new commit to master: https://git.io/v1oHu
<ashkitten>
How can I disable shutdown when the power button is pressed? I want it to just suspend.
<clever>
ashkitten: in xfce, i can go settings->power manager, and there is a drop-down to configure that
<ashkitten>
I don't use a desktop manager
<clever>
i havent looked into how to configure it manualy on systemd
<sheenobu>
ashkitten, what a lot of people (in /r/unixporn) do is run xfce-session but without xfce panel or xfdesktop.
<sheenobu>
and with a custom window manager.
<ashkitten>
Never mind, I think I can configure it with services.logind.extraConfig
<ashkitten>
Okay another question: how can I have it automatically lock the screen (using slimlock) on suspend?
systemfault has joined #nixos
m` has joined #nixos
<savanni>
Is there a reasonable way to restore bluez-4 to a nixos machine? There's some painful regressions in bluez-5 that don't seem to have a workaround.
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v1o7Y
<NixOS_GitHub>
nixpkgs/master d5ec2a2 Gregor Kleen: postsrsd: additional configuration...
kampfschlaefer has quit [(Ping timeout: 258 seconds)]
evck has joined #nixos
Fare has joined #nixos
<m`>
hi! I'm running nixos on a usb stick, from which I boot. It runs well. However, once in a while I'm having memory problems (e.g. when there are several java virtual machines running). The memory usage then goes up to 100% and the system does not recover from that, sometimes it hangs and I have to restart. I was wondering If I could just activate an already existing swap partitition via the swapDevices option. the sw
<m`>
ap parition was created by a Linux Mint system and is diplayed by fdisk -l as '/dev/mapper/mint--vg-swap'?
amarsman has quit [(Quit: amarsman)]
<sheenobu>
m`, yes you can use swapon manually and place the swap details in /etc/nixos/hardware-configuration.nix
<sheenobu>
if you use swapon and then use nixos-generate-config --show-hardware-config it'll show you the swap entry you need to add, which is super simple
amarsman has joined #nixos
<m`>
so I'd just call 'swapon /dev/mapper/mint--vg-swap' first?
pi3r has quit [(Ping timeout: 264 seconds)]
<sheenobu>
maybe not /dev/mapper but /dev/disk/... . not sure
wangoe has left #nixos []
<sheenobu>
m`, maybe yes /dev/mapper/mint--... since that swap is in an lvm group I guess?
<hodapp>
interesting. NixOS seems to boot much faster than Fedora, yet still to lightdm/XFCE
<hodapp>
no complaints here.
aboseley has joined #nixos
<m`>
I used the mapper one, and the nix-gemerate-config --show... gave me: { device = "/dev/disk/by-uuid/c1c0e928-11d2-4866-bf62-921844003e3a"; }
<sheenobu>
sounds about right. if you "stat /dev/mapper/mint--..." you'll probably see a symlink there
BlessJah has quit [(Quit: Reconnecting)]
BlessJah has joined #nixos
ambro718 has joined #nixos
Guest41835 has quit [(Quit: Lost terminal)]
<m`>
right, it points to ../dm-1
<m`>
ok, the rebuild worked. I'm wondering how I can test now if it works/if the swap is used...
jgertm_ has joined #nixos
bennofs1 has quit [(Ping timeout: 258 seconds)]
<NixOS_GitHub>
[nixpkgs] risicle opened pull request #21086: opencv 3.1.0: add patch fixing python use of FlannBasedMatcher.add (master...opencv-flannbasedmatcher-fix) https://git.io/v1odF
<m`>
seems to be working as cat /proc/swaps reveals
zraexy has quit [(Ping timeout: 256 seconds)]
lverns has quit [(Ping timeout: 258 seconds)]
<sphalerite>
To what extent is it safe to build untrusted packages?
<shlevy>
sphalerite: If you have sandbox enabled, pretty safe
<shlevy>
As long as you don't run the code yourself outside of a nix build
<sphalerite>
awesome
<sphalerite>
yeah
<shlevy>
And as long as you trust the linux kernel ;)
buttbutter has joined #nixos
civodul has joined #nixos
<m`>
which terminal emulator are you using (from the nix-store)? I'm having a hard time to find a fitting (nothing fancy, but also 'contemporary' in its appearance) one. roxterm worked fine for me, but it's not maintained anymore..
<sphalerite>
well if we're going there I also need to trust the firmware, nix itself, etc
<buttbutter>
This is kind of a bullshit question, but I'm itching to switch to nix but have limited time this week...how long would it take a reasonably competent person that knows generally little of nix to get a basic install going?
<hodapp>
of just nix? or nixos?
<buttbutter>
nixos :)
<LnL>
depends on what you want to use
<hodapp>
well, I didn't know much about nix and I got nixos going this morning, including LUKS & LVM root
<buttbutter>
Oh wait, I don't know shit about Nix either. :D
<buttbutter>
But...I know Haskell....does that help?
<hodapp>
no major issues, in fact, overall less crap to deal with than when I put ArchLinux on this laptop
<buttbutter>
Okay, that's good.
<buttbutter>
I'm switching from Arch too :)
<hodapp>
my laptop had Fedora though, and it ran that just fine :)
<hodapp>
if it goes well on the laptop I'll switch my desktop too (which has Arch still)
<buttbutter>
hodapp: My exact plan :)
<buttbutter>
LnL: Just basic stuff. Xmonad, urxvt,...and like chrome.
<sphalerite>
buttbutter: Knowing Haskell helps a little with understanding the language. I think the biggest hurdle for me was finding the relevant parts of the documentation for my questions, but the people in here have been incredibly helpful. Doing common things is generally very simple and easy though.
<sphalerite>
If I needed to install a machine for my grandma I would probably have it done in an hour or two.
<buttbutter>
Okay. That's good. I think my set-up classifies as super common/simple. Great! I'll switch this week then. :)
<sphalerite>
maybe 6h starting with absolutely no knowledge of nixos
<m`>
sphalerite: is st. / the suckless suite in the nix-store? cant find it.
<sphalerite>
m`: nixos.st
zagy has joined #nixos
hiratara has quit [(Ping timeout: 258 seconds)]
<sphalerite>
dwm, surf and friends are there too (but I don't use those so I don't know about how they work in nixos. If they're anything like st though, and I have no reason to believe they're not, piece of cake.)
<savanni>
Is there any way to downgrade back to bluez-4 and a compatible version of pulseaudio? bluez-5 + pulseaudio-9 has a long-known regression that I'm finding impossible to work around.
<LnL>
buttbutter: you can probably get a basic system working in a couple of hours (depending on how complicated you want to make the disk layout)
<hodapp>
I ran st for a bit and just had too many weird issues with (I think) UTF-8 and line wrapping never working fully right
way218 has joined #nixos
christine_ has joined #nixos
<sphalerite>
hodapp: but st is written from the ground up to work well with unicode... And line wrapping not working right? how so?
<hodapp>
sphalerite: e.g. Press up-arrow and recall prior command. Prior command is several lines long. Move cursor somewhere to middle and attempt to edit command. It starts writing characters to a different position than it is showing.
<hodapp>
crap like that.
hiratara has joined #nixos
<sphalerite>
weird, I never had issues like that
<sphalerite>
although they probably get hidden by tmux if they exist on mine
zagy has quit [(Ping timeout: 258 seconds)]
<sphalerite>
nope, line editing works fine without tmux as well...
<hodapp>
it happens sporadically with me
<hodapp>
usually upon something like a window resize
<gchristensen>
clever: good to know about <enter>~.
<gchristensen>
_really_ good to know!
<LnL>
gchristensen: yeah I discovered that a few months ago
<m`>
hodapp: what was your choice after st then?
<sphalerite>
hodapp: resizing the window doesn't break it for me either ¯\_(ツ)_/¯
<hodapp>
sphalerite: it doesn't for me either
<hodapp>
until it just does
<hodapp>
m`: I've used gnome-terminal a bit
<sphalerite>
maybe you're cursed :p
<hodapp>
I suppose my next step should be to figure out how to install $crap that is only available for $whatever_package_manager on $distro
<sphalerite>
gchristensen: you can also set up port forwards in a running session using ssh's escapes (rather than starting a new one)
<gchristensen>
sphalerite: as kmicu regularly reminds me, I should really read the manual!
<LnL>
sphalerite: what, that sounds pretty usefull
<sphalerite>
It's surprising how little-known it is though. Just not widely documented
<sphalerite>
<enter> ~ C
<sphalerite>
type ? at the prompt to get info
<sphalerite>
#
<sphalerite>
oops
<gchristensen>
holy crap
systemfault has quit [(Quit: Bye!)]
systemfault has joined #nixos
<sphalerite>
also, manuals are long.
<sphalerite>
IRC is the best way to learn things :p
<sphalerite>
Actually no, pretend I never said that. It made me feel like those people who just copy and paste their homework/work tasks onto stack overflow
<MichaelRaskin>
Feed a manual into an empty channel. At the same traffic as #nixos, you'll read quite a few manuals every day
viric___ is now known as viric
goibhniu has quit [(Ping timeout: 245 seconds)]
<sphalerite>
but I don't read all of #nixos :p
c0bw3b has joined #nixos
<sphalerite>
plus I can't share what I do know with a manual
<MichaelRaskin>
Hey, you can! PRs against manual are very welcome.
<sphalerite>
Oh yeah I even did one of those today
* sphalerite
should probably sleep
<sphalerite>
But I found the information that I put in it via IRC ;0
<sphalerite>
;) *
<sphalerite>
Right I'm off, gnight!
<jeaye>
Anyone manage to build uberjar packages with leiningen? I've been unable to get it downloading deps properly, since it tries to store them in /var/empty/.m2
m` has quit [(Ping timeout: 264 seconds)]
sigmundv_ has quit [(Ping timeout: 260 seconds)]
FRidh has quit [(Remote host closed the connection)]
hotfuzz has joined #nixos
hotfuzz_ has quit [(Read error: Connection reset by peer)]
jgertm_ has quit [(Ping timeout: 258 seconds)]
hiratara has quit [(Remote host closed the connection)]
hiratara has joined #nixos
<NixOS_GitHub>
[nixpkgs] pSub pushed 1 new commit to master: https://git.io/v1oNd
<NixOS_GitHub>
nixpkgs/master 7bcc6e9 Pascal Wittmann: riemann: provide executable and config...
<m`>
so (executable-find "ghci") -> nil (executable-find "grep") -> some path..
<jeaye>
LnL: Yup. Chatting with someone in #leiningen about it now. If all else fails on that side, I think I should be able to give each nix builder its own home and this would go away.
<LnL>
during a build HOME is set to /homeless-shelter to make sure build's don't try to put stuff there
<jeaye>
Grr
<m`>
(when emacs is started regularly, ghci can be found)
<LnL>
m`: how did you install ghci?
<m`>
LnL: I installed the ghc and the stack package (but only on the user profile), I'm not sure where ghci comes from.
<m`>
maybe I should put them to the configuration.nix
<LnL>
the emacs daemon probably only knows about the systemPackages
indi_ has joined #nixos
<m`>
well, on the other hand firefox is declared in the systemPackages (in configuation.nix), however it's not recognized as well.
<LnL>
it might also just not know about any packages apart from the stdenv
<c0bw3b>
LnL : no packages needs the full options but I'd like to be able to build nghttpx reverse proxy _with_ jemalloc
<c0bw3b>
LnL : or some user might want to try the C++ lib to add HTTP2 support to its app --> need building nghttp2 with boost
<LnL>
right, I would add the options then but leave them disabled by default
<LnL>
and there's probably no need to add an attribute with everything enabled, then nghttpx expression can just override the jemalloc option to enable it
<m`>
LnL; yes, I restarted it. I figured out now, that emacs does knows about a PATH variable (getenv ..), which contains the right path to ghci. but still it does not find it.
<c0bw3b>
LnL: yep :) i also feel it's the best solution
mkoenig has joined #nixos
<m`>
LnL: the config in the link you sent looks slightly different from the url I posted initally. I dont know exactly how this works, to me it looks like the configuration.nix would overwrite them, but'm not sure.
blahdodo has quit [(Remote host closed the connection)]
<LnL>
I'm not following, are you're talking about callPackage with { withJemalloc ? false }: ...
<NixOS_GitHub>
[nixpkgs] ttuegel closed pull request #21055: openblas: refactor and set TARGET always (master...openblas) https://git.io/v1rhC
<NixOS_GitHub>
[nixpkgs] ttuegel closed pull request #21016: openblas: Fix build issue when inside VM and CPU is undetected (master...fix-openblas-build) https://git.io/v1VnY
blahdodo has joined #nixos
jensens has quit [(Ping timeout: 260 seconds)]
<Cypi>
What would be a clean way to use a package present in unstable without upgrading to unstable? Can I just use the default.nix file associated with the package? If so, how?