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,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.desktop;
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
in
|
||||
{
|
||||
options.desktop = {
|
||||
wayland.enableUtils = mkEnableOption "common Wayland utilities";
|
||||
};
|
||||
config = lib.mkMerge [
|
||||
(mkIf cfg.wayland.enableUtils {
|
||||
home.packages = with pkgs; [
|
||||
wl-clipboard-rs
|
||||
];
|
||||
})
|
||||
(lib.mkIf (osConfig.hardware.gpu == "nvidia") {
|
||||
home.packages = [ pkgs.stable-diffusion-webui.forge.cuda ];
|
||||
home.persistence."/persist/home/${config.snowfallorg.user.name}".directories = [
|
||||
|
|
|
@ -9,6 +9,7 @@ let
|
|||
in
|
||||
{
|
||||
config = lib.mkIf (osConfig.desktop.windowManager == "hyprland") {
|
||||
desktop.wayland.enableUtils = true;
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
systemd.enable = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue