I've decided to switch to Hyprland again, after having issues with Niri, especially with XWayland apps. It also has better and more widespread integration with other pieces of software that I use/plan to use. commit5a42498391
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 16:59:37 2024 +0100 modules/theme: update fuzzel selection colors commitf3386f5b0a
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 16:53:57 2024 +0100 system/services/greetd: enable gnome keyring commitc1caf6d844
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 16:51:24 2024 +0100 modules/themes: switch to phinger-cursors, update border colors commitaa7a00d330
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:54:43 2024 +0100 hosts/solaire: switch to hyprland commit7c7a332a3e
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:54:34 2024 +0100 modules/theme: set default theme to catppuccin (again) commit471c6b5503
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:54:24 2024 +0100 flake: add hyprwm-contrib for grimslurp commit04914eab73
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:54:09 2024 +0100 system/services/greetd: switch to hyprland as compositor (thanks jacekpoz) commitd185864012
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:52:56 2024 +0100 home/services/swaync: remove unused variables commit75ff00b2e2
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:52:43 2024 +0100 home/programs/waybar: add hyprland workspaces commitb36b3abf53
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 14:52:31 2024 +0100 home/programs/hypr: add basic hyprland configuration commitcdda6bf2bc
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 12:03:53 2024 +0100 system/programs: add hyprland module commitef36f7be36
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 12:03:43 2024 +0100 flake: add hyprland and cachix commitcdbcd8d1bd
Author: Anthony Rodriguez <anthony@nezia.dev> Date: Fri Dec 13 12:03:37 2024 +0100 system/nix: add wheel to trusted users
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{
|
|
inputs,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
# thanks https://git.jacekpoz.pl/poz/niksos/src/commit/f8d5e7ccd9c769f7c0b564f10dff419285e75248/modules/services/greetd.nix
|
|
let
|
|
inherit (lib) getExe getExe' concatStringsSep;
|
|
inherit (inputs.hyprland.packages.${pkgs.stdenv.system}) hyprland;
|
|
|
|
hyprctl = getExe' hyprland "hyprctl";
|
|
Hyprland = getExe' hyprland "Hyprland";
|
|
|
|
greeter = getExe pkgs.greetd.gtkgreet;
|
|
|
|
hyprlandConfig = pkgs.writeText "greetd-hyprland-config" ''
|
|
misc {
|
|
force_default_wallpaper=0
|
|
focus_on_activate=1
|
|
}
|
|
|
|
animations {
|
|
enabled=0
|
|
first_launch_animation=0
|
|
}
|
|
|
|
workspace=1,default:true,gapsout:0,gapsin:0,border:false,decorate:false
|
|
|
|
exec-once=[workspace 1;fullscreen;noanim] ${greeter} -l; ${hyprctl} dispatch exit
|
|
exec-once=${hyprctl} dispatch focuswindow ${greeter}
|
|
'';
|
|
in {
|
|
services.greetd = {
|
|
enable = true;
|
|
settings = {
|
|
default_session = {
|
|
command = "${Hyprland} --config ${hyprlandConfig}";
|
|
user = "nezia";
|
|
};
|
|
};
|
|
};
|
|
environment.etc."greetd/environments".text = concatStringsSep "\n" ["Hyprland"];
|
|
|
|
security.pam.services = {
|
|
greetd.enableGnomeKeyring = true;
|
|
login.enableGnomeKeyring = true;
|
|
greetd.fprintAuth = false;
|
|
};
|
|
}
|