fix: typo for config and temporarily disable dependencies

This commit is contained in:
Poby 2026-03-13 23:50:30 +09:00
parent 99de0d4f2a
commit 006eaf33be
No known key found for this signature in database
10 changed files with 471 additions and 50 deletions

View file

@ -7,10 +7,9 @@
hostName = hostname;
computerName = hostname;
localHostName = hostname;
}
};
users.users."${username}" = {
description = "Sangmin Kim";
home = "/Users/${username}";
description = username;
};

View file

@ -13,13 +13,13 @@
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
builders-user-substitutes = true;
builders-use-substitutes = true;
auto-optimise-store = false; # issue https://github.com/NixOS/nix/issues/7273
};
};
gc = {
automatic = lib.mkDefault true;
options = lib.mkDefault "--delete-older-than 7d";
gc = {
automatic = lib.mkDefault true;
options = lib.mkDefault "--delete-older-than 7d";
};
};
}

View file

@ -4,7 +4,8 @@
username,
hostname,
...
}: {
}:
{
time.timeZone = "Asia/Seoul";
system = {
@ -18,13 +19,14 @@
sudo -u ${username} /System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u
'';
activationScripts.applications.text = let
env = pkgs.buildEnv {
name = "system-applications";
paths = config.environment.systemPackages;
pathsToLink = "/Applications";
};
in
activationScripts.applications.text =
let
env = pkgs.buildEnv {
name = "system-applications";
paths = config.environment.systemPackages;
pathsToLink = [ "/Applications" ];
};
in
pkgs.lib.mkForce ''
# Set up applications.
echo "setting up /Applications..." >&2
@ -97,7 +99,7 @@
TrackpadFourFingerHorizSwipeGesture = 2; # swipe between full-screen applications
TrackpadFourFingerVertSwipeGesture = 2; # down for Mission Control, up for App Expose
TrackpadPinch = true;
TrackpadThreeFingerHorizSwipGesture = 0; # disable for three finger drag
TrackpadThreeFingerHorizSwipeGesture = 0; # disable for three finger drag
TrackpadThreeFingerVertSwipeGesture = 0; # disable for three finger drag
TrackpadTwoFingerDoubleTapGesture = true; # smart zoom
TrackpadTwoFingerFromRightEdgeSwipeGesture = 0;