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.
This commit is contained in:
Eli Ribble 2025-07-21 18:47:29 +00:00
parent 6dc2fc4e44
commit 6bdcc2ccfe
2 changed files with 11 additions and 0 deletions

10
modules/home/base.nix Normal file
View file

@ -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;
};
}

View file

@ -1,5 +1,6 @@
{ {
imports = [ imports = [
./base.nix
./fish.nix ./fish.nix
./git.nix ./git.nix
./neovim.nix ./neovim.nix