4 Commits
Author SHA1 Message Date
Greg Hellings c0a0c64425 feat: add ~/.local/bin/ to nushell PATH
buildbot/nix-eval Build done.
buildbot/nix-build gitea:greg/nixos#checks.x86_64-linux Build done.
buildbot/nix-build gitea:greg/nixos#checks.aarch64-darwin Build done.
buildbot/nix-build gitea:greg/nixos#checks.aarch64-linux Build done.
buildbot/nix-build Build done.
2026-04-06 16:50:06 -05:00
Greg Hellings 05f3f118ac fix: simplify inject-darwin 2026-04-06 16:24:53 -05:00
Greg Hellings 21dbcb3113 feat: aws-cli and cargo on lithic 2026-04-06 16:23:03 -05:00
Greg Hellings 6b7f54d0a2 feat: pull dynamic names for Darwin/Home 2026-04-06 16:21:02 -05:00
16 changed files with 68 additions and 49 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ in
nerd-fonts.hack
];
launchd.daemons = lib.genAttrs' [ "x86" "aarch" ] (arch: lib.nameValuePair "builder-${arch}-machine" (builder arch));
#launchd.daemons = lib.genAttrs' [ "x86" "aarch" ] (arch: lib.nameValuePair "builder-${arch}-machine" (builder arch));
nix = {
enable = true;
+8 -5
View File
@@ -37,8 +37,11 @@ let
++ lib.optionals (builtins.pathExists ./hosts/${name}) [ ./hosts/${name} ];
};
in
{
"MacBook-Pro" = mac { name = "ivr"; };
"MacBook-Prolocal" = mac { name = "ivr"; };
"li" = mac { name = "li"; };
}
(
lib.genAttrs
(builtins.attrNames (builtins.readDir ./hosts))
(
name:
mac { inherit name; }
)
)
+1
View File
@@ -0,0 +1 @@
gregory
+1
View File
@@ -0,0 +1 @@
gregory/
+1
View File
@@ -0,0 +1 @@
gregs-MacBook-Pro-16-inch-Nov-2024/
@@ -1,6 +1,6 @@
{ ... }:
let
username = "gregory.hellings";
username = "greg";
in
{
greg = {
@@ -33,7 +33,6 @@ in
"podman-desktop"
"tabby"
"zed"
"zoom"
];
user = username;
};
+1
View File
@@ -72,3 +72,4 @@ def dc [ $cmd: string = "sh" ] {
if ("/usr/local/bin" | path exists) {
$env.PATH = $env.PATH | append "/usr/local/bin"
}
$env.PATH = $env.PATH | prepend "~/.local/bin"
+8 -17
View File
@@ -4,11 +4,13 @@
top,
}:
let
inherit (top.nixunstable) lib;
user =
host: username:
host:
let
inherit (metadata.hosts.${host}) system;
pkgs = nixpkgs.${system};
username = if builtins.hasAttr "user" metadata.hosts.${host} then metadata.hosts.${host}.user else "greg";
in
top.hmunstable.lib.homeManagerConfiguration {
inherit pkgs;
@@ -28,20 +30,9 @@ let
gnome = false;
};
};
greg = host: (user host "greg");
in
{
"MacBook-Pro.local" = user "ivr" "gregory.hellings";
"MacBook-Prolocal.local" = user "ivr" "gregory.hellings";
"MacBook-Pro.thehellings.lan" = user "ivr" "gregory.hellings";
"gregory.hellings-mbp" = user "ivr" "gregory.hellings";
genesis = greg "genesis";
exodus = greg "exodus";
zeke = greg "zeke";
isaiah = greg "isaiah";
jeremiah = greg "jeremiah";
li = user "li" "gregory.hellings";
linode = greg "linode";
hosea = greg "hosea";
gitlab = greg "gitlab";
}
(
lib.genAttrs
(builtins.attrNames (builtins.readDir ./hosts))
user
)
@@ -1,11 +1,9 @@
{
pkgs,
lib,
username,
...
}:
let
username = "gregory.hellings";
in
{
# Disables hitting local cache
_module.args.cache = lib.mkForce false;
+1
View File
@@ -0,0 +1 @@
gregory.hellings-mbp/
@@ -4,7 +4,7 @@
...
}:
let
username = "gregory.hellings";
username = "greg";
in
{
# Disables hitting local cache
@@ -13,18 +13,21 @@ in
development = true;
gui = true;
nix.cache = false;
vscodium = false;
zed = true;
};
home = {
packages = with pkgs; [
ansible
awscli2
cargo
direnv
home-manager
python3Packages.ipython
just
nixVersions.stable
pre-commit
rustc
];
username = username;
homeDirectory = "/Users/${username}";
BIN
View File
Binary file not shown.
+4 -3
View File
@@ -53,9 +53,10 @@
"external": true,
"system": "x86_64-linux"
},
"ivr": {
"gregory.hellings-mbp": {
"external": true,
"system": "aarch64-darwin"
"system": "aarch64-darwin",
"user": "gregory.hellings"
},
"jeremiah": {
"builder": true,
@@ -72,7 +73,7 @@
"ip": "10.42.0.4",
"ts": null
},
"li": {
"lithic": {
"external": true,
"system": "aarch64-darwin"
},
+7 -16
View File
@@ -3,6 +3,7 @@
coreutils,
curl,
gnutar,
inetutils,
nix,
...
}:
@@ -12,27 +13,17 @@ writeShellApplication {
coreutils
curl
gnutar
inetutils
nix
];
text = ''
dir="$(mktemp -d)"
cd "''${dir}"
# Install nix-darwin
nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer
./result/bin/darwin-installer
# Get my configuration
mkdir -p ~/.config/darwin
cd ~/.config/darwin
curl -O -L https://github.com/greg-hellings/nixos-config/archive/refs/heads/main.tar.gz
tar xvzf main.tar.gz --strip-components 1
cd /etc/nix-darwin
# Build NixOS for this system
pushd "''${dir}"
nix build "''${HOME}/.config/darwin#darwinConfigurations.$(hostname -s).system"
./result/sw/bin/darwin-rebuild switch --flake ~/.config/darwin
popd
rm -r "''${dir}"
nix --extra-experimental-features "nix-command flakes" build ".#darwinConfigurations.$(hostname -s).system"
sudo mv /etc/bashrc /etc/bashrc.before-nix-darwin
sudo mv /etc/zshrc /etc/zshrc.before-nix-darwin
sudo ./result/sw/bin/darwin-rebuild switch --flake .
'';
}
+28
View File
@@ -0,0 +1,28 @@
#!/usr/bin/env bash
host="$(hostname -s)"
# Install XCode tools
echo "Installing XCode Tools"
xcode-select --install
# Install Homebrew
echo "Installing Homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo >> ~/.zprofile
echo >> 'eval "$(/opt/homebrew/bin/brew shellenv zsh)"' >> ~/.zprofile
# Install Nix
echo "Installing Nix"
sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemon
sudo mkdir /etc/nix-darwin
sudo chown -R $USER /etc/nix-darwin
# Install my configurations
cd /etc/nix-darwin
curl -O -L https://github.com/greg-hellings/nixos-config/archive/refs/heads/main.tar.gz
tar xvzf main.tar.gz --strip-components 1
mkdir -p "/etc/nix-darwin/darwin/hosts/${host}"
mkdir -p "/etc/nix-darwin/home/hosts/${host}"
/nix/var/nix/profiles/system/sw/bin/nix --extra-experimental-features "nix-command flakes" run greg-hellings/nixos-config#inject-darwin