From 3117334ebac76e74092998a08ba69012f44a553a Mon Sep 17 00:00:00 2001 From: Miran Bastaja Date: Mon, 10 Mar 2025 14:02:14 +0100 Subject: Finalize splitting hyprdesktop up --- share/hm-modules/hyprdesktop.nix | 112 --------------------------------------- 1 file changed, 112 deletions(-) delete mode 100644 share/hm-modules/hyprdesktop.nix (limited to 'share/hm-modules/hyprdesktop.nix') diff --git a/share/hm-modules/hyprdesktop.nix b/share/hm-modules/hyprdesktop.nix deleted file mode 100644 index 94620a4..0000000 --- a/share/hm-modules/hyprdesktop.nix +++ /dev/null @@ -1,112 +0,0 @@ -{ - config, - pkgs, - lib, - ... -}: -let - inherit (lib) - mkIf - mkOption - mkEnableOption - types - mdDoc - lists - ; - cfg = config.custom.hyprdesktop; -in -{ - imports = [ ../home/minimal.nix ]; - - options.custom.hyprdesktop = { - enable = mkEnableOption "Enable hyprdesktop"; - - mainUser = mkOption { - type = types.str; - example = "alice"; - description = mdDoc "Main superuser's username."; - }; - - hasBluetooth = mkOption { - type = types.bool; - default = false; - example = "true"; - }; - hasBrightnessCtl = mkOption { - type = types.bool; - default = false; - example = "true"; - }; - hasBattery = mkOption { - type = types.bool; - default = false; - example = "true"; - }; - - enableGitAnnex = mkOption { - type = types.bool; - default = true; - example = "false"; - }; - }; - - config = mkIf cfg.enable { - wayland.windowManager.hyprland.enable = true; - home.packages = - with pkgs; - [ - wireplumber # session & policy manager for pipewire - grim # screenshot utility for wayland - slurp # region selection UI for wayland - wl-clipboard # clipboard utility - xdg-utils - ] - ++ lists.optionals cfg.hasBluetooth [ overskride ] - ++ lists.optionals cfg.hasBrightnessCtl [ brightnessctl ] - ++ lists.optionals cfg.enableGitAnnex [ - git-annex - git-remote-gcrypt - ]; - - home.pointerCursor = { - gtk.enable = true; - package = pkgs.vanilla-dmz; - name = "Vanilla-DMZ"; - size = 20; - }; - - services.dunst.enable = true; - services.wpaperd.enable = true; - services.poweralertd.enable = cfg.hasBattery; - programs.jujutsu.enable = true; - programs.foot.enable = true; - programs.waybar.enable = true; - programs.tofi.enable = true; - - xdg.portal = { - enable = true; - extraPortals = [ pkgs.kdePackages.xdg-desktop-portal-kde ]; - xdgOpenUsePortal = true; - config = { - kde = { - default = [ "kde" ]; - "org.freedesktop.impl.portal.Secret" = [ - "kwallet" - ]; - }; - hyprland.default = [ "hyprland" ]; - }; - }; - - gtk = { - theme = { - package = pkgs.flat-remix-gtk; - name = "Flat-Remix-GTK-Blue-Darkest"; - }; - iconTheme = { - package = pkgs.flat-remix-icon-theme; - name = "Flat-Remix-Blue-Dark"; - }; - }; - }; -} -- cgit v1.3.1