add flake attribute apps to make it easier to run (#2442)
Home Manager can be ran with `nix run --no-write-lock-file github:nix-community/home-manager`. This is useful for people who want to try out Home Manager or, want to bootstrap their home-environment.
This commit is contained in:
parent
c2aa831491
commit
c4c761ba55
|
@ -30,6 +30,15 @@
|
|||
defaultPackage =
|
||||
forAllSystems (system: self.packages.${system}.home-manager);
|
||||
|
||||
apps = forAllSystems (system: {
|
||||
home-manager = {
|
||||
type = "app";
|
||||
program = "${defaultPackage.${system}}/bin/home-manager";
|
||||
};
|
||||
});
|
||||
|
||||
defaultApp = forAllSystems (system: apps.${system}.home-manager);
|
||||
|
||||
lib = {
|
||||
hm = import ./modules/lib { lib = nixpkgs.lib; };
|
||||
homeManagerConfiguration = { configuration, system, homeDirectory
|
||||
|
|
Loading…
Reference in a new issue