aboutsummaryrefslogtreecommitdiff
path: root/share/hm-modules/hyprdesktop.nix
diff options
context:
space:
mode:
Diffstat (limited to 'share/hm-modules/hyprdesktop.nix')
-rw-r--r--share/hm-modules/hyprdesktop.nix112
1 files changed, 0 insertions, 112 deletions
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";
- };
- };
- };
-}