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:
parent
6dc2fc4e44
commit
6bdcc2ccfe
2 changed files with 11 additions and 0 deletions
10
modules/home/base.nix
Normal file
10
modules/home/base.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./base.nix
|
||||||
./fish.nix
|
./fish.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
./neovim.nix
|
./neovim.nix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue