Skip to content

Commit

Permalink
🔧 Fix packages for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
turtton committed Jan 16, 2025
1 parent 160aaa7 commit 58cefd2
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 23 deletions.
2 changes: 1 addition & 1 deletion home-manager/cli/dev/cargo.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ in
cargo-machete # unused dependencies detector
cargo-features-manager # unused feature detector
cargo-watch # auto-reload
cargo-vet # crate security checker
# cargo-vet # crate security checker TODO: https://github.com/NixOS/nixpkgs/pull/370510
crate2nix
];
# clang+mold could not resolve devEnv libraries defined in flake
Expand Down
2 changes: 1 addition & 1 deletion home-manager/cli/shared/gpg.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
};
services.gpg-agent = {
enable = true;
pinentryPackage = pkgs.pinentry-qt;
pinentryPackage = if pkgs.hostPlatform.isLinux then pkgs.pinentry-all else pkgs.pinentry_mac;
};
}
10 changes: 5 additions & 5 deletions home-manager/gui/dev/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
./idea
./vscode.nix
];
home.packages = (with pkgs; [
insomnia # RestAPI dev tool
remmina # Remote desktop client
home.packages = with pkgs; [
hoppscotch # WebAPI dev tool
gitify
drawio
]) ++ pkgs.lib.optionals pkgs.hostPlatform.isLinux [
pkgs.unityhub
] ++ lib.optionals hostPlatform.isLinux [
unityhub
remmina # Remote desktop client TODO: https://github.com/NixOS/nixpkgs/pull/372613
];
}
16 changes: 9 additions & 7 deletions home-manager/gui/dev/idea/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
let
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/applications/editors/jetbrains/plugins/plugins.json
plugins = [
"github-copilot"
"ideavim"
"nixidea"
] ++ pkgs.lib.optionals pkgs.hostPlatform.isLinux [ "github-copilot" ];
];
applyPlugins = ide: with pkgs; (jetbrains.plugins.addPlugins ide plugins);
ides = with pkgs.jetbrains; [
idea-ultimate
Expand All @@ -16,11 +17,12 @@ let
];
in
{
home.packages = with pkgs; lib.optionals hostPlatform.isLinux [
android-studio
# basically should not use toolbox because of issues(https://github.com/NixOS/nixpkgs/issues/240444) but useful to preview IDE
jetbrains-toolbox
]
++ (map (ide: (applyPlugins ide)) ides);
home.packages = with pkgs; if hostPlatform.isLinux then
[
android-studio
# basically should not use toolbox because of issues(https://github.com/NixOS/nixpkgs/issues/240444) but useful to preview IDE
jetbrains-toolbox
] ++ (map (ide: (applyPlugins ide)) ides)
else ides;
home.file.".ideavimrc".source = ./ideavimrc;
}
7 changes: 5 additions & 2 deletions home-manager/gui/shared/browser.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ let
in
{
programs = {
firefox.enable = true;
chromium.enable = true;
firefox = {
enable = true;
package = if isLinux then pkgs.firefox else pkgs.firefox-unwrapped;
};
chromium.enable = isLinux;
vivaldi.enable = isLinux;
};
home.packages = pkgs.lib.optionals isLinux [
Expand Down
15 changes: 8 additions & 7 deletions home-manager/gui/shared/media.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{ pkgs, ... }: {
home.packages = (with pkgs; [
mpv
tauon
home.packages = with pkgs; [
spotify
yt-dlp
]) ++ pkgs.lib.optionals pkgs.hostPlatform.isLinux [
pkgs.vlc
pkgs.kdenlive
]
++ lib.optionals hostPlatform.isLinux [
mpv
tauon
vlc
kdenlive
];
programs.obs-studio.enable = true;
programs.obs-studio.enable = pkgs.hostPlatform.isLinux;
}

0 comments on commit 58cefd2

Please sign in to comment.