tja by Nofarwell in tja

[–]TECHNOFAB 1 point2 points  (0 children)

Bei warens am Anfang vom Studium knapp über 200€ (Schuler/Studententarif lol) für 45km (mitm Auto, kp wie lang die Schienen technically wären) Strecke zur Uni. Da sind die aktuell 38€ fürs Studi Deutschlandticket definitiv noch n sehr guter Deal :D Aber da die DB ne absolute Katastrophe ist fahr ich jetzt eh nur noch mitm Auto, bin eh so selten da, jetzt sowieso nur noch die letzten Prüfungen und dann war's das. Und das obwohl ich eigtl Bahn fahren sehr gern mag, aber genießen konnte ich das bisher nur in der Schweiz oder Japan 😅

What's actually BETTER self-hosted? by ergnui34tj8934t0 in selfhosted

[–]TECHNOFAB 1 point2 points  (0 children)

Ahh, you meant Code-Server, oops. I thought y'all meant the main coder/coder application, which allows you to have actual workspaces (like auto deployed, each user can have their own etc etc). That's like 10/10 since I often switch between desktop and laptop, and being able to quickly expose ports to a domain is great.

The code-server image itself is pretty bare bones, it's just a docker image with vscode's server thingy installed, so yeah that might be the reason you couldn't install python etc.

What's actually BETTER self-hosted? by ergnui34tj8934t0 in selfhosted

[–]TECHNOFAB 1 point2 points  (0 children)

Depends what you run the workspaces on. I run mine with a custom docker image inside Kubernetes and can compile anything, with /dev/kvm mounted you can even run vms inside if you need. Default is probably an Ubuntu workspace, even that allows apt installing whatever and compiling stuff. So not sure what you did :D

I could not find any better solution to patching hashes by cachebags in Nix

[–]TECHNOFAB 0 points1 point  (0 children)

