mirror of
https://codeberg.org/muon/home.git
synced 2025-12-05 23:57:46 +00:00
Merge cal and git
This commit is contained in:
commit
4e24f37ab8
7 changed files with 36 additions and 5 deletions
|
|
@ -11,6 +11,7 @@ in {
|
||||||
# System
|
# System
|
||||||
mods.user.name = "muon";
|
mods.user.name = "muon";
|
||||||
networking.hostName = cfg.user.name;
|
networking.hostName = cfg.user.name;
|
||||||
|
networking.hostId = "a230906f";
|
||||||
mods.home.file = ./home.nix;
|
mods.home.file = ./home.nix;
|
||||||
|
|
||||||
# Modules
|
# Modules
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
boot.supportedFilesystems = [ "zfs" "ntfs" "btrfs" ];
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/disk/by-uuid/03e49688-cc62-49c9-a906-e2ea87a38891";
|
device = "/dev/disk/by-uuid/03e49688-cc62-49c9-a906-e2ea87a38891";
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
vault = 3005;
|
vault = 3005;
|
||||||
git = 3006;
|
git = 3006;
|
||||||
cal = 3007;
|
cal = 3007;
|
||||||
|
chat = 3008;
|
||||||
|
|
||||||
search = 8081;
|
search = 8081;
|
||||||
videos = 8082;
|
videos = 8082;
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ in with lib; {
|
||||||
dolphin
|
dolphin
|
||||||
|
|
||||||
# documents
|
# documents
|
||||||
# texliveFull
|
texliveFull
|
||||||
# texstudio
|
# texstudio
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,8 @@
|
||||||
options.mods.sound.enable = lib.mkEnableOption "enables sound";
|
options.mods.sound.enable = lib.mkEnableOption "enables sound";
|
||||||
|
|
||||||
config = lib.mkIf config.mods.sound.enable {
|
config = lib.mkIf config.mods.sound.enable {
|
||||||
services.pipewire = {
|
services.pipewire.enable = false;
|
||||||
enable = true;
|
services.pulseaudio.enable = true;
|
||||||
pulse.enable = true;
|
services.pulseaudio.support32Bit = true;
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
28
modules/nixos/server/chat.nix
Normal file
28
modules/nixos/server/chat.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -18,5 +18,6 @@
|
||||||
./vault.nix
|
./vault.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
./cal.nix
|
./cal.nix
|
||||||
|
./chat.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue