First commit

This commit is contained in:
2026-02-22 17:28:02 +01:00
parent 7a70268785
commit 6bacf1878e
9011 changed files with 114470 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
{ config, pkgs, lib, ... }:
let
moduleName = "nixos-xdg";
in
{
# NixOS XDG integration (system-wide)
xdg = {
menus.enable = true;
mime.enable = true;
};
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
extraPortals = with pkgs; [
# xdg-desktop-portal-hyprland
xdg-desktop-portal-gtk
];
};
environment.etc."xdg/menus/applications.menu".source =
"${pkgs.kdePackages.plasma-workspace}/etc/xdg/menus/plasma-applications.menu";
# NixOS-safe "module executed" marker (creates /etc/nixlog/loaded.nixos-xdg)
environment.etc."nixlog/loaded.${moduleName}".text = "loaded\n";
}