Add Opencode and Ollama modules; update configs
Enable Opencode and Ollama in home modules and import their Nix files. Disable the deprecated system‑module opencode entries and remove it from the core packages list. Add a new GitHub CLI module and a convenient `upf-gh` alias for flake updates using a GitHub token. Update the `stylix` configuration to include Opencode styling. Refresh several flake.lock entries with newer revisions and hashes.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
upd = "nh os switch -H ${host} -d always";
|
||||
upg = "nh os switch -H ${host} --update -d always";
|
||||
upf = "sudo nix flake update --flake /home/${username}/garandos";
|
||||
upf-gh = "nix flake update --option access-tokens \"github.com=$(gh auth token)\" --flake /home/${username}/garandos";
|
||||
upf-undo = "git -C /home/${username}/garandos restore /home/${username}/garandos/flake.lock";
|
||||
upd-bt = "nh os boot -H ${host} -d always";
|
||||
upd-ts = "nh os test -H ${host} -d always";
|
||||
|
||||
@@ -19,13 +19,16 @@ _: {
|
||||
./easyeffects.nix
|
||||
./eza.nix
|
||||
./fzf.nix
|
||||
./gh.nix
|
||||
./git.nix
|
||||
./gtk.nix
|
||||
./kdeConnect.nix
|
||||
./lutris.nix
|
||||
./nextcloud.nix
|
||||
./obs-studio.nix
|
||||
./ollama.nix
|
||||
./onlyoffice.nix
|
||||
./opencode.nix
|
||||
./qt.nix
|
||||
./ssh.nix
|
||||
./starship.nix
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
upd = "nh os switch -H ${host} -d always";
|
||||
upg = "nh os switch -H ${host} --update -d always";
|
||||
upf = "sudo nix flake update --flake /home/${username}/garandos";
|
||||
upf-gh = "nix flake update --option access-tokens \"github.com=$(gh auth token)\" --flake /home/${username}/garandos";
|
||||
upf-undo = "git -C /home/${username}/garandos restore /home/${username}/garandos/flake.lock";
|
||||
upd-bt = "nh os boot -H ${host} -d always";
|
||||
upd-ts = "nh os test -H ${host} -d always";
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
pkgs,
|
||||
gitUsername,
|
||||
...
|
||||
}: {
|
||||
programs.gh = {
|
||||
enable = true;
|
||||
package = pkgs.gh;
|
||||
hosts."github.com" = {
|
||||
git_protocol = "https";
|
||||
users = [
|
||||
"${gitUsername}"
|
||||
];
|
||||
user = "${gitUsername}";
|
||||
};
|
||||
settings = {
|
||||
git_protocol = "https";
|
||||
version = "1";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
profile,
|
||||
...
|
||||
}: {
|
||||
options.ollama.enable = lib.mkEnableOption "Ollama";
|
||||
|
||||
config.services.ollama = lib.mkIf config.ollama.enable {
|
||||
enable = true;
|
||||
package = pkgs.ollama;
|
||||
acceleration =
|
||||
if profile == "nvidia"
|
||||
then "cuda"
|
||||
else if profile == "amd"
|
||||
then "rocm"
|
||||
else null;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options.opencode.enable = lib.mkEnableOption "Opencode";
|
||||
|
||||
config.programs.opencode = lib.mkIf config.opencode.enable {
|
||||
enable = true;
|
||||
package = pkgs.opencode;
|
||||
};
|
||||
}
|
||||
@@ -73,5 +73,10 @@
|
||||
opacity.enable = true;
|
||||
variant256Colors = true;
|
||||
};
|
||||
|
||||
opencode = {
|
||||
enable = true;
|
||||
colors.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user