i-am-the-slime has quit [Ping timeout: 256 seconds]
alexteves has quit [Ping timeout: 256 seconds]
LangeOortjes has quit [Ping timeout: 246 seconds]
ambro718 has quit [Ping timeout: 256 seconds]
LangeOortjes has joined #nixos
<catern>
hmm, this is kind of tricky
<catern>
how should I perform protocol dissection of a stateful protocol, given that I want to reuse most of my dissector implementation for actually implementing a client and server for the protocol?
<catern>
(the protocol in question is the nix-daemon protocol but nevermind that :))
cole has joined #nixos
cole has quit [Client Quit]
AluisioASG has quit [Remote host closed the connection]
cole has joined #nixos
AluisioASG has joined #nixos
cole has quit [Client Quit]
cole has joined #nixos
cole has quit [Client Quit]
cole has joined #nixos
<catern>
protocol *dissection* naturally has a single state machine covering both the client and the server, whereas protocol *implementation* naturally has two separate state machines for the client and the server
cole has quit [Client Quit]
colescott has joined #nixos
<infinisil>
catern: so you have an implementation for a statemachine that includes both server and client and you want to split that into seperate parts for each?
MichaelRaskin has quit [Ping timeout: 260 seconds]
<infinisil>
or rather specification instead of implementation
rardiol1 has joined #nixos
<catern>
infinisil: right
Thra11 has quit [Ping timeout: 256 seconds]
Thra11 has joined #nixos
<catern>
infinisil: though it's pretty primitive at the moment so you might as well think about it as, I have state machines for server and client and want to combine them into a dissector
pkill9 has quit [Ping timeout: 255 seconds]
<infinisil>
catern: wait im confused by the terminology here, a dissector is a separation of the state machine or a combination of two?
<infinisil>
dissector sounds like separating something, but you said you want to combine them
<infinisil>
I'm sure there's an algorithm for it btw
<catern>
a combination. a protocol dissector is just something that looks at a dump of a client and server speaking a protocol to each other, and figures out what was going on
Thra11 has quit [Quit: IRC for Sailfish 0.9]
patrl has joined #nixos
patrl has quit [Client Quit]
stephenjudkins has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
fyuuri has quit [Ping timeout: 256 seconds]
asuryawanshi has joined #nixos
viric has quit [Read error: Connection reset by peer]
Drakonis has quit [Read error: Connection reset by peer]
<fenton>
trying to wrap my head around what is nix-shell... I've got a pure nixos install... is a nixshell an ephemeral thing?
<samueldr>
fenton: I personally would recommend using nix-shell for development tools, if only to allow using different version of the tools for different projects
<fenton>
or a way for a local user to setup a per user environment?
<samueldr>
it can be an ephemeral thing
<concatime>
I'm using nix-shell to test packages before actually installing them inside the user.
<samueldr>
`nix-shell -p htop` will download htop and drop you in a shell with htop added to your PATH (and other environment variables as needed)
<fenton>
i'd like to use nixos as a server for hosting my clojure development... so i'm okay for installs to become fully global... so dont want an ephemeral thing...
<samueldr>
using a shell.nix or default.nix file, it is possible to describe what a nix-shell should use when called
<fenton>
ok
<fenton>
i'd also like to build some packages for software that doesn't seem to be in the repository...like the datomic database... struggling with putting that together :|
<samueldr>
definitely, one step at a time :)
<fenton>
i'd love to see some newb friendly cookbook style (by example) tutorials or blogs on that subject...
<fenton>
went through the nix pills...
<concatime>
Looking at configuration file of other people helps alot.
<fenton>
@concatime not for creating packages tho, right?
<fenton>
containers seem very awesome tho!
<fenton>
haven't managed to 'bridge'? (share) my eth/wlp card to have two independent IPs on the same machine... only got port forwarding working so port 22->2222 kind of thing...sharing IP...would love to see a config.nix that shows how to create 2 IPs so dont need to muck around with port forwarding...
<fenton>
is there a place to search peoples configs? would love to browse them or something... i've been just searching github up to now mostly.
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
notdaniel has quit [Ping timeout: 276 seconds]
johnazoidberg[m] has joined #nixos
zapatek has joined #nixos
concatime has quit [Quit: Page closed]
<adisbladis>
fenton: I always suggest all development tooling like node should be handled in nix-shell
<angerman>
how can I set https://github.com/NixOS/nixpkgs/blob/release-17.09/nixos/modules/system/boot/modprobe.nix#L57 to "", without having to set `isContainer`? `config.system.activationScripts.modprobe = "";` results in complaints: `Module `:anon-2:anon-1' has an unsupported attribute `boot'. This is caused by assignments to the top-level attributes `config' or `options'.`
<angerman>
the issue being that I don't as a container on nixOS, but as a xen domU guest with an external kernel.
<angerman>
as such I don't have modprobe and the activation will just fail: `/proc/sys/kernel/modprobe: No such file or directory`
<fenton>
adisbladis: ok... i'll keep that in mind.
<angerman>
And setting `isContainer` is changing too much.
<NixOS_GitHub>
[nixpkgs] angerman opened pull request #33922: Adds support xen domU lightweight containers (master...feature/xen-domU-pv-kernel-support) https://git.io/vNlJS
NixOS_GitHub has left #nixos [#nixos]
asuryawanshi has quit [Ping timeout: 255 seconds]
<angerman>
let's hope someone else finds this useful.
rotaerk has joined #nixos
zzamboni has joined #nixos
asuryawanshi has joined #nixos
MP2E has joined #nixos
MercurialAlchemi has joined #nixos
zzamboni has quit [Remote host closed the connection]
<dhess>
danl1240: what I do in my overlays is set emacs = super.emacs25Macport, that way anything that refers to emacs, I get the Mac port. I dunno if that helps in your case.
<dhess>
once you get a basic overlay working, then you can just import that repo's default.nix
<danl1240>
nooo anything but the manual :D
<dhess>
I don't recommend that, though. I change a bunch of stuff for my own needs. Easier just to create your own overlay and then just add `emacs = self.emacs25Macport' to it
<dhess>
overlays are dead simple
cinimod has joined #nixos
hamishmack has joined #nixos
danl1240 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rauno has joined #nixos
Itkovian has joined #nixos
<rauno>
Hi, just in case reasking yesterday's question: any idea if there's a chance of getting teaming working on nixos? bonding works but teaming has some new feature i would like to use..
stephenjudkins has quit [Ping timeout: 265 seconds]
bpa has joined #nixos
jensens has joined #nixos
asuryawanshi has joined #nixos
civodul has joined #nixos
<srhb>
Hurr. Any psychic debuggers on the line? I'm trying to use optparse-applicatives bash completion with a shell hook, but I get "bash: compgen: command not found" when I use the action completer
<srhb>
I'm probably missing something obvious.
asuryawanshi has quit [Ping timeout: 264 seconds]
<tilpner>
srhb - Make sure to use bashInteractive, not bash
<tilpner>
Or bashCompletion/bash-completion maybe
sigmundv_ has joined #nixos
<srhb>
tilpner: Isn't bashInteractive the default for nix-shell?
<cinimod>
mpickering: it seems to be a bug in the version of the cabal parser that nix uses
dbe_ has joined #nixos
<cinimod>
If I have `extra-lib-dirs: /vsr/local/lib/openblas/lib` then building starts
<cinimod>
but one letter different `extra-lib-dirs: /usr/local/lib/openblas/lib` and I get the error `Setup: hmatrix.cabal:137: 'then' branch of 'if' is empty`
<cinimod>
And `/vsr` does *not* even exist!
<cinimod>
I bet this only happens on OSX
fyuuri has joined #nixos
kochev has quit [Ping timeout: 256 seconds]
<cinimod>
Is there a way of using a different cabal?
<tilpner>
playX - All we can do with that, is read out the error message. We can't tell you why there's a set in buildInputs without seeing development-env
<playX>
I fixed that problem
<playX>
get another, gopath set to goroot
<playX>
how i can fix that in nix-shell?
<tilpner>
I don't understand that problem description
<playX>
package github.com/mattn/go-gtk/gtk: cannot download, $GOPATH must not be set to $GOROOT. For more details see: 'go help gopath'
<playX>
both set to /nix-store/*-go-1-9-2/share/go
romildo has joined #nixos
aarvar has quit [Ping timeout: 248 seconds]
<romildo>
Is the manual for unstable nixpkgs available for reading online?
<tilpner>
I have not developed in Go with Nix yet, and I never heard of GOROOT. You could try just setting GOPATH=$HOME/dev/go or something, but I'm just guessing
<srhb>
What exactly are the outputs included with nix-copy-closure --include-outputs? WHen I try to copy a drv without outputs and then copying the result of nix-store --realise (that.drv), it's distinctly different (and a lot smaller) than the closure of nix-copy-closure --include-outputs (that.drv)
<srhb>
romildo: hydra builds it.
<romildo>
srhb, what is its link?
<srhb>
romildo: Well, I suppose that depends on the exact version you want.
Itkovia__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Itkovian has joined #nixos
i-am-the-slime has quit [Ping timeout: 276 seconds]
Itkovian has quit [Client Quit]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] thefloweringash opened pull request #33934: kindlegen: Use unzip where necessary (master...kindlegen-unzip) https://git.io/vNlwy
NixOS_GitHub has left #nixos [#nixos]
<tilpner>
nixos-rebuild switch is erroring with "Failed to start local-fs.target: Unit boot.mount is masked." for me. Does this look familiar to anyone?
civodul has quit [Ping timeout: 256 seconds]
babyflakes has quit [Quit: Connection closed for inactivity]
Itkovian has joined #nixos
<tilpner>
(mog maybe?)
fgaz has quit [Ping timeout: 240 seconds]
nckx has quit [Ping timeout: 256 seconds]
the-kenny has quit [Ping timeout: 248 seconds]
nckx has joined #nixos
mr_sm1th has quit [Ping timeout: 256 seconds]
nckx has quit [Remote host closed the connection]
marek has quit [Remote host closed the connection]
marek has joined #nixos
nckx has joined #nixos
<asdasdas>
have anyone problem with no languages in kde localization settings?
<asdasdas>
regional settings
<asdasdas>
i think its paths problem
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vNlom
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vNlKQ
<NixOS_GitHub>
nixpkgs/master 0239333 adisbladis: Merge pull request #33935 from bkchr/fix_plasma_vault...
NixOS_GitHub has left #nixos [#nixos]
the-kenny has joined #nixos
Itkovian has joined #nixos
bfrog has quit [Ping timeout: 276 seconds]
playX has quit [Quit: Page closed]
bkchr has quit [Ping timeout: 256 seconds]
<Aleksejs>
Can someone help me with wifi printer setup? I've installed cups and avahi, enabled printing and nssmdns, printer is discoverable. Printing doesn't worh via any protocol but http, and when I use http it prints raw data. From other linux PCs printer works using socket://address
i-am-the-slime has joined #nixos
randomstrangerb has quit [Ping timeout: 248 seconds]
randomstrangerb has joined #nixos
knupfer has quit [Ping timeout: 255 seconds]
nuncanada has joined #nixos
civodul has joined #nixos
<samueldr>
Aleksejs: for at least brother printers, in my recent experience, you may need to package the cupswrapper and ppd/lpd drivers
<samueldr>
that's what I had to learn the hard way yesterday
<Mic92>
Did somebody boot successfully nixos on a rock64?
<Mic92>
*aarch64 board
<Mic92>
I will give it a shot tonight.
<cinimod>
> So I think you need to use lib.overrideDerivation to change the preConfigure
<gchristensen>
Mic92: yep, several :) #nixos-aarch64 has a collection of people who do it
<cinimod>
My nix beginner experience is a baptism of fire
<lassulus>
I installed nixos in aarch64 3 days ago, everything worked fine
<Mic92>
gchristensen: mhm. I mean rock64 is a special kind of an aarch64 board.
__monty__ has joined #nixos
<__monty__>
Ok so I have a remote build server set up which also proxies the binary cache. It works great but there's one annoying step in the process where between getting everything from the cache (and therefore it being on the remote machine) and building it remotely the local nix has to copy over all the derivations necessary for the build. Is there a way to get the remote to get them from the cache instead,
<__monty__>
since they're already on the remote machine really?
<Mic92>
adisbladis: looks like there is not much to do left.
<Mic92>
maybe adding this kernel to nixpkgs itself.
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ij>
Can I use windows' NTFS /boot partition for grub?
<makefu>
wow regarding rock64, this is pretty neat. maybe we can add this to the wiki :)
asdasdas has quit [Quit: Page closed]
<samueldr>
Mic92: rock64 no, but aarch64 has at least 3 devices working
<samueldr>
oh, I should've read the whole log first
rauno has quit [Ping timeout: 264 seconds]
<fearlessKim[m]>
let's say in my builder I want to run `luarocks --verbose` instead of `luarocks` when NIX_DEBUG > X. should I do `luarocks $VERBOSE` and define VERBOSE accordingly ?
<hoverbear>
🤔 Is the nixos cache really slow for anyone else?
<etu>
ij: If you mean the ESP with UEFI created by windows, it works perfectly with systemd-boot. The other entries is added automaticly.
<mpickering>
cinimod, there is another override you are modding in "configuration.nix"
<gchristensen>
!cloudfront
ryantrinkle has quit [Ping timeout: 265 seconds]
reinhardt has quit [Quit: Leaving]
Itkovian has joined #nixos
<ij>
etu: No, this machine doesn't do UEFI, I think.
<yegortimoshenko>
gchristensen: (back here)
pmade has joined #nixos
<woffs>
cache.nixos.org sucks through very thin straws atm
<azazel>
hoverbear: thanks, I'm trying to understand why some package which is a service has not a corresponding services.foo.enable and how to work around it
<kreisys>
why can't they run though? everything builds happily remotely except for the last derivation which I believe is supposed to start the vbox vm?
<hoverbear>
azazel: May I ask which?
<azazel>
hoverbear: 389 ldap server
<azazel>
package...let me see
<azazel>
389-ds-base?
<gchristensen>
azazel: you can make your own module
danl1240 has joined #nixos
babyflakes has joined #nixos
<azazel>
gchristensen: yes, any distro with decent package management allows you to do that ;-)
<gchristensen>
azazel: a "module" in nixos terms means a service
<gchristensen>
so you could make your own services.my389service.enable
alexteves_ has joined #nixos
<azazel>
gchristensen: I'm really a NixOS newbie coming from 20 years of debian, can you point me to a recipe?
<gchristensen>
unfortunately I can't right now, but perhaps someone else can :)
pxc has quit [Ping timeout: 276 seconds]
alexteves has quit [Ping timeout: 240 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hoverbear>
azazel: I am also really interested in this
<azazel>
also, with nixos packages i'm really missing something equivalent to README.Debian that maybe explains how to use the package or gives a reason for certain "design" choices regarding the package
<azazel>
but that is a surplus
FRidh has joined #nixos
<hoverbear>
azazel: In my experience so far with NixOS I think a lot of it is lack of people bandwidth. Eg configuring VIM with a custom config is quite easy but configuring bash with a custom bashrc isn't.
<kreisys>
azazel: as hoverbear pointed out, what you're looking for is https://nixos.org/nixos/options.html#systemd.services. you set these options in /etc/nixos/configuration.nix
<kreisys>
When there's no services.someservice.enable option it means that nobody implemented that yet
<kreisys>
the way to implement a service involves among other things defining those systemd services using the aforementioned options
<azazel>
kreisys, hoverbear: thanks for that option
<kreisys>
configuration.nix is actually itself a module
<hoverbear>
ooooo
<kreisys>
so once you're happy with the way your service is configured you can actually factor the relevant bits out of configuration.nix and create a new module.
<symphorien>
azazel: and coming from debian, there is something it took me too long to understand is that a nixpkgs is only a bunch of binaries put in the PATH, it never adds functionnality like services on its own
<__monty__>
symphorien: nixpkgs doesn't contain any binaries.
<azazel>
kreisys: oh, thanks for that, but you posted the same url two times? am I right? maybe the second is wrong?
<symphorien>
sorry: a package in nixpkgs*
<kreisys>
oh lol I reposted what symphorien did
<kreisys>
I haven't noticed he beat me to it
<azazel>
oh, sorry for the confusion
<kreisys>
I find that the most difficult thing to grasp is that nixpkgs/os does extensive use of what's called "fixed-point"
krey has joined #nixos
<kreisys>
where things depend on each other in what may seem like a circular manner
danl1240 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<azazel>
mmm, I'm not sure what you mean, but maybe it's a result of nix language lazyness
leat has quit [Quit: WeeChat 1.9.1]
jcbrand_ has left #nixos [#nixos]
<kreisys>
So specifically in nixos, /etc/nixos/configuration.nix defines a function, one of whose arguments is 'config'
Itkovian has joined #nixos
<kreisys>
What's confusing here is basically "why is my config function getting its own result?!"
<azazel>
also, the "automatic merging" of certain types of attributes took me a while to grasp it, even if it's explained in the manual
<__monty__>
kreisys: Having a config argument doesn't mean it's passed itself though. Could be passed a default config.
<azazel>
I wonder why the nixpkgs manual isnt on the support page together the others
oida has quit [Quit: WeeChat 1.6]
<kreisys>
__monty__: I now know that it's the aggregated options from all modules. but when I was starting out it was pretty confusing.
iyzsong has quit [Ping timeout: 276 seconds]
<kreisys>
Anyways getting your head around all those things is quite a process and there aren't many getting started guides or tutorials that hold your hand from the ground up
<kreisys>
so you need to be quite motivated to learn this. I got my motivation from the fact that with all other tools so far I've been constantly hitting every single issue that the nix ecosystem solves (and does so pretty elegantly). so I feel it's definitely worth the dive-in and the time investment
oida has joined #nixos
<das-g[m]>
https://nixos.org/nixos/nix-pills/ seems quite approachable, but it's very lengthy and covers not just the Nix language but also the Nix package manager and guides you through packaging stuff for it.
orivej has quit [Ping timeout: 248 seconds]
<kreisys>
oh yeah definitely read the nix pillsd
<kreisys>
s/pillsd/pills
<__monty__>
Recently got to experience what it's like to be in a shitty situation and not have rollback. Let's just say I'm convinced of the utility.
<azazel>
yes, I skimmed thru all them like the manual before starting the installation, now I'm gradually coming back to them
<azazel>
__monty__: and no backup, I immagine :-P
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jack[m]>
Ouch. They hydra evaluator was using 256GiB of ram.
<jack[m]>
s/They/The/
<sphalerite>
jack: actually using it? or had it just allocated it?
i-am-the-slime has joined #nixos
randomstrangerb has quit [Ping timeout: 256 seconds]
<azazel>
my second goal is to understand if/how nix can help in developing software in a team accustomed to using docker, maybe the nix docker image can come handy
randomstrangerb has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vNlNl
<kreisys>
azazel: it's super helpful for development! you can use nix-shell to get a 100% reproducible development environment across the board. it's useful even if that's the only thing you end up doing with nix
i-am-the-slime has quit [Ping timeout: 276 seconds]
hakujin has joined #nixos
jb55 has joined #nixos
i-am-the-slime has joined #nixos
ma27 has joined #nixos
<cement>
my coworker wrote a shell.nix, I just merged it into the branch I'm working on... and nix-shell gives me an error
<fpletz>
woffs: currently not, I'm gonna announce it soon and also provide ways to set up own mirrors privately or in the mirror pool rotation
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg force-pushed unstable-aarch64 from 21540a9 to 822c949: https://git.io/vSSlm
NixOS_GitHub has left #nixos [#nixos]
<fpletz>
woffs: if you want to know something, just ask :)
alasi has joined #nixos
<srhb>
Any idea how to get closer to debugging: hydra-evaluator[1764]: error: syntax error, unexpected '}', expecting '.' or '=', at (string):1:16
<kreisys>
Well it is still possible to have impurities. It's useful to test the shell.nix file with the --pure flag during development and it's also a good idea to peg a specific revision of nixpkgs instead of relying of NIX_PATH (otherwise it may vary between systems)
<srhb>
(string) is hard to get at :-)
<kreisys>
cement: ^^^
Itkovian has joined #nixos
<cement>
didn't know about --pure
<cement>
I'll have to let our "ops" guy know
<kreisys>
Yeah when you run nix-shell you still have access to locally installed packages because PATH isn't cleared by default. It makes sense because people want to use their preferred editor etc
<kreisys>
but when you develop a shell.nix file you might make assumptions that are only correct on your current system (such as the presence of a gcc compiler etc)
Itkovian has quit [Read error: Connection reset by peer]
<Isorkin>
Mic92: please check this PR 32885 and PR 33887
<kreisys>
I hope that makes sense :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] esoeylemez opened pull request #33941: perlPackages.MailPOP3Client: init at 2.19 (master...ertes-perl-pop3) https://git.io/vNlh8
NixOS_GitHub has left #nixos [#nixos]
ryanartecona has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] yegortimoshenko pushed 1 new commit to master: https://git.io/vNlhw
<woffs>
fpletz: I would like to know what's behind that cache. Is it another hydra? And is it a company? And I'd like to have a configuration example including public key. But not urgently, just for fun and taking interest :-)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] andsild opened pull request #33942: Add and update vim plugins (master...add_vim_plugins) https://git.io/vNlhX
NixOS_GitHub has left #nixos [#nixos]
i-am-the-slime has quit [Ping timeout: 255 seconds]
ryantrinkle has joined #nixos
samae has quit [Read error: Connection reset by peer]
jtojnar has quit [Remote host closed the connection]
<jmc>
This might be a really stupid question, but how do I install spotify? I see there's a derivation for it on github, but it doesn't appear in nix-env -qaP.
<nixy>
Be default Nix will only show you packages with a free license which is why it won't show up
<NixOS_GitHub>
nix/master d4dcffd Eelco Dolstra: Add pure evaluation mode...
NixOS_GitHub has left #nixos [#nixos]
nix-gsc-io`bot has quit [Client Quit]
amir has joined #nixos
kier has quit [Remote host closed the connection]
kier has joined #nixos
jensens has quit [Ping timeout: 268 seconds]
stphrolland has joined #nixos
bkchr has joined #nixos
<stphrolland>
Hi ! Just wondering, I read the other day that the Meltdown and Spectre fix was in test on the nixos-17.09. Do you know if it has been validated and put in the channel update ?
<srhb>
srid: For what it's worth, I use a t470p at work, which I believe is fairly similar.
<srhb>
stphrolland: The kernel is patched and I believe we're shipping the firmware upgrade as well.
m15k has joined #nixos
yegle has quit [Quit: WeeChat 2.0]
<stphrolland>
srbh: do you mean, the firware update for the CPU ?
<srhb>
stphrolland: Yeah, the microcode. But looking at the commit log now, I don't see it in nixos-17.09 yet.
<stphrolland>
srbh: that means that the CPU can be updated by Linux ? I never thought about that !
<srhb>
stphrolland: Oh, there it is. ea1cf952861bbf03b3a4c29c4050a943dd73ffbc
<samueldr>
was it with 20180108?
<srhb>
stphrolland: Yes, there's an option to enable though.
<__monty__>
stphrolland: Spectre isn't fixed and will likely never be completely fixed.
<samueldr>
some variants of spectre are to be mitigated in software
<samueldr>
chrome 64 will ship with mitigations in place
<samueldr>
63 has a flag that can be used to enable the feature
<__monty__>
samueldr: Yes. Calling that a fix is misleading at best however.
<samueldr>
mitigation
<samueldr>
I mean, that's something that can't be fixed
<__monty__>
Exactly, and yet I see people in tons of channels asking "So spectre's fixed in XYZ version something.very.recent, right?"
astrofog has joined #nixos
<srhb>
I'll wager that most people here mentally substitute mitigation for fix, it's my experience that people are quite well-informed in #nixos.
<srhb>
Still, the disclaimer doesn't hurt.
yegle has joined #nixos
<__monty__>
Costs me nothing to mention it.
<gchristensen>
definitely true
bkchr has quit [Ping timeout: 256 seconds]
fyuuri has quit [Ping timeout: 255 seconds]
stphrolland has quit [Ping timeout: 256 seconds]
kreisys has joined #nixos
Mateon2 has joined #nixos
astrofog has quit [Quit: Quite]
Itkovian has joined #nixos
bkchr has joined #nixos
<marek>
what is the best way to populate a folder from a git repository (in configuration.nix)?
<srhb>
marek: When you say "a folder" did you mean something out of the nix store?
<srhb>
marek: If *in*-store, fetchgit, fetchFromGitHub etc. are all likely candidates.
simendsjo has joined #nixos
<marek>
srhb: yes, outside, I have a website stored in git and I would like to have the content of it land in /var/www, for example
<marek>
I could use a cronjob or something, but I'm sure there is a nicer way with nixos :)
<srhb>
If outside the store, I think we need more information on the desired destination or use-case. In general, there's no tools [that I know of] that do this, but you could hack something up with a systemd unit that links it in place.
<srhb>
marek: If you just want to serve it, I'd instead have the web server serve the generated path of the fetched git repo from the nix store directly, if at all possible.
<srhb>
That's usually trivial.
<srhb>
That is, service.foo.webroot = pkgs.fetchFromGitHub { ...
ma27 has quit [Ping timeout: 256 seconds]
<marek>
srhb: so that would actually make my website a package?
<marek>
stored in the nixstore?
<srhb>
marek: Essentially yes. :)
<marek>
with rollback and everything
<srhb>
A very trivial package (the result of fetchFromGitHub)
<srhb>
Right.
<marek>
damn, I love nixos more and more each day
coot____ has quit [Remote host closed the connection]
<srhb>
Right, I was pretty blown away when I did something like this the first time. :-)
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<simpson>
`/bu31
<simpson>
...Thanks SSH.
<srhb>
Note that it does (probably) incur a restart whenever you change the website revision, since the nginx or whatever service will now depend on that path.
xcmw has joined #nixos
bpa has quit [Read error: Connection reset by peer]
coot____ has joined #nixos
<simpson>
Anyway, hi. Has anybody else had the mad-science idea of generating k8s expressions with Nix?
civodul has quit [Remote host closed the connection]
civodul has joined #nixos
<simpson>
Okay, sweet, I'll take a closer look. Thanks.
rardiol1 has quit [Ping timeout: 260 seconds]
MichaelRaskin has joined #nixos
oida has quit [Ping timeout: 256 seconds]
alexteves has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill closed pull request #33377: llvm: differentiate manpage builds, use recurseintoattrs to build and cache contents (master...feature/llvm-recurseintoattrs) https://git.io/vbjba
NixOS_GitHub has left #nixos [#nixos]
Judson has joined #nixos
bpa has quit [Read error: Connection reset by peer]
bpa has joined #nixos
<Judson>
Having a problem with a Nix Maven build: Could not create local repository at /var/empty/.m2/repository
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 3 new commits to unstable-aarch64: https://git.io/vN80P
<NixOS_GitHub>
nixpkgs/unstable-aarch64 905fb77 Tuomas Tynkkynen: nixos/release.nix: Clean some syntax
<NixOS_GitHub>
nixpkgs/unstable-aarch64 294d26c Tuomas Tynkkynen: nixos/release.nix: More refactoring for multi-arch...
<NixOS_GitHub>
nixpkgs/unstable-aarch64 8b8120a Tuomas Tynkkynen: nixos/release.nix: Add preferLocalBuild to makeNetboot result
NixOS_GitHub has left #nixos [#nixos]
fuyuuri has quit [Ping timeout: 256 seconds]
bkchr has quit [Ping timeout: 256 seconds]
<marek>
srhb: it works, I'm speachless. :) thank you so much
<srhb>
marek: Nice! :D
verite has quit [Ping timeout: 268 seconds]
swayf_ has quit [Remote host closed the connection]
swayf has joined #nixos
oida has joined #nixos
ZaraChimera has quit [Quit: Leaving]
swayf has quit [Ping timeout: 265 seconds]
i-am-the-slime has joined #nixos
bkchr has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jtojnar pushed 2 new commits to master: https://git.io/vN8uK
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master ac16ec6 Jan Tojnar: bustle: add top-level alias
<NixOS_GitHub>
nixpkgs/master f908f65 Jan Tojnar: uuagc: add static executable from haskellPackages
patrl has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 3 new commits to master: https://git.io/vN8uy
<NixOS_GitHub>
nixpkgs/master 6c1277a Erik Schnetter: julia: 0.6.0 -> 0.6.2
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master a12ba70 Michael Raskin: Merge pull request #33945 from eschnett/eschnett/julia-0.6.2...
<NixOS_GitHub>
nixpkgs/master 847db60 Michael Raskin: julia: 0.6.0 -> 0.6.2
<kreisys>
Does anyone know whether nixops requires a specific version of virtualbox? seems like it's failing with the latest 5.2.6
bpa has quit [Read error: Connection reset by peer]
leat has joined #nixos
ma27 has joined #nixos
bpa has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #33948: {llvm,clang}-{4,5}: don't rebuild entire projects just to get manpages (master...feature/llvm-manpages-slim) https://git.io/vN8zs
NixOS_GitHub has left #nixos [#nixos]
bkchr has quit [Ping timeout: 256 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aborsu has quit [Quit: aborsu]
ryantrinkle has quit [Ping timeout: 256 seconds]
kuznero has joined #nixos
<kuznero>
Hi All!
patrl has quit [Quit: WeeChat 1.9.1]
<kuznero>
I am trying to upgrade kubernetes and kubecfg packages in nixpkgs. It seems to be working fine so that I can install it. How can I run existing tests for it and how can I check that I didn't break anything?
rokka has joined #nixos
aborsu has joined #nixos
aborsu has quit [Remote host closed the connection]
<kuznero>
I guess I could just submit another PR and see if it builds, but it would be nice to be able to test it before submitting...
aborsu has joined #nixos
Itkovian has joined #nixos
bkchr has joined #nixos
<rokka>
how to solve the problem, that alsa-firmware needs to be in the same folder as alsa, or better to say the same nix package instance? since alsa-firemware and alsa are two differtent packs they get different store instances, and the store is read only so no symlink or copy whatever. i just started having fun with nixos only a few days ago, so its probaly a newbish misconfiguration.
<jack[m]>
rokka; firwmare is typically used by kernel drivers when they are loaded.
<jack[m]>
rokka: so nixos configures modprobe to look at /run/current-system/firmware/ for firmware.
<rokka>
its for an rme soundcard which needs its own hdsploader from alsa-tools,
ThatDocsLady_ has joined #nixos
kuznero has quit [Quit: WeeChat 1.9.1]
<rokka>
hdsploader looks for the firmware in the alsa directroy where alsa-firmware should have installed the matching one, sadly hdsploader doenst have ANY cli arguments
bpa has quit [Read error: Connection reset by peer]
<jack[m]>
rokka: Hmm. 2 options: patch the tool to load the firmware from an environment variable. Install alsa-firmware and alsa into the same derivation.
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 3 new commits to release-17.09: https://git.io/vN8Vw
<NixOS_GitHub>
nixpkgs/release-17.09 855fbf5 Alain Lehmann: perlPackages.MacPasteboard: init at 0.009...
<NixOS_GitHub>
nixpkgs/release-17.09 74808b2 Alain Lehmann: perlPackages.Clipboard: Fix darwin build...
<NixOS_GitHub>
nixpkgs/release-17.09 96fece0 Alain Lehmann: kpcli: Fix darwin build...
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 opened pull request #33953: clang: patch cmake files for lib output (staging...clang-lib-cmake) https://git.io/vN8VS
NixOS_GitHub has left #nixos [#nixos]
oida has quit [Quit: WeeChat 1.6]
Thra11 has joined #nixos
MP2E has joined #nixos
bpa has quit [Read error: Connection reset by peer]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 60468bf Rob Vermaas: scitkitlearn: disable doctests on darwin as they are known to be broken there for this version.
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 1 new commit to master: https://git.io/vN8rY
NixOS_GitHub has left #nixos [#nixos]
Kingsquee has joined #nixos
bpa has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rbvermaa pushed 1 new commit to master: https://git.io/vN8rC
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master b62c601 Rob Vermaas: werkzeug: disable one test on darwin.
tput has joined #nixos
ZaraChimera has joined #nixos
ZaraChimera has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master f2f4d7a Anders Sildnes: vim-plugins/Syntastic: 2017 -> 2018
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 5eb58fb Anders Sildnes: vim-plugins/autopairs init
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 27 new commits to master: https://git.io/vN8ro
<NixOS_GitHub>
nixpkgs/master bb2bbe4 Anders Sildnes: vim-plugins/Cosco init
rokka has quit [Quit: WeeChat 2.0.1]
mrkgnao has quit [Ping timeout: 265 seconds]
bpa has quit [Read error: Connection reset by peer]
<tput>
I'm learning to package things for nix. I haven't managed to successfully build anything which depends on qt. I'm beyond direct instruction at the moment (too burned out for good questions), but I
bpa has joined #nixos
<tput>
cont. 'd be grateful if anyone could point me towards a simple package depending on qt for me to learn from
ryantrinkle has joined #nixos
dan_b has joined #nixos
ckauhaus has quit [Quit: Leaving.]
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to staging: https://git.io/vN8Kv
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/staging 2e56ba6 Tuomas Tynkkynen: Merge remote-tracking branch 'upstream/master' into staging
<gchristensen>
wow there has been a lot of github activity today
<srhb>
gchristensen: #itshappenning
<ma27>
gchristensen: impressive, with each day we're moving another step towards world domination :p
<gchristensen>
my ofborg evaluator machine is uh... backlogged
<MichaelRaskin>
ma27: how do you know whether the movement is towards world domination or towards a bottleneck disaster?
<gchristensen>
MichaelRaskin: like most projects, we're running as fast as possible to both, and must hope we figure out how to avoid the disaster part to get to the domination part
<srhb>
Or, since it's the software business, make the disaster happen and pretend it's all good.
<gchristensen>
now you're cooking with marketing/management gas, srhb
<srhb>
\o/
<MichaelRaskin>
Also, we have a limit on expansion: I think we cannot grow without growing the mindshare, and this limits us to people who actually apply mind to the computer.
<MichaelRaskin>
And judging form The Screenshot Of The Week, 100% mindshare corresponds to a very small marketshare!
Isorkin has quit [Ping timeout: 248 seconds]
<MP2E>
I keep meaning to A) communicate more and B) contribute more. But I end up just doing my own thing and merging things into master whenever they get done, heh
<MP2E>
bet i'm not the only one :P
<gchristensen>
MichaelRaskin: whats thaht?
<MichaelRaskin>
The Hawaii screenshot.
Guanin has quit [Ping timeout: 248 seconds]
<srhb>
I think the usability is great. The rule should just have been to not click the blue links.
<srhb>
Someone clearly missed the memo.
<gchristensen>
oh my yes
<srhb>
MP2E: Yeah, definitely not. :-)
<MichaelRaskin>
srhb: in reality, incoming _ballistic_ missile alert by definition should come with an ET…A
<srhb>
LOL
<srhb>
That's.. dark.. But yes.
ryanartecona has quit [Quit: ryanartecona]
<MichaelRaskin>
Note that it makes it impossible to send without typing a meaningful number
Thra11 has quit [Quit: IRC for Sailfish 0.9]
<srhb>
Noted. ;)
<MichaelRaskin>
OK, typing or explicitly confirming the lack of number. Still, confirmation dialog
<ocharles>
awesome! I'm doing something similar to Guix I think, but trying to use Dhall as my source language. Do you generate .drv's from scratch in Guix, without calling into libnix or forking nix binaries?
<gchristensen>
ocharles: aw bummer :(
ZaraChimera has left #nixos ["Leaving"]
<ocharles>
gchristensen: yea :( at least the algorithm to base-32-but-not-that-base-32 isn't particularly complicated
<ocharles>
but I wish we wouldn't call it base32
<gchristensen>
ocharles: I mean about doing a nix-like-thing-with-dhall, it is a bit disappointing to lose mindshare
<ocharles>
oh, this is just for my own amusement
<gchristensen>
oh, ok, hack away then :P
<ocharles>
I don't think I have the leadership to pull off what nixpkgs has pulled off
<ocharles>
don't worry
chessai has joined #nixos
<ocharles>
:)
<srhb>
I for one welcome etc. :-P
ZaraChimera has joined #nixos
<ocharles>
plus I wouldn't entirely be happy about reinventing all of that work. If anything we would need a way for the two to talk to each other
* srhb
nods
<ocharles>
i mean, it's all just .drv's, right? :)
<gchristensen>
r...ight :)
<civodul>
ocharles: Dhall looks nice!
<civodul>
ocharles: and yes, the Guix client side is entirely in Scheme
<MichaelRaskin>
gchristensen: do not worry about Dhall-based drv generator. The story of Nix is the story of attempts at denial that Nix ha to be a general-pure-computation-purpose programming language.
<civodul>
heh
* gchristensen
stuffs his head in the sand a bit further
<ocharles>
I just want some flipping types!
<simpson>
I like how Nix is hostile to general-purpose use.
<srhb>
It's nix(pkgs) own fault for conjuring all these Haskellers... :-)
<ocharles>
civodul: in a language I have a better chance of understanding, too
asuryawanshi has quit [Ping timeout: 248 seconds]
coot____ has quit [Quit: coot____]
<simpson>
MichaelRaskin: Good. I see Nix as an important transitional technology; we shouldn't get too comfortable with it, but we should use it as a lever to pull ourselves out of the muck.
<srhb>
Was it tweag.io that did some gradual typing stuff?
<MichaelRaskin>
simpson: I expect it to gain enough data-crunching capabilities over time to stop being hostile.
<srhb>
It was.
knupfer has quit [Remote host closed the connection]
<simpson>
But why bother when jq is already a thing?
knupfer has joined #nixos
<srhb>
:|
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to staging: https://git.io/vN8Pd
<NixOS_GitHub>
nixpkgs/staging f7c7dec Daiderd Jordan: firefox: use libclang
NixOS_GitHub has left #nixos [#nixos]
<ocharles>
simpson: I very much align with that viewpoint
<MichaelRaskin>
I think jq is at most primitively recursive, and Nix has been Turing-complete (or maybe in this case it could be called Church-complete) from day one.
<srhb>
gchristensen: Did the ofborg status endpoint change location? I feel like the gsc.io one is lying to me, but maybe I'm misunderstanding.
Thra11 has joined #nixos
<srhb>
Oh, hm, evaluations did have one in progress.
<MichaelRaskin>
simpson: idea: write a jq alternative that starts simple, gets more and more complicated, then becomes full Javascript (with the previous parts being translated to JS) and admits that it parses the input just by evaluation (mwa-ha-ha). Counterpoint: shouldn't do that, there is a risk that people start using it.
aarvar has joined #nixos
<boegel>
hmm, when I install FFTW with nix-env -i 'fftw-double.*', I can't seem to find the headers (fftw3.h) anywhere... Any ideas what I'm overlooking?
<MichaelRaskin>
I think you need the dev output
<simpson>
MichaelRaskin: This rhymes with the history of JSONP.
<ocharles>
success! I have Haskell code to generate the correct Nix-store output for an arbitrary derivation
<ocharles>
That was only far too much work
* ocharles
tops up his wine and soldiers on
<srhb>
ocharles: :o Nice!
<ocharles>
let base32 = \bytes -> map (\n -> let b = n * 5 in let i = b `div` 8 in let j = b `mod` 8 in let c = ((BS.head (BS.drop (fromIntegral i) bytes)) `shiftR` j) .|. (if fromIntegral i >= BS.length bytes - 1 then 0 else (BS.head (BS.drop (fromIntegral (i + 1)) bytes) `shiftL` (8 - j))) in alphabet !! fromIntegral (c .&. 0x1f)) (reverse [0..32 - 1 :: Int])
<kreisys>
yay tipsy hacking
<ocharles>
You can hardly tell I wrote it in the repl
ChimeraZara has joined #nixos
<ocharles>
you can hardly see the wines influence
<srhb>
No, the beautiful formatting makes it impossible to tell. :-)
<lejonet>
srhb: yeah I saw :P haven't had much time to do stuff on it lately :P
ChimeraZara is now known as ZaraChimera
hhomar has quit [Client Quit]
<srhb>
lejonet: OK! :-)
<elvishjerricco>
Is there an easy way to build all derivations in an attribute set, ignoring values that fail to evaluate or do not evaluate to derivations?
<lejonet>
srhb: got it more or less done, just need to test it now
ZaraChimera has left #nixos ["Leaving"]
ambro718 has quit [Quit: Konversation terminated!]
alex`` has joined #nixos
hhomar has joined #nixos
hhomar has quit [Client Quit]
hiratara has quit [Ping timeout: 276 seconds]
hiratara has joined #nixos
ma27 has quit [Ping timeout: 256 seconds]
Thra11_ has joined #nixos
<boegel>
MichaelRaskin: and how do I grab/install the dev output?
Thra11 has quit [Ping timeout: 265 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/staging 64f730c Daiderd Jordan: ycmd: use libclang
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to staging: https://git.io/vN8y5
NixOS_GitHub has left #nixos [#nixos]
<ocharles>
"error: derivation ‘/nix/store/s80v2hajlnc5fz0sdq6g390jwc0r2lib-test.drv’ has incorrect output ‘/nix/store/a2d4f3h8v9bc103n0fp948va15wf4nxh-test’, should be ‘/nix/store/a2d4f3h8v9bc103n0fp948va15wf4nxh-test’"
<ocharles>
wat.
<MP2E>
o.O
<ocharles>
oh cool, it does that if the derivation doesn't have an "out" environment variable
<ocharles>
I think
<MichaelRaskin>
boegel: -iA fftw.dev
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] nckx pushed 1 new commit to master: https://git.io/vN8SY
<NixOS_GitHub>
nixpkgs/master 0f84673 Tobias Geerinckx-Rice: Remove nckx as a maintainer for all packages...
bkchr has quit [Ping timeout: 256 seconds]
<MichaelRaskin>
Or start using stuff like nix-shell -p fftw
<boegel>
MichaelRaskin: I ran "nix-env -iA fftw.dev" after "nix-env -i 'fftw.*' " ?
alexteves has quit [Remote host closed the connection]
alexteves has joined #nixos
<MichaelRaskin>
For example
<fgaz>
srhb: sorry, my irc client was detached
<boegel>
MichaelRaskin: OK, thanks, I'll give that a shot
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chessai has quit [Ping timeout: 248 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/staging 78f9d80 Daiderd Jordan: irony-server: use libclang
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to staging: https://git.io/vN89k
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex`` has quit [Quit: WeeChat 1.9]
<samueldr>
(I wrote a dumb wrapper to act as command-not-found, but it segfaults bash under some conditions I haven't yet checked, spookily enough)
shabius has joined #nixos
<Dezgeg>
you managed to have infinite recursion maybe?
<samueldr>
it's quite probable
<samueldr>
as I said, didn't look into it, but I think it happened only in pure shells... which might not have nix-shell in path?
<samueldr>
yes, it doesn't
shabius has quit [Client Quit]
ZaraChimera has quit [Quit: Leaving]
<samueldr>
(dumb script uses nix-shell in shebang)
m15k has quit [Quit: Page closed]
shabius has joined #nixos
<justanotheruser>
MichaelRaskin: I mean if I don't have it installed
<MichaelRaskin>
Then as samueldr said, nix-index
shabius has quit [Client Quit]
Thra11_ has quit [Read error: Connection reset by peer]
shabius has joined #nixos
Thra11 has joined #nixos
ryanartecona has joined #nixos
Thra11 has quit [Client Quit]
bpa_ has joined #nixos
<MP2E>
hmm, looks like our Idris package is broken (on nixpkgs master and nixos-unstable), it can't find Prelude. Need to bisect but I'm guessing this is related to the haskell split packages change
FireFly has quit [Quit: Goodbye]
<MP2E>
haskell split packages was a good thing, I just gotta figure out how to fix idris.. hm
<pbogdan>
MP2E: there is an open issue about that
nix-gsc-io`bot has joined #nixos
<MP2E>
oh nice, I should have checked first. Thanks for letting me know!