add rustup
This commit is contained in:
parent
f312d1a1e9
commit
660667afa2
24
flake.nix
24
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;
|
||||
|
Loading…
Reference in New Issue
Block a user