cally [he/they]

what are you doing in my lemmy profile

  • 2 Posts
  • 135 Comments
Joined 3 years ago
cake
Cake day: September 14th, 2023

help-circle

  • It’s there to solve your “This is boring” issue without having to do all of the system configuration stuff manually*.

    I was able to package a nightly AppImage as if it were installed normally like an app, and I could reinstall the system if I wanted to, and it’d still be there. NixOS is the opposite of manual dependency resolution, it’s dependency heaven. You can have unstable and stable repositories side-by-side, living in a utopic egalitarian society. You can write a configuration file that does everything. You can do anything with NixOS. NixOS is the one true god, all hail NixOS—

    Ah, I see why you may not want to use it. Consider it though, it’s genuinely good and trying doesn’t hurt.

    I haven’t even told you about nix-comma or nix helper (nh) yet. May the, uh, flake be with you.

    *You do have to write the config files, though you can just adapt someone else’s configuration.














  • The answer is simple: when I used Debian, I was just starting out with Linux and didn’t mess with systemctl at all. It was an ok beginner experience (I’d already used Mint before trying Debian, so I was at more of an intermediate level) but I probably wouldn’t like it as much nowadays.

    I like the idea of using different software for different things, why do systemd timers exist when there’s already crontab, for example?

    Meanwhile, I mostly used Arch on my server where I had to deal with all the systemd stuff, which was rarely useful for my purposes.






  • perhaps i too will post code on the internet

    here is a shell script i wrote for automating filenames for markdown files (blog posts):

    code
    #!/bin/sh
    set -e
    
    datecmd="date +%Y-%m-%d"
    
    if [ -z "$1" ]; then
      printf "Post title: " >&2
      read -r title
    else
      title="$1"
    fi
    
    file="$($datecmd)_$title.md"
    
    if [ -f "$file" ]; then
      printf "Error: post '$file' already exists.\n" >&2
      exit 1
    fi
    
    ${EDITOR:-nano} "$file"
    

    im not sure why i made it since i could just look at what date it is and write it down manually in the file name, but i felt like doing that as a quick hack