[-] neoney@lemmy.world 5 points 10 months ago
[-] neoney@lemmy.world 3 points 2 years ago

That’s not Rust though…

[-] neoney@lemmy.world 4 points 2 years ago

Ahh, the Oracle firewall, always annoys me for some reason...

[-] neoney@lemmy.world 2 points 2 years ago

Should work fine. I really recommend installing the nix package manager on your current distro to play with the language and how it works, I did it on arch to get familiar and it has been really helpful.

[-] neoney@lemmy.world 3 points 2 years ago

I should upgrade my account then. My bank allows me to generate internet credit cards with a money limit, which I can just set to 0 B)

[-] neoney@lemmy.world 5 points 2 years ago

can’t wait for a Catppuccin theme, maybe I should make one🧐

[-] neoney@lemmy.world 2 points 2 years ago

Good luck getting through spam filters

[-] neoney@lemmy.world 3 points 2 years ago

Let’s hope this helps.

[-] neoney@lemmy.world 2 points 2 years ago

Thanks, I’ll hope to not use docker though - planning to run NixOS, which has a module for it.

Just double checked, the nixpkgs for lemmy-ui and lemmy-server have aarch64-linux support B)

21

I have an Oracle Always Free VPS. 4 ARM Ampere A1 vCPUs, 24GB RAM, 200GB storage. Will this be a good fit as a server for a Lemmy instance? Are there any issues with hosting Lemmy on aarch64?

[-] neoney@lemmy.world 2 points 2 years ago* (last edited 2 years ago)

For me, NixOS is like someone took the archwiki and made a distro with it. I can just do

services.lemmy = {
  enable = true;
  settings = {
    hostname = "lemmy.union.rocks";
    database.createLocally = true;
  };
  caddy.enable = true;
}

in my system config (example from Nix manual). It will install lemmy, install caddy, start lemmy backend on port 8536, frontend on 1234, expose it with a caddy reverse proxy to that hostname, and initialize a postgres database. This is also reproducible across systems, so it's pretty much guaranteed to work the same on one PC and on another.

This is very useful, because some programs require some more configuration, and this can remove the need to know where to put their config files, their package names, systemd service names from your head. It's all in there.

Also, when I fuck something up... when changing the config, it makes a new boot entry with it, so when booting I can just press arrow down when booting to select an older, working config. Magic.

Packages are also nicely separated from each other. I don't have to install stuff globally, when I need a program one time I can just do nix shell nixpkgs#audacity and have an ephemeral shell with the package installed.

There are (optiona) binary caches, so you practically don't have to compile anything from source when updating your system.

I have all my configuration on GitHub, like a lot of people, which makes it easy to share information.

A con is that when a program hasn't been packaged for NixOS (whether it's in nixpkgs or has a flake.nix in the repo), it's not that easy to use it, so learning to write derivations (packages) for NixOS is pretty much a must have.

Also another must have is being in some community that uses NixOS, because it is really hard to learn without someone to help and guide you IMO.

Worth it though

1
submitted 2 years ago by neoney@lemmy.world to c/nixos@infosec.pub

cross-posted from: https://lemmy.world/post/63788

Hi, I want to share with you the way I figured out to easily archive reddit content with ArchiveTeam Warrior on NixOS. You can set it up fully in nix config!

Okay, first of all, you'll need to enable docker or podman. I chose podman here:

virtualisation.podman = {
  enable = true;
  dockerCompat = true;

  defaultNetwork.settings.dns_enabled = true;
};

After that, all you have to do is run the docker image! Here's how I do it with podman:

virtualisation.oci-containers.backend = "podman";
virtualisation.oci-containers.containers = {
  archive-team-warrior = {
    image = "atdr.meo.ws/archiveteam/reddit-grab";
    autoStart = true;
    cmd = ["YOUR_USERNAME_HERE_FOR_LEADERBOARD"];
    extraOptions = ["--network=host"];
  };
};

This doesn't start the full ArchiveTeam Warrior, but only the reddit grabber. That means you get no website to manage it at port 8001, and it just runs in the background, not disturbing you. I think it's worth it to add these 14 LOC to your system configuration, to help archive reddit.

[-] neoney@lemmy.world 3 points 2 years ago

Not much. I have a searxng instance, used to have nextcloud… I should start hosting more stuff really soon

[-] neoney@lemmy.world 2 points 2 years ago

Let's hope they account for that, but I doubt anything that has already been backed up will be deleted.

13
submitted 2 years ago* (last edited 2 years ago) by neoney@lemmy.world to c/technology@beehaw.org

Hi, I want to share with you the way I figured out to easily archive reddit content with ArchiveTeam Warrior on NixOS. You can set it up fully in nix config!

Okay, first of all, you'll need to enable docker or podman. I chose podman here:

virtualisation.podman = {
  enable = true;
  dockerCompat = true;

  defaultNetwork.settings.dns_enabled = true;
};

After that, all you have to do is run the docker image! Here's how I do it with podman:

virtualisation.oci-containers.backend = "podman";
virtualisation.oci-containers.containers = {
  archive-team-warrior = {
    image = "atdr.meo.ws/archiveteam/reddit-grab";
    autoStart = true;
    cmd = ["YOUR_USERNAME_HERE_FOR_LEADERBOARD"];
    extraOptions = ["--network=host"];
  };
};

This doesn't start the full ArchiveTeam Warrior, but only the reddit grabber. That means you get no website to manage it at port 8001, and it just runs in the background, not disturbing you. I think it's worth it to add these 14 LOC to your system configuration, to help archive reddit.

view more: next ›

neoney

joined 2 years ago