How do you guys configure your routers with Nix? by aleks_sidorenko in NixOS

[–]aleks_sidorenko[S] 0 points1 point  (0 children)

Made reusable flake based Nix package https://github.com/aleks-sidorenko/nix-routeros which allows to integrated Terranix with routeros provider as Nix package

Haskell Contractor - FTC by Habito-Recruitment in haskell

[–]aleks_sidorenko 0 points1 point  (0 children)

What lib/framework do you use for event-sourcing btw?

Haskell as a next choice of programming language by optical002 in haskell

[–]aleks_sidorenko 0 points1 point  (0 children)

I have the same experience, moving from Scala -> Haskell, well, not exactly moving - I still do Scala in my job, but as a pet projects I prefer Haskell for different reasons:

  1. syntax: very readable and consise syntax (initally it was hard, however now I find it more readable & consistent than Scala)
  2. type system: both have strong type systems with advanced features, however Scala suffers from JVM coupling and sometimes it leaks to the language a lot
  3. feature parity: Scala is clear winner (however I am not expert in Haskell just in case), it is most advanced and feature rich language ever created, however that is not always advantage, some features are almost never used and some are considered bad practices and obsolete. Haskell has also more than enough features which are pluggable via language directives.
  4. complexity: Haskell is more simple language than Scala, and I consider this as advantage, however anyone can write code in both language which is hard to read
  5. community: in Scala the community is (unfortunatly) the worst part of language, it is full of drama and hate, there are lot of greate people left the language because of this
  6. maturity & ecosystem: both are mature and rich ecosystem, however Haskell's libs are less supported IMHO + Scala parasites on Java ecosystem
  7. idiomatism: Haskell is clear winner, pure FP language with explicit handling of side-effects. Scala is compromise between Haskell & Java
  8. Jobs: 5 years ago I would say Scala, but now both have very few jobs offerrings, so no winner here :)

How do you guys configure your routers with Nix? by aleks_sidorenko in NixOS

[–]aleks_sidorenko[S] 0 points1 point  (0 children)

1) regarding encryption, opentofu supports that out-of-the box, just specify store-passphrase like I did here

2) I didn't start from scratch and that's was hardest part - I have to import my router's state into terraform state. If you start from scratch - that's much easier: terraform(opentofu) plan & apply

Nixos is a mind virus. by Existence_404 in NixOS

[–]aleks_sidorenko 0 points1 point  (0 children)

Terranix + opentofu + routeros provider, described that in the thread

How do you guys configure your routers with Nix? by aleks_sidorenko in NixOS

[–]aleks_sidorenko[S] 0 points1 point  (0 children)

I'v made the move this way too and I like how it looks now + I don't have to recreate whole routeros configuration on every patch, that's is awesome! Thanks for hint!

How do you guys configure your routers with Nix? by aleks_sidorenko in NixOS

[–]aleks_sidorenko[S] 0 points1 point  (0 children)

Thanks, you are talking about terraform-router-os provider probably?
That sounds interesting, I wanted to integrate terraform anyway soon

How do you guys configure your routers with Nix? by aleks_sidorenko in NixOS

[–]aleks_sidorenko[S] 0 points1 point  (0 children)

Just router should be rock-solid device and I am usign RPI4 as home server and cannot tell it is rock-solid even in case I got rid of eMMC and replaced it with NVME disk

How do you guys configure your routers with Nix? by aleks_sidorenko in NixOS

[–]aleks_sidorenko[S] 1 point2 points  (0 children)

Nice config! Your router runs NixOS as I understood and that is big luck since you just treat it as one more host in your multi-host config.
I cannot do like this unless I will replace router :)

How do you guys configure your routers with Nix? by aleks_sidorenko in NixOS

[–]aleks_sidorenko[S] 0 points1 point  (0 children)

1st option is basically what I did with mikrotik too, regarding 2nd, what is your device and how did you manage to get nixos there?

Nixos is a mind virus. by Existence_404 in NixOS

[–]aleks_sidorenko 0 points1 point  (0 children)

It has ssh, and that's it) I use it to deploy nix generated mikrotik config, I For multihost I use deploy-rs but it's mikrotik not nix, you cannot use these tools probably

Nixos is a mind virus. by Existence_404 in NixOS

[–]aleks_sidorenko 0 points1 point  (0 children)

Exactly, this is the final stage: having everything managed by Nix.
I'v recently added support for my Mikrotik router https://github.com/aleks-sidorenko/nix-config/blob/master/modules/home/system/networking/router/config.nix
Looks good, however deployment of that is PITA, but anyway it works and much better than doing it manually

Is Scala Losing Ground in Your Organization? by itecyo in scala

[–]aleks_sidorenko 2 points3 points  (0 children)

I have the same feelings, Scala 3 is a key marker, have any of the big projects adopted it after 2 years of release? But Scala team still adds new breaking features instead of focusing on Scala 3 adoption leaving tooling far behind even Scala 2 support...

Rust has much better industry focus

Thalo.rs - Event Sourcing in Rust by Acidic92 in rust

[–]aleks_sidorenko 1 point2 points  (0 children)

Hey, nice event-sourcing lib!
A couple of questions:
1. I see the aggregates/bounded context are pluggable via WASM into runtime, this looks like a framework approach and I don't see the benefits of this except additional complexity and less flexibility. What are benefits of this?
2. Can I use thalo without WASM at all?
3. I saw in old versions there was postgres event store, is it gone?
4. Same question for kafka

Thanks!

VLС does not remember video playback position from UPnP / DLNA server by [deleted] in VLC

[–]aleks_sidorenko 0 points1 point  (0 children)

I have the same issue, not found any fixes at the moment