add rustup

This commit is contained in:
Triston Armstrong 2024-11-04 12:32:50 +07:00
parent f312d1a1e9
commit 660667afa2
Signed by: tristonarmstrong
GPG Key ID: A23B48AE45EB6EFE

View File

@ -17,6 +17,8 @@
# allows unfree packages like discord # allows unfree packages like discord
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# ---- ADD NIX APPS HERE ------
environment.systemPackages = environment.systemPackages =
[ [
pkgs.vim pkgs.vim
@ -28,12 +30,15 @@
pkgs.nodejs_22 pkgs.nodejs_22
pkgs.gnupg pkgs.gnupg
pkgs.pinentry_mac pkgs.pinentry_mac
pkgs.rustup
]; ];
# ---- ADD FONTS CONFIGS HERE ------
fonts.packages = [ fonts.packages = [
(pkgs.nerdfonts.override { fonts = ["JetBrainsMono"]; }) (pkgs.nerdfonts.override { fonts = ["JetBrainsMono"]; })
]; ];
# ---- THIS JUST MOVES NIX APPS ------
system.activationScripts.applications.text = let system.activationScripts.applications.text = let
env = pkgs.buildEnv { env = pkgs.buildEnv {
name = "system-applications"; name = "system-applications";
@ -41,7 +46,7 @@
pathsToLink = "/Applications"; pathsToLink = "/Applications";
}; };
in in
pkgs.lib.mkForce '' pkgs.lib.mkForce /*bash*/''
# Set up applications. # Set up applications.
echo "setting up /Applications..." >&2 echo "setting up /Applications..." >&2
rm -rf /Applications/Nix\ Apps rm -rf /Applications/Nix\ Apps
@ -54,6 +59,7 @@
done done
''; '';
# ---- ADD HOMEBREW APPS HERE ------
homebrew = { homebrew = {
enable = true; enable = true;
casks = [ casks = [
@ -67,6 +73,22 @@
onActivation.upgrade = true; onActivation.upgrade = true;
}; };
# ---- ADD SYSTEM CONFIGS HERE ------
system.defaults = {
dock.autohide = true;
dock.persistent-apps = [
"${pkgs.alacritty}/Applications/Alacritty.app"
"/Applications/Safari.app"
"/System/Applications/Mail.app"
"/System/Applications/Calendar.app"
];
finder.FXPreferredViewStyle = "clmv";
loginwindow.GuestEnabled = false;
NSGlobalDomain.AppleICUForce24HourTime = false;
NSGlobalDomain.AppleInterfaceStyle = "Dark";
NSGlobalDomain.KeyRepeat = 2;
};
# Auto upgrade nix package and the daemon service. # Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true; services.nix-daemon.enable = true;
# nix.package = pkgs.nix; # nix.package = pkgs.nix;