mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
flake: add templates (#2892)
Add example flakes from `docs/nix-flakes.adoc` as templates.
This commit is contained in:
parent
375631f35b
commit
8e4220e6c6
5 changed files with 120 additions and 0 deletions
17
flake.nix
17
flake.nix
|
|
@ -20,6 +20,23 @@
|
|||
# unofficial; deprecated in Nix 2.8
|
||||
darwinModule = self.darwinModules.default;
|
||||
|
||||
templates = {
|
||||
standalone = {
|
||||
path = ./templates/standalone;
|
||||
description = "Standalone setup";
|
||||
};
|
||||
nixos = {
|
||||
path = ./templates/nixos;
|
||||
description = "Home Manager as a NixOS module,";
|
||||
};
|
||||
nix-darwin = {
|
||||
path = ./templates/nix-darwin;
|
||||
description = "Home Manager as a nix-darwin module,";
|
||||
};
|
||||
};
|
||||
|
||||
defaultTemplate = self.templates.standalone;
|
||||
|
||||
lib = {
|
||||
hm = (import ./modules/lib/stdlib-extended.nix nixpkgs.lib).hm;
|
||||
homeManagerConfiguration = { modules ? [ ], pkgs, lib ? pkgs.lib
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue