72 lines
1.2 KiB
Nix
72 lines
1.2 KiB
Nix
# 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;
|
|
}
|