Split out packages to be per user

This commit is contained in:
2024-12-04 09:59:13 -08:00
parent 99d7f5df02
commit 80e0ab6b36
3 changed files with 97 additions and 70 deletions

View File

@@ -18,74 +18,9 @@
# List packages installed in system profile. To search by name, run: # List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget # $ nix-env -qaP | grep wget
environment.systemPackages = environment.systemPackages = [
[ pkgs.vim
pkgs.fastfetch ];
pkgs.coreutils
pkgs.nmap
pkgs.openjdk17
pkgs.openjdk21
pkgs.tree
pkgs.zstd
# zsh plugins
pkgs.zsh-autosuggestions
pkgs.zsh-syntax-highlighting
];
homebrew = {
enable = true;
casks = [
"appcleaner"
"balenaetcher"
"bambu-studio"
"daisydisk"
"discord"
"docker"
"firefox"
"font-sf-mono"
"iina"
"istat-menus"
"iterm2"
"obsidian"
"ollama"
"prismlauncher"
"protonvpn"
"qbittorrent"
"raspberry-pi-imager"
"raycast"
"rectangle"
"scroll-reverser"
"sf-symbols"
"steam"
"utm"
"visual-studio-code"
];
brews = [
"mas"
];
masApps = {
"Broadcasts" = 1469995354;
"Callsheet" = 1672356376;
"Developer" = 640199958;
"Flighty" = 1358823008;
"Infuse" = 1136220934;
"Noir" = 1592917505;
"Numbers" = 409203825;
"Overcast" = 888422857;
"Pages" = 409201541;
"SponsorBlock" = 1573461917;
"TestFlight" = 899247664;
"TheUnarchiver" = 425424353;
"Unread" = 1363637349;
"WiFiMan" = 1385561119;
"Wipr2" = 1662217862;
"WireGuard" = 1451685025;
"Xcode" = 497799835;
};
onActivation.cleanup = "zap";
onActivation.autoUpdate = true;
onActivation.upgrade = true;
};
# 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;
@@ -123,13 +58,62 @@
}; };
in in
{ {
# Build darwin flake using:
# $ darwin-rebuild build --flake .#simple
darwinConfigurations."macbook" = nix-darwin.lib.darwinSystem { darwinConfigurations."macbook" = nix-darwin.lib.darwinSystem {
modules = [ modules = [
configuration configuration
nix-homebrew.darwinModules.nix-homebrew nix-homebrew.darwinModules.nix-homebrew
{ {
homebrew = {
enable = true;
casks = [
"appcleaner"
"balenaetcher"
"bambu-studio"
"daisydisk"
"discord"
"docker"
"firefox"
"font-sf-mono"
"iina"
"istat-menus"
"iterm2"
"obsidian"
"ollama"
"prismlauncher"
"protonvpn"
"qbittorrent"
"raspberry-pi-imager"
"raycast"
"rectangle"
"scroll-reverser"
"sf-symbols"
"steam"
"utm"
"visual-studio-code"
];
masApps = {
"Broadcasts" = 1469995354;
"Callsheet" = 1672356376;
"Developer" = 640199958;
"Flighty" = 1358823008;
"Infuse" = 1136220934;
"Noir" = 1592917505;
"Numbers" = 409203825;
"Overcast" = 888422857;
"Pages" = 409201541;
"SponsorBlock" = 1573461917;
"TestFlight" = 899247664;
"TheUnarchiver" = 425424353;
"Unread" = 1363637349;
"WiFiMan" = 1385561119;
"Wipr2" = 1662217862;
"WireGuard" = 1451685025;
"Xcode" = 497799835;
};
onActivation.cleanup = "zap";
onActivation.autoUpdate = true;
onActivation.upgrade = true;
};
nix-homebrew = { nix-homebrew = {
enable = true; enable = true;
enableRosetta = true; enableRosetta = true;
@@ -152,6 +136,27 @@
configuration configuration
nix-homebrew.darwinModules.nix-homebrew nix-homebrew.darwinModules.nix-homebrew
{ {
homebrew = {
enable = true;
casks = [
"appcleaner"
"balenaetcher"
"daisydisk"
"firefox"
"font-sf-mono"
"iina"
"istat-menus"
"iterm2"
"obsidian"
"raycast"
"rectangle"
"scroll-reverser"
"visual-studio-code"
];
onActivation.cleanup = "zap";
onActivation.autoUpdate = true;
onActivation.upgrade = true;
};
nix-homebrew = { nix-homebrew = {
enable = true; enable = true;
enableRosetta = true; enableRosetta = true;

View File

@@ -6,6 +6,17 @@
home.username = "smparkin"; home.username = "smparkin";
home.homeDirectory = "/Users/smparkin"; home.homeDirectory = "/Users/smparkin";
# nix packages
home.packages = [
pkgs.fastfetch
pkgs.coreutils
pkgs.nmap
pkgs.tree
# zsh plugins
pkgs.zsh-autosuggestions
pkgs.zsh-syntax-highlighting
];
# This value determines the Home Manager release that your # This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage # configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards # when a new Home Manager release introduces backwards

View File

@@ -6,6 +6,17 @@
home.username = "parkist"; home.username = "parkist";
home.homeDirectory = "/Users/parkist"; home.homeDirectory = "/Users/parkist";
# nix packages
home.packages = [
pkgs.fastfetch
pkgs.coreutils
pkgs.nmap
pkgs.tree
# zsh plugins
pkgs.zsh-autosuggestions
pkgs.zsh-syntax-highlighting
];
# This value determines the Home Manager release that your # This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage # configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards # when a new Home Manager release introduces backwards