Add hyprland module

This commit is contained in:
Jordan Holt 2024-04-21 22:47:31 +01:00
parent 050415cb49
commit fa060ace43
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520
2 changed files with 28 additions and 0 deletions

View File

@ -2,6 +2,7 @@
imports = [
./options.nix
./desktop/gnome.nix
./desktop/hyprland.nix
./desktop/kde.nix
./desktop/mimeapps.nix
./desktop/apps/qbittorrent.nix

View File

@ -0,0 +1,27 @@
{ config, lib, pkgs, ... }:
let cfg = config.modules.desktop.hyprland;
in {
options.modules.desktop.hyprland = {
enable = lib.mkOption {
default = false;
example = true;
};
};
config = lib.mkIf cfg.enable {
programs.hyprland.enable = true;
networking.networkmanager.enable = true;
user.packages = with pkgs; [
mpv
];
environment.systemPackages = with pkgs; [
adw-gtk3
];
home.services.gpg-agent.pinentryFlavor = "gnome3";
};
}