nixos/home/modules/gpg/default.nix

52 lines
1 KiB
Nix
Raw Normal View History

init repo update nvidia driver, install ghostty and other things before refactor the arch of configuration. move some nixos configuration to ./nixos/modules and ./nixos/configurations. try to find a good arch to conbine home-manager and nixos modules. fix callPackage firefox-addons missing key immersive-translate. wrap niri and spotx overlays into overlay.modifications. build a brandnew architecture for configurations. change the import method of homeManagerModules."${unixName}" to use outputs. add ghostty overlay to replace ghostty. add nix config in home/modules/nix.nix when not nixos fix call nixpkgs.foldr. modify to call nixpkgs.lib.foldr. modify firefox config, to use flake packages as extension modify i18n config, to use flake packages as addons remove ssh private key and add it to sops. update partial flake inputs update partial flake inputs, add some package to user config move helix as home module, provide option youthlic.programs.helix. change fcitx5 config to pkg, use rime-ice default config. move spotify installation to default.nix neither spotify.nix change gpg encrypt key add gpg option to home-manager module add fd as user level package remove gpg option in system level add git option update flake inputs, and install all gpg pinentry add gh to git module change shell config to module, and ghostty also. change gpg pinentry from pinentry-all to pinentry-qt. change gh config, use ssh as git protocol remove zed editor move foot to module, and disable it. add store as git credential helper rename sops.secrets.gitea to sops.secrets.git-credential add git delta config move starship configuration to home/modules. update flake inputs add ssh config to sops encrypt file `secrets/ssh-config.yaml` change niri to niri-unstable and update flake inputs change encypt key from gnupg to age. And encrypt dae url move home sops config to module update flake inputs add duf and doggo to home packages
2024-12-25 10:59:37 +08:00
{
pkgs,
config,
lib,
outputs,
init repo update nvidia driver, install ghostty and other things before refactor the arch of configuration. move some nixos configuration to ./nixos/modules and ./nixos/configurations. try to find a good arch to conbine home-manager and nixos modules. fix callPackage firefox-addons missing key immersive-translate. wrap niri and spotx overlays into overlay.modifications. build a brandnew architecture for configurations. change the import method of homeManagerModules."${unixName}" to use outputs. add ghostty overlay to replace ghostty. add nix config in home/modules/nix.nix when not nixos fix call nixpkgs.foldr. modify to call nixpkgs.lib.foldr. modify firefox config, to use flake packages as extension modify i18n config, to use flake packages as addons remove ssh private key and add it to sops. update partial flake inputs update partial flake inputs, add some package to user config move helix as home module, provide option youthlic.programs.helix. change fcitx5 config to pkg, use rime-ice default config. move spotify installation to default.nix neither spotify.nix change gpg encrypt key add gpg option to home-manager module add fd as user level package remove gpg option in system level add git option update flake inputs, and install all gpg pinentry add gh to git module change shell config to module, and ghostty also. change gpg pinentry from pinentry-all to pinentry-qt. change gh config, use ssh as git protocol remove zed editor move foot to module, and disable it. add store as git credential helper rename sops.secrets.gitea to sops.secrets.git-credential add git delta config move starship configuration to home/modules. update flake inputs add ssh config to sops encrypt file `secrets/ssh-config.yaml` change niri to niri-unstable and update flake inputs change encypt key from gnupg to age. And encrypt dae url move home sops config to module update flake inputs add duf and doggo to home packages
2024-12-25 10:59:37 +08:00
...
}:
{
options = {
youthlic.programs.gpg = {
enable = lib.mkOption {
type = lib.types.bool;
default = true;
example = false;
description = ''
whether enable gpg
'';
};
};
};
config =
let
cfg = config.youthlic.programs.gpg;
in
lib.mkIf cfg.enable {
services.gpg-agent = lib.mkMerge [
{
enable = true;
enableSshSupport = true;
pinentryPackage = outputs.packages."${pkgs.system}".pinentry-selector;
init repo update nvidia driver, install ghostty and other things before refactor the arch of configuration. move some nixos configuration to ./nixos/modules and ./nixos/configurations. try to find a good arch to conbine home-manager and nixos modules. fix callPackage firefox-addons missing key immersive-translate. wrap niri and spotx overlays into overlay.modifications. build a brandnew architecture for configurations. change the import method of homeManagerModules."${unixName}" to use outputs. add ghostty overlay to replace ghostty. add nix config in home/modules/nix.nix when not nixos fix call nixpkgs.foldr. modify to call nixpkgs.lib.foldr. modify firefox config, to use flake packages as extension modify i18n config, to use flake packages as addons remove ssh private key and add it to sops. update partial flake inputs update partial flake inputs, add some package to user config move helix as home module, provide option youthlic.programs.helix. change fcitx5 config to pkg, use rime-ice default config. move spotify installation to default.nix neither spotify.nix change gpg encrypt key add gpg option to home-manager module add fd as user level package remove gpg option in system level add git option update flake inputs, and install all gpg pinentry add gh to git module change shell config to module, and ghostty also. change gpg pinentry from pinentry-all to pinentry-qt. change gh config, use ssh as git protocol remove zed editor move foot to module, and disable it. add store as git credential helper rename sops.secrets.gitea to sops.secrets.git-credential add git delta config move starship configuration to home/modules. update flake inputs add ssh config to sops encrypt file `secrets/ssh-config.yaml` change niri to niri-unstable and update flake inputs change encypt key from gnupg to age. And encrypt dae url move home sops config to module update flake inputs add duf and doggo to home packages
2024-12-25 10:59:37 +08:00
}
(lib.mkIf config.youthlic.programs.fish.enable {
enableFishIntegration = true;
})
(lib.mkIf config.youthlic.programs.bash.enable {
enableBashIntegration = true;
})
];
programs.gpg = {
enable = true;
mutableKeys = true;
mutableTrust = true;
publicKeys = [
{
source = ./public-key.txt;
trust = "ultimate";
}
];
};
};
}