mirror of
https://github.com/mjallen18/snowfall-lib.git
synced 2026-04-18 09:05:58 -05:00
wip: faulty first attempt at home-manager integration
This commit is contained in:
@@ -16,7 +16,7 @@ in
|
||||
# Usage: create-modules { src = ./my-modules; overrides = { inherit another-module; }; alias = { default = "another-module" }; }
|
||||
# result: { another-module = ...; my-module = ...; default = ...; }
|
||||
create-modules =
|
||||
{ src ? user-modules-root
|
||||
{ src ? "${user-modules-root}/nixos"
|
||||
, overrides ? { }
|
||||
, alias ? { }
|
||||
}:
|
||||
@@ -36,7 +36,9 @@ in
|
||||
modules-metadata = builtins.map create-module-metadata user-modules;
|
||||
merge-modules = modules: metadata:
|
||||
modules // {
|
||||
${metadata.name} = args:
|
||||
# @NOTE(jakehamilton): home-manager *requires* modules to specify named arguments or it will not
|
||||
# pass values in. For this reason we must specify things like `pkgs` as a named attribute.
|
||||
${metadata.name} = args@{ pkgs, ... }:
|
||||
let
|
||||
system = args.system or args.pkgs.system;
|
||||
target = args.target or system;
|
||||
|
||||
Reference in New Issue
Block a user