-
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: Darwin configuration for persephone
- Loading branch information
1 parent
29f250d
commit 57996a0
Showing
11 changed files
with
95 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ darwin, specialArgs }: { | ||
persephone = darwin.lib.darwinSystem { | ||
modules = [ ./persephone ]; | ||
inherit 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ pkgs, self, inputs, keys, ... }: { | ||
imports = [ self.darwinModules.personal ]; | ||
|
||
home-manager.users.nikita = import ./nikita.nix; | ||
nixpkgs.hostPlatform = "aarch64-darwin"; | ||
|
||
users.users.nikita = { | ||
name = "nikita"; | ||
home = "/Users/nikita"; | ||
}; | ||
|
||
networking.hostName = "persephone"; | ||
} |
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,10 @@ | ||
{ self, lib, config, pkgs, keys, ... }: { | ||
imports = [ self.homeModules.personal ]; | ||
|
||
personal.vscode.enable = true; | ||
personal.cluster-admin.enable = true; | ||
|
||
home.stateVersion = "23.11"; | ||
|
||
personal.git.signingKey = keys.nikita_persephone; | ||
} |
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 @@ | ||
{ personal = ./personal; } |
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 @@ | ||
{ self, inputs, keys, ... }: { | ||
imports = [ inputs.home-manager.darwinModules.home-manager ]; | ||
|
||
home-manager.useGlobalPkgs = true; | ||
home-manager.useUserPackages = true; | ||
home-manager.extraSpecialArgs = { inherit self inputs keys; }; | ||
|
||
nix.settings.experimental-features = "nix-command flakes"; | ||
programs.zsh.enable = true; | ||
|
||
nixpkgs.config.allowUnfree = true; | ||
system.stateVersion = 4; | ||
services.nix-daemon.enable = true; | ||
system.configurationRevision = self.rev or self.dirtyRev or null; | ||
} |
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,21 @@ | ||
{ pkgs, lib, config, ... }: { | ||
config = lib.mkIf pkgs.stdenv.isDarwin { | ||
home.activation = { | ||
aliasHomeManagerApplications = | ||
lib.hm.dag.entryAfter [ "writeBoundary" ] '' | ||
app_folder="${config.home.homeDirectory}/Applications/Home Manager Trampolines" | ||
rm -rf "$app_folder" | ||
mkdir -p "$app_folder" | ||
find "$genProfilePath/home-path/Applications" -type l -print | while read -r app; do | ||
app_target="$app_folder/$(basename "$app")" | ||
real_app="$(readlink "$app")" | ||
echo "mkalias \"$real_app\" \"$app_target\"" >&2 | ||
$DRY_RUN_CMD ${pkgs.mkalias}/bin/mkalias "$real_app" "$app_target" | ||
done | ||
''; | ||
}; | ||
|
||
# Disabling for now due to lack of SSH resident key support in MacOS's packaged SSH agent | ||
programs.git.extraConfig.commit.gpgsig = lib.mkForce false; | ||
}; | ||
} |
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