Skip Navigation
Posts
44
Comments
271
Joined
2 yr. ago
Nix / NixOS @programming.dev
rutrum @lm.paradisus.day

Any nix RSS feeds?

Does anyone know of any blogs that center around, or frequently discuss nix? My only subscription in freshRSS is NixOS weekly...and thats long since been abondoned.

It'd be really nice if there was some kind of news or ecosystem summary, so I could know about the newest nix projects as well as official sources.

  • For people who didnt understand the phrase like myself: https://en.wikipedia.org/wiki/Thin_blue_line?wprov=sfla1

  • Codeberg keeps calling the group the far right. Is there any political motivation or something else here? To me, it just looks like troll behavior. Is there more details about the attacks that I missed?

  • What is 40s day?

  • This looks exciting. I hope the transition goes well.

    I would say to get automated backups running on the first few before you do them all. Thats a luxury we get "for free" with cloud services.

    Note on firefly iii. I use it because I've been using it, but after using it for 4ish years, I dont really recommend it. The way I use it anyway, I think inserting data could be easier (I do it manually on purpose) and the graphs/visualizations I also wish were better. My experience with search functionality is also sub par. I would look at other alternatives as well, but I think its still better than not tracking finances at all. But I wonder if using a database client to insert data and python scripts or grafana to analyze the data would be better for me....YMMV

    Good luck!

  • Vim to edit markdown files. I use syncthing to sync between phone and other devices. I edit using markor on android.

    I've tried other software, but usually discover that vim keybinds dont exist (even as a plugin) or opening as plain old markdown isnt available, so I give up and try the next one. I've finally accepted that for me, vim and markdown is my endgame note taking solution.

  • 3DPrinting @lemmy.world
    rutrum @lm.paradisus.day

    How do you organize your 3d printing/modeling project folder(s)?

    Hi all, I've currently got a big folder full of a bunch of mishmashed sets of files in nested directories:

    • model files downloaded from thangs/thingiverse/etc
    • source files for models
    • my own SCAD source files for my own modeling projects
    • the stl exports of those files
    • I don't store the cura projects, but maybe I could
    • all the gcode. These get copied over to octoprint to print stuff.

    Before I go organizing it all, I wanted to ask how the community sorts their modeling files, or if they use other tools to help keep it all sorted. Any best practices out there?

    Additional question: do you just use a good directory structure, or do you use other tools that manage projects for you? I've never used any other CAD software besides OpenSCAD, so maybe those applications do some organization for you. Or maybe you self host something like manyfold

  • I replaced my tabbyml code assistant this week with ollama+continue.dev. But I'm having issues with speed. I think this is because I switched from code qwen 2.5B (ish) to Deepeek Coder 9B (ish) and I think I'm pushing the limits of my GPU. Maybe I'll spend today sorting out which models I want to use and which computers I want to use them on so I dont run into this issue (I've got ollama on 2 computers with 3 GPUs shared between them, for a total of 24GB VRAM)

  • Floccus just syncs, so whatever hasnt been synced would just wait in your bookmarks until the server was available.

  • I'm due to make something with ratatui. I've heard wonderful things about it. Cool project OP

  • Id never heard of trap. This is awesome! Thank you for sharing

  • Programming @programming.dev
    rutrum @lm.paradisus.day

    Any nushell users out there? Is it worth learning and using as my defualt shell?

    For those of you unaware: https://nushell.sh/

    This is by far the most unique shell out there, since it doesn't use raw text as output/input to command line calls, but instead an actual data structure. It's like if every CLI call returned a database table, in a way.

  • When you do finally get into an installation (dual boot or live usb) just remember that this a whole new OS. And things that you thought about how "computers" worked was actually how "windows" worked. I just want to make sure you set expectations, because you could easily frustrate yourself when you start expecting things to behave a certain way.

    Hopefully, you learn a lot from this experience. I'm excited for you!

  • Why did you switch from bitwarden?

  • I use borgbackup to create backups. I point backups to another home computer and borgbase.com. Borg itself is an amazing tool. I think you should learn how it works even if it doesnt end up being the best fit for you.

  • Start ny NOT jumping into nixos. Start using home manager on whatever distro you currently use. Then slowly move whatever programs or dots you currently have over to it, uninstall the aur/apt packages as you define them in nix. At first you'll have a clear goal: emulate your user environment. Once you've got your user environment defined, the jump to nixos would be easy (if you even want to) because you can use your home-manager config as the starting point. And depending on how you use your computer, home-manager may end up being most of what you care about.

  • Welcome to the NixOS club! Veloren fan here too!

  • I've got a subset of my files encrypted and backed up using borg. It gets backed up to another computer in my home and then cloud storage via borgbase.com.

  • Cooking @lemmy.world
    rutrum @lm.paradisus.day

    What's your favorite kitchen utilities?

    My first is this silicon spatula. It's construction isnt just a silicon tip with wooden handle. Its the red silicon for much more of the handle, which I've felt makes it easier to clean and last longer, since gunk isnt getting wedged between the handle and tip. I like it so much I have two.

    The second is probably just a spray bottle with water and dish soap. I clean up messes and the stove and countertops with it, and it's incredibly convenient.

  • Thanks for sharing your brewing method. I had never considered this, and based on the last post, a lot of people don't either. I'm glad you got it tasting the way you like!

  • If your typically coffee disolves in hot milk, then you might be used to instant coffee. What you've shown here is a bag of coffee beans and a bag of ground coffee beans. This requires a different method than with instant coffee.

  • The intent is to capture the parsing errors within a function, so the response could be capture in a single if let or match or is_okay condition.

  • Programming @programming.dev
    rutrum @lm.paradisus.day

    (probably not) Microsoft bought "codeburg.org" and redirects it to github.

    Try it yourself: https://codeburg.org/

    The actual site is https://codeberg.org/

    Edit: sorry I was making a baseless claim in the title. I dont have proof that Microsoft did it. Here's the whois for what information is actually known.

    Nix / NixOS @programming.dev
    rutrum @lm.paradisus.day

    Upgrade to 24.11 failing? Breaking due to some dependency you haven't specified? Here's how you can fix it.

    In the process of updating one of my home manager configurations to 24.11, I got an error about a package being marked as broken. It was something like python3.12-libarcus. Let me tell you, that isn't listed in my configuration, and the stack trace didn't help me...so what do you do?

    I discovered a tool called nix-tree: https://github.com/utdemir/nix-tree

    It will scan a nix store and allow you to interactively look at all packages and their dependency tree. I decided to look at my current profile with nix-tree ~/.nix-profile/ and look around. (note, I think there's a better way to look at a configuration itself, not just a previous build.) The tool lets me search for dependencies, so I searched for python3.12-libarcus and it brought me to where it is in the tree...

    I found the broken package! It was ultimaker cura, slicing software for 3d printers, which it turns out is very outdated in nixpkgs. There's discussions on the github about just wrapping the appimage instead

    Programming @programming.dev
    rutrum @lm.paradisus.day

    Any data scientists out there? What's your go to programming language and tools for your work?

    No surprise I use python, but I've recently started experimenting with polars instead of pandas. I've enjoyed it so far, but Im not sure if the benefits for my team's work will be enough to outweigh the cost of moving from our existing pandas/numpy code over to polars.

    I've also started playing with grafana, as a quick dashboarding utility to make some basic visualizations on some live production databases.

    Linux @lemmy.ml
    rutrum @lm.paradisus.day

    Best resources for learning systemd?

    I feel like Im dancing around perhaps the most fundamental piece of my operating system everytime I run and install software. Starting services with systemctl and checking logs with journalctl is the extent of my knowledge.

    Do you know of good resources or tutorials for learning how systemd works and how to use it to run software on my desktop and servers? Thanks.

    Open Source @lemmy.ml
    rutrum @lm.paradisus.day

    What's your favorite FOSS tools for image editing?

    Typically when I'm working with photos, I'm doing graphic design type work. I've been using GIMP for this. GIMP is meant for raster graphics editing.

    You could also use Inkscape for vector graphics, or Krita for more digital painting type work. But I know all these tools are very powerful and overlap on some use cases.

    Do you use any AI-type tools? I use a image upscaler called Upscayl. It works really well and works entirely locally.

    Do you know of any tools that can remove backgrounds? This would help with help with the type of graphic design I do.

    What other tools do you like to use as it pertains to images?

    Nix / NixOS @programming.dev
    rutrum @lm.paradisus.day

    Declaratively manage flatpaks in NixOS/Home Manager by GermanBread

    Self Hosted - Self-hosting your services. @lemmy.ml
    rutrum @lm.paradisus.day

    What to add to your SHTF document? What do you put in the paper document that contains instructions for disaster recovery, such as drive failure, cloud service loss, death, etc?

    I just setup my first automated and encrypted backup with borg. It's got me thinking about other chaotic events, and how to respond accordingly. I figured now is a good time to document my infrastructure: hardware, network, a files. This way if something bad happens, like my house burns down, I or a family member has instructions for how to quickly recover data and services. Examples:

    1. If my website goes down, with my nextcloud on it, what steps do I need to take to recover the data and restore service?
    2. If my harddrive fails, how do I access lost data and reimplement redundancy after a replacement is stood up?
    3. If someone important to me needs to access encrypted files, how can that access that data and get access to the passwords/encryption keys?
    4. If my phone bricks, how to recover 2fa codes?

    So I'd like to have a physical printing copy that tries to cover these emergency scenarios. Of course, I'll have digital copy around as well.

    I'm focusing more on digital assets, like

    Linux @lemmy.ml
    rutrum @lm.paradisus.day

    Recommended whiteboarding programs?

    I just got a drawing tablet, and have been wanting some software that would allow me to work out math problems, draw architecture diagrams, etc. I've seen some tools like Excalidraw, which look handy for the sharing capabilities. I also have just used plain krita, which has great feedback for the pen sensitivity, but obviously is overkill for whiteboarding.

    Are there any tools you use or recommend for handwriting or picture drawing? Pen or mouse?

    Coffee @lemmy.world
    rutrum @lm.paradisus.day

    Anyone drink tea? Have suggestions for a simple recipe?

    I love coffee, but have a surplus of tea bags that I want to experiment with. Does anyone have suggestions for how to get started with tea? Or a simple recipe to use as a baseline? I'm only working with tea bags at this time, which appear to be 2g. I would also love to know how much agitation you are supposed to do with the tea bag itself.

    Nix / NixOS @programming.dev
    rutrum @lm.paradisus.day

    Ultimate Nix Flakes Guide by Vimjoyer

    Selfhosted @lemmy.world
    rutrum @lm.paradisus.day

    How do you manage your encryption keys?

    I'm in desparate need of setting up borgmatic for borg backup. I would like to encrypt my backups. (I suppose, an unencrypted backup is better than none in my case, so I should get it done today regardless.)

    How do I save those keys? Is there a directory structure I follow? Do you backup the keys as well? Are there keys that I need to write down by hand? Should I use a cloud service like bitwarden secrets manager? Could I host something?

    Im ignorant on this matter. The most I've done is add ssh keys to git forges and use ssh-copyid. But I've always been able to access what I need to without keeping those (I login to the web interface.) Can you share with me best practices or what you do to manage non-password secrets?

    Nix / NixOS @programming.dev
    rutrum @lm.paradisus.day

    NixOS module or docker container?

    If given the option, which route do you go? I have services running in both, and I'll often just do whats easier. I dont really notice a different in performance the configuration for containers is simple enough I don't mind it.

    I also wish there was a nix function that parsed a docker compose and used it for the oci-container config. Then I could use my existing compose files or the ones I find in docs online.

    Nix / NixOS @programming.dev
    rutrum @lm.paradisus.day

    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

    NixOS @infosec.pub
    rutrum @lm.paradisus.day

    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 p

    Linux @lemmy.ml
    rutrum @lm.paradisus.day

    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:

     undefined
        
    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:

     undefined
        
    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:

     undefined
        
    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:

     undefined
        
    $ nvidia-smi
    Wed Jun  5 08:14:50 2024
    +--------------
      
    Selfhosted @lemmy.world
    rutrum @lm.paradisus.day

    "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.