mv hyprland to module

This commit is contained in:
smayzy 2025-07-08 23:37:54 +02:00
parent 873fa8703d
commit 8eed8cf9f1
4 changed files with 41 additions and 17 deletions

View File

@ -10,9 +10,10 @@
networking.hostName = "desktop1";
smayzy = {
desktop.enable = true;
nvidia.enable = true;
virt.enable = true;
desktop.enable = true;
hyprland.enable = true;
};
home-manager = {
@ -38,23 +39,7 @@
services.displayManager.sddm.enable = true;
services.displayManager.sddm.wayland.enable = true;
programs.hyprland = {
enable = true;
xwayland.enable = true;
};
xdg.portal.enable = true;
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
environment.systemPackages = with pkgs; [
mako
wofi
wlogout
waybar
wl-clipboard
libnotify
hyprpaper
hyprpolkitagent
webcord
pavucontrol
cliphist

View File

@ -0,0 +1,6 @@
{ lib, config, pkgs, ... }:
{
imports = [
./hyprland.nix
];
}

View File

@ -0,0 +1,32 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.hyprland.enable = mkOption {
type = types.bool;
default = false;
description = "hyprland";
};
config = mkIf config.smayzy.hyprland.enable {
programs.hyprland = {
enable = true;
xwayland.enable = true;
};
xdg.portal.enable = true;
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
environment.systemPackages = with pkgs; [
mako
wofi
wlogout
waybar
wl-clipboard
libnotify
hyprpaper
hyprpolkitagent
];
};
}

View File

@ -10,6 +10,7 @@
./shell
./rice
./groups
./WM
];
# Timzone and locales (same for all machines so I put it here)