Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add more nixpkgs #24

Merged
merged 2 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 4 additions & 12 deletions darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,13 @@ in {
[
# https://github.com/NixOS/nixpkgs/issues/254944
"1password"
# Not available in nixpkgs
"disk-inventory-x"
# The 1Password extension does not unlock with biometrics if FF is installed via nix
"firefox"
# Not available in nixpkgs
"lulu"
# Raycast won't configure itself to run at startup if installed by nix
"raycast"
# Nix is refusing to build slack
# mkdir: cannot create directory '/nix/store/8sxv71mr0sa9qdg02b4fflwaf0jglpra-slack-4.39.95/Applications/Slack.app': Operation not permitted
"slack"
# Nix is refusing to build vscode
# mkdir: cannot create directory '/nix/store/df3lynf0asnl973l6mhpk5749c5z642j-vscode-1.92.0/Applications/Visual Studio Code.app': Operation not permitted
"visual-studio-code"
# Warp from nix will complain about not being able to auto-update on startup
# Not available in nixpkgs
"oversight"
# https://github.com/warpdotdev/Warp/issues/1991
"warp"
]
# Not available in nixpkgs
Expand Down Expand Up @@ -101,7 +93,7 @@ in {
"/Applications/Warp.app"
"/Applications/Firefox.app"
]
++ lib.optional cvent "/Applications/Slack.app"
++ lib.optional cvent "${pkgs.slack}/Applications/Slack.app"
++ lib.optional cvent "/Applications/Microsoft Outlook.app";
show-recents = false;
wvous-bl-corner = 5; # Start Screen Saver
Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
})
];
nixpkgs.config.allowUnfree = true;
nixpkgs.config.allowUnsupportedSystem = true;

home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
Expand Down
26 changes: 15 additions & 11 deletions home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ in {
home.stateVersion = "24.11";

programs.awscli.enable = true;
programs.bat.enable = true;
programs.bat = {
enable = true;
};
programs.chromium = {
enable = true;
package = pkgs.google-chrome;
Expand Down Expand Up @@ -200,36 +202,33 @@ in {
[
coreutils
dasel
disk-inventory-x
docker-client
docker-buildx
dogdns
du-dust
duf
gh
gnugrep
gitify
git-filter-repo
ipcalc
mtr
oktaws
openssl
pkg-config-unwrapped
raycast
slack
tree
unixtools.watch
vscode
]
# Languages / Package Managers
++ [
nodejs
nodePackages.pnpm
python3
rustup
]
# Libraries
++ [
gettext # For compiling Python
gnupg # For fetching Java
groff # Needed by awscli
pkg-config-unwrapped
]
++ lib.optional (! pkgs.stdenv.isDarwin) gh
++ lib.optional pkgs.stdenv.isDarwin colima
++ lib.optional personal tailscale
++ lib.optional cvent zoom-us;
Expand All @@ -240,7 +239,9 @@ in {
interactive = true;
tty = true;
rm = true;
}} --volume $(pwd):$(pwd) --workdir $(pwd)";
volume = "$(pwd):$(pwd)";
workdir = "$(pwd)";
}}";
gls = ''${pkgs.git}/bin/git log --pretty='format:' --name-only | ${pkgs.gnugrep}/bin/grep -oP "^''$(${pkgs.git}/bin/git rev-parse --show-prefix)\K.*" | cut -d/ -f1 | sort -u'';
nix-clean = "sudo nix-collect-garbage --delete-older-than 30d";
};
Expand All @@ -251,6 +252,9 @@ in {
pkgs.libyaml
pkgs.openssl
];
# Adapted from batman --export-env
MANPAGER = "env BATMAN_IS_BEING_MANPAGER=yes ${pkgs.bat-extras.batman}/bin/batman";
MANROFFOPT = "-c";
};

home.file."colima template" = lib.mkIf pkgs.stdenv.isDarwin {
Expand Down