aboutsummaryrefslogtreecommitdiff
path: root/share/hm-modules/hyprdesktop.nix
diff options
context:
space:
mode:
authorMiran Bastaja <miran.bastaja04@gmail.com>2024-07-06 06:48:40 +0200
committerMiran Bastaja <miran.bastaja04@gmail.com>2024-07-06 06:48:40 +0200
commitc97a1d66084aaf50ca816d9c482f296d31346f9f (patch)
treed03726dfb1edfa87b93ca42b9076658c7c50c940 /share/hm-modules/hyprdesktop.nix
parentfed01b401d65e655f565fc5c6304f2ab0d758513 (diff)
formatting
Diffstat (limited to 'share/hm-modules/hyprdesktop.nix')
-rw-r--r--share/hm-modules/hyprdesktop.nix78
1 files changed, 53 insertions, 25 deletions
diff --git a/share/hm-modules/hyprdesktop.nix b/share/hm-modules/hyprdesktop.nix
index a9f2ed4..20e52ab 100644
--- a/share/hm-modules/hyprdesktop.nix
+++ b/share/hm-modules/hyprdesktop.nix
@@ -1,8 +1,21 @@
-{ 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 = {
@@ -49,7 +62,8 @@ 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
@@ -107,20 +121,28 @@ 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;
@@ -152,22 +174,28 @@ 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;
};