Add homebrew package to flake

This commit is contained in:
Greg Hellings
2023-06-01 10:54:46 -05:00
parent 151c6786cc
commit 39a1e735e7
6 changed files with 74 additions and 21 deletions
+1
View File
@@ -31,6 +31,7 @@
home.stateVersion = "22.05";
home.packages = with pkgs; [
bitwarden-cli
brew
diffutils
findutils
git
+4
View File
@@ -1,6 +1,7 @@
# vim: set ft=python:
from os import getcwd, uname
from pathlib import Path
from sys import platform
#if uname().sysname == 'Darwin' and ('__NIX_DARWIN_SET_ENVIRONMENT_DONE' not in ${...} or not $__NIX_DARWIN_SET_ENVIRONMENT_DONE):
@@ -19,3 +20,6 @@ xontrib load coreutils
$PATH.insert(0, Path("~/.nix-profile/bin").expanduser())
$PATH.insert(0, Path("~/src/bin").expanduser())
$PATH.insert(0, Path("~/.local/bin").expanduser())
if platform == "darwin":
$PATH.append(Path("/opt/homebrew/bin/"))