about summary refs log tree commit diff
path: root/modules/profiles
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/profiles/dev/default.nix1
-rw-r--r--modules/profiles/headful.nix18
2 files changed, 18 insertions, 1 deletions
diff --git a/modules/profiles/dev/default.nix b/modules/profiles/dev/default.nix
index 38a2117..bb7cfc9 100644
--- a/modules/profiles/dev/default.nix
+++ b/modules/profiles/dev/default.nix
@@ -68,6 +68,7 @@ in
           ])
           age
           dbeaver-bin
+          devenv
           distrobox
           htmlq
           httpie
diff --git a/modules/profiles/headful.nix b/modules/profiles/headful.nix
index a315af4..e328691 100644
--- a/modules/profiles/headful.nix
+++ b/modules/profiles/headful.nix
@@ -17,6 +17,8 @@ in
 
   config = mkIf cfg.enable {
     nixfiles.modules = {
+      common.xdg.defaultApplications."org.telegram.desktop" = [ "x-scheme-handler/tg" ];
+
       profiles.dev.enable = true;
 
       alacritty.enable = mkDefault true;
@@ -85,7 +87,21 @@ in
     };
 
     boot = {
-      kernelPackages = mkDefault pkgs.linuxPackages_latest;
+      kernelPackages = mkDefault (
+        if config.boot.zfs.enabled then
+          pkgs.linuxKernel.packages
+          |> lib.filterAttrs (
+            k: v:
+            (builtins.match "linux_[0-9]+_[0-9]+" k) != null
+            && (builtins.tryEval v).success
+            && (!v.${config.boot.zfs.package.kernelModuleAttribute}.meta.broken)
+          )
+          |> builtins.attrValues
+          |> lib.sort (a: b: lib.versionOlder a.kernel.version b.kernel.version)
+          |> lib.last
+        else
+          pkgs.linuxPackages_latest
+      );
 
       kernelParams = [
         # https://wiki.archlinux.org/title/improving_performance#Watchdogs

Consider giving Nix/NixOS a try! <3