Compare commits

...

5 Commits

5 changed files with 51 additions and 4 deletions

View File

@ -1,3 +1,17 @@
#!/usr/bin/env bash
sudo mount -t cifs -o rw,uid=$(id -u $(whoami)),gid=$(id -g $(whoami)),vers=3.0,credentials=/home/tstarr/.smb //192.168.1.175/private /home/tstarr/mnt/engi
engi_path="$HOME/mnt/engi"
if mountpoint -q "$engi_path"; then
echo "engi already mounted"
exit 0
else
sudo mount -t cifs -o rw,uid=$(id -u $(whoami)),gid=$(id -g $(whoami)),vers=3.0,credentials=/home/tstarr/.smb //torus/private ~/mnt/engi 2>/dev/null
fi
# Check drive mounted correctly
if mountpoint -q "$engi_path"; then
echo "engi successfully mounted"
else
echo "engi failed to mount"
fi

View File

@ -16,9 +16,11 @@
{ "url" = "https://www.icloud.com/"; name = "iCloud"; }
]; }
{ "name" = "Games"; "children" = [
{ "url" = "https://www.protondb.com/"; name = "ProtonDB"; }
{ "url" = "https://vimm.net/"; name = "Vimm's Lair: Preserving the Classics"; }
{ "url" = "https://www.dotabuff.com/"; name = "DOTABUFF"; }
{ "url" = "https://myrient.erista.me/"; name = "Myrient"; }
{ "url" = "https://www.protondb.com/"; name = "ProtonDB"; }
{ "url" = "https://r-roms.github.io/"; name = "Roms Megathread"; }
{ "url" = "https://vimm.net/"; name = "Vimm's Lair: Preserving the Classics"; }
]; }
{ "name" = "Homelab"; "children" = [
{ "url" = "http://localhost:8384"; name = "Syncthing"; }

View File

@ -32,6 +32,7 @@ in {
evolution # Personal information management application that provides email, calendar, and contact management features.
gnomeExtensions.focus-changer # GNOME Shell extension for changing window focus behavior.
gnomeExtensions.custom-hot-corners-extended # GNOME Shell extension for changing window focus behavior.
gnomeExtensions.alphabetical-app-grid
gnome-fullscreen-to-empty-workspace
gnome-set-panel-monitor
gnome-randr
@ -149,6 +150,7 @@ in {
"fullscreen-to-empty-workspace@aiono.dev"
"gnome-set-panel-monitor@tstarr.us"
"custom-hot-corners-extended@G-dH.github.com"
"AlphabeticalAppGrid@stuarthayhurst"
];
};
"org/gnome/shell/app-switcher" = {

View File

@ -1,4 +1,9 @@
{ ... }:
{
imports = [ ./git.nix ./chezmoi.nix ./kitty.nix ];
imports = [
./git.nix
./chezmoi.nix
./kitty.nix
./yt-dlp.nix
];
}

View File

@ -0,0 +1,24 @@
{ config, lib, pkgs, user, ... }:
let cfg = config.modules.programs.yt-dlp;
in {
options.modules.programs.yt-dlp = with lib; {
enable = lib.mkOption {
type = with types; bool;
default = true;
};
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
yt-dlp
(pkgs.writeScriptBin "ytd_audio" ''
#!/usr/bin/env bash
linux-mount-engi
yt-dlp -x \
-ciw -o "%(title)s.%(ext)s" \
--embed-thumbnail -S acodec:m4a "$1"
'')
];
};
}