New to NixOS and have a question on Nix Shell
  • vendion vendion Now 100%

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

    1
  • New to NixOS and have a question on Nix Shell
  • vendion vendion Now 100%

    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.

    1
  • 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?

    19
    12
    What operating system do you use on your main computer?
  • vendion vendion Now 100%

    On my Laptop, Arch Linux On my desktop, FreeBSD

    1
  • What DEs are people using?
  • vendion vendion Now 100%

    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.

    2
  • Proton Pass has been released to everyone (out of beta)!
  • vendion vendion Now 100%

    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.

    2
  • how did you find out about Lemmy?
  • vendion vendion Now 100%

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

    1
  • Google Domains shutting down, assets sold and being migrated to Squarespace
  • vendion vendion Now 100%

    Thanks for the tip, I pinged them on Mastodon as well.

    2
  • Google Domains shutting down, assets sold and being migrated to Squarespace
  • vendion vendion Now 100%

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

    2
  • Google Domains shutting down, assets sold and being migrated to Squarespace
  • vendion vendion Now 100%

    The selection of TLDs Cloudflare supports is weird. I checked them out earlier, and they list .dev as “coming soon” even though it was made publicly available in 2019. This makes Cloudflare a non-option for me as I have a handful of .dev domains I would need to transfer somewhere.

    1
  • Google Domains shutting down, assets sold and being migrated to Squarespace
  • vendion vendion Now 100%

    Does Namecheap still charge for WHOIS Guard and DNSSEC? That was one of the things I liked about Google Domains, they were free.

    2
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearFR
    FreeBSD vendion Now 100%
    Anyone tried to get plasma-vaults to work on FreeBSD

    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?

    4
    1
    *Permanently Deleted*
  • vendion vendion Now 100%

    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.

    2
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearFR
    Jump
    FreeBSD 13.0-BETA shaping up to be a great release
  • vendion vendion Now 100%

    I don't think it would make it into the base system, but reading through this https://github.com/AppImage/AppImageKit/issues/98 it looks like there is work being done to make appimage work under FreeBSD including some fixes to Linuxulator in 13.0 that should help.

    1
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearFR
    FreeBSD vendion Now 100%
    FreeBSD 13.0-BETA shaping up to be a great release
    https://phoronix.com/scan.php?page=article&item=freebsd-13-beta1&num=1

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

    6
    -2
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearME
    Metal Now
    Jump
    Pantera "Cowboys From Hell" - hurdy gurdy & drums cover - Guilhem Desq
  • vendion vendion Now 100%

    I have seen a lot of song covers using a Hurdy Gurdy, but this guy is down right impressive!

    1
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearBS
    Jump
    *Permanently Deleted*
  • vendion vendion Now 100%

    I never used DragonflyBSD, but the lack of https for image downloads and lack of a GPG signature file seems like a huge concern. Even more concerning is if this page is correct it looks like they may also default to http for their repos.

    All of these are easily fixable issues, getting a certificate from Let's Encrypt or some other CA if they have the budget for it, creating a detached signature for their installer images before uploading it to their server(s). I don't know any DragonflyBSD devs, so I would say reach out on their mailing list or open a bug in their issue tracker about these.

    The plus side is it looks like their ports tree is hosted on GitHub so it's probably safe to say those are fetched in a secure way.

    3
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearFR
    Jump
    *Permanently Deleted*
  • vendion vendion Now 100%

    I wouldn't say there is a catch to the FreeBSD Journal, it is done as a free service by the FreeBSD Foundation as a way to help advance FreeBSD awareness and a way to help keep people up-to date with what is going on in FreeBSD world.

    While the FreeBSD Journal is now offered for free (this happened early last year) if you do like it, please consider donating to the FreeBSD Foundation which will help the foundation out in many ways.

    For more general BSD news there is also BSD Magazine which offers free issues as well as paid subscriptions that includes more issues and workshops and tutorials.

    2
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearFR
    Jump
    *Permanently Deleted*
  • vendion vendion Now 100%

    Vermaden's blog is largely focused around BSD news and howtos including his guide to using FreeBSD for a desktop machine. There is also DiscoverBSD https://discoverbsd.com/ which has various things added to it.

    While it's a newsletter rather than RSS feed driven there is also https://bsdweekly.com/ that pulls together items posted to DiscoverBSD into a weekly newsletter.

    3
  • Arch Linux keeps on consuming space.
  • vendion vendion Now 100%

    You can set SystemD's journal to use a smaller size if that helps, as by default is can grow to be fairly large. https://wiki.archlinux.org/index.php/Systemd/Journal#Journal_size_limit

    Also may be worth manually cleaning old logs from the journal, seeing as your journal is already almost 400 MiB in size https://wiki.archlinux.org/index.php/Systemd/Journal#Clean_journal_files_manually

    If you have not already I also recommend adding a hook to pacman to automatically run paccache to clear out old packages from /var/cache/pacman/pkg/ an example of such a hook can be found here https://bbs.archlinux.org/viewtopic.php?pid=1694743#p1694743 I usually keep the last 2 packages around incase something is broken with a newer version and need to rollback.

    2
  • I'm thinking of getting a laptop with linux pre-installed, any advice?
  • vendion vendion Now 100%

    Even if they go with a new Thinkpad Lenovo (if you trust them) is working towards offering Thinkpads with your choice of either Ubuntu, RHEL, or Fedora preinstalled as well as upstreaming any driver modifications to the Linux kernel which is great if you ever need to reinstall the OS or decide to install a different distro on the machine 1.

    I have a P50 myself and love it, even though it's a few years old now it is still running strong. Other than that I have a couple of friends that purchased a Dell that came with Ubuntu preinstalled and they seem like great machines. Due to their bulk I'm usually hesitant to recommend System76 machines unless you know what you are getting into.

    3
  • Ryzen cpu?
  • vendion vendion Now 100%

    I have a Ryzen 7 1700 on my desktop machine and have had no issues with it.

    2
  • What's the story behind your username?
  • vendion vendion Now 100%

    Sadly I do not.

    1
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearLE
    Lemmy Support vendion Now 100%
    Notifications are unreadable using the vaporwave-dark theme

    I'm currently using the vaporwave-dark theme and for the most part things are good expect for the notification pop up when someone replies to a comment that I made. I end up with lightly colored text on a white background like in the screenshot I provided.

    2
    0
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearUN
    Unixporn vendion Now 100%
    Herbstluftwm + FreeBSD
    imgur.com

    + **OS**: Freebsd 12.1-RELEASE + **WM**: Herbstulftwm + **Wallpaper**: https://wallhaven.cc/w/vgv3j3 + **GTK Theme**: [Paper](https://snwh.org/paper) + **KDE Theme**: Breeze + **Icons**: KDE: Breeze GTK: Paper + **Panel**: [Lemonbar](https://github.com/LemonBoy/bar)

    3
    0
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearFR
    FreeBSD vendion Now 87%
    This community seems pretty stale, lets try and get some discussion going.

    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.

    6
    11
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearLE
    Lemmy Support vendion Now 100%
    User theme settings does not seem to stick

    I'm still new to Lemmy, learned about it from the AMA on /r/linux on Reddit, and so far it's a pretty cool concept but with one minor annoyance so far. While I generally prefer dark themes I wanted to play around with other themes that are available. The theme does infact change but if I close the tab with Lemmy open and come back, or open Lemmy in a different browser (and login), and even a diffrent computer, the theme reverts back to the default one. Is this a known issue?

    3
    4
    vendion Now
    7 47

    vendion

    vendion@ lemmy.ml