-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
295 additions
and
177 deletions.
There are no files selected for viewing
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,29 @@ | ||
# See /modules/darwin/* for actual settings | ||
# This file is just *top-level* configuration. | ||
{ flake, ... }: | ||
|
||
let | ||
inherit (flake) inputs; | ||
inherit (inputs) self; | ||
in | ||
{ | ||
imports = [ | ||
self.darwinModules.default | ||
]; | ||
|
||
nixpkgs.hostPlatform = "aarch64-darwin"; | ||
networking.hostName = "example"; | ||
|
||
# For home-manager to work. | ||
# https://github.com/nix-community/home-manager/issues/4026#issuecomment-1565487545 | ||
users.users."runner".home = "/Users/runner"; | ||
|
||
# Enable home-manager for "runner" user | ||
home-manager.users."runner" = { | ||
imports = [ (self + /configurations/home/runner.nix) ]; | ||
}; | ||
|
||
# Used for backwards compatibility, please read the changelog before changing. | ||
# $ darwin-rebuild changelog | ||
system.stateVersion = 4; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# This is your nix-darwin configuration. | ||
# For home configuration, see /modules/home/* | ||
{ flake, pkgs, lib, ... }: | ||
|
||
let | ||
inherit (flake) inputs; | ||
inherit (inputs) self; | ||
in | ||
{ | ||
# Use TouchID for `sudo` authentication | ||
security.pam.enableSudoTouchIdAuth = true; | ||
|
||
# These users can add Nix caches. | ||
nix.settings.trusted-users = [ "root" "runner" ]; | ||
|
||
# Configure macOS system | ||
# More examples => https://github.com/ryan4yin/nix-darwin-kickstarter/blob/main/rich-demo/modules/system.nix | ||
system = { | ||
defaults = { | ||
dock = { | ||
# autohide = true; | ||
# customize Hot Corners | ||
wvous-tl-corner = 2; # top-left - Mission Control | ||
# wvous-tr-corner = 13; # top-right - Lock Screen | ||
wvous-bl-corner = 3; # bottom-left - Application Windows | ||
wvous-br-corner = 4; # bottom-right - Desktop | ||
}; | ||
|
||
finder = { | ||
_FXShowPosixPathInTitle = true; # show full path in finder title | ||
AppleShowAllExtensions = true; # show all file extensions | ||
FXEnableExtensionChangeWarning = false; # disable warning when changing file extension | ||
QuitMenuItem = true; # enable quit menu item | ||
ShowPathbar = true; # show path bar | ||
ShowStatusBar = true; # show status bar | ||
}; | ||
}; | ||
|
||
keyboard = { | ||
# enableKeyMapping = true; | ||
# remapCapsLockToControl = true; | ||
}; | ||
}; | ||
} |
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,15 @@ | ||
{ | ||
perSystem = { self', pkgs, lib, ... }: { | ||
# Enables 'nix run' to activate home-manager config. | ||
apps.default = { | ||
inherit (self'.packages.activate) meta; | ||
program = pkgs.writeShellApplication { | ||
name = "activate-home"; | ||
text = '' | ||
set -x | ||
${lib.getExe self'.packages.activate} "$USER"@ | ||
''; | ||
}; | ||
}; | ||
}; | ||
} |
Oops, something went wrong.