vendion

joined 4 years ago
[–] [email protected] 1 points 11 months ago (1 children)

Okay, hopefully someone here can point out where I am going wrong with setting up my dev shell the way I want. I am currently using direnv and nix-direnv to manage the dev shell, and I found this blog post which shows a way to start and stop MySQL/Mariadb but I am having some weird issues with it.

Currently my flake looks like this:

{
  description = "A basic flake with a shell";
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
  inputs.flake-utils.url = "github:numtide/flake-utils";

  outputs = { nixpkgs, flake-utils, ... }@inputs:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = nixpkgs.legacyPackages.${system};
      in
      {
        devShells.default = pkgs.mkShell {
          packages = with pkgs; [
            bashInteractive
            php
          ];

          buildInputs = [ pkgs.mariadb ];

          shellHook = ''
          export MYSQL_BASEDIR=${pkgs.mariadb}
          export MYSQL_HOME=$PWD/.direnv/mysql
          export MYSQL_DATADIR=$MYSQL_HOME/data
          export MYSQL_UNIX_PORT=$MYSQL_HOME/mysql.sock
          export MYSQL_PID_FILE=$MYSQL_HOME/mysql.pid
          alias mysql='mysql -u root'

          if [[ ! -d $MYSQL_HOME ]]; then
            mariadb-install-db --auth-root-authentication-method=normal \
              --datadir="$MYSQL_DATADIR" --basedir="$MYSQL_BASEDIR" \
              --pid-file="$MYSQL_PID_FILE"
          fi

          mariadbd --datadir=$MYSQL_DATADIR --pid-file=$MYSQL_PID_FILE \
            --socket=$MYSQL_UNIX_PORT --tmpdir='/tmp' 2>/dev/null &
          MYSQL_PID=$!
          '';
        };
      });
}

When I run it like this mariadbd starts just fine, but doesn't get backgrounded dispite the & making that shell session useless which is not what I want as I have to spawn a second shell just to do anything.

Even weirder is when I add the finish() function and the call to trap like in the blog post then mariadbd doesn't start (or starts and immedently gets killed).

[–] [email protected] 2 points 11 months ago (1 children)

Okay, that's good to know. I just wanted to make sure that if I had something like MariaDB or Postgres get installed with nix-shell that I wouldn't lose everything thus having to set everything back up next time I start the shell again.

 

I just switched one of my systems over to NixOS from Arch and so far it seems interesting. One question I had is regarding the nix-shell. So I get the basic concept of it and that it allows creating a shell that has packages installed with that shell making ideal for dev environments. I've even seen talks where the suggest nix-shells over docker/podman, my question is how is persistent data (like databases) handled?

[–] [email protected] 1 points 2 years ago

On my Laptop, Arch Linux On my desktop, FreeBSD

[–] [email protected] 1 points 2 years ago

I'm currently using Xmonad on my main Arch system, before that was Herbstluftwm. Occasionally I boot up KDE to check on how it's coming along or when i'm feeling nostalgic for what helped get me into Linux many years ago.

[–] [email protected] 1 points 2 years ago

It's nice to see that it's finally out of the closed beta, but for me it seems to be lacking in a lot of ways. I make use of identies in BitWarden, have CC data there, and use their CLI app. Hopefully Proton plans to build on Pass to help out compete with other password managers quickly.

Plus side another privacy focused security tool from someone who knows what they are doing is always welcome.

[–] [email protected] 1 points 2 years ago

I found out about Lemmy about 3 years ago in a random Reddit thread, and been mostly lurking since then.

[–] [email protected] 1 points 2 years ago

I would imagine it also due to a flaw in how Google works. From my understanding, Google incentivizes adding new features, not supporting things. So, unless you're on a team that is working on a core product, you won't get far just maintaining and fixing bugs in a product that is “feature complete”.

 

When running KDE on a Linux system there is a plasma-vault tool to allow easily creating encrypted directories using various encryption backends. Sadly it seems that plasma-vault is missing from the FreeBSD repos, including the latest repos.

Has anyone tried to build this for FreeBSD?

[–] [email protected] 2 points 3 years ago (1 children)

I actually think that neochat is more polished than Quaternion, although it also lacks e2ee and video support as of right now, but that is just my opionion.

 

With preformance gains of ~2x faster than FreeBSD-12.2-RELEASE and OpenZFS 2.0 it is shaping up to be a great release.

[–] [email protected] 1 points 4 years ago

I got mine from when I was in school, one of my friends use to draw comics and made a character based of each of his friends and this was the name of my character.

[–] [email protected] -2 points 4 years ago

I really enjoy Bryan Lunduke although his content is more tech news than anything. What got me into his content was the talks he does at confernces https://www.youtube.com/playlist?list=PLgkr4-AWobWGhF7VnxjHmKkIgGnrOV0BL

 
[–] [email protected] 1 points 4 years ago

I'm very much for this idea, and sounds similar to what other projects have. So that this will have a :thumbs up: from me.

A few questions I have, that hopefully you already have answers for:

  • Based on the section for "Removing members" assuming that a member doesn't do any of the three listed items for removal (they stay active, abide by the rules for being part of the council, and doesn't do anything that will cause a vote for their dissmissal) and assuming someone doesn't step down. Is their place in the council perminate or will there be a regular vote for current members to stay in the council?
  • Exactly who are the ones that does the voting to add/dismiss people from the council? Is this internal to the current council members or the greater Lemmy community?
  • If there is a member of the council, who has not done anything to trigger a vote for dismissal by the council, but the greater community feels doesn't have the communities best interests in mind is there any way for non-council members to take action?
  • How do you plan to quantitate the time someone spends promoting Lemmy or "doing other things that aim to improve Lemmy as a whole" (which is vague IMO)?

Part of why I bring this up is looking at some other projects that have something similar (I'll list two that have different apporaches here but there certainly are others):

FreeBSD Core Team

All seats of the core team is up for elections during the election period.

Who can announce their intention to run

Any FreeBSD commiter can announce their intention to run during a set period. Current members of the Core team can also announce their intention to run again during this period

When elections take place

Elecitions happen every 2 years

Who has the ability to vote

Any active commiters to the project

What to do if there is an issue with a member of the core team

The greater FreeBSD community can raise issues to a member of the Core Team where it gets handled internally and the results are made public after a disission has been made.

Drupal Board of Directors

The Drupal project has two "At-Large" seats set aside for the greater community.

Who can announce their intention to run

Any community member can announce their intention to run, including the current seat holder.

When elections take place

Each seat is up for elections every other year in a rotating basis, so there is an election each year for one of the seats.

Who has the ability to vote

Any one within the Drupal community

What to do if there is an issue with one of the "At-Large" seat holders

The greater Drupal community can raise issues to the Board of Directors where it gets handled internally and the results are made public after a disission has been made.

 

Hello all,

Glad to see that there is already a FreeBSD, and greater BSD, community already created on Lemmy. Although with 40 subscribers and the last post here being almost a month old let's try and get this community rolling. To that end I pose the following question: What is your FreeBSD setup like?

For me I have a few FreeBSD boxes that I use. I have a general use desktop with herbstluftwm running where I do most non-work related things. I also have a small server that I use mainly for building a few ports that I maintain, and trying to get more into maintaining/contributing to other ports. I also have a Bhyve VM here running a dev version of PacBSD (kind of a defunct project sadly, but do intend to try and kick it off again). I also have a FreeBSD VM running on DigitalOcean which hosts my personal website and runs ZNC (toying with the idea of replacing this with a Matrix <-> IRC bridge as I experiment more with Matrix). I also have a FreeNAS box where I store most of my media (Music, TV shows, Movies, etc) that I access either with NFS to play locally on another box or through Emby.

view more: next ›