refactor: simplify noctalia config and update xdg portals

This commit is contained in:
2026-03-23 13:53:38 +01:00
parent fa3792be0e
commit cef3df711d
6 changed files with 71 additions and 53 deletions

View File

@@ -241,11 +241,11 @@ in
"--server"
];
}
#{ ## Uses systemd unit instead.
# argv = [
# "noctalia-shell"
# ];
#}
{ ## Uses systemd unit instead.
argv = [
"noctalia-shell"
];
}
];
# Prefer no CSD
@@ -656,6 +656,7 @@ in
# Network applet (Noctalia has built-in network/bluetooth controls)
networkmanagerapplet
networkmanager-openconnect
networkmanager
swayidle

View File

@@ -7,8 +7,6 @@
{
programs.noctalia-shell = {
enable = true;
systemd.enable = true;
settings = {
bar = {
position = "top";
@@ -26,7 +24,6 @@
}
{ id = "SystemMonitor"; }
{ id = "MediaMini"; }
{ id = "Pomodoro"; }
{ id = "Workspace"; }
];
center = [
@@ -127,30 +124,30 @@
enabled = true;
sourceUrl = "https://github.com/noctalia-dev/noctalia-plugins";
};
todo = {
enabled = true;
sourceUrl = "https://github.com/noctalia-dev/noctalia-plugins";
};
#todo = {
# enabled = true;
# sourceUrl = "https://github.com/noctalia-dev/noctalia-plugins";
#};
assistant-panel = {
enabled = true;
sourceUrl = "https://github.com/noctalia-dev/noctalia-plugins";
};
pomodoro = {
enabled = true;
sourceUrl = "https://github.com/noctalia-dev/noctalia-plugins";
};
tailscale = {
enabled = true;
sourceUrl = "https://github.com/noctalia-dev/noctalia-plugins";
};
noctalia-supergfxctl = {
enabled = true;
sourceUrl = "https://github.com/noctalia-dev/noctalia-plugins";
};
weekly-calendar = {
enabled = true;
sourceUrl = "https://github.com/noctalia-dev/noctalia-plugins";
};
#pomodoro = {
# enabled = true;
# sourceUrl = "https://github.com/noctalia-dev/noctalia-plugins";
#};
#tailscale = {
# enabled = true;
# sourceUrl = "https://github.com/noctalia-dev/noctalia-plugins";
#};
#noctalia-supergfxctl = {
# enabled = true;
# sourceUrl = "https://github.com/noctalia-dev/noctalia-plugins";
#};
#weekly-calendar = {
# enabled = true;
# sourceUrl = "https://github.com/noctalia-dev/noctalia-plugins";
#};
kaomoji-provider = {
enabled = true;
sourceUrl = "https://github.com/noctalia-dev/noctalia-plugins";
@@ -179,13 +176,13 @@
ai = {
provider = "openai_compatible";
models = {
"openai_compatible" = "gpt-oss:20b";
"openai_compatible" = "qwen3.5";
};
#apiKeys = {};
temperature = 0.7;
systemPrompt = "You are a helpful assistant answering short questions. Be brief, think critically and come with constructual critics for how to improve.";
temperature = 0.6;
systemPrompt = "You are a helpful assistant answering short questions. Be brief, think critically and come with constructual critics where needed.";
openaiLocal = true;
openaiBaseUrl = "http://galadriel:11434/v1/chat/completions";
openaiBaseUrl = "http://galadriel:11111/v1/chat/completions";
};
translator = {
backend = "google";

View File

@@ -22,6 +22,7 @@
pillow
keras
tqdm
tkinter
ipykernel
pyyaml
authlib

View File

@@ -67,6 +67,10 @@
enable = true;
enableSSHSupport = true;
};
services.dbus.enable = true;
services.dbus.implementation = "broker";
services.desktopManager.gnome.enable = true;

View File

@@ -9,6 +9,7 @@
kdePackages.xdg-desktop-portal-kde
kdePackages.kdeconnect-kde
gnomeExtensions.gsconnect
kdePackages.qttools
];
programs.kdeconnect = {
#package = pkgs.kdePackages.kdeconnect-kde;

View File

@@ -15,24 +15,40 @@
# XDG related configurations
xdg = {
# Enable desktop portal integration
#portal = {
# enable = true; # Enable the portal system
# xdgOpenUsePortal = true; # Use portal for opening files and URLs
# # Additional portals for specific environments
# extraPortals = with pkgs; [
# xdg-desktop-portal-gtk
# xdg-desktop-portal
# xdg-desktop-portal-gnome
# kdePackages.xdg-desktop-portal-kde # For KDE environment
# ];
# # Configuration packages for portals (like GNOME session, Niri, etc.)
# configPackages = with pkgs; [
# gnome-session
# niri
# ];
#};
portal = {
enable = true; # Enable the portal system
xdgOpenUsePortal = true; # Use portal for opening files and URLs
# Additional portals for specific environments
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal
xdg-desktop-portal-gnome
kdePackages.xdg-desktop-portal-kde # For KDE environment
];
# Configuration packages for portals (like GNOME session, Niri, etc.)
configPackages = with pkgs; [
gnome-session
niri
];
};
enable = true;
xdgOpenUsePortal = true;
config.common.default = [ "gnome"];
extraPortals = [
pkgs.xdg-desktop-portal
pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-gnome
];
configPackages = with pkgs; [
gnome-session
niri
];
};
# Enable autostart functionality (launch apps on login)
autostart.enable = true;
@@ -54,15 +70,13 @@
xdg.mime.enable = true;
# Enable additional configurations for portals
xdg.portal.wlr.enable = false; # Disable Wayland/Weston portal support (as you've commented out)
xdg.portal.lxqt.styles = true; # Enable LXQt portal styles (optional)
xdg.portal.lxqt.enable = false; # Disable LXQt portal integration (commented out as unnecessary)
xdg.portal.wlr.enable = true; # Disable Wayland/Weston portal support (as you've commented out)
# Icons
xdg.icons.fallbackCursorThemes = [ "Adwaita" ]; # Set a default cursor theme (you can change this)
# Terminal execution configuration
xdg.terminal-exec.package = pkgs.xterm; # Choose the terminal emulator (can be changed to your preference)
xdg.terminal-exec.package = pkgs.foot; # Choose the terminal emulator (can be changed to your preference)
xdg.terminal-exec.settings = { }; # Terminal-specific settings (customizable)
}