We out here

This commit is contained in:
2025-03-30 12:07:54 +03:00
parent 8ec7f0a662
commit 3b539d32f4
5 changed files with 69 additions and 2 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
{
imports = [];
imports = [./mail.nix];
}
+40
View File
@@ -0,0 +1,40 @@
[commit]
gpgsign = true
[user]
name = Aner Zakobar
email = aner@zakobar.com
signingkey = 6D17E295C70E2674
[credential]
helper = !pass-git-helper $@
{ lib, config, pkgs, ... }:
let
isEnabled =
config.azos.git.enable;
in {
optionns.azos.git.enable = lib.mkOption {
default = true;
example = true;
type = lib.types.bool;
};
config = lib.mkIf isEnabled {
home.packages = with pkgs; [ pass-git-helper ];
programs.git = {
enable = true;
userName = "Aner Zakobar";
userEmail = "aner@zakobar.com";
signing = {
key = "6D17E295C70E2674";
signByDefault = true;
};
extraConfig = {
credential.helper = "!pass-git-helper $@";
};
};
};
}
+16
View File
@@ -0,0 +1,16 @@
#https://xeiaso.net/talks/asg-2023-nixos/ example
{ lib, config, pkgs, ... }:
let
isEnabled =
config.azos.mail.enable;
in {
optionns.azos.mail.enable = lib.mkOption {
default = true;
example = true;
type = lib.types.bool;
};
config = lib.mkIf isEnabled {
home.file."mail.txt".text = ''Mail enabled'';
};
}