Skip to content

Commit

Permalink
they weren't cross-platform. fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalyavolyn committed Dec 19, 2024
1 parent f09bf19 commit f6bb567
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 43 deletions.
18 changes: 11 additions & 7 deletions modules/apps/chrome.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{ pkgs, lib, ... }:
{ pkgs, lib, options, ... }:
with lib;
{
home-manager.users.vitalya.programs.chromium = mkIf (!pkgs.stdenv.isDarwin) {
enable = true;
package = pkgs.google-chrome;
};

homebrew.casks = mkIf pkgs.stdenv.isDarwin [ "google-chrome" ];
config = mkMerge [
(if (builtins.hasAttr "homebrew" options) then {
homebrew.casks = [ "google-chrome" ];
} else {
home-manager.users.vitalya.programs.chromium = {
enable = true;
package = pkgs.google-chrome;
};
})
];
}
18 changes: 11 additions & 7 deletions modules/apps/firefox.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{ pkgs, lib, ... }:
{ pkgs, lib, options, ... }:
with lib;
{
home-manager.users.vitalya.programs.firefox = mkIf (!pkgs.stdenv.isDarwin) {
enable = true;
package = pkgs.firefox;
};

homebrew.casks = mkIf pkgs.stdenv.isDarwin [ "firefox" ];
config = mkMerge [
(if (builtins.hasAttr "homebrew" options) then {
homebrew.casks = [ "firefox" ];
} else {
home-manager.users.vitalya.programs.firefox = {
enable = true;
package = pkgs.firefox;
};
})
];
}
28 changes: 15 additions & 13 deletions modules/apps/messaging.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
{ pkgs, lib, ... }:

{ pkgs, lib, options, ... }:
with lib;
{
home-manager.users.vitalya.home.packages = mkIf (!pkgs.stdenv.isDarwin)
(with pkgs; [
(discord.override {
withOpenASAR = true;
})
tdesktop
]);

homebrew.casks = mkIf pkgs.stdenv.isDarwin [
"discord"
"telegram"
config = mkMerge [
(if (builtins.hasAttr "homebrew" options) then {
homebrew.casks = [
"discord"
"telegram"
];
} else {
home-manager.users.vitalya.home.packages = with pkgs; [
(discord.override {
withOpenASAR = true;
})
tdesktop
];
})
];
}
13 changes: 8 additions & 5 deletions modules/apps/minecraft.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{ pkgs, lib, ... }:
{ pkgs, lib, options, ... }:
with lib;
{
home-manager.users.vitalya.home.packages = mkIf (!pkgs.stdenv.isDarwin)
(with pkgs; [ prismlauncher ]);

homebrew.casks = mkIf pkgs.stdenv.isDarwin [ "prismlauncher" ];
config = mkMerge [
(if (builtins.hasAttr "homebrew" options) then {
homebrew.casks = [ "prismlauncher" ];
} else {
home-manager.users.vitalya.home.packages = with pkgs; [ prismlauncher ];
})
];
}
13 changes: 8 additions & 5 deletions modules/apps/streaming.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{ pkgs, lib, ... }:
{ pkgs, lib, options, ... }:
with lib;
{
home-manager.users.vitalya.home.packages = mkIf (!pkgs.stdenv.isDarwin)
(with pkgs; [ obs-studio ]);

homebrew.casks = mkIf pkgs.stdenv.isDarwin [ "obs" ];
config = mkMerge [
(if (builtins.hasAttr "homebrew" options) then {
homebrew.casks = [ "obs" ];
} else {
home-manager.users.vitalya.home.packages = with pkgs; [ obs-studio ];
})
];
}
14 changes: 8 additions & 6 deletions modules/apps/vlc.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{ pkgs, lib, ... }:

{ pkgs, lib, options, ... }:
with lib;
{
home-manager.users.vitalya.home.packages = mkIf (!pkgs.stdenv.isDarwin)
(with pkgs; [ vlc ]);

homebrew.casks = mkIf pkgs.stdenv.isDarwin [ "vlc" ];
config = mkMerge [
(if (builtins.hasAttr "homebrew" options) then {
homebrew.casks = [ "vlc" ];
} else {
home-manager.users.vitalya.home.packages = with pkgs; [ vlc ];
})
];
}

0 comments on commit f6bb567

Please sign in to comment.