Modular things!
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
# You can also split up your configuration and import pieces of it here:
|
||||
# ./nvim.nix
|
||||
./gpg-agent.nix
|
||||
];
|
||||
|
||||
nixpkgs = {
|
||||
@@ -47,12 +48,23 @@
|
||||
};
|
||||
};
|
||||
|
||||
azos.gpgagent.enable = true;
|
||||
|
||||
# TODO: Set your username
|
||||
home = {
|
||||
username = "aner";
|
||||
homeDirectory = "/home/aner";
|
||||
|
||||
|
||||
};
|
||||
|
||||
# config = {
|
||||
# #My config stuff
|
||||
# azos.gpg-agent.enable = true;
|
||||
# };
|
||||
# home.config.azos.gpg-agent.enable = true;
|
||||
|
||||
|
||||
# Add stuff for your user as you see fit:
|
||||
# programs.neovim.enable = true;
|
||||
home.packages = with pkgs; [
|
||||
@@ -72,6 +84,7 @@
|
||||
programs.home-manager.enable = true;
|
||||
programs.git.enable = true;
|
||||
|
||||
|
||||
# Nicely reload system units when changing configs
|
||||
systemd.user.startServices = "sd-switch";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user