moved some cli stuff to cli-tools.nix

This commit is contained in:
2026-10-20 11:13:32 -04:00
parent c9d180680d
commit f9a722aad8
2 changed files with 22 additions and 15 deletions

18
cli-tools.nix Normal file
View File

@@ -0,0 +1,18 @@
{ config, ... }:
{
environment.shellAliases = {
yt = "yt-dlp";
ll = "ls -la";
};
environment.etc."yt-dlp.conf".text = ''
-o /Users/briannelson/Downloads/yt-dlp/%(title)s.%(ext)s
--no-mtime
--restrict-filenames
--embed-thumbnails
--embed-metadata
--format "bestvideo[height<=1080]+bestaudio/best[height<=1080]"
--merge-output-format mp4
'';
}

View File

@@ -1,6 +1,10 @@
{ config, pkgs, ... }:
{
imports = [
./cli-tools.nix
];
nixpkgs.hostPlatform = "aarch64-darwin";
nix.enable = false;
@@ -47,19 +51,4 @@
"firefox"
];
};
environment.shellAliases = {
yt = "yt-dlp";
ll = "ls -la";
};
environment.etc."yt-dlp.conf".text = ''
-o /Users/briannelson/Downloads/yt-dlp/%(title)s.%(ext)s
--no-mtime
--restrict-filenames
--embed-thumbnails
--embed-metadata
--format "bestvideo[height<=1080]+bestaudio/best[height<=1080]"
--merge-output-format mp4
'';
}