small qol fixes

This commit is contained in:
Remy Moll 2025-04-08 20:08:21 +02:00
parent b878344566
commit 7bfaf91106
9 changed files with 113 additions and 29 deletions

View File

@ -63,3 +63,5 @@ TODO - disable root user
- https://github.com/elifouts/Dotfiles - https://github.com/elifouts/Dotfiles
- https://github.com/nomadics9/nixcfg - https://github.com/nomadics9/nixcfg
- https://github.com/Daholli/nixos-config - https://github.com/Daholli/nixos-config
- https://github.com/khaneliman/khanelinix
- https://github.com/NotAShelf/nyx

View File

@ -16,6 +16,9 @@
ms-python.isort ms-python.isort
ms-python.debugpy ms-python.debugpy
ms-python.vscode-pylance ms-python.vscode-pylance
ms-toolsai.jupyter
ms-toolsai.vscode-jupyter-slideshow
ms-toolsai.jupyter-renderers
# Nix language # Nix language
jnoortheen.nix-ide jnoortheen.nix-ide
@ -72,11 +75,12 @@
"terminal.external.linuxExec" = "kitty"; "terminal.external.linuxExec" = "kitty";
"workbench.startupEditor" = "newUntitledFile"; "workbench.startupEditor" = "newUntitledFile";
# "workbench.colorTheme" = "Default Light+"; # "workbench.colorTheme" = "Default Light+";
"github.copilot.editor.enableAutoCompletions" = true;
"github.copilot.advanced" = {}; # Extension management
"github.copilot.enable" = { "extensions.autoCheckUpdates" = false;
"*" = true; "extensions.autoUpdate" = false;
}; "extensions.ignoreRecommendations" = true;
# git # git
"git.ignoreMissingGitWarning" = true; "git.ignoreMissingGitWarning" = true;
@ -87,7 +91,15 @@
"diffEditor.hideUnchangedRegions.enabled" = true; "diffEditor.hideUnchangedRegions.enabled" = true;
"diffEditor.ignoreTrimWhitespace" = false; "diffEditor.ignoreTrimWhitespace" = false;
# Copilot
"github.copilot.editor.enableAutoCompletions" = true;
"github.copilot.advanced" = {};
"github.copilot.enable" = {
"*" = true;
};
# Python # Python
"python.terminal.activateEnvironment" = false; # let nix-shell handle this
"jupyter.disableJupyterAutoStart" = true; "jupyter.disableJupyterAutoStart" = true;
"jupyter.askForKernelRestart" = false; "jupyter.askForKernelRestart" = false;
"workbench.editorAssociations" = { "workbench.editorAssociations" = {

View File

@ -1,9 +1,17 @@
{pkgs, ...}: {pkgs, ...}:
{ {
# Required by the fzf fish plugin
programs.fzf = { programs.fzf = {
enable = true; enable = true;
}; };
home.packages = with pkgs; [
fd
bat
];
programs.fish = { programs.fish = {
enable = true; enable = true;
@ -22,9 +30,6 @@
]; ];
}; };
home.packages = [
pkgs.fishPlugins.tide
];
# sets the "default" shell to fish # sets the "default" shell to fish
# actually keeps bash as a posix-compliant default but starts fish if the shell is not bash # actually keeps bash as a posix-compliant default but starts fish if the shell is not bash

View File

@ -112,6 +112,7 @@
]; ];
exec-once = [ exec-once = [
"gnome-keyring-daemon --start --components=secrets"
# "${pkgs.hyprpaper}/bin/hyprpaper" # "${pkgs.hyprpaper}/bin/hyprpaper"
# hyprpaper is handled as its own service # hyprpaper is handled as its own service
"${pkgs.waybar}/bin/waybar" "${pkgs.waybar}/bin/waybar"

View File

@ -18,6 +18,7 @@
margin-bottom = 2; margin-bottom = 2;
margin-left = 5; margin-left = 5;
margin-right = 5; margin-right = 5;
layer = "top"; layer = "top";
position = "top"; position = "top";
spacing = 5; spacing = 5;
@ -34,12 +35,9 @@
modules-right = [ modules-right = [
"tray" "tray"
# "temperature" "privacy"
# "group/expand"
# "bluetooth"
"wireplumber" "wireplumber"
"network" "network"
# "mpd"
"battery" "battery"
"backlight" "backlight"
"idle_inhibitor" "idle_inhibitor"
@ -82,7 +80,6 @@
}; };
tooltip = "true"; tooltip = "true";
}; };
"bluetooth" = { "bluetooth" = {
format-on = "󰂯"; format-on = "󰂯";
format-off = "BT-off"; format-off = "BT-off";
@ -91,7 +88,7 @@
format-alt = "{device_alias} 󰂯"; format-alt = "{device_alias} 󰂯";
tooltip-format = "{controller_alias}\t{controller_address}\n\n{num_connections} connected"; tooltip-format = "{controller_alias}\t{controller_address}\n\n{num_connections} connected";
tooltip-format-connected = "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}"; tooltip-format-connected = "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}";
tooltip-format-enumerate-connected = "{device_alias}\n{device_address}"; tooltip-formaenumeratet-enumerate-connected = "{device_alias}\n{device_address}";
tooltip-format-enumerate-connected-battery = "{device_alias}\n{device_address}\n{device_battery_percentage}%"; tooltip-format-enumerate-connected-battery = "{device_alias}\n{device_address}\n{device_battery_percentage}%";
on-click-right = "blueman-manager"; on-click-right = "blueman-manager";
}; };
@ -167,6 +164,28 @@
tooltip-format-disconnected = "Disconnected"; tooltip-format-disconnected = "Disconnected";
on-click = "XDG_CURRENT_DESKTOP=GNOME gnome-control-center wifi"; on-click = "XDG_CURRENT_DESKTOP=GNOME gnome-control-center wifi";
}; };
"privacy" = {
icon-spacing = 4;
# icon-size" = 18;
transition-duration = 250;
modules = [
{
type = "screenshare";
tooltip = true;
# tooltip-icon-size = 24
}
{
type = "audio-out";
tooltip = true;
# tooltip-icon-size = 24
}
{
type = "audio-in";
tooltip = true;
# tooltip-icon-size = 24
}
];
};
}; };
}; };
@ -205,6 +224,10 @@
padding: 3px; padding: 3px;
} }
#workspaces button {
color: #ffffff;
}
#battery.warning { #battery.warning {
background:rgba(240, 165, 0, 0.6); background:rgba(240, 165, 0, 0.6);
} }

View File

@ -4,20 +4,19 @@
xdg.portal = { xdg.portal = {
enable = true; enable = true;
configPackages = [ pkgs.hyprland ]; xdgOpenUsePortal = true;
# configPackages = [ pkgs.hyprland ];
config = {
common.default = ["gtk"];
hyprland.default = ["gtk" "hyprland"];
};
extraPortals = [ extraPortals = [
pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-wlr
pkgs.xdg-desktop-portal-hyprland
]; ];
}; };
xdg.userDirs = {
enable = true;
createDirectories = true;
desktop = "Desktop";
documents = "Documents";
# downloads = "Downloads";
pictures = "Pictures";
};
} }

View File

@ -1,4 +1,13 @@
{ {
config,
lib,
pkgs,
...
}:
{
environment.systemPackages = [
pkgs.bluez
];
hardware.bluetooth = { hardware.bluetooth = {
enable = true; enable = true;
powerOnBoot = false; powerOnBoot = false;
@ -14,5 +23,4 @@
}; };
}; };
}; };
services.blueman.enable = true;
} }

View File

@ -22,4 +22,6 @@
}; };
security.pam.services.hyprlock = {}; security.pam.services.hyprlock = {};
security.pam.services.gdm.enableGnomeKeyring = true;
} }

View File

@ -35,4 +35,36 @@ with lib.hm.gvariant;
userName = "Remy Moll"; userName = "Remy Moll";
userEmail = "me@moll.re"; userEmail = "me@moll.re";
}; };
## XDG configuration
xdg = {
userDirs = {
enable = true;
desktop = "Desktop";
pictures = "Pictures";
documents = "Documents";
publicShare = null;
music = null;
templates = null;
};
mimeApps = {
enable = true;
defaultApplications = {
"inode/directory" = "org.gnome.Nautilus.desktop";
"application/zip" = "org.gnome.FileRoller.desktop";
"application/octet-stream" = "org.gnome.GHex.desktop";
# pdfs
"application/pdf" = "org.gnome.Evince.desktop";
# images
# "image/png" = "org.gnome.Evince.desktop";
# "image/jpeg" = "org.gnome.Evince.desktop";
# "image/gif" = "org.gnome.Evince.desktop";
# "image/svg+xml" = "org.gnome.Evince.desktop";
# "image/tiff" = "org.gnome.Evince.desktop";
# text-based
"text/*" = "vscode.desktop";
};
};
};
} }