add hyprland and greetd
This commit is contained in:
parent
7a6da71236
commit
77b3ecebb7
22 changed files with 84 additions and 321 deletions
4
hosts/common/hyprland.nix
Normal file
4
hosts/common/hyprland.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.hyprland.enable = true;
|
||||
}
|
||||
|
|
@ -2,4 +2,5 @@
|
|||
{
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
security.pam.services.login.enableGnomeKeyring = true;
|
||||
security.pam.services.greetd.enableGnomeKeyring = true;
|
||||
}
|
||||
|
|
|
|||
13
hosts/common/services/greetd.nix
Normal file
13
hosts/common/services/greetd.nix
Normal 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
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
12
hosts/common/services/protonmail.nix
Normal file
12
hosts/common/services/protonmail.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
|
|
@ -7,6 +7,7 @@
|
|||
security = {
|
||||
polkit.enable = true;
|
||||
pam.services.hyprlock = { };
|
||||
pam.services.swaylock = { };
|
||||
};
|
||||
|
||||
programs = {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue