1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 03:29:45 +01:00

home-manager: format home-manager/default.nix

This commit is contained in:
Robert Helgesson 2021-04-04 18:39:44 +02:00
parent 3a16ebdf72
commit 7fcfd9b565
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
2 changed files with 27 additions and 34 deletions

1
format
View file

@ -18,7 +18,6 @@ esac
find . -name '*.nix' \
! -path ./modules/programs/irssi.nix \
\
! -path ./home-manager/default.nix \
! -path ./home-manager/home-manager.nix \
! -path ./modules/default.nix \
! -path ./modules/files.nix \

View file

@ -3,18 +3,13 @@
# Extra path to Home Manager. If set then this path will be tried
# before `$HOME/.config/nixpkgs/home-manager` and
# `$HOME/.nixpkgs/home-manager`.
, path ? null
}:
, path ? null }:
let
pathStr = if path == null then "" else path;
in
runCommand
"home-manager"
{
in runCommand "home-manager" {
preferLocalBuild = true;
allowSubstitutes = false;
meta = with lib; {
@ -23,8 +18,7 @@ runCommand
platforms = platforms.unix;
license = licenses.mit;
};
}
''
} ''
install -v -D -m755 ${./home-manager} $out/bin/home-manager
substituteInPlace $out/bin/home-manager \