Update darwin configuration to use aarch64

This commit is contained in:
Dave Gallant
2022-06-21 22:57:53 -04:00
parent 0d265accf8
commit ce84f71eb0
8 changed files with 31 additions and 140 deletions

View File

@@ -24,13 +24,13 @@ in {
xdg_utils xdg_utils
zip zip
# automation # ansible
ansible # ansible
# ansible-lint
# dev productivity # # dev productivity
ansible-lint
bat bat
checkov # checkov
colordiff colordiff
drone-cli drone-cli
exa exa
@@ -40,7 +40,7 @@ in {
go-jira go-jira
hadolint hadolint
hey hey
httpie # httpie
nodePackages.eslint nodePackages.eslint
pre-commit pre-commit
shellcheck shellcheck
@@ -48,7 +48,6 @@ in {
starship starship
tldr tldr
tmux-sessionizer tmux-sessionizer
vscodium
# containers # containers
docker docker
@@ -57,36 +56,22 @@ in {
kubernetes-helm kubernetes-helm
kustomize kustomize
minikube minikube
podman
# language servers # language servers
nodePackages.bash-language-server nodePackages.bash-language-server
nodePackages.pyright nodePackages.pyright
nodePackages.yaml-language-server nodePackages.yaml-language-server
rubyPackages.solargraph
sumneko-lua-language-server sumneko-lua-language-server
# blog
hugo
# printing
ghostscript
# monitoring # monitoring
ctop ctop
glances # glances
htop htop
iotop
procs procs
# data tools # data tools
dbeaver dbeaver
# password managers
_1password
gopass
rbw
# lua # lua
lua53Packages.luacheck lua53Packages.luacheck
stylua stylua
@@ -102,11 +87,11 @@ in {
nodePackages.yarn nodePackages.yarn
# video # video
youtube-dl # youtube-dl
# networking # networking
arp-scan arp-scan
dnsutils # dnsutils
iperf iperf
nmap nmap
openssl openssl
@@ -119,14 +104,11 @@ in {
rclone rclone
restic restic
# infra tools # infra
terraform-ls terraform-ls
terraformer terraformer
tflint tflint
tfsec
/*
tfswitch tfswitch
*/
infracost infracost
# nix # nix
@@ -138,39 +120,28 @@ in {
nixpkgs-review nixpkgs-review
rnix-lsp rnix-lsp
## aws # aws
aws-connect # awscli2
aws-role-play # ssm-session-manager-plugin
aws-vault
awscli2
awslogs
ssm-session-manager-plugin
# python # python
mypy
python310 python310
python310Packages.black # python310Packages.black
python310Packages.ipython python310Packages.ipython
python310Packages.pip python310Packages.pip
python310Packages.poetry # python310Packages.poetry
python310Packages.setuptools python310Packages.setuptools
python310Packages.virtualenv python310Packages.virtualenv
# ruby # blog
rbenv hugo
rubocop
ruby_2_7
ruby_3_1
rufo
# news # news
srv srv
] ]
++ lib.optionals stdenv.isLinux [ ++ lib.optionals stdenv.isLinux [
_1password-gui
albert albert
authy authy
aws-sam-cli
bitwarden bitwarden
brave brave
calibre calibre
@@ -178,6 +149,7 @@ in {
deluge deluge
discord discord
firefox firefox
ghostscript
gimp-with-plugins gimp-with-plugins
glibcLocales glibcLocales
gnome3.gnome-tweaks gnome3.gnome-tweaks
@@ -185,6 +157,7 @@ in {
google-chrome google-chrome
guake guake
i3lock-fancy-rapid i3lock-fancy-rapid
iotop
kazam kazam
keyleds keyleds
linuxPackages.perf linuxPackages.perf
@@ -194,6 +167,7 @@ in {
nvfancontrol nvfancontrol
pavucontrol pavucontrol
pinentry-curses pinentry-curses
podman
postman postman
qemu qemu
rfd rfd
@@ -208,6 +182,7 @@ in {
usbutils usbutils
virtmanager virtmanager
vlc vlc
vscodium
wireshark-qt wireshark-qt
xautolock xautolock
yaru-theme yaru-theme

View File

@@ -91,15 +91,15 @@
}; };
darwinConfigurations = { darwinConfigurations = {
demeter = darwin.lib.darwinSystem { zelus = darwin.lib.darwinSystem {
system = "x86_64-darwin"; system = "aarch64-darwin";
modules = [ modules = [
home-manager.darwinModules.home-manager home-manager.darwinModules.home-manager
./common/darwin.nix ./common/darwin.nix
./common/packages.nix ./common/packages.nix
./machines/demeter/configuration.nix ./machines/zelus/configuration.nix
./modules/darwin/default.nix ./modules/darwin/default.nix
@@ -112,7 +112,7 @@
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;
useUserPackages = true; useUserPackages = true;
users.dave.imports = [./home/default.nix]; users."dave.gallant".imports = [./home/default.nix];
}; };
}; };
}) })

View File

@@ -114,6 +114,7 @@ in {
export PATH=$PATH:~/.cargo/bin export PATH=$PATH:~/.cargo/bin
export PATH=$PATH:~/.local/bin export PATH=$PATH:~/.local/bin
export PATH=$PATH:~/.npm-packages/bin export PATH=$PATH:~/.npm-packages/bin
export PATH=$PATH:/opt/homebrew/bin/
export PATH=$PATH:~/bin export PATH=$PATH:~/bin
export GOPATH=~/go export GOPATH=~/go
export GOBIN=$GOPATH/bin export GOBIN=$GOPATH/bin

View File

@@ -3,7 +3,7 @@
environment = {variables = {LANG = "en_US.UTF-8";};}; environment = {variables = {LANG = "en_US.UTF-8";};};
networking = {hostName = "demeter";}; networking = {hostName = "zelus";};
# Auto upgrade nix package and the daemon service. # Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true; services.nix-daemon.enable = true;

View File

@@ -20,7 +20,6 @@ in {
}; };
brews = [ brews = [
"aws-sam-cli"
"coreutils" "coreutils"
"fabianishere/personal/pam_reattach" "fabianishere/personal/pam_reattach"
"gnu-sed" "gnu-sed"
@@ -31,18 +30,17 @@ in {
]; ];
casks = [ casks = [
"1password"
"dbeaver-community" "dbeaver-community"
"font-fira-code-nerd-font" "font-fira-code-nerd-font"
"font-hack-nerd-font" "font-hack-nerd-font"
"lulu" "lulu"
"maccy" "maccy"
"osxfuse" # "osxfuse"
"rectangle" "rectangle"
"vscodium"
]; ];
taps = [ taps = [
"aws/tap"
"homebrew/bundle" "homebrew/bundle"
"homebrew/cask" "homebrew/cask"
"homebrew/cask-fonts" "homebrew/cask-fonts"

View File

@@ -1,28 +0,0 @@
{
stdenv,
lib,
fetchFromGitHub,
}:
stdenv.mkDerivation rec {
pname = "aws-connect";
version = "1.0.19";
src = fetchFromGitHub {
owner = "rewindio";
repo = "aws-connect";
rev = "v${version}";
sha256 = "sha256-xS5eRVjbjK/qzaZhNApwghNqnHGqVGWJ4hvgDu4dfDQ=";
};
installPhase = ''
mkdir -p $out/bin
cp ./aws-connect $out/bin
'';
meta = with lib; {
description = "Wrapper script around AWS session manager connections";
homepage = "https://github.com/rewindio/aws-connect";
license = licenses.mit;
platforms = platforms.unix;
};
}

View File

@@ -1,55 +0,0 @@
{
lib,
fetchFromGitHub,
python3,
}: let
py = python3.override {
packageOverrides = self: super: {
prettycolors = super.buildPythonPackage rec {
pname = "pretty-colors";
version = "1.2.23";
doCheck = false;
src = fetchFromGitHub {
owner = "onelivesleft";
repo = "PrettyErrors";
rev = "8b58260f00b0aab789e940f5ee190fa9c3c10925";
sha256 = "sha256-ICFwaRkQ30/sml4GuzXF8TyJAg+ZXnLmKGil18KisUw=";
};
propagatedBuildInputs = [py.pkgs.colorama];
};
};
};
in
with py.pkgs;
buildPythonApplication rec {
pname = "aws-role-play";
version = "419e0de612554bfce467da4896e1abcadb78c406";
format = "pyproject";
src = fetchFromGitHub {
owner = "rewindio";
repo = "aws-role-play";
rev = version;
hash = "sha256-o+u/ixL48J2WMWFRkOlWGvXMVwn+BrofzlspOVwmnCo=";
};
# No tests included
doCheck = false;
nativeBuildInputs = [poetry];
propagatedBuildInputs = with py.pkgs; [
boto3
click
colorama
prettycolors
];
passthru.python3 = python3;
meta = with lib; {
homepage = "https://www.rewind.com/";
description = "A CLI tool that makes assuming IAM roles and exporting temporary credentials easier";
license = licenses.mit;
};
}

View File

@@ -6,7 +6,7 @@
if [[ $# -eq 1 ]]; then if [[ $# -eq 1 ]]; then
selected=$1 selected=$1
else else
selected=$(find ~/src/github.com/davegallant ~/src/github.com/rewindio -mindepth 1 -maxdepth 1 -type d | fzf --exact) selected=$(find ~/src/github.com/davegallant -mindepth 1 -maxdepth 1 -type d | fzf --exact)
fi fi
if [[ -z $selected ]]; then if [[ -z $selected ]]; then