moby: move cross-specific programs config to hal
This commit is contained in:
@@ -31,25 +31,6 @@
|
|||||||
sane.programs.sway.enableFor.user.colin = true;
|
sane.programs.sway.enableFor.user.colin = true;
|
||||||
sane.programs.sway.config.mod = "Mod1"; #< alt key instead of Super
|
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
|
# enabled for easier debugging
|
||||||
sane.programs.eg25-control.enableFor.user.colin = true;
|
sane.programs.eg25-control.enableFor.user.colin = true;
|
||||||
# sane.programs.rtl8723cs-wowlan.enableFor.user.colin = true;
|
# sane.programs.rtl8723cs-wowlan.enableFor.user.colin = true;
|
||||||
|
27
hosts/modules/hal/pine64/cross.nix
Normal file
27
hosts/modules/hal/pine64/cross.nix
Normal file
@@ -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
|
||||||
|
};
|
||||||
|
}
|
@@ -8,6 +8,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
./cross.nix
|
||||||
./kernel.nix
|
./kernel.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user