From 7b22abd62664ec35a66dcf7d94e595c15711fa96 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Wed, 19 Jun 2024 01:05:50 +0200 Subject: [PATCH] feat: add standalone home-manager module --- home-manager/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 home-manager/default.nix diff --git a/home-manager/default.nix b/home-manager/default.nix new file mode 100644 index 0000000..df53fe4 --- /dev/null +++ b/home-manager/default.nix @@ -0,0 +1,17 @@ +{ lib, stateVersion, username, hostname, ... }: +{ + home.username = "${username}"; + home.homeDirectory = "/home/${username}"; + home.stateVersion = stateVersion; + home.sessionPath = [ + "$HOME/.local/bin" + ]; + imports = [ + ../nixos/includes/system/overlay.nix + ../hosts/${hostname}/home-config.nix + ../modules/home-manager/default.nix + ]++ lib.optional ( + builtins.pathExists ../hosts/${hostname}/includes/home-manager.nix + ) ../hosts/${hostname}/includes/home-manager.nix; + +}