From 577bce9d3abd0b214d6d529685e03b9b8b1bf293 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Fri, 15 Nov 2024 18:31:50 -0800 Subject: [PATCH] feat(home): Let home-manager manage itself --- modules/home/base/default.nix | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/modules/home/base/default.nix b/modules/home/base/default.nix index 5751f52..a811294 100644 --- a/modules/home/base/default.nix +++ b/modules/home/base/default.nix @@ -1,10 +1,16 @@ -{ namespace, ... }: +{ namespace, lib, ... }: +let + inherit (lib.${namespace}) enabled; +in { - options.${namespace}.my = rec { - name = "marley"; - username = "punkfairie"; - fullName = "Marley Rae"; - email = "marley@punkfairie.net"; - git.name = username; + config = { + ${namespace}.my = { + name = "marley"; + username = "punkfairie"; + fullName = "Marley Rae"; + email = "marley@punkfairie.net"; + }; + + programs.home-manager = enabled; }; }