about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2022-08-15 16:44:44 +0200
committeraszlig <aszlig@nix.build>2022-08-15 16:44:44 +0200
commit531bcda44ebd530e71f87ee986b123d77221f32f (patch)
tree9d5993cfc1efdcd9a769c4f15b117db726a34b7c /modules
parente16ee1a165eab876f885940c95aa0136d0df5541 (diff)
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 <aszlig@nix.build>
Diffstat (limited to 'modules')
-rw-r--r--modules/user/aszlig/profiles/workstation/default.nix13
1 files changed, 8 insertions, 5 deletions
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"]