mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-19 10:56:05 -07:00
Compare commits
5 Commits
26b74f7d9d
...
8ee210a5aa
Author | SHA1 | Date | |
---|---|---|---|
8ee210a5aa | |||
a8222553af | |||
b18b07bd33 | |||
4afd847491 | |||
0b60793ae7 |
@ -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
|
||||
|
@ -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"; }
|
||||
|
@ -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" = {
|
||||
|
@ -1,4 +1,9 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [ ./git.nix ./chezmoi.nix ./kitty.nix ];
|
||||
imports = [
|
||||
./git.nix
|
||||
./chezmoi.nix
|
||||
./kitty.nix
|
||||
./yt-dlp.nix
|
||||
];
|
||||
}
|
||||
|
24
provision/modules/programs/yt-dlp.nix
Normal file
24
provision/modules/programs/yt-dlp.nix
Normal 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"
|
||||
'')
|
||||
];
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user