126 lines
2.7 KiB
Nix
126 lines
2.7 KiB
Nix
|
{ agenix, config, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
imports = [
|
||
|
./sketchybar
|
||
|
./yabai
|
||
|
./casks
|
||
|
# ../../modules/darwin/secrets.nix
|
||
|
# ../../modules/darwin/home-manager.nix
|
||
|
# ../../modules/shared
|
||
|
# ../../modules/shared/cachix
|
||
|
# agenix.darwinModules.default
|
||
|
];
|
||
|
|
||
|
environment.systemPackages = [
|
||
|
pkgs.go
|
||
|
];
|
||
|
|
||
|
# Auto upgrade nix package and the daemon service.
|
||
|
services.nix-daemon.enable = true;
|
||
|
nixpkgs.hostPlatform = "aarch64-darwin";
|
||
|
programs.zsh.enable = true;
|
||
|
|
||
|
# Setup user, packages, programs
|
||
|
nix = {
|
||
|
# package = pkgs.nixUnstable;
|
||
|
settings.trusted-users = [ "@admin" "anishlakhwara" ];
|
||
|
|
||
|
gc = {
|
||
|
user = "root";
|
||
|
automatic = true;
|
||
|
interval = { Weekday = 0; Hour = 2; Minute = 0; };
|
||
|
options = "--delete-older-than 30d";
|
||
|
};
|
||
|
|
||
|
# Turn this on to make command line easier
|
||
|
extraOptions = ''
|
||
|
experimental-features = nix-command flakes
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
# Turn off NIX_PATH warnings now that we're using flakes
|
||
|
system.checks.verifyNixPath = false;
|
||
|
|
||
|
# Load configuration that is shared across systems
|
||
|
# environment.systemPackages = with pkgs; [
|
||
|
#
|
||
|
# ] ++ (import ../../modules/shared/packages.nix { inherit pkgs; });
|
||
|
|
||
|
# Enable fonts dir
|
||
|
fonts.fontDir.enable = true;
|
||
|
fonts.fonts = with pkgs; [
|
||
|
fira-code
|
||
|
fira-code-symbols
|
||
|
hermit
|
||
|
#hack
|
||
|
siji
|
||
|
font-awesome
|
||
|
proggyfonts
|
||
|
(nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" "Iosevka" ]; })
|
||
|
];
|
||
|
|
||
|
system = {
|
||
|
stateVersion = 4;
|
||
|
|
||
|
keyboard = {
|
||
|
enableKeyMapping = true;
|
||
|
};
|
||
|
|
||
|
defaults = {
|
||
|
LaunchServices = {
|
||
|
LSQuarantine = false;
|
||
|
};
|
||
|
|
||
|
NSGlobalDomain = {
|
||
|
AppleShowAllExtensions = true;
|
||
|
ApplePressAndHoldEnabled = false;
|
||
|
|
||
|
# 120, 90, 60, 30, 12, 6, 2
|
||
|
KeyRepeat = 2;
|
||
|
|
||
|
# 120, 94, 68, 35, 25, 15
|
||
|
InitialKeyRepeat = 15;
|
||
|
|
||
|
"com.apple.mouse.tapBehavior" = 1;
|
||
|
"com.apple.sound.beep.volume" = 0.0;
|
||
|
"com.apple.sound.beep.feedback" = 0;
|
||
|
};
|
||
|
|
||
|
loginwindow = {
|
||
|
# disable guest account
|
||
|
GuestEnabled = false;
|
||
|
# show name instead of username
|
||
|
SHOWFULLNAME = false;
|
||
|
};
|
||
|
|
||
|
dock = {
|
||
|
autohide = true;
|
||
|
autohide-delay = 0.0;
|
||
|
autohide-time-modifier = 1.0;
|
||
|
static-only = false;
|
||
|
showhidden = false;
|
||
|
show-recents = false;
|
||
|
launchanim = true;
|
||
|
mouse-over-hilite-stack = true;
|
||
|
orientation = "bottom";
|
||
|
tilesize = 48;
|
||
|
};
|
||
|
|
||
|
finder = {
|
||
|
_FXShowPosixPathInTitle = false;
|
||
|
};
|
||
|
|
||
|
trackpad = {
|
||
|
Clicking = false;
|
||
|
TrackpadThreeFingerDrag = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
# keyboard = {
|
||
|
# enableKeyMapping = true;
|
||
|
# remapCapsLockToControl = true;
|
||
|
# };
|
||
|
};
|
||
|
}
|