nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

hyprland.nix (556B)


      1 { pkgs, username, ... }:
      2 
      3 {
      4   environment.systemPackages = with pkgs; [
      5     grim
      6     hyprcursor
      7     hypridle
      8     hyprland
      9     seatd
     10     slurp
     11     swayimg
     12     tofi
     13     wl-clipboard
     14     xdg-utils
     15   ];
     16   programs.hyprland.enable = true;
     17   users.users.${username}.extraGroups = ["seat" "video"];
     18   services.seatd.enable = true;
     19 
     20   xdg.portal = {
     21     enable = true;
     22     extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-hyprland ];
     23     config = {
     24       common.default = "*";
     25       hyprland = { default = ["hyprland" "gtk"];};
     26     };
     27   };
     28 
     29 }