Initial commit
This commit is contained in:
commit
cfcc57a8bd
353 changed files with 18756 additions and 0 deletions
31
flake/den/templates/examples/modules/_example/homes.nix
Normal file
31
flake/den/templates/examples/modules/_example/homes.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# Example standalone home-manager configurations.
|
||||
# These are independent of any host configuration.
|
||||
# See documentation at <den>/nix/types.nix
|
||||
{ inputs, ... }:
|
||||
{
|
||||
den.homes.x86_64-linux.cam = { };
|
||||
|
||||
den.homes.aarch64-darwin.bob = {
|
||||
userName = "robert";
|
||||
aspect = "developer";
|
||||
};
|
||||
|
||||
# Example: custom home-manager instantiate for passing extraSpecialArgs.
|
||||
den.homes.x86_64-linux.luke =
|
||||
let
|
||||
osConfig = inputs.self.nixosConfigurations.rockhopper.config;
|
||||
in
|
||||
{
|
||||
# Example: luke standalone-homemanager needs access to rockhopper osConfig.
|
||||
instantiate =
|
||||
{ pkgs, modules }:
|
||||
inputs.home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs modules;
|
||||
extraSpecialArgs.osConfig = osConfig;
|
||||
};
|
||||
|
||||
# Example: custom attribute instead of specialArgs
|
||||
programToDependOn = "vim";
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue