diff --git a/cli-tools.nix b/cli-tools.nix new file mode 100644 index 0000000..51b92a6 --- /dev/null +++ b/cli-tools.nix @@ -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 + ''; +} \ No newline at end of file diff --git a/configuration.nix b/configuration.nix index 7dc1579..76a3c14 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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 - ''; } \ No newline at end of file