117 lines
2.4 KiB
Nix
117 lines
2.4 KiB
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
# Définition de l'utilisateur
|
|
users.users.louisgallet = {
|
|
description = "Louis Gallet";
|
|
home = "/Users/louisgallet";
|
|
shell = pkgs.zsh;
|
|
};
|
|
|
|
# Homebrew configuration
|
|
homebrew = {
|
|
enable = true;
|
|
casks = [
|
|
"cyberduck"
|
|
"iina"
|
|
"keka"
|
|
"maccy"
|
|
"nordvpn"
|
|
"notion"
|
|
"swish"
|
|
"termius"
|
|
"mattermost"
|
|
"aldente"
|
|
"logi-options+"
|
|
"adobe-creative-cloud"
|
|
"qbittorrent"
|
|
"zoom"
|
|
"zed"
|
|
"whisky"
|
|
"visual-studio-code"
|
|
"vmware-fusion"
|
|
"pycharm"
|
|
"cleanshot"
|
|
"bartender"
|
|
"chromedriver"
|
|
"epic-games"
|
|
"alt-tab"
|
|
"busycal"
|
|
"privileges"
|
|
"jdownloader"
|
|
"raspberry-pi-imager"
|
|
"tailscale-app"
|
|
];
|
|
|
|
brews = [
|
|
"wget"
|
|
"bear"
|
|
"cmake"
|
|
"firebase-cli"
|
|
"git"
|
|
"git-flow"
|
|
"git-lfs"
|
|
"gnupg"
|
|
"llvm@18"
|
|
"gtk+3"
|
|
"pinentry-mac"
|
|
"sdl2"
|
|
"sdl2_image"
|
|
"sdl2_ttf"
|
|
"tmux"
|
|
"tree"
|
|
"zsh"
|
|
"yubikey-agent"
|
|
"pkg-config"
|
|
"serve"
|
|
];
|
|
|
|
taps = [
|
|
"hashicorp/tap"
|
|
"eranif/codelite"
|
|
"macos-fuse-t/homebrew-cask"
|
|
];
|
|
|
|
onActivation.cleanup = "uninstall";
|
|
onActivation.autoUpdate = true;
|
|
onActivation.upgrade = true;
|
|
};
|
|
|
|
# macOS system configuration
|
|
security.pam.services.sudo_local.touchIdAuth = true;
|
|
|
|
system.defaults = {
|
|
dock = {
|
|
autohide = true;
|
|
orientation = "bottom";
|
|
show-recents = false;
|
|
magnification = false;
|
|
autohide-time-modifier = 0.0;
|
|
persistent-apps = [
|
|
"/System/Applications/Launchpad.app"
|
|
"/System/Applications/Messages.app"
|
|
"/Applications/Nix Apps/Firefox.app"
|
|
"/System/Applications/Mail.app"
|
|
"/Applications/BusyCal.app"
|
|
"/Applications/Things3.app"
|
|
"/System/Applications/Music.app"
|
|
"/Applications/Nix Apps/Discord.app"
|
|
"/Applications/Zed.app"
|
|
"/Applications/Visual\\ Studio\\ Code.app"
|
|
"/Applications/Nix Apps/Warp.app"
|
|
"/System/Applications/System\\ Settings.app"
|
|
"/Applications/Privileges.app"
|
|
];
|
|
};
|
|
finder.FXPreferredViewStyle = "Nlsv";
|
|
SoftwareUpdate.AutomaticallyInstallMacOSUpdates = true;
|
|
};
|
|
|
|
programs.zsh.enable = true;
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
system.stateVersion = 5;
|
|
system.primaryUser = "louisgallet";
|
|
}
|