Reorganized
This commit is contained in:
@@ -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.";
|
||||
};
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
grab
|
||||
pinentry-program /usr/bin/pinentry
|
||||
default-cache-ttl 86400
|
||||
max-cache-ttl 86400
|
||||
enable-ssh-support
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
#https://xeiaso.net/talks/asg-2023-nixos/ example
|
||||
{ lib, config, pkgs, ... }:{
|
||||
home.file."name.txt".text = ''${config.azos.name}'';
|
||||
}
|
||||
Reference in New Issue
Block a user