Auto-commit: 2026-01-05 06:50:49
This commit is contained in:
15
home/desktop/hyprland.nix
Normal file
15
home/desktop/hyprland.nix
Normal 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
17
home/desktop/xdg.nix
Normal 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];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user