Commit 2be2920b281d
Changed files (2)
systems
modules
desktop
systems/modules/desktop/default.nix
@@ -1,7 +1,6 @@
{
imports = [
./base.nix
- ./hyprland.nix
./i3.nix
./sway.nix
./wayland.nix
systems/modules/desktop/hyprland.nix
@@ -1,56 +0,0 @@
-{ config, lib, pkgs, ... }:
-
-let
- inherit (lib) mkIf mkEnableOption mkDefault;
- cfg = config.modules.desktop.wayland.hyprland;
-in
-{
- options = {
- modules.desktop.wayland.hyprland = {
- enable = mkEnableOption "Enable hyprland desktop profile";
- };
- };
- config = mkIf cfg.enable {
- # Enable wayland desktop modules if not already
- modules.desktop.wayland.enable = true;
-
- # Enable pipewire
- modules.hardware.audio = {
- enable = true;
- pipewire.enable = true;
- };
-
- services.blueman.enable = config.modules.hardware.bluetooth.enable;
-
- programs.hyprland.enable = true;
-
- xdg = {
- portal = {
- enable = true;
- # wlr.enable = true;
- extraPortals = with pkgs; [
- xdg-desktop-portal-hyprland
- xdg-desktop-portal-gtk
- ];
- config = {
- common = {
- default = [
- "gtk"
- ];
- };
- };
- };
- };
- # Allow swaylock to unlock the computer for us
- security.pam.services.swaylock = {
- text = "auth include login";
- };
-
- # FIXME are those needed
- programs.dconf.enable = true;
- services.dbus = {
- enable = true;
- packages = [ pkgs.dconf pkgs.gcr ];
- };
- };
-}