Skip Navigation
rutrum rutrum @lm.paradisus.day
Posts 28
Comments 163
Linux distros good for hosting Plex/jelly
  • I really think the learning curve will be less than you think. Please consider at least reading the installation instructions. Here's the page for linuxserver.io's maintained plex docker container. I've linked to the usage section, where you can copy the compose file to deploy it. https://github.com/linuxserver/docker-plex?tab=readme-ov-file#usage

  • Linux distros good for hosting Plex/jelly
  • If you use docker, it doesnt matter the distro. And to use docker, you dont really need to understand how/why it works. As long as you can take an example compose file and spin it up (docker compose up) it'll be less complicated in the long run than managing plex on the host machine (or most software for that matter, which is why containerization is so popular.)

  • Yes, SimpleX Chat is now on Flathub.
  • Whats the easiest way to contribute to the simplex communication network? When I run a relay node, how do I notify the network that my instance exists

  • Tips on software to (mass) edit mp3 metadata?
  • Ive used easytag in the past.

  • Pros and cons of Proxmox in a home lab?
  • It seemed nice at first, but one major issue: GPU passthrough was a nightmare. It cant be done in the UI and I didnt understand fully how it worked. There are many different tutorials not by promox that are outdated or may not work. It was frustrating enough I jumped to NixOS. Other hiccups included having to go to the terminal to passthrough drives for openmediavault, but that one was kind of straightforward atleast, and it worked first time.

    In hindsight, I didnt actually need to virtualize everything at that level, so I never really had a good use case for it anyway. I use containers over entire VMs.

  • Idea: NixOS configuration meant for hosting "for the common good" services, like tor relays, simplex relay, archive team warrior, etc.
  • For it to contribute to the public, I would also want some sort of way to help the admin notify the oublic about it. I was even thinking that this would come with its own cli tool to check that the instance was visible on the open internet, and the present in public instance lists like searx.space. In this case, building and configuration is alrwady handled by NixOS, which is nice. I havent looked into others.

  • Idea: NixOS configuration meant for hosting "for the common good" services, like tor relays, simplex relay, archive team warrior, etc.
  • That looks like the same idea for a different set of tools. That's a great reference, thank you!

  • Idea: NixOS configuration meant for hosting "for the common good" services, like tor relays, simplex relay, archive team warrior, etc.
  • I'm pretty ignorant on crypto, I just knew that it was important to have many mining to increase transaction times, decrease transactions costs, decentralize proof of work, etc. And practically you're right, might be a good way to absolutely ruin the performance of the server.

  • Idea: NixOS configuration meant for hosting "for the common good" services, like tor relays, simplex relay, archive team warrior, etc.

    This idea is inspired by nixos-mailserver. It was so easy to spin up the mailserver after changing some DNS records and putting in some settings. I thought it might be a good idea to do the same for services that need public, decentralized infrastructure to support. Some ideas include

    • Tor relay, or exit node
    • Encrypted messaging nodes. It looks like SimpleX chat relies on SMP servers to relay communication
    • Crypto miners (I know, I know, but you understand how it fits the “public contribution” usecase)
    • Search engines like searxng (I currently use a public instance)
    • Libredirect services, like proxy clients for social media

    Maybe federated services, but those require more than just the software running on the public internet. Those require moderation and long term maintenance. Ideally, the services in this config would be ephemeral.

    Does this sound like a good idea? Would you spin one of these up on a $10 VPS? I understand that this is the NixOS community, not necessarily the privacy community, but I figured thered be overlap.

    What other services do you think would be applicable?

    3

    Idea: NixOS configuration meant for hosting "for the common good" services, like tor relays, simplex relay, archive team warrior, etc.

    This idea is inspired by nixos-mailserver. It was so easy to spin up the mailserver after changing some DNS records and putting in some settings. I thought it might be a good idea to do the same for services that need public, decentralized infrastructure to support. Some ideas include

    • Tor relay, or exit node
    • Encrypted messaging nodes. It looks like SimpleX chat relies on SMP servers to relay communication
    • Crypto miners (I know, I know, but you understand how it fits the "public contribution" usecase)
    • Search engines like searxng (I currently use a public instance)
    • Libredirect services, like proxy clients for social media

    Maybe federated services, but those require more than just the software running on the public internet. Those require moderation and long term maintenance. Ideally, the services in this config would be ephemeral.

    Does this sound like a good idea? Would you spin one of these up on a $10 VPS? I understand that this is the NixOS community, not necessarily the privacy community, but I figured thered be overlap.

    What other services do you think would be applicable?

    4
    Setting up for python development is incredibly frustrating
  • Pff, if pandas gets me numpy that works that may not be a bad hack. I'll try this! Sorry I dont know how to fix qt!

  • Setting up for python development is incredibly frustrating
  • I've had the same problem running numpy. Shockingly with a library so popular I havent found a way to make an environment with it work. I also had the most success with poetry, so I think you're on the right track.

  • SaumonNet/proxmox-nixos: The Proxmox Hypervisor, on NixOS
  • From my short time with proxmox, I had to dive into the command line to do configuration at the host level that couldnt be done with the UI. I think nixos will help replacd those ad hoc configurations with nix options. In the many articles I read about gpu passthru, and also doing harddrive passthru, I had to work in the host debian environment.

    I dumped proxmox because I couldnt get gpu passthrough to work, and havent looked back. Nixos modules and docker have served me better than VMs for my usecase.

  • Alternatives to Mailcow?
  • not sure if this fits your usecase, but nixos-mailserver

  • Simple mail server
  • I used nixos-mailserver with success, and very little configuration. Most of it was dns, and thr guide walked me through it. You would have to a nixos box somewhere though. I spun one up on my vps for it.

  • NAT and Port Triggering
  • If you enable iptables you may have to disable firewall.

  • Does anyone use NixNeovim to configure their Neovim?
  • I am also using nixvim. Didn't know about this fork. I think I like it? It beats manually writing setup configs. But Im not a vim superuser by any means, so I'm sure nixneovim would be equally useful to me.

  • What's your approach for understanding a big codebase?
  • Use git? Use CI/CD? What do you mean?

  • DuckDuckGo AI Chat adds support for Llama 3 70B and Mixtral 8x7B
  • That's right, "text-generation-webui". At least its unambiguous lol. Thanks for sharing.

  • DuckDuckGo AI Chat adds support for Llama 3 70B and Mixtral 8x7B
  • What GPU are you using to run it? And what UI are you using to interface with it? (I know of gpt4all and the generic sounding ui-text-generation program or something)

  • Unable to run TabbyML with GPU on NixOS or Docker (solved on docker!)
  • Yes I've got that set but still running into issues at runtime.

  • Unable to run TabbyML with GPU on NixOS or Docker (solved on docker!)
  • It was not configured correctly. Its a nixos bug. Thanks for pointing out the daemon config its what lead me down to solving the docker problem.

  • Unable to run TabbyML with GPU on NixOS or Docker (solved on docker!)

    TabbyML is a self-hosted code assistant. I have been unsuccessful at running it using my Nvidia GPU. There's two ways I've tried to deploy this.

    As a docker container

    Following the docs, it states I run the following docker run command. Below is what I run, modified to use the correct port: docker run -it --gpus all \ -p 11029:8080 -v $HOME/.tabby:/data \ tabbyml/tabby serve --model StarCoder-1B --device cuda Then I get the following error: docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]]. So this would appear that I don't have the "nvidia-container-toolkit" installed on my machine. So I go ahead and enable this in nixos: hardware.nvidia-container-toolkit.enable = true; To validate that this works, I should be able to run nvidia-smi from within a container. I can run this from the host without issue: $ nvidia-smi Wed Jun 5 08:14:50 2024 +-----------------------------------------------------------------------------------------+ | NVIDIA-SMI 550.78 Driver Version: 550.78 CUDA Version: 12.4 | |-----------------------------------------+------------------------+----------------------+ ...and so on But if test this from a container, as the nvidia docs suggest as follows, I unable to access it from within the container. $ sudo docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi docker: Error response from daemon: unknown or invalid runtime name: nvidia. Okay, so I go and read the instructions further. Install instructions state that after installation, I need to configure the runtime like so: $ sudo nvidia-ctk runtime configure --runtime=docker sudo: nvidia-ctk: command not found Ah nuts. That's a bug in nixos. I made a PR for this here: https://github.com/NixOS/nixpkgs/pull/317199 Still awaiting results from this. I don't know if this is a bug that will be backported to 24.05. Regardless, I wouldn't expect this ad-hoc configuration when I enable the nvidia-container-toolkit option in NixOS. Anyway, this option could still work but with some more time. If you have advice doing this let me know.

    FOUND Docker method solution

    So looking closer at people with the error message "no such runtime nvidia" I found this thread. It specifies that what nvidia-ctk is supposed to do is add a "runtime" that points to the nvidia-container-runtime executable. So I tried manually adding that my nixos configuration by using the virtualisation.docker.daemon.settings options. I was having trouble getting that working, because I needed to find the exact path to the nvidia-container-runtime executable. If you know Nix, you know that it isn't just in /usr/bin/.

    But that's still not a satisfying solution anyway...I shouldn't have to this. I went in deeper and looked at module for nvidia-container-toolkit. This module calls a script called cdi-generate.nix. It outputs the results of nvidia-ctk to a file called nvidia-container-toolkit.json.

    Let's go look for that file...can't find it. I do more searching...anyway, I found the solution.

    The nvidia-container-toolkit is a new option in NixOS 24.05. It explicitly states in the release notes that it is supposed to replace the now deprecated virtualisation.{docker, podman}.enableNvidia options. Well, when you go look at the module that defines docker.enableNvidia you see it there at the bottom! This file actually defines the nvidia runtime!

    And yes, it works. Using the now "deprecated" option is the one that actually works. I guess this is another bug to file to NixOS.

    This seems to work so far, but I don't know why the solution using a NixOS module doesn't work either.

    As a NixOS module

    Let's just do it the full NixOS module way (which is what I tried first). That should be easy. Let's enable the feature and set some options: services.tabby = { enable = true; port = 11029; acceleration = "cuda"; }; networking.firewall.allowedTCPPorts = [ 11029 ]; It appears to be working! VSCodium extension sees the server and prompts for a authentication token. I add the token. I type some code and set for a manual trigger...then tabby dies. Let''s look at the systemd logs. tabby[76786]: 📄 Version 0.11.1 tabby[76786]: 🚀 Listening at 0.0.0.0:11029 tabby[76786]: JWT secret is not set tabby[76786]: Tabby server will generate a one-time (non-persisted) JWT secret for the current process. tabby[76786]: Please set the TABBY_WEBSERVER_JWT_TOKEN_SECRET environment variable for production usage. systemd[1]: tabby.service: Main process exited, code=exited, status=1/FAILURE systemd[1]: tabby.service: Failed with result 'exit-code'. systemd[1]: tabby.service: Consumed 2.285s CPU time, received 121.0K IP traffic, sent 1.6M IP traffic That's it. It's not very descriptive about what happened. I've had success running it this way using the "cpu" option for acceleration (no GPU) but that's too slow to be useful.

    GPU specs

    I am running a Nvidia RTX 2060 and using the proprietary drivers version 550.

    Thanks for the read, if you have any input on what to do next let me know what I can try. Ideally, I'd like to have both options work, since I think the docker implementation may have the same problem as the NixOS module option.

    7

    "No code" databases

    I've been seeing easy ways to store and view tabular data. I'm aware of tools like nocodb, baserow, and mathesar. I'm currently playtesting nocodb. But I wanted to start a discussion on what everyone uses for easily storing tabular data, and if anyone uses these tools.

    I've also tried nextcloud tables but it still is very early in development from what I can tell.

    16

    Best service for filing taxes?

    I'm sure doing it manually is the safest, but perhaps there's a least poison for software/services for filing US taxes. What do you recommend? (or, atleast, what do you recommend steering clear of)

    12

    What's the best strategy for changing to GrapheneOS?

    I have a google pixel, and I know I could install grapheneOS on it. But I'm very, very hesitant, since I depend so much on my phone.

    This isn't like distro hopping, where I feel more comfortable hot swapping ssds, or making partitions, or using my desktop while I tinker with my laptop. My phone has a SIM and the service I depend on can't be emulated off this phone.

    So what do you recommend I do? Should I move my SIM (my phone service, really) to a new phone while I tinker with this one? Can I just blow up the current OS and wing it? Or maybe theres another option that would allow me to bail back to stock android in case something goes wrong. What do you think?

    EDIT: how I use my phone: about everything I use is from fdroid, with the occassional app from aurora. I do use my banking app to cash checks, but I don't use whatsapp, google pay, which I know arent compatible. So as far as app compatibility I dont think it'll be a problem, Im mostly worried about my phone number not working. I dont know how SIMs work like I should, I just know Ive had the strangest issues in the past with it, so Im hesitant. Thanks for the replies so far.

    42

    Favorite youtube channels for BAR?

    I've been enjoying the daily commentated reciews by BrightWorksGaming

    3
    datahoarder @lemmy.ml rutrum @lm.paradisus.day

    What guides, wikis, or megathreads are available for those new to archiving and storing data?

    I've recently aquired the hardware to build a home server/NAS. I'd love to know some community-guided advice on tools I should consider, and what best practices are?

    For instance, how does redundancy work? Whay about automated backups? What OS should be running on a NAS? What utilities can I use to monitor the safety of my data? Perhaps even a guide about how to safely share that data outside my home network for personal use, or even open for the internet, without compromising my network?

    Thanks for the discussion

    1

    What's with all these hip filesystems and how are they different?

    You know, ZFS, ButterFS (btrfs...its actually "better" right?), and I'm sure more.

    I think I have ext4 on my home computer I installed ubuntu on 5 years ago. How does the choice of file system play a role? Is that old hat now? Surely something like ext4 has its place.

    I see a lot of talk around filesystems but Ive never found a great resource that distiguishes them at a level that assumes I dont know much. Can anyone give some insight on how file systems work and why these new filesystems, that appear to be highlights and selling points in most distros, are better than older ones?

    Edit: and since we are talking about filesystems, it might be nice to describe or mention how concepts like RAID or LUKS are related.

    80

    New Nix Wiki: NixLang Wiki

    nixlang.wiki NixLang Wiki

    An unofficial, maintained wiki for NixOS

    Came across a new nix wiki attempt. The announcement post is made on discourse with high skepticism.

    But I really like it for two reasons:

    • For now, its incredibly informal and the barrier to entry is low. And because I can make edits directly in the web interface, it felt easy to contribute.
    • The creator mentions wanting this to be like the Arch wiki. In other words, contain information useful to nix users, but not necessarily nix specifically.

    I was able to contribute a new article about distrobox, a tool I discovered and made a post about here a month or so ago.

    Maybe we don't "need" another wiki, but the opportunity to contribute really made this one stand out to me. In case you all might want to contribute or learn something, I thought I would share.

    0

    What should manage your xsession?

    I'm conflicted on what should handle my login manager, desktop environment, and window manager. What are the pros and cons of doing it from a nixos configurations versus a home manager configuration?

    0

    Need to run something and nix just isn't cutting it? No worries, distrobox will save the day!

    I made a post a while ago asking what you do when NixOS isn't cutting it. You need a package that isn't available as a flatpak/appimage or already in nixpkgs. You don't want to build from source, because it's either too difficult or too time consuming. One suggestion was containerization or virtual machines, but those seemed too cumbersome. Well, distrobox is the tool that fixes it.

    Distrobox is a shell script that wraps over docker/podman to run a container of a distribution of your choice. But it does it behind a very high level API, and integrates the container environment seemlessly with your host environment. It is seriously as easy as this, if you need to install something with apt inside debian. $ distrobox create -n my_debian --image debian:latest $ distrobox enter my_debian And bang, your in a debian container and it won't even feel like it. It automatically integrates your shell environment and maps your root directory inside the container (or something like that.) You seriously wouldn't know unless you neofetch. Best part is that since everything is in the nix store, every program in your environment should work, for the most part, inside this container. I've not noticed problems yet.

    Tada! apt is available in this environment and you can install what you need. Then you can run it while inside the container. From the host machine, outside the container, you can run it directly too. Say you installed program X in debian: $ distrobox enter my_debian -- X And it will just run the command and send you back to the host machine.

    In the case of docker, you can type docker ps and it will show you your debian image my_debian listed.

    There's two more things I want to do to really polish this workflow. The first is to change my shell prompt so I know that I'm actually in debian without typing neofetch! Inside the box the variable CONTAINER_ID is set and the hostname is modified. I've adjusted my starship prompt to look like this when inside the box: distrobox:my_debian ~ $ And lastly, I really want to blur the lines. If I install X in debian, I want to just call it directly from the host as X, not invoke my debian instance with distrobox enter.

    When you type X and the program is missing, bash (and fish and zsh I'm sure) runs a hook that you can look at by typing $ declare -p -f command_not_found_handle By overriding this, you could first have it try the inside container if it can't find the application in the host container, like so. command_not_found_handle () { distrobox enter my_debian -- $@ } This is not a perfect solution, but I'm still experimenting with how to integrate this both seamlessly and also not accidentally run things inside debian and not realize it. If you have suggestions for how to improve handling calling commands from the outside environment, please share. Best case might just be adding aliases for programs explicitly. For example, `alias X=distrobox enter my_debian -- X.

    Anyway, distrobox is the solution! This is one more barrier removed that was preventing me from moving my main computer over to NixOS. I'm so happy to have found this and wanted to share.

    2

    Thanks to dust I deleted a 70 gig file on my drive

    Dust is a rewrite of du (in rust obviously) that visualizes your directory tree and what percentage each file takes up. But it only prints as many files fit in your terminal height, so you see only the largest files. It's been a better experience that du, which isn't always easy to navigate to find big files (or atleast I'm not good at it.)

    Anyway, found a log file at .local/state/nvim/log that was 70gb. I deleted it. Hope it doesn't bite me. Been pushing around 95% of disk space for a while so this was a huge win 👍

    45

    Do you use virtual credit cards?

    I came across privacy.com, a service that generates virtual credit cards, like aliases for your real credit card that can be paused or discarded at any moment.

    My own credit card company has this feature. But it requires a browser plugin that so obviously is there to track my spending habits, so I've not wanted to consider it. Privacy.com looks like a great alternative.

    But is it even worth it? It may be a hastle, but I can also cancel my actual credit card at any moment and they will send me a new number immediately and a card a few days later. From a privacy prospective, how much can a company use my credit card credentials to track me? Maybe a third-party virtual card provider even masks my own purchases so not even my credit card company knows? Not sure about that one.

    Please share if you use one, who its with, and if its worth it.

    34

    Let NixOS or Home-Manager manage X, not both

    I've been spending a couple weeks unable to modify my system, because using my window manager was ungodly slow (like 1fps.) Luckily NixOS lets you pick a previous generation to load so I could make changes, build a new generation, and try again.

    It took me too long to find, but I realized I had both the x session managed by both nixos and home manager. Removing this fixed the problem. I assume this had 2 xsessions open and they were competing for resources or something. Be cautious! :)

    0

    Coffee gamechanger for me: this big insulated coffee server.

    This is the 800ml server from Hario. I make 600g water / 30-35g coffee in it every morning.

    I drink my coffee slowly, and really like it hot. When I made a single 300g cup of coffee, I'd time my consumption wrong and it would be lukewarm before I finished. I didnt necessarily mind this, but now that I've been using this server I get hot coffee on demand, very conveniently.

    I downsized my regular mug for a teacup, so I always get just enough hot coffee to sip and enjoy before it loses too much temp. So now I drink a lot of small teacups worth instead of a regular mug. I recommend you try this style of serving coffee and see if its for you.

    Bonus: this has been so helpful when making for multiple people, since I dont always know when others wake up or come downstairs. Since its a huge insulated server I never worry about not being able to serve my roommates hot coffee.

    30

    How do I share my flakes for external projects?

    Every now and then I see a program that doesn't have a default.nix or flake.nix in the source, doesn't have an entry in nixpkgs, and otherwise can't find a derivation for. So I write them myself.

    What's the best way to share these? Should I contribute to nixpkgs? (does this count if I'm making flakes?) Do I maintain a single repo for each program? Or do I create a repo with a collection of flakes? Something else?

    7

    What have you been working on?

    Hi all, I've been getting into nix lately (I've been posting here frequently) and wanted to know what projects everyone is working on. Are you trying to integrate nix into an existing project? Contribute to nixpkgs? Experiment with your configs?

    6
    m.youtube.com Using Nix to Declare Your Browser!

    Discord server: https://discord.gg/AqHbaeK43bFirefox-addons flake: https://gitlab.com/rycee/nur-expressions/-/tree/master/pkgs/firefox-addons?ref_type=headsC...

    Using Nix to Declare Your Browser!

    Short video from Vimjoyer on how to setup a firefox install using home manager and flakes. In particular, the focus of this video was how to use an external flake as a source for firefox extensions, since they aren't available in nixpkgs.

    0

    Building websites using Nix Flakes and Zola

    I came across this article when wondering how to integrate the "building" aspect of nix (that is, not just a devshell) with static websites or other projects that involve some output that is not an executable.

    This article also talks about adding inputs from GitHub that aren't necessarily flakes. I've used this myself to pull some example configurations for certain programs that I haven't felt like tinkering with myself yet.

    0