From 531bcda44ebd530e71f87ee986b123d77221f32f Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 15 Aug 2022 16:44:44 +0200 Subject: profiles/workstation: Add perf to systemPackages I use perf on a regular basis and since it's dependant on the currently running kernel version, it' just makes sense to have it available at all times rather than "nix run" it with the right kernel version. Signed-off-by: aszlig --- modules/user/aszlig/profiles/workstation/default.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'modules/user/aszlig') diff --git a/modules/user/aszlig/profiles/workstation/default.nix b/modules/user/aszlig/profiles/workstation/default.nix index f4ae3d76..43dc2ac4 100644 --- a/modules/user/aszlig/profiles/workstation/default.nix +++ b/modules/user/aszlig/profiles/workstation/default.nix @@ -25,15 +25,18 @@ in { + optionalString (acc != []) " --right-of '${(head acc).name}'"; }; randrConf = map (getAttr "value") (foldl mkRandrConf [] xrandrHeads); - in singleton (pkgs.writeScriptBin "xreset" '' - #!${pkgs.stdenv.shell} - ${pkgs.xorg.xrandr}/bin/xrandr ${concatStringsSep " " randrConf} - '') ++ import ./packages.nix pkgs ++ [ + xreset = pkgs.writeScriptBin "xreset" '' + #!${pkgs.stdenv.shell} + ${pkgs.xorg.xrandr}/bin/xrandr ${concatStringsSep " " randrConf} + ''; + in [ + xreset + config.boot.kernelPackages.perf (pkgs.vuizvui.aszlig.psi.override { jid = "aszlig@aszlig.net"; resource = config.networking.hostName; }) - ]; + ] ++ import ./packages.nix pkgs; vuizvui.requiresTests = [ ["vuizvui" "aszlig" "programs" "psi"] -- cgit 1.4.1