-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(nix): initial working nix-darwin config * refactor(nix): restructure nixos config * fixup! feat(nix): initial working nix-darwin config * fixup! feat(nix): initial working nix-darwin config
- Loading branch information
1 parent
a7848af
commit b9c49d1
Showing
10 changed files
with
164 additions
and
13 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{ inputs, config, pkgs, ... }: | ||
let | ||
username = (import ../../home/config.nix).user; | ||
in | ||
{ | ||
environment.systemPackages = | ||
[ | ||
pkgs.spotify | ||
pkgs.discord | ||
pkgs.xquartz | ||
]; | ||
|
||
nixpkgs.hostPlatform = "aarch64-darwin"; | ||
|
||
networking.hostName = (import ../config.nix).host; | ||
|
||
services.karabiner-elements.enable = true; | ||
|
||
users.users."${username}" = { | ||
description = username; | ||
home = "/Users/${username}"; | ||
shell = pkgs.zsh; | ||
}; | ||
|
||
# for login shell | ||
programs.zsh.enable = true; # default shell on catalina | ||
|
||
homebrew = { | ||
enable = true; | ||
casks = [ | ||
"google-chrome" | ||
"google-drive" | ||
"raycast" | ||
"rectangle" | ||
"logi-options+" | ||
"vmware-fusion" | ||
"hammerspoon" | ||
"skype" | ||
"arc" | ||
]; | ||
}; | ||
|
||
fonts.packages = with pkgs; [ | ||
(nerdfonts.override { | ||
fonts = [ | ||
"Iosevka" | ||
"JetBrainsMono" | ||
"CodeNewRoman" | ||
"Meslo" | ||
"FiraCode" | ||
"DroidSansMono" | ||
]; | ||
}) | ||
]; | ||
|
||
system = { | ||
defaults = { | ||
NSGlobalDomain = { | ||
AppleInterfaceStyle = "Dark"; | ||
NSAutomaticCapitalizationEnabled = false; | ||
"com.apple.keyboard.fnState" = true; | ||
}; | ||
dock = { | ||
largesize = 100; | ||
magnification = true; | ||
mru-spaces = false; | ||
persistent-others = [ | ||
"/Users/${username}/Documents" | ||
"/Users/${username}/Downloads" | ||
]; | ||
}; | ||
trackpad = { | ||
Dragging = true; | ||
}; | ||
finder.FXPreferredViewStyle = "icnv"; | ||
# universalaccess = { | ||
# closeViewScrollWheelToggle = true; | ||
# closeViewZoomFollowsFocus = true; | ||
# }; | ||
}; | ||
|
||
# how to only apply internal keyboard? | ||
keyboard = { | ||
enableKeyMapping = true; | ||
# swapLeftCommandAndLeftAlt = true; | ||
# swapLeftCtrlAndFn = true; | ||
}; | ||
}; | ||
|
||
# Auto upgrade nix package and the daemon service. | ||
services.nix-daemon.enable = true; | ||
|
||
# Used for backwards compatibility, please read the changelog before changing. | ||
# $ darwin-rebuild changelog | ||
system.stateVersion = 4; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.