mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 06:33:56 -05:00
remove waylandComp, enable based on enabled window managers
This commit is contained in:
parent
131aa76f9f
commit
17880c1460
|
@ -4,7 +4,7 @@
|
|||
config,
|
||||
...
|
||||
}: {
|
||||
config = lib.mkIf config.alyraffauf.desktop.waylandComp {
|
||||
config = lib.mkIf (config.alyraffauf.desktop.hyprland.enable || config.alyraffauf.desktop.sway.enable) {
|
||||
alyraffauf = {
|
||||
apps = {
|
||||
fuzzel.enable = lib.mkDefault true;
|
||||
|
|
|
@ -261,12 +261,6 @@
|
|||
default = [];
|
||||
type = lib.types.listOf (lib.types.str);
|
||||
};
|
||||
waylandComp = lib.mkOption {
|
||||
description = "Shared defaults for wayland compositors.";
|
||||
default =
|
||||
config.alyraffauf.desktop.hyprland.enable || config.alyraffauf.desktop.sway.enable;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
};
|
||||
scripts = {
|
||||
pp-adjuster.enable = lib.mkEnableOption "pp-adjuster script.";
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
config,
|
||||
...
|
||||
}: {
|
||||
config = lib.mkIf config.alyraffauf.desktop.waylandComp {
|
||||
config = lib.mkIf (config.alyraffauf.desktop.hyprland.enable || config.alyraffauf.desktop.sway.enable) {
|
||||
programs = {
|
||||
gnupg.agent.pinentryPackage = lib.mkForce pkgs.pinentry-gnome3;
|
||||
};
|
||||
|
|
|
@ -186,13 +186,6 @@
|
|||
lib.mkEnableOption "Steam + Gamescope session.";
|
||||
sway.enable =
|
||||
lib.mkEnableOption "Sway wayland session.";
|
||||
waylandComp = lib.mkOption {
|
||||
description = "Shared defaults for wayland compositors.";
|
||||
default =
|
||||
config.alyraffauf.desktop.hyprland.enable
|
||||
|| config.alyraffauf.desktop.sway.enable;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
};
|
||||
scripts.hoenn.enable =
|
||||
lib.mkEnableOption "Hoenn system configuration script";
|
||||
|
|
Loading…
Reference in a new issue