diff options
author | William Carroll <wpcarro@gmail.com> | 2020-09-01T11·17+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-09-01T11·17+0100 |
commit | 3b2fffe954e3927673e403ee124a78f78bb1c45c (patch) | |
tree | 00510279c49747865be68e79527ee59cdff1bf39 | |
parent | 3fb9324c82b02fa6dfd7c293f2fd8a4a054acdf0 (diff) |
Consume utils.builder in home.nix
Consuming my newly defined Nix utilities.
-rw-r--r-- | configs/.config/nixpkgs/home.nix | 10 |
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"; }; |