OOKNET                             [ /  search the index  ]  
──────────────────────────────────────────────────────────────────────────────────────
══════════════════════════════════════════════════════════════════════════════════════
OOKNET   [ /  search  ]  
────────────────────────────────────────────────
════════════════════════════════════════════════
 
 
main @ 42 LINES
 
[ HISTORY ]  [ UP ]
 

{
  config,
  lib,
  pkgs,
  ...
}: let
  inherit (lib) mkIf;
  inherit (config.ooknet.workstation) environment;
in {
  config = mkIf (environment == "hyprland") {
    programs.hyprland = {
      enable = true;
    };

    xdg.portal = {
      enable = true;
      extraPortals = [
        pkgs.xdg-desktop-portal-gtk
      ];
      config = {
        hyprland.default = [
          "gtk"
          "hyprland"
        ];
        common = {
          default = ["gtk"];
          "org.freedesktop.impl.portal.Screencast" = "hyprland";
          "org.freedesktop.impl.portal.Screenshot" = "hyprland";
        };
      };
    };

    # required for wayland screen lockers to work
    security.pam.services.hyprlock.text = "auth include login";

    nix.settings = {
      substituters = ["https://hyprland.cachix.org"];
      trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM
7ypFP8PwtkuGc="];
    };
  };
}

{
  config,
  lib,
  pkgs,
  ...
}: let
  inherit (lib) mkIf;
  inherit (config.ooknet.workstation) enviro
nment;
in {
  config = mkIf (environment == "hyprland") 
{
    programs.hyprland = {
      enable = true;
    };

    xdg.portal = {
      enable = true;
      extraPortals = [
        pkgs.xdg-desktop-portal-gtk
      ];
      config = {
        hyprland.default = [
          "gtk"
          "hyprland"
        ];
        common = {
          default = ["gtk"];
          "org.freedesktop.impl.portal.Scree
ncast" = "hyprland";
          "org.freedesktop.impl.portal.Scree
nshot" = "hyprland";
        };
      };
    };

    # required for wayland screen lockers to
 work
    security.pam.services.hyprlock.text = "a
uth include login";

    nix.settings = {
      substituters = ["https://hyprland.cach
ix.org"];
      trusted-public-keys = ["hyprland.cachi
x.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8
PwtkuGc="];
    };
  };
}
 
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET