Working nix-darwin config from this Mac
This commit is contained in:
32
cli-tools.nix
Normal file
32
cli-tools.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.shellAliases = {
|
||||
yt = "yt-dlp";
|
||||
ll = "ls -la";
|
||||
};
|
||||
|
||||
environment.etc."gitconfig".text = ''
|
||||
[user]
|
||||
name = Brian Nelson
|
||||
email = brian@briannelson.dev
|
||||
[init]
|
||||
defaultBranch = main
|
||||
'';
|
||||
|
||||
environment.etc."yt-dlp.conf".text = ''
|
||||
-o /Users/briannelson/Downloads/yt-dlp/%(title)s.%(ext)s
|
||||
--no-mtime
|
||||
--restrict-filenames
|
||||
--embed-thumbnail
|
||||
--embed-metadata
|
||||
--format "bestvideo[height<=1080]+bestaudio/best[height<=1080]"
|
||||
--merge-output-format mp4
|
||||
'';
|
||||
|
||||
system.activationScripts.postActivation.text = ''
|
||||
if [ -x /opt/homebrew/bin/defaultbrowser ]; then
|
||||
sudo -u briannelson /opt/homebrew/bin/defaultbrowser librewolf || echo "could not set deffault browser, skipping"
|
||||
fi
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user