-
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.
- Loading branch information
1 parent
f57bee8
commit f775f8e
Showing
11 changed files
with
195 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
root, | ||
inputs, | ||
... | ||
}: | ||
inputs.nix-darwin.lib.darwinSystem { | ||
modules = [root.nixosModules.machines.magnesium.default]; | ||
specialArgs = {}; | ||
} |
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,59 @@ | ||
{ | ||
super, | ||
root, | ||
... | ||
}: {lib, ...}: { | ||
imports = [ | ||
super.home-manager | ||
super.gui-apps | ||
# super.ruby | ||
# super.homebrew | ||
|
||
root.nixosModules.basic-packages | ||
root.nixosModules.core.modern-coreutils-replacements | ||
root.nixosModules.services.atuin | ||
|
||
# Keybinding stuff | ||
(_: { | ||
system.keyboard = { | ||
enableKeyMapping = true; | ||
remapCapsLockToEscape = true; | ||
swapLeftCtrlAndFn = true; | ||
}; | ||
}) | ||
|
||
(_: { | ||
# Allow unfree software | ||
nixpkgs.config.allowUnfree = true; | ||
|
||
# Enable Nix command and Flakes | ||
nix = { | ||
settings = { | ||
extra-experimental-features = ["nix-command" "flakes"]; | ||
extra-nix-path = "nixpkgs=flake:nixpkgs"; | ||
trusted-users = lib.mkAfter [ | ||
"giodamelio" | ||
]; | ||
|
||
# Add Devenv cachix substituter | ||
substituters = lib.mkAfter [ | ||
"https://devenv.cachix.org" | ||
]; | ||
trusted-public-keys = lib.mkAfter [ | ||
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=" | ||
]; | ||
}; | ||
}; | ||
|
||
# Used for backwards compatibility, please read the changelog before changing. | ||
# $ darwin-rebuild changelog | ||
system.stateVersion = 4; | ||
|
||
# Run the Nix Daemon | ||
services.nix-daemon.enable = true; | ||
|
||
# Make sure we get packages from the right arch | ||
nixpkgs.hostPlatform = "aarch64-darwin"; | ||
}) | ||
]; | ||
} |
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,20 @@ | ||
_: {pkgs, ...}: { | ||
environment.systemPackages = with pkgs; [ | ||
wezterm | ||
raycast | ||
]; | ||
|
||
homebrew = { | ||
enable = true; | ||
onActivation.cleanup = "uninstall"; | ||
|
||
taps = []; | ||
brews = []; | ||
casks = [ | ||
"firefox" | ||
"firefox@developer-edition" | ||
"whatsapp" | ||
"sekey" | ||
]; | ||
}; | ||
} |
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,21 @@ | ||
{ | ||
root, | ||
inputs, | ||
... | ||
}: _: { | ||
imports = [ | ||
inputs.home-manager.darwinModules.home-manager | ||
]; | ||
|
||
config = { | ||
# This is very important to make Nix Darwin and Home Manager work togather | ||
programs.zsh.enable = true; | ||
|
||
users.users.giodamelio = { | ||
home = "/Users/giodamelio"; | ||
}; | ||
home-manager.useGlobalPkgs = true; | ||
home-manager.useUserPackages = true; | ||
home-manager.users.giodamelio = root.homeModules.users.giodamelio-darwin; | ||
}; | ||
} |
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