From 6bdcc2ccfe8e754df46eb0450c84c7954cafb3a5 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Mon, 21 Jul 2025 18:47:29 +0000 Subject: [PATCH] Create an option for defining the user in home-manager modules This will replace existing per-module user configuration. Or, rather, it already did for git. --- modules/home/base.nix | 10 ++++++++++ modules/home/default.nix | 1 + 2 files changed, 11 insertions(+) create mode 100644 modules/home/base.nix diff --git a/modules/home/base.nix b/modules/home/base.nix new file mode 100644 index 0000000..5c438d9 --- /dev/null +++ b/modules/home/base.nix @@ -0,0 +1,10 @@ +{ config, configFiles, lib, pkgs, ... }: + +with lib; + +{ + options.myModules.home.user = mkOption { + description = "The username of the user for building paths"; + type = types.str; + }; +} diff --git a/modules/home/default.nix b/modules/home/default.nix index b50ee95..d40ff32 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -1,5 +1,6 @@ { imports = [ + ./base.nix ./fish.nix ./git.nix ./neovim.nix