From 693cbd3798bd69502fe1b4907a9799ac1377c1ad Mon Sep 17 00:00:00 2001 From: th3r00t Date: Tue, 26 Aug 2025 10:09:30 -0400 Subject: [PATCH] Pre switch to unstable --- home-xps13.nix | 77 +++++++++----------------------- modules/configuration-common.nix | 5 +++ modules/configuration-xps13.nix | 5 --- modules/hyprland.nix | 56 ++++++++++++++++++++++- 4 files changed, 82 insertions(+), 61 deletions(-) diff --git a/home-xps13.nix b/home-xps13.nix index 7647fb3..2728329 100644 --- a/home-xps13.nix +++ b/home-xps13.nix @@ -44,7 +44,28 @@ modules/hyprland.nix modules/home-manager-common.nix ]; - xdg.enable = true; + xdg = { + enable = true; + mime = { + enable = true; + }; + mimeApps = { + defaultApplications = { + "text/html" = [ "qutebrowser.desktop" ]; + "application/xhtml+xml" = [ "qutebrowser.desktop" ]; + "application/xml" = [ "qutebrowser.desktop" ]; + "image/svg+xml" = [ "qutebrowser.desktop" ]; + "application/pdf" = [ "qutebrowser.desktop" ]; + "video/mp4" = [ "qutebrowser.desktop" ]; + "video/webm" = [ "qutebrowser.desktop" ]; + "video/x-matroska" = [ "qutebrowser.desktop" ]; + "audio/mpeg" = [ "qutebrowser.desktop" ]; + "audio/ogg" = [ "qutebrowser.desktop" ]; + "audio/wav" = [ "qutebrowser.desktop" ]; + "application/zip" = [ "nemo.desktop" ]; + }; + }; + }; programs.nix-index.enable = true; fonts.fontconfig.enable = true; home.sessionVariables = { @@ -224,59 +245,5 @@ }; }; }; - programs.hyprlock = { - enable = true; - settings = { - general = { - disable_loading_bar = true; - grace = 300; - hide_cursor = true; - no_fade_in = false; - }; - background = [ - { - path = "screenshot"; - blur_passes = 3; - blur_size = 8; - } - ]; - input-field = [ - { - size = "400, 100"; - position = "0, -80"; - monitor = ""; - dots_center = true; - fade_on_empty = false; - font_color = "rgb(202, 211, 245)"; - inner_color = "rgb(91, 96, 120)"; - outer_color = "rgb(24, 25, 38)"; - outline_thickness = 5; - placeholder_text = "Password"; - shadow_passes = 2; - } - ]; - }; - }; - services.hypridle = { - enable = true; - settings = { - general = { - after_sleep_cmd = "hyprctl dispatch dpms on"; - ignore_dbus_inhibit = false; - lock_cmd = "hyprlock"; - }; - listener = [ - { - timeout = 300; - on-timeout = "hyprlock"; - } - { - timeout = 600; - on-timeout = "hyprctl dispatch dpms off"; - on-resume = "hyprctl dispatch dpms on"; - } - ]; - }; - }; home.stateVersion = "25.05"; } diff --git a/modules/configuration-common.nix b/modules/configuration-common.nix index 66574b9..d0498a9 100644 --- a/modules/configuration-common.nix +++ b/modules/configuration-common.nix @@ -8,6 +8,11 @@ ]; nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nix.settings.trusted-users = [ "root" "th3r00t" ]; + nix.extraOptions = '' + extra-substituters = https://devenv.cachix.org + extra-trusted-public-keys = devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw= + ''; time.timeZone = "America/New_York"; i18n.defaultLocale = "en_US.UTF-8"; i18n.extraLocaleSettings = { diff --git a/modules/configuration-xps13.nix b/modules/configuration-xps13.nix index 20ab7a9..1dd7f02 100644 --- a/modules/configuration-xps13.nix +++ b/modules/configuration-xps13.nix @@ -11,11 +11,6 @@ ./laptop.nix ]; # Bootloader. - nix.settings.trusted-users = [ "root" "th3r00t" ]; - nix.extraOptions = '' - extra-substituters = https://devenv.cachix.org - extra-trusted-public-keys = devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw= - ''; boot = { kernelPackages = pkgs.linuxPackages_latest; initrd.availableKernelModules = [ diff --git a/modules/hyprland.nix b/modules/hyprland.nix index 77a63d5..03dd349 100644 --- a/modules/hyprland.nix +++ b/modules/hyprland.nix @@ -142,7 +142,7 @@ bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+ bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%- -# Requires playerctl + # Requires playerctl bindl = , XF86AudioNext, exec, playerctl next bindl = , XF86AudioPause, exec, playerctl play-pause bindl = , XF86AudioPlay, exec, playerctl play-pause @@ -166,6 +166,39 @@ ''; }; + programs.hyprlock = { + enable = true; + settings = { + general = { + disable_loading_bar = true; + grace = 300; + hide_cursor = true; + no_fade_in = false; + }; + background = [ + { + path = "screenshot"; + blur_passes = 3; + blur_size = 8; + } + ]; + input-field = [ + { + size = "400, 100"; + position = "0, -80"; + monitor = ""; + dots_center = true; + fade_on_empty = false; + font_color = "rgb(202, 211, 245)"; + inner_color = "rgb(91, 96, 120)"; + outer_color = "rgb(24, 25, 38)"; + outline_thickness = 5; + placeholder_text = "Password"; + shadow_passes = 2; + } + ]; + }; + }; services.hyprpaper = { enable = true; settings = { @@ -176,4 +209,25 @@ wallpaper = [ "eDP-1,/etc/nixos/home/Wallpapers/nord1.jpg" ]; }; }; + services.hypridle = { + enable = true; + settings = { + general = { + after_sleep_cmd = "hyprctl dispatch dpms on"; + ignore_dbus_inhibit = false; + lock_cmd = "hyprlock"; + }; + listener = [ + { + timeout = 300; + on-timeout = "hyprlock"; + } + { + timeout = 600; + on-timeout = "hyprctl dispatch dpms off"; + on-resume = "hyprctl dispatch dpms on"; + } + ]; + }; + }; }