feat: migrated mac config to separate file

This commit is contained in:
2026-07-05 11:52:48 +03:00
parent 6df8f27c0e
commit f747eb1ecd
2 changed files with 73 additions and 84 deletions
@@ -0,0 +1,71 @@
# configuration.nix
{
pkgs,
inputs,
self,
...
}: {
environment.systemPackages = [
pkgs.starship
pkgs.zoxide
pkgs.fzf
pkgs.fastfetch
pkgs.htop
pkgs.btop
pkgs.eza
pkgs.git
];
homebrew = {
enable = true;
onActivation = {
autoUpdate = true;
upgrade = true;
cleanup = "zap";
};
casks = [
"nextcloud"
"google-chrome"
"bitwarden"
"localsend"
"iterm2"
"qbittorrent"
"obsidian"
"visual-studio-code"
"ayugram"
"equinox"
];
};
nix.gc = {
automatic = true;
interval = {
Weekday = 0;
Hour = 2;
Minute = 0;
};
options = "--delete-older-than 7d";
};
nix.optimise.automatic = true;
programs.spicetify = let
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in {
enable = true;
enabledExtensions = with spicePkgs.extensions; [
adblock
beautiful-lyrics
];
};
nix.settings.experimental-features = "nix-command flakes";
system.primaryUser = "kirill";
system.configurationRevision = self.rev or self.dirtyRev or null;
system.stateVersion = 6;
nixpkgs.hostPlatform = "aarch64-darwin";
nixpkgs.config.allowUnfree = true;
}