52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
inputs,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
# ${pkgs.swww}/bin/swww img ${./wallpaper.png} &
|
|
startupScript = pkgs.pkgs.writeShellScriptBin "start" ''
|
|
${pkgs.waybar}/bin/waybar &
|
|
${pkgs.swww}/bin/swww init &
|
|
sleep 1
|
|
'';
|
|
in
|
|
{
|
|
programs.hyprland = {
|
|
enable = true;
|
|
};
|
|
services.greetd = {
|
|
enable = true;
|
|
settings.default_session = {
|
|
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland";
|
|
user = "greeter";
|
|
};
|
|
};
|
|
xdg.portal = {
|
|
enable = true;
|
|
extraPortals = [ pkgs.xdg-desktop-portal-hyprland pkgs.xdg-desktop-portal-gtk ];
|
|
};
|
|
users.users.jawz.packages = builtins.attrValues {
|
|
inherit (pkgs)
|
|
# Wayland utilities
|
|
wl-clipboard
|
|
wf-recorder
|
|
grim
|
|
slurp
|
|
|
|
wofi # Application launcher
|
|
kitty # Terminal
|
|
mako # Notification daemon
|
|
libnotify # dependency of mako
|
|
swaylock-effects # Screen locker
|
|
nautilus # File manager
|
|
;
|
|
};
|
|
home-manager.users.jawz.wayland.windowManager.hyprland = {
|
|
enable = true;
|
|
settings = {
|
|
exec-once = "${startupScript}/bin/start";
|
|
};
|
|
};
|
|
}
|