First Commit

This commit is contained in:
2026-01-05 04:04:36 +01:00
commit c7a17f7772
83 changed files with 3574 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
{ lib, ... }:
let
b = builtins;
module_files =
b.readDir ./. |>
lib.filterAttrs (name: type:
( (lib.strings.hasSuffix ".nix" name
&& name != "default.nix"
&& type == "regular" )
|| ( type == "directory"
&& b.pathExists ./${name}/default.nix))
) |>
b.attrNames |>
b.map (f: ./${f});
in
{
imports = module_files;
nixpkgs.config.allowUnfree = true;
}

View File

@@ -0,0 +1,17 @@
{
xdg.configFile."electron-flags.conf".text = ''
--enable-features=WaylandWindowDecorations
--ozone-platform-hint=wayland
--enable-blink-features=MiddleClickAutoscroll
--ozone-platform=wayland
'';
xdg.configFile."code-flags.conf".text = ''
--ozone-platform-hint=wayland
--ozone-platform=wayland
--gtk-version=4
--ignore-gpu-blocklist
--enable-features=TouchpadOverscrollHistoryNavigation
--enable-wayland-ime
--password-store=gnome-libsecret
'';
}

14
home/xdg-config/mime.nix Normal file
View File

@@ -0,0 +1,14 @@
let
gwenview_desktop_file = "org.kde.gwenview.desktop";
in
let
associations = {
"image/jpeg" = "${gwenview_desktop_file}";
};
in
{
xdg.mimeApps = {
associations.added = associations;
defaultApplications = associations;
};
}

View File

@@ -0,0 +1,40 @@
{
xdg.configFile."uwsm/env".text = ''
export GDK_BACKEND=wayland,x11,*
export GDK_SCALE=2 # GDK Scaling Factor (no fractional scaling)
export MOZ_ENABLE_WAYLAND=1
export MOZ_DISABLE_RDD_SANDBOX=1
export OZONE_PLATFORM=wayland
export ELECTRON_OZONE_PLATFORM_HINT=auto
export SDL_VIDEODRIVER=wayland
export CLUTTER_BACKEND=wayland
export QT_QPA_PLATFORM=wayland;xcb
export QT_QPA_PLATFORMTHEME=qt5ct
export XDG_MENU_PREFIX=plasma-
export QT_QPA_PLATFORMTHEME_QT6=qt5ct
export GTK_THEME=Adwaita:dark
export QS_ICON_THEME=Papirus-Dark
export LIBVA_DRIVER_NAME=nvidia
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export XDG_SESSION_DESKTOP=Hyprland
export GBM_BACKEND=nvidia-drm
export TERMINAL=kitty
export __GL_GSYNC_ALLOWED=1
export __GL_VRR_ALLOWED=1
export EDITOR=code
export STLEDITOR=code
export XCURSOR_SIZE=16
'';
xdg.configFile."uwsm/env-hyprland".text = ''
export AQ_DRM_DEVICES=/dev/dri/nvidia-dgpu
'';
}