Resolve gpg woes

This commit is contained in:
Spotlight 2023-09-10 23:18:24 -05:00
parent 0e960995fb
commit d42e570cd8
Signed by: spotlight
GPG key ID: 874AA355B3209BDC
2 changed files with 8 additions and 8 deletions

View file

@ -12,12 +12,7 @@
outputs = { nixpkgs, home-manager, ... }:
let
homeManager = { system, specialArgs ? {
# Whether to install desktop-targeted tools and applications.
#
# (This primarily focuses around macOS - please use and adopt at your own risk.)
desktop = false;
} }:
homeManager = { system, specialArgs ? { } }:
home-manager.lib.homeManagerConfiguration {
modules = [
./home/home.nix

View file

@ -1,7 +1,12 @@
{ config, lib, pkgs, specialArgs, ... }:
let
# Whether to install desktop-targeted tools and applications.
#
# (This primarily focuses around macOS - please use and adopt at your own risk.)
desktop = specialArgs.desktop or false;
# Whether to configure various programs to leverage GPG.
gpg = specialArgs.gpg or false;
in {
# It's standard convention that Darwin has the username
@ -40,9 +45,9 @@ in {
./prompt.nix
]
# Primarily GUI applications for desktop usage
++ (lib.optional (desktop) ./desktop.nix)
++ lib.optional (desktop) ./desktop.nix
# Configuration reliant on GPG keys being available
++ (lib.optional (gpg) ./desktop.nix);
++ lib.optional (gpg) ./gpg.nix;
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage