From 660667afa245257810167c628cc304f97106a592 Mon Sep 17 00:00:00 2001 From: Triston Armstrong Date: Mon, 4 Nov 2024 12:32:50 +0700 Subject: [PATCH] add rustup --- flake.nix | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 8539c03..b6e4308 100644 --- a/flake.nix +++ b/flake.nix @@ -17,6 +17,8 @@ # allows unfree packages like discord nixpkgs.config.allowUnfree = true; + + # ---- ADD NIX APPS HERE ------ environment.systemPackages = [ pkgs.vim @@ -28,12 +30,15 @@ pkgs.nodejs_22 pkgs.gnupg pkgs.pinentry_mac + pkgs.rustup ]; + # ---- ADD FONTS CONFIGS HERE ------ fonts.packages = [ (pkgs.nerdfonts.override { fonts = ["JetBrainsMono"]; }) ]; + # ---- THIS JUST MOVES NIX APPS ------ system.activationScripts.applications.text = let env = pkgs.buildEnv { name = "system-applications"; @@ -41,7 +46,7 @@ pathsToLink = "/Applications"; }; in - pkgs.lib.mkForce '' + pkgs.lib.mkForce /*bash*/'' # Set up applications. echo "setting up /Applications..." >&2 rm -rf /Applications/Nix\ Apps @@ -54,6 +59,7 @@ done ''; + # ---- ADD HOMEBREW APPS HERE ------ homebrew = { enable = true; casks = [ @@ -67,6 +73,22 @@ 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. services.nix-daemon.enable = true; # nix.package = pkgs.nix;