feat(hyprland): add hyprland and wayland config
This commit is contained in:
@@ -6,44 +6,9 @@
|
||||
with lib; let
|
||||
cfg = config.modules.hyprland;
|
||||
in {
|
||||
options.modules.hyprland = {
|
||||
enable = mkEnableOption "Enables Hyprland";
|
||||
config = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
};
|
||||
waybar = {
|
||||
config = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
};
|
||||
style = mkOption {
|
||||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
wayland.windowManager.hyprland = mkIf cfg.enable {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
systemd.enable = true;
|
||||
extraConfig = cfg.config;
|
||||
};
|
||||
services.wpaperd = {
|
||||
enable = true;
|
||||
settings = ''
|
||||
[default]
|
||||
path = "/home/phundrak/Pictures/Wallpapers/nord"
|
||||
duration = "5m"
|
||||
sorting = "ascending"
|
||||
'';
|
||||
};
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
inherit (cfg.waybar) config style;
|
||||
systemd.enableInspect = true;
|
||||
};
|
||||
options.modules.hyprland.enable = mkEnableOption "Enables Hyprland";
|
||||
config.programs.hyprland = mkIf cfg.enable {
|
||||
inherit (cfg) enable;
|
||||
withUWSM = true;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.modules.kdeconnect;
|
||||
in {
|
||||
options.modules.kdeconnect.enable = mkEnableOption "Enable KDEConnect";
|
||||
|
||||
config.services.kdeconnect = mkIf cfg.enable {
|
||||
enable = true;
|
||||
indicator = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user