Merge cal and git

This commit is contained in:
muon 2025-01-27 20:27:51 +00:00
commit 4e24f37ab8
7 changed files with 36 additions and 5 deletions

View file

@ -11,6 +11,7 @@ in {
# System
mods.user.name = "muon";
networking.hostName = cfg.user.name;
networking.hostId = "a230906f";
mods.home.file = ./home.nix;
# Modules

View file

@ -11,6 +11,7 @@
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.supportedFilesystems = [ "zfs" "ntfs" "btrfs" ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/03e49688-cc62-49c9-a906-e2ea87a38891";

View file

@ -7,6 +7,7 @@
vault = 3005;
git = 3006;
cal = 3007;
chat = 3008;
search = 8081;
videos = 8082;

View file

@ -28,7 +28,7 @@ in with lib; {
dolphin
# documents
# texliveFull
texliveFull
# texstudio
];

View file

@ -2,9 +2,8 @@
options.mods.sound.enable = lib.mkEnableOption "enables sound";
config = lib.mkIf config.mods.sound.enable {
services.pipewire = {
enable = true;
pulse.enable = true;
};
services.pipewire.enable = false;
services.pulseaudio.enable = true;
services.pulseaudio.support32Bit = true;
};
}

View file

@ -0,0 +1,28 @@
{ pkgs, lib, config, ... }:
let
cfg = config.mods.server.chat;
port = config.mods.server.nginx.ports.chat;
in with lib; {
options.mods.server = {
chat = {
enable = mkEnableOption {
default = false;
description = "enables ollama server";
};
};
};
config = mkIf cfg.enable {
services.ollama = {
enable = true;
loadModels = [ "deepseek-r1:7b" ];
};
services.open-webui = {
enable = true;
inherit port;
};
};
}

View file

@ -18,5 +18,6 @@
./vault.nix
./git.nix
./cal.nix
./chat.nix
];
}