about summary refs log tree commit diff
path: root/configs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-09-01T11·17+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-09-01T11·17+0100
commit3b2fffe954e3927673e403ee124a78f78bb1c45c (patch)
tree00510279c49747865be68e79527ee59cdff1bf39 /configs
parent3fb9324c82b02fa6dfd7c293f2fd8a4a054acdf0 (diff)
Consume utils.builder in home.nix
Consuming my newly defined Nix utilities.
Diffstat (limited to 'configs')
-rw-r--r--configs/.config/nixpkgs/home.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/configs/.config/nixpkgs/home.nix b/configs/.config/nixpkgs/home.nix
index d23d04f6aa57..82c4ade0a002 100644
--- a/configs/.config/nixpkgs/home.nix
+++ b/configs/.config/nixpkgs/home.nix
@@ -9,6 +9,8 @@
 # dependency that I'm trying to prune...
 let
   briefcase = import <briefcase> {};
+  inherit (briefcase.utils) builder;
+  inherit (builtins) toPath readFile;
 in {
   home = {
     packages = with pkgs; [
@@ -45,12 +47,12 @@ in {
 
   programs.home-manager = {
     enable = true;
-    path = builtins.toPath ~/home-manager;
+    path = toPath ~/home-manager;
   };
 
   programs.git = {
     enable = true;
-    package = briefcase.utils.wrapNonNixProgram {
+    package = builder.wrapNonNixProgram {
       path = "/usr/bin/git";
       as = "git";
     };
@@ -118,7 +120,7 @@ in {
       sysu = "systemctl --user";
       sysust = "systemctl --user status";
     };
-    promptInit = builtins.readFile ../fish/prompt.fish;
+    promptInit = readFile ../fish/prompt.fish;
     functions = {
       ptree = {
         body = ''
@@ -204,7 +206,7 @@ in {
     enable = true;
     latitude = "51.49";
     longitude = "-0.18";
-    package = briefcase.utils.wrapNonNixProgram {
+    package = builder.wrapNonNixProgram {
       path = "/usr/bin/redshift";
       as = "redshift";
     };