nix: add hyprland module
This commit is contained in:
parent
a18873f76a
commit
3db0b87a09
1 changed files with 45 additions and 0 deletions
45
nix/modules/hyprland.nix
Normal file
45
nix/modules/hyprland.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ config, lib, pkgs }:
|
||||
|
||||
{
|
||||
programs.hyprland.enable = true;
|
||||
# Optional, hint electron apps to use wayland:
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
|
||||
# have portals
|
||||
xdg.portal.enable = true;
|
||||
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
|
||||
# install basic fonts
|
||||
fonts = {
|
||||
fontDir.enable = true; # fixes some programs
|
||||
packages = with pkgs; [
|
||||
noto-fonts # most langs and emojis
|
||||
nerdfonts # programming fonts
|
||||
corefonts # basic web fonts
|
||||
];
|
||||
};
|
||||
|
||||
programs.hyprlock.enable = true;
|
||||
|
||||
# Enable sound.
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
kitty
|
||||
waybar
|
||||
swww
|
||||
grim
|
||||
slurp
|
||||
wl-clipboard
|
||||
brightnessctl
|
||||
helvum
|
||||
ulauncher
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue