diff --git a/hosts/muon/configuration.nix b/hosts/muon/configuration.nix index 604b3e8..1cbe768 100644 --- a/hosts/muon/configuration.nix +++ b/hosts/muon/configuration.nix @@ -11,6 +11,7 @@ in { # System mods.user.name = "muon"; networking.hostName = cfg.user.name; + networking.hostId = "a230906f"; mods.home.file = ./home.nix; # Modules diff --git a/hosts/muon/hardware-configuration.nix b/hosts/muon/hardware-configuration.nix index 2b003c3..e40a12e 100644 --- a/hosts/muon/hardware-configuration.nix +++ b/hosts/muon/hardware-configuration.nix @@ -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"; diff --git a/hosts/ports.nix b/hosts/ports.nix index 2a71808..e89ac4a 100644 --- a/hosts/ports.nix +++ b/hosts/ports.nix @@ -7,6 +7,7 @@ vault = 3005; git = 3006; cal = 3007; + chat = 3008; search = 8081; videos = 8082; diff --git a/modules/home/desktop/productivity.nix b/modules/home/desktop/productivity.nix index 96ecdec..62c8a65 100644 --- a/modules/home/desktop/productivity.nix +++ b/modules/home/desktop/productivity.nix @@ -28,7 +28,7 @@ in with lib; { dolphin # documents - # texliveFull + texliveFull # texstudio ]; diff --git a/modules/nixos/desktop/sound.nix b/modules/nixos/desktop/sound.nix index 67d0be3..b78d594 100644 --- a/modules/nixos/desktop/sound.nix +++ b/modules/nixos/desktop/sound.nix @@ -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; }; } diff --git a/modules/nixos/server/chat.nix b/modules/nixos/server/chat.nix new file mode 100644 index 0000000..4f34cf3 --- /dev/null +++ b/modules/nixos/server/chat.nix @@ -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; + }; + }; +} diff --git a/modules/nixos/server/default.nix b/modules/nixos/server/default.nix index 3953abc..7a59b67 100644 --- a/modules/nixos/server/default.nix +++ b/modules/nixos/server/default.nix @@ -18,5 +18,6 @@ ./vault.nix ./git.nix ./cal.nix + ./chat.nix ]; }