add hyprland and greetd

This commit is contained in:
afoucaultc 2026-08-08 13:33:07 +02:00
parent 7a6da71236
commit 77b3ecebb7
22 changed files with 84 additions and 321 deletions

View file

@ -0,0 +1,4 @@
{ ... }:
{
programs.hyprland.enable = true;
}

View file

@ -2,4 +2,5 @@
{
services.gnome.gnome-keyring.enable = true;
security.pam.services.login.enableGnomeKeyring = true;
security.pam.services.greetd.enableGnomeKeyring = true;
}

View file

@ -0,0 +1,13 @@
{ config, pkgs, ... }:
{
services.greetd = {
enable = true;
settings = {
default_session = {
# for niri
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --remember --remember-user-session --cmd ${config.programs.niri.package}/bin/niri-session";
# for hyprland
};
};
};
}

View file

@ -0,0 +1,12 @@
{ pkgs, ... }:
{
services.protonmail-bridge = {
enable = true;
};
systemd.user.services.protonmail-bridge.serviceConfig = {
ExecStartPre = "${pkgs.bash}/bin/bash -c 'until ${pkgs.systemd}/bin/busctl --user list | grep -q org.freedesktop.secrets; do sleep 1; done'";
RestartSec = "10s";
};
}

View file

@ -7,6 +7,7 @@
security = {
polkit.enable = true;
pam.services.hyprlock = { };
pam.services.swaylock = { };
};
programs = {

View file

@ -22,11 +22,14 @@
../common/services/gnome-keyring.nix
../common/services/mullvad.nix
../common/services/sound.nix
../common/services/greetd.nix
../common/services/protonmail.nix
# programs
../common/programs/gamescope.nix
../common/programs/steam.nix
# packages & others
../common/niri.nix
../common/hyprland.nix
../common/wayland.nix
../common/system_packages.nix
# profil nixos pour mon ordi portable maison

View file

@ -23,11 +23,14 @@
../common/services/gnome-keyring.nix
../common/services/mullvad.nix
../common/services/sound.nix
../common/services/greetd.nix
../common/services/protonmail.nix
# programs
../common/programs/gamescope.nix
../common/programs/steam.nix
# packages & others
../common/niri.nix
../common/hyprland.nix
../common/wayland.nix
../common/system_packages.nix # profil nixos-hardware pour le ThinkPad E560
# nécessite l'input nixos-hardware dans flake.nix