dotfiles/systems/x86_64-linux/cobalt/wayland.nix
Christopher Mühl 786af32daf
Publish my config
This is the result of ~100 commits to my NixOS config. Since I haven't
always used `agenix-rekey`, this is another initial commit so that none
of the secrets in my git history are leaked
2025-07-30 23:36:39 +02:00

42 lines
1.1 KiB
Nix

{
pkgs,
inputs,
...
}: let
tuigreet = "${pkgs.greetd.tuigreet}/bin/tuigreet";
hyprland-pkg = inputs.hyprland.packages.${pkgs.system}.hyprland;
hyprland-portal-pkg = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
hyprland-session = "${hyprland-pkg}/share/wayland-sessions";
in {
environment.systemPackages = with pkgs; [
swaynotificationcenter # Notification daemon for Wayland
inputs.rose-pine-hyprcursor.packages.${pkgs.system}.default
hyprshot
];
programs.hyprland = {
enable = true;
package = hyprland-pkg;
portalPackage = hyprland-portal-pkg;
};
services.greetd = {
enable = true;
settings = rec {
default_session = {
command = "${tuigreet} --asterisks --time --remember --remember-session --sessions ${hyprland-session}";
user = "greeter";
};
};
};
systemd.services.greetd.serviceConfig = {
Type = "idle";
StandardInput = "tty";
StandardOutput = "tty";
StandardError = "journal";
TTYReset = true;
TTYVHangup = true;
TTYVTDisallocate = true;
};
}