feat(desktop): enable wayland utils when hyprland is enabled
This commit is contained in:
parent
9de4ef0ce6
commit
5ba27ad3ae
2 changed files with 13 additions and 0 deletions
|
@ -5,8 +5,20 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.desktop;
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
|
options.desktop = {
|
||||||
|
wayland.enableUtils = mkEnableOption "common Wayland utilities";
|
||||||
|
};
|
||||||
config = lib.mkMerge [
|
config = lib.mkMerge [
|
||||||
|
(mkIf cfg.wayland.enableUtils {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
wl-clipboard-rs
|
||||||
|
];
|
||||||
|
})
|
||||||
(lib.mkIf (osConfig.hardware.gpu == "nvidia") {
|
(lib.mkIf (osConfig.hardware.gpu == "nvidia") {
|
||||||
home.packages = [ pkgs.stable-diffusion-webui.forge.cuda ];
|
home.packages = [ pkgs.stable-diffusion-webui.forge.cuda ];
|
||||||
home.persistence."/persist/home/${config.snowfallorg.user.name}".directories = [
|
home.persistence."/persist/home/${config.snowfallorg.user.name}".directories = [
|
||||||
|
|
|
@ -9,6 +9,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf (osConfig.desktop.windowManager == "hyprland") {
|
config = lib.mkIf (osConfig.desktop.windowManager == "hyprland") {
|
||||||
|
desktop.wayland.enableUtils = true;
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemd.enable = false;
|
systemd.enable = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue