about summary refs log tree commit diff
path: root/configs/.config/nixpkgs/home.nix
diff options
context:
space:
mode:
Diffstat (limited to 'configs/.config/nixpkgs/home.nix')
-rw-r--r--configs/.config/nixpkgs/home.nix14
1 files changed, 9 insertions, 5 deletions
diff --git a/configs/.config/nixpkgs/home.nix b/configs/.config/nixpkgs/home.nix
index 0c01a458ffb4..a344ca7b772e 100644
--- a/configs/.config/nixpkgs/home.nix
+++ b/configs/.config/nixpkgs/home.nix
@@ -1,9 +1,7 @@
 { config, pkgs, ... }:
 
 let
-  wrapNonNixProgram = { path, as }: pkgs.writeShellScriptBin as ''
-    exec ${path} "$@"
-  '';
+  briefcase = import <briefcase> {};
 in {
   home = {
     packages = with pkgs; [
@@ -45,7 +43,10 @@ in {
 
   programs.git = {
     enable = true;
-    package = wrapNonNixProgram { path = "/usr/bin/git"; as = "git"; };
+    package = briefcase.utils.wrapNonNixProgram {
+      path = "/usr/bin/git";
+      as = "git";
+    };
     userName = "William Carroll";
     userEmail = "wpcarro@gmail.com";
     aliases = {
@@ -147,7 +148,10 @@ in {
     enable = true;
     latitude = "51.49";
     longitude = "-0.18";
-    package = wrapNonNixProgram { path = "/usr/bin/redshift"; as = "redshift"; };
+    package = briefcase.utils.wrapNonNixProgram {
+      path = "/usr/bin/redshift";
+      as = "redshift";
+    };
   };
 
   # Hide the cursor during X sessions after 1 second.