From b6fb77fc34a96785e8a1215b12db345fabdda4a4 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 26 Apr 2021 17:22:20 +0000 Subject: [PATCH] modules: add home This makes setting and referring to my home-manager options easier. --- modules/default.nix | 1 + modules/home.nix | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 modules/home.nix diff --git a/modules/default.nix b/modules/default.nix index 082a8da..f20351f 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -5,6 +5,7 @@ imports = [ ./documentation.nix ./ergodox.nix + ./home.nix ./language.nix ./media.nix ./networking.nix diff --git a/modules/home.nix b/modules/home.nix new file mode 100644 index 0000000..f5314b9 --- /dev/null +++ b/modules/home.nix @@ -0,0 +1,11 @@ +# Simplify setting home options +{ lib, ... }: +let + actualPath = [ "home-manager" "users" "ambroisie" "my" "home" ]; + aliasPath = [ "my" "home" ]; +in +{ + imports = [ + (lib.mkAliasOptionModule aliasPath actualPath) + ]; +}