Auto-commit: 2026-01-05 06:50:49

This commit is contained in:
2026-01-05 06:50:49 +00:00
parent 82627ba5fa
commit 29fb042eba
2 changed files with 0 additions and 0 deletions

15
home/desktop/hyprland.nix Normal file
View File

@@ -0,0 +1,15 @@
{ inputs, pkgs, lib, nixosConfig, ... }:
let
cfg = nixosConfig.my.desktop;
in
{
programs.kitty.enable = cfg.enable; # required for the default Hyprland config
wayland.windowManager.hyprland = lib.mkIf cfg.hyprland.enable {
enable = true;
# set the flake package
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
# make sure to also set the portal package, so that they are in sync
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
systemd.enable = true;
};
}

17
home/desktop/xdg.nix Normal file
View File

@@ -0,0 +1,17 @@
{ pkgs, inputs, ...}:
{
xdg = {
enable = true;
mime.enable = true;
mimeApps.enable = true;
portal = {
enable = true;
extraPortals = [
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland
pkgs.xdg-desktop-portal-gtk
];
configPackages = [inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland];
};
};
}