nest config and add agenix
This commit is contained in:
@@ -1,63 +1,67 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
home,
|
||||||
|
inputs,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
config = {
|
||||||
nix = {
|
nix = {
|
||||||
package = pkgs.nix;
|
package = pkgs.nix;
|
||||||
settings = {
|
settings = {
|
||||||
substituters = [
|
substituters = [
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
"https://cache.nixos.org"
|
"https://cache.nixos.org"
|
||||||
];
|
];
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||||
];
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
home.packages = [
|
||||||
home.packages = [
|
# pkgs.dive
|
||||||
# pkgs.dive
|
pkgs.entr
|
||||||
pkgs.entr
|
pkgs.jq
|
||||||
pkgs.jq
|
pkgs.just
|
||||||
pkgs.just
|
pkgs.rsync
|
||||||
pkgs.rsync
|
pkgs.claude-code
|
||||||
pkgs.claude-code
|
pkgs.dive
|
||||||
pkgs.dive
|
pkgs.cachix
|
||||||
pkgs.cachix
|
pkgs.ouch
|
||||||
pkgs.ouch
|
inputs.agenix.packages.aarch64-darwin.default # this should be using ${home} but it doesn't seem to be working
|
||||||
];
|
];
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
JAVA_HOME = "/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home";
|
JAVA_HOME = "/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home";
|
||||||
ANDROID_HOME = "$HOME/Library/Android/sdk";
|
ANDROID_HOME = "$HOME/Library/Android/sdk";
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionPath = [
|
home.sessionPath = [
|
||||||
"$ANDROID_HOME/emulator"
|
"$ANDROID_HOME/emulator"
|
||||||
"$ANDROID_HOME/platform-tools"
|
"$ANDROID_HOME/platform-tools"
|
||||||
"/opt/homebrew/bin"
|
"/opt/homebrew/bin"
|
||||||
];
|
];
|
||||||
|
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
nushell.enable = true;
|
nushell.enable = true;
|
||||||
neovim.enable = true;
|
neovim.enable = true;
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
gpgProgram = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign";
|
gpgProgram = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign";
|
||||||
signingKey = "~/.ssh/yadunut_ed25519.pub";
|
signingKey = "~/.ssh/yadunut_ed25519.pub";
|
||||||
};
|
};
|
||||||
|
|
||||||
targets.darwin = {
|
targets.darwin = {
|
||||||
defaults."com.apple.dock".autohide = true;
|
defaults."com.apple.dock".autohide = true;
|
||||||
defaults."com.apple.finder".AppleShowAllFiles = true;
|
defaults."com.apple.finder".AppleShowAllFiles = true;
|
||||||
defaults.NSGlobalDomain.AppleShowAllExtensions = true;
|
defaults.NSGlobalDomain.AppleShowAllExtensions = true;
|
||||||
defaults.NSGlobalDomain.KeyRepeat = 2;
|
defaults.NSGlobalDomain.KeyRepeat = 2;
|
||||||
defaults.NSGlobalDomain.ApplePressAndHoldEnabled = false;
|
defaults.NSGlobalDomain.ApplePressAndHoldEnabled = false;
|
||||||
|
};
|
||||||
|
home.stateVersion = "23.11"; # Please read the comment before changing.
|
||||||
|
programs.home-manager.enable = true;
|
||||||
};
|
};
|
||||||
home.stateVersion = "23.11"; # Please read the comment before changing.
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user