<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)]
<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)
<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
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
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>
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:
<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)
<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
<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 :)
<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)]
<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...
<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>
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
__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
<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
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>
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..
<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
<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...
<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
<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
<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
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
<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
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
<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>
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.
<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: 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...
<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?
<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
<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
<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"
<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.. ?
<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
<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...
<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.
<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.