save progress

This commit is contained in:
Stephen Bryant
2025-01-05 19:30:12 -05:00
parent 68c1faf38c
commit 377369f862
4 changed files with 232 additions and 10 deletions

View File

@@ -0,0 +1,5 @@
{
imports = [
./terminal
];
}

View File

@@ -0,0 +1,152 @@
{
programs.starship = {
enable = true;
settings = {
add_newline = false;
scan_timeout = 10;
format = "$all";
character = {
success_symbol = "[>](bold green)";
error_symbol = "[x](bold red)";
vimcmd_symbol = "[<](bold green)";
};
git_commit = {
tag_symbol = " tag ";
};
git_status = {
ahead = ">";
behind = "<";
diverged = "<>";
renamed = "r";
deleted = "x";
};
cmd_duration = {
min_time = 500;
format = "took [$duration](bold yellow)";
};
aws = {
symbol = "aws ";
};
azure = {
symbol = "az ";
};
bun = {
symbol = "bun ";
};
cmake = {
symbol = "cmake ";
};
deno = {
symbol = "deno ";
};
directory = {
read_only = " ro";
};
docker_context = {
symbol = "docker ";
};
git_branch = {
symbol = "git ";
};
golang = {
symbol = "go ";
};
hostname = {
ssh_only = false;
format = " on [$hostname](bold #FFA500)\n";
disabled = false;
};
lua = {
symbol = "lua ";
};
nodejs = {
symbol = "nodejs ";
};
memory_usage = {
symbol = "memory ";
};
nim = {
symbol = "nim ";
};
nix_shell = {
symbol = "nix ";
};
os.symbols = {
Alpaquita = "alq ";
Alpine = "alp ";
Amazon = "amz ";
Android = "andr ";
Arch = "rch ";
Artix = "atx ";
CentOS = "cent ";
Debian = "deb ";
DragonFly = "dfbsd ";
Emscripten = "emsc ";
EndeavourOS = "ndev ";
Fedora = "fed ";
FreeBSD = "fbsd ";
Garuda = "garu ";
Gentoo = "gent ";
HardenedBSD = "hbsd ";
Illumos = "lum ";
Linux = "lnx ";
Mabox = "mbox ";
Macos = "mac ";
Manjaro = "mjo ";
Mariner = "mrn ";
MidnightBSD = "mid ";
Mint = "mint ";
NetBSD = "nbsd ";
NixOS = "nix ";
OpenBSD = "obsd ";
OpenCloudOS = "ocos ";
openEuler = "oeul ";
openSUSE = "osuse ";
OracleLinux = "orac ";
Pop = "pop ";
Raspbian = "rasp ";
Redhat = "rhl ";
RedHatEnterprise = "rhel ";
Redox = "redox ";
Solus = "sol ";
SUSE = "suse ";
Ubuntu = "ubnt ";
Unknown = "unk ";
Windows = "win ";
};
package = {
symbol = "pkg ";
};
purescript = {
symbol = "purs ";
};
python = {
symbol = "py ";
};
rust = {
symbol = "rs ";
};
status = {
symbol = "[x](bold red) ";
};
sudo = {
symbol = "sudo ";
};
terraform = {
symbol = "terraform ";
};
username = {
style_user = "blue bold";
style_root = "orange bold";
format = "[$user]($style)";
disabled = false;
show_always = true;
};
zig = {
symbol = "zig ";
};
};
};
}

View File

@@ -0,0 +1,45 @@
{ pkgs, username, ... }:
{
imports = [
./alacritty
# ./cava
./fonts
./foot
./nvim
./starship
./tmux
./yazi
./zsh
];
# ---- Home Configuration ----
home-manager.users.${username} = {
programs.git.enable = true;
};
# ---- System Configuration ----
programs = {
htop.enable = true;
mtr.enable = true;
};
environment.systemPackages = with pkgs; [
alacritty
brightnessctl
btop
gh
ghostty
kubectl
kubernetes-helm
lens
mods
nitch
pavucontrol
playerctl
ripgrep
todoist
unzip
vhs
zoxide
];
}

View File