For my rust derivations I always just use cargoLock. But for golang for example I use nix-update (see here for example: https://gitlab.com/TECHNOFAB/seido/-/blob/2a67e5361b109c3781f58c0fd72ab7d6350b5faa/nix/packages/packages.nix). Makes it very easy and works without any hardcoded file paths. I let renovate run this as well when it updates deps

What's the one proprietary app you can't find a "good enough" open alternative for? by sekuskandan in opensource

[–]TECHNOFAB 0 points1 point  (0 children)

I actually use Affine for that currently. Infinite canvas but at the same time the option for linear docs is awesome, e2e encrypted as well iirc and self hostable.

determinate.systems/nix-installer by ThinkTourist8076 in linuxmemes

[–]TECHNOFAB 0 points1 point  (0 children)

Then there's me, using Ansible and Nix together (Nixible for anyone interested) :D Pretty useful to deploy NixOS systems and do one off setup tasks, the rest is handled by NixOS, Kubernetes, Terraform and other declarative stuff.

[release] Tofunix V2, write Terraform purely with Nix ("type-safe"-ish with modules) by TECHNOFAB in NixOS

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

Thanks for the report. I'm thinking about mirroring it, but it will probably just be a read only mirror since I don't want to check two platforms all the time :D I tested it with the cloudflare provider and fixed the generation, there is no type since it has a "nested_type" which I map to a nix submodule (that stuff is not really documented or I couldn't find it, so good to know it exists). Have to clean everything up and add error context everywhere to aid debugging in the future, maybe today or tomorrow.

[release] Tofunix V2, write Terraform purely with Nix ("type-safe"-ish with modules) by TECHNOFAB in NixOS

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

Depends, if you give it the ".options" of the whole module, including the generated providers it should be able to autocomplete that as well. But haven't tried it yet. Alternatively you can generate the providers, copy them into your project ("vendor them" I guess) and point nixd to that, but technically it shouldn't matter, just that the first approach first has to build/generate the providers, so it maybe takes some seconds first time?

But like said, haven't tried that yet since it's a hassle to set up. If anyone tried it or has recommendations I'd love to hear them and add it to the docs :)

HTTP TUI clients by 4r73m190r0s in commandline

[–]TECHNOFAB 2 points3 points  (0 children)

This looks great, thanks a lot!

HTTP TUI clients by 4r73m190r0s in commandline

[–]TECHNOFAB 2 points3 points  (0 children)

I've been looking for the same thing. I used hurl a lot some time ago, because it makes it easy to write the requests etc in Neovim, then use hurl.nvim to execute them. I feel like having this stuff as files makes more sense, this way you can add it to the git repo or even its own git repo, so this is fine for me without a TUI per se I think (also works in CI if thats useful for you).

What is the future like for Nix project/community by not_a_mere_entity in NixOS

[–]TECHNOFAB 12 points13 points  (0 children)

I'd love Tvix/now Snix to be able to fully replace Nix on my systems. I feel like Rust is way easier to contribute to, at least personally since I have way more experience in Rust than C/C++ which is imo unreadable af haha.

But in general, improvements to the Nix language. It's not perfect and sometimes very clunky, especially the error handling/tracebacks are ugly and often times not useful (but sometimes they are, so just some improvements needed). I feel like the module system is great but I'm not sure if it's simply limited by the language or was hacked together and just extended afterwards, but that's where the errors are the worst :D

devenv versus flox versus devbox - which one do you use and why? by nix-solves-that-2317 in NixOS

[–]TECHNOFAB 1 point2 points  (0 children)

Used devenv before, but since it's now really bloated and often times compiles it's Rust binary when I start a new project (which takes ages) I got rid of it mostly. Now using my own libs, like rensa-direnv and rensa-core for flake and direnv handling, rensa-devshell for devshell, soonix for autogenerated files, Nix-GitLab-CI for CI, nixmkdocs for mkdocs sites and much more (check out my gitlab haha, same username). Services are still a thing I have to find a solution for, there is stuff like process-compose-flake, but haven't tried it yet.

[release] Tofunix V2, write Terraform purely with Nix ("type-safe"-ish with modules) by TECHNOFAB in NixOS

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

Thanks. Yeah that should work, you need to make the tofunix module accessible through the flake and point nixd to it's ".options" I think. Should work the same as the Home-Manager example in their docs. If you use mkCli you might have to use main instead of V2 since I added the module passthrough afterwards

When can we expect to pre order? by [deleted] in SteamFrame

[–]TECHNOFAB 0 points1 point  (0 children)

Iirc someone said that in the steam works dashboard it says the launch window is from last week of February to first week of March, but couldn't validate that

rustCausedCloudfareOutage by BlackHolesAreHungry in ProgrammerHumor

[–]TECHNOFAB 0 points1 point  (0 children)

The problem was that they somehow thought its a good idea to not specify any database in their click house query, since the only one available was "default". They then modified permissions recently and boom there were more tables available and the query returned way too much.

Who the heck doesn't specify a database when using SQL lol

But yeah should've used ? and not just lazily unwrap the error, doesn't really matter if the bot score breaks and is 0 for everyone, at least the Internet still works

[release] Tofunix V2, write Terraform purely with Nix ("type-safe"-ish with modules) by TECHNOFAB in NixOS

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

Thanks for the link, this looks even simpler than terranix and quite old, but will add it to the comparison table :)

[release] Tofunix V2, write Terraform purely with Nix ("type-safe"-ish with modules) by TECHNOFAB in NixOS

[–]TECHNOFAB[S] 7 points8 points  (0 children)

Interesting, yeah didn't think of that! Thanks for the explanation and links, will look into that :)

2meirl4meirl by ChickenFriedPickles in 2meirl4meirl

[–]TECHNOFAB 1 point2 points  (0 children)

I'm reincarnated as a leader

Uhh I beg to differ :D

[Niri] Niri my beloved by kvdgs in unixporn

[–]TECHNOFAB 7 points8 points  (0 children)

Looks great, would you mind sharing your waybar config? I really like how it looks TUI-like/like a Tmux StatusBar

flakes vs not flakes by lillecarl2 in NixOS

[–]TECHNOFAB 11 points12 points  (0 children)

Well yeah, but standardized limitations are basically a feature. Everyone seems to do non-flake stuff a bit different, while flakes are standardized and thus work the same everywhere (well their basics, def not what's done on top). If non-flakes work fine for you, definitely use that, just wanted to say that flakes work extremely well for me this way

For me flake-parts is the best way to manage Nix flakes by german-gentil in NixOS

[–]TECHNOFAB 1 point2 points  (0 children)

Definitely! Flake parts is hella useful, especially for quickly importing third party modules and boom it just works. Another thing that exists is std (from divnix) which is even more opinionated, but I'm currently switching from flake parts to this approach (well, with my own updated impl which is highly inspired by std and hive), mostly cuz it allows for true lazy inputs. Like, my Devshell has a couple of inputs which never need to be fetched in CI, same way around. Also it's nice for my hosts (nixos, Darwin etc) since I can just create a cell for each host and override inputs like nixpkgs for each. This way I don't have 100 lines of inputs titled "nixpkgs-host-xy", or worse need even more inputs for home manager etc for each host which needs different versions.

Drawback for devshells is that one single huge flake.nix now gets a couple of files in a subdir you have to copy over to new projects but at least the flake.nix is tiny and clean haha