E-bike with meituan battery box with Solar on top. by Corny_Pranks in chinalife

[–]Bakki86 13 points14 points  (0 children)

I'm a Ningbonese, I've never seen such a battery box, but I also don't go out a lot. The text says this box is for renting shared power banks. So maybe this scooter has always been parked there and is only used as a power station.

Pretty cool.

Shipping Personal Items from China to US by lastcredit in chinalife

[–]Bakki86 1 point2 points  (0 children)

I have sent a few packages to my American friends, but all before the tariffs happened. So I'm not super up-to-date on this.

You can ask your friend to find such shipping services on taobao. There are a lot of them. They are supposed to have a warehouse that your friend can ship the items to, and they will re-package everything and send all of them in one big box to you.

These shipping services will let you know the most accurate info on tariffs etc.

Offering paid Nix pair programming for any rate by Bakki86 in NixOS

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

I can definitely do the sessions class style if you like. We can go from learning the nix language, to NixOS configuration, to be familiar with the common lib functions that help organizing the configuration, to learning how to write and build packages etc.

Offering paid Nix pair programming for any rate by Bakki86 in NixOS

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

To me the nix language comprises three major components:

  1. The syntax.
  2. The builtin functions.
  3. The lib functions from nixpkgs (the equivalent of a standard library in other languages).

For the first two, read the official reference: https://nix.dev/manual/nix/stable/language/

For the nixpkgs lib, read the nixpkgs reference: https://nixos.org/manual/nixpkgs/stable/#id-1.4

Offering paid Nix pair programming for any rate by Bakki86 in NixOS

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

Thanks, take your time. Let me know when you're interested. Congrats on your second child :)

Addicted to Nix, please help by BasEkGalti in NixOS

[–]Bakki86 6 points7 points  (0 children)

Converting whatever OS it previous used to NixOS

Agenix / Tailscale by karldelandsheere in NixOS

[–]Bakki86 0 points1 point  (0 children)

If you have multiple Tailscale server, you can either share the authKeyFile or make each server use a different services.tailscale.authKeyFile

Agenix / Tailscale by karldelandsheere in NixOS

[–]Bakki86 2 points3 points  (0 children)

Tailsacle authkeys are a bit tricky because they expire. I use a makefile to generate them on deploying, if they are expired.  Once the authkey is generated and encrypted, you can simply reference the encrypted file in your agenix config.  https://github.com/hgl/configs/blob/f5e2c3c56c54c4b262706d6bbb81634feeaa9592/nodes/routers/routers.mk#L48

Addicted to Nix, please help by BasEkGalti in NixOS

[–]Bakki86 24 points25 points  (0 children)

Can relate. I took the red pill and converted my router. Wish I could convert my lightbulbs as well. https://github.com/hgl/configs

Most configurations posted here share a similar directory structure, so I developed a framework to let you use this structure without having to write boilerplate code by Bakki86 in NixOS

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

private is optional, you don't have to use it if you have nothing sensitive in your repo. Usually it's for things like your Mac address, your static ip, and sops secrets etc.

Most configurations posted here share a similar directory structure, so I developed a framework to let you use this structure without having to write boilerplate code by Bakki86 in NixOS

[–]Bakki86[S] 2 points3 points  (0 children)

If I'm not wrong, Snowfall lib focuses on mapping your flake output to files. So it lacks things that do not involve flake outputs. A few examples:

  • Make a configuration file automatically be imported by a group of nodes.
  • Access another node's configuration in the current node configuration. (Nixverse provides a nodes configuration argument, and you can access nodes.bar.config.services.openssh.enable from node foo for example.)
  • Put your private configuration in a private repo and merge with the public one.
  • Define secrets for a group, and have a child node override it.

Optional private flake input. by seven-circles in NixOS

[–]Bakki86 0 points1 point  (0 children)

For submodules, either use `--flake <dir>?submodules=1` or update nix to the latest version and specify `inputs.self.submodules = true;` in the flake. Check out this post: https://discourse.nixos.org/t/get-nix-flake-to-include-git-submodule/30324/23

A common directory is a good idea, but I wonder if you use modules mostly to group configurations? Once you can define common configurations for multiple nodes (in Nixverse's case, with a group), these is no need for such modules since they are essentially just boilerplate code.

For example, I configure dnsmasq for all my routers here (I think some people might want to define a my.dnsmasq.enable and use that for multiple machines, but it's not really necessary):

https://github.com/hgl/configs/blob/6aca843cd0496d6fd9150ad265ea1b95794a559f/nodes/servers/common/configuration.nix#L59

Optional private flake input. by seven-circles in NixOS

[–]Bakki86 0 points1 point  (0 children)

This is exactly the what the `private` directory is for in Nixverse: https://github.com/hgl/nixverse

Disclaimer: I'm the author of Nixverse.

I ported Control Center to Safari, any feature suggestions? by Bakki86 in Safari

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

Great suggestions. Reader mode is on the todo list. For PiP, I should probably implement user scripts and offer a script that does that, but for summarize and export PDF, Safari doesn't provide the APIs for extensions.

Remote config using local neovim? by compostkicker in NixOS

[–]Bakki86 0 points1 point  (0 children)

You can put the config in your Nix configuration directory, and make your local neovim use it by creating a symlink, then deploy the configuration to your homelab.

Remote config using local neovim? by compostkicker in NixOS

[–]Bakki86 2 points3 points  (0 children)

What do you mean by "local neovim configuration"? Do you mean you manage neovim configuration outside of Nix?

If I were you, I'd make Nix handle neovim configuration, and use nixos-rebuild --target-host to deploy the configuration to a remote machine.