<gchristensen> MichaelRaskin: I want to make this happen: https://gist.github.com/grahamc/c7c2fbffc811c5582e39dae30ab88376
<MichaelRaskin> Basically, flatten?
<gchristensen> yeah
<gchristensen> does that exist?
<MichaelRaskin> Not sure about that exact form
bkchr has joined #nixos
bastian__ has quit [(Ping timeout: 260 seconds)]
<shawndomniti> Hi everyone, I'm a new user of nixos, is there any equivalent to debian's repo system? I ask because I'm wanting to install https://www.messengerfordesktop.org/ but it looks like there isn't a package available via `nix-env -qaP` and before building my own I'd like to make sure someone else hasn't already done the work.
takle has quit [(Remote host closed the connection)]
<YellowOnion> clever, server hasn't crashed today, but it also wasn't under load, unlike last time.
eacameron has quit [(Remote host closed the connection)]
<NixOS_GitHub> [nixpkgs] ndowens opened pull request #24369: hdparm: 9.48 -> 9.51 (master...hdparm) https://git.io/vSLCl
<MichaelRaskin> gchristensen: looks like not yet, but it is 02:20 here. Maybe in the morning…
<MichaelRaskin> Not complicated, but requires some attention to not doing stupid typos
filterfish has joined #nixos
<gchristensen> awesome :D I've been playing with it, the hardest part is I don't know any other functional langsb
<ndowens08> shawndomniti: doesnt seem to be anyone working on it, atleast posted it
eacameron has joined #nixos
<ndowens08> wow travis is working again
takle has joined #nixos
eacameron has quit [(Ping timeout: 246 seconds)]
takle has quit [(Ping timeout: 264 seconds)]
<gchristensen> is there a way to determine if a variable's value is a derivation?
<gchristensen> *doh* isDerivation = x: isAttrs x && x ? type && x.type == "derivation";
ericsagnes has quit [(Ping timeout: 240 seconds)]
dhess` has joined #nixos
ericsagnes has joined #nixos
takle has joined #nixos
dhess` has quit [(Ping timeout: 260 seconds)]
proteusguy has joined #nixos
takle has quit [(Ping timeout: 268 seconds)]
carlosdagos has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej opened pull request #24370: poco: init at 1.7.8 (master...poco) https://git.io/vSLW7
carlosdagos has quit [(Ping timeout: 264 seconds)]
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej opened pull request #24371: ClickHouse (master...clickhouse) https://git.io/vSLlv
Supersonic112_ is now known as Supersonic112
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
marsam has quit [(Remote host closed the connection)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
systemfault has joined #nixos
takle has joined #nixos
mizu_no_oto has joined #nixos
pxc has quit [(Quit: WeeChat 1.7)]
takle has quit [(Ping timeout: 256 seconds)]
<NixOS_GitHub> [nixpkgs] copumpkin pushed 1 new commit to master: https://git.io/vSL8f
<NixOS_GitHub> nixpkgs/master c46600d Dan Peebles: iperf2: 2.0.5 -> 2.0.9...
systemfault has quit [(Quit: Bye!)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
systemfault has joined #nixos
ndowens08 has quit [(Killed (moon.freenode.net (Nickname regained by services)))]
ndowens08 has joined #nixos
Guest33401 has joined #nixos
systemfault has quit [(Max SendQ exceeded)]
Guest33401 has quit [(Client Quit)]
systemfault has joined #nixos
ndowens08 has quit [(Client Quit)]
ndowens08 has joined #nixos
takle has joined #nixos
dhess` has joined #nixos
takle has quit [(Read error: Connection reset by peer)]
<ndowens08> i always see takle enter and exit, never see him/her talk
takle has joined #nixos
mbrgm has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
ericsagn1 has joined #nixos
ericsagnes has quit [(Ping timeout: 240 seconds)]
<shawndomniti> anyone have any experience building packages for electron-based apps? I'm trying to package a piece of software that requires a gulp command to be ran
<Ralith> shawndomniti: I tried for a while, eventually gave up on npm as a dumpster fire and just use officially published build artifacts (though I still wire them up to the NixOS electron)
takle has quit [(Ping timeout: 240 seconds)]
Kingsquee has quit [(Quit: https://i.imgur.com/qicT3GK.gif)]
dhess` has quit [(Ping timeout: 240 seconds)]
<shawndomniti> Ralith: you remember anything specific? This is my first package so this might be the wrong way of going about it, but I'm thinking in the build phase to do `npm install -g gulp && npm install`, running the needed commands, and then packaging the output
<Ralith> npm accesses the network and as such is not suitable for being invoked directly in a nix package
<Ralith> there have been various attempts to build tools which convert npm packages to nix packages; none work reliably
<shawndomniti> Hmm, I hadn't thought of that.
<shawndomniti> The app I'm trying to package has debs and rpms available. Maybe I could set up the package def to download one of those and then extract the contents?
gbbrt has quit [(Read error: Connection reset by peer)]
gbbrt has joined #nixos
<shawndomniti> maybe use those files combined with the electron runner in the package you linked
<ndowens08> well night all
<Ralith> that sounds like a plausible approach
<Ralith> better would be to find the artifacts they use to construct the debs/rpms, but that may not be separately published
ndowens08 has quit [(Ping timeout: 240 seconds)]
slack1256 has quit [(Remote host closed the connection)]
hexagoxel has quit [(Ping timeout: 258 seconds)]
hexagoxel has joined #nixos
filterfish_ has joined #nixos
filterfish_ has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
d762b440__ has joined #nixos
filterfish has quit [(Ping timeout: 240 seconds)]
d762b440__ has quit [(Read error: Connection reset by peer)]
filterfish_ has quit [(Read error: Connection reset by peer)]
d762b440__ has joined #nixos
filterfish_ has joined #nixos
filterfish_ has quit [(Read error: Connection reset by peer)]
filterfish_ has joined #nixos
d762b440__ has quit [(Read error: Connection reset by peer)]
<shawndomniti> anyone know what packages provides `ar`?
d762b440__ has joined #nixos
filterfish_ has quit [(Read error: Connection reset by peer)]
ericsagn1 has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
mizu_no_oto has joined #nixos
mizu_no_oto has quit [(Client Quit)]
<NixOS_GitHub> [nixpkgs] aszlig pushed 1 new commit to master: https://git.io/vSLBi
<NixOS_GitHub> nixpkgs/master ee39d4b aszlig: nixos/tests/virtualbox: Fix @shell@ expansion...
takle has quit [(Ping timeout: 264 seconds)]
ericsagn1 has joined #nixos
mizu_no_oto has joined #nixos
mguentner has quit [(Quit: WeeChat 1.7)]
danharaj has quit [(Remote host closed the connection)]
takle has joined #nixos
dhess` has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
mguentner has joined #nixos
dhess` has quit [(Ping timeout: 258 seconds)]
ryanartecona has joined #nixos
alx741 has quit [(Quit: alx741)]
<ToxicFrog> Wheee, command-not-found is broken again\
<ToxicFrog> shawndomniti: binutils, maybe?
<shawndomniti> yeah, that did it
<shawndomniti> thx ToxicFrog
<shawndomniti> so it's not just my system where command-not-found is broken then?
<ToxicFrog> Nope
<ToxicFrog> Not sure when it stopped working for me, though
<ToxicFrog> It doesn't give any obvious errors, but neither does it ever report any results, even for programs that are installed.
<shawndomniti> hmm, for me it gives a sqlite file not found error
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
shawndomniti has quit [(Ping timeout: 260 seconds)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<Ralith> is that not in the integration tests yet
<Ralith> gets broken too much
mguentner2 has joined #nixos
eacameron has joined #nixos
mguentner has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
roconnor has joined #nixos
<roconnor> libplist-1.12 is marked as insecure a month ago.
<roconnor> so, what do I do now?
<roconnor> how do I know what depends on it?
<ToxicFrog> If it's just giving sqlite errors, in theory you should be able to nix-channel --update and get the right package, assuming one of your channels is named 'nixos'
<roconnor> and is preventing me from building nixos?
<ToxicFrog> Mine just...isn't giving me any results
takle has quit [(Ping timeout: 260 seconds)]
<roconnor> nevermind --show-trace helps
eacameron has quit [(Ping timeout: 256 seconds)]
<roconnor> it's amarok I think
<NixOS_GitHub> [nixpkgs] ebzzry opened pull request #24373: emem: 0.2.47 -> 0.2.48 (master...emem-0.2.48) https://git.io/vSLEO
dhess` has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
dhess` has quit [(Ping timeout: 258 seconds)]
calvertvl has joined #nixos
jsgrant has joined #nixos
baroncharlus has joined #nixos
pdobrogost has quit [(Quit: Connection closed for inactivity)]
ixxie has quit [(Read error: No route to host)]
ixxie has joined #nixos
ixxie has quit [(Read error: No route to host)]
odi_ has joined #nixos
roconnor has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
reinzelmann has joined #nixos
eacameron has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
odi__ has joined #nixos
ixxie has joined #nixos
odi_ has quit [(Ping timeout: 246 seconds)]
takle has quit [(Ping timeout: 246 seconds)]
ixxie has quit [(Read error: No route to host)]
reinzelmann has quit [(Quit: Leaving)]
ixxie has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
takle has joined #nixos
ixxie has quit [(Read error: Connection reset by peer)]
ixxie has joined #nixos
Lisanna_ has quit [(Quit: Lisanna_)]
mkoenig has quit [(Remote host closed the connection)]
proteusguy has quit [(Remote host closed the connection)]
takle has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Remote host closed the connection)]
ebzzry has quit [(Ping timeout: 258 seconds)]
ebzzry has joined #nixos
ixxie has quit [(Read error: Connection reset by peer)]
ixxie has joined #nixos
dhess` has joined #nixos
odi__ has quit [(Remote host closed the connection)]
takle has joined #nixos
dhess` has quit [(Ping timeout: 260 seconds)]
estewei has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 256 seconds)]
jsoo has joined #nixos
jsoo has quit [(Read error: Connection reset by peer)]
ixxie has quit [(Read error: No route to host)]
ixxie has joined #nixos
MercurialAlchemi has joined #nixos
marsel has joined #nixos
takle has joined #nixos
ixxie has quit [(Read error: No route to host)]
ixxie has joined #nixos
ixxie has quit [(Read error: Connection reset by peer)]
takle has quit [(Ping timeout: 258 seconds)]
ebzzry has quit [(Ping timeout: 258 seconds)]
ixxie has joined #nixos
<spacekitteh[m]> how can i extract xml attributes in a nix expression?
systemfault has quit [(Read error: Connection reset by peer)]
ebzzry has joined #nixos
<puffnfresh> spacekitteh[m]: xmlstarlet?
ixxie has quit [(Read error: Connection reset by peer)]
<spacekitteh[m]> hmm, is there no existing nix tools?
<puffnfresh> not that I know of
griff_ has quit [(Quit: griff_)]
<spacekitteh[m]> dang alright
<simpson> spacekitteh[m]: Isn't there builtins.loadXML? Or is it only for dumping?
<spacekitteh[m]> i can't find that
<simpson> Aw. :c
<spacekitteh[m]> ):
Dezgeg has quit [(Ping timeout: 258 seconds)]
Dezgeg has joined #nixos
freusque has joined #nixos
xeviox has joined #nixos
marsel has quit [(Ping timeout: 240 seconds)]
dhess` has joined #nixos
MP2E has quit [(Quit: leaving)]
dhess` has quit [(Ping timeout: 260 seconds)]
phreedom has quit [(Ping timeout: 240 seconds)]
calvertvl has quit [(Ping timeout: 240 seconds)]
ebzzry has quit [(Ping timeout: 260 seconds)]
periklis has joined #nixos
ebzzry has joined #nixos
DutchWolfie has joined #nixos
takle has joined #nixos
proteusguy has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub> [nixpkgs] pSub pushed 2 new commits to master: https://git.io/vSLa5
<NixOS_GitHub> nixpkgs/master 1ba30ca Orivej Desh: poco: init at 1.7.8
<NixOS_GitHub> nixpkgs/master 78cda40 Pascal Wittmann: Merge pull request #24370 from orivej/poco...
<NixOS_GitHub> [nixpkgs] pSub pushed 2 new commits to master: https://git.io/vSLaF
<NixOS_GitHub> nixpkgs/master e55ec54 Rommel M. Martinez: emem: 0.2.47 -> 0.2.48
<NixOS_GitHub> nixpkgs/master db5f0cd Pascal Wittmann: Merge pull request #24373 from ebzzry/emem-0.2.48...
justbeingglad has joined #nixos
justbeingglad has left #nixos []
ebzzry has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub> [nixpkgs] DmitryTsygankov opened pull request #24378: Add the bitcoin-unlimited package (master...DmitryTsygankov/bitcoin-unlimited) https://git.io/vSLVj
<NixOS_GitHub> [nixpkgs] peti pushed 1 new commit to master: https://git.io/vSLwR
<NixOS_GitHub> nixpkgs/master 50cce50 Peter Simons: callCabal2nix: Revert "Don't rebuild unchanged cabal file"...
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
reinzelmann has joined #nixos
dhess` has joined #nixos
reinzelmann has quit [(Client Quit)]
bennofs has joined #nixos
reinzelmann has joined #nixos
puffnfresh has quit [(Remote host closed the connection)]
marsel has joined #nixos
takle has joined #nixos
<ronny> gmm
nschoe has joined #nixos
<ronny> any kde/plasma5 user aware of how to get basci programs like archive managers or media players when gnome is not enabled?
dhess` has quit [(Ping timeout: 264 seconds)]
takle has quit [(Ping timeout: 246 seconds)]
jsoo has joined #nixos
bennofs has quit [(Ping timeout: 240 seconds)]
jsoo has quit [(Read error: Connection reset by peer)]
periklis has quit [(Ping timeout: 264 seconds)]
<NixOS_GitHub> [nixpkgs] roberth opened pull request #24379: mysql-haskell: dontCheck because check requires running server (master...mysql-haskell-dontcheck) https://git.io/vSLo8
takle has joined #nixos
thc202 has joined #nixos
slyfox_ is now known as slyfox
teknico has joined #nixos
civodul has joined #nixos
ok2 has joined #nixos
Mateon1 has quit [(Ping timeout: 240 seconds)]
Mateon1 has joined #nixos
MichaelRaskin has quit [(Quit: MichaelRaskin)]
takle has quit [(Remote host closed the connection)]
Itkovian has joined #nixos
uralbash has joined #nixos
uralbash has left #nixos []
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #24148: libvirt: 3.0.0 -> 3.1.0 (master...libvirt-3.1.0) https://git.io/vyNFc
bennofs has joined #nixos
bennofs has quit [(Ping timeout: 240 seconds)]
jensens has joined #nixos
goibhniu has joined #nixos
Tarinaky has quit [(Read error: Connection reset by peer)]
__Sander__ has joined #nixos
pie_ has joined #nixos
takle has joined #nixos
bennofs has joined #nixos
dhess` has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub> [nixpkgs] fuzzy-id opened pull request #24380: haproxy: PCRE and LUA support via configurable options (master...haproxy-overworked4) https://git.io/vSLPf
<NixOS_GitHub> [nixpkgs] fuzzy-id closed pull request #24248: haproxy: PCRE and LUA support as configurable options (master...haproxy-overworked) https://git.io/vSJ37
Jackneillll has quit [(Quit: Leaving)]
dhess` has quit [(Ping timeout: 260 seconds)]
sigmundv_ has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar closed pull request #24379: mysql-haskell: dontCheck because check requires running server (master...mysql-haskell-dontcheck) https://git.io/vSLo8
<NixOS_GitHub> [nixops] domenkozar closed pull request #635: Flag libvird attrs as optional depending on targetEnv (master...libvirtd-optionalattrs) https://git.io/vSJlD
sigmundv_ has quit [(Ping timeout: 256 seconds)]
bennofs has quit [(Ping timeout: 260 seconds)]
<ikwildrpepper> __Sander__: has there been some incompatibility with node2nix and 17.03 ?
<ikwildrpepper> getting some error related to chown u+w
<NixOS_GitHub> [nixops] domenkozar pushed 1 new commit to master: https://git.io/vSLXy
<NixOS_GitHub> nixops/master 47e0c8e Nadrieril Feneanar: Fix #499 (#596)
takle has joined #nixos
<__Sander__> ikwildrpepper: hmm
<__Sander__> I'll check in a minute
<__Sander__> there shouldn't be
<ikwildrpepper> __Sander__: maybe it is just in some specific cases
proteusguy has quit [(Read error: Connection reset by peer)]
bennofs has joined #nixos
xeviox has quit [(Quit: Leaving)]
bkchr has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub> [nixpkgs] ljli opened pull request #24381: vulkan-loader: demos: fix cube/cubepp (master...vulkan-loader-demos) https://git.io/vSL1r
<ikwildrpepper> __Sander__: it's mindblowing how many dependencies there are in node
<ikwildrpepper> I have a small project here, that downloads 900 tgz's :o
<__Sander__> yes
<__Sander__> NPM packages are micropackages
<__Sander__> stimulating a stackoverflow-style development
<ikwildrpepper> insane
<__Sander__> you now no longer have to steal stuff from stack overflow to implement your trivial algorithms
<__Sander__> now there is a package for every function
<__Sander__> including something that determines whether an object is an array :) https://www.npmjs.com/package/isarray
<__Sander__> 430,728 downloads today :D
<LnL> wow, I would have expected things to change a little bit after the whole leftpad incident
<domenkozar> I need to package purescript, which uses bower+npm
bkchr has joined #nixos
xadi has joined #nixos
<domenkozar> and it hurts my head
<manveru> npm... npm never changes
<LnL> domenkozar: I thought that was written in haskell
reinhardt has joined #nixos
<manveru> i'd like to try purescript, but for now i'm learning elm because it gets rid of all that insanity
<domenkozar> LnL: it is
<domenkozar> but bower is the package manager
<domenkozar> it's a mess
<domenkozar> I don't understand how they are happy with that
goibhniu1 has joined #nixos
puffnfresh has joined #nixos
goibhniu has quit [(Ping timeout: 256 seconds)]
bennofs has quit [(Ping timeout: 240 seconds)]
reinzelmann has quit [(Ping timeout: 264 seconds)]
Wizek_ has joined #nixos
siel has joined #nixos
bennofs has joined #nixos
<NixOS_GitHub> [nixpkgs] edwtjo pushed 2 new commits to master: https://git.io/vSLD9
<NixOS_GitHub> nixpkgs/master bde3acb Maximilian Bosch: idea.phpstorm: 2016.3.2 -> 2017.1
<NixOS_GitHub> nixpkgs/master f28d7f7 Edward Tjörnhammar: Merge pull request #24281 from Ma27/update-phpstorm...
<NixOS_GitHub> [nixpkgs] edwtjo closed pull request #24281: idea.phpstorm: 2016.3.2 -> 2017.1 (master...update-phpstorm) https://git.io/vSU6D
odi has joined #nixos
<NixOS_GitHub> [nixpkgs] edwtjo closed pull request #24286: idea-community: 2016.3.5 -> 2017.1 (master...jd_idea-community) https://git.io/vSUXF
bennofs has quit [(Ping timeout: 264 seconds)]
dhess` has joined #nixos
mudri has joined #nixos
<NixOS_GitHub> [nixpkgs] the-kenny pushed 1 new commit to master: https://git.io/vSLHW
<NixOS_GitHub> nixpkgs/master 6c116b8 Benjamin Staffin: dropbox-cli: include dropbox icon (#24368)
dhess` has quit [(Ping timeout: 260 seconds)]
mudri has quit [(Ping timeout: 256 seconds)]
goibhniu1 is now known as goibhniu
<LnL> l
ebzzry has joined #nixos
<dtz> You!
<__Sander__> ikwildrpepper: weird
<__Sander__> I tried building some packages here locally against 17.03 but they work
<ikwildrpepper> __Sander__: ok, thanks. will look further into it, and see if there are any node2nix or nixpkgs version differences
<__Sander__> I'm using the current development version of node2nix however
<ikwildrpepper> understood, thnx
bkchr has quit [(Ping timeout: 240 seconds)]
mudri has joined #nixos
bkchr has joined #nixos
ugjka has quit [(Quit: ByE ByE)]
ugjka has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix pushed 1 new commit to release-17.03: https://git.io/vSLdG
<NixOS_GitHub> nixpkgs/release-17.03 099a291 Lancelot SIX: pythonPackages.django: 1.10.5 -> 1.10.6...
k2s has joined #nixos
k2s has quit [(Client Quit)]
pie_ has quit [(Ping timeout: 268 seconds)]
bkchr has quit [(Ping timeout: 246 seconds)]
ndowens08 has joined #nixos
<ndowens08> Morning
bennofs has joined #nixos
bkchr has joined #nixos
<amosbird> Hi, how can I make nix not change the default shell?
<amosbird> now my gcc is default to ~/.nix-profile/bin/gcc
<amosbird> which is not what I want
<amosbird> I'd like to only use nix inside nix shell
<ndowens08> Set default shell in configuration.nix
<amosbird> where is that file?
<ndowens08> I forget the syntax for it. It is in options on the site
<ndowens08> The file is /etc/nixos/configuration.nix
<amosbird> and I'd like to let nix-shell clear LD_LIBRARY_PATH for me
<amosbird> ndowens08: I don't use nixos
<amosbird> it doesn't exist
<ndowens08> Oh idk then
<manveru> amosbird: it's pretty easy with direnv
<amosbird> manveru: what's that
<amosbird> looks nice
eacameron has joined #nixos
<amosbird> how does it work with nix?
<manveru> you can make a .envrc with `use nix` in it, and it'll use the shell.nix
<manveru> but keep your shell and stuff the same
<manveru> it's activated when you cd into the directory
<amosbird> hmm
<amosbird> can it set LD_LIBRARY_PATH?
deepfire has quit [(Ping timeout: 260 seconds)]
<manveru> you can set/unset that either in .envrc or in shell.nix
<amosbird> cool.
bennofs has quit [(Ping timeout: 268 seconds)]
<manveru> this sets ZMQ_LIB_PATH for example
<manveru> (just random example, don't mind the packages :)
eacameron has quit [(Ping timeout: 260 seconds)]
<amosbird> in fact, i still don't understand how to configure nix shell :)
<amosbird> I mean, how can I remove all the installed package from default shell's PATH
<manveru> you can use --pure argument
<ronny> amosbird: nix-shell --pure ensures all is gone
<ronny> else you get a imuore one
<ronny> *impure
<manveru> that also means your default shell won't work though... in like 99% of cases anyway
<manveru> because that'd be impure :)
wkennington has quit [(Read error: Connection reset by peer)]
k2s has joined #nixos
k2s has quit [(Client Quit)]
<amosbird> hmm
<amosbird> I just like this command " . /home/amos/.nix-profile/etc/profile.d/nix.sh" to only give me nix-shell command
<amosbird> without any other overridings
<NixOS_GitHub> [nixpkgs] lsix pushed 1 new commit to release-16.09: https://git.io/vSLbk
<NixOS_GitHub> nixpkgs/release-16.09 c7584d9 Lancelot SIX: pythonPackages.django: 1.10.5 -> 1.10.6...
ndowens08 has quit [(Quit: Mutter: www.mutterirc.com)]
globin has quit [(Quit: WeeChat 1.6)]
globin has joined #nixos
dhess` has joined #nixos
ebzzry has quit [(Ping timeout: 246 seconds)]
<NixOS_GitHub> [nixpkgs] globin pushed 12 new commits to release-17.03: https://git.io/vSLbj
<NixOS_GitHub> nixpkgs/release-17.03 2bd74c5 Arnold Krille: network-interfaces: reload bridges on conf changes...
<NixOS_GitHub> nixpkgs/release-17.03 8d45eda c74d: google-compute-image: fix Yama LSM option conflict...
<NixOS_GitHub> nixpkgs/release-17.03 4d39290 Joachim Fasting: grsecurity: 4.9.17-201703221829 -> 4.9.18-201703261106...
dhess` has quit [(Ping timeout: 260 seconds)]
bennofs has joined #nixos
deepfire has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vSLND
<NixOS_GitHub> nixpkgs/master 6911ae7 Joachim Fasting: torbrowser: support obfs and fte transports...
[0x4A6F] has quit [(Ping timeout: 240 seconds)]
amir has quit [(Ping timeout: 258 seconds)]
amir has joined #nixos
bennofs has quit [(Ping timeout: 260 seconds)]
[0x4A6F] has joined #nixos
carlosdagos has joined #nixos
carlosdagos has quit [(Read error: Connection reset by peer)]
carlosdagos has joined #nixos
<ertes> is there a way to tell nix-repl to save its input history?
<ertes> or alternatively: load a default script
<ertes> similar to .ghci with ghci
<ertes> i'm typing the same things over and over again
DutchWolfie has quit [(Quit: Konversation terminated!)]
Mic92 has quit [(Quit: WeeChat 1.7)]
<manveru> ertes: not that i know of... maybe we could make a wrapper for it?
<sphalerite> manveru: sounds complicated, given that we also still want the tab completion. Seems simpler to patch nix-repl to save and read a history file, and I think readline already has that functionality
<manveru> yes, using readline would be ideal
<manveru> that'd also finally allow me to use nix-repl in vi mode :)
<manveru> but i think it's in perl or c++, so not something i'll touch
<sphalerite> it already uses readline
<sphalerite> and yes, nix-repl is in C++
<dtz> I haven't tried it but looks like this might help:
<dtz> Ha, apparently it already can store history if you create a .history file? Haha
<LnL> manveru: nix-repl has history
<manveru> well, then it ignores my .inputrc
<manveru> LnL: not across sessions
amir has quit [(Ping timeout: 260 seconds)]
amir has joined #nixos
<LnL> yes, but you have to create the file like mentioned in the pr
<manveru> hmm
<manveru> actually i'm lacking the inputrc... wtf
<manveru> now it works :D
deepfire has quit [(Ping timeout: 260 seconds)]
<manveru> thanks a lot, i'm happy now
Mic92 has joined #nixos
marsel has quit [(Ping timeout: 240 seconds)]
<LnL> pretty sure I only found that by accident :)
<manveru> well, i just ran it in strace and it didn't find the files... i didn't know about .history default either
mizu_no_oto has joined #nixos
dhess` has joined #nixos
griff_ has joined #nixos
dhess` has quit [(Ping timeout: 240 seconds)]
<gchristensen> I made a flattener for nix expressions: https://github.com/grahamc/nix-shenanigans/tree/master/nix-flatten largely as a challenge to learn nix/fp better
bennofs has joined #nixos
marsel has joined #nixos
<ertes> manveru, sphalerite: actually i would much prefer if nix-repl could read an init file
<ertes> then i would type "pkgs = import <nipkgs> {}" into that file once and for all
<ertes> i *always* need it
carlosdagos has quit [(Ping timeout: 258 seconds)]
<manveru> yeah, right now you can use ctrl-r to search nixpkgs and just reuse the line
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<ertes> you can't, because it doesn't save history =)
<ertes> that's why i asked for it
<manveru> it saves history if you have a ~/.history file
<ertes> oh? let me check
<ertes> just touch it?
<manveru> yes
<ertes> woooooooooooohoooooooooooooo
<ertes> thanks =)
<manveru> :)
<ertes> can i use a different file?
<ertes> ".history" is pretty generic
<manveru> it's the default for readline... i think you'd have to patch nix-repl to change it
<ertes> ok, well, it's good enough for now… thanks a lot =)
<sphalerite> ertes: you could also alias nix-repl to nix-repl '{pkgs = import <nixpkgs> {};}'
<ertes> i can? the nix tools really need a better --help
<ertes> % nix-repl --help
<ertes> Usage: nix-repl [--help|--version]
<sphalerite> oh whoops
<sphalerite> no not exactly what I wrote
<sphalerite> but if you have a file containing that string you cna run nix-repl path/to/file
<ertes> ah, that's nice… i'll try that
<sphalerite> the help message has been improved by the looks of it
bennofs has quit [(Ping timeout: 258 seconds)]
<sphalerite> and if you're also ok with loading all of nixpkgs into the top-level scope you can do nix-repl '<nixpkgs>'
<ertes> no, i'd rather not do that
<ertes> i used to use :a before
odi has quit [(Remote host closed the connection)]
odi has joined #nixos
deepfire has joined #nixos
<sphalerite> where can I find the characters used by nix's base32?
Itkovian_ has joined #nixos
Itkovian has quit [(Ping timeout: 240 seconds)]
civodul has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
<sphalerite> thanks!
<gchristensen> dtzWill: beat me to it :)
<ertes> ls -C1 /nix/store/ | cut -d- -f1 | sed -e "s/./&\n/g" | grep "." | sort -u
<ertes> =P
<gchristensen> I grep'd for 123456789 in the nix source
<dtzWill> lmao you guys are great
<ertes> why is the charset so weird though?
<gchristensen> it avoids most profanities
<Biappi> uh?
mudri has quit [(Ping timeout: 258 seconds)]
<gchristensen> hrm?
deepfire` has joined #nixos
<philipp[m]> When does https://nixos.org/nixos/options.html get rebuilt? What channel is it based on?
ebzzry has joined #nixos
<Biappi> so nix uses a custom base32 alphabet in order to minimize chances of profanities in the store's hashes?!
deepfire` has left #nixos []
<Biappi> that's brillant
<gchristensen> yeah
<gchristensen> philipp[m]: current stable (16.09) and every channel update
<deepfire> what people do, when their PR blows the 2G disk space limit on Travis ?
<gchristensen> comment so on the PR and anticipate that almost none of the reviewers look at the travis results
<deepfire> gchristensen, so, doesn't the fix involve raising the disk space limit /globally/?
<deepfire> deepfire, if so, I would expect that a separate issue could be useful..
<deepfire> er, gchristensen : -)
<gchristensen> travis isn't in the business of making massive massive build hosts available
<deepfire> that I can readily imagine..
<deepfire> the failing job in this case is https://travis-ci.org/NixOS/nixpkgs/jobs/215361318
<deepfire> i.e. it involves building virtualbox
<gchristensen> they're in the business of ensuring _a_ project builds, or its unit tests pass
<gchristensen> not in the business of ensuring a project's 27,000 sub-"projects" build
<deepfire> I see what you mean, but what are the practical consequences for our large builds here?
<gchristensen> practically, it means that travis is ill suited to our needs
<deepfire> I know about the Hydra PR build work : -)
<deepfire> not up-to-date on its status, though..
bkchr has quit [(Ping timeout: 256 seconds)]
<gchristensen> in limbo :(
<deepfire> uh-oh..
<deepfire> I might need to learn some Hydra-fu (or Hydra-replacement-fu) soon
ryantrinkle has quit [(Ping timeout: 240 seconds)]
bkchr has joined #nixos
<philipp[m]> gchristensen: Thanks. Good to know.
<gchristensen> you're welcome! :)
pie_ has joined #nixos
cpennington has joined #nixos
user1 has joined #nixos
<NixOS_GitHub> [nixpkgs] jfraudeau opened pull request #24384: openjdk-darwin: zulu1.8.0_66 -> zulu1.8.0_121 (master...master) https://git.io/vStUH
<user1> Hi. Nixos lets me install any package from hackage into the nixos store, which is nice, so I don't have to manually deal with updates. However, when using something like cabal (or manually compiling haskell packages) you get to customize stuff like test-suites and especially flags. Is there any way this can be overridden in my nix configuration file to allow clean installation of customized packages?
<ertes> user1: perhaps the easiest option is to override some packages entirely to your own cabal2nix scripts
bfrog has joined #nixos
<ertes> cabal2nix -fblah PATH > mypkg.nix
<ertes> then in your ~/.nixpkgs/config.nix you can use haskellPackageOverrides
mudri has joined #nixos
<user1> So I can't easily get this into my global configuration? (It's for a multi-user system)
<ertes> haskellPackageOverrides = self: super: { mypkg = self.callPackage ./mypkg.nix {} };
<ertes> user1: there is nixpkgs.config
<ertes> see: man configuration.nix
<user1> Well thanks. I can fiddle around with that
arjen-jonathan has joined #nixos
bkchr has quit [(Ping timeout: 240 seconds)]
<ertes> there is also the new overlay system, but i haven't used that one
bkchr has joined #nixos
dhess` has joined #nixos
<pie_> is there a definitive guide somewhere on how to virtualize windows?
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vStIK
<NixOS_GitHub> nixpkgs/master 12df6d8 Jérémie FRAUDEAU: openjdk-darwin: zulu1.8.0_66 -> zulu1.8.0_121
<NixOS_GitHub> nixpkgs/master d6aab54 Tim Steinbach: Merge pull request #24384 from jfraudeau/master...
<user1> Hmm.. By downloading and converting the cabal package. I'm tied to a specific version. This requires manual update every time
CMCDragonkai has joined #nixos
dhess` has quit [(Ping timeout: 264 seconds)]
<CMCDragonkai> Has anybody tried kmscon using an nvidia driver? Does it work?
pie_ has quit [(Ping timeout: 256 seconds)]
Itkovian_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<ertes> user1: nixpkgs has to do that as well… you should write a script to do it for you
RchrdB has quit [(Ping timeout: 260 seconds)]
bkchr has quit [(Ping timeout: 246 seconds)]
bastian__ has joined #nixos
<ertes> user1: in this case you may even want to use a Makefile rather than a script
<ertes> hs-%.nix:
<ertes> cabal2nix $(C2NFLAGS) $(patsubst hs-%.nix,cabal://%,$@) > $@
<ertes> something like that
<ertes> then you can say: make hs-lens.nix
<ertes> and you can add special targets like: hs-lens.nix: C2NFLAGS = -fblah
abbradar has joined #nixos
<user1> I... kind of see. Haha, I will have to experiment a little. Thanks!
jgertm has joined #nixos
odi has quit [(Ping timeout: 240 seconds)]
<jgertm> anybody manage to run elixir with erlang/OTP 19?
jgertm has quit [(Client Quit)]
carlosdagos has joined #nixos
jgertm has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar pushed 2 new commits to release-16.09: https://git.io/vStqY
<NixOS_GitHub> nixpkgs/release-16.09 90dbde2 Domen Kožar: haskell: use new justStaticExecutables and add purescript
<NixOS_GitHub> nixpkgs/release-16.09 ab09539 Domen Kožar: haskell: add justStaticExecutables combinator
<ertes> write "cabal://lens.nix" to the file "lens.src"
<ertes> then type: make lens.nix
<ertes> or create all four *.src files and just type 'make'
jensens has quit [(Ping timeout: 240 seconds)]
tsmeets has joined #nixos
Itkovian has joined #nixos
<user1> Oh wow. That's really helpful. Thank you, ertes!
bkchr has joined #nixos
bastian__ has quit [(Ping timeout: 268 seconds)]
pie_ has joined #nixos
<tsmeets> How do I build the current html manual for nixpkgs?
<srhb> tsmeets: nix-build doc
<srhb> (from the root of nixpkgs)
<srhb> Er, wait...
<srhb> No, I think that's right.
<tsmeets> srhb: Yes it works :). Thanks!
<srhb> How's the Vim/Haskell/Nix story these days? I'm about fed up trying to make Emacs do what I want it to do.
<domenkozar> can someone remind me how to get into postgresql super user on nixos?
pie_ has quit [(Ping timeout: 268 seconds)]
<ertes> srhb: i have a nix/haskell-mode/emacs setup that works really well
d762b440__ has quit [(Ping timeout: 258 seconds)]
<ertes> it's a hack, but it has worked for everything so far
<srhb> domenkozar: sudo psql -d postgres
<srhb> The default superuser is root, iirc.
<srhb> ertes: Any pointers on how to do that?
<ertes> srhb: the idea is to use the "ghci" process type, but configure haskell-process-path-ghci to use this script: https://github.com/esoeylemez/config/blob/master/bin/nix-ghci
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<srhb> ertes: Interesting. Auto generated default.nix etc.
<ertes> lines 12-13 are optional
<ertes> yeah, but it's not actually used… the shell.nix is used
<LnL> domenkozar: should just work if you specify a db
<srhb> LnL: On most other distributions, the superuser is "postgres" I think. :)
cpennington has quit [(Ping timeout: 264 seconds)]
Itkovian has joined #nixos
drasich has quit [(Ping timeout: 246 seconds)]
odi has joined #nixos
bkchr has quit [(Ping timeout: 256 seconds)]
bastian__ has joined #nixos
<tsmeets> How do I make my x86_64-linux machine cross-compile for an aarch64-linux raspberry pi (on the same network)?
bfrog has quit [(Ping timeout: 264 seconds)]
<tsmeets> I tryed adding the x86_64-linux machine to 'nix.buildMachines' on the rpi, with system set to 'aarch64'. But that didn't work.
<tsmeets> Is this even possible?
teknico has quit [(Ping timeout: 240 seconds)]
bennofs has joined #nixos
<NixOS_GitHub> [nixpkgs] kuznero opened pull request #24385: fsharp: 4.0.1.1 -> 4.1.1 (master...master) https://git.io/vStOp
teknico has joined #nixos
FRidh has joined #nixos
jensens has joined #nixos
dhess` has joined #nixos
RchrdB has joined #nixos
bennofs has quit [(Ping timeout: 240 seconds)]
<gchristensen> tsmeets: (1) what does "didn't work" mean? (2) did you enable remote builds?
proteusguy has joined #nixos
<tsmeets> When I set max-jobs on the rpi to 0, i get the error "unable to start any build; either increase ‘--max-jobs’ or enable distributed builds"
<gchristensen> did you enable distributed builds?
<tsmeets> gchristensen: yes
<gchristensen> how did you enable distributed builds?
<NixOS_GitHub> [nixpkgs] edolstra pushed 1 new commit to staging: https://git.io/vSts9
<NixOS_GitHub> nixpkgs/staging 6ef630a Eelco Dolstra: systemd: Include https://github.com/NixOS/systemd/pull/8
<NixOS_GitHub> [nixpkgs] edolstra pushed 1 new commit to staging-17.03: https://git.io/vStGT
<NixOS_GitHub> nixpkgs/staging-17.03 05a2866 Eelco Dolstra: systemd: Include https://github.com/NixOS/systemd/pull/8...
<tsmeets> gchristensen: this is inside the configuration of the rpi
<gchristensen> ah excellent, thank you
<tsmeets> gchristensen: 192.168.1.77 is my x86_64 machine
<gchristensen> as root, run: ssh -i /root/.ssh/id_rsa builder@192.168.1.77 and make sure there are no prompts or anything
<tsmeets> no prompts, only from zsh that there's is no .zshrc
dhess` has quit [(Ping timeout: 256 seconds)]
eacameron has joined #nixos
jekor has joined #nixos
eacameron has quit [(Remote host closed the connection)]
<tsmeets> gchristensen: after creating '.zshrc', I get no prompts.
eacameron has joined #nixos
<tsmeets> gchristensen: but the same error when trying to build
<tsmeets> gchristensen: please note that I want my 'x86_64-linux' machine to build 'aarch64' packages.
<gchristensen> ah, that won't work, I belive
<tsmeets> gchristensen: I tryed to use 'system = "aarch64-linux"' but that also didn't work
<gchristensen> I'm no expert on that though
reinhardt has quit [(Quit: Leaving)]
<tsmeets> gchristensen: Do I have to enable cross-compiling for 'aarch64' on my machine somehow? (both run nixos)
<gchristensen> now I definitely don't know
<gchristensen> I've setup an aarch64 machine as a build slave for building aarch64 packages from an x86_64 machine, but not an x86_64 machine to build aarch64 packages
byteflame has joined #nixos
ryantrinkle has joined #nixos
<tsmeets> gchristensen: ah ok. It is probably not yet possible.
Itkovian_ has joined #nixos
<tsmeets> gchristensen: Thanks for the help. :)
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to release-16.09: https://git.io/vStnf
<NixOS_GitHub> nixpkgs/release-16.09 4e20da9 Shea Levy: Nix: bump to 2017-03-21...
<gchristensen> tsmeets: I recommend sticking around, someone might know better than I! :)
bastian__ has quit [(Remote host closed the connection)]
Wizek_ has quit [(Ping timeout: 260 seconds)]
Itkovian has quit [(Ping timeout: 240 seconds)]
odi has quit [(Remote host closed the connection)]
CMCDragonkai has quit [(Ping timeout: 264 seconds)]
<LnL> tsmeets: I'm retry sure you have to use something like stdenvCross rather then just changing the system
odi has joined #nixos
arianvp2 has joined #nixos
<arianvp2> hey where can I find the man pages of libsystemd in Nixos?
<arianvp2> normal systemd systems (archlinux, ubuntu etc) export sd-event, sd-journal, sd-bus libraries
<arianvp2> and have them documented in the manpages
<arianvp2> but on `man sd-journal` doesnt find the page
<LnL> adding systemd.man to your systemPackages might help, if that exists
<tsmeets> LnL: How would I apply that to my configuration.nix?
hotfuzz_ has joined #nixos
sellout- has quit [(Quit: Leaving.)]
hotfuzz has quit [(Ping timeout: 258 seconds)]
<tsmeets> LnL: Should I use 'nixpkgs.config.packageOverrides'?
hotfuzz_ has quit [(Read error: Connection reset by peer)]
<LnL> tsmeets: have not used it, I just know that stdenvAdapters.makeStdenvCross exists
<tsmeets> LnL: ok, thanks for the help. I'll look into it.
hotfuzz_ has joined #nixos
<sphalerite> tsmeets: there's also the possibility of instantiating nixpkgs with the crossSystem option
<sphalerite> tsmeets: so write an expression something like `import <nixpkgs> {crossSystem = {config = "aarch64"; arch = "arm";};}`
<gchristensen> garbas: you're completely right, installing nix-daemon on other distros _sucks_.
arianvp2 has quit [(Ping timeout: 260 seconds)]
<sphalerite> I don't know how much more than that it will take, I wrote something like that to cross-compile for an armv7l device and it took quite a lot of extra config to get the C library building
<LnL> tsmeets: and this, not sure why it doesn't show up in the manual https://github.com/NixOS/nixpkgs/blob/master/doc/cross-compilation.xml
<LnL> might be new
<sphalerite> gchristensen: s/.* on//; s/distros/distro/; s/sucks/suck/
<LnL> heh :)
<gchristensen> heh
<gchristensen> yes-and I need to do it to show people the light
Dezgeg_ has quit [(Ping timeout: 260 seconds)]
<sphalerite> :D
erasmas has joined #nixos
MercurialAlchemi has quit [(Ping timeout: 260 seconds)]
<sphalerite> oops, that distro substitution was wrong. Oh well
<Mateon1> Is it possible to make the nixos default firewall to only block things on a specified interface?
<Mateon1> Ah, sorry, I'm dumb
<Mateon1> trustedInterfaces
dridus has joined #nixos
FRidh has quit [(Ping timeout: 264 seconds)]
xadi has quit [(Ping timeout: 240 seconds)]
<jekor> Is there another way to make executables available to a program at runtime other than passing the path to executables at runtime? (say for a program that invokes shell commands)
<tsmeets> sphalerite: what should I do with the new 'nixpkgs'? how do I make them avaliable to the remote machine?
HappyEnte has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<sphalerite> tsmeets: my target machine didn't have nix; what I'd do was then nix-build -A somePackage.crossDrv file.nix, then copy the result's closure over using rsync
odi_ has joined #nixos
<tsmeets> sphalerite: Ah that could work
HappyEnte has joined #nixos
<sphalerite> I tried building nix, but the C++ library didn't support C++11 for some reason, depending on what you're trying to build you might run into similar difficulties
<sphalerite> I don't know that much about how the whole thing works, but if you have any questions I'll answer them to the best of my ability :)
xadi has joined #nixos
<tsmeets> sphalerite: I want to try 'https://github.com/NixOS/nixpkgs/pull/24229'
odi has quit [(Ping timeout: 264 seconds)]
<tsmeets> sphalerite: But that needs a kernel recompile, and this takes way to long on the rpi.
<sphalerite> Also: does anyone know why nix links using rpath rather than referring to absolute paths for the libraries?
<sphalerite> tsmeets: that sounds scary :p good luck!
<tsmeets> sphalerite: haha :). I hope that that fixes some wifi issues.
HappyEnte has quit [(Ping timeout: 240 seconds)]
jensens has quit [(Ping timeout: 260 seconds)]
<sphalerite> One option that might also be worth looking into is emulating the pi. Not sure how much better the performance would be, I don't know how much overhead cross-arch emulation has nowadays.
<tsmeets> sphalerite: building and then copying the package should work.
<sphalerite> Yes, if building the package works ^^
<tsmeets> sphalerite: thanks for the help.
<gchristensen> tsmeets: you could get a 96core monster from packet.net to do some trial builds on, not so expensive if you just get it for a couple hours
HappyEnte has joined #nixos
ebzzry has quit [(Ping timeout: 260 seconds)]
odi_ has quit [(Ping timeout: 256 seconds)]
<jluttine> i'm defining a service (namely phpfpm pool) in my nixos configuration. how can i define an environment variable for a service?
dridus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<ocharles> how do I import with nix-store --import from the output of nix-store --export on another machine? It barfs with "lacks a signature"
<gchristensen> I think you need to import as root, ocharles?
<jluttine> oh, nvm, i can use fpm's own support
<ocharles> doh, yes
<ocharles> I thought I was root, whoops :)
ryantrinkle has quit [(Ping timeout: 246 seconds)]
<ocharles> having the fun dance of trying to get a machine to have internet access, but I don't have wpa_supplicant installed :')
hotfuzz_ is now known as hotfuzz
dhess` has joined #nixos
<Mateon1> Hi, I am having trouble with the NixOS firewall, it's not blocking ports on the tun interface
<Mateon1> My trustedInterfaces are lo and eno1, and I have a list of allowedTCPPorts, but ports from outside that list are accessible through tun
estewei has quit [(Quit: Quit)]
estewei has joined #nixos
alx741 has joined #nixos
estewei has quit [(Client Quit)]
Mateon1 has quit [(Remote host closed the connection)]
estewei has joined #nixos
<ertes> /run/current-system/sw/sbin/man: warning: /home/never/.nix-profile/share/man/man1/rabbitmqctl.1.gz.gz: ignoring bogus filename
<ertes> i've been running into this a lot lately, not only with rabbitmq
<ertes> what's the problem there? the ".gz.gz"?
civodul has joined #nixos
dhess` has quit [(Ping timeout: 246 seconds)]
dridus has joined #nixos
user1 has quit [(Ping timeout: 256 seconds)]
<ronny> if i have a store path, how do i create/replace a named gc root for it that wont be garbage-collected?
<gchristensen> ronny: check `man nix-store` and look for `--add-root`
<gchristensen> specifically, likely, the indirect option
ryanartecona has joined #nixos
johnsonav has quit [(Ping timeout: 246 seconds)]
estewei has quit [(Quit: Quit)]
Mateon1 has joined #nixos
<Mateon1> Sorry, my IRC client crashed
<sphalerite> Mateon1: what does iptables -S say?
tg has quit [(Excess Flood)]
<ronny> gchristensen: trying with realize
tg has joined #nixos
<ertes> how do i make all nix tools use my local repo by default? just symlink it from ~/.nix-defexpr?
estewei has joined #nixos
<Mateon1> sphalerite: Here's the iptables paste + config https://ipfs.io/ipfs/QmQKiYHPJDhWgKcYM5smVfcPGhuziy9tp6Ubq3F683jtXn/paste.txt
<Mateon1> Hm, sorry, hold on a sec, I'm having problems connecting to the ipfs gateway
<Mateon1> sphalerite: Here's a hastebin cause IPFS isn't cooperating: https://hastebin.com/felucibuhe.diff
cpennington has joined #nixos
hlavaty has joined #nixos
<hlavaty> manual says dont use overrideDerivation but doesn't say what should be used instead, does somebody know what to use instead?
<sphalerite> Mateon1: to me the iptables config looks correct for blocking traffic on the tun interface...
<Mateon1> sphalerite: Hm... Portscanning myself over VPN reveals ports I don't want open, which are not the ones allowed
<Mateon1> like 139 and 445
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vStuR
<NixOS_GitHub> nixpkgs/master 4f33f90 Peter Hoeg: libtoxcore: 0.1.6 -> 0.1.7
takle has quit [(Remote host closed the connection)]
<ronny> gchristensen: works well, i missunderstood usage, and now pass the correct gc roots in
dridus has quit [(Ping timeout: 260 seconds)]
<sphalerite> Mateon1: those specifically?
estewei has quit [(Quit: Quit)]
<Mateon1> sphalerite: Not exclusively, but those as well
user1_ has joined #nixos
user1_ has left #nixos []
<sphalerite> Mateon1: are they in the output of iptables -S ?
<Mateon1> They are not
sellout- has joined #nixos
mkoenig has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vStzm
<NixOS_GitHub> nixpkgs/master d8dd2fb Franz Pletz: libvirt: 3.0.0 -> 3.1.0...
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to release-17.03: https://git.io/vStzW
<NixOS_GitHub> nixpkgs/release-17.03 0d3b092 Franz Pletz: libvirt: 3.0.0 -> 3.1.0...
mudri has quit [(Ping timeout: 240 seconds)]
<clever> hlavaty: overrideDerivation has been replaced by overrideAttrs
<clever> ertes: with either -I or $NIX_PATH
<hlavaty> clever: thanks!
<ertes> clever: ah, so they just use whatever <nixpkgs> points to?
<clever> ertes: most tools search for <nixpkgs>, nix-env is the only odd one out
estewei has joined #nixos
takle has joined #nixos
<ertes> how does ~/.nix-defexpr come into play then?
<clever> ertes: nix-env will use .nix-defexpr
<ertes> ah, i see
estewei has quit [(Client Quit)]
<clever> echo $NIX_PATH
<clever> nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs:nixos-config...
<clever> lrwxrwxrwx 1 clever users 44 Oct 11 2015 /home/clever/.nix-defexpr/channels_root -> /nix/var/nix/profiles/per-user/root/channels
<clever> ertes: and also, the root channels point to the same place as the default $NIX_PATH
<ertes> so i need to change both NIX_PATH and defexpr?
<clever> ertes: depends on what tool you want to affect and why
estewei has joined #nixos
<NixOS_GitHub> [nixops] clefru opened pull request #636: Add missing flag in nixops destroy example. (master...doc-fix) https://git.io/vSt2T
<ertes> all of them
<clever> and why?
<ertes> because i want to see whether it's reasonable to do it =)
<ertes> right now i'm on the unstable channel
ryantrinkle has joined #nixos
<ertes> oh… i will lose command-not-found behaviour that way, right?
<clever> yeah
<ertes> hmm
<clever> command-not-found uses the programs.sqlite db found in the channel called nixos on root
<clever> that path is hard-coded into it
marsam has joined #nixos
<ertes> well, if it's hard-coded i could just keep updating the channel anyway, right?
jensens has joined #nixos
<ertes> i wouldn't mind if it's not entirely up-to-date
<clever> brb
Itkovian_ has quit [(Ping timeout: 268 seconds)]
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vStau
<NixOS_GitHub> nixpkgs/master d1228f9 Robin Gloster: Revert "Revert "gdm module: only make xserver args overrideable""...
<tsmeets> When I try to cross-compile the linux-kernel with 'nix-build -A linux_latest cross-aarch64.nix' I get the error: "attribute ‘crossDrv’ missing, at /etc/nixos/nixpkgs-rpi/pkgs/os-specific/linux/kernel/generic.nix:75:18"
<tsmeets> am I building the correct package?
<clever> tsmeets: you need to pass crossSystem to nixpkgs to setup cross-building
<clever> tsmeets: can you gist cross-aarch64.nix?
<NixOS_GitHub> [nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vStVL
<NixOS_GitHub> nixpkgs/master 50adc53 Nikolay Amiantov: buildDotnetPackage: don't depend on invalid quoting in makeWrapper...
estewei has quit [(Quit: Quit)]
<clever> ceah, that is setting cross system
<clever> tsmeets: and thats in the root dir of nixpkgs?
<tsmeets> clever: yes
estewei has joined #nixos
<joko> Hey, someone mentioned that Hydra is not working in new 16.09 setups, is there any workaround for that?
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to release-17.03: https://git.io/vStVw
<NixOS_GitHub> nixpkgs/release-17.03 ab0b179 Nikolay Amiantov: buildDotnetPackage: don't depend on invalid quoting in makeWrapper...
<clever> tsmeets: cant see anything obviously wrong
<tsmeets> clever: building 'curl' using that file works. But building 'w3m' fails with: "infinite recursion encountered, at undefined position"
mudri has joined #nixos
<clever> tsmeets: not a lot of things are well tested under cross-compiles
<clever> tsmeets: most things are only tested with native builds via build slaves of the correct arc
<clever> arch*
<tsmeets> clever: should I submit a issue to the github repo?
<clever> tsmeets: sure
<disasm> so... for my home server, I run a multiboot linux setup using btrfs subvolumes. Curently any important services are in docker containers. My main OS I have booted is nixos, and I'm really considering just moving all those docker containers to nixos-containers. But I like being able to boot into arch and debian every now and then to play with stuff. Is it possible to launch nixos-containers from another OS that
<disasm> has systemd-nspawn?
<clever> disasm: if you look in /etc/containers you should see a config for each nixos container
<clever> SYSTEM_PATH=/nix/store/4iph3lm61vv7b60qrv005n9sx602xpji-nixos-system-mc1.earthtools.ca-17.03pre98383.7ee897a
<clever> it will contain a storepath like this
<clever> cat /etc/systemd/system/container\@.service
<clever> ExecStart=/nix/store/aqs2is200gy81qapw79d8dr3d8qniqg7-unit-script/bin/container@-start
<clever> disasm: this bash script(and a few other in its .service) then deal with starting/stopping the container as a systemd unit
<clever> disasm: if /nix is mounted correctly, it might work to just symlink the configs and .service file, but that would need experimentation to confirm
<disasm> ooh... maybe I need to mount /nix as a subvol... that would make this super easy...
<clever> the script in ExecStart just runs systemd-nspawn with a bunch of special arguments
<clever> EnvironmentFile=-/etc/containers/%i.conf
ryantrinkle has quit [(Ping timeout: 246 seconds)]
<clever> disasm: ahh, and systemd is told to use the .conf to initialize env variables, before it runs any (pre)start/stop scripts
<clever> RequiresMountsFor=/var/lib/containers/%i
<clever> disasm: and of course, the rootfs for the container must be mounted to the right spot
civodul has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
ndowens08 has joined #nixos
dhess` has joined #nixos
sellout- has quit [(Quit: Leaving.)]
Itkovian has joined #nixos
ryantrinkle has joined #nixos
jmiven has quit [(Quit: co'o)]
dhess` has quit [(Ping timeout: 268 seconds)]
calvertvl has joined #nixos
<zimbatm[m]> domenkozar: wrt rfcs migration, I need to move it to a different org first
<zimbatm[m]> apparently I can't give admin on personal repos
ilyaigpetrov has joined #nixos
<zimbatm[m]> domenkozar: invited you to https://github.com/nixpkgs
<gchristensen> zimbatm[m]: if you add domenkozar as a collaborator, he can move it I think
Itkovian has quit [(Ping timeout: 240 seconds)]
jmiven has joined #nixos
jgertm has quit [(Ping timeout: 240 seconds)]
ryanartecona has quit [(Quit: ryanartecona)]
<domenkozar> done
johnsonav has joined #nixos
ndowens08 has quit [(Quit: Mutter: www.mutterirc.com)]
__Sander__ has quit [(Quit: Konversation terminated!)]
marsel has quit [(Ping timeout: 260 seconds)]
teknico has left #nixos []
Itkovian has joined #nixos
civodul has joined #nixos
thip has joined #nixos
ambro718 has joined #nixos
estewei has quit [(Quit: Quit)]
ryanartecona has joined #nixos
Itkovian has quit [(Read error: Connection reset by peer)]
estewei has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar pushed 1 new commit to release-17.03: https://git.io/vStXA
<NixOS_GitHub> nixpkgs/release-17.03 83492ec Domen Kožar: Nix, Hydra: bump to 2017-03-21
zeus_ has joined #nixos
lush has joined #nixos
<lush> hi everyone
digitus has joined #nixos
<lush> I stumbled upon NixOs a few months ago and that I've got vacation from university I thought about switching to Nix now (functional programmer here). However I still don't know whether it is possible to use Nix in a rolling-release like fashion or whether unstable is not that usable at all
carlosdagos has quit [(Ping timeout: 268 seconds)]
<lush> I consider openSUSE Tumbleweed <---> NixOs and I would prefer Nix (conceptually) but if it isn't a good idea to use Nix like this I may choose openSUSE insteadß
<lush> Any thoughts?
<joepie91> lush: so, my understanding of this is:
<joepie91> master: always the latest changes to nixpkgs
<joepie91> unstable: the latest set of changes to nixpkgs that has been successfully built on the buildfarm (probably closest to rolling)
<joepie91> 16.09, other stable: the latest set of changes to nixpkgs that 1) was specifically merged into that version/branch, and 2) completed building
<joepie91> 16.09-small, other stable small: same as the above, but with some packages that take long to build excluded so the builds happen faster
<joepie91> (going from memory here and I may not be 100% accurate, mind)
<joepie91> if you install stuff from master, you're going to have to build a lot of stuff locally since there's no binary builds in the cache yet, and sometimes stuff may break unexpectedly after an update
<joepie91> if you install from unstable, you *should* be fine since things in unstable should have built successfully
<joepie91> I personally have a few things installed from master and I rarely run into issues
<joepie91> and pretty much every issue I did run into so far has been one that would never pass the build process and therefore shouldn't end up in unstable
<gchristensen> unstable is sometimes held up for a long time and won't receive security patches as promptly as stable
<joepie91> lush: that having been said, keep in mind that the design of NixOS is *very* different from a typical distro, so you will likely need some months to adjust if you have no prior experience with Nix :)
nckx has quit [(Quit: restarting my ZNC)]
<joepie91> gchristensen: because of breaking builds I'd imagine?
<gchristensen> yeah
<joepie91> oh yeah, on that note -- lush: it's simple-ish to have packages installed from different channels
<joepie91> so it's completely viable to run from stable but install a few things from master/unstable where needed
<joepie91> so long as you're willing to deal with the bloat and the occasional glibc mismatch or such :P
<lush> It isn't like I need much of very up-to-date software but I don't really like reinstalling a system and I kind of dislike distribution upgrades so if I decide to use 16.09 and then there will be a new version 17.03 what is the easieast way to upgrade
<joepie91> lush: switch the channel, rebuild, done
<lush> And is it like a usual upgrade or more like a "reinstallation" because of Nix's way of handling things?
<gchristensen> lush: distribution upgrades are very very safe and rollbackable
<joepie91> lush: well, every rebuild is a reinstallation really
<joepie91> it just doesn't touch mutable stuff like home dirs
<gchristensen> we don't have the same sort of problems other distros have with major upgrades
<lush> perfect
<lush> yeah I see
<joepie91> lush: a "distribution upgrade" in NixOS isn't really any technically different from any other kind of update
<lush> that's very nice
<joepie91> "different set of expressions from what you had before"
<joepie91> whether that means 1 different expression or 500 different expressions... no technical difference really :P
<lush> I see
<joepie91> just a slightly higher chance of breakage because of incompatible software updates
<joepie91> but that's the same as any kind of software update
nckx has joined #nixos
ryantrinkle has quit [(Ping timeout: 246 seconds)]
copumpkin has joined #nixos
<joepie91> lush: so far I've gone through one distro upgrade cycle and the only thing that broke were my custom hacky expressions
<lush> I just started the download :-D
<lush> I think it'll take some time until I really get into it but I've got at least another month until university starts again
<joepie91> gchristensen: btw, to be fair, openSUSE generally has its shit in order where distro upgrades are concerned :)
<lush> So I think now is the time to give it a try ^^
<joepie91> gchristensen: it's still stateful ofc but openSUSE rarely breaks on distro upgrades, at least on the official repos
<joepie91> usually it's most stuff like "oh this custom OBS repo doesn't have a <new version> equivalent" that messes things up
<joepie91> mostly*
<joepie91> lush: I tried Nix stand-alone and NixOS in a VM for a few months before installing it as the main OS on my desktop and it still took me about a week to get my environment up and running like I wanted it, so be sure to account for that
<joepie91> lush: wouldn't go back to non-NixOS though :P
* joepie91 is rambly today
marsam has quit [(Remote host closed the connection)]
marsam has joined #nixos
<joepie91> lush: btw, I used openSUSE before switching to NixOS (and my laptop is still running openSUSE, although it won't be for long), so if you have specific questions along the lines of "what's the NixOS equivalent of _____" I might be able to help with that :)
<lush> aaah nice ty joepie91
<lush> I used ArchLinux and openSUSE most of the time
<lush> Now I just want a stable environments that lets me do all the things I need
<joepie91> ah, I've never used Arch, just their wiki :)
nschoe has quit [(Quit: Program. Terminated.)]
<joepie91> openSUSE for desktop/laptop, Debian for servers
<lush> And as I love functional programming I just want to know how it is to use nix ^^
<joepie91> in the long term I'll be using NixOS on my servers as well
mudri has quit [(Ping timeout: 240 seconds)]
dhess` has joined #nixos
roconnor has joined #nixos
<lush> thank you joepie91
<lush> Is there like a good resource on which desktops are available for nixos and how to install them?
ryantrinkle has joined #nixos
<joepie91> lush: there's some misc on the wiki about it, but https://nixos.org/nixos/options.html#desktop will probably give you more useful information
<joepie91> it might be in the manual also
<joepie91> not sure
digitalmentat has joined #nixos
<joepie91> lush: I've found this a useful example of what a system configuration might look like on a real-world workstation system: https://github.com/ierton/nixrc/blob/master/nixos-samsung-np900x3c.nix
<digitalmentat> I seem to be pretty tripped over *adding* a custom package to `pythonPackages` so I can reference it in a `python.withPackages (pythonPackages: [ ... ])` call
<lush> thank you very much again joepie91
jensens has quit [(Ping timeout: 258 seconds)]
<joepie91> lush: if you intend to use XFCE, keep in mind that there's some obscure issue with certain display managers not working with certain XFCE versions
<joepie91> I forgot the specifics, but if you run into weird failures with XFCE (or possibly other GTK-y environments), that'd be a direction to look in
<joepie91> I don't think it was a NixOS-specific problem though
<lush> I mainly think about KDE, Gnome and Lxqt
<lush> apart from xmonad
pie_ has joined #nixos
<lush> I can't find packages for lxqt
dridus has joined #nixos
<joepie91> lush: it does exist in master: https://search.nix.gsc.io/?q=lxqt&i=nope&files=&repos=
<joepie91> recent-ish addition maybe?
dhess` has quit [(Ping timeout: 260 seconds)]
<joepie91> gchristensen: do you by any chance know whether the options search on nixos.org is up-to-date?
<joepie91> ah yeah it doesn't exist in 16.09
<joepie91> so def a recent addition
<joepie91> hm, I'm actually not sure how to set it up then, since it's a service
<lush> hmm ok
<joepie91> it's in 17.03 though
<lush> so I may need for 17.03 until it will be official
<joepie91> but that's not technically out yet I believe
<lush> I think thats not that important
<joepie91> March 31 :)
<joepie91> so in 4 days
<lush> aaaah now I just downloaded the 16-09 iso :D
<gchristensen> it is fine, the upgrade is painless
<joepie91> lush: can you do without lxqt for 4 days? if yes, just install 16.09, and update to 17.03 in a few days
<lush> puh
<lush> 4 days are just so long..
<lush> screw that I'll stick with suse
<lush> ^^
<joepie91> gchristensen: I'm actually curious, what's the normal process for that scenario?
<joepie91> gchristensen: as in, unreleased version has a service but yours does not
<joepie91> and you need the service
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vStQc
<NixOS_GitHub> nixpkgs/staging 036f4b2 Vladimír Čunát: cups: fix #24339: broken paths in cups-config...
<gchristensen> joepie91: I don't know, tbh
goibhniu has quit [(Ping timeout: 258 seconds)]
<threshold> why might nix-env -i ghc-7.10.3 fail with this error: selector ‘haskell.compiler.ghc7103’ matches no derivations
<threshold> sorry, i meant the command nix-env -i haskell.compiler.ghc7103
thip has quit [(Ping timeout: 264 seconds)]
<joepie91> (answers from other people also welcome, ofc :P)
<joepie91> gchristensen: alright
<joepie91> maybe this is a good one for one of my weekend projects
<joepie91> figure out how that ties together
<threshold> the "how to install a compiler" section of https://nixos.org/nixpkgs/manual/#how-to-create-a-development-environment doesn't show me how to install a compiler :P
<threshold> maybe nix-shell -p haskell.compiler.ghc784 is it
<joepie91> heh.
<ertes> threshold: a nix-based haskell development workflow usually doesn't involve explicitly installing a compiler =)
<ertes> it's part of the environment and pretty much comes for free, if you use cabal2nix --shell together with nix-shell and nix-build
arjen-jonathan has quit [(Ping timeout: 240 seconds)]
slyfox_ has joined #nixos
slyfox has quit [(Ping timeout: 240 seconds)]
freusque has quit [(Ping timeout: 258 seconds)]
<ilyaigpetrov> I want to try GuixSD, what is your opinion on it?
bennofs has joined #nixos
<gchristensen> it is very free
<ilyaigpetrov> But I guess anyone can write and install proprietary packages in guixsd
slam_ has joined #nixos
<slam_> Hi, I'm new to nixos. Just curious, what's the recommended/standard approach of dealing with dotfiles in NixOS?
<slam_> Saw this article saying to configure .vimrc using nix files and vim_configurable package: https://beyermatthias.de/blog/2015/11/25/how-to-setup-neovim-on-nixos/
deepfire has quit [(Ping timeout: 258 seconds)]
<slam_> I noticed others that just symlinked their dotfiles and didn't use NixOS to handle them at all.
marsel has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus opened pull request #24389: google-cloud-sdk: 138.0.0 -> 148.0.1 (master...gcloud_148) https://git.io/vStbw
dridus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
jsgrant-_ has joined #nixos
jsgrant has quit [(Ping timeout: 246 seconds)]
jsgrant- has quit [(Ping timeout: 258 seconds)]
dridus has joined #nixos
ryantrinkle has quit [(Ping timeout: 246 seconds)]
hexanode has joined #nixos
freusque has joined #nixos
<copumpkin> ikwildrpepper: not sure if you saw my message about hydra mac capacity :)
khoi has joined #nixos
<copumpkin> but more of it would be nice, even if just a few more machines. We're making a lot of changes to the stdenv nowadays and it gets quite painful to test
odi_ has joined #nixos
<mkoenig> what is rustPlatform.buildRustPackage.depsSha256 for?
<khoi> I have the following error when I try to serve a perl script over fastcgi: fcgiwrap[5134]: /usr/bin/env: ‘perl’: No such file or directory. Can anyone help me?
<lush> alright I'll reboot into my nixos image
<lush> ty joepie91, maybe I will come here again if something won't work (Uefi, ssd and stuff)
<pie_> is there a definitive guide somewhere on how to virtualize windows?
lush has quit [(Quit: Page closed)]
abbradar has quit [(Remote host closed the connection)]
bennofs has quit [(Ping timeout: 240 seconds)]
<gchristensen> whoa! `systemctl set-environment`!
* pie_ pokes fpletz gingerly
ryantrinkle has joined #nixos
dhess` has joined #nixos
periklis has joined #nixos
<khoi> I have the following error when I try to serve a perl script over fastcgi: fcgiwrap[5134]: /usr/bin/env: ‘perl’: No such file or directory. Can anyone help me?
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vStpr
<NixOS_GitHub> nixpkgs/master 96d41e3 Vladimír Čunát: treewide: purge maintainers.urkud...
pie_ has quit [(Read error: Connection reset by peer)]
pie_ has joined #nixos
<threshold> how do i correct this? Configuring digest-0.0.1.2... cabal: Missing dependency on a foreign library: * Missing (or bad) header file: zlib.h * Missing C library: z
<threshold> i am in a shell, and i need zlib installed it seems
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.03: https://git.io/vSthv
<NixOS_GitHub> nixpkgs/release-17.03 1731c07 Vladimír Čunát: treewide: purge maintainers.urkud...
<threshold> zip-archive-0.3.0.5 depends on digest-0.0.1.2 which failed to install. zlib-0.6.1.2 failed during the configure step. The exception was: ExitFailure 1 zlib-bindings-0.1.1.5 depends on zlib-0.6.1.2 which failed to install.
dhess` has quit [(Ping timeout: 260 seconds)]
tokudan has joined #nixos
<pie_> what can i use to generate a password hash for my user config/
<mkoenig> pie_: i'd use passwd
<pie_> or, well, i could just copy it out of the shadow file
<mkoenig> " To generate hashed password install mkpasswd package and run mkpasswd -m sha-512. "
<pie_> i need the whole thing between the colons for hashedPassword yeah?
johnsonav has quit [(Ping timeout: 246 seconds)]
fuzzy_id has joined #nixos
ertesx has joined #nixos
dridus has quit [(Quit: znc? wassat?)]
ertes has quit [(Ping timeout: 256 seconds)]
ertesx is now known as ertes
dridus has joined #nixos
<Acou_Bass> does anyone run xfce + compiz with nixos? is it as simple as services.xserver.windowManager.compiz.enable then restarting?
<pie_> i installed libvirtd and virtmanager, what do i need to get kvm?
<mkoenig> isn't kvm enabled by default?
<pie_> it tells me it didnt find a default virtualization thing
<mkoenig> did you virtualisation.libvirtd.enable = true; ?
<pie_> yeah
<pie_> do i need to reboot_
<pie_> ?
<mkoenig> guess so
<pie_> well or i probably need to modprobe something...?
<pie_> * could not detect a default hypervisor
lush has joined #nixos
<pie_> well i have kvm-intel running...
<lush> hey joepie91 are you still here? :-)
MP2E has joined #nixos
<pie_> hm i have qemu-kvm installed
<pie_> libvirtd is running\
<pie_> oh wair
<pie_> the issue is probably that i dont have the libvirtd group inherited because i didnt relogin
<pie_> nope, still didnt solve it
<joepie91> lush: ish - currently at work (tutoring session) but intermittently available
<lush> ah alright then :)
<lush> np
<joepie91> lush: feel free to ask, it may just take a while to get an answer
<joepie91> :P
marsam has quit [(Remote host closed the connection)]
<pie_> i havent seen any guides anywhere on how to set this up...
reinzelmann has joined #nixos
freusque has quit [(Ping timeout: 256 seconds)]
<pie_> oh...i just needed to add a connection to myself..
marsam has joined #nixos
reinzelmann has quit [(Client Quit)]
pmade has quit [(Quit: ZNC - http://znc.in)]
<mkoenig> huh? Failed to start local-fs.target: Unit home.mount is masked.
<pie_> uh how do i automount a partition for my user?
freusque has joined #nixos
<mkoenig> what do you mean by automount?
<pie_> well, so that its mounted and accessible when i log in
<pie_> ooor i could just change the permissions for the partition heh
<pie_> and stick with the normal fstab config stuff
<pie_> ive been on windows too long
<mkoenig> that's what i'm working on right now: https://pastebin.com/91gFYVhV is that helpful?
<pie_> ehh not really
hexanode has quit [(Ping timeout: 240 seconds)]
<pie_> also the way i was originally thinking of probably would have required something like the gmask and umask options
<mkoenig> if you just want to mount a normal partiton on boot then mount in and run nixos-generate-config
<mkoenig> * mount it
zraexy has quit [(Remote host closed the connection)]
hotfuzz_ has joined #nixos
<mkoenig> it does not automatically re-mount if reconnect, tho
marsam has quit [(Remote host closed the connection)]
ryantrinkle has quit [(Ping timeout: 246 seconds)]
zraexy has joined #nixos
hotfuzz has quit [(Ping timeout: 264 seconds)]
pmade_ has joined #nixos
<mkoenig> why is home.mount masked?
sigmundv_ has joined #nixos
<pie_> tsmeets, thanks ill check it out
<mkoenig> pie_: /etc/nixos/hardware-configuration.nix
lush has quit [(Quit: Page closed)]
johnw has joined #nixos
MichaelRaskin has joined #nixos
<pie_> aaand now virtanager is failing on something else
<pie_> process exited while connecting to monitor
agjacome has quit [(Ping timeout: 260 seconds)]
ryantrinkle has joined #nixos
<pie_> ah well the error message got truncated, now i see that its a permission denied error for the install iso...
alx741 has quit [(Quit: alx741)]
<tsmeets> pie_: are you still running the install iso?
johnsonav has joined #nixos
blehy has joined #nixos
<pie_> aaand the problem was that it was owned by root for some unfathomable reason...
agjacome has joined #nixos
<blehy> hi, is it correct that nixos uses a fixed release model?
<srhb> blehy: What does "fixed release" mean?
<srhb> blehy: There are two yearly releases, 03 and 09.
freusque has quit [(Ping timeout: 258 seconds)]
<blehy> do i need to reinstall to upgrade?
<srhb> blehy: That distinction is a bit blurry in NixOS. One might say it doesn't matter if you do one or the other. :-)
<srhb> blehy: (No, you don't need to reinstall)
<srhb> and you can even downgrade as well.
<pie_> ok wtf virtmanger is changing it to root:root
<blehy> what do i need to do to have up-to-date versions of software?
<pie_> and then giving permission denied
<pie_> where did i go wrong
<pie_> bbiab
<srhb> blehy: Either make your own overrides for those packages that aren't updated, or follow nixos-unstable instead.
<srhb> blehy: Which is all the latest stuff.
<srhb> (More or less)
pmade_ is now known as pmade
dhess` has joined #nixos
<srhb> blehy: And overriding single packages is a breeze. :)
<blehy> does overriding require compiling?
<MichaelRaskin> nixos-unstable is maintained as a rolling-release, and stable branches are just snapshots with some shaking out
<tsmeets> blehy: You run 'nixos-rebuild switch --upgrade' to update your system
<blehy> MichaelRaskin: ah, thanks
<mkoenig> pie_: i had the same issue last year...
<mkoenig> but i didn't get it fixed
<MichaelRaskin> Overriding a with a version that also has a binary in the cache (stable system with one unstable package) requires no compiling; it may require having two glibc and two Qt…
<blehy> hmm, okay
mudri has joined #nixos
<blehy> do all packages have binaries on unstable?
<MichaelRaskin> Most of the open-source ones, I would say
<blehy> so i dont have to worry about compiling firefox or libreoffice for hours?
<MichaelRaskin> LibreOffice, Firefox and Chromium are available from the binary cache, yes
mkoenig has quit [(Read error: Connection reset by peer)]
pie_ has quit [(Ping timeout: 268 seconds)]
<MichaelRaskin> It may be faster to check out and build than to wait for the Hydra in some circumstances, thouhg
<MichaelRaskin> (if you measure time to getting the fresh version and ignore the load of the local machine)
<blehy> hmm
<blehy> how long will it take me to install nixos probably?
mkoenig has joined #nixos
<MichaelRaskin> We-ell, depends on how long you are going to read the manual and set the options! Also , on the network connection
zeus_ has quit [(Read error: Connection reset by peer)]
<MichaelRaskin> NixOS doesn't have a guided installer
<tsmeets> blehy: I recomend you first install it inside a vm
<mkoenig> pie_: try https://pastebin.com/bvHFax6N
zeus_ has joined #nixos
Jackneill has joined #nixos
<blehy> does it support installing to efi?
<MichaelRaskin> Yes
<blehy> does it need to format the efi partition?
<MichaelRaskin> You are supposed to prepare the partition yourself
<MichaelRaskin> The installation process doesn't want to format it on its own
<blehy> okay, ill give it a try
<blehy> thanks
<tsmeets> blehy: take a look at this: https://chris-martin.org/2015/installing-nixos
tokudan has quit [(Quit: Leaving)]
dridus has quit [(Quit: znc? wassat?)]
blehy has quit [(Ping timeout: 260 seconds)]
ryanartecona has quit [(Quit: ryanartecona)]
endformationage has joined #nixos
marsam has joined #nixos
copumpkin is now known as contrapumpkin
froglegstew has quit [(Remote host closed the connection)]
froglegstew has joined #nixos
AllanEspinosa has joined #nixos
copumpkin[m] is now known as copumpkin
rodgort has quit [(Ping timeout: 255 seconds)]
<ilyaigpetrov> So nix package manager doesn't depend on systemd and I can use it to build distribution without systemd
<ilyaigpetrov> right?
rodgort has joined #nixos
dridus has joined #nixos
copumpkin is now known as Guest11982
<MichaelRaskin> Yes
<MichaelRaskin> (Sent from a laptop with NixPkgs as the only package source and no running systemd)
<MichaelRaskin> You probably cannot avoid having systemd lying around, because it is a transitive dependency of approximately everything
<ilyaigpetrov> MichaelRaskin: is it possible to run systemd in a chroot (I guess nix uses chroots for isolation, right?)
<MichaelRaskin> Not sure
digitalmentat has quit [(Quit: Leaving)]
<MichaelRaskin> I guess it should work
Guest11982 has quit [(Quit: Bridged client killed)]
<MichaelRaskin> Nix uses quite radical unshare for _build-time_ isolation
<MichaelRaskin> This unshare doesn't work inside chroot, by the way
enick_833 has joined #nixos
enick_833 is now known as copumpkin
copumpkin has quit [(Changing host)]
copumpkin has joined #nixos
romildo has joined #nixos
Dezgeg_ has joined #nixos
<romildo> How to configure NixOS so that users can mount an ntfs-3g partition?
acowley_away is now known as acowley
Filystyn has joined #nixos
<Filystyn> so why nix ?
<Filystyn> why nix not debian?
calvertvl has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin> Because Debian has the notion of packages providing command-line tools being in conflict
odi_ has quit [(Ping timeout: 264 seconds)]
marsam has quit [(Remote host closed the connection)]
ryantrinkle has quit [(Ping timeout: 246 seconds)]
<Filystyn> ok and some general advantages over other distros
<Filystyn> what makes it different
seanz has joined #nixos
marsam has joined #nixos
manveru has quit [(Ping timeout: 255 seconds)]
<MichaelRaskin> Almost all distributions have a notion of packages conflicting
<MichaelRaskin> For almost all package managers pressing ctrl-c in a wrong moment of upgrade creates a huge mess
manveru has joined #nixos
kuznero has joined #nixos
<kuznero> Hi All!
<Filystyn> ok what are teh deskopt enviroments? ;-)
<Filystyn> or just send my a picture
<Filystyn> how the deskopt looks
<kuznero> I need to make sure minimum version of input dependency for a package. Can someone please point me in the right direction?
<kuznero> This is the example I am working on (update of F# package to 4.1.1). It needs to have mono-4.2 as minimum, but for some reason picks mono 4.0 on my box...
<MichaelRaskin> mono-4.0 is the default Mono
dgpratt_ has joined #nixos
<MichaelRaskin> You need to explicitly pass mono=mono46; or whatever in all-packages.nix
codedmart has quit [(Ping timeout: 255 seconds)]
dgpratt has quit [(Ping timeout: 255 seconds)]
dgpratt_ is now known as dgpratt
codedmart has joined #nixos
<MichaelRaskin> (to the fsharp)
<kuznero> MichaelRaskin: do you have an example of such thing?
<MichaelRaskin> Open pkgs/top-level/all-packages.nix
<MichaelRaskin> It has a lot of such examples
<tsmeets> Filystyn: nixos supports gnome, enlightenment, kde, lxde, lxqt, mate, pantheon, xfce, kodi, lumina.
<makefu> kuznero: you can use myfsharp = pkgs.fsharp.override { mono= mymono; };
<Filystyn> ok guys
<Filystyn> thank you very much
<Filystyn> i will install it
<Filystyn> i will check it out
<tsmeets> Filystyn: :)
<Filystyn> one only last question
<Filystyn> is there something liek sid in debian
<kuznero> MichaelRaskin, makefu, thanks - will try to make it working...
marsam has quit [(Remote host closed the connection)]
<Filystyn> i mean so i have all up to date or at leats backports
<MichaelRaskin> Well, there is nixpkgs-unstable, there is master branch in the git repo…
fuzzy_id has quit [(Ping timeout: 264 seconds)]
<tsmeets> Filystyn: we have stable and unstable channels
<MichaelRaskin> The freshest we have, at least
<Filystyn> good
deepfire` has joined #nixos
deepfire has joined #nixos
<tsmeets> Filystyn: If you're not shure, you can always try nixos inside a vm.
grisher has quit [(Ping timeout: 255 seconds)]
<kuznero> MichaelRaskin: one thing I am getting lost at in NixOS is if top-level/all-packages.nix feels different from stdenv.mkDerivation structure of individual packages. And when I want to only change specific fsharp/default.nix I get confused a bit.
marsam has joined #nixos
<Filystyn> ill do backup and just go full retard.
cyraxjoe has quit [(Ping timeout: 255 seconds)]
<MichaelRaskin> Well, it's the code in the same Nix language.
<MichaelRaskin> default.nix is implementing a specific function, all-packages.nix is glue code passing outputs from one place to inputs in the other place
pie_ has joined #nixos
<tsmeets> Filystyn: please note that you have to do the partitioning yourself, the nix-installer doesn't do this for you.
grisher has joined #nixos
<kuznero> MichaelRaskin: but for my purpose of trying to upgrade F# is it possible to also make mono46 a default version?
scode has quit [(Ping timeout: 255 seconds)]
mudri|srcf has quit [(Ping timeout: 255 seconds)]
<kuznero> or is it preferred to make mono46 default only for F# package somehow?
edofic has quit [(Ping timeout: 255 seconds)]
cyraxjoe has joined #nixos
mudri|srcf has joined #nixos
<MichaelRaskin> I think global change of default mono should be discussed separately
scode has joined #nixos
Tarinaky has joined #nixos
<MichaelRaskin> But for fsharp it is easy to specify the version: you see {} after the file name? You can add arguments there to replace default versions
edofic has joined #nixos
fuzzy_id has joined #nixos
<Filystyn> ok tsmeets
<NixOS_GitHub> [nixpkgs] LnL7 closed pull request #24303: emacsMacport: name change and description (master...emacs-mac) https://git.io/vSktY
<kuznero> MichaelRaskin: ok, thanks, will try
<tsmeets> Filystyn: good luck.
<kuznero> MichaelRaskin: should I raise incident to upgrade default mono to 46 on nixpkgs.git?
<MichaelRaskin> Well, you could add a PR and see Travis build crash and burn.
<MichaelRaskin> (then, depending on the amount of crashing and burning…)
<kuznero> :) I see, will do. Thanks!
arianvp2 has joined #nixos
tsmeets has quit [(Quit: leaving)]
slyfox has joined #nixos
thip has joined #nixos
romildo has quit [(Quit: Leaving)]
slyfox_ has quit [(Ping timeout: 240 seconds)]
<kuznero> MichaelRaskin: as part of the `nix-build -A fsharp $NIXPKGS` I get error from the dependency manager (NuGet) unable to restore F#'s dependencies into `homeless-shelter` directory. Is this something special I need to configure before testing nix-build locally?
<dtz> Might wanna bump mono46 to 4.6.2 while you're at it
<MichaelRaskin> No, if it _needs_ $HOME, then you need to edit the build expression… And check what you need to install so that the temporary HOME is not missed
<arianvp2> anybody know how I built against libsystemd in nixos?
mojjo has joined #nixos
<mojjo> hi! anybody here having experience with using NixOps to deploy to a vServer? or might be able to answer a conceptional question towards this?
<kuznero> MichaelRaskin: I don't think it needs $HOME to have something before it is running, though it requires $HOME in order to store packages that it fetches. Do you have an example of defining a $HOME in default.nix for a package?
<MichaelRaskin> The problem is that it doesn't rely on HOME-stashed packages after installation
<MichaelRaskin> ./development/em-modules/generic/default.nix does a typical temp-HOME trick
<kuznero> No, it does not rely after it had completed the build process. So, $HOME is needed temporarily while building. Is that a problem?
<MichaelRaskin> No, not a problem
<kuznero> ok, thanks
<MichaelRaskin> Just wanted to make sure there is no misunderstanding
<arianvp2> There is systemd.lib
<arianvp2> but it only installs the .so files
<arianvp2> but not the header files
<kuznero> MichaelRaskin: completely forgot to ask - how is `$out` variable populated in `default.nix` package scripts?
<arianvp2> ah found it
<arianvp2> it apparently has multiple derivation outputs
sigmundv_ has quit [(Ping timeout: 240 seconds)]
<MichaelRaskin> Nix sets it when spawning the builder
marsam has quit [(Remote host closed the connection)]
<mojjo> I installed NixOS on a Vserver and tried to deploy a config to it with NixOps. The remote server started to rebuild based on this but it failed. My question is: Where would the remote system build the deployed system? Would it, when successful, be a 'system in the system'? If so, would it need an extra partition? I can't imagine that it replaces itself with it.
ericnoan has joined #nixos
<arianvp2> woohoo it works
ToxicFrog has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.03: https://git.io/vSq84
<NixOS_GitHub> nixpkgs/release-17.03 c59b7f8 Daiderd Jordan: Merge pull request #24303 from ljli/emacs-mac...
ToxicFrog has joined #nixos
<ericnoan> I just learned about NixOS, can it be used for desktop?
<gchristensen> yeahm
<mojjo> ericnoan: sure!
<gchristensen> definitely, where did you hear about us?
tsmeets[m] has joined #nixos
<ericnoan> i have heard about it a few times, but i never looked more into it... is it true it came out in 2004?
arianvp2 has quit [(Ping timeout: 260 seconds)]
marsam has joined #nixos
<gchristensen> yep!
<NixOS_GitHub> [nixpkgs] primeos opened pull request #24390: gnupg*: Improve the meta set (master...gnupg) https://git.io/vSq4e
<gchristensen> kmicu: yuno! 516 people!
<ericnoan> gchristensen: somehow i get the feeling that nixos is an experimental distro, but considering its long history, is it stable?
<gchristensen> quite stable
deepfire` has quit [(Ping timeout: 258 seconds)]
deepfire has quit [(Ping timeout: 260 seconds)]
<kuznero> MichaelRaskin: as part of installing dependencies NuGet downloads it from public `nuget.org` repository. But script fails to resolve host name. Is there something typical that I am missing to specify or `nix-build` has access to internet and dns by default?
<mojjo> ericnoan: what do actually you mean by desktop? a desktop computer (in contrast to a server) or a graphical user interface?
<ericnoan> a desktop computer with a desktop environment like xfce
<gchristensen> yep definitely can do that
<Filystyn> ok guys so i make live usb for my self
<ericnoan> is there a community repo. something equivelent to Arch AUR or Debian community repository?
<gchristensen> ericnoan: there are now several consulting companies specializing in NixOS, and there are several large companies using NixOS in production to some degree
<kuznero> MichaelRaskin: it is the problem of package manager itself that fails using default HTTP_PROXY it seems.
<mojjo> ericnoan: one of the first things I learned about NixOS is that wheather having a gui or not is just 'one line in a config file' away.
<alphor> how do I override serviceConfig?
<Filystyn> and I would start with stable now question can i upgrade stable to unstable anytime ?
<ericnoan> mojjo: well that is a symptom of how you configure the package manager, correct?
thip has quit [(Ping timeout: 258 seconds)]
<pie_> so im using virt-manager and trying to create my first vm with it, on kvm, and it changes the group and owner of the installation image file to root and then complains about not having permissions. what do i do?
<tsmeets[m]> Filystyn: yes
<Filystyn> ok thxank you ;-)
<gchristensen> ericnoan: yep!
<tsmeets[m]> Filystyn: you can just switch to another channel using nix-channel
<ericnoan> about the community repo, does nixos have one?
<gchristensen> not really, but it is easy to contribute new packages and patches
<gchristensen> or defining your own package repo just for you, is very easy
<gchristensen> with those two things, I'm not sure anyone has needed a community repo
k2s has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #24391: mendeley: 1.17.8 -> 1.17.9 (master...update/mendeley-1.17.9) https://git.io/vSqBi
<ericnoan> gchristensen: thanks for your answers :)
<ericnoan> it sounds very interesting
k2s has quit [(Client Quit)]
<ericnoan> gchristensen: are you grahamc on github?
<gchristensen> I am
<gchristensen> :)
<ericnoan> I like the weekly vulnerability roundup , where you take the vulns from lwn and other new cve's and fix them
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vSqR8
<NixOS_GitHub> nixpkgs/master ed7a1ac Josef Kemetmüller: docopt.cpp: init at 0.6.2
<NixOS_GitHub> nixpkgs/master 07a76cc Joachim F: Merge pull request #23400 from knedlsepp/add_docopt_cpp...
<ericnoan> is this something you took upon yourself or is it a feature of the core project?
<gchristensen> what do you mean a feature of the core project?
ryanartecona has joined #nixos
<gchristensen> numerous people have paid attention to security issues on a regular basis, I just added some tooling to help make sure nothing slipped through the cracks
<ericnoan> What I mean is, if you weren't doing it, would someone else do it?
<gchristensen> absolutely
<Filystyn> just to clear out things nothing changes i format my usb than cp on sdb nix image and than sync y ?
dridus has quit [(Ping timeout: 240 seconds)]
<mojjo> ericnoan: the heart of the system is the configuration.nix file, where you can configure all system options. (in contrast to other distros where it's rather spread). Based on this file you can always rebuild your system everywhere. For instance you'd declare that you'd like to use xfce, and you should be good. The package manager behind the scenes takes care that it will be installed for you, when you rebuild your s
<mojjo> ystem based on this config file.
<ericnoan> gchristensen mojjo: great, sorry for the questions, i am reviewing a bunch of distros
<mojjo> ericnoan: which system are you using currently?
<pie_> can anyone help me get libvirt/kvm running? :/
YellowOnion_ has joined #nixos
<ericnoan> mojjo: lets just say... an arch derivitive
periklis has quit [(Ping timeout: 258 seconds)]
<LnL> pie_: virtualisation.libvirtd.enable
<mojjo> ericnoan: I have not much of comparison: I came from MacOS -> LinuxMint -> NixOS
<pie_> LnL, im past that. now im screwing with it screwing with my install image permissions
<ericnoan> mojjo: and are you satisfied? what is your use-case?
<gchristensen> ericnoan: no worries! we're happy to answer questions :)
<pie_> and then complainingit cant access them
<tsmeets[m]> Filystyn: not shure if cp would work. I always use: dd if=nixos.iso of=/dev/sdb
<Filystyn> ok just saw manual recomands dd
<tsmeets[m]> Filystyn: please ensure that sdb is your usb!
YellowOnion has quit [(Ping timeout: 260 seconds)]
<Filystyn> ok just saw manual recomands ddyeah yeah
<pie_> should i be using nixops for this?
<Filystyn> *** yeah yeah i know thats dangerous
<tsmeets[m]> Filystyn: Check dmesg when pluggin the usb
deepfire` has joined #nixos
deepfire has joined #nixos
<gchristensen> ericnoan: https://nixos.org/nixos/security.html lists other key people focusing on general security matters
takle has quit [(Remote host closed the connection)]
* pie_ pokes fpletz,
YellowOnion_ has quit [(Ping timeout: 260 seconds)]
<Filystyn> the checksum is fine lel
fuzzy_id has quit [(Ping timeout: 260 seconds)]
<mojjo> ericnoan: MacOS I'm not missing at all (just the lack of Photoshop), well LinuxMint cause rather some troubles on my MacBook. Was ok for the start. There's a large community, but I did not find the help too productive often. I'm using NixOS for some 10 months now and it runs super stable. no major problems. Usecase: Developing machine. I'm generally interested in functional programming.. which is as you know the mai
<mojjo> n concept of nix.
<gchristensen> (side note: not everyone who use nix know functional programming, it isn't a pre-req. for example, me, heh)
YellowOnion has joined #nixos
<mojjo> gchristensen: yeah, maybe it's not needed. But a rough understanding is surely quite helpful.
<gchristensen> you can get on pretty well without know
<gchristensen> without knowing and just pretending it is a funny syntax, that is how I handled my first 9mo of nixos
user___ has joined #nixos
user___ is now known as jovaha
<cransom> nix, at least compared to some other languages, if you have no idea what you are doing but it does compile/not throw errors, you have a slightly higher level of success when you go to run it.
<gchristensen> yeah!
<cransom> #glowingendorsement
bennofs has joined #nixos
<kuznero> I have problem fetching some dependencies from internet when building my `package/default.nix` with `nix-build -A fsharp $NIXPKGS`, is there anything I should specify to make sure proper http_proxy-*-like settings are getting properly used by machinery invoked with `make` underneath?
<mojjo> does actually nobody have any enlightening thought related to my above nixops question ? ;-)
<kuznero> one caveat - it is using https instead of http (not sure if it is at all related to the problem though)
arianvp2 has joined #nixos
slam_ has quit [(Quit: Page closed)]
lush has joined #nixos
<arianvp2> How do man-pages work in nixos?
<ericnoan> Can I find a list of mirrors somewhere? And are packages signed?
<lush> hey there
<arianvp2> if I have a c library and I nix-shell into it
<arianvp2> how can I find the manpage?
<lush> << using nixos now :-D
<gchristensen> ericnoan: packages are signed, our binary cache is on cloudfront and so we don't have a loose network of mirrors like other distros
<ericnoan> gchristensen: is that the http://tarballs.nixos.org ?
<gchristensen> cache.nixos.org as well
<jovaha> dose anybody have a nixos configuration file for a working gnome3 system?
<gchristensen> tarballs.nixos.org is sort of a backup of certain tarballs, not built packages
<ericnoan> can i download a sample package, or do i have to run nix?
<gchristensen> hmm it would be a bit tricky without nix
<ericnoan> alright, i'll try it
<mojjo> lush: just installed?
<gchristensen> (1) we use a custom archive type called a NAR,which IIRC is like a tar, except it is reproducible, (2) you would likely need to download several NARs to get a working /closure/: a closure is a package and all of its dependencies
<lush> mojjo: yup
<lush> 5min ago
<gchristensen> lush: lookin' good!
<fresheyeball> So configuration.nix has options like this: https://nixos.org/nixos/manual/options.html#opt-programs.zsh.enable
agjacome has quit [(Remote host closed the connection)]
<lush> it's quite cool
praduca has joined #nixos
<fresheyeball> but I can also install zsh by putting it under environment.systemPackages
<lush> although I'm kind of confused because I already have like 5th generation of nix just trying to install first firefox, then the breeze-gtk theme, ... :-D
<lush> I need to refactor this stuff asap ^^
<fresheyeball> now I'm confused
<fresheyeball> why are some things under `programs`?
<mojjo> lush: where you're coming from, I mean which system did you use before?
<fresheyeball> looking at zsh as an example how should I do this?
<lush> mojjo: mostly archlinux and openSUSE
<fresheyeball> should I add it to systemPackages, or enable it under programs or what?
<mojjo> lush: Don't worry about the generations, they'll add up.. and you can always garbage collect them, If you need space
* gchristensen is on generation 248
<lush> alright ^^
<praduca> Hi, newbie question here :) I am trying to use cinelerra, but when installing, it tries to compile, and fails. The fact that it is on stable channel says that I am doing some wrong, maybe? I'm supposed to do something before installing it?
<LnL> fresheyeball: systemPackages just installs the binary, programs.zsh does this for you and enables some other stuff like tab completion, default prompt, ...
<lush> I installed firefox through adding pkgs.firefox to my systemPackages however it doesn't get listed in my KDE Applicatio menu.. do I have to add it manually or is there a command for kde to find it itself?
<fresheyeball> LnL: why the seporation? Why are some things under programs?
<lush> (not used to kde)
<LnL> fresheyeball: things under programs will configure some global things like /etc/zshrc
<pmade> When configuring a systemd user service for a package that wants a configuration file, is there a way to insert the name of the user into the configuration file? Maybe generate it as part of a pre-start? I'm not really sure how to proceed on this one without hard-coding my own home dir.
<mojjo> praduca: which command did you use to install?
<LnL> fresheyeball: systemPackages literally only adds it to /run/current-system/sw
marsel has quit [(Ping timeout: 258 seconds)]
<fresheyeball> so what's the heuristic? When I think about a package, when should I think: 'hey I should check on `programs`, because this package should be there instead.
<ericnoan> gchristensen: can you help me out with finding documentation on how the package manager and specifically signing works? couldn't find it on the wiki, and I understand from the manual that "every time you run nixos-rebuild, NixOS will ensure that you get a consistent set of binaries..." but where are those binaries built? and who signs them?
<tsmeets[m]> fresheyeball: if you just want a binary/application, use systemPackages.
<tsmeets[m]> fresheyeball: if you want a service or configure something use an option
<seanparsons> Is there anything I can add to say nix.extraOptions to make it retry downloads? I keep getting transient failures on this machine and I think it's something to do with the wifi.
<fresheyeball> tsmeets[m]: that doesn't help. Almost any binary/application can be configured.
<praduca> mojjo: both nox cinelerra and nix-env -i etc
<gchristensen> ericnoan: hydra.nixos.org builds the binaries from source and signs them with the nixos.org key
<ToxicFrog> fresheyeball: so, at least for zsh, the difference is that adding it to systemPackages makes it possible to run `zsh`, while setting the enable option adds the necessary bits to /etc for zsh to actually work
<lush> gchristensen: may I ask a question? ^^
<gchristensen> ericnoan: which is a public/private keypair, the public side of which is distributed with nixos: https://github.com/NixOS/nixpkgs/blob/release-16.09/nixos/modules/services/misc/nix-daemon.nix#L334
<gchristensen> lush: of course, lots of people here can help :)
<lush> I want to use ssdm as a display manager. Now by looking at the nixos.org website I find the package itself and when I google it I even find the sddm.nix file
<gchristensen> I will try, if I can, of course
<lush> However.. how do I know which command enables ssdm in my config?
<gchristensen> lush: you probably want services.xserver.displayManager.sddm.enable: https://nixos.org/nixos/options.html#sddm
<lush> aaaah
<lush> didn't know the options search engine
<lush> thank you :)
<gchristensen> you can also `man configuration.nix` :)
<arianvp2> how do i get the libc man pages in nixos?
<fresheyeball> ToxicFrog: so why don't ALL binaries work with `programs`?
* lush *rebooting*
lush has quit [(Quit: Page closed)]
<ToxicFrog> fresheyeball: `programs` is a configuration option; it requires someone to specifically write configuration knobs for it rather than just adding build rules.
<maurer> Hey, after an upgrade, /run/current-system/sw/share/timezone has gone missing
YellowOnion has quit [(Ping timeout: 240 seconds)]
<ToxicFrog> Also, I'm not sure that setting `programs.zsh.enable` lets you run zsh from the command line; it may just write the stuff in /etc so that setting zsh as someone's login shell in users.users.foo works.
<maurer> This is causing some software (in this case a manually invoked postgres server) to fail. Is there a way for me to get it back? If not, what do I need to do to deal with this?
<ToxicFrog> Whereas stuff in systemPackages is guaranteed to end up in $PATH
<fresheyeball> ToxicFrog: really? Because I put zsh in systemPackages, and I can run it from my $PATH.
<ToxicFrog> fresheyeball: yes, that's what I just said
<mojjo> pmade: I can't answer you question exactly. But here's a thought: configuring the service with the hard-coded path is unpure as you suggest. But, would it be better if you'd have the magic var you are looking for and then put some path behind it? If the file is not there, your system does not run. and nobody can make sure that it's there.
<arianvp2> how do manpages in nix work anyway?
<fresheyeball> ToxicFrog: sorry I misread
<ToxicFrog> fresheyeball: in systemPackages => in $PATH. `programs.zsh.enable` set => can be used as login shell.
<maurer> Nevermind, evidently just nix-env -iA nixos.postgresql was enough, just surprised that the timezones were moved
<arianvp2> how does the pager find where the man pages are?
<fresheyeball> ToxicFrog: lets say I want oh-my-zsh to be the global default shell
<ToxicFrog> If you're missing the former, you can set it as a login shell, but 'exec zsh' from, say, bash won't work. If you're missing the latter, you can run `zsh` from another shell but your environment variables will be messed up.
<fresheyeball> ToxicFrog: how would I do that correctly?
<pmade> mojjo: I was thinking of doing something like that. Looking for @@HOME@@ and doing some sed magic on it.
<tsmeets[m]> fresheyeball: i always check https://nixos.org/nixos/manual/options.html
<ToxicFrog> tsmeets[m], fresheyeball: I find https://nixos.org/nixos/options.html much more useful, personally
<fresheyeball> tsmeets[m]: I was reading that. Its why I starting asking questions. I saw things in there I didn't expect.
<fresheyeball> ToxicFrog: oh nice! This is much better
<mojjo> pmade: maybe the builtins readFile and toFile help you. You could have your cfg file either inside your configuration.nix, if it's quite short. And then you'd use toFile in order to store the contents in the nix store. the function returns you a path that you can safely use in your service config.
<tsmeets[m]> fresheyeball: if you can find your package in there, use than.
goibhniu has joined #nixos
<MichaelRaskin> kuznero: Nix builds are isolated. You cannot access network from the build unless the checksum of the output is known
k2s has joined #nixos
<pmade> mojjo: Thanks for all the help.
<MichaelRaskin> There is fetchNuGet, though, so you can pre-fetch the needed packages and pre-checksum them
<fresheyeball> tsmeets[m]: ToxicFrog: so I see zsh in there, but not oh-my-zsh
<MichaelRaskin> gchristensen: how is your abyss?
<mojjo> pmade: and in case the cfg is long, you could have it in the same folder as you configuration.nix and use readFile before using toFile. (could not find a shortcut for this, but there should be one...)
<kuznero> MichaelRaskin: interesting... is that a guideline or a requirement. I am asking because it seems that previous version of fsharp didn't do any of this.
<ToxicFrog> fresheyeball: OMZ is a package https://nixos.org/nixos/packages.html
<ToxicFrog> IMO, this division is a bad idea; installing zsh by any means should get the necessary bits in /etc to have a functioning zsh install
<MichaelRaskin> It is a requirement, for example, the buildfarm uses sandboxing of the builds and that's non-negotiable
<fresheyeball> OMZ is a package
takle has joined #nixos
<kuznero> MichaelRaskin: and now it fetches nuget packages while building in Travis CI (https://travis-ci.org/NixOS/nixpkgs/builds/215697768)
<fresheyeball> right now I have zsh and oh-my-zsh under systempackages
<MichaelRaskin> Previous version of fsharp may just have had less dependencies, and maybe vendored some
<praduca> mojjo: The fact that it is on the stable channel doesn't mean that it should install?
<MichaelRaskin> Travis has various config problems
<gchristensen> MichaelRaskin: I got it!
<gchristensen> MichaelRaskin: https://github.com/grahamc/nix-shenanigans/blob/master/nix-flatten/build.nix and I have a better version locally that I haven't pushed yet
<ToxicFrog> fresheyeball: so, I don't use OMZ, but from my personal experience, to get zsh as the login shell, you need programs.zsh.enable = true and then set shell = pkgs.zsh for the users you want to affect
<ToxicFrog> You probably also want zsh in systemPackages so that things like 'exec zsh <some different arguments>' or '#!/usr/bin/env zsh' work.
<mojjo> praduca: ok, I tried it now on my machine. Do you get the "allow unfree" error?
<kuznero> MichaelRaskin: I can understand the reasoning behind that. Will try to see why previous package works (it is still using nuget-packages).
<praduca> yes, but corrected it
<ToxicFrog> fresheyeball: to get OMZ loaded as the default, probably set programs.zsh.shellInit to something that will load OMZ
<mojjo> praduca: where did you correct it?
<MichaelRaskin> gchristensen: do you have a parasite prefix "top" everywhere?
<MichaelRaskin> My version didn't have that
<ToxicFrog> fresheyeball: oh, and if you want it as the default shell for *everyone*, set users.defaultUserShell to pkgs.zsh
<praduca> both, i has needed for the environment before, then created a folder on home with it
<praduca> it passes all that, download the sourcecode, compiles but _fails_
<ToxicFrog> fresheyeball: anyways, hopefully that helps
<MichaelRaskin> gchristensen: (and it is just a simple emptiness check)
<ToxicFrog> My position is that programs.zsh.enable shouldn't exist and installing zsh at all should implicitly install the necessary parts in /etc, but I haven't actually written that patch or anything
<MichaelRaskin> Or is it the improvement in your unpushed versin?
<fresheyeball> ToxicFrog: Everyone in the IRC has been super helpful
<fresheyeball> ToxicFrog: you get a gold star from me today
<fresheyeball> ToxicFrog: <gold>*</gold>
<gchristensen> MichaelRaskin: my better one doesn't have that
<MichaelRaskin> Ah OK
<MichaelRaskin> Did you get notifications about my comments, I wonder? Never sure with GitHub…
agjacome has joined #nixos
<kuznero> MichaelRaskin: indeed, there are way more nuget packages used in this version. So, should I `fetchNuGet` them all (turn into packages effectively?)?
<gchristensen> I don't think so, where did ou leave them?
<MichaelRaskin> Ideally, yes
<praduca> the last message after trying to compile was raise CalledProcessError(retcode, cmd)
<praduca> subprocess.CalledProcessError: Command '['nix-env', '-iA', '--show-trace', 'nixos.cinelerra']' returned non-zero exit status 100
<seanparsons> Hmmm, I keep seeing "Unknown SSL protocol error in connection to cache.nixos.org", skimming the source for nix I can see there's some logic for retries, but it's not doing so as best as I can tell.
<mojjo> praduca: mh, Can't build it as well. It must be broken...
<praduca> it's possible that some change on github broke the package and it still pass tests?
<NixOS_GitHub> [nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vSqot
<NixOS_GitHub> nixpkgs/master 5245106 Nikolay Amiantov: virtualbox: wrap with Qt dependencies...
<gchristensen> hmm nice!
<gchristensen> apparentlly gists don't send emails ... :( :(
<MichaelRaskin> Pity…
<NixOS_GitHub> [nixpkgs] abbradar pushed 1 new commit to release-17.03: https://github.com/NixOS/nixpkgs/commit/1ad1fa4547d9816704b9eb8b6bb79bb0d35a7018
<NixOS_GitHub> nixpkgs/release-17.03 1ad1fa4 Nikolay Amiantov: virtualbox: wrap with Qt dependencies...
<MichaelRaskin> Yep, I wrote the simplest possible code, none of the niceties like full typecheck
<praduca> well.will try with another soft :) when i fully understand that i will try to compile locally and see what i get
<praduca> thanks for your help :mojjo
<NixOS_GitHub> [nixpkgs] makefu opened pull request #24392: cups-dymo: patch upstream for cups 2.2 (master...pkgs/dymo/fix-includes) https://git.io/vSqow
tsmeets[m] has quit [(Quit: Contact me at: tom@tsmeets.nl)]
jovaha has quit [(Quit: jovaha)]
<fresheyeball> So I'd like to dual boot windows with nixos
<fresheyeball> Any advice?
<MichaelRaskin> Argh
<MichaelRaskin> Direct mentions in gists do not work
<MichaelRaskin> gchristensen: maybe it is better to simply put all the gists into a «gists» repository…
calvertvl has joined #nixos
<gchristensen> yeah, I have a _lot_ of gists.
<MP2E> fresheyeball: I dual boot Windows and NixOS, all it took was some extra lines in my /etc/nixos/configuration.nix
zeus_ has quit [(Ping timeout: 246 seconds)]
<MP2E> note that this exact same setup also works for Win7, haven't tested 8 or 8.1 but I'd assume they would work.
<maurer> So, I ran nox-review on my branch, but the PR checklist has reminded me I should turn on/try out sandboxing
<maurer> when I try to nox-review now, it just pulls in the old versions, which were built without sandboxing on
<maurer> is there a way for me to test the builds with sandboxing on?
<maurer> (alternatively, I can just submit my PR without sandbox checking and just do it next time)
<maurer> (which might be easiest)
AllanEspinosa has quit [(Ping timeout: 260 seconds)]
<fresheyeball> MP2E: I don't undertand what is going on there
ndowens08 has joined #nixos
<leothrix> Howdy, is there any existing examples using nixops to deploy to pre-built machines? My use case is machines provisioned by terraform that I want to manage nix configs for.
<ndowens08> Hey
<fresheyeball> MP2E: would I install windows first? Can I install windows after install nixos?
<ndowens08> install windows first
<MP2E> you would install Windows first. Maybe, but that would be more complicated, because Windows would overwrite the bootloader
<ndowens08> otherwise it overwrites boot loader
<mojjo> leothrix: what do you mean by pre-built machines? is nix running on them?
<leothrix> mojjo: yeah, for example, if I'm building EC2 machines through some other process, but am looking for a way to manage the configuration of the nixos setup
m0rphism2 has quit [(Quit: WeeChat 1.4)]
<leothrix> I could hack something together to deploy configuration.nix files but figured maybe nixops could just point at pre-built hosts
<Dezgeg> yes with the nixops "none" backend it can be pointed to existing nixos boxes over ssh
<mojjo> leothrix: I mean NixOS
<fresheyeball> MP2E: So install Windows first, then install nixos, and use configuration.nix to setup the dual boot?
zeus_ has joined #nixos
<NixOS_GitHub> [nixpkgs] maurer opened pull request #24393: OCaml Package Updates (master...ocaml-updates) https://git.io/vSq6H
<fresheyeball> Oop I messed something up
<fresheyeball> now I login and get kicked out
<fresheyeball> how do I get the a normal terminal from the login screen?
<leothrix> Gotcha, I'll look at setting the "none" backend. Last question; is there any way to tell nixops to access remote hosts through an ssh bastion/ProxyCommand type of setup?
zeus__ has joined #nixos
<MP2E> yep that's the right series of steps
<Dezgeg> sadly, no, that is bugged currently
<leothrix> Ah, bummer
<MP2E> try ctrl+alt+f1 or f2 to get to a console if X is having issues
zeus___ has joined #nixos
AllanEspinosa has joined #nixos
<fresheyeball> MP2E: thanks
k2s has quit [(Ping timeout: 258 seconds)]
<mojjo> Dezgeg: leothrix: I tried to do this some time ago, but my the building of the deployed config failed (don't have the msg anymore). Just wrote something related to this to the nix mailing list, did you read that by any chance?
zeus_ has quit [(Ping timeout: 246 seconds)]
<MichaelRaskin> Whenever I hear the talk of dual booting, I always wonder why people even consider not having two separate UEFI partitions for Windows and Linux
zeus__ has quit [(Ping timeout: 246 seconds)]
hiratara has quit [(Ping timeout: 246 seconds)]
thc202 has quit [(Ping timeout: 260 seconds)]
<Dezgeg> I always wonder why people don't just disable UEFI ;)
acowley is now known as acowley_away
<leothrix> mojjo: Hmm, I haven't, I'll see what's there. We've got a Terraform environment up, but I'd really love to do the actualy configuration with nixos rather than deploying Ubuntu + $ugly_config_mgmnt_thing
hiratara has joined #nixos
goibhniu has quit [(Ping timeout: 264 seconds)]
<mojjo> Dezgeg: leothrix: my question is basically: does the remote nix rebuild itself on the deployed config or does it build another child system on its side..?
<Dezgeg> no, all building should happen on the host that is deploying
Wizek_ has joined #nixos
<mojjo> Dezgeg: really? it builds locally and then sends the compiled thing over the wire?
<Dezgeg> yes
zeus___ has quit [(Read error: Connection reset by peer)]
zeus_ has joined #nixos
yumbox has joined #nixos
<mojjo> oh, I did not know.. but then, on the other side, how is this handled further?
<ndowens08> Playing with git, how do I avoid having to set merge message when merging a branch into master or elsewhere
<yumbox> hi, so i just installed nixos when suddenly my internet stops working
<yumbox> i did a few rollbacks, but it doesnt work
<fresheyeball> ToxicFrog: so I have zsh installed now via programs, its working
<fresheyeball> but I can't edit the ~/.zshrc file! Permission denied!
<yumbox> wasnt the whole point that doing a rollback should bring the system back into the state it was previously?
<yumbox> so how can it not work now then?
bfrog has joined #nixos
<ndowens08> fresheyeball: as root do chown -R USERNAME:users /home/PATH/.zshrc
kuznero has quit [(Quit: Leaving)]
<MichaelRaskin> Dezgeg: well, UEFI _is_ a saner solution than blocklists… And magic gaps between partitions are also not very nice
<avn> MichaelRaskin: It will be bit more safer, if it will have grub.cfg in same place, as grub.efi. As well as more sane FS than fat
<Dezgeg> sure, but with legacy boot there is generally only one or two ways to do the same thing, wheras with uefi you get the combinatorial explosion of choices, whether to use systemd-boot or grub, whether uefi partition is on /boot or /boot/efi, whether to have separate efi part for windows...
<fresheyeball> ndowens08: oddly that did not work
<ndowens08> it should have, any error?
<fresheyeball> no, no error
<ndowens08> is zshrc in a dir or just in your home dir?
<MichaelRaskin> Dezgeg: in general, I prefer having more options. Because in my experience the top-3 recommended options for using anything technological will be braindead, so I need to _have_ more than 3 to get any chance
<avn> Dezgeg: I was pretty surprized, when found that boot path was "hardwired" into grub.efi in non-editable form
<fresheyeball> ndowens08: chmod worked
<avn> Also it force me to use more than one boot partition, if I want keep kernels outside of zfs
johnw has quit [(Quit: ZNC - http://znc.in)]
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<yumbox> dhcpcd gives as error that it can't find the ntp services
<Dezgeg> yay for murphy's law of partitioning
<avn> Dezgeg: this season I learn pretty lot of caveats ;)
<avn> grub.efi have boot path inside, grub can't read kernel from /nix/store on ZFS, ....
<NixOS_GitHub> [nixpkgs] joachifm pushed 1 new commit to release-16.09: https://git.io/vSq1U
<NixOS_GitHub> nixpkgs/release-16.09 deb73f2 Joachim Fasting: Revert "chromium: 56.0.2924.87 -> 57.0.2987.98 [Security]"...
<Dezgeg> I thought we compile grub with zfs support?
<yumbox> how can I solve the problem?
<avn> Dezgeg: yes, and grub generally capable read zfs, but not if you use hardlinking in /nix/store
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #24391: mendeley: 1.17.8 -> 1.17.9 (master...update/mendeley-1.17.9) https://git.io/vSqBi
yumbox has quit [(Quit: leaving)]
arianvp2 has quit [(Quit: Page closed)]
<ToxicFrog> fresheyeball: huuuuh. I wonder if that's a bad interaction with `programs.zsh.shellInit`?
<fresheyeball> ToxicFrog: I didn't set that
<ToxicFrog> Before declaring that chmod worked, make sure that `nixos-rebuild switch` doesn't end up overwriting your .zshrc or something
<ToxicFrog> Oh
<fresheyeball> ToxicFrog: it does I think
johnsonav has quit [(Ping timeout: 246 seconds)]
<ToxicFrog> Weird. It doesn't for me.
<ToxicFrog> Sadly, I must now away for adventures. Good luck!
<fresheyeball> ToxicFrog: Thanks!
<fresheyeball> MP2E: what is chainloader doing in your snippet?
bennofs has quit [(Ping timeout: 246 seconds)]
<gchristensen> is it possible to access a nix build's log from within nix? <insert devious face>
drasich has joined #nixos
<gchristensen> (or should I definitely not do some path manipulation to access the log in /nix/var/log/nix/drvs/)
ryantrinkle has joined #nixos
ambro718 has quit [(Ping timeout: 260 seconds)]
mudri has quit [(Ping timeout: 240 seconds)]
yumbox has joined #nixos
<yumbox> anyone use firejail?
deepfire is now known as skosyrev
<yumbox> it doesn't work
<yumbox> it just prints "Warning: cannot switch egid to root" and exits
MP2E has quit [(Quit: reboot)]
skosyrev is now known as koserge
<MichaelRaskin> Do you run it as ordinary user?
<yumbox> yes
hiratara has quit [(Quit: ZNC - http://znc.in)]
<MichaelRaskin> I think it assumes setuid
MP2E has joined #nixos
<yumbox> i cant setuid it
<MichaelRaskin> You mean the store is read-only?
<MichaelRaskin> setuid is managed in NixOS via configuration.nix
hiratara has joined #nixos
<yumbox> yeah, i know
<yumbox> but
<yumbox> trace: warning: The option definition `security.setuidPrograms' in `/etc/nixos/configuration.nix' no longer has any effect; please remove it. Use security.wrappers instead
<MichaelRaskin> Yes, the setuid options has changed
<yumbox> except i cant find anywhere how to use "security.wrappers"
<NixOS_GitHub> [nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vSqyC
<NixOS_GitHub> nixpkgs/master 0c3138e Kosyrev Serge: virtualbox: a more maintenance-free way of patching refs to dlopen()-affected dependencies
<MichaelRaskin> Just use GitHub search of this exact string
<MichaelRaskin> security.wrappers.kbdlight.source = "${pkgs.kbdlight.out}/bin/kbdlight";
<NixOS_GitHub> [nixpkgs] abbradar pushed 1 new commit to release-17.03: https://git.io/vSqyR
<NixOS_GitHub> nixpkgs/release-17.03 38b2e27 Kosyrev Serge: virtualbox: a more maintenance-free way of patching refs to dlopen()-affected dependencies...
<MichaelRaskin> Now replace kbdlight with firejail
ebzzry has joined #nixos
<yumbox> how does that do what I want?
<yumbox> i want setuid
<MichaelRaskin> It creates a setuid wrapper
civodul has quit [(Remote host closed the connection)]
<yumbox> why can't that then just be added in the warning?
<gchristensen> you should ask the firejail people
<MichaelRaskin> I think the question is about setuidPrograms → security.wrappers
<yumbox> that's not a firejail warning
<yumbox> that's a nixos warning
<MichaelRaskin> Ah, 16.09 still had securityPrograms, so NixOS.org options list has the old syntax
<yumbox> the "trace: warning" comes from "nixos-rebuild switch"
mojjo has quit [(Ping timeout: 260 seconds)]
<yumbox> but that doesnt work either
<yumbox> is there any documentation on security.wrappers?
mudri has joined #nixos
yumbox has quit [(Quit: Page closed)]
<MichaelRaskin> nixos-option security.wrappers, I would assume
<MichaelRaskin> And man configuration.nix and nixpkgs/nixos/modules/security/wrappers/default.nix actually contains both the definition of the option and the documentation included in man configuration.nix about the option
johnsonav has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
Wizek_ has quit [(Ping timeout: 240 seconds)]
mojjo has joined #nixos
<mojjo> in nixops, when using deployment.targetEnv = "none"; there where some options to configure a remote host, can't find them anymore in the docs.. ?
seanz has quit [(Quit: Leaving.)]
<gchristensen> mojjo: deployment.targetHost = ip
dhess` has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub> [nixpkgs] ndowens closed pull request #24192: pkgconfig: 0.29 -> 0.29.1 (staging...pkgconfig) https://git.io/vypdf
dhess` has joined #nixos
Wizek_ has joined #nixos
<mojjo> ah, nice... now I'm getting the error "The ‘fileSystems’ option does not specify your root file system." when deploying...
<ndowens08> how to hell did when playing with my own two seperate test-repos, did it change my nixos PR? and added so many commits; had to close it; Double checked and I am in my two test repo dirs and not my nixpkg-dir(that is nixos)
shawndomniti has joined #nixos
marsam has quit [(Ping timeout: 240 seconds)]
koserge has quit [(Ping timeout: 260 seconds)]
<ndowens08> none of the pushes show my nixpkg repo in it, ugh, well gonna have to play git another way :\
<ndowens08> start from scratch on those two test areas
<mojjo> here's the nix file I'm trying to deploy: http://lpaste.net/353990
deepfire` has quit [(Ping timeout: 246 seconds)]
<ndowens08> ya know what, might be safer to move play repo to a different place :)
marsam has joined #nixos
ryantrinkle has quit [(Ping timeout: 246 seconds)]
digitus has quit [(Quit: digitus)]
<dhess`> ndowens08: I discovered something similar myself recently. GitHub will happily keep adding future commits to the same branch to your PR. So basically, make sure you do a "topic branch" for each PR to keep them separate.
m0rphism has joined #nixos
<ndowens08> dhess`: it is weird, when I wasnt even touching the real repo I use
<ndowens08> Gonna use gitlab for the play area for git :) no way that can happen again lol
<MichaelRaskin> Make sure you don't enable any of the integration features… GitLab knows how to sync with GitHub!
<MichaelRaskin> (it asks, though)
bfrog has quit [(Ping timeout: 240 seconds)]
Gohla has quit [(Ping timeout: 240 seconds)]
marsam has quit [(Remote host closed the connection)]
<ndowens08> sigh lol. gotta check my other PRs to make sure they somehow didnt get them :\
erlandsona has joined #nixos
<ndowens08> good, rest wasnt affected
lezed1 has joined #nixos
YellowOnion has joined #nixos
Gohla has joined #nixos
<dhess`> anyone here running Nix on macOS and has upgraded to 10.12.4?
erlandsona_ has joined #nixos
ryantrinkle has joined #nixos
markus1189 has joined #nixos
markus1199 has joined #nixos
erasmas has quit [(Quit: leaving)]
erlandsona has quit [(Ping timeout: 246 seconds)]
markus1209 has quit [(Ping timeout: 240 seconds)]
markus1219 has quit [(Ping timeout: 258 seconds)]
praduca has quit [(Remote host closed the connection)]
shawndomniti has quit [(Ping timeout: 264 seconds)]
<erlandsona_> Testing
erlandsona_ is now known as erlandsona
erlandsona_ has joined #nixos
<erlandsona_> Anyone here use node2nix? Or have any advice on using nix-shell? I'm trying to figure out how to be able to run my webpack tasks on NixOS. These call some precompiled binaries stored in node_modules. And I was hoping node2nix could help but I'm a bit lost using it...
AllanEspinosa has quit [(Quit: leaving)]
<NixOS_GitHub> [nixpkgs] ndowens opened pull request #24394: pkgconfig: 0.29 -> 0.29.1 (master...pkgconfig) https://git.io/vSqFa
erlandsona has quit [(Ping timeout: 246 seconds)]
erlandsona_ is now known as erlandsona
<erlandsona> Test test... anyone here?
erlandsona has quit [(Quit: See y'all later)]
erlandsona_ has joined #nixos
<NixOS_GitHub> [nixpkgs] primeos pushed 1 new commit to master: https://git.io/vSqbL
<NixOS_GitHub> nixpkgs/master 6ce0af2 Michael Weiss: python-gnupg: 0.3.8 -> 0.4.0 and disable tests...
<erlandsona_> Anyone here?
<ndowens08> i dont use node
<erlandsona_> :{
<erlandsona_> ndowens08: do you use anything like bundix / node2nix for packaging language level dependencies in Nix? Or do you write a default.nix in your project directory by hand and use nix-shell or something?
<ndowens08> nope, just mostly C/c++ apps and stuff
<dhess`> erlandsona_: I use cabal2nix for Haskell projects.
<erlandsona_> I'm trying to figure out how to do development on NixOS because so far every project I've tried to clone and do some work on I haven't been able to get running on NixOS because of the whole read-only precompiled binaries thing...
<erlandsona_> dhess`: so how does it work?
<dhess`> I've also used a few other *2nix wrappers, but in my experience, each one is quite a bit different than the others. Knowing one doesn't necessarily mean you know how to use the others.
<erlandsona_> But they all have similar goals right?
<dhess`> erlandsona_: err... that's a very open-ended question. Do you do any Haskell development?
<dhess`> erlandsona_: yes, to take a language-specific project specification and turn it into a Nix expression.
Filystyn has quit [(Quit: Konversation terminated!)]
<erlandsona_> EG: `*2nix myproject` to make it "compatible" with the nix store.
<Ralith> npm is kind of a trash fire
<dhess`> erlandsona_: I strugled with node2nix/npm2nix a few months ago. I pretty much gave up. Anyway, this might help: https://www.reddit.com/r/NixOS/comments/4v3amk/anybody_successfully_using_nix_to_manage_nodejs/
<erlandsona_> dhess`: Does configuring XMonad count as Haskell development? I've read about half of Haskell from First Principles but I get a bit lost on instances and some of the more advanced data types.
<dhess`> It's a shame that shitty tools keep pervading the JavaScript community. It's just one after another.
<RchrdB> Ralith, IME yarn makes it nicer but I have no idea how that interacts with nix.
<dhess`> take after their parent, I suppose.
carlosdagos has joined #nixos
<ndowens08> hmm Think I figured out how to show PR as commit msg instead of merge msg when pushing :)
<dhess`> erlandsona_: No, configuring XMonad doesn't count. If you know how a .cabal file works, then explaining how cabal2nix works might be useful. Otherwise, I don't think it would help you much.
<erlandsona_> dhess`: how do you do javascript in your haskell projects then?
<erlandsona_> Rather that's assuming they're web apps...
<erlandsona_> Ralith: I'm learning so.
<mojjo> "...grub-install: error: will not proceed with blocklists. " did I chose the wrong partition type?
<dhess`> erlandsona_: I don't. They're server-side only.
erlandsona has joined #nixos
<dhess`> so it's all Haskell.
<dhess`> err well, there are client bits, too, but nothing that runs in a web browser.
johnw has joined #nixos
<erlandsona> dhess`: Am I one of only a few people who want to do web development with Nix? Or do I just not know enough about the nix language to understand how to properly setup a project? I feel like Nix is getting in the way not helping :/ I'm confused.
deepfire` has joined #nixos
koserge has joined #nixos
erlandsona_ has quit [(Ping timeout: 246 seconds)]
shawndomniti has joined #nixos
<dhess`> erlandsona: clearly not! Take a look at the slideshare presentation I linked to.
<dhess`> erlandsona: Nix *will* just get in the way... at first. It takes time. Don't get frustrated. You'll appreciate it once you understand it better. Then it will get *out* of the way.
YellowOnion_ has joined #nixos
<dhess`> erlandsona: start simple. Deploy a braindead node project with it first. Get that working, understand how it works. Then start adding new concepts (like precompiled binaries) one by one
<dhess`> erlandsona: Nix is not easy, like most powerful tools. But once you get it, it's awesome! Worth the payoff.