#2 first somewhat working iteration, there seems to be a problem with home manager still

This commit is contained in:
Christoph Hollizeck 2024-03-26 17:28:20 +01:00
parent 19d03b20c5
commit 0be4728958
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
11 changed files with 118 additions and 16 deletions

View file

@ -0,0 +1,32 @@
{ options, config, lib, pkgs, ... }:
with lib;
with lib.wyrdgard;
let
cfg = config.wyrdgard.tools.git;
user = config.wyrdgard.user;
in
{
options.wyrdgard.tools.git = with types; {
enable = mkBoolOpt true "Wether or not to enable git (Default enabled)";
userName = mkOpt types.str user.fullName "The name to use git with";
userEmail = mkOpt types.str user.email "The email to use git with";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
git
gitAndTools.gh
];
programs.git = {
enable = true;
lfs.enable = true;
config = {
init = { defaultBranch = "main"; };
push = { autoSetupRemote = true; };
};
};
};
}

View file

@ -0,0 +1,16 @@
{ options, config, lib, pkgs, ... }:
with lib;
with lib.wyrdgard;
let
cfg = config.wyrdgard.tools.nix-ld;
in {
options.wyrdgard.tools.nix-ld = with types; {
enable = mkBoolOpt false "Wether or not to enable nix-ld";
};
config = mkIf cfg.enable {
programs.nix-ld.enable = true;
};
}