Reorganized

This commit is contained in:
2024-08-23 05:39:44 +03:00
parent e25d8a17cf
commit 860eba085f
6 changed files with 27 additions and 13 deletions
+13
View File
@@ -0,0 +1,13 @@
#https://xeiaso.net/talks/asg-2023-nixos/ example
{ lib, config, pkgs, ... }:{
imports = [./gpg-agent.nix
./name.nix];
#OPTIONS
options.azos.name = lib.mkOption{
default = "YOUR NAME HERE";
type = lib.types.str;
description = "Your full name.";
};
}
+6
View File
@@ -0,0 +1,6 @@
grab
pinentry-program /usr/bin/pinentry
default-cache-ttl 86400
max-cache-ttl 86400
enable-ssh-support
+13
View File
@@ -0,0 +1,13 @@
#https://xeiaso.net/talks/asg-2023-nixos/ example
{ lib, config, pkgs, ... }:
let
cfg = config.azos.gpgagent;
in
{
options.azos.gpgagent.enable = lib.mkEnableOption "Enables AZOS GPG agent";
config = lib.mkIf cfg.enable {
home.packages = [ pkgs.gnupg ];
home.file.".gnupg/gpg-agent.conf".source = ./gpg-agent.conf;
};
}
+4
View File
@@ -0,0 +1,4 @@
#https://xeiaso.net/talks/asg-2023-nixos/ example
{ lib, config, pkgs, ... }:{
home.file."name.txt".text = ''${config.azos.name}'';
}