Switched To A New/Modified Structure

Based heavily on https://github.com/nmasur/dotfiles
This commit is contained in:
Annika Merris 2024-05-17 08:04:19 -04:00
parent 634a129840
commit 99a16590b3
25 changed files with 495 additions and 703 deletions

View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
./git.nix
];
}

View file

@ -0,0 +1,28 @@
{ config, pkgs, lib, ... }:
let
home-packages = config.home-manager.users.${config.user}.home.packages;
in
{
options = {
gitName = lib.mkOption {
type = lib.types.str;
description = "Name to use for git commits";
};
gitEmail = lib.mkOption {
type = lib.types.str;
description = "Email to use for git commits";
};
};
config = {
home-manager.users.root.programs.git = {
enable = true;
};
home-manager.users.${config.user} = {
programs.git = {
enable = true;
userName = config.gitName;
userEmail = config.gitEmail;
};
};
};
}