From ba11ee8c7a130cebcf0b13640563ae748cef0e5f Mon Sep 17 00:00:00 2001 From: azahi Date: Sun, 2 Feb 2025 01:48:24 +0300 Subject: 2025-02-02 --- modules/profiles/dev/default.nix | 1 + modules/profiles/headful.nix | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) (limited to 'modules/profiles') 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 -- cgit 1.4.1