@@ -28,6 +28,8 @@
outputs = inputs@{ self, nix-darwin, nix-homebrew, homebrew-core, homebrew-cask, homebrew-bundle, home-manager, ... }: outputs = inputs@{ self, nix-darwin, nix-homebrew, homebrew-core, homebrew-cask, homebrew-bundle, home-manager, ... }:
let let
username = "stephen";
hostname = "swaphb-mba";
configuration = { pkgs, lib, inputs, ... }: { configuration = { pkgs, lib, inputs, ... }: {
# List packages installed in system profile. To search by name, run: # List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget # $ nix-env -qaP | grep wget
@@ -39,6 +41,13 @@
[ [
pkgs.vim pkgs.vim
pkgs.lens pkgs.lens
pkgs.vscode
pkgs._1password-gui
pkgs._1password-cli
pkgs.spotify
pkgs.slack
pkgs.podman-desktop
pkgs.kubectl
]; ];
################ ################
@@ -52,6 +61,8 @@
brews = [ brews = [
"cowsay" "cowsay"
"git" "git"
"k9s"
"helm"
]; ];
casks = []; casks = [];
}; };
@@ -89,11 +100,21 @@
nix.settings.experimental-features = "nix-command flakes"; nix.settings.experimental-features = "nix-command flakes";
# Create /etc/zshrc that loads the nix-darwin environment. # Create /etc/zshrc that loads the nix-darwin environment.
programs.zsh.enable = true; # default shell on catalina programs = {
fish = {
enable = false;
};
zsh = {
enable = true;
};
# vscode = {
# enable = true;
# };
};
# programs.fish.enable = true; # programs.fish.enable = true;
# Enable 1password plugins on interactive shell init # Enable 1password plugins on interactive shell init
programs.bash.interactiveShellInit = '' programs.bash.interactiveShellInit = ''
source /home/stephen/.config/op/plugins.sh source /home/${username}/.config/op/plugins.sh
''; '';
# Set Git commit hash for darwin-version. # Set Git commit hash for darwin-version.
@@ -109,7 +130,7 @@
AppleShowAllExtensions = true; AppleShowAllExtensions = true;
FXPreferredViewStyle = "clmv"; FXPreferredViewStyle = "clmv";
}; };
loginwindow.LoginwindowText = "swaphb-mba"; loginwindow.LoginwindowText = "${hostname}";
screencapture.location = "~/Pictures/screenshots"; screencapture.location = "~/Pictures/screenshots";
screensaver.askForPasswordDelay = 10; screensaver.askForPasswordDelay = 10;
trackpad = { trackpad = {
@@ -145,13 +166,13 @@
EDITOR = "nano"; EDITOR = "nano";
}; };
home.homeDirectory = lib.mkForce "/Users/stephen"; # Update this line home.homeDirectory = lib.mkForce "/Users/${username}";
}; };
in in
{ {
# Build darwin flake using: # Build darwin flake using:
# $ darwin-rebuild build --flake .#swaphb-mba # $ darwin-rebuild build --flake .#${hostname}
darwinConfigurations."swaphb-mba" = nix-darwin.lib.darwinSystem { darwinConfigurations."${hostname}" = nix-darwin.lib.darwinSystem {
modules = [ modules = [
configuration configuration
nix-homebrew.darwinModules.nix-homebrew nix-homebrew.darwinModules.nix-homebrew
@@ -159,7 +180,7 @@
nix-homebrew = { nix-homebrew = {
enable = true; enable = true;
enableRosetta = true; enableRosetta = true;
user = "stephen"; user = "${username}";
taps = { taps = {
"homebrew/homebrew-core" = homebrew-core; "homebrew/homebrew-core" = homebrew-core;
"homebrew/homebrew-cask" = homebrew-cask; "homebrew/homebrew-cask" = homebrew-cask;
@@ -174,13 +195,12 @@
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.verbose = true; home-manager.verbose = true;
home-manager.users.stephen = homeconfig;
} }
]; ];
}; };
# Expose the package set, including overlays, for convenience. # Expose the package set, including overlays, for convenience.
darwinPackages = self.darwinConfigurations."swaphb-mba".pkgs; darwinPackages = self.darwinConfigurations."${hostname}".pkgs;
}; };
} }