From 108d280c5f29dd70c8f4324326bd69de535190fd Mon Sep 17 00:00:00 2001 From: Thomas Syms Date: Wed, 14 Aug 2024 16:09:21 -0300 Subject: [PATCH] Added greeter to hyprland --- hosts/Pegasus/default.nix | 1 - modules/hyprland.nix | 17 ++++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/hosts/Pegasus/default.nix b/hosts/Pegasus/default.nix index 145504b..67609f7 100644 --- a/hosts/Pegasus/default.nix +++ b/hosts/Pegasus/default.nix @@ -12,7 +12,6 @@ in { ../../modules/containers.nix ../../modules/virtualization.nix ../../modules/harden.nix - ../../modules/kde.nix ../../modules/hyprland.nix ]; diff --git a/modules/hyprland.nix b/modules/hyprland.nix index 618450e..c4fd0cf 100644 --- a/modules/hyprland.nix +++ b/modules/hyprland.nix @@ -1,4 +1,19 @@ -{...}: { +{pkgs, ...}: { + # Enable Display Manager + services.greetd = { + enable = true; + settings = { + default_session = { + command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --time-format '%I:%M %p | %a • %h | %F' --cmd Hyprland"; + user = "greeter"; + }; + }; + }; + + environment.systemPackages = with pkgs; [ + greetd.tuigreet + ]; + programs.hyprland = { enable = true; };