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.nix77
1 files changed, 25 insertions, 52 deletions
diff --git a/share/hm-modules/hyprdesktop.nix b/share/hm-modules/hyprdesktop.nix
index eef388f..a9f2ed4 100644
--- a/share/hm-modules/hyprdesktop.nix
+++ b/share/hm-modules/hyprdesktop.nix
@@ -1,20 +1,8 @@
-{ config
-, pkgs
-, lib
-, ...
-}:
+{ config, pkgs, lib, ... }:
let
- inherit (lib)
- mkIf
- mkOption
- mkEnableOption
- types
- mdDoc
- lists
- ;
+ inherit (lib) mkIf mkOption mkEnableOption types mdDoc lists;
cfg = config.custom.hyprdesktop;
-in
-{
+in {
imports = [ ../home/minimal.nix ];
options.custom.hyprdesktop = {
@@ -61,8 +49,7 @@ in
config = mkIf cfg.enable {
wayland.windowManager.hyprland.enable = true;
- home.packages =
- with pkgs;
+ home.packages = with pkgs;
[
xh # Nice to use HTTP client
bc # CLI calculator
@@ -120,28 +107,20 @@ in
# Flat-Remix icon themes don't contain all the icons that Foliate uses,
# so I'm bringing in the adwaita icons as a fallback.
gnome3.adwaita-icon-theme
- ]
- ++ lists.optionals cfg.hasBluetooth [ overskride ]
+ ] ++ lists.optionals cfg.hasBluetooth [ overskride ]
++ lists.optionals cfg.enableGaming [
jdk17_headless
superTuxKart
wineWowPackages.full
winetricks
- ]
- ++ lists.optionals (cfg.enableWindowsCompat || cfg.enableGaming) [
+ ] ++ lists.optionals (cfg.enableWindowsCompat || cfg.enableGaming) [
wineWowPackages.full
winetricks
qemu_kvm
- ]
- ++ lists.optionals cfg.hasBrightnessCtl [ brightnessctl ]
- ++ lists.optionals cfg.enableGitAnnex [
- git-annex
- git-remote-gcrypt
- ];
+ ] ++ lists.optionals cfg.hasBrightnessCtl [ brightnessctl ]
+ ++ lists.optionals cfg.enableGitAnnex [ git-annex git-remote-gcrypt ];
- home.shellAliases = {
- sl = "sl -awFc5";
- };
+ home.shellAliases = { sl = "sl -awFc5"; };
services.dunst.enable = true;
services.wpaperd.enable = true;
@@ -173,28 +152,22 @@ in
};
xdg = {
- systemDirs.data =
- let
- gds = pkgs.gsettings-desktop-schemas;
- gtk3 = pkgs.gtk3;
- in
- [
- "${gds}/share/gsettings-schemas/${gds.name}"
- "${gtk3}/share/gsettings-schemas/${gtk3.name}"
- ];
- userDirs =
- let
- annex = "${config.home.homeDirectory}/Annex";
- in
- {
- enable = true;
- createDirectories = true;
- }
- // mkIf cfg.enableGitAnnex {
- pictures = "${annex}/Pictures";
- music = "${annex}/Music";
- documents = "${annex}/Documents";
- };
+ systemDirs.data = let
+ gds = pkgs.gsettings-desktop-schemas;
+ gtk3 = pkgs.gtk3;
+ in [
+ "${gds}/share/gsettings-schemas/${gds.name}"
+ "${gtk3}/share/gsettings-schemas/${gtk3.name}"
+ ];
+ userDirs = let annex = "${config.home.homeDirectory}/Annex";
+ in {
+ enable = true;
+ createDirectories = true;
+ } // mkIf cfg.enableGitAnnex {
+ pictures = "${annex}/Pictures";
+ music = "${annex}/Music";
+ documents = "${annex}/Documents";
+ };
portal.xdgOpenUsePortal = true;
};