• 4 Posts
  • 17 Comments
Joined 2 years ago
cake
Cake day: July 21st, 2023

help-circle

  • pr06lefs@lemmy.mltonixos@lemmy.mlallow unfree will not work
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    7 months ago

    my configuration.nix has this line:

    nixpkgs.config.allowUnfree = true;

    If you’re using an additional nixpkgs, (I have both 24.11 and unstable) there’s another syntax for that, depending on whether you use flakes. Anyway the above should work, flakes or not.

    If not, post the error you’re getting.








  • Is there any reason you can’t change your keybinds to something other than CTRL+combo?

    ctrl-alt-<key> is wide open. For the rest you have to check with different browsers, its a pain. And you end up with combos that aren’t very mnemonic. Technically I CAN change the combos to whatever, but I’d like to know WHY I have to do that.

    It’s your hill to die on but I wouldn’t make my website usability dependent on a browser that is so rarely seen.

    That’s exactly what I don’t want to do, make my website less usable for the sake of the rarely seen librewolf. Is that what you meant?







  • Are you just after a dev environment? Or are you looking to make lemmy a nix module, so you could make it a service on a nixos machine?

    I made some flakes that might be a starting point for nix develop.

    https://github.com/bburdette/lemmy/tree/flake.nix

    https://github.com/bburdette/lemmy-ui/tree/flake.nix

    Both repos require git submodule init and git submodule update .

    After nix develop, I was able to build the rust with cargo build.

    The lemmy-ui one you have to npm install pnpm so it makes a node_modules dir, then you can exit and reenter nix develop to get it to set the path. I used nodejs_20 but you might not need to. When I run it with pnpm dev, it complains about missing translation files. Some files got installed with a submodule, but maybe they’re in the wrong place? dunno, stopped there.

    Beyond that, I would try using their docker compose thing. Probably that will use the compiled typescript and/or rust code so you can work in a normal env and have those containers use your code. Haven’t tried it.