Simplify excluding packages for system
This commit is contained in:
+12
-6
@@ -1,5 +1,11 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
excludes = systems: opts: (
|
||||||
|
if ( builtins.all (x: pkgs.system != x) systems ) then opts else []
|
||||||
|
);
|
||||||
|
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./chat.nix
|
./chat.nix
|
||||||
@@ -8,26 +14,26 @@
|
|||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
cdrtools
|
cdrtools
|
||||||
endeavour
|
|
||||||
ffmpeg
|
ffmpeg
|
||||||
gnucash
|
gnucash
|
||||||
handbrake
|
handbrake
|
||||||
libtheora
|
libtheora
|
||||||
vlc
|
vlc
|
||||||
x265
|
x265
|
||||||
] ++ ( if ( pkgs.system != "x86_64-darwin" && pkgs.system != "aarch64-linux" ) then
|
] ++
|
||||||
|
( excludes ["x86_64-darwin" "aarch64-darwin" "aarch64-linux"]
|
||||||
[
|
[
|
||||||
|
endeavour
|
||||||
jellyfin-media-player
|
jellyfin-media-player
|
||||||
libreoffice
|
libreoffice
|
||||||
logseq
|
logseq
|
||||||
nextcloud-client
|
nextcloud-client
|
||||||
] else []
|
]) ++
|
||||||
) ++ ( if ( pkgs.system != "aarch64-linux" ) then
|
( excludes ["aarch64-linux"]
|
||||||
[
|
[
|
||||||
bitwarden
|
bitwarden
|
||||||
onlyoffice-bin
|
onlyoffice-bin
|
||||||
synology-drive-client
|
synology-drive-client
|
||||||
zoom-us
|
zoom-us
|
||||||
] else []
|
]);
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user