This commit is contained in:
2025-08-31 15:41:36 -05:00
parent 7a65a428b3
commit d4f72e5b80
6 changed files with 122 additions and 150 deletions

View File

@@ -69,12 +69,12 @@ boot = {
networking.networkmanager.enable = true;
hardware.bluetooth.enable = true;
hardware.bluetooth.package = pkgs.bluez;
nixpkgs.config.permittedInsecurePackages = [
"electron-31.7.7"
"qtwebengine-5.15.19"
];
environment.variables.AMD_VULKAN_ICD = "RADV";
@@ -105,19 +105,21 @@ boot = {
services.desktopManager.plasma6.enable = false;
services.displayManager.sddm.enable = false;
services.displayManager.cosmic-greeter.enable = false;
services.desktopManager.cosmic.enable = false;
services.desktopManager.cosmic.enable = true;
services.desktopManager.gnome.enable = false;
services.displayManager.gdm.enable = false;
/*services.displayManager = {
autoLogin.enable = true;
autoLogin.user = "joshuaelm";
};*/
security.pam.services.hyprlock = {};
programs.noisetorch.enable = true;
services.greetd = {
enable = true;
settings = rec {
initial_session = {
command = "${pkgs.hyprland}/bin/Hyprland";
command = "dbus-launch ${pkgs.hyprland}/bin/Hyprland";
user = "joshuaelm";
};
default_session = initial_session;
@@ -140,6 +142,8 @@ boot = {
xkb.variant = "";
excludePackages = [ pkgs.xterm ];
};
# Enable Swap
@@ -210,7 +214,7 @@ hardware.pulseaudio.extraConfig = ''
users.users.joshuaelm = {
isNormalUser = true;
description = "Joshua Elmasri";
extraGroups = [ "networkmanager" "wheel" "adbusers" ];
extraGroups = [ "networkmanager" "input" "wheel" "adbusers" ];
shell = pkgs.fish;
packages = with pkgs; [
# thunderbird
@@ -263,6 +267,33 @@ hardware.pulseaudio.extraConfig = ''
nerd-fonts.jetbrains-mono
];
services.open-webui = {
enable = true;
port = 3246;
host = "0.0.0.0";
environment = {
ANONYMIZED_TELEMETRY = "False";
DO_NOT_TRACK = "True";
SCARF_NO_ANALYTICS = "True";
OLLAMA_API_BASE_URL = "http://127.0.0.1:11434/api";
OLLAMA_BASE_URL = "http://127.0.0.1:11434";
ENABLE_RAG_WEB_SEARCH = "True";
RAG_WEB_SEARCH_ENGINE = "kagi";
};
};
services.ollama = {
# package = pkgs.unstable.ollama; # If you want to use the unstable channel package for example
enable = true;
host = "0.0.0.0";
acceleration = "rocm"; # Or "rocm"
environmentVariables = { # I haven't been able to get this to work, but please see the serviceConfig workaround below
# HOME = "/home/ollama";
# OLLAMA_MODELS = "/home/ollama/models";
OLLAMA_HOST = "0.0.0.0:11434"; # Make Ollama accesible outside of localhost
# OLLAMA_ORIGINS = "http://localhost:8080,http://192.168.0.10:*"; # Allow access, otherwise Ollama returns 403 forbidden due to CORS
};
};
# List packages installed in system profile. To search, run:
# $ nix search wget
@@ -289,13 +320,14 @@ hardware.pulseaudio.extraConfig = ''
teamspeak3
cemu
teamspeak6-client
oterm
unetbootin
labymod-launcher
unzip
winetricks
cowsay
pfetch
ryujinx
ryubing
hyprpolkitagent
gomatrix
python3
@@ -304,9 +336,11 @@ hardware.pulseaudio.extraConfig = ''
cider
xfce.thunar
gnomeExtensions.open-bar
parallel-launcher
wallust
steamtinkerlaunch
grub2
vivaldi
cargo
inputs.zen-browser.packages."${system}".default
qalculate-qt
@@ -330,7 +364,6 @@ hardware.pulseaudio.extraConfig = ''
protontricks
gamescope
playerctl
libsForQt5.qt5.qtwebsockets
wine
alvr
bottles
@@ -354,7 +387,7 @@ hardware.pulseaudio.extraConfig = ''
services.sunshine = {
enable = true;
autoStart = true;
autoStart = false;
capSysAdmin = true;
openFirewall = true;
@@ -406,8 +439,8 @@ hardware.pulseaudio.extraConfig = ''
services.openssh.allowSFTP = true;
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 7860 3042 47990 48010 5001 ];
networking.firewall.allowedUDPPorts = [ 7860 3042 47990 4800 48010 ];
networking.firewall.allowedTCPPorts = [ 7860 3042 3246 9943 9944 7801 11434 47990 48010 5001 ];
networking.firewall.allowedUDPPorts = [ 7860 9943 9944 3042 47990 3246 11434 7801 4800 48010 ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;

View File

@@ -30,6 +30,7 @@
programs.rofi.package = pkgs.rofi-wayland;
services.hyprpaper.enable = true;
wayland.windowManager.hyprland.enable = true;
wayland.windowManager.hyprland.package = pkgs.hyprland.override {debug = true;};
home.shell.enableFishIntegration = true;
home.file.".icons/default".source = "${pkgs.bibata-cursors}/share/icons/Bibata-Modern-Classic";