secana

joined 11 months ago
[–] secana@programming.dev 3 points 4 months ago (1 children)

Never heard of it. I used the Rust book when I started learning it.

[–] secana@programming.dev 2 points 4 months ago (3 children)

Is rust common in schools now or is it your personal interest that lets you use it?

[–] secana@programming.dev 1 points 4 months ago (1 children)

What is missing in the existing ones?

[–] secana@programming.dev 1 points 4 months ago (1 children)

Never used bstr. What was interesting about it?

 

Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

[–] secana@programming.dev 1 points 5 months ago (1 children)

Ah yes, compiles times. Off all the things that could be better in rust, my number 1.

[–] secana@programming.dev 3 points 5 months ago

Didn't know that one. Thanks for sharing.

[–] secana@programming.dev 7 points 5 months ago (1 children)

I get the feeling that there are much more game engines in rust, than games :P

[–] secana@programming.dev 9 points 5 months ago

I release a new version of https://kellnr.io with some bug fixes and updated Docker images (Ubuntu 24.04 base).

 

Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

[–] secana@programming.dev 1 points 5 months ago

That worked! Thank you! The trick is really to embed the bookmarks into each other :)

[–] secana@programming.dev 1 points 5 months ago (2 children)

Thanks for the reply. When I disable the toolbar, the bookmarks are correctly placed in a folder but the folder is not visible in the toolbar anymore. So I can either have the bookmarks separately in the toolbar, or in a folder but not in the toolbar. The combination of both seems to be only possible if I move the bookmarks by hand in the UI :/

 

Hi,

I want to sort my bookmarks in Firefox with home-manager into folders, but fail.

Simple example:

firefox = {
      profiles."user" = {
        bookmarks = [
          {
            name = "Nix";
            toolbar = true;
            bookmarks = [
              {
                name = "NixOS Search";
                url = "https://search.nixos.org/packages";
              }
              {
                name = "NixOS Options";
                url = "https://nixos.org/manual/nixos/unstable/options";
              }
              {
                name = "Home-Manager Options";
                url = "https://nix-community.github.io/home-manager/options.xhtml";
              }
              {
                name = "Home-Manager Options Search";
                url = "https://home-manager-options.extranix.com/";
              }
            ];
          }
        ];
      };

My assumption was that I get a folder "Nix" in the bookmarks toolbar that contains the four bookmarks. But instead the four bookmarks are added to the toolbar side-by-side without being in a folder.

How can I achieve that?

 

Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

 

Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

[–] secana@programming.dev 1 points 6 months ago (1 children)

Thanks for the response. I'll have a look at it. It still astonishes me that there is no off-the-shelf solution to such a trivial and common use case.

[–] secana@programming.dev 13 points 6 months ago (5 children)

Or use https://kellnr.io to host your crates. It automatically builds the corresponding docs and hosts them for you. Disclaimer: I'm the author.

 

Hi! I ran into the issue that my kube config, which I manage with home-manager is world read- and writable. I hoped that there is an easy option to set file permissions with home-manager, e.g. home.file."foo".permissions = 0644 but something like this does not exist. All solutions a short web search turns up are overly complicated for something that seems to be a trivial task.

What is the easiest way to set permissions for a file with home-manager?

 

Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

 

Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

 

Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

 

Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

 

Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

 

Hi! It's my first day with nixos. I tried to compile a rust project. To do so, I used a nix-shell with the content from here: https://nixos.wiki/wiki/Rust with the "Installation via rustup" option.

Unfortunately the compilation fails:

$ cargo check
   Compiling libc v0.2.151
   Compiling proc-macro2 v1.0.73
   Compiling serde v1.0.193
    Checking once_cell v1.19.0
   Compiling thiserror v1.0.53
error: linker `aarch64-linux-gnu-gcc` not found
  |
  = note: No such file or directory (os error 2)

error: could not compile `proc-macro2` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `serde` (build script) due to 1 previous error
error: could not compile `libc` (build script) due to 1 previous error
error: could not compile `thiserror` (build script) due to 1 previous error

I run NixOS 23.11 stable on a VM on a Macbook with M1 (arm64) CPU.

Any ideas how to fix that?

view more: ‹ prev next ›