moved some cli stuff to cli-tools.nix
This commit is contained in:
18
cli-tools.nix
Normal file
18
cli-tools.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
@@ -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
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user