diff --git a/hosts/by-name/moby/default.nix b/hosts/by-name/moby/default.nix index 583ab8bca..f19bd4055 100644 --- a/hosts/by-name/moby/default.nix +++ b/hosts/by-name/moby/default.nix @@ -31,25 +31,6 @@ sane.programs.sway.enableFor.user.colin = true; sane.programs.sway.config.mod = "Mod1"; #< alt key instead of Super - # swap papers for zathura, since only one of these cross-compiles (TODO: enable cross compilation of papers!) - sane.programs.papers.enableFor.user.colin = false; - sane.programs.zathura.enableFor.user.colin = true; - - # disable the following non-essential programs which fail to 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.mercurial.enableFor.user.colin = false; - sane.programs.nvme-cli.enableFor.system = false; # does not cross compile (libhugetlbfs) - sane.programs.pyright.enableFor = { system = false; user.colin = false; }; # python neovim LSP: doesn't cross compile (2024-08-26) - - # 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 - # enabled for easier debugging sane.programs.eg25-control.enableFor.user.colin = true; # sane.programs.rtl8723cs-wowlan.enableFor.user.colin = true; diff --git a/hosts/modules/hal/pine64/cross.nix b/hosts/modules/hal/pine64/cross.nix new file mode 100644 index 000000000..b4e587fc7 --- /dev/null +++ b/hosts/modules/hal/pine64/cross.nix @@ -0,0 +1,27 @@ +{ config, lib, ... }: +let + cfg = config.sane.hal.pine64; +in +{ + config = lib.mkIf cfg.enable { + + # swap papers for zathura, since only one of these cross-compiles (TODO: enable cross compilation of papers!) + sane.programs.guiBaseApps.suggestedPrograms = [ "zathura" ]; + sane.programs.papers.enableFor.user.colin = false; + + # disable the following non-essential programs which fail to 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.mercurial.enableFor.user.colin = false; + sane.programs.nvme-cli.enableFor.system = false; # does not cross compile (libhugetlbfs) + sane.programs.pyright.enableFor = { system = false; user.colin = false; }; # python neovim LSP: doesn't cross compile (2024-08-26) + + # 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/pine64/default.nix b/hosts/modules/hal/pine64/default.nix index 4dc20d926..8256be774 100644 --- a/hosts/modules/hal/pine64/default.nix +++ b/hosts/modules/hal/pine64/default.nix @@ -8,6 +8,7 @@ in }; imports = [ + ./cross.nix ./kernel.nix ];