From 3b2fffe954e3927673e403ee124a78f78bb1c45c Mon Sep 17 00:00:00 2001 From: William Carroll Date: Tue, 1 Sep 2020 12:17:44 +0100 Subject: Consume utils.builder in home.nix Consuming my newly defined Nix utilities. --- configs/.config/nixpkgs/home.nix | 10 ++++++---- 1 file 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 {}; + 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"; }; -- cgit 1.4.1