diff options
| author | Miran Bastaja <mbastaja@sorre.xyz> | 2025-03-10 14:02:14 +0100 |
|---|---|---|
| committer | Miran Bastaja <mbastaja@sorre.xyz> | 2025-03-10 14:35:41 +0100 |
| commit | 3117334ebac76e74092998a08ba69012f44a553a (patch) | |
| tree | 33f4231c3b8613a67a260a5b008fd34d418e4dee /share/hm-modules | |
| parent | 1bc848a11b9a45cc167df2ec9ef7e2e7f6f798ce (diff) | |
Finalize splitting hyprdesktop up
Diffstat (limited to 'share/hm-modules')
| -rw-r--r-- | share/hm-modules/default.nix | 6 | ||||
| -rw-r--r-- | share/hm-modules/hyprdesktop.nix | 112 |
2 files changed, 0 insertions, 118 deletions
diff --git a/share/hm-modules/default.nix b/share/hm-modules/default.nix deleted file mode 100644 index cc04898..0000000 --- a/share/hm-modules/default.nix +++ /dev/null @@ -1,6 +0,0 @@ -{ ... }: -{ - imports = [ - ./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"; - }; - }; - }; -} |
