Modular things!

This commit is contained in:
2024-08-13 14:34:03 +03:00
parent 843df231a6
commit e25d8a17cf
7 changed files with 42 additions and 17 deletions
+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;
};
}
+13
View File
@@ -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";