diff --git a/hosts/by-name/crappy/default.nix b/hosts/by-name/crappy/default.nix index ef65d92f1..9248e0d56 100644 --- a/hosts/by-name/crappy/default.nix +++ b/hosts/by-name/crappy/default.nix @@ -30,16 +30,4 @@ # sane.programs.guiApps.enableFor.user.colin = false; # sane.programs.pcGuiApps.enableFor.user.colin = false; #< errors! - - sane.programs.blueberry.enableFor.user.colin = false; # bluetooth manager: doesn't cross compile! - # sane.programs.brave.enableFor.user.colin = false; # 2024/06/03: fails eval if enabled on cross - # sane.programs.firefox.enableFor.user.colin = false; # 2024/06/03: this triggers an eval error in yarn stuff -- i'm doing IFD somewhere!!? - sane.programs.mepo.enableFor.user.colin = false; # 2024/06/04: doesn't cross compile (nodejs) - sane.programs.mercurial.enableFor.user.colin = false; # 2024/06/03: does not cross compile - sane.programs.nixpkgs-review.enableFor.user.colin = false; # 2024/06/03: OOMs when cross compiling - sane.programs.ntfy-sh.enableFor.user.colin = false; # 2024/06/04: doesn't cross compile (nodejs) - sane.programs.pwvucontrol.enableFor.user.colin = false; # 2024/06/03: doesn't cross compile (libspa-sys) - sane.programs."sane-scripts.bt-search".enableFor.user.colin = false; # 2024/06/03: does not cross compile - sane.programs.sequoia.enableFor.user.colin = false; # 2024/06/03: does not cross compile - sane.programs.zathura.enableFor.user.colin = false; # 2024/06/03: does not cross compile } diff --git a/hosts/modules/hal/samsung/cross.nix b/hosts/modules/hal/samsung/cross.nix new file mode 100644 index 000000000..bc39c66d8 --- /dev/null +++ b/hosts/modules/hal/samsung/cross.nix @@ -0,0 +1,33 @@ +{ config, lib, ... }: +let + cfg = config.sane.hal.samsung; +in +{ + config = lib.mkIf cfg.enable { + + # disable the following non-essential programs which fail to cross compile + sane.programs."sane-scripts.bt-search".enableFor.user.colin = false; # 2024/06/03: does not cross compile + sane.programs.bash-language-server.enableFor = { system = false; user.colin = false; }; # bash neovim LSP: doesn't cross compile (2024-08-26) + sane.programs.blueberry.enableFor.user.colin = false; # bluetooth manager: doesn't cross compile + sane.programs.fcitx5.enableFor.user.colin = false; + sane.programs.ltex-ls.enableFor = { system = false; user.colin = false; }; # LaTeX/html/markdown neovim LSP: doesn't cross compile (2024-08-26) + sane.programs.lua-language-server.enableFor = { system = false; user.colin = false; }; # lua neovim LSP: doesn't cross compile (2024-08-26) + sane.programs.marksman.enableFor = { system = false; user.colin = false; }; # markdown neovim LSP: doesn't cross compile (2024-08-26) + sane.programs.mepo.enableFor.user.colin = false; # 2024/06/04: doesn't cross compile (nodejs) + sane.programs.mercurial.enableFor.user.colin = false; # 2024/06/03: does not cross compile + sane.programs.nixpkgs-review.enableFor.user.colin = false; # 2024/06/03: OOMs when cross compiling + sane.programs.ntfy-sh.enableFor.user.colin = false; # 2024/06/04: doesn't cross compile (nodejs) + sane.programs.nvme-cli.enableFor.system = false; # does not cross compile (libhugetlbfs) + sane.programs.papers.enableFor.user.colin = false; + sane.programs.pwvucontrol.enableFor.user.colin = false; # 2024/06/03: doesn't cross compile (libspa-sys) + sane.programs.pyright.enableFor = { system = false; user.colin = false; }; # python neovim LSP: doesn't cross compile (2024-08-26) + sane.programs.sequoia.enableFor.user.colin = false; # 2024/06/03: does not cross compile + sane.programs.zathura.enableFor.user.colin = false; # 2024/06/03: does not cross compile + # sane.programs.brave.enableFor.user.colin = false; # 2024/06/03: fails eval if enabled on cross + # sane.programs.firefox.enableFor.user.colin = false; # 2024/06/03: this triggers an eval error in yarn stuff -- i'm doing IFD somewhere!!? + + # disable the following non-essential programs which are excessively slow to build or large to copy + sane.programs.rust-analyzer.enableFor = { system = false; user.colin = false; }; # rust neovim LSP + sane.programs.typescript-language-server.enableFor = { system = false; user.colin = false; }; # rust js/TypeScript LSP + }; +} diff --git a/hosts/modules/hal/samsung/default.nix b/hosts/modules/hal/samsung/default.nix index 21ef701d0..ce4856076 100644 --- a/hosts/modules/hal/samsung/default.nix +++ b/hosts/modules/hal/samsung/default.nix @@ -83,6 +83,10 @@ in sane.hal.samsung.enable = lib.mkEnableOption "samsung-specific hardware support"; }; + imports = [ + ./cross.nix + ]; + config = lib.mkIf cfg.enable { boot.initrd.compressor = "gzip"; # boot.initrd.compressorArgs = [ "--ultra" "-22" ];