47 lines
828 B
Nix
47 lines
828 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.my.profiles.hyprland;
|
|
in
|
|
{
|
|
options.my.profiles.hyprland = with lib; {
|
|
enable = mkEnableOption "hyprland env";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.hyprland = {
|
|
enable = true;
|
|
xwayland.enable = true;
|
|
};
|
|
|
|
services.displayManager.sddm.wayland.enable = true;
|
|
services.xserver = {
|
|
layout = "de";
|
|
xkbVariant = "";
|
|
};
|
|
users.users.finn.packages = with pkgs; [
|
|
wofi
|
|
mako
|
|
kitty
|
|
hyprpaper
|
|
waybar
|
|
libsForQt5.dolphin
|
|
#libsForQt5.systemsettings
|
|
libsForQt5.polkit-kde-agent
|
|
#xdg-desktop-portal-hyprland
|
|
];
|
|
hardware = {
|
|
# Opengl
|
|
opengl.enable = true;
|
|
|
|
# Most wayland compositors need this
|
|
nvidia.modesetting.enable = true;
|
|
};
|
|
};
|
|
|
|
}
|