xdg fixes

This commit is contained in:
cnst
2024-07-31 09:22:34 +02:00
parent 920771ce28
commit 228d20cbbf
5 changed files with 18 additions and 17 deletions

View File

@@ -3,7 +3,7 @@
exec-once = [
# STARTUP
# exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
# "systemctl --user start polkit-gnome-authentication-agent-1"
"systemctl --user start polkit-gnome-authentication-agent-1"
# exec-once = lxqt-policykit-agent &
"waybar"
"pamixer --set-volume 50"

View File

@@ -1,8 +1,4 @@
{
pkgs,
config,
...
}: {
{config, ...}: {
xdg = {
userDirs = {
enable = true;

View File

@@ -1,17 +1,7 @@
{
inputs,
lib,
pkgs,
...
}: {
{inputs, ...}: {
imports = [
inputs.hyprland.nixosModules.default
];
environment.variables.NIXOS_OZONE_WL = "1";
programs.hyprland.enable = true;
xdg.portal = {
enable = true;
config.common.default = lib.mkForce ["hyprland" "kde"];
extraPortals = [pkgs.xdg-desktop-portal-kde];
};
}

14
nixos/core/xdg.nix Normal file
View File

@@ -0,0 +1,14 @@
{pkgs, ...}: {
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
config = {
common.default = ["gtk"];
hyprland.default = ["gtk" "hyprland"];
};
extraPortals = [
pkgs.xdg-desktop-portal-gtk
];
};
}

View File

@@ -1,6 +1,7 @@
let
desktop = [
./core/hyprland.nix
./core/xdg.nix
./core/zsh.nix
./core/fonts.nix
./core/home-manager.nix