summaryrefslogtreecommitdiff
path: root/config/nix.org
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@nullring.xyz>2026-03-31 02:23:16 -0700
committerPreston Pan <ret2pop@nullring.xyz>2026-03-31 02:23:16 -0700
commit131261c783e9a2f9a6342f7e341d5c263ce33c2d (patch)
treebc8618db69c3d12b570fc44ad243bc6003ba9049 /config/nix.org
parente759183b27e3ce30a671596421e171b4e505c1db (diff)
fix website build; add new content
Diffstat (limited to 'config/nix.org')
-rw-r--r--config/nix.org65
1 files changed, 38 insertions, 27 deletions
diff --git a/config/nix.org b/config/nix.org
index ff777fb..dca7f38 100644
--- a/config/nix.org
+++ b/config/nix.org
@@ -134,21 +134,21 @@ and now for the main flake:
};
commonModules = hostname: [
- impermanence.nixosModules.impermanence
- nix-topology.nixosModules.default
- lanzaboote.nixosModules.lanzaboote
- disko.nixosModules.disko
- home-manager.nixosModules.home-manager
- sops-nix.nixosModules.sops
- nixos-dns.nixosModules.dns
- {
- nixpkgs.overlays = [ nur.overlays.default ];
- home-manager.extraSpecialArgs = attrs // {
- systemHostName = "${hostname}";
- };
- networking.hostName = "${hostname}";
- }
- (./. + "/systems/${hostname}/default.nix")
+ impermanence.nixosModules.impermanence
+ nix-topology.nixosModules.default
+ lanzaboote.nixosModules.lanzaboote
+ disko.nixosModules.disko
+ home-manager.nixosModules.home-manager
+ sops-nix.nixosModules.sops
+ nixos-dns.nixosModules.dns
+ {
+ nixpkgs.overlays = [ nur.overlays.default ];
+ home-manager.extraSpecialArgs = attrs // {
+ systemHostName = "${hostname}";
+ };
+ networking.hostName = "${hostname}";
+ }
+ (./. + "/systems/${hostname}/default.nix")
];
mkHostModules = hostname:
@@ -1569,19 +1569,29 @@ does not support conduit at the moment. Note that this is not fully declarative
** Ollama
Use ollama for serving large language models to my other computers.
#+begin_src nix :tangle ../nix/modules/ollama.nix
- { config, lib, pkgs, ... }:
- {
- # services.open-webui.enable = lib.mkDefault (!config.monorepo.profiles.server.enable);
- services.ollama = {
- enable = lib.mkDefault config.monorepo.profiles.desktop.enable;
- package = if (config.monorepo.profiles.cuda.enable) then pkgs.ollama-cuda else pkgs.ollama-vulkan;
- loadModels = if (config.monorepo.profiles.cuda.enable) then [
- ] else [
- ];
- host = "0.0.0.0";
- openFirewall = true;
+{ config, lib, pkgs, ... }:
+{
+ services.open-webui = {
+ enable = lib.mkDefault config.services.ollama.enable;
+ port = 11111;
+ host = "127.0.0.1";
+ environment = {
+ OLLAMA_API_BASE_URL = "http://127.0.0.1:11434";
+ # Disable authentication
+ WEBUI_AUTH = "False";
};
- }
+ };
+
+ services.ollama = {
+ enable = lib.mkDefault config.monorepo.profiles.desktop.enable;
+ package = if (config.monorepo.profiles.cuda.enable) then pkgs.ollama-cuda else pkgs.ollama-vulkan;
+ loadModels = if (config.monorepo.profiles.cuda.enable) then [
+ ] else [
+ ];
+ host = "0.0.0.0";
+ openFirewall = true;
+ };
+}
#+end_src
** Bitcoind
#+begin_src nix :tangle ../nix/modules/bitcoin.nix
@@ -3570,6 +3580,7 @@ epkgs: with epkgs; [
platformio-mode
projectile
polymode
+ poetry
rustic
s
sops