nix fmt rfc

This commit is contained in:
Christoph Hollizeck 2024-04-04 19:31:55 +02:00
parent 3a8003e671
commit 56df50bdc1
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
41 changed files with 430 additions and 351 deletions

View file

@ -6,9 +6,11 @@
...
}:
with lib;
with lib.wyrdgard; let
with lib.wyrdgard;
let
cfg = config.wyrdgard.tools.direnv;
in {
in
{
options.wyrdgard.tools.direnv = with types; {
enable = mkBoolOpt false "Whether or not to enable direnv.";
};

View file

@ -6,10 +6,12 @@
...
}:
with lib;
with lib.wyrdgard; let
with lib.wyrdgard;
let
cfg = config.wyrdgard.tools.git;
user = config.wyrdgard.user;
in {
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";
@ -26,9 +28,15 @@ in {
enable = true;
lfs.enable = true;
config = {
init = {defaultBranch = "main";};
pull = {rebase = false;};
push = {autoSetupRemote = true;};
init = {
defaultBranch = "main";
};
pull = {
rebase = false;
};
push = {
autoSetupRemote = true;
};
};
};
};

View file

@ -6,14 +6,14 @@
...
}:
with lib;
with lib.wyrdgard; let
with lib.wyrdgard;
let
cfg = config.wyrdgard.tools.nix-ld;
in {
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;
};
config = mkIf cfg.enable { programs.nix-ld.enable = true; };
}