sway/hyprland: marry defaults in waylandComp module

This commit is contained in:
Aly Raffauf 2024-05-26 00:36:48 -04:00
parent 7d43115f41
commit 04c22c3d50
5 changed files with 37 additions and 25 deletions

View file

@ -13,6 +13,7 @@
./lightdm ./lightdm
./plasma ./plasma
./sway ./sway
./waylandComp.nix
]; ];
options = { options = {

View file

@ -26,6 +26,10 @@
}; };
config = lib.mkIf config.alyraffauf.desktop.greetd.enable { config = lib.mkIf config.alyraffauf.desktop.greetd.enable {
security.pam.services = {
greetd.enableKwallet = lib.mkDefault true;
greetd.enableGnomeKeyring = lib.mkDefault true;
};
services = { services = {
greetd = { greetd = {
enable = true; enable = true;

View file

@ -11,21 +11,9 @@
}; };
config = lib.mkIf config.alyraffauf.desktop.hyprland.enable { config = lib.mkIf config.alyraffauf.desktop.hyprland.enable {
services = { alyraffauf.desktop.waylandComp.enable = true;
dbus.packages = [pkgs.gcr];
udev.packages = [pkgs.swayosd];
gnome.gnome-keyring.enable = true;
blueman.enable = true;
};
security.pam.services = {
greetd.enableKwallet = true;
greetd.enableGnomeKeyring = true;
swaylock = {};
};
programs = { programs = {
gnupg.agent.pinentryPackage = pkgs.pinentry-gnome3;
hyprland = { hyprland = {
enable = true; enable = true;
package = inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".hyprland; package = inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".hyprland;

View file

@ -11,22 +11,12 @@
}; };
config = lib.mkIf config.alyraffauf.desktop.sway.enable { config = lib.mkIf config.alyraffauf.desktop.sway.enable {
alyraffauf.desktop.waylandComp.enable = true;
services = { services = {
blueman.enable = true; geoclue2.enable = lib.mkDefault true;
dbus.packages = [pkgs.gcr];
geoclue2.enable = true;
gnome.gnome-keyring.enable = true;
udev.packages = [pkgs.swayosd];
};
security.pam.services = {
greetd.enableKwallet = true;
greetd.enableGnomeKeyring = true;
swaylock = {};
}; };
programs = { programs = {
gnupg.agent.pinentryPackage = pkgs.pinentry-gnome3;
sway = { sway = {
enable = true; enable = true;
package = inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".swayfx; package = inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".swayfx;

View file

@ -0,0 +1,29 @@
{
inputs,
pkgs,
lib,
config,
...
}: {
options = {
alyraffauf.desktop.waylandComp.enable =
lib.mkEnableOption "Shared defaults for wayland compositors.";
};
config = lib.mkIf config.alyraffauf.desktop.waylandComp.enable {
services = {
blueman.enable = lib.mkDefault true;
dbus.packages = [pkgs.gcr];
gnome.gnome-keyring.enable = lib.mkDefault true;
udev.packages = [pkgs.swayosd];
};
security.pam.services = {
swaylock = {};
};
programs = {
gnupg.agent.pinentryPackage = lib.mkForce pkgs.pinentry-gnome3;
};
};
}