Skip to content

Commit

Permalink
usr: gui: disable x86_64-linux package on aarch64-linux
Browse files Browse the repository at this point in the history
  • Loading branch information
xieby1 committed Nov 23, 2023
1 parent 0d36241 commit 6cbabf2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion config.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# see pkgs/top-level/config.nix
{
allowUnsupportedSystem = true;
# disable install non-native packages, like install x86_64-linux packages on aarch64-linux
allowUnsupportedSystem = false;
allowUnfree = true;
packageOverrides = pkgs: {
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
Expand Down
12 changes: 9 additions & 3 deletions usr/gui.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,19 @@ in
home.packages = with pkgs; [
libnotify
# browser
] ++ pkgs.lib.optionals (builtins.currentSystem=="x86_64-linux") [
google-chrome
] ++ [
firefox
# network
mykdeconnect
] ++ pkgs.lib.optionals (builtins.currentSystem=="x86_64-linux") [
feishu
nur.repos.xddxdd.wechat-uos
# wine weixin waste too much memory, more than 4GB!!!
#(import ./gui/weixin.nix {})
nur.repos.linyinfeng.wemeet
] ++ [
transmission-gtk
tdesktop
# text
Expand All @@ -78,22 +82,24 @@ in
gimp
# viewer
myxdot
] ++ pkgs.lib.optionals (builtins.currentSystem=="x86_64-linux") [
my-imhex
xelfviewer
] ++ [
vlc
# my-xournalpp # pdf annotation
xournalpp
] ++ pkgs.lib.optionals (builtins.currentSystem=="x86_64-linux") [
ghidra
] ++ [
# management
zotero
barrier
# entertainment
antimicrox
# music
] ++ pkgs.lib.optionals (builtins.currentSystem=="x86_64-linux") [
spotify
# runXonY
wineWowPackages.stable
winetricks
];

xdg.mime.types = {
Expand Down

0 comments on commit 6cbabf2

Please sign in to comment.