31 lines
670 B
Nix
31 lines
670 B
Nix
{
|
|
config,
|
|
inputs,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
wayland.windowManager.hyprland = {
|
|
enable = true;
|
|
package = null;
|
|
systemd.enable = false;
|
|
extraConfig = ''
|
|
require("main")
|
|
'';
|
|
portalPackage =
|
|
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
|
};
|
|
xdg.configFile."hypr/main.lua".source =
|
|
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/nixos/home/hyprland.lua";
|
|
xdg.portal.config = {
|
|
common = {
|
|
default = [ "gtk" ];
|
|
};
|
|
hyprland = {
|
|
default = [ "hyprland" ];
|
|
"org.freedesktop.impl.portal.Secret" = [
|
|
"gnome-keyring"
|
|
];
|
|
};
|
|
};
|
|
}
